@html-validate/commitlint-config 4.0.3 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,14 +18,6 @@ var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? requir
18
18
  if (typeof require !== "undefined") return require.apply(this, arguments);
19
19
  throw Error('Dynamic require of "' + x2 + '" is not supported');
20
20
  });
21
- var __esm = (fn, res, err) => function __init() {
22
- if (err) throw err[0];
23
- try {
24
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
25
- } catch (e2) {
26
- throw err = [e2], e2;
27
- }
28
- };
29
21
  var __commonJS = (cb, mod) => function __require2() {
30
22
  try {
31
23
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -724,7 +716,7 @@ var require_sort = __commonJS({
724
716
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/sort.js"(exports, module) {
725
717
  "use strict";
726
718
  var compareBuild = require_compare_build();
727
- var sort = (list, loose) => list.sort((a2, b2) => compareBuild(a2, b2, loose));
719
+ var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
728
720
  module.exports = sort;
729
721
  }
730
722
  });
@@ -734,7 +726,7 @@ var require_rsort = __commonJS({
734
726
  "node_modules/@commitlint/is-ignored/node_modules/semver/functions/rsort.js"(exports, module) {
735
727
  "use strict";
736
728
  var compareBuild = require_compare_build();
737
- var rsort = (list, loose) => list.sort((a2, b2) => compareBuild(b2, a2, loose));
729
+ var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
738
730
  module.exports = rsort;
739
731
  }
740
732
  });
@@ -2044,635 +2036,6 @@ var require_semver2 = __commonJS({
2044
2036
  }
2045
2037
  });
2046
2038
 
2047
- // node_modules/conventional-commits-parser/dist/types.js
2048
- var init_types = __esm({
2049
- "node_modules/conventional-commits-parser/dist/types.js"() {
2050
- }
2051
- });
2052
-
2053
- // node_modules/conventional-commits-parser/dist/regex.js
2054
- function escape2(string) {
2055
- return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2056
- }
2057
- function joinOr(parts) {
2058
- return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
2059
- }
2060
- function getNotesRegex(noteKeywords, notesPattern) {
2061
- if (!noteKeywords) {
2062
- return nomatchRegex;
2063
- }
2064
- const noteKeywordsSelection = joinOr(noteKeywords);
2065
- if (!notesPattern) {
2066
- return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
2067
- }
2068
- return notesPattern(noteKeywordsSelection);
2069
- }
2070
- function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
2071
- if (!issuePrefixes) {
2072
- return nomatchRegex;
2073
- }
2074
- const flags = issuePrefixesCaseSensitive ? "g" : "gi";
2075
- return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;)\\]])`, flags);
2076
- }
2077
- function getReferencesRegex(referenceActions) {
2078
- if (!referenceActions) {
2079
- return /()(.+)/gi;
2080
- }
2081
- const joinedKeywords = joinOr(referenceActions);
2082
- return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
2083
- }
2084
- function getParserRegexes(options = {}) {
2085
- const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
2086
- const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
2087
- const references = getReferencesRegex(options.referenceActions);
2088
- return {
2089
- notes,
2090
- referenceParts,
2091
- references,
2092
- mentions: /@([\w-]+)/g,
2093
- url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
2094
- };
2095
- }
2096
- var nomatchRegex;
2097
- var init_regex = __esm({
2098
- "node_modules/conventional-commits-parser/dist/regex.js"() {
2099
- nomatchRegex = /(?!.*)/;
2100
- }
2101
- });
2102
-
2103
- // node_modules/conventional-commits-parser/dist/utils.js
2104
- function trimNewLines(input) {
2105
- const matches = input.match(/[^\r\n]/);
2106
- if (typeof matches?.index !== "number") {
2107
- return "";
2108
- }
2109
- const firstIndex = matches.index;
2110
- let lastIndex = input.length - 1;
2111
- while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
2112
- lastIndex--;
2113
- }
2114
- return input.substring(firstIndex, lastIndex + 1);
2115
- }
2116
- function appendLine(src, line) {
2117
- return src ? `${src}
2118
- ${line || ""}` : line || "";
2119
- }
2120
- function getCommentFilter(char) {
2121
- return char ? (line) => !line.startsWith(char) : () => true;
2122
- }
2123
- function truncateToScissor(lines, commentChar) {
2124
- const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
2125
- if (scissorIndex === -1) {
2126
- return lines;
2127
- }
2128
- return lines.slice(0, scissorIndex);
2129
- }
2130
- function gpgFilter(line) {
2131
- return !line.match(/^\s*gpg:/);
2132
- }
2133
- function assignMatchedCorrespondence(target, matches, correspondence) {
2134
- const { groups } = matches;
2135
- for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
2136
- key = correspondence[i2];
2137
- target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
2138
- }
2139
- return target;
2140
- }
2141
- var SCISSOR;
2142
- var init_utils = __esm({
2143
- "node_modules/conventional-commits-parser/dist/utils.js"() {
2144
- SCISSOR = "------------------------ >8 ------------------------";
2145
- }
2146
- });
2147
-
2148
- // node_modules/conventional-commits-parser/dist/options.js
2149
- var defaultOptions;
2150
- var init_options = __esm({
2151
- "node_modules/conventional-commits-parser/dist/options.js"() {
2152
- defaultOptions = {
2153
- noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
2154
- issuePrefixes: ["#"],
2155
- referenceActions: [
2156
- "close",
2157
- "closes",
2158
- "closed",
2159
- "fix",
2160
- "fixes",
2161
- "fixed",
2162
- "resolve",
2163
- "resolves",
2164
- "resolved"
2165
- ],
2166
- headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
2167
- headerCorrespondence: [
2168
- "type",
2169
- "scope",
2170
- "subject"
2171
- ],
2172
- revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
2173
- revertCorrespondence: ["header", "hash"],
2174
- fieldPattern: /^-(.*?)-$/
2175
- };
2176
- }
2177
- });
2178
-
2179
- // node_modules/conventional-commits-parser/dist/CommitParser.js
2180
- function createCommitObject(initialData = {}) {
2181
- return {
2182
- merge: null,
2183
- revert: null,
2184
- header: null,
2185
- body: null,
2186
- footer: null,
2187
- notes: [],
2188
- mentions: [],
2189
- references: [],
2190
- ...initialData
2191
- };
2192
- }
2193
- var CommitParser;
2194
- var init_CommitParser = __esm({
2195
- "node_modules/conventional-commits-parser/dist/CommitParser.js"() {
2196
- init_regex();
2197
- init_utils();
2198
- init_options();
2199
- CommitParser = class {
2200
- options;
2201
- regexes;
2202
- lines = [];
2203
- lineIndex = 0;
2204
- commit = createCommitObject();
2205
- constructor(options = {}) {
2206
- this.options = {
2207
- ...defaultOptions,
2208
- ...options
2209
- };
2210
- this.regexes = getParserRegexes(this.options);
2211
- }
2212
- currentLine() {
2213
- return this.lines[this.lineIndex];
2214
- }
2215
- nextLine() {
2216
- return this.lines[this.lineIndex++];
2217
- }
2218
- isLineAvailable() {
2219
- return this.lineIndex < this.lines.length;
2220
- }
2221
- parseReference(input, action) {
2222
- const { regexes } = this;
2223
- if (regexes.url.test(input)) {
2224
- return null;
2225
- }
2226
- const matches = regexes.referenceParts.exec(input);
2227
- if (!matches) {
2228
- return null;
2229
- }
2230
- let [raw, repository = null, prefix2, issue] = matches;
2231
- let owner = null;
2232
- if (repository) {
2233
- const slashIndex = repository.indexOf("/");
2234
- if (slashIndex !== -1) {
2235
- owner = repository.slice(0, slashIndex);
2236
- repository = repository.slice(slashIndex + 1);
2237
- }
2238
- }
2239
- return {
2240
- raw,
2241
- action,
2242
- owner,
2243
- repository,
2244
- prefix: prefix2,
2245
- issue
2246
- };
2247
- }
2248
- parseReferences(input) {
2249
- const { regexes } = this;
2250
- const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
2251
- const references = [];
2252
- let matches;
2253
- let action;
2254
- let sentence;
2255
- let reference;
2256
- while (true) {
2257
- matches = regex2.exec(input);
2258
- if (!matches) {
2259
- break;
2260
- }
2261
- action = matches[1] || null;
2262
- sentence = matches[2] || "";
2263
- while (true) {
2264
- reference = this.parseReference(sentence, action);
2265
- if (!reference) {
2266
- break;
2267
- }
2268
- references.push(reference);
2269
- }
2270
- }
2271
- return references;
2272
- }
2273
- skipEmptyLines() {
2274
- let line = this.currentLine();
2275
- while (line !== void 0 && !line.trim()) {
2276
- this.nextLine();
2277
- line = this.currentLine();
2278
- }
2279
- }
2280
- parseMerge() {
2281
- const { commit, options } = this;
2282
- const correspondence = options.mergeCorrespondence || [];
2283
- const merge2 = this.currentLine();
2284
- const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
2285
- if (matches) {
2286
- this.nextLine();
2287
- commit.merge = matches[0] || null;
2288
- assignMatchedCorrespondence(commit, matches, correspondence);
2289
- return true;
2290
- }
2291
- return false;
2292
- }
2293
- parseHeader(isMergeCommit) {
2294
- if (isMergeCommit) {
2295
- this.skipEmptyLines();
2296
- }
2297
- const { commit, options } = this;
2298
- const correspondence = options.headerCorrespondence || [];
2299
- const header = commit.header ?? this.nextLine();
2300
- let matches = null;
2301
- if (header) {
2302
- if (options.breakingHeaderPattern) {
2303
- matches = header.match(options.breakingHeaderPattern);
2304
- }
2305
- if (!matches && options.headerPattern) {
2306
- matches = header.match(options.headerPattern);
2307
- }
2308
- }
2309
- if (header) {
2310
- commit.header = header;
2311
- }
2312
- if (matches) {
2313
- assignMatchedCorrespondence(commit, matches, correspondence);
2314
- }
2315
- }
2316
- parseMeta() {
2317
- const { options, commit } = this;
2318
- if (!options.fieldPattern || !this.isLineAvailable()) {
2319
- return false;
2320
- }
2321
- let matches;
2322
- let field = null;
2323
- let parsed = false;
2324
- while (this.isLineAvailable()) {
2325
- matches = this.currentLine().match(options.fieldPattern);
2326
- if (matches) {
2327
- field = matches[1] || null;
2328
- this.nextLine();
2329
- continue;
2330
- }
2331
- if (field) {
2332
- parsed = true;
2333
- commit[field] = appendLine(commit[field], this.currentLine());
2334
- this.nextLine();
2335
- } else {
2336
- break;
2337
- }
2338
- }
2339
- return parsed;
2340
- }
2341
- parseNotes() {
2342
- const { regexes, commit } = this;
2343
- if (!this.isLineAvailable()) {
2344
- return false;
2345
- }
2346
- const matches = this.currentLine().match(regexes.notes);
2347
- let references = [];
2348
- if (matches) {
2349
- const note = {
2350
- title: matches[1],
2351
- text: matches[2]
2352
- };
2353
- commit.notes.push(note);
2354
- commit.footer = appendLine(commit.footer, this.currentLine());
2355
- this.nextLine();
2356
- while (this.isLineAvailable()) {
2357
- if (this.parseMeta()) {
2358
- return true;
2359
- }
2360
- if (this.parseNotes()) {
2361
- return true;
2362
- }
2363
- references = this.parseReferences(this.currentLine());
2364
- if (references.length) {
2365
- commit.references.push(...references);
2366
- } else {
2367
- note.text = appendLine(note.text, this.currentLine());
2368
- }
2369
- commit.footer = appendLine(commit.footer, this.currentLine());
2370
- this.nextLine();
2371
- if (references.length) {
2372
- break;
2373
- }
2374
- }
2375
- return true;
2376
- }
2377
- return false;
2378
- }
2379
- parseBodyAndFooter(isBody) {
2380
- const { commit } = this;
2381
- if (!this.isLineAvailable()) {
2382
- return isBody;
2383
- }
2384
- const references = this.parseReferences(this.currentLine());
2385
- const isStillBody = !references.length && isBody;
2386
- if (isStillBody) {
2387
- commit.body = appendLine(commit.body, this.currentLine());
2388
- } else {
2389
- commit.references.push(...references);
2390
- commit.footer = appendLine(commit.footer, this.currentLine());
2391
- }
2392
- this.nextLine();
2393
- return isStillBody;
2394
- }
2395
- parseBreakingHeader() {
2396
- const { commit, options } = this;
2397
- if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
2398
- return;
2399
- }
2400
- const matches = commit.header.match(options.breakingHeaderPattern);
2401
- if (matches) {
2402
- commit.notes.push({
2403
- title: "BREAKING CHANGE",
2404
- text: matches[3]
2405
- });
2406
- }
2407
- }
2408
- parseMentions(input) {
2409
- const { commit, regexes } = this;
2410
- let matches;
2411
- for (; ; ) {
2412
- matches = regexes.mentions.exec(input);
2413
- if (!matches) {
2414
- break;
2415
- }
2416
- commit.mentions.push(matches[1]);
2417
- }
2418
- }
2419
- parseRevert(input) {
2420
- const { commit, options } = this;
2421
- const correspondence = options.revertCorrespondence || [];
2422
- const matches = options.revertPattern ? input.match(options.revertPattern) : null;
2423
- if (matches) {
2424
- commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
2425
- }
2426
- }
2427
- cleanupCommit() {
2428
- const { commit } = this;
2429
- if (commit.body) {
2430
- commit.body = trimNewLines(commit.body);
2431
- }
2432
- if (commit.footer) {
2433
- commit.footer = trimNewLines(commit.footer);
2434
- }
2435
- commit.notes.forEach((note) => {
2436
- note.text = trimNewLines(note.text);
2437
- });
2438
- const referencesSet = /* @__PURE__ */ new Set();
2439
- commit.references = commit.references.filter((reference) => {
2440
- const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
2441
- const ok = !referencesSet.has(uid);
2442
- if (ok) {
2443
- referencesSet.add(uid);
2444
- }
2445
- return ok;
2446
- });
2447
- }
2448
- /**
2449
- * Parse commit message string into an object.
2450
- * @param input - Commit message string.
2451
- * @returns Commit object.
2452
- */
2453
- parse(input) {
2454
- if (!input.trim()) {
2455
- throw new TypeError("Expected a raw commit");
2456
- }
2457
- const { commentChar } = this.options;
2458
- const commentFilter = getCommentFilter(commentChar);
2459
- const rawLines = trimNewLines(input).split(/\r?\n/);
2460
- const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
2461
- const commit = createCommitObject();
2462
- this.lines = lines;
2463
- this.lineIndex = 0;
2464
- this.commit = commit;
2465
- const isMergeCommit = this.parseMerge();
2466
- this.parseHeader(isMergeCommit);
2467
- if (commit.header) {
2468
- commit.references = this.parseReferences(commit.header);
2469
- }
2470
- let isBody = true;
2471
- while (this.isLineAvailable()) {
2472
- this.parseMeta();
2473
- if (this.parseNotes()) {
2474
- isBody = false;
2475
- }
2476
- if (!this.parseBodyAndFooter(isBody)) {
2477
- isBody = false;
2478
- }
2479
- }
2480
- this.parseBreakingHeader();
2481
- this.parseMentions(input);
2482
- this.parseRevert(input);
2483
- this.cleanupCommit();
2484
- return commit;
2485
- }
2486
- };
2487
- }
2488
- });
2489
-
2490
- // node_modules/conventional-commits-parser/dist/stream.js
2491
- var init_stream = __esm({
2492
- "node_modules/conventional-commits-parser/dist/stream.js"() {
2493
- init_CommitParser();
2494
- }
2495
- });
2496
-
2497
- // node_modules/conventional-commits-parser/dist/index.js
2498
- var init_dist = __esm({
2499
- "node_modules/conventional-commits-parser/dist/index.js"() {
2500
- init_types();
2501
- init_CommitParser();
2502
- init_stream();
2503
- }
2504
- });
2505
-
2506
- // node_modules/array-ify/index.js
2507
- var require_array_ify = __commonJS({
2508
- "node_modules/array-ify/index.js"(exports, module) {
2509
- "use strict";
2510
- module.exports = function(val) {
2511
- return Array.isArray(val) ? val : [val];
2512
- };
2513
- }
2514
- });
2515
-
2516
- // node_modules/is-obj/index.js
2517
- var require_is_obj = __commonJS({
2518
- "node_modules/is-obj/index.js"(exports, module) {
2519
- "use strict";
2520
- module.exports = (value) => {
2521
- const type = typeof value;
2522
- return value !== null && (type === "object" || type === "function");
2523
- };
2524
- }
2525
- });
2526
-
2527
- // node_modules/dot-prop/index.js
2528
- var require_dot_prop = __commonJS({
2529
- "node_modules/dot-prop/index.js"(exports, module) {
2530
- "use strict";
2531
- var isObj = require_is_obj();
2532
- var disallowedKeys = [
2533
- "__proto__",
2534
- "prototype",
2535
- "constructor"
2536
- ];
2537
- var isValidPath = (pathSegments) => !pathSegments.some((segment) => disallowedKeys.includes(segment));
2538
- function getPathSegments(path9) {
2539
- const pathArray = path9.split(".");
2540
- const parts = [];
2541
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2542
- let p2 = pathArray[i2];
2543
- while (p2[p2.length - 1] === "\\" && pathArray[i2 + 1] !== void 0) {
2544
- p2 = p2.slice(0, -1) + ".";
2545
- p2 += pathArray[++i2];
2546
- }
2547
- parts.push(p2);
2548
- }
2549
- if (!isValidPath(parts)) {
2550
- return [];
2551
- }
2552
- return parts;
2553
- }
2554
- module.exports = {
2555
- get(object, path9, value) {
2556
- if (!isObj(object) || typeof path9 !== "string") {
2557
- return value === void 0 ? object : value;
2558
- }
2559
- const pathArray = getPathSegments(path9);
2560
- if (pathArray.length === 0) {
2561
- return;
2562
- }
2563
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2564
- if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i2])) {
2565
- return value;
2566
- }
2567
- object = object[pathArray[i2]];
2568
- if (object === void 0 || object === null) {
2569
- if (i2 !== pathArray.length - 1) {
2570
- return value;
2571
- }
2572
- break;
2573
- }
2574
- }
2575
- return object;
2576
- },
2577
- set(object, path9, value) {
2578
- if (!isObj(object) || typeof path9 !== "string") {
2579
- return object;
2580
- }
2581
- const root = object;
2582
- const pathArray = getPathSegments(path9);
2583
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2584
- const p2 = pathArray[i2];
2585
- if (!isObj(object[p2])) {
2586
- object[p2] = {};
2587
- }
2588
- if (i2 === pathArray.length - 1) {
2589
- object[p2] = value;
2590
- }
2591
- object = object[p2];
2592
- }
2593
- return root;
2594
- },
2595
- delete(object, path9) {
2596
- if (!isObj(object) || typeof path9 !== "string") {
2597
- return false;
2598
- }
2599
- const pathArray = getPathSegments(path9);
2600
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2601
- const p2 = pathArray[i2];
2602
- if (i2 === pathArray.length - 1) {
2603
- delete object[p2];
2604
- return true;
2605
- }
2606
- object = object[p2];
2607
- if (!isObj(object)) {
2608
- return false;
2609
- }
2610
- }
2611
- },
2612
- has(object, path9) {
2613
- if (!isObj(object) || typeof path9 !== "string") {
2614
- return false;
2615
- }
2616
- const pathArray = getPathSegments(path9);
2617
- if (pathArray.length === 0) {
2618
- return false;
2619
- }
2620
- for (let i2 = 0; i2 < pathArray.length; i2++) {
2621
- if (isObj(object)) {
2622
- if (!(pathArray[i2] in object)) {
2623
- return false;
2624
- }
2625
- object = object[pathArray[i2]];
2626
- } else {
2627
- return false;
2628
- }
2629
- }
2630
- return true;
2631
- }
2632
- };
2633
- }
2634
- });
2635
-
2636
- // node_modules/compare-func/index.js
2637
- var require_compare_func = __commonJS({
2638
- "node_modules/compare-func/index.js"(exports, module) {
2639
- "use strict";
2640
- var arrayify = require_array_ify();
2641
- var dotPropGet = require_dot_prop().get;
2642
- function compareFunc2(prop) {
2643
- return function(a2, b2) {
2644
- var ret = 0;
2645
- arrayify(prop).some(function(el) {
2646
- var x2;
2647
- var y2;
2648
- if (typeof el === "function") {
2649
- x2 = el(a2);
2650
- y2 = el(b2);
2651
- } else if (typeof el === "string") {
2652
- x2 = dotPropGet(a2, el);
2653
- y2 = dotPropGet(b2, el);
2654
- } else {
2655
- x2 = a2;
2656
- y2 = b2;
2657
- }
2658
- if (x2 === y2) {
2659
- ret = 0;
2660
- return;
2661
- }
2662
- if (typeof x2 === "string" && typeof y2 === "string") {
2663
- ret = x2.localeCompare(y2);
2664
- return ret !== 0;
2665
- }
2666
- ret = x2 < y2 ? -1 : 1;
2667
- return true;
2668
- });
2669
- return ret;
2670
- };
2671
- }
2672
- module.exports = compareFunc2;
2673
- }
2674
- });
2675
-
2676
2039
  // node_modules/ajv/dist/compile/codegen/code.js
2677
2040
  var require_code = __commonJS({
2678
2041
  "node_modules/ajv/dist/compile/codegen/code.js"(exports) {
@@ -5451,8 +4814,8 @@ var require_validate = __commonJS({
5451
4814
  return data;
5452
4815
  }
5453
4816
  let expr = data;
5454
- const segments = jsonPointer.split("/");
5455
- for (const segment of segments) {
4817
+ const segments2 = jsonPointer.split("/");
4818
+ for (const segment of segments2) {
5456
4819
  if (segment) {
5457
4820
  data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;
5458
4821
  expr = (0, codegen_1._)`${expr} && ${data}`;
@@ -6961,9 +6324,9 @@ var require_core = __commonJS({
6961
6324
  const rules = this.RULES.all;
6962
6325
  metaSchema = JSON.parse(JSON.stringify(metaSchema));
6963
6326
  for (const jsonPointer of keywordsJsonPointers) {
6964
- const segments = jsonPointer.split("/").slice(1);
6327
+ const segments2 = jsonPointer.split("/").slice(1);
6965
6328
  let keywords = metaSchema;
6966
- for (const seg of segments)
6329
+ for (const seg of segments2)
6967
6330
  keywords = keywords[seg];
6968
6331
  for (const key in rules) {
6969
6332
  const rule = rules[key];
@@ -9776,10 +9139,10 @@ var require_json_parse_even_better_errors = __commonJS({
9776
9139
  const parseText = stripBOM(txt);
9777
9140
  context = context || 20;
9778
9141
  try {
9779
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
9142
+ const [, newline2 = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
9780
9143
  const result = JSON.parse(parseText, reviver);
9781
9144
  if (result && typeof result === "object") {
9782
- result[kNewline] = newline;
9145
+ result[kNewline] = newline2;
9783
9146
  result[kIndent] = indent;
9784
9147
  }
9785
9148
  return result;
@@ -10483,7 +9846,7 @@ var require_exception = __commonJS({
10483
9846
  }
10484
9847
  YAMLException.prototype = Object.create(Error.prototype);
10485
9848
  YAMLException.prototype.constructor = YAMLException;
10486
- YAMLException.prototype.toString = function toString2(compact) {
9849
+ YAMLException.prototype.toString = function toString3(compact) {
10487
9850
  return this.name + ": " + formatError(this, compact);
10488
9851
  };
10489
9852
  module.exports = YAMLException;
@@ -10895,7 +10258,7 @@ var require_int = __commonJS({
10895
10258
  if (ch !== "0" && ch !== "1") return false;
10896
10259
  hasDigits = true;
10897
10260
  }
10898
- return hasDigits && Number.isFinite(parseYamlInteger(data));
10261
+ return hasDigits && isFinite(parseYamlInteger(data));
10899
10262
  }
10900
10263
  if (ch === "x") {
10901
10264
  index++;
@@ -10903,7 +10266,7 @@ var require_int = __commonJS({
10903
10266
  if (!isHexCode(data.charCodeAt(index))) return false;
10904
10267
  hasDigits = true;
10905
10268
  }
10906
- return hasDigits && Number.isFinite(parseYamlInteger(data));
10269
+ return hasDigits && isFinite(parseYamlInteger(data));
10907
10270
  }
10908
10271
  if (ch === "o") {
10909
10272
  index++;
@@ -10911,7 +10274,7 @@ var require_int = __commonJS({
10911
10274
  if (!isOctCode(data.charCodeAt(index))) return false;
10912
10275
  hasDigits = true;
10913
10276
  }
10914
- return hasDigits && Number.isFinite(parseYamlInteger(data));
10277
+ return hasDigits && isFinite(parseYamlInteger(data));
10915
10278
  }
10916
10279
  }
10917
10280
  for (; index < max; index++) {
@@ -10921,7 +10284,7 @@ var require_int = __commonJS({
10921
10284
  hasDigits = true;
10922
10285
  }
10923
10286
  if (!hasDigits) return false;
10924
- return Number.isFinite(parseYamlInteger(data));
10287
+ return isFinite(parseYamlInteger(data));
10925
10288
  }
10926
10289
  function parseYamlInteger(data) {
10927
10290
  let value = data;
@@ -10994,7 +10357,7 @@ var require_float = __commonJS({
10994
10357
  if (!YAML_FLOAT_PATTERN.test(data)) {
10995
10358
  return false;
10996
10359
  }
10997
- if (Number.isFinite(parseFloat(data, 10))) {
10360
+ if (isFinite(parseFloat(data, 10))) {
10998
10361
  return true;
10999
10362
  }
11000
10363
  return YAML_FLOAT_SPECIAL_PATTERN.test(data);
@@ -11518,7 +10881,7 @@ var require_loader = __commonJS({
11518
10881
  this.json = options["json"] || false;
11519
10882
  this.listener = options["listener"] || null;
11520
10883
  this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
11521
- this.maxMergeSeqLength = typeof options["maxMergeSeqLength"] === "number" ? options["maxMergeSeqLength"] : 20;
10884
+ this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
11522
10885
  this.implicitTypes = this.schema.compiledImplicit;
11523
10886
  this.typeMap = this.schema.compiledTypeMap;
11524
10887
  this.length = input.length;
@@ -11527,6 +10890,7 @@ var require_loader = __commonJS({
11527
10890
  this.lineStart = 0;
11528
10891
  this.lineIndent = 0;
11529
10892
  this.depth = 0;
10893
+ this.totalMergeKeys = 0;
11530
10894
  this.firstTabInLine = -1;
11531
10895
  this.documents = [];
11532
10896
  this.anchorMapTransactions = [];
@@ -11686,6 +11050,9 @@ var require_loader = __commonJS({
11686
11050
  const sourceKeys = Object.keys(source);
11687
11051
  for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
11688
11052
  const key = sourceKeys[index];
11053
+ if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
11054
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
11055
+ }
11689
11056
  if (!_hasOwnProperty.call(destination, key)) {
11690
11057
  setProperty(destination, key, source[key]);
11691
11058
  overridableKeys[key] = true;
@@ -11713,15 +11080,8 @@ var require_loader = __commonJS({
11713
11080
  }
11714
11081
  if (keyTag === "tag:yaml.org,2002:merge") {
11715
11082
  if (Array.isArray(valueNode)) {
11716
- if (valueNode.length > state.maxMergeSeqLength) {
11717
- throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
11718
- }
11719
- const seen = /* @__PURE__ */ new Set();
11720
11083
  for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
11721
- const src = valueNode[index];
11722
- if (seen.has(src)) continue;
11723
- seen.add(src);
11724
- mergeMappings(state, _result, src, overridableKeys);
11084
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
11725
11085
  }
11726
11086
  } else {
11727
11087
  mergeMappings(state, _result, valueNode, overridableKeys);
@@ -13571,34 +12931,34 @@ var require_util2 = __commonJS({
13571
12931
  }
13572
12932
  exports.urlParse = urlParse;
13573
12933
  function urlGenerate(aParsedUrl) {
13574
- var url = "";
12934
+ var url2 = "";
13575
12935
  if (aParsedUrl.scheme) {
13576
- url += aParsedUrl.scheme + ":";
12936
+ url2 += aParsedUrl.scheme + ":";
13577
12937
  }
13578
- url += "//";
12938
+ url2 += "//";
13579
12939
  if (aParsedUrl.auth) {
13580
- url += aParsedUrl.auth + "@";
12940
+ url2 += aParsedUrl.auth + "@";
13581
12941
  }
13582
12942
  if (aParsedUrl.host) {
13583
- url += aParsedUrl.host;
12943
+ url2 += aParsedUrl.host;
13584
12944
  }
13585
12945
  if (aParsedUrl.port) {
13586
- url += ":" + aParsedUrl.port;
12946
+ url2 += ":" + aParsedUrl.port;
13587
12947
  }
13588
12948
  if (aParsedUrl.path) {
13589
- url += aParsedUrl.path;
12949
+ url2 += aParsedUrl.path;
13590
12950
  }
13591
- return url;
12951
+ return url2;
13592
12952
  }
13593
12953
  exports.urlGenerate = urlGenerate;
13594
12954
  function normalize2(aPath) {
13595
12955
  var path9 = aPath;
13596
- var url = urlParse(aPath);
13597
- if (url) {
13598
- if (!url.path) {
12956
+ var url2 = urlParse(aPath);
12957
+ if (url2) {
12958
+ if (!url2.path) {
13599
12959
  return aPath;
13600
12960
  }
13601
- path9 = url.path;
12961
+ path9 = url2.path;
13602
12962
  }
13603
12963
  var isAbsolute = exports.isAbsolute(path9);
13604
12964
  var parts = path9.split(/\/+/);
@@ -13622,9 +12982,9 @@ var require_util2 = __commonJS({
13622
12982
  if (path9 === "") {
13623
12983
  path9 = isAbsolute ? "/" : ".";
13624
12984
  }
13625
- if (url) {
13626
- url.path = path9;
13627
- return urlGenerate(url);
12985
+ if (url2) {
12986
+ url2.path = path9;
12987
+ return urlGenerate(url2);
13628
12988
  }
13629
12989
  return path9;
13630
12990
  }
@@ -14702,13 +14062,13 @@ var require_source_map_consumer = __commonJS({
14702
14062
  if (this.sourceRoot != null) {
14703
14063
  relativeSource = util3.relative(this.sourceRoot, relativeSource);
14704
14064
  }
14705
- var url;
14706
- if (this.sourceRoot != null && (url = util3.urlParse(this.sourceRoot))) {
14065
+ var url2;
14066
+ if (this.sourceRoot != null && (url2 = util3.urlParse(this.sourceRoot))) {
14707
14067
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
14708
- if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
14068
+ if (url2.scheme == "file" && this._sources.has(fileUriAbsPath)) {
14709
14069
  return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
14710
14070
  }
14711
- if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
14071
+ if ((!url2.path || url2.path == "/") && this._sources.has("/" + relativeSource)) {
14712
14072
  return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
14713
14073
  }
14714
14074
  }
@@ -15196,10 +14556,10 @@ var require_source_map = __commonJS({
15196
14556
  // node_modules/buffer-from/index.js
15197
14557
  var require_buffer_from = __commonJS({
15198
14558
  "node_modules/buffer-from/index.js"(exports, module) {
15199
- var toString2 = Object.prototype.toString;
14559
+ var toString3 = Object.prototype.toString;
15200
14560
  var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
15201
14561
  function isArrayBuffer(input) {
15202
- return toString2.call(input).slice(8, -1) === "ArrayBuffer";
14562
+ return toString3.call(input).slice(8, -1) === "ArrayBuffer";
15203
14563
  }
15204
14564
  function fromArrayBuffer(obj, byteOffset, length) {
15205
14565
  byteOffset >>>= 0;
@@ -15275,10 +14635,10 @@ var require_source_map_support = __commonJS({
15275
14635
  function hasGlobalProcessEventEmitter() {
15276
14636
  return typeof process === "object" && process !== null && typeof process.on === "function";
15277
14637
  }
15278
- function handlerExec(list) {
14638
+ function handlerExec(list2) {
15279
14639
  return function(arg) {
15280
- for (var i2 = 0; i2 < list.length; i2++) {
15281
- var ret = list[i2](arg);
14640
+ for (var i2 = 0; i2 < list2.length; i2++) {
14641
+ var ret = list2[i2](arg);
15282
14642
  if (ret) {
15283
14643
  return ret;
15284
14644
  }
@@ -15321,17 +14681,17 @@ var require_source_map_support = __commonJS({
15321
14681
  }
15322
14682
  return fileContentsCache[path10] = contents;
15323
14683
  });
15324
- function supportRelativeURL(file, url) {
15325
- if (!file) return url;
14684
+ function supportRelativeURL(file, url2) {
14685
+ if (!file) return url2;
15326
14686
  var dir = path9.dirname(file);
15327
14687
  var match = /^\w+:\/\/[^\/]*/.exec(dir);
15328
14688
  var protocol = match ? match[0] : "";
15329
14689
  var startPath = dir.slice(protocol.length);
15330
14690
  if (protocol && /^\/\w\:/.test(startPath)) {
15331
14691
  protocol += "/";
15332
- return protocol + path9.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
14692
+ return protocol + path9.resolve(dir.slice(protocol.length), url2).replace(/\\/g, "/");
15333
14693
  }
15334
- return protocol + path9.resolve(dir.slice(protocol.length), url);
14694
+ return protocol + path9.resolve(dir.slice(protocol.length), url2);
15335
14695
  }
15336
14696
  function retrieveSourceMapURL(source) {
15337
14697
  var fileData;
@@ -15389,8 +14749,8 @@ var require_source_map_support = __commonJS({
15389
14749
  sourceMap.map.sources.forEach(function(source, i2) {
15390
14750
  var contents = sourceMap.map.sourcesContent[i2];
15391
14751
  if (contents) {
15392
- var url = supportRelativeURL(sourceMap.url, source);
15393
- fileContentsCache[url] = contents;
14752
+ var url2 = supportRelativeURL(sourceMap.url, source);
14753
+ fileContentsCache[url2] = contents;
15394
14754
  }
15395
14755
  });
15396
14756
  }
@@ -23623,7 +22983,7 @@ ${lanes.join("\n")}
23623
22983
  const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2);
23624
22984
  const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2);
23625
22985
  return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options);
23626
- function createDirectoryWatcher(dirName, options, callback, link) {
22986
+ function createDirectoryWatcher(dirName, options, callback, link2) {
23627
22987
  const dirPath = toCanonicalFilePath(dirName);
23628
22988
  let directoryWatcher = cache.get(dirPath);
23629
22989
  if (directoryWatcher) {
@@ -23654,7 +23014,7 @@ ${lanes.join("\n")}
23654
23014
  cache.set(dirPath, directoryWatcher);
23655
23015
  updateChildWatches(dirName, dirPath, options);
23656
23016
  }
23657
- if (link) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link);
23017
+ if (link2) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link2);
23658
23018
  const callbackToAdd = callback && { dirName, callback };
23659
23019
  if (callbackToAdd) {
23660
23020
  callbackCache.add(dirPath, callbackToAdd);
@@ -23665,7 +23025,7 @@ ${lanes.join("\n")}
23665
23025
  var _a2;
23666
23026
  const directoryWatcher2 = Debug.checkDefined(cache.get(dirPath));
23667
23027
  if (callbackToAdd) callbackCache.remove(dirPath, callbackToAdd);
23668
- if (link) (_a2 = directoryWatcher2.links) == null ? void 0 : _a2.delete(link);
23028
+ if (link2) (_a2 = directoryWatcher2.links) == null ? void 0 : _a2.delete(link2);
23669
23029
  directoryWatcher2.refCount--;
23670
23030
  if (directoryWatcher2.refCount) return;
23671
23031
  cache.delete(dirPath);
@@ -23704,12 +23064,12 @@ ${lanes.join("\n")}
23704
23064
  }
23705
23065
  }
23706
23066
  });
23707
- (_b2 = (_a2 = cache.get(dirPath)) == null ? void 0 : _a2.links) == null ? void 0 : _b2.forEach((link) => {
23708
- const toPathInLink = (fileName2) => combinePaths(link, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath));
23067
+ (_b2 = (_a2 = cache.get(dirPath)) == null ? void 0 : _a2.links) == null ? void 0 : _b2.forEach((link2) => {
23068
+ const toPathInLink = (fileName2) => combinePaths(link2, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath));
23709
23069
  if (invokeMap) {
23710
- invokeCallbacks(link, toCanonicalFilePath(link), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink));
23070
+ invokeCallbacks(link2, toCanonicalFilePath(link2), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink));
23711
23071
  } else {
23712
- invokeCallbacks(link, toCanonicalFilePath(link), toPathInLink(fileName));
23072
+ invokeCallbacks(link2, toCanonicalFilePath(link2), toPathInLink(fileName));
23713
23073
  }
23714
23074
  });
23715
23075
  }
@@ -24403,18 +23763,18 @@ ${lanes.join("\n")}
24403
23763
  const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
24404
23764
  for (const node of profile.nodes) {
24405
23765
  if (node.callFrame.url) {
24406
- const url = normalizeSlashes(node.callFrame.url);
24407
- if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) {
23766
+ const url2 = normalizeSlashes(node.callFrame.url);
23767
+ if (containsPath(fileUrlRoot, url2, useCaseSensitiveFileNames2)) {
24408
23768
  node.callFrame.url = getRelativePathToDirectoryOrUrl(
24409
23769
  fileUrlRoot,
24410
- url,
23770
+ url2,
24411
23771
  fileUrlRoot,
24412
23772
  createGetCanonicalFileName(useCaseSensitiveFileNames2),
24413
23773
  /*isAbsolutePathAnUrl*/
24414
23774
  true
24415
23775
  );
24416
- } else if (!nativePattern.test(url)) {
24417
- node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, `external${externalFileCounter}.js`)).get(url);
23776
+ } else if (!nativePattern.test(url2)) {
23777
+ node.callFrame.url = (remappedPaths.has(url2) ? remappedPaths : remappedPaths.set(url2, `external${externalFileCounter}.js`)).get(url2);
24418
23778
  externalFileCounter++;
24419
23779
  }
24420
23780
  }
@@ -24703,11 +24063,11 @@ ${lanes.join("\n")}
24703
24063
  function isVolumeCharacter(charCode) {
24704
24064
  return charCode >= 97 && charCode <= 122 || charCode >= 65 && charCode <= 90;
24705
24065
  }
24706
- function getFileUrlVolumeSeparatorEnd(url, start) {
24707
- const ch0 = url.charCodeAt(start);
24066
+ function getFileUrlVolumeSeparatorEnd(url2, start) {
24067
+ const ch0 = url2.charCodeAt(start);
24708
24068
  if (ch0 === 58) return start + 1;
24709
- if (ch0 === 37 && url.charCodeAt(start + 1) === 51) {
24710
- const ch2 = url.charCodeAt(start + 2);
24069
+ if (ch0 === 37 && url2.charCodeAt(start + 1) === 51) {
24070
+ const ch2 = url2.charCodeAt(start + 2);
24711
24071
  if (ch2 === 97 || ch2 === 65) return start + 3;
24712
24072
  }
24713
24073
  return -1;
@@ -30321,13 +29681,13 @@ ${lanes.join("\n")}
30321
29681
  /*isInGroup*/
30322
29682
  false
30323
29683
  );
30324
- forEach(groupNameReferences, (reference) => {
30325
- if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference.name))) {
30326
- error2(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name);
29684
+ forEach(groupNameReferences, (reference2) => {
29685
+ if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference2.name))) {
29686
+ error2(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference2.pos, reference2.end - reference2.pos, reference2.name);
30327
29687
  if (groupSpecifiers) {
30328
- const suggestion = getSpellingSuggestion(reference.name, groupSpecifiers, identity);
29688
+ const suggestion = getSpellingSuggestion(reference2.name, groupSpecifiers, identity);
30329
29689
  if (suggestion) {
30330
- error2(Diagnostics.Did_you_mean_0, reference.pos, reference.end - reference.pos, suggestion);
29690
+ error2(Diagnostics.Did_you_mean_0, reference2.pos, reference2.end - reference2.pos, suggestion);
30331
29691
  }
30332
29692
  }
30333
29693
  }
@@ -31414,11 +30774,11 @@ ${lanes.join("\n")}
31414
30774
  function getTextOfJSDocComment(comment) {
31415
30775
  return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c2) => c2.kind === 322 ? c2.text : formatJSDocLink(c2)).join("");
31416
30776
  }
31417
- function formatJSDocLink(link) {
31418
- const kind = link.kind === 325 ? "link" : link.kind === 326 ? "linkcode" : "linkplain";
31419
- const name = link.name ? entityNameToString(link.name) : "";
31420
- const space = link.name && (link.text === "" || link.text.startsWith("://")) ? "" : " ";
31421
- return `{@${kind} ${name}${space}${link.text}}`;
30777
+ function formatJSDocLink(link2) {
30778
+ const kind = link2.kind === 325 ? "link" : link2.kind === 326 ? "linkcode" : "linkplain";
30779
+ const name = link2.name ? entityNameToString(link2.name) : "";
30780
+ const space = link2.name && (link2.text === "" || link2.text.startsWith("://")) ? "" : " ";
30781
+ return `{@${kind} ${name}${space}${link2.text}}`;
31422
30782
  }
31423
30783
  function getEffectiveTypeParameterDeclarations(node) {
31424
30784
  if (isJSDocSignature(node)) {
@@ -36246,8 +35606,8 @@ ${lanes.join("\n")}
36246
35606
  function containsInvalidEscapeFlag(node) {
36247
35607
  return !!((node.templateFlags || 0) & 2048);
36248
35608
  }
36249
- function hasInvalidEscape(template) {
36250
- return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal)));
35609
+ function hasInvalidEscape(template2) {
35610
+ return template2 && !!(isNoSubstitutionTemplateLiteral(template2) ? containsInvalidEscapeFlag(template2) : containsInvalidEscapeFlag(template2.head) || some(template2.templateSpans, (span) => containsInvalidEscapeFlag(span.literal)));
36251
35611
  }
36252
35612
  var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\u2028\u2029\u0085]/g;
36253
35613
  var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\u2028\u2029\u0085]/g;
@@ -37494,8 +36854,8 @@ ${lanes.join("\n")}
37494
36854
  function getLinesBetweenRangeEndPositions(range1, range2, sourceFile) {
37495
36855
  return getLinesBetweenPositions(sourceFile, range1.end, range2.end);
37496
36856
  }
37497
- function isNodeArrayMultiLine(list, sourceFile) {
37498
- return !positionsAreOnSameLine(list.pos, list.end, sourceFile);
36857
+ function isNodeArrayMultiLine(list2, sourceFile) {
36858
+ return !positionsAreOnSameLine(list2.pos, list2.end, sourceFile);
37499
36859
  }
37500
36860
  function positionsAreOnSameLine(pos1, pos2, sourceFile) {
37501
36861
  return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0;
@@ -39270,26 +38630,26 @@ ${lanes.join("\n")}
39270
38630
  }
39271
38631
  const startIndex = 2, endIndex = stringValue.length - 1;
39272
38632
  const bitsNeeded = (endIndex - startIndex) * log2Base;
39273
- const segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));
38633
+ const segments2 = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));
39274
38634
  for (let i2 = endIndex - 1, bitOffset = 0; i2 >= startIndex; i2--, bitOffset += log2Base) {
39275
38635
  const segment = bitOffset >>> 4;
39276
38636
  const digitChar = stringValue.charCodeAt(i2);
39277
38637
  const digit = digitChar <= 57 ? digitChar - 48 : 10 + digitChar - (digitChar <= 70 ? 65 : 97);
39278
38638
  const shiftedDigit = digit << (bitOffset & 15);
39279
- segments[segment] |= shiftedDigit;
38639
+ segments2[segment] |= shiftedDigit;
39280
38640
  const residual = shiftedDigit >>> 16;
39281
- if (residual) segments[segment + 1] |= residual;
38641
+ if (residual) segments2[segment + 1] |= residual;
39282
38642
  }
39283
38643
  let base10Value = "";
39284
- let firstNonzeroSegment = segments.length - 1;
38644
+ let firstNonzeroSegment = segments2.length - 1;
39285
38645
  let segmentsRemaining = true;
39286
38646
  while (segmentsRemaining) {
39287
38647
  let mod10 = 0;
39288
38648
  segmentsRemaining = false;
39289
38649
  for (let segment = firstNonzeroSegment; segment >= 0; segment--) {
39290
- const newSegment = mod10 << 16 | segments[segment];
38650
+ const newSegment = mod10 << 16 | segments2[segment];
39291
38651
  const segmentValue = newSegment / 10 | 0;
39292
- segments[segment] = segmentValue;
38652
+ segments2[segment] = segmentValue;
39293
38653
  mod10 = newSegment - segmentValue * 10;
39294
38654
  if (segmentValue && !segmentsRemaining) {
39295
38655
  firstNonzeroSegment = segment;
@@ -43588,7 +42948,7 @@ ${lanes.join("\n")}
43588
42948
  function updateNewExpression(node, expression, typeArguments, argumentsArray) {
43589
42949
  return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node;
43590
42950
  }
43591
- function createTaggedTemplateExpression(tag, typeArguments, template) {
42951
+ function createTaggedTemplateExpression(tag, typeArguments, template2) {
43592
42952
  const node = createBaseNode(
43593
42953
  216
43594
42954
  /* TaggedTemplateExpression */
@@ -43599,7 +42959,7 @@ ${lanes.join("\n")}
43599
42959
  false
43600
42960
  );
43601
42961
  node.typeArguments = asNodeArray(typeArguments);
43602
- node.template = template;
42962
+ node.template = template2;
43603
42963
  node.transformFlags |= propagateChildFlags(node.tag) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.template) | 1024;
43604
42964
  if (node.typeArguments) {
43605
42965
  node.transformFlags |= 1;
@@ -43609,8 +42969,8 @@ ${lanes.join("\n")}
43609
42969
  }
43610
42970
  return node;
43611
42971
  }
43612
- function updateTaggedTemplateExpression(node, tag, typeArguments, template) {
43613
- return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node;
42972
+ function updateTaggedTemplateExpression(node, tag, typeArguments, template2) {
42973
+ return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template2 ? update(createTaggedTemplateExpression(tag, typeArguments, template2), node) : node;
43614
42974
  }
43615
42975
  function createTypeAssertion(type, expression) {
43616
42976
  const node = createBaseNode(
@@ -52314,7 +51674,7 @@ ${lanes.join("\n")}
52314
51674
  function parseList(kind, parseElement) {
52315
51675
  const saveParsingContext = parsingContext;
52316
51676
  parsingContext |= 1 << kind;
52317
- const list = [];
51677
+ const list2 = [];
52318
51678
  const listPos = getNodePos();
52319
51679
  while (!isListTerminator(kind)) {
52320
51680
  if (isListElement2(
@@ -52322,7 +51682,7 @@ ${lanes.join("\n")}
52322
51682
  /*inErrorRecovery*/
52323
51683
  false
52324
51684
  )) {
52325
- list.push(parseListElement(kind, parseElement));
51685
+ list2.push(parseListElement(kind, parseElement));
52326
51686
  continue;
52327
51687
  }
52328
51688
  if (abortParsingListOrMoveToNextToken(kind)) {
@@ -52330,7 +51690,7 @@ ${lanes.join("\n")}
52330
51690
  }
52331
51691
  }
52332
51692
  parsingContext = saveParsingContext;
52333
- return createNodeArray(list, listPos);
51693
+ return createNodeArray(list2, listPos);
52334
51694
  }
52335
51695
  function parseListElement(parsingContext2, parseElement) {
52336
51696
  const node = currentNode(parsingContext2);
@@ -52576,7 +51936,7 @@ ${lanes.join("\n")}
52576
51936
  function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) {
52577
51937
  const saveParsingContext = parsingContext;
52578
51938
  parsingContext |= 1 << kind;
52579
- const list = [];
51939
+ const list2 = [];
52580
51940
  const listPos = getNodePos();
52581
51941
  let commaStart = -1;
52582
51942
  while (true) {
@@ -52591,7 +51951,7 @@ ${lanes.join("\n")}
52591
51951
  parsingContext = saveParsingContext;
52592
51952
  return void 0;
52593
51953
  }
52594
- list.push(result);
51954
+ list2.push(result);
52595
51955
  commaStart = scanner2.getTokenStart();
52596
51956
  if (parseOptional(
52597
51957
  28
@@ -52621,7 +51981,7 @@ ${lanes.join("\n")}
52621
51981
  }
52622
51982
  parsingContext = saveParsingContext;
52623
51983
  return createNodeArray(
52624
- list,
51984
+ list2,
52625
51985
  listPos,
52626
51986
  /*end*/
52627
51987
  void 0,
@@ -52632,9 +51992,9 @@ ${lanes.join("\n")}
52632
51992
  return kind === 6 ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0;
52633
51993
  }
52634
51994
  function createMissingList() {
52635
- const list = createNodeArray([], getNodePos());
52636
- list.isMissingList = true;
52637
- return list;
51995
+ const list2 = createNodeArray([], getNodePos());
51996
+ list2.isMissingList = true;
51997
+ return list2;
52638
51998
  }
52639
51999
  function isMissingList(arr) {
52640
52000
  return !!arr.isMissingList;
@@ -52704,13 +52064,13 @@ ${lanes.join("\n")}
52704
52064
  }
52705
52065
  function parseTemplateSpans(isTaggedTemplate) {
52706
52066
  const pos = getNodePos();
52707
- const list = [];
52067
+ const list2 = [];
52708
52068
  let node;
52709
52069
  do {
52710
52070
  node = parseTemplateSpan(isTaggedTemplate);
52711
- list.push(node);
52071
+ list2.push(node);
52712
52072
  } while (node.literal.kind === 17);
52713
- return createNodeArray(list, pos);
52073
+ return createNodeArray(list2, pos);
52714
52074
  }
52715
52075
  function parseTemplateExpression(isTaggedTemplate) {
52716
52076
  const pos = getNodePos();
@@ -52737,13 +52097,13 @@ ${lanes.join("\n")}
52737
52097
  }
52738
52098
  function parseTemplateTypeSpans() {
52739
52099
  const pos = getNodePos();
52740
- const list = [];
52100
+ const list2 = [];
52741
52101
  let node;
52742
52102
  do {
52743
52103
  node = parseTemplateTypeSpan();
52744
- list.push(node);
52104
+ list2.push(node);
52745
52105
  } while (node.literal.kind === 17);
52746
- return createNodeArray(list, pos);
52106
+ return createNodeArray(list2, pos);
52747
52107
  }
52748
52108
  function parseTemplateTypeSpan() {
52749
52109
  const pos = getNodePos();
@@ -54883,20 +54243,20 @@ ${lanes.join("\n")}
54883
54243
  }
54884
54244
  }
54885
54245
  function parseJsxChildren(openingTag) {
54886
- const list = [];
54246
+ const list2 = [];
54887
54247
  const listPos = getNodePos();
54888
54248
  const saveParsingContext = parsingContext;
54889
54249
  parsingContext |= 1 << 14;
54890
54250
  while (true) {
54891
54251
  const child = parseJsxChild(openingTag, currentToken = scanner2.reScanJsxToken());
54892
54252
  if (!child) break;
54893
- list.push(child);
54253
+ list2.push(child);
54894
54254
  if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 285 && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) {
54895
54255
  break;
54896
54256
  }
54897
54257
  }
54898
54258
  parsingContext = saveParsingContext;
54899
- return createNodeArray(list, listPos);
54259
+ return createNodeArray(list2, listPos);
54900
54260
  }
54901
54261
  function parseJsxAttributes() {
54902
54262
  const pos = getNodePos();
@@ -56870,31 +56230,31 @@ ${lanes.join("\n")}
56870
56230
  }
56871
56231
  function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
56872
56232
  const pos = getNodePos();
56873
- let list;
56233
+ let list2;
56874
56234
  let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
56875
56235
  if (allowDecorators && token() === 60) {
56876
56236
  while (decorator = tryParseDecorator()) {
56877
- list = append(list, decorator);
56237
+ list2 = append(list2, decorator);
56878
56238
  }
56879
56239
  }
56880
56240
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
56881
56241
  if (modifier.kind === 126) hasSeenStaticModifier = true;
56882
- list = append(list, modifier);
56242
+ list2 = append(list2, modifier);
56883
56243
  hasLeadingModifier = true;
56884
56244
  }
56885
56245
  if (hasLeadingModifier && allowDecorators && token() === 60) {
56886
56246
  while (decorator = tryParseDecorator()) {
56887
- list = append(list, decorator);
56247
+ list2 = append(list2, decorator);
56888
56248
  hasTrailingDecorator = true;
56889
56249
  }
56890
56250
  }
56891
56251
  if (hasTrailingDecorator) {
56892
56252
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
56893
56253
  if (modifier.kind === 126) hasSeenStaticModifier = true;
56894
- list = append(list, modifier);
56254
+ list2 = append(list2, modifier);
56895
56255
  }
56896
56256
  }
56897
- return list && createNodeArray(list, pos);
56257
+ return list2 && createNodeArray(list2, pos);
56898
56258
  }
56899
56259
  function parseModifiersForArrowFunction() {
56900
56260
  let modifiers;
@@ -57920,13 +57280,13 @@ ${lanes.join("\n")}
57920
57280
  state = 2;
57921
57281
  const commentEnd = scanner2.getTokenFullStart();
57922
57282
  const linkStart = scanner2.getTokenEnd() - 1;
57923
- const link = parseJSDocLink(linkStart);
57924
- if (link) {
57283
+ const link2 = parseJSDocLink(linkStart);
57284
+ if (link2) {
57925
57285
  if (!linkEnd) {
57926
57286
  removeLeadingNewlines(comments);
57927
57287
  }
57928
57288
  parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd));
57929
- parts.push(link);
57289
+ parts.push(link2);
57930
57290
  comments = [];
57931
57291
  linkEnd = scanner2.getTokenEnd();
57932
57292
  break;
@@ -58163,10 +57523,10 @@ ${lanes.join("\n")}
58163
57523
  state = 2;
58164
57524
  const commentEnd = scanner2.getTokenFullStart();
58165
57525
  const linkStart = scanner2.getTokenEnd() - 1;
58166
- const link = parseJSDocLink(linkStart);
58167
- if (link) {
57526
+ const link2 = parseJSDocLink(linkStart);
57527
+ if (link2) {
58168
57528
  parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 ?? commentsPos2, commentEnd));
58169
- parts2.push(link);
57529
+ parts2.push(link2);
58170
57530
  comments2 = [];
58171
57531
  linkEnd2 = scanner2.getTokenEnd();
58172
57532
  } else {
@@ -61854,7 +61214,7 @@ ${lanes.join("\n")}
61854
61214
  emitHeader(Diagnostics.File_Layout);
61855
61215
  emitOption("rootDir", "./src", "optional");
61856
61216
  emitOption("outDir", "./dist", "optional");
61857
- newline();
61217
+ newline2();
61858
61218
  emitHeader(Diagnostics.Environment_Settings);
61859
61219
  emitHeader(Diagnostics.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule);
61860
61220
  emitOption(
@@ -61875,7 +61235,7 @@ ${lanes.join("\n")}
61875
61235
  result.push(`${tab}${tab}// "lib": ["esnext"],`);
61876
61236
  result.push(`${tab}${tab}// "types": ["node"],`);
61877
61237
  emitHeader(Diagnostics.and_npm_install_D_types_Slashnode);
61878
- newline();
61238
+ newline2();
61879
61239
  emitHeader(Diagnostics.Other_Outputs);
61880
61240
  emitOption(
61881
61241
  "sourceMap",
@@ -61892,7 +61252,7 @@ ${lanes.join("\n")}
61892
61252
  /*defaultValue*/
61893
61253
  true
61894
61254
  );
61895
- newline();
61255
+ newline2();
61896
61256
  emitHeader(Diagnostics.Stricter_Typechecking_Options);
61897
61257
  emitOption(
61898
61258
  "noUncheckedIndexedAccess",
@@ -61904,7 +61264,7 @@ ${lanes.join("\n")}
61904
61264
  /*defaultValue*/
61905
61265
  true
61906
61266
  );
61907
- newline();
61267
+ newline2();
61908
61268
  emitHeader(Diagnostics.Style_Options);
61909
61269
  emitOption(
61910
61270
  "noImplicitReturns",
@@ -61942,7 +61302,7 @@ ${lanes.join("\n")}
61942
61302
  true,
61943
61303
  "optional"
61944
61304
  );
61945
- newline();
61305
+ newline2();
61946
61306
  emitHeader(Diagnostics.Recommended_Options);
61947
61307
  emitOption(
61948
61308
  "strict",
@@ -61980,12 +61340,12 @@ ${lanes.join("\n")}
61980
61340
  true
61981
61341
  );
61982
61342
  if (allSetOptions.length > 0) {
61983
- newline();
61343
+ newline2();
61984
61344
  while (allSetOptions.length > 0) {
61985
61345
  emitOption(allSetOptions[0], options[allSetOptions[0]]);
61986
61346
  }
61987
61347
  }
61988
- function newline() {
61348
+ function newline2() {
61989
61349
  result.push("");
61990
61350
  }
61991
61351
  function emitHeader(header) {
@@ -62326,12 +61686,12 @@ ${lanes.join("\n")}
62326
61686
  function getSubstitutedPathWithConfigDirTemplate(value, basePath) {
62327
61687
  return getNormalizedAbsolutePath(value.replace(configDirTemplate, "./"), basePath);
62328
61688
  }
62329
- function getSubstitutedStringArrayWithConfigDirTemplate(list, basePath) {
62330
- if (!list) return list;
61689
+ function getSubstitutedStringArrayWithConfigDirTemplate(list2, basePath) {
61690
+ if (!list2) return list2;
62331
61691
  let result;
62332
- list.forEach((element, index) => {
61692
+ list2.forEach((element, index) => {
62333
61693
  if (!startsWithConfigDirTemplate(element)) return;
62334
- (result ?? (result = list.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath);
61694
+ (result ?? (result = list2.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath);
62335
61695
  });
62336
61696
  return result;
62337
61697
  }
@@ -73874,14 +73234,14 @@ ${lanes.join("\n")}
73874
73234
  const referenceParent = referencingLocation.parent;
73875
73235
  const namespaceImport = isImportDeclaration(referenceParent) && getNamespaceDeclarationNode(referenceParent);
73876
73236
  if (namespaceImport || isImportCall(referenceParent)) {
73877
- const reference = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier;
73237
+ const reference2 = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier;
73878
73238
  const type = getTypeOfSymbol(symbol);
73879
- const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference);
73239
+ const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference2);
73880
73240
  if (defaultOnlyType) {
73881
73241
  return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent);
73882
73242
  }
73883
73243
  const targetFile = (_a2 = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a2.find(isSourceFile);
73884
- const usageMode = getEmitSyntaxForModuleSpecifierExpression(reference);
73244
+ const usageMode = getEmitSyntaxForModuleSpecifierExpression(reference2);
73885
73245
  let exportModuleDotExportsSymbol;
73886
73246
  if (namespaceImport && targetFile && 102 <= moduleKind && moduleKind <= 199 && usageMode === 1 && host.getImpliedNodeFormatForEmit(targetFile) === 99 && (exportModuleDotExportsSymbol = resolveExportByName(symbol, "module.exports", namespaceImport, dontResolveAlias))) {
73887
73247
  if (!suppressInteropError && !(symbol.flags & (1536 | 3))) {
@@ -73900,7 +73260,7 @@ ${lanes.join("\n")}
73900
73260
  /*skipObjectFunctionPropertyAugment*/
73901
73261
  true
73902
73262
  ) || isEsmCjsRef) {
73903
- const moduleType = type.flags & 403701760 ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference) : createDefaultPropertyWrapperForModule(symbol, symbol.parent);
73263
+ const moduleType = type.flags & 403701760 ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference2) : createDefaultPropertyWrapperForModule(symbol, symbol.parent);
73904
73264
  return cloneTypeAsModuleType(symbol, moduleType, referenceParent);
73905
73265
  }
73906
73266
  }
@@ -80019,25 +79379,25 @@ ${lanes.join("\n")}
80019
79379
  }
80020
79380
  function trySerializeAsTypeReference(t2, flags) {
80021
79381
  let typeArgs;
80022
- let reference;
79382
+ let reference2;
80023
79383
  if (t2.target && isSymbolAccessibleByFlags(t2.target.symbol, enclosingDeclaration, flags)) {
80024
79384
  typeArgs = map(getTypeArguments(t2), (t22) => typeToTypeNodeHelper(t22, context));
80025
- reference = symbolToExpression(
79385
+ reference2 = symbolToExpression(
80026
79386
  t2.target.symbol,
80027
79387
  context,
80028
79388
  788968
80029
79389
  /* Type */
80030
79390
  );
80031
79391
  } else if (t2.symbol && isSymbolAccessibleByFlags(t2.symbol, enclosingDeclaration, flags)) {
80032
- reference = symbolToExpression(
79392
+ reference2 = symbolToExpression(
80033
79393
  t2.symbol,
80034
79394
  context,
80035
79395
  788968
80036
79396
  /* Type */
80037
79397
  );
80038
79398
  }
80039
- if (reference) {
80040
- return factory.createExpressionWithTypeArguments(reference, typeArgs);
79399
+ if (reference2) {
79400
+ return factory.createExpressionWithTypeArguments(reference2, typeArgs);
80041
79401
  }
80042
79402
  }
80043
79403
  function serializeImplementedType(t2) {
@@ -80589,8 +79949,8 @@ ${lanes.join("\n")}
80589
79949
  );
80590
79950
  }
80591
79951
  function getFlowTypeOfDestructuring(node, declaredType) {
80592
- const reference = getSyntheticElementAccess(node);
80593
- return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType;
79952
+ const reference2 = getSyntheticElementAccess(node);
79953
+ return reference2 ? getFlowTypeOfReference(reference2, declaredType) : declaredType;
80594
79954
  }
80595
79955
  function getSyntheticElementAccess(node) {
80596
79956
  const parentAccess = getParentElementAccess(node);
@@ -80908,23 +80268,23 @@ ${lanes.join("\n")}
80908
80268
  const file = getSourceFileOfNode(symbol.declarations[0]);
80909
80269
  const accessName = unescapeLeadingUnderscores(symbol.escapedName);
80910
80270
  const areAllModuleExports = symbol.declarations.every((d2) => isInJSFile(d2) && isAccessExpression(d2) && isModuleExportsAccessExpression(d2.expression));
80911
- const reference = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName);
80271
+ const reference2 = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName);
80912
80272
  if (areAllModuleExports) {
80913
- setParent(reference.expression.expression, reference.expression);
80273
+ setParent(reference2.expression.expression, reference2.expression);
80914
80274
  }
80915
- setParent(reference.expression, reference);
80916
- setParent(reference, file);
80917
- reference.flowNode = file.endFlowNode;
80918
- return getFlowTypeOfReference(reference, autoType, undefinedType);
80275
+ setParent(reference2.expression, reference2);
80276
+ setParent(reference2, file);
80277
+ reference2.flowNode = file.endFlowNode;
80278
+ return getFlowTypeOfReference(reference2, autoType, undefinedType);
80919
80279
  }
80920
80280
  function getFlowTypeInStaticBlocks(symbol, staticBlocks) {
80921
80281
  const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName);
80922
80282
  for (const staticBlock of staticBlocks) {
80923
- const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80924
- setParent(reference.expression, reference);
80925
- setParent(reference, staticBlock);
80926
- reference.flowNode = staticBlock.returnFlowNode;
80927
- const flowType = getFlowTypeOfProperty(reference, symbol);
80283
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80284
+ setParent(reference2.expression, reference2);
80285
+ setParent(reference2, staticBlock);
80286
+ reference2.flowNode = staticBlock.returnFlowNode;
80287
+ const flowType = getFlowTypeOfProperty(reference2, symbol);
80928
80288
  if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {
80929
80289
  error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));
80930
80290
  }
@@ -80936,19 +80296,19 @@ ${lanes.join("\n")}
80936
80296
  }
80937
80297
  function getFlowTypeInConstructor(symbol, constructor) {
80938
80298
  const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName);
80939
- const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80940
- setParent(reference.expression, reference);
80941
- setParent(reference, constructor);
80942
- reference.flowNode = constructor.returnFlowNode;
80943
- const flowType = getFlowTypeOfProperty(reference, symbol);
80299
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), accessName);
80300
+ setParent(reference2.expression, reference2);
80301
+ setParent(reference2, constructor);
80302
+ reference2.flowNode = constructor.returnFlowNode;
80303
+ const flowType = getFlowTypeOfProperty(reference2, symbol);
80944
80304
  if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {
80945
80305
  error2(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));
80946
80306
  }
80947
80307
  return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType);
80948
80308
  }
80949
- function getFlowTypeOfProperty(reference, prop) {
80309
+ function getFlowTypeOfProperty(reference2, prop) {
80950
80310
  const initialType = (prop == null ? void 0 : prop.valueDeclaration) && (!isAutoTypedProperty(prop) || getEffectiveModifierFlags(prop.valueDeclaration) & 128) && getTypeOfPropertyInBaseClass(prop) || undefinedType;
80951
- return getFlowTypeOfReference(reference, autoType, initialType);
80311
+ return getFlowTypeOfReference(reference2, autoType, initialType);
80952
80312
  }
80953
80313
  function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) {
80954
80314
  const container = getAssignedExpandoInitializer(symbol.valueDeclaration);
@@ -83686,8 +83046,8 @@ ${lanes.join("\n")}
83686
83046
  }
83687
83047
  }
83688
83048
  function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {
83689
- const list = obj.properties;
83690
- return list.some((property) => {
83049
+ const list2 = obj.properties;
83050
+ return list2.some((property) => {
83691
83051
  const nameType = property.name && (isJsxNamespacedName(property.name) ? getStringLiteralType(getTextOfJsxAttributeName(property.name)) : getLiteralTypeFromPropertyName(property.name));
83692
83052
  const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0;
83693
83053
  const expected = name === void 0 ? void 0 : getTypeOfPropertyOfType(contextualType, name);
@@ -86489,14 +85849,14 @@ ${lanes.join("\n")}
86489
85849
  while (i2 > 0) {
86490
85850
  i2--;
86491
85851
  const t2 = types[i2];
86492
- if (t2.flags & 1024 && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t2, template))) {
85852
+ if (t2.flags & 1024 && some(templates, (template2) => isTypeMatchedByTemplateLiteralOrStringMapping(t2, template2))) {
86493
85853
  orderedRemoveItemAt(types, i2);
86494
85854
  }
86495
85855
  }
86496
85856
  }
86497
85857
  }
86498
- function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
86499
- return template.flags & 4194304 ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
85858
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template2) {
85859
+ return template2.flags & 4194304 ? isTypeMatchedByTemplateLiteralType(type, template2) : isMemberOfStringMapping(type, template2);
86500
85860
  }
86501
85861
  function removeConstrainedTypeVariables(types) {
86502
85862
  const typeVariables = [];
@@ -95123,15 +94483,15 @@ ${lanes.join("\n")}
95123
94483
  function isOrContainsMatchingReference(source, target) {
95124
94484
  return isMatchingReference(source, target) || containsMatchingReference(source, target);
95125
94485
  }
95126
- function hasMatchingArgument(expression, reference) {
94486
+ function hasMatchingArgument(expression, reference2) {
95127
94487
  if (expression.arguments) {
95128
94488
  for (const argument of expression.arguments) {
95129
- if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) {
94489
+ if (isOrContainsMatchingReference(reference2, argument) || optionalChainContainsReference(argument, reference2)) {
95130
94490
  return true;
95131
94491
  }
95132
94492
  }
95133
94493
  }
95134
- if (expression.expression.kind === 212 && isOrContainsMatchingReference(reference, expression.expression.expression)) {
94494
+ if (expression.expression.kind === 212 && isOrContainsMatchingReference(reference2, expression.expression.expression)) {
95135
94495
  return true;
95136
94496
  }
95137
94497
  return false;
@@ -95937,7 +95297,7 @@ ${lanes.join("\n")}
95937
95297
  }
95938
95298
  return false;
95939
95299
  }
95940
- function getFlowTypeOfReference(reference, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a2) => (_a2 = tryCast(reference, canHaveFlowNode)) == null ? void 0 : _a2.flowNode)()) {
95300
+ function getFlowTypeOfReference(reference2, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a2) => (_a2 = tryCast(reference2, canHaveFlowNode)) == null ? void 0 : _a2.flowNode)()) {
95941
95301
  let key;
95942
95302
  let isKeySet = false;
95943
95303
  let flowDepth = 0;
@@ -95951,8 +95311,8 @@ ${lanes.join("\n")}
95951
95311
  const sharedFlowStart = sharedFlowCount;
95952
95312
  const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode));
95953
95313
  sharedFlowCount = sharedFlowStart;
95954
- const resultType = getObjectFlags(evolvedType) & 256 && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);
95955
- if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 236 && !(resultType.flags & 262144) && getTypeWithFacts(
95314
+ const resultType = getObjectFlags(evolvedType) & 256 && isEvolvingArrayOperationTarget(reference2) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);
95315
+ if (resultType === unreachableNeverType || reference2.parent && reference2.parent.kind === 236 && !(resultType.flags & 262144) && getTypeWithFacts(
95956
95316
  resultType,
95957
95317
  2097152
95958
95318
  /* NEUndefinedOrNull */
@@ -95965,14 +95325,14 @@ ${lanes.join("\n")}
95965
95325
  return key;
95966
95326
  }
95967
95327
  isKeySet = true;
95968
- return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer);
95328
+ return key = getFlowCacheKey(reference2, declaredType, initialType, flowContainer);
95969
95329
  }
95970
95330
  function getTypeAtFlowNode(flow) {
95971
95331
  var _a2;
95972
95332
  if (flowDepth === 2e3) {
95973
95333
  (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "getTypeAtFlowNode_DepthLimit", { flowId: flow.id });
95974
95334
  flowAnalysisDisabled = true;
95975
- reportFlowControlError(reference);
95335
+ reportFlowControlError(reference2);
95976
95336
  return errorType;
95977
95337
  }
95978
95338
  flowDepth++;
@@ -96025,7 +95385,7 @@ ${lanes.join("\n")}
96025
95385
  target.antecedent = saveAntecedents;
96026
95386
  } else if (flags & 2) {
96027
95387
  const container = flow.node;
96028
- if (container && container !== flowContainer && reference.kind !== 212 && reference.kind !== 213 && !(reference.kind === 110 && container.kind !== 220)) {
95388
+ if (container && container !== flowContainer && reference2.kind !== 212 && reference2.kind !== 213 && !(reference2.kind === 110 && container.kind !== 220)) {
96029
95389
  flow = container.flowNode;
96030
95390
  continue;
96031
95391
  }
@@ -96046,12 +95406,12 @@ ${lanes.join("\n")}
96046
95406
  const node = flow.node;
96047
95407
  return getNarrowableTypeForReference(
96048
95408
  node.kind === 261 || node.kind === 209 ? getInitialType(node) : getAssignedType(node),
96049
- reference
95409
+ reference2
96050
95410
  );
96051
95411
  }
96052
95412
  function getTypeAtFlowAssignment(flow) {
96053
95413
  const node = flow.node;
96054
- if (isMatchingReference(reference, node)) {
95414
+ if (isMatchingReference(reference2, node)) {
96055
95415
  if (!isReachableFlowNode(flow)) {
96056
95416
  return unreachableNeverType;
96057
95417
  }
@@ -96072,7 +95432,7 @@ ${lanes.join("\n")}
96072
95432
  }
96073
95433
  return t2;
96074
95434
  }
96075
- if (containsMatchingReference(reference, node)) {
95435
+ if (containsMatchingReference(reference2, node)) {
96076
95436
  if (!isReachableFlowNode(flow)) {
96077
95437
  return unreachableNeverType;
96078
95438
  }
@@ -96084,7 +95444,7 @@ ${lanes.join("\n")}
96084
95444
  }
96085
95445
  return declaredType;
96086
95446
  }
96087
- if (isVariableDeclaration(node) && node.parent.parent.kind === 250 && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) {
95447
+ if (isVariableDeclaration(node) && node.parent.parent.kind === 250 && (isMatchingReference(reference2, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference2))) {
96088
95448
  return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent))));
96089
95449
  }
96090
95450
  return void 0;
@@ -96139,7 +95499,7 @@ ${lanes.join("\n")}
96139
95499
  if (declaredType === autoType || declaredType === autoArrayType) {
96140
95500
  const node = flow.node;
96141
95501
  const expr = node.kind === 214 ? node.expression.expression : node.left.expression;
96142
- if (isMatchingReference(reference, getReferenceCandidate(expr))) {
95502
+ if (isMatchingReference(reference2, getReferenceCandidate(expr))) {
96143
95503
  const flowType = getTypeAtFlowNode(flow.antecedent);
96144
95504
  const type = getTypeFromFlowType(flowType);
96145
95505
  if (getObjectFlags(type) & 256) {
@@ -96183,17 +95543,17 @@ ${lanes.join("\n")}
96183
95543
  const expr = skipParentheses(flow.node.switchStatement.expression);
96184
95544
  const flowType = getTypeAtFlowNode(flow.antecedent);
96185
95545
  let type = getTypeFromFlowType(flowType);
96186
- if (isMatchingReference(reference, expr)) {
95546
+ if (isMatchingReference(reference2, expr)) {
96187
95547
  type = narrowTypeBySwitchOnDiscriminant(type, flow.node);
96188
- } else if (expr.kind === 222 && isMatchingReference(reference, expr.expression)) {
95548
+ } else if (expr.kind === 222 && isMatchingReference(reference2, expr.expression)) {
96189
95549
  type = narrowTypeBySwitchOnTypeOf(type, flow.node);
96190
95550
  } else if (expr.kind === 112) {
96191
95551
  type = narrowTypeBySwitchOnTrue(type, flow.node);
96192
95552
  } else {
96193
95553
  if (strictNullChecks) {
96194
- if (optionalChainContainsReference(expr, reference)) {
95554
+ if (optionalChainContainsReference(expr, reference2)) {
96195
95555
  type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t2) => !(t2.flags & (4 | 262144)));
96196
- } else if (expr.kind === 222 && optionalChainContainsReference(expr.expression, reference)) {
95556
+ } else if (expr.kind === 222 && optionalChainContainsReference(expr.expression, reference2)) {
96197
95557
  type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t2) => !(t2.flags & 262144 || t2.flags & 1024 && t2.value === "undefined"));
96198
95558
  }
96199
95559
  }
@@ -96330,16 +95690,16 @@ ${lanes.join("\n")}
96330
95690
  return result;
96331
95691
  }
96332
95692
  function getCandidateDiscriminantPropertyAccess(expr) {
96333
- if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) {
95693
+ if (isBindingPattern(reference2) || isFunctionExpressionOrArrowFunction(reference2) || isObjectLiteralMethod(reference2)) {
96334
95694
  if (isIdentifier(expr)) {
96335
95695
  const symbol = getResolvedSymbol(expr);
96336
95696
  const declaration = getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
96337
- if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
95697
+ if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference2 === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) {
96338
95698
  return declaration;
96339
95699
  }
96340
95700
  }
96341
95701
  } else if (isAccessExpression(expr)) {
96342
- if (isMatchingReference(reference, expr.expression)) {
95702
+ if (isMatchingReference(reference2, expr.expression)) {
96343
95703
  return expr;
96344
95704
  }
96345
95705
  } else if (isIdentifier(expr)) {
@@ -96347,12 +95707,12 @@ ${lanes.join("\n")}
96347
95707
  if (isConstantVariable(symbol)) {
96348
95708
  const declaration = symbol.valueDeclaration;
96349
95709
  let initializer = getCandidateVariableDeclarationInitializer(declaration);
96350
- if (initializer && isAccessExpression(initializer) && isMatchingReference(reference, initializer.expression)) {
95710
+ if (initializer && isAccessExpression(initializer) && isMatchingReference(reference2, initializer.expression)) {
96351
95711
  return initializer;
96352
95712
  }
96353
95713
  if (isBindingElement(declaration) && !declaration.initializer) {
96354
95714
  initializer = getCandidateVariableDeclarationInitializer(declaration.parent.parent);
96355
- if (initializer && (isIdentifier(initializer) || isAccessExpression(initializer)) && isMatchingReference(reference, initializer)) {
95715
+ if (initializer && (isIdentifier(initializer) || isAccessExpression(initializer)) && isMatchingReference(reference2, initializer)) {
96356
95716
  return declaration;
96357
95717
  }
96358
95718
  }
@@ -96427,14 +95787,14 @@ ${lanes.join("\n")}
96427
95787
  return narrowTypeByDiscriminant(type, access, (t2) => narrowTypeBySwitchOnDiscriminant(t2, data));
96428
95788
  }
96429
95789
  function narrowTypeByTruthiness(type, expr, assumeTrue) {
96430
- if (isMatchingReference(reference, expr)) {
95790
+ if (isMatchingReference(reference2, expr)) {
96431
95791
  return getAdjustedTypeWithFacts(
96432
95792
  type,
96433
95793
  assumeTrue ? 4194304 : 8388608
96434
95794
  /* Falsy */
96435
95795
  );
96436
95796
  }
96437
- if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) {
95797
+ if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference2)) {
96438
95798
  type = getAdjustedTypeWithFacts(
96439
95799
  type,
96440
95800
  2097152
@@ -96498,16 +95858,16 @@ ${lanes.join("\n")}
96498
95858
  if (right2.kind === 222 && isStringLiteralLike(left2)) {
96499
95859
  return narrowTypeByTypeof(type, right2, operator, left2, assumeTrue);
96500
95860
  }
96501
- if (isMatchingReference(reference, left2)) {
95861
+ if (isMatchingReference(reference2, left2)) {
96502
95862
  return narrowTypeByEquality(type, operator, right2, assumeTrue);
96503
95863
  }
96504
- if (isMatchingReference(reference, right2)) {
95864
+ if (isMatchingReference(reference2, right2)) {
96505
95865
  return narrowTypeByEquality(type, operator, left2, assumeTrue);
96506
95866
  }
96507
95867
  if (strictNullChecks) {
96508
- if (optionalChainContainsReference(left2, reference)) {
95868
+ if (optionalChainContainsReference(left2, reference2)) {
96509
95869
  type = narrowTypeByOptionalChainContainment(type, operator, right2, assumeTrue);
96510
- } else if (optionalChainContainsReference(right2, reference)) {
95870
+ } else if (optionalChainContainsReference(right2, reference2)) {
96511
95871
  type = narrowTypeByOptionalChainContainment(type, operator, left2, assumeTrue);
96512
95872
  }
96513
95873
  }
@@ -96539,9 +95899,9 @@ ${lanes.join("\n")}
96539
95899
  return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue);
96540
95900
  }
96541
95901
  const target = getReferenceCandidate(expr.right);
96542
- if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) {
95902
+ if (containsMissingType(type) && isAccessExpression(reference2) && isMatchingReference(reference2.expression, target)) {
96543
95903
  const leftType = getTypeOfExpression(expr.left);
96544
- if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) {
95904
+ if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference2) === getPropertyNameFromType(leftType)) {
96545
95905
  return getTypeWithFacts(
96546
95906
  type,
96547
95907
  assumeTrue ? 524288 : 65536
@@ -96549,7 +95909,7 @@ ${lanes.join("\n")}
96549
95909
  );
96550
95910
  }
96551
95911
  }
96552
- if (isMatchingReference(reference, target)) {
95912
+ if (isMatchingReference(reference2, target)) {
96553
95913
  const leftType = getTypeOfExpression(expr.left);
96554
95914
  if (isTypeUsableAsPropertyName(leftType)) {
96555
95915
  return narrowTypeByInKeyword(type, leftType, assumeTrue);
@@ -96610,7 +95970,7 @@ ${lanes.join("\n")}
96610
95970
  }
96611
95971
  function narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue) {
96612
95972
  const target = getReferenceCandidate(expr.right);
96613
- if (!isMatchingReference(reference, target)) {
95973
+ if (!isMatchingReference(reference2, target)) {
96614
95974
  return type;
96615
95975
  }
96616
95976
  Debug.assertNode(expr.left, isPrivateIdentifier);
@@ -96677,8 +96037,8 @@ ${lanes.join("\n")}
96677
96037
  assumeTrue = !assumeTrue;
96678
96038
  }
96679
96039
  const target = getReferenceCandidate(typeOfExpr.expression);
96680
- if (!isMatchingReference(reference, target)) {
96681
- if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== "undefined")) {
96040
+ if (!isMatchingReference(reference2, target)) {
96041
+ if (strictNullChecks && optionalChainContainsReference(target, reference2) && assumeTrue === (literal.text !== "undefined")) {
96682
96042
  type = getAdjustedTypeWithFacts(
96683
96043
  type,
96684
96044
  2097152
@@ -96890,7 +96250,7 @@ ${lanes.join("\n")}
96890
96250
  ) : neverType));
96891
96251
  }
96892
96252
  function isMatchingConstructorReference(expr) {
96893
- return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference, expr.expression);
96253
+ return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference2, expr.expression);
96894
96254
  }
96895
96255
  function narrowTypeByConstructor(type, operator, identifier, assumeTrue) {
96896
96256
  if (assumeTrue ? operator !== 35 && operator !== 37 : operator !== 36 && operator !== 38) {
@@ -96922,8 +96282,8 @@ ${lanes.join("\n")}
96922
96282
  }
96923
96283
  function narrowTypeByInstanceof(type, expr, assumeTrue) {
96924
96284
  const left2 = getReferenceCandidate(expr.left);
96925
- if (!isMatchingReference(reference, left2)) {
96926
- if (assumeTrue && strictNullChecks && optionalChainContainsReference(left2, reference)) {
96285
+ if (!isMatchingReference(reference2, left2)) {
96286
+ if (assumeTrue && strictNullChecks && optionalChainContainsReference(left2, reference2)) {
96927
96287
  return getAdjustedTypeWithFacts(
96928
96288
  type,
96929
96289
  2097152
@@ -97025,18 +96385,18 @@ ${lanes.join("\n")}
97025
96385
  return !(narrowedType.flags & 262144) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
97026
96386
  }
97027
96387
  function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
97028
- if (hasMatchingArgument(callExpression, reference)) {
96388
+ if (hasMatchingArgument(callExpression, reference2)) {
97029
96389
  const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;
97030
96390
  const predicate = signature && getTypePredicateOfSignature(signature);
97031
96391
  if (predicate && (predicate.kind === 0 || predicate.kind === 1)) {
97032
96392
  return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
97033
96393
  }
97034
96394
  }
97035
- if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {
96395
+ if (containsMissingType(type) && isAccessExpression(reference2) && isPropertyAccessExpression(callExpression.expression)) {
97036
96396
  const callAccess = callExpression.expression;
97037
- if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) {
96397
+ if (isMatchingReference(reference2.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) {
97038
96398
  const argument = callExpression.arguments[0];
97039
- if (isStringLiteralLike(argument) && getAccessedPropertyName(reference) === escapeLeadingUnderscores(argument.text)) {
96399
+ if (isStringLiteralLike(argument) && getAccessedPropertyName(reference2) === escapeLeadingUnderscores(argument.text)) {
97040
96400
  return getTypeWithFacts(
97041
96401
  type,
97042
96402
  assumeTrue ? 524288 : 65536
@@ -97051,7 +96411,7 @@ ${lanes.join("\n")}
97051
96411
  if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) {
97052
96412
  const predicateArgument = getTypePredicateArgument(predicate, callExpression);
97053
96413
  if (predicateArgument) {
97054
- if (isMatchingReference(reference, predicateArgument)) {
96414
+ if (isMatchingReference(reference2, predicateArgument)) {
97055
96415
  return getNarrowedType(
97056
96416
  type,
97057
96417
  predicate.type,
@@ -97060,7 +96420,7 @@ ${lanes.join("\n")}
97060
96420
  false
97061
96421
  );
97062
96422
  }
97063
- if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference) && (assumeTrue && !hasTypeFacts(
96423
+ if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference2) && (assumeTrue && !hasTypeFacts(
97064
96424
  predicate.type,
97065
96425
  65536
97066
96426
  /* EQUndefined */
@@ -97091,11 +96451,11 @@ ${lanes.join("\n")}
97091
96451
  }
97092
96452
  switch (expr.kind) {
97093
96453
  case 80:
97094
- if (!isMatchingReference(reference, expr) && inlineLevel < 5) {
96454
+ if (!isMatchingReference(reference2, expr) && inlineLevel < 5) {
97095
96455
  const symbol = getResolvedSymbol(expr);
97096
96456
  if (isConstantVariable(symbol)) {
97097
96457
  const declaration = symbol.valueDeclaration;
97098
- if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) {
96458
+ if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference2)) {
97099
96459
  inlineLevel++;
97100
96460
  const result = narrowType(type, declaration.initializer, assumeTrue);
97101
96461
  inlineLevel--;
@@ -97126,7 +96486,7 @@ ${lanes.join("\n")}
97126
96486
  return type;
97127
96487
  }
97128
96488
  function narrowTypeByOptionality(type, expr, assumePresent) {
97129
- if (isMatchingReference(reference, expr)) {
96489
+ if (isMatchingReference(reference2, expr)) {
97130
96490
  return getAdjustedTypeWithFacts(
97131
96491
  type,
97132
96492
  assumePresent ? 2097152 : 262144
@@ -97365,11 +96725,11 @@ ${lanes.join("\n")}
97365
96725
  ));
97366
96726
  return contextualType && !isGenericType(contextualType);
97367
96727
  }
97368
- function getNarrowableTypeForReference(type, reference, checkMode) {
96728
+ function getNarrowableTypeForReference(type, reference2, checkMode) {
97369
96729
  if (isNoInferType(type)) {
97370
96730
  type = type.baseType;
97371
96731
  }
97372
- const substituteConstraints = !(checkMode && checkMode & 2) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode));
96732
+ const substituteConstraints = !(checkMode && checkMode & 2) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference2) || hasContextualTypeWithNoGenericTypes(reference2, checkMode));
97373
96733
  return substituteConstraints ? mapType(type, getBaseConstraintOrType) : type;
97374
96734
  }
97375
96735
  function isExportOrExportExpression(location) {
@@ -98705,9 +98065,9 @@ ${lanes.join("\n")}
98705
98065
  const signature = getDecoratorCallSignature(decorator);
98706
98066
  return signature ? getOrCreateTypeFromSignature(signature) : void 0;
98707
98067
  }
98708
- function getContextualTypeForSubstitutionExpression(template, substitutionExpression) {
98709
- if (template.parent.kind === 216) {
98710
- return getContextualTypeForArgument(template.parent, substitutionExpression);
98068
+ function getContextualTypeForSubstitutionExpression(template2, substitutionExpression) {
98069
+ if (template2.parent.kind === 216) {
98070
+ return getContextualTypeForArgument(template2.parent, substitutionExpression);
98711
98071
  }
98712
98072
  return void 0;
98713
98073
  }
@@ -102323,10 +101683,10 @@ ${lanes.join("\n")}
102323
101683
  return [createSyntheticExpression(node, emptyFreshJsxObjectType)];
102324
101684
  }
102325
101685
  if (node.kind === 216) {
102326
- const template = node.template;
102327
- const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())];
102328
- if (template.kind === 229) {
102329
- forEach(template.templateSpans, (span) => {
101686
+ const template2 = node.template;
101687
+ const args2 = [createSyntheticExpression(template2, getGlobalTemplateStringsArrayType())];
101688
+ if (template2.kind === 229) {
101689
+ forEach(template2.templateSpans, (span) => {
102330
101690
  args2.push(span.expression);
102331
101691
  });
102332
101692
  }
@@ -112318,11 +111678,11 @@ ${lanes.join("\n")}
112318
111678
  function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) {
112319
111679
  for (const staticBlock of staticBlocks) {
112320
111680
  if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) {
112321
- const reference = factory.createPropertyAccessExpression(factory.createThis(), propName);
112322
- setParent(reference.expression, reference);
112323
- setParent(reference, staticBlock);
112324
- reference.flowNode = staticBlock.returnFlowNode;
112325
- const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
111681
+ const reference2 = factory.createPropertyAccessExpression(factory.createThis(), propName);
111682
+ setParent(reference2.expression, reference2);
111683
+ setParent(reference2, staticBlock);
111684
+ reference2.flowNode = staticBlock.returnFlowNode;
111685
+ const flowType = getFlowTypeOfReference(reference2, propType, getOptionalType(propType));
112326
111686
  if (!containsUndefinedType(flowType)) {
112327
111687
  return true;
112328
111688
  }
@@ -112331,11 +111691,11 @@ ${lanes.join("\n")}
112331
111691
  return false;
112332
111692
  }
112333
111693
  function isPropertyInitializedInConstructor(propName, propType, constructor) {
112334
- const reference = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName);
112335
- setParent(reference.expression, reference);
112336
- setParent(reference, constructor);
112337
- reference.flowNode = constructor.returnFlowNode;
112338
- const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
111694
+ const reference2 = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName);
111695
+ setParent(reference2.expression, reference2);
111696
+ setParent(reference2, constructor);
111697
+ reference2.flowNode = constructor.returnFlowNode;
111698
+ const flowType = getFlowTypeOfReference(reference2, propType, getOptionalType(propType));
112339
111699
  return !containsUndefinedType(flowType);
112340
111700
  }
112341
111701
  function checkInterfaceDeclaration(node) {
@@ -115410,21 +114770,21 @@ ${lanes.join("\n")}
115410
114770
  function hasGlobalName(name) {
115411
114771
  return globals.has(escapeLeadingUnderscores(name));
115412
114772
  }
115413
- function getReferencedValueSymbol(reference, startInDeclarationContainer) {
115414
- const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
114773
+ function getReferencedValueSymbol(reference2, startInDeclarationContainer) {
114774
+ const resolvedSymbol = getNodeLinks(reference2).resolvedSymbol;
115415
114775
  if (resolvedSymbol) {
115416
114776
  return resolvedSymbol;
115417
114777
  }
115418
- let location = reference;
114778
+ let location = reference2;
115419
114779
  if (startInDeclarationContainer) {
115420
- const parent2 = reference.parent;
115421
- if (isDeclaration(parent2) && reference === parent2.name) {
114780
+ const parent2 = reference2.parent;
114781
+ if (isDeclaration(parent2) && reference2 === parent2.name) {
115422
114782
  location = getDeclarationContainer(parent2);
115423
114783
  }
115424
114784
  }
115425
114785
  return resolveName(
115426
114786
  location,
115427
- reference.escapedText,
114787
+ reference2.escapedText,
115428
114788
  111551 | 1048576 | 2097152,
115429
114789
  /*nameNotFoundMessage*/
115430
114790
  void 0,
@@ -115432,14 +114792,14 @@ ${lanes.join("\n")}
115432
114792
  true
115433
114793
  );
115434
114794
  }
115435
- function getReferencedValueOrAliasSymbol(reference) {
115436
- const resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
114795
+ function getReferencedValueOrAliasSymbol(reference2) {
114796
+ const resolvedSymbol = getNodeLinks(reference2).resolvedSymbol;
115437
114797
  if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
115438
114798
  return resolvedSymbol;
115439
114799
  }
115440
114800
  return resolveName(
115441
- reference,
115442
- reference.escapedText,
114801
+ reference2,
114802
+ reference2.escapedText,
115443
114803
  111551 | 1048576 | 2097152,
115444
114804
  /*nameNotFoundMessage*/
115445
114805
  void 0,
@@ -115451,9 +114811,9 @@ ${lanes.join("\n")}
115451
114811
  }
115452
114812
  function getReferencedValueDeclaration(referenceIn) {
115453
114813
  if (!isGeneratedIdentifier(referenceIn)) {
115454
- const reference = getParseTreeNode(referenceIn, isIdentifier);
115455
- if (reference) {
115456
- const symbol = getReferencedValueSymbol(reference);
114814
+ const reference2 = getParseTreeNode(referenceIn, isIdentifier);
114815
+ if (reference2) {
114816
+ const symbol = getReferencedValueSymbol(reference2);
115457
114817
  if (symbol) {
115458
114818
  return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;
115459
114819
  }
@@ -115463,9 +114823,9 @@ ${lanes.join("\n")}
115463
114823
  }
115464
114824
  function getReferencedValueDeclarations(referenceIn) {
115465
114825
  if (!isGeneratedIdentifier(referenceIn)) {
115466
- const reference = getParseTreeNode(referenceIn, isIdentifier);
115467
- if (reference) {
115468
- const symbol = getReferencedValueSymbol(reference);
114826
+ const reference2 = getParseTreeNode(referenceIn, isIdentifier);
114827
+ if (reference2) {
114828
+ const symbol = getReferencedValueSymbol(reference2);
115469
114829
  if (symbol) {
115470
114830
  return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => {
115471
114831
  switch (declaration.kind) {
@@ -115806,8 +115166,8 @@ ${lanes.join("\n")}
115806
115166
  }
115807
115167
  }
115808
115168
  if (augmentations) {
115809
- for (const list of augmentations) {
115810
- for (const augmentation of list) {
115169
+ for (const list2 of augmentations) {
115170
+ for (const augmentation of list2) {
115811
115171
  if (!isGlobalScopeAugmentation(augmentation.parent)) continue;
115812
115172
  mergeModuleAugmentation(augmentation);
115813
115173
  }
@@ -115911,8 +115271,8 @@ ${lanes.join("\n")}
115911
115271
  1
115912
115272
  );
115913
115273
  if (augmentations) {
115914
- for (const list of augmentations) {
115915
- for (const augmentation of list) {
115274
+ for (const list2 of augmentations) {
115275
+ for (const augmentation of list2) {
115916
115276
  if (isGlobalScopeAugmentation(augmentation.parent)) continue;
115917
115277
  mergeModuleAugmentation(augmentation);
115918
115278
  }
@@ -115930,13 +115290,13 @@ ${lanes.join("\n")}
115930
115290
  }
115931
115291
  });
115932
115292
  } else {
115933
- const list = arrayFrom(conflictingSymbols.keys()).join(", ");
115293
+ const list2 = arrayFrom(conflictingSymbols.keys()).join(", ");
115934
115294
  diagnostics.add(addRelatedInfo(
115935
- createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list),
115295
+ createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list2),
115936
115296
  createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file)
115937
115297
  ));
115938
115298
  diagnostics.add(addRelatedInfo(
115939
- createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list),
115299
+ createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list2),
115940
115300
  createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file)
115941
115301
  ));
115942
115302
  }
@@ -116465,9 +115825,9 @@ ${lanes.join("\n")}
116465
115825
  }
116466
115826
  return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async");
116467
115827
  }
116468
- function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) {
116469
- if (list && list.hasTrailingComma) {
116470
- return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag2);
115828
+ function checkGrammarForDisallowedTrailingComma(list2, diag2 = Diagnostics.Trailing_comma_not_allowed) {
115829
+ if (list2 && list2.hasTrailingComma) {
115830
+ return grammarErrorAtPos(list2[0], list2.end - ",".length, ",".length, diag2);
116471
115831
  }
116472
115832
  return false;
116473
115833
  }
@@ -120376,21 +119736,21 @@ ${lanes.join("\n")}
120376
119736
  const lists = [];
120377
119737
  for (const mapping of getDecodedMappings()) {
120378
119738
  if (!isSourceMappedPosition(mapping)) continue;
120379
- let list = lists[mapping.sourceIndex];
120380
- if (!list) lists[mapping.sourceIndex] = list = [];
120381
- list.push(mapping);
119739
+ let list2 = lists[mapping.sourceIndex];
119740
+ if (!list2) lists[mapping.sourceIndex] = list2 = [];
119741
+ list2.push(mapping);
120382
119742
  }
120383
- sourceMappings = lists.map((list) => sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition));
119743
+ sourceMappings = lists.map((list2) => sortAndDeduplicate(list2, compareSourcePositions, sameMappedPosition));
120384
119744
  }
120385
119745
  return sourceMappings[sourceIndex];
120386
119746
  }
120387
119747
  function getGeneratedMappings() {
120388
119748
  if (generatedMappings === void 0) {
120389
- const list = [];
119749
+ const list2 = [];
120390
119750
  for (const mapping of getDecodedMappings()) {
120391
- list.push(mapping);
119751
+ list2.push(mapping);
120392
119752
  }
120393
- generatedMappings = sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);
119753
+ generatedMappings = sortAndDeduplicate(list2, compareGeneratedPositions, sameMappedPosition);
120394
119754
  }
120395
119755
  return generatedMappings;
120396
119756
  }
@@ -121696,18 +121056,18 @@ ${lanes.join("\n")}
121696
121056
  const templateArguments = [void 0];
121697
121057
  const cookedStrings = [];
121698
121058
  const rawStrings = [];
121699
- const template = node.template;
121700
- if (level === 0 && !hasInvalidEscape(template)) {
121059
+ const template2 = node.template;
121060
+ if (level === 0 && !hasInvalidEscape(template2)) {
121701
121061
  return visitEachChild(node, visitor, context);
121702
121062
  }
121703
121063
  const { factory: factory2 } = context;
121704
- if (isNoSubstitutionTemplateLiteral(template)) {
121705
- cookedStrings.push(createTemplateCooked(factory2, template));
121706
- rawStrings.push(getRawLiteral(factory2, template, currentSourceFile));
121064
+ if (isNoSubstitutionTemplateLiteral(template2)) {
121065
+ cookedStrings.push(createTemplateCooked(factory2, template2));
121066
+ rawStrings.push(getRawLiteral(factory2, template2, currentSourceFile));
121707
121067
  } else {
121708
- cookedStrings.push(createTemplateCooked(factory2, template.head));
121709
- rawStrings.push(getRawLiteral(factory2, template.head, currentSourceFile));
121710
- for (const templateSpan of template.templateSpans) {
121068
+ cookedStrings.push(createTemplateCooked(factory2, template2.head));
121069
+ rawStrings.push(getRawLiteral(factory2, template2.head, currentSourceFile));
121070
+ for (const templateSpan of template2.templateSpans) {
121711
121071
  cookedStrings.push(createTemplateCooked(factory2, templateSpan.literal));
121712
121072
  rawStrings.push(getRawLiteral(factory2, templateSpan.literal, currentSourceFile));
121713
121073
  templateArguments.push(Debug.checkDefined(visitNode(templateSpan.expression, visitor, isExpression)));
@@ -121737,8 +121097,8 @@ ${lanes.join("\n")}
121737
121097
  templateArguments
121738
121098
  );
121739
121099
  }
121740
- function createTemplateCooked(factory2, template) {
121741
- return template.templateFlags & 26656 ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
121100
+ function createTemplateCooked(factory2, template2) {
121101
+ return template2.templateFlags & 26656 ? factory2.createVoidZero() : factory2.createStringLiteral(template2.text);
121742
121102
  }
121743
121103
  function getRawLiteral(factory2, node, currentSourceFile) {
121744
121104
  let text = node.rawText;
@@ -128284,13 +127644,13 @@ ${lanes.join("\n")}
128284
127644
  const boundTag = factory2.createFunctionBindCall(tag, classThis, []);
128285
127645
  setOriginalNode(boundTag, node);
128286
127646
  setTextRange(boundTag, node);
128287
- const template = visitNode(node.template, visitor, isTemplateLiteral);
127647
+ const template2 = visitNode(node.template, visitor, isTemplateLiteral);
128288
127648
  return factory2.updateTaggedTemplateExpression(
128289
127649
  node,
128290
127650
  boundTag,
128291
127651
  /*typeArguments*/
128292
127652
  void 0,
128293
- template
127653
+ template2
128294
127654
  );
128295
127655
  }
128296
127656
  return visitEachChild(node, visitor, context);
@@ -136366,12 +135726,12 @@ ${lanes.join("\n")}
136366
135726
  0,
136367
135727
  temp
136368
135728
  );
136369
- const list = factory2.createVariableDeclarationList(vars);
136370
- setTextRange(list, node.variableDeclaration);
135729
+ const list2 = factory2.createVariableDeclarationList(vars);
135730
+ setTextRange(list2, node.variableDeclaration);
136371
135731
  const destructure = factory2.createVariableStatement(
136372
135732
  /*modifiers*/
136373
135733
  void 0,
136374
- list
135734
+ list2
136375
135735
  );
136376
135736
  updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure));
136377
135737
  } else {
@@ -136657,23 +136017,23 @@ ${lanes.join("\n")}
136657
136017
  }
136658
136018
  function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) {
136659
136019
  const numElements = elements.length;
136660
- const segments = flatten(
136020
+ const segments2 = flatten(
136661
136021
  // As we visit each element, we return one of two functions to use as the "key":
136662
136022
  // - `visitSpanOfSpreads` for one or more contiguous `...` spread expressions, i.e. `...a, ...b` in `[1, 2, ...a, ...b]`
136663
136023
  // - `visitSpanOfNonSpreads` for one or more contiguous non-spread elements, i.e. `1, 2`, in `[1, 2, ...a, ...b]`
136664
136024
  spanMap(elements, partitionSpread, (partition, visitPartition, _start, end) => visitPartition(partition, multiLine, hasTrailingComma && end === numElements))
136665
136025
  );
136666
- if (segments.length === 1) {
136667
- const firstSegment = segments[0];
136026
+ if (segments2.length === 1) {
136027
+ const firstSegment = segments2[0];
136668
136028
  if (isArgumentList && !compilerOptions.downlevelIteration || isPackedArrayLiteral(firstSegment.expression) || isCallToHelper(firstSegment.expression, "___spreadArray")) {
136669
136029
  return firstSegment.expression;
136670
136030
  }
136671
136031
  }
136672
136032
  const helpers = emitHelpers();
136673
- const startsWithSpread = segments[0].kind !== 0;
136674
- let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments[0].expression;
136675
- for (let i2 = startsWithSpread ? 0 : 1; i2 < segments.length; i2++) {
136676
- const segment = segments[i2];
136033
+ const startsWithSpread = segments2[0].kind !== 0;
136034
+ let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments2[0].expression;
136035
+ for (let i2 = startsWithSpread ? 0 : 1; i2 < segments2.length; i2++) {
136036
+ const segment = segments2[i2];
136677
136037
  expression = helpers.createSpreadArrayHelper(
136678
136038
  expression,
136679
136039
  segment.expression,
@@ -162175,7 +161535,7 @@ ${lanes.join("\n")}
162175
161535
  brightWhite: (str) => str
162176
161536
  };
162177
161537
  }
162178
- function bold(str) {
161538
+ function bold2(str) {
162179
161539
  return `\x1B[1m${str}\x1B[22m`;
162180
161540
  }
162181
161541
  const isWindows2 = sys2.getEnvironmentVariable("OS") && sys2.getEnvironmentVariable("OS").toLowerCase().includes("windows");
@@ -162199,7 +161559,7 @@ ${lanes.join("\n")}
162199
161559
  return `\x1B[97m${str}\x1B[39m`;
162200
161560
  }
162201
161561
  return {
162202
- bold,
161562
+ bold: bold2,
162203
161563
  blue,
162204
161564
  brightWhite,
162205
161565
  blueBackground
@@ -165745,15 +165105,15 @@ ${lanes.join("\n")}
165745
165105
  return false;
165746
165106
  }
165747
165107
  function findListItemInfo(node) {
165748
- const list = findContainingList(node);
165749
- if (!list) {
165108
+ const list2 = findContainingList(node);
165109
+ if (!list2) {
165750
165110
  return void 0;
165751
165111
  }
165752
- const children = list.getChildren();
165112
+ const children = list2.getChildren();
165753
165113
  const listItemIndex = indexOfNode(children, node);
165754
165114
  return {
165755
165115
  listItemIndex,
165756
- list
165116
+ list: list2
165757
165117
  };
165758
165118
  }
165759
165119
  function hasChildOfKind(n2, kind, sourceFile) {
@@ -167149,26 +166509,26 @@ ${lanes.join("\n")}
167149
166509
  /* link */
167150
166510
  );
167151
166511
  }
167152
- function buildLinkParts(link, checker) {
166512
+ function buildLinkParts(link2, checker) {
167153
166513
  var _a2;
167154
- const prefix2 = isJSDocLink(link) ? "link" : isJSDocLinkCode(link) ? "linkcode" : "linkplain";
166514
+ const prefix2 = isJSDocLink(link2) ? "link" : isJSDocLinkCode(link2) ? "linkcode" : "linkplain";
167155
166515
  const parts = [linkPart(`{@${prefix2} `)];
167156
- if (!link.name) {
167157
- if (link.text) {
167158
- parts.push(linkTextPart(link.text));
166516
+ if (!link2.name) {
166517
+ if (link2.text) {
166518
+ parts.push(linkTextPart(link2.text));
167159
166519
  }
167160
166520
  } else {
167161
- const symbol = checker == null ? void 0 : checker.getSymbolAtLocation(link.name);
166521
+ const symbol = checker == null ? void 0 : checker.getSymbolAtLocation(link2.name);
167162
166522
  const targetSymbol = symbol && checker ? getSymbolTarget(symbol, checker) : void 0;
167163
- const suffix = findLinkNameEnd(link.text);
167164
- const name = getTextOfNode(link.name) + link.text.slice(0, suffix);
167165
- const text = skipSeparatorFromLinkText(link.text.slice(suffix));
166523
+ const suffix = findLinkNameEnd(link2.text);
166524
+ const name = getTextOfNode(link2.name) + link2.text.slice(0, suffix);
166525
+ const text = skipSeparatorFromLinkText(link2.text.slice(suffix));
167166
166526
  const decl = (targetSymbol == null ? void 0 : targetSymbol.valueDeclaration) || ((_a2 = targetSymbol == null ? void 0 : targetSymbol.declarations) == null ? void 0 : _a2[0]);
167167
166527
  if (decl) {
167168
166528
  parts.push(linkNamePart(name, decl));
167169
166529
  if (text) parts.push(linkTextPart(text));
167170
166530
  } else {
167171
- const separator = suffix === 0 || link.text.charCodeAt(suffix) === 124 && name.charCodeAt(name.length - 1) !== 32 ? " " : "";
166531
+ const separator = suffix === 0 || link2.text.charCodeAt(suffix) === 124 && name.charCodeAt(name.length - 1) !== 32 ? " " : "";
167172
166532
  parts.push(linkTextPart(name + separator + text));
167173
166533
  }
167174
166534
  }
@@ -173367,12 +172727,12 @@ interface Symbol {
173367
172727
  void 0,
173368
172728
  typeParameter.name
173369
172729
  );
173370
- const template = factory.createJSDocTemplateTag(
172730
+ const template2 = factory.createJSDocTemplateTag(
173371
172731
  factory.createIdentifier("template"),
173372
172732
  constraint && cast(constraint, isJSDocTypeExpression),
173373
172733
  [parameter]
173374
172734
  );
173375
- templates.push(template);
172735
+ templates.push(template2);
173376
172736
  });
173377
172737
  const jsDoc = factory.createJSDocComment(
173378
172738
  /*comment*/
@@ -174434,9 +173794,9 @@ interface Symbol {
174434
173794
  });
174435
173795
  return references.length === 0 || cannotInline ? void 0 : references;
174436
173796
  }
174437
- function getReplacementExpression(reference, replacement) {
173797
+ function getReplacementExpression(reference2, replacement) {
174438
173798
  replacement = getSynthesizedDeepClone(replacement);
174439
- const { parent: parent2 } = reference;
173799
+ const { parent: parent2 } = reference2;
174440
173800
  if (isExpression(parent2) && (getExpressionPrecedence(replacement) < getExpressionPrecedence(parent2) || needsParentheses(parent2))) {
174441
173801
  return factory.createParenthesizedExpression(replacement);
174442
173802
  }
@@ -174446,20 +173806,20 @@ interface Symbol {
174446
173806
  if (isPropertyAccessExpression(parent2) && (isNumericLiteral(replacement) || isObjectLiteralExpression(replacement))) {
174447
173807
  return factory.createParenthesizedExpression(replacement);
174448
173808
  }
174449
- if (isIdentifier(reference) && isShorthandPropertyAssignment(parent2)) {
174450
- return factory.createPropertyAssignment(reference, replacement);
173809
+ if (isIdentifier(reference2) && isShorthandPropertyAssignment(parent2)) {
173810
+ return factory.createPropertyAssignment(reference2, replacement);
174451
173811
  }
174452
173812
  return replacement;
174453
173813
  }
174454
- function replaceTemplateStringVariableWithLiteral(tracker, sourceFile, reference, replacement) {
174455
- const templateExpression = reference.parent;
174456
- const index = templateExpression.templateSpans.indexOf(reference);
173814
+ function replaceTemplateStringVariableWithLiteral(tracker, sourceFile, reference2, replacement) {
173815
+ const templateExpression = reference2.parent;
173816
+ const index = templateExpression.templateSpans.indexOf(reference2);
174457
173817
  const prevNode = index === 0 ? templateExpression.head : templateExpression.templateSpans[index - 1];
174458
173818
  tracker.replaceRangeWithText(
174459
173819
  sourceFile,
174460
173820
  {
174461
173821
  pos: prevNode.getEnd() - 2,
174462
- end: reference.literal.getStart() + 1
173822
+ end: reference2.literal.getStart() + 1
174463
173823
  },
174464
173824
  replacement.text.replace(/\\/g, "\\\\").replace(/`/g, "\\`")
174465
173825
  );
@@ -175327,20 +174687,20 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
175327
174687
  }
175328
174688
  function entryToAccessExpression(entry) {
175329
174689
  if (entry.node.parent) {
175330
- const reference = entry.node;
175331
- const parent2 = reference.parent;
174690
+ const reference2 = entry.node;
174691
+ const parent2 = reference2.parent;
175332
174692
  switch (parent2.kind) {
175333
174693
  // `C.foo`
175334
174694
  case 212:
175335
174695
  const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression);
175336
- if (propertyAccessExpression && propertyAccessExpression.expression === reference) {
174696
+ if (propertyAccessExpression && propertyAccessExpression.expression === reference2) {
175337
174697
  return propertyAccessExpression;
175338
174698
  }
175339
174699
  break;
175340
174700
  // `C["foo"]`
175341
174701
  case 213:
175342
174702
  const elementAccessExpression = tryCast(parent2, isElementAccessExpression);
175343
- if (elementAccessExpression && elementAccessExpression.expression === reference) {
174703
+ if (elementAccessExpression && elementAccessExpression.expression === reference2) {
175344
174704
  return elementAccessExpression;
175345
174705
  }
175346
174706
  break;
@@ -175349,9 +174709,9 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
175349
174709
  return void 0;
175350
174710
  }
175351
174711
  function entryToType(entry) {
175352
- const reference = entry.node;
175353
- if (getMeaningFromLocation(reference) === 2 || isExpressionWithTypeArgumentsInClassExtendsClause(reference.parent)) {
175354
- return reference;
174712
+ const reference2 = entry.node;
174713
+ if (getMeaningFromLocation(reference2) === 2 || isExpressionWithTypeArgumentsInClassExtendsClause(reference2.parent)) {
174714
+ return reference2;
175355
174715
  }
175356
174716
  return void 0;
175357
174717
  }
@@ -178365,7 +177725,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
178365
177725
  }
178366
177726
  }
178367
177727
  function createSyntaxList(nodes, parent2) {
178368
- const list = createNode(353, nodes.pos, nodes.end, parent2);
177728
+ const list2 = createNode(353, nodes.pos, nodes.end, parent2);
178369
177729
  const children = [];
178370
177730
  let pos = nodes.pos;
178371
177731
  for (const node of nodes) {
@@ -178374,8 +177734,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
178374
177734
  pos = node.end;
178375
177735
  }
178376
177736
  addSyntheticNodes(children, pos, nodes.end, parent2);
178377
- list._children = children;
178378
- return list;
177737
+ list2._children = children;
177738
+ return list2;
178379
177739
  }
178380
177740
  var TokenOrIdentifierObject = class {
178381
177741
  constructor(kind, pos, end) {
@@ -181979,8 +181339,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
181979
181339
  continue;
181980
181340
  }
181981
181341
  const diagnostics = program.getSemanticDiagnostics(sourceFile, cancellationToken);
181982
- const isUsedElsewhere = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, (reference) => {
181983
- return identifier !== reference && !symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker);
181342
+ const isUsedElsewhere = ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, (reference2) => {
181343
+ return identifier !== reference2 && !symbolReferenceIsAlsoMissingAwait(reference2, diagnostics, sourceFile, checker);
181984
181344
  });
181985
181345
  if (isUsedElsewhere) {
181986
181346
  isCompleteFix = false;
@@ -182019,8 +181379,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
182019
181379
  return sides && { identifiers: sides, isCompleteFix };
182020
181380
  }
182021
181381
  }
182022
- function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker) {
182023
- const errorNode = isPropertyAccessExpression(reference.parent) ? reference.parent.name : isBinaryExpression(reference.parent) ? reference.parent : reference;
181382
+ function symbolReferenceIsAlsoMissingAwait(reference2, diagnostics, sourceFile, checker) {
181383
+ const errorNode = isPropertyAccessExpression(reference2.parent) ? reference2.parent.name : isBinaryExpression(reference2.parent) ? reference2.parent : reference2;
182024
181384
  const diagnostic = find(diagnostics, (diagnostic2) => diagnostic2.start === errorNode.getStart(sourceFile) && diagnostic2.start + diagnostic2.length === errorNode.getEnd());
182025
181385
  return diagnostic && contains(errorCodes3, diagnostic.code) || // A Promise is usually not correct in a binary expression (it's not valid
182026
181386
  // in an arithmetic expression and an equality comparison seems unusual),
@@ -189206,11 +188566,11 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
189206
188566
  const entries = ts_FindAllReferences_exports.Core.getReferencedSymbolsForNode(parent2.pos, referent, program, sourceFiles, cancellationToken);
189207
188567
  if (entries) {
189208
188568
  for (const entry of entries) {
189209
- for (const reference of entry.references) {
189210
- if (reference.kind === ts_FindAllReferences_exports.EntryKind.Node) {
189211
- const isSuperCall2 = isSuperKeyword(reference.node) && isCallExpression(reference.node.parent) && reference.node.parent.arguments.length > index;
189212
- const isSuperMethodCall = isPropertyAccessExpression(reference.node.parent) && isSuperKeyword(reference.node.parent.expression) && isCallExpression(reference.node.parent.parent) && reference.node.parent.parent.arguments.length > index;
189213
- const isOverriddenMethod = (isMethodDeclaration(reference.node.parent) || isMethodSignature(reference.node.parent)) && reference.node.parent !== parameter.parent && reference.node.parent.parameters.length > index;
188569
+ for (const reference2 of entry.references) {
188570
+ if (reference2.kind === ts_FindAllReferences_exports.EntryKind.Node) {
188571
+ const isSuperCall2 = isSuperKeyword(reference2.node) && isCallExpression(reference2.node.parent) && reference2.node.parent.arguments.length > index;
188572
+ const isSuperMethodCall = isPropertyAccessExpression(reference2.node.parent) && isSuperKeyword(reference2.node.parent.expression) && isCallExpression(reference2.node.parent.parent) && reference2.node.parent.parent.arguments.length > index;
188573
+ const isOverriddenMethod = (isMethodDeclaration(reference2.node.parent) || isMethodSignature(reference2.node.parent)) && reference2.node.parent !== parameter.parent && reference2.node.parent.parameters.length > index;
189214
188574
  if (isSuperCall2 || isSuperMethodCall || isOverriddenMethod) return false;
189215
188575
  }
189216
188576
  }
@@ -189235,7 +188595,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
189235
188595
  }
189236
188596
  }
189237
188597
  function isCallbackLike(checker, sourceFile, name) {
189238
- return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(name, checker, sourceFile, (reference) => isIdentifier(reference) && isCallExpression(reference.parent) && reference.parent.arguments.includes(reference));
188598
+ return !!ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(name, checker, sourceFile, (reference2) => isIdentifier(reference2) && isCallExpression(reference2.parent) && reference2.parent.arguments.includes(reference2));
189239
188599
  }
189240
188600
  function isLastParameter(func, parameter, isFixAll) {
189241
188601
  const parameters = func.parameters;
@@ -191045,9 +190405,9 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
191045
190405
  return void 0;
191046
190406
  }
191047
190407
  const usage2 = createEmptyUsage();
191048
- for (const reference of references) {
190408
+ for (const reference2 of references) {
191049
190409
  cancellationToken.throwIfCancellationRequested();
191050
- calculateUsageOfNode(reference, usage2);
190410
+ calculateUsageOfNode(reference2, usage2);
191051
190411
  }
191052
190412
  const calls = [...usage2.constructs || [], ...usage2.calls || []];
191053
190413
  return declaration.parameters.map((parameter, parameterIndex) => {
@@ -191080,17 +190440,17 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
191080
190440
  }
191081
190441
  function thisParameter() {
191082
190442
  const usage2 = createEmptyUsage();
191083
- for (const reference of references) {
190443
+ for (const reference2 of references) {
191084
190444
  cancellationToken.throwIfCancellationRequested();
191085
- calculateUsageOfNode(reference, usage2);
190445
+ calculateUsageOfNode(reference2, usage2);
191086
190446
  }
191087
190447
  return combineTypes(usage2.candidateThisTypes || emptyArray);
191088
190448
  }
191089
190449
  function inferTypesFromReferencesSingle(references2) {
191090
190450
  const usage2 = createEmptyUsage();
191091
- for (const reference of references2) {
190451
+ for (const reference2 of references2) {
191092
190452
  cancellationToken.throwIfCancellationRequested();
191093
- calculateUsageOfNode(reference, usage2);
190453
+ calculateUsageOfNode(reference2, usage2);
191094
190454
  }
191095
190455
  return inferTypes(usage2);
191096
190456
  }
@@ -195064,21 +194424,21 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
195064
194424
  write();
195065
194425
  }
195066
194426
  }
195067
- function printSnippetList(format3, list, sourceFile) {
195068
- const unescaped = printUnescapedSnippetList(format3, list, sourceFile);
194427
+ function printSnippetList(format3, list2, sourceFile) {
194428
+ const unescaped = printUnescapedSnippetList(format3, list2, sourceFile);
195069
194429
  return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;
195070
194430
  }
195071
- function printUnescapedSnippetList(format3, list, sourceFile) {
194431
+ function printUnescapedSnippetList(format3, list2, sourceFile) {
195072
194432
  escapes = void 0;
195073
194433
  writer.clear();
195074
- printer.writeList(format3, list, sourceFile, writer);
194434
+ printer.writeList(format3, list2, sourceFile, writer);
195075
194435
  return writer.getText();
195076
194436
  }
195077
- function printAndFormatSnippetList(format3, list, sourceFile, formatContext) {
194437
+ function printAndFormatSnippetList(format3, list2, sourceFile, formatContext) {
195078
194438
  const syntheticFile = {
195079
194439
  text: printUnescapedSnippetList(
195080
194440
  format3,
195081
- list,
194441
+ list2,
195082
194442
  sourceFile
195083
194443
  ),
195084
194444
  getLineAndCharacterOfPosition(pos) {
@@ -195086,7 +194446,7 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
195086
194446
  }
195087
194447
  };
195088
194448
  const formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);
195089
- const changes = flatMap(list, (node) => {
194449
+ const changes = flatMap(list2, (node) => {
195090
194450
  const nodeWithPos = ts_textChanges_exports.assignPositionsToNode(node);
195091
194451
  return ts_formatting_exports.formatNodeGivenIndentation(
195092
194452
  nodeWithPos,
@@ -200151,10 +199511,10 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
200151
199511
  result.push(entry);
200152
199512
  continue;
200153
199513
  }
200154
- const reference = result[refIndex];
199514
+ const reference2 = result[refIndex];
200155
199515
  result[refIndex] = {
200156
- definition: reference.definition,
200157
- references: reference.references.concat(entry.references).sort((entry1, entry2) => {
199516
+ definition: reference2.definition,
199517
+ references: reference2.references.concat(entry.references).sort((entry1, entry2) => {
200158
199518
  const entry1File = getSourceFileIndexOfEntry(program, entry1);
200159
199519
  const entry2File = getSourceFileIndexOfEntry(program, entry2);
200160
199520
  if (entry1File !== entry2File) {
@@ -200175,27 +199535,27 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
200175
199535
  }
200176
199536
  function getReferencedSymbolsForModule(program, symbol, excludeImportTypeOfExportEquals, sourceFiles, sourceFilesSet) {
200177
199537
  Debug.assert(!!symbol.valueDeclaration);
200178
- const references = mapDefined(findModuleReferences(program, sourceFiles, symbol), (reference) => {
200179
- if (reference.kind === "import") {
200180
- const parent2 = reference.literal.parent;
199538
+ const references = mapDefined(findModuleReferences(program, sourceFiles, symbol), (reference2) => {
199539
+ if (reference2.kind === "import") {
199540
+ const parent2 = reference2.literal.parent;
200181
199541
  if (isLiteralTypeNode(parent2)) {
200182
199542
  const importType = cast(parent2.parent, isImportTypeNode);
200183
199543
  if (excludeImportTypeOfExportEquals && !importType.qualifier) {
200184
199544
  return void 0;
200185
199545
  }
200186
199546
  }
200187
- return nodeEntry(reference.literal);
200188
- } else if (reference.kind === "implicit") {
200189
- const range = reference.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
200190
- reference.referencingFile,
199547
+ return nodeEntry(reference2.literal);
199548
+ } else if (reference2.kind === "implicit") {
199549
+ const range = reference2.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
199550
+ reference2.referencingFile,
200191
199551
  (n2) => !(n2.transformFlags & 2) ? "skip" : isJsxElement(n2) || isJsxSelfClosingElement(n2) || isJsxFragment(n2) ? n2 : void 0
200192
- ) || reference.referencingFile.statements[0] || reference.referencingFile;
199552
+ ) || reference2.referencingFile.statements[0] || reference2.referencingFile;
200193
199553
  return nodeEntry(range);
200194
199554
  } else {
200195
199555
  return {
200196
199556
  kind: 0,
200197
- fileName: reference.referencingFile.fileName,
200198
- textSpan: createTextSpanFromRange(reference.ref)
199557
+ fileName: reference2.referencingFile.fileName,
199558
+ textSpan: createTextSpanFromRange(reference2.ref)
200199
199559
  };
200200
199560
  }
200201
199561
  });
@@ -201703,8 +201063,8 @@ ${newComment.split("\n").map((c2) => ` * ${c2}`).join("\n")}
201703
201063
  }
201704
201064
  const typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position);
201705
201065
  if (typeReferenceDirective) {
201706
- const reference = (_a2 = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeReferenceDirective, sourceFile)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;
201707
- const file = reference && program.getSourceFile(reference.resolvedFileName);
201066
+ const reference2 = (_a2 = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeReferenceDirective, sourceFile)) == null ? void 0 : _a2.resolvedTypeReferenceDirective;
201067
+ const file = reference2 && program.getSourceFile(reference2.resolvedFileName);
201708
201068
  return file && { reference: typeReferenceDirective, fileName: file.fileName, file, unverified: false };
201709
201069
  }
201710
201070
  const libReferenceDirective = findReferenceInPosition(sourceFile.libReferenceDirectives, position);
@@ -204864,17 +204224,17 @@ ${content}
204864
204224
  function getArgumentOrParameterListInfo(node, position, sourceFile, checker) {
204865
204225
  const info = getArgumentOrParameterListAndIndex(node, sourceFile, checker);
204866
204226
  if (!info) return void 0;
204867
- const { list, argumentIndex } = info;
204868
- const argumentCount = getArgumentCount(checker, list);
204869
- const argumentsSpan = getApplicableSpanForArguments(list, sourceFile);
204870
- return { list, argumentIndex, argumentCount, argumentsSpan };
204227
+ const { list: list2, argumentIndex } = info;
204228
+ const argumentCount = getArgumentCount(checker, list2);
204229
+ const argumentsSpan = getApplicableSpanForArguments(list2, sourceFile);
204230
+ return { list: list2, argumentIndex, argumentCount, argumentsSpan };
204871
204231
  }
204872
204232
  function getArgumentOrParameterListAndIndex(node, sourceFile, checker) {
204873
204233
  if (node.kind === 30 || node.kind === 21) {
204874
204234
  return { list: getChildListThatStartsWithOpenerToken(node.parent, node, sourceFile), argumentIndex: 0 };
204875
204235
  } else {
204876
- const list = findContainingList(node);
204877
- return list && { list, argumentIndex: getArgumentIndex(checker, list, node) };
204236
+ const list2 = findContainingList(node);
204237
+ return list2 && { list: list2, argumentIndex: getArgumentIndex(checker, list2, node) };
204878
204238
  }
204879
204239
  }
204880
204240
  function getImmediatelyContainingArgumentInfo(node, position, sourceFile, checker) {
@@ -204883,8 +204243,8 @@ ${content}
204883
204243
  const invocation = parent2;
204884
204244
  const info = getArgumentOrParameterListInfo(node, position, sourceFile, checker);
204885
204245
  if (!info) return void 0;
204886
- const { list, argumentIndex, argumentCount, argumentsSpan } = info;
204887
- const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list.pos;
204246
+ const { list: list2, argumentIndex, argumentCount, argumentsSpan } = info;
204247
+ const isTypeParameterList = !!parent2.typeArguments && parent2.typeArguments.pos === list2.pos;
204888
204248
  return { isTypeParameterList, invocation: { kind: 0, node: invocation }, argumentsSpan, argumentIndex, argumentCount };
204889
204249
  } else if (isNoSubstitutionTemplateLiteral(node) && isTaggedTemplateExpression(parent2)) {
204890
204250
  if (isInsideTemplateLiteral(node, position, sourceFile)) {
@@ -205090,11 +204450,11 @@ ${content}
205090
204450
  return createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);
205091
204451
  }
205092
204452
  function getApplicableSpanForTaggedTemplate(taggedTemplate, sourceFile) {
205093
- const template = taggedTemplate.template;
205094
- const applicableSpanStart = template.getStart();
205095
- let applicableSpanEnd = template.getEnd();
205096
- if (template.kind === 229) {
205097
- const lastSpan = last(template.templateSpans);
204453
+ const template2 = taggedTemplate.template;
204454
+ const applicableSpanStart = template2.getStart();
204455
+ let applicableSpanEnd = template2.getEnd();
204456
+ if (template2.kind === 229) {
204457
+ const lastSpan = last(template2.templateSpans);
205098
204458
  if (lastSpan.literal.getFullWidth() === 0) {
205099
204459
  applicableSpanEnd = skipTrivia(
205100
204460
  sourceFile.text,
@@ -207031,8 +206391,8 @@ ${content}
207031
206391
  const endPosition = this.insertNodeAfterWorker(sourceFile, after, newNode);
207032
206392
  this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));
207033
206393
  }
207034
- insertNodeAtEndOfList(sourceFile, list, newNode) {
207035
- this.insertNodeAt(sourceFile, list.end, newNode, { prefix: ", " });
206394
+ insertNodeAtEndOfList(sourceFile, list2, newNode) {
206395
+ this.insertNodeAt(sourceFile, list2.end, newNode, { prefix: ", " });
207036
206396
  }
207037
206397
  insertNodesAfter(sourceFile, after, newNodes) {
207038
206398
  const endPosition = this.insertNodeAfterWorker(sourceFile, after, first(newNodes));
@@ -207223,11 +206583,11 @@ ${options.prefix}` : "\n" : options.prefix
207223
206583
  }
207224
206584
  deletedNodesInLists.forEach((node) => {
207225
206585
  const sourceFile = node.getSourceFile();
207226
- const list = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);
207227
- if (node !== last(list)) return;
207228
- const lastNonDeletedIndex = findLastIndex(list, (n2) => !deletedNodesInLists.has(n2), list.length - 2);
206586
+ const list2 = ts_formatting_exports.SmartIndenter.getContainingList(node, sourceFile);
206587
+ if (node !== last(list2)) return;
206588
+ const lastNonDeletedIndex = findLastIndex(list2, (n2) => !deletedNodesInLists.has(n2), list2.length - 2);
207229
206589
  if (lastNonDeletedIndex !== -1) {
207230
- this.deleteRange(sourceFile, { pos: list[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list[lastNonDeletedIndex + 1]) });
206590
+ this.deleteRange(sourceFile, { pos: list2[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list2[lastNonDeletedIndex + 1]) });
207231
206591
  }
207232
206592
  });
207233
206593
  }
@@ -211181,7 +210541,7 @@ ${options.prefix}` : "\n" : options.prefix
211181
210541
  //
211182
210542
  position === range.end && (range.kind === 2 || position === sourceFile.getFullWidth()));
211183
210543
  }
211184
- function getOpenTokenForList(node, list) {
210544
+ function getOpenTokenForList(node, list2) {
211185
210545
  switch (node.kind) {
211186
210546
  case 177:
211187
210547
  case 263:
@@ -211195,17 +210555,17 @@ ${options.prefix}` : "\n" : options.prefix
211195
210555
  case 186:
211196
210556
  case 178:
211197
210557
  case 179:
211198
- if (node.typeParameters === list) {
210558
+ if (node.typeParameters === list2) {
211199
210559
  return 30;
211200
- } else if (node.parameters === list) {
210560
+ } else if (node.parameters === list2) {
211201
210561
  return 21;
211202
210562
  }
211203
210563
  break;
211204
210564
  case 214:
211205
210565
  case 215:
211206
- if (node.typeArguments === list) {
210566
+ if (node.typeArguments === list2) {
211207
210567
  return 30;
211208
- } else if (node.arguments === list) {
210568
+ } else if (node.arguments === list2) {
211209
210569
  return 21;
211210
210570
  }
211211
210571
  break;
@@ -211213,7 +210573,7 @@ ${options.prefix}` : "\n" : options.prefix
211213
210573
  case 232:
211214
210574
  case 265:
211215
210575
  case 266:
211216
- if (node.typeParameters === list) {
210576
+ if (node.typeParameters === list2) {
211217
210577
  return 30;
211218
210578
  }
211219
210579
  break;
@@ -211222,7 +210582,7 @@ ${options.prefix}` : "\n" : options.prefix
211222
210582
  case 187:
211223
210583
  case 234:
211224
210584
  case 206:
211225
- if (node.typeArguments === list) {
210585
+ if (node.typeArguments === list2) {
211226
210586
  return 30;
211227
210587
  }
211228
210588
  break;
@@ -211596,24 +210956,24 @@ ${options.prefix}` : "\n" : options.prefix
211596
210956
  case 208:
211597
210957
  return getList(node.elements);
211598
210958
  }
211599
- function getList(list) {
211600
- return list && rangeContainsStartEnd(getVisualListRange(node, list, sourceFile), start, end) ? list : void 0;
210959
+ function getList(list2) {
210960
+ return list2 && rangeContainsStartEnd(getVisualListRange(node, list2, sourceFile), start, end) ? list2 : void 0;
211601
210961
  }
211602
210962
  }
211603
- function getVisualListRange(node, list, sourceFile) {
210963
+ function getVisualListRange(node, list2, sourceFile) {
211604
210964
  const children = node.getChildren(sourceFile);
211605
210965
  for (let i2 = 1; i2 < children.length - 1; i2++) {
211606
- if (children[i2].pos === list.pos && children[i2].end === list.end) {
210966
+ if (children[i2].pos === list2.pos && children[i2].end === list2.end) {
211607
210967
  return { pos: children[i2 - 1].end, end: children[i2 + 1].getStart(sourceFile) };
211608
210968
  }
211609
210969
  }
211610
- return list;
210970
+ return list2;
211611
210971
  }
211612
- function getActualIndentationForListStartLine(list, sourceFile, options) {
211613
- if (!list) {
210972
+ function getActualIndentationForListStartLine(list2, sourceFile, options) {
210973
+ if (!list2) {
211614
210974
  return -1;
211615
210975
  }
211616
- return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options);
210976
+ return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list2.pos), sourceFile, options);
211617
210977
  }
211618
210978
  function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) {
211619
210979
  if (node.parent && node.parent.kind === 262) {
@@ -211632,19 +210992,19 @@ ${options.prefix}` : "\n" : options.prefix
211632
210992
  }
211633
210993
  return -1;
211634
210994
  }
211635
- function deriveActualIndentationFromList(list, index, sourceFile, options) {
211636
- Debug.assert(index >= 0 && index < list.length);
211637
- const node = list[index];
210995
+ function deriveActualIndentationFromList(list2, index, sourceFile, options) {
210996
+ Debug.assert(index >= 0 && index < list2.length);
210997
+ const node = list2[index];
211638
210998
  let lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);
211639
210999
  for (let i2 = index - 1; i2 >= 0; i2--) {
211640
- if (list[i2].kind === 28) {
211000
+ if (list2[i2].kind === 28) {
211641
211001
  continue;
211642
211002
  }
211643
- const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i2].end).line;
211003
+ const prevEndLine = sourceFile.getLineAndCharacterOfPosition(list2[i2].end).line;
211644
211004
  if (prevEndLine !== lineAndCharacter.line) {
211645
211005
  return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options);
211646
211006
  }
211647
- lineAndCharacter = getStartLineAndCharacterForNode(list[i2], sourceFile);
211007
+ lineAndCharacter = getStartLineAndCharacterForNode(list2[i2], sourceFile);
211648
211008
  }
211649
211009
  return -1;
211650
211010
  }
@@ -231961,7 +231321,7 @@ var require_sort2 = __commonJS({
231961
231321
  "node_modules/@conventional-changelog/git-client/node_modules/semver/functions/sort.js"(exports, module) {
231962
231322
  "use strict";
231963
231323
  var compareBuild = require_compare_build2();
231964
- var sort = (list, loose) => list.sort((a2, b2) => compareBuild(a2, b2, loose));
231324
+ var sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
231965
231325
  module.exports = sort;
231966
231326
  }
231967
231327
  });
@@ -231971,7 +231331,7 @@ var require_rsort2 = __commonJS({
231971
231331
  "node_modules/@conventional-changelog/git-client/node_modules/semver/functions/rsort.js"(exports, module) {
231972
231332
  "use strict";
231973
231333
  var compareBuild = require_compare_build2();
231974
- var rsort = (list, loose) => list.sort((a2, b2) => compareBuild(b2, a2, loose));
231334
+ var rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
231975
231335
  module.exports = rsort;
231976
231336
  }
231977
231337
  });
@@ -233371,8 +232731,420 @@ function isIgnored(commit = "", opts = {}) {
233371
232731
  return [...base, ...ignores].some((w2) => w2(commit));
233372
232732
  }
233373
232733
 
233374
- // node_modules/@commitlint/parse/lib/index.js
233375
- init_dist();
232734
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/regex.js
232735
+ var nomatchRegex = /(?!.*)/;
232736
+ function escape2(string) {
232737
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
232738
+ }
232739
+ function joinOr(parts) {
232740
+ return parts.map((val) => typeof val === "string" ? escape2(val.trim()) : val.source).filter(Boolean).join("|");
232741
+ }
232742
+ function getNotesRegex(noteKeywords, notesPattern) {
232743
+ if (!noteKeywords) {
232744
+ return nomatchRegex;
232745
+ }
232746
+ const noteKeywordsSelection = joinOr(noteKeywords);
232747
+ if (!notesPattern) {
232748
+ return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
232749
+ }
232750
+ return notesPattern(noteKeywordsSelection);
232751
+ }
232752
+ function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) {
232753
+ if (!issuePrefixes) {
232754
+ return nomatchRegex;
232755
+ }
232756
+ const flags = issuePrefixesCaseSensitive ? "g" : "gi";
232757
+ return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${joinOr(issuePrefixes)})([\\w-]+)(?=\\s|$|[,;.)\\]])`, flags);
232758
+ }
232759
+ function getReferencesRegex(referenceActions) {
232760
+ if (!referenceActions) {
232761
+ return /()(.+)/gi;
232762
+ }
232763
+ const joinedKeywords = joinOr(referenceActions);
232764
+ return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
232765
+ }
232766
+ function getFooterTokenRegex(issuePrefixes) {
232767
+ const issuePrefixSeparator = issuePrefixes ? `|\\s+(?:${joinOr(issuePrefixes)})` : "";
232768
+ return new RegExp(`^\\s*(?:BREAKING CHANGE|[\\w-]+)(?::\\s+${issuePrefixSeparator}).+`, "i");
232769
+ }
232770
+ function getParserRegexes(options = {}) {
232771
+ const notes = getNotesRegex(options.noteKeywords, options.notesPattern);
232772
+ const referenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive);
232773
+ const references = getReferencesRegex(options.referenceActions);
232774
+ const footerToken = getFooterTokenRegex(options.issuePrefixes);
232775
+ return {
232776
+ notes,
232777
+ referenceParts,
232778
+ references,
232779
+ footerToken,
232780
+ mentions: /@([\w-]+)/g,
232781
+ url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
232782
+ };
232783
+ }
232784
+
232785
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/utils.js
232786
+ var SCISSOR = "------------------------ >8 ------------------------";
232787
+ function trimNewLines(input) {
232788
+ const matches = input.match(/[^\r\n]/);
232789
+ if (typeof matches?.index !== "number") {
232790
+ return "";
232791
+ }
232792
+ const firstIndex = matches.index;
232793
+ let lastIndex = input.length - 1;
232794
+ while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
232795
+ lastIndex--;
232796
+ }
232797
+ return input.substring(firstIndex, lastIndex + 1);
232798
+ }
232799
+ function appendLine(src, line) {
232800
+ return src ? `${src}
232801
+ ${line || ""}` : line || "";
232802
+ }
232803
+ function getCommentFilter(char) {
232804
+ return char ? (line) => !line.startsWith(char) : () => true;
232805
+ }
232806
+ function truncateToScissor(lines, commentChar) {
232807
+ const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR}`);
232808
+ if (scissorIndex === -1) {
232809
+ return lines;
232810
+ }
232811
+ return lines.slice(0, scissorIndex);
232812
+ }
232813
+ function gpgFilter(line) {
232814
+ return !line.match(/^\s*gpg:/);
232815
+ }
232816
+ function assignMatchedCorrespondence(target, matches, correspondence) {
232817
+ const { groups } = matches;
232818
+ for (let i2 = 0, len = correspondence.length, key; i2 < len; i2++) {
232819
+ key = correspondence[i2];
232820
+ target[key] = (groups ? groups[key] : matches[i2 + 1]) || null;
232821
+ }
232822
+ return target;
232823
+ }
232824
+
232825
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/options.js
232826
+ var defaultOptions = {
232827
+ noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
232828
+ issuePrefixes: ["#"],
232829
+ referenceActions: [
232830
+ "close",
232831
+ "closes",
232832
+ "closed",
232833
+ "fix",
232834
+ "fixes",
232835
+ "fixed",
232836
+ "resolve",
232837
+ "resolves",
232838
+ "resolved"
232839
+ ],
232840
+ headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
232841
+ headerCorrespondence: [
232842
+ "type",
232843
+ "scope",
232844
+ "subject"
232845
+ ],
232846
+ revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
232847
+ revertCorrespondence: ["header", "hash"],
232848
+ fieldPattern: /^-(.*?)-$/
232849
+ };
232850
+
232851
+ // node_modules/@commitlint/parse/node_modules/conventional-commits-parser/dist/CommitParser.js
232852
+ function createCommitObject(initialData = {}) {
232853
+ return {
232854
+ merge: null,
232855
+ revert: null,
232856
+ header: null,
232857
+ body: null,
232858
+ footer: null,
232859
+ notes: [],
232860
+ mentions: [],
232861
+ references: [],
232862
+ ...initialData
232863
+ };
232864
+ }
232865
+ var CommitParser = class {
232866
+ options;
232867
+ regexes;
232868
+ lines = [];
232869
+ lineIndex = 0;
232870
+ commit = createCommitObject();
232871
+ constructor(options = {}) {
232872
+ this.options = {
232873
+ ...defaultOptions,
232874
+ ...options
232875
+ };
232876
+ this.regexes = getParserRegexes(this.options);
232877
+ }
232878
+ currentLine() {
232879
+ return this.lines[this.lineIndex];
232880
+ }
232881
+ nextLine() {
232882
+ return this.lines[this.lineIndex++];
232883
+ }
232884
+ isLineAvailable() {
232885
+ return this.lineIndex < this.lines.length;
232886
+ }
232887
+ parseReference(input, action) {
232888
+ const { regexes } = this;
232889
+ if (regexes.url.test(input)) {
232890
+ return null;
232891
+ }
232892
+ const matches = regexes.referenceParts.exec(input);
232893
+ if (!matches) {
232894
+ return null;
232895
+ }
232896
+ let [raw, repository = null, prefix2, issue] = matches;
232897
+ let owner = null;
232898
+ if (repository) {
232899
+ const slashIndex = repository.indexOf("/");
232900
+ if (slashIndex !== -1) {
232901
+ owner = repository.slice(0, slashIndex);
232902
+ repository = repository.slice(slashIndex + 1);
232903
+ }
232904
+ }
232905
+ return {
232906
+ raw,
232907
+ action,
232908
+ owner,
232909
+ repository,
232910
+ prefix: prefix2,
232911
+ issue
232912
+ };
232913
+ }
232914
+ parseReferences(input) {
232915
+ const { regexes } = this;
232916
+ const regex2 = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
232917
+ const references = [];
232918
+ let matches;
232919
+ let action;
232920
+ let sentence;
232921
+ let reference2;
232922
+ while (true) {
232923
+ matches = regex2.exec(input);
232924
+ if (!matches) {
232925
+ break;
232926
+ }
232927
+ action = matches[1] || null;
232928
+ sentence = matches[2] || "";
232929
+ while (true) {
232930
+ reference2 = this.parseReference(sentence, action);
232931
+ if (!reference2) {
232932
+ break;
232933
+ }
232934
+ references.push(reference2);
232935
+ }
232936
+ }
232937
+ return references;
232938
+ }
232939
+ skipEmptyLines() {
232940
+ let line = this.currentLine();
232941
+ while (line !== void 0 && !line.trim()) {
232942
+ this.nextLine();
232943
+ line = this.currentLine();
232944
+ }
232945
+ }
232946
+ parseMerge() {
232947
+ const { commit, options } = this;
232948
+ const correspondence = options.mergeCorrespondence || [];
232949
+ const merge2 = this.currentLine();
232950
+ const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
232951
+ if (matches) {
232952
+ this.nextLine();
232953
+ commit.merge = matches[0] || null;
232954
+ assignMatchedCorrespondence(commit, matches, correspondence);
232955
+ return true;
232956
+ }
232957
+ return false;
232958
+ }
232959
+ parseHeader(isMergeCommit) {
232960
+ if (isMergeCommit) {
232961
+ this.skipEmptyLines();
232962
+ }
232963
+ const { commit, options } = this;
232964
+ const correspondence = options.headerCorrespondence || [];
232965
+ const header = commit.header ?? this.nextLine();
232966
+ let matches = null;
232967
+ if (header) {
232968
+ if (options.breakingHeaderPattern) {
232969
+ matches = header.match(options.breakingHeaderPattern);
232970
+ }
232971
+ if (!matches && options.headerPattern) {
232972
+ matches = header.match(options.headerPattern);
232973
+ }
232974
+ }
232975
+ if (header) {
232976
+ commit.header = header;
232977
+ }
232978
+ if (matches) {
232979
+ assignMatchedCorrespondence(commit, matches, correspondence);
232980
+ }
232981
+ }
232982
+ parseMeta() {
232983
+ const { options, commit } = this;
232984
+ if (!options.fieldPattern || !this.isLineAvailable()) {
232985
+ return false;
232986
+ }
232987
+ let matches;
232988
+ let field = null;
232989
+ let parsed = false;
232990
+ while (this.isLineAvailable()) {
232991
+ matches = this.currentLine().match(options.fieldPattern);
232992
+ if (matches) {
232993
+ field = matches[1] || null;
232994
+ this.nextLine();
232995
+ continue;
232996
+ }
232997
+ if (field) {
232998
+ parsed = true;
232999
+ commit[field] = appendLine(commit[field], this.currentLine());
233000
+ this.nextLine();
233001
+ } else {
233002
+ break;
233003
+ }
233004
+ }
233005
+ return parsed;
233006
+ }
233007
+ parseNotes() {
233008
+ const { regexes, commit } = this;
233009
+ if (!this.isLineAvailable()) {
233010
+ return false;
233011
+ }
233012
+ const matches = this.currentLine().match(regexes.notes);
233013
+ let isFooterToken;
233014
+ if (matches) {
233015
+ const note = {
233016
+ title: matches[1],
233017
+ text: matches[2]
233018
+ };
233019
+ commit.notes.push(note);
233020
+ commit.footer = appendLine(commit.footer, this.currentLine());
233021
+ this.nextLine();
233022
+ while (this.isLineAvailable()) {
233023
+ if (this.parseMeta()) {
233024
+ return true;
233025
+ }
233026
+ if (this.parseNotes()) {
233027
+ return true;
233028
+ }
233029
+ isFooterToken = regexes.footerToken.test(this.currentLine());
233030
+ commit.references.push(...this.parseReferences(this.currentLine()));
233031
+ if (!isFooterToken) {
233032
+ note.text = appendLine(note.text, this.currentLine());
233033
+ }
233034
+ commit.footer = appendLine(commit.footer, this.currentLine());
233035
+ this.nextLine();
233036
+ if (isFooterToken) {
233037
+ break;
233038
+ }
233039
+ }
233040
+ return true;
233041
+ }
233042
+ return false;
233043
+ }
233044
+ parseBodyAndFooter(isBody) {
233045
+ const { commit, regexes } = this;
233046
+ if (!this.isLineAvailable()) {
233047
+ return isBody;
233048
+ }
233049
+ const isFooterToken = regexes.footerToken.test(this.currentLine());
233050
+ const isStillBody = !isFooterToken && isBody;
233051
+ commit.references.push(...this.parseReferences(this.currentLine()));
233052
+ if (isStillBody) {
233053
+ commit.body = appendLine(commit.body, this.currentLine());
233054
+ } else {
233055
+ commit.footer = appendLine(commit.footer, this.currentLine());
233056
+ }
233057
+ this.nextLine();
233058
+ return isStillBody;
233059
+ }
233060
+ parseBreakingHeader() {
233061
+ const { commit, options } = this;
233062
+ if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
233063
+ return;
233064
+ }
233065
+ const matches = commit.header.match(options.breakingHeaderPattern);
233066
+ if (matches) {
233067
+ commit.notes.push({
233068
+ title: "BREAKING CHANGE",
233069
+ text: matches[3]
233070
+ });
233071
+ }
233072
+ }
233073
+ parseMentions(input) {
233074
+ const { commit, regexes } = this;
233075
+ let matches;
233076
+ for (; ; ) {
233077
+ matches = regexes.mentions.exec(input);
233078
+ if (!matches) {
233079
+ break;
233080
+ }
233081
+ commit.mentions.push(matches[1]);
233082
+ }
233083
+ }
233084
+ parseRevert(input) {
233085
+ const { commit, options } = this;
233086
+ const correspondence = options.revertCorrespondence || [];
233087
+ const matches = options.revertPattern ? input.match(options.revertPattern) : null;
233088
+ if (matches) {
233089
+ commit.revert = assignMatchedCorrespondence({}, matches, correspondence);
233090
+ }
233091
+ }
233092
+ cleanupCommit() {
233093
+ const { commit } = this;
233094
+ commit.body &&= trimNewLines(commit.body);
233095
+ commit.footer &&= trimNewLines(commit.footer);
233096
+ commit.notes.forEach((note) => {
233097
+ note.text = trimNewLines(note.text);
233098
+ });
233099
+ const referencesSet = /* @__PURE__ */ new Set();
233100
+ commit.references = commit.references.filter((reference2) => {
233101
+ const uid = `${reference2.action} ${reference2.raw}`.toLocaleLowerCase();
233102
+ const ok = !referencesSet.has(uid);
233103
+ if (ok) {
233104
+ referencesSet.add(uid);
233105
+ }
233106
+ return ok;
233107
+ });
233108
+ }
233109
+ /**
233110
+ * Parse commit message string into an object.
233111
+ * @param input - Commit message string.
233112
+ * @returns Commit object.
233113
+ */
233114
+ parse(input) {
233115
+ if (!input.trim()) {
233116
+ throw new TypeError("Expected a raw commit");
233117
+ }
233118
+ const { commentChar } = this.options;
233119
+ const commentFilter = getCommentFilter(commentChar);
233120
+ const rawLines = trimNewLines(input).split(/\r?\n/);
233121
+ const lines = commentChar ? truncateToScissor(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter(line)) : rawLines.filter((line) => gpgFilter(line));
233122
+ const commit = createCommitObject();
233123
+ this.lines = lines;
233124
+ this.lineIndex = 0;
233125
+ this.commit = commit;
233126
+ const isMergeCommit = this.parseMerge();
233127
+ this.parseHeader(isMergeCommit);
233128
+ if (commit.header) {
233129
+ commit.references = this.parseReferences(commit.header);
233130
+ }
233131
+ let isBody = true;
233132
+ while (this.isLineAvailable()) {
233133
+ this.parseMeta();
233134
+ if (this.parseNotes()) {
233135
+ isBody = false;
233136
+ }
233137
+ if (!this.parseBodyAndFooter(isBody)) {
233138
+ isBody = false;
233139
+ }
233140
+ }
233141
+ this.parseBreakingHeader();
233142
+ this.parseMentions(input);
233143
+ this.parseRevert(input);
233144
+ this.cleanupCommit();
233145
+ return commit;
233146
+ }
233147
+ };
233376
233148
 
233377
233149
  // node_modules/conventional-changelog-angular/src/parser.js
233378
233150
  function createParserOpts() {
@@ -233389,132 +233161,190 @@ function createParserOpts() {
233389
233161
  };
233390
233162
  }
233391
233163
 
233392
- // node_modules/conventional-changelog-angular/src/writer.js
233393
- var import_compare_func = __toESM(require_compare_func(), 1);
233394
-
233395
- // node_modules/conventional-changelog-angular/src/templates.js
233396
- var mainTemplate = `{{> header}}
233397
-
233398
- {{#each commitGroups}}
233399
-
233400
- {{#if title}}
233401
- ### {{title}}
233402
-
233403
- {{/if}}
233404
- {{#each commits}}
233405
- {{> commit root=@root}}
233406
- {{/each}}
233407
-
233408
- {{/each}}
233409
- {{> footer}}
233410
- `;
233411
- var headerPartial = `{{#if isPatch~}}
233412
- ##
233413
- {{~else~}}
233414
- #
233415
- {{~/if}} {{#if @root.linkCompare~}}
233416
- [{{version}}](
233417
- {{~#if @root.repository~}}
233418
- {{~#if @root.host}}
233419
- {{~@root.host}}/
233420
- {{~/if}}
233421
- {{~#if @root.owner}}
233422
- {{~@root.owner}}/
233423
- {{~/if}}
233424
- {{~@root.repository}}
233425
- {{~else}}
233426
- {{~@root.repoUrl}}
233427
- {{~/if~}}
233428
- /compare/{{previousTag}}...{{currentTag}})
233429
- {{~else}}
233430
- {{~version}}
233431
- {{~/if}}
233432
- {{~#if title}} "{{title}}"
233433
- {{~/if}}
233434
- {{~#if date}} ({{date}})
233435
- {{/if}}
233436
- `;
233437
- var commitPartial = `*{{#if scope}} **{{scope}}:**
233438
- {{~/if}} {{#if subject}}
233439
- {{~subject}}
233440
- {{~else}}
233441
- {{~header}}
233442
- {{~/if}}
233443
-
233444
- {{~!-- commit link --}} {{#if @root.linkReferences~}}
233445
- ([{{shortHash}}](
233446
- {{~#if @root.repository}}
233447
- {{~#if @root.host}}
233448
- {{~@root.host}}/
233449
- {{~/if}}
233450
- {{~#if @root.owner}}
233451
- {{~@root.owner}}/
233452
- {{~/if}}
233453
- {{~@root.repository}}
233454
- {{~else}}
233455
- {{~@root.repoUrl}}
233456
- {{~/if}}/
233457
- {{~@root.commit}}/{{hash}}))
233458
- {{~else}}
233459
- {{~shortHash}}
233460
- {{~/if}}
233461
-
233462
- {{~!-- commit references --}}
233463
- {{~#if references~}}
233464
- , closes
233465
- {{~#each references}} {{#if @root.linkReferences~}}
233466
- [
233467
- {{~#if this.owner}}
233468
- {{~this.owner}}/
233469
- {{~/if}}
233470
- {{~this.repository}}#{{this.issue}}](
233471
- {{~#if @root.repository}}
233472
- {{~#if @root.host}}
233473
- {{~@root.host}}/
233474
- {{~/if}}
233475
- {{~#if this.repository}}
233476
- {{~#if this.owner}}
233477
- {{~this.owner}}/
233478
- {{~/if}}
233479
- {{~this.repository}}
233480
- {{~else}}
233481
- {{~#if @root.owner}}
233482
- {{~@root.owner}}/
233483
- {{~/if}}
233484
- {{~@root.repository}}
233485
- {{~/if}}
233486
- {{~else}}
233487
- {{~@root.repoUrl}}
233488
- {{~/if}}/
233489
- {{~@root.issue}}/{{this.issue}})
233490
- {{~else}}
233491
- {{~#if this.owner}}
233492
- {{~this.owner}}/
233493
- {{~/if}}
233494
- {{~this.repository}}#{{this.issue}}
233495
- {{~/if}}{{/each}}
233496
- {{~/if}}
233497
-
233498
- `;
233499
- var footerPartial = `{{#if noteGroups}}
233500
- {{#each noteGroups}}
233501
-
233502
- ### {{title}}
233164
+ // node_modules/@conventional-changelog/template/dist/elements.js
233165
+ function toString(value) {
233166
+ return typeof value === "number" || value ? String(value) : "";
233167
+ }
233168
+ function each(array, callback, separator = newline()) {
233169
+ return array ? array.reduce((acc, item) => {
233170
+ const rendered = toString(callback(item)).trim();
233171
+ return `${acc}${acc && rendered ? separator : ""}${rendered}`;
233172
+ }, "") : "";
233173
+ }
233174
+ function heading(level, text) {
233175
+ return `${"#".repeat(level)} ${text}`;
233176
+ }
233177
+ function link(text, url2) {
233178
+ return `[${text}](${url2})`;
233179
+ }
233180
+ function list(array, callback) {
233181
+ return each(array, (item) => {
233182
+ const rendered = toString(callback(item)).trim();
233183
+ const itemText = rendered.split(/\r?\n/).map((line, index) => index > 0 && line ? ` ${line}` : line).join("\n");
233184
+ return rendered ? `* ${itemText}` : "";
233185
+ });
233186
+ }
233187
+ function bold(text) {
233188
+ return `**${text}**`;
233189
+ }
233190
+ function newline(times = 1) {
233191
+ return "\n".repeat(times);
233192
+ }
233193
+ function strings(...values) {
233194
+ return each(values, (value) => value, "");
233195
+ }
233196
+ function segments(...values) {
233197
+ return each(values, (value) => value, newline(2));
233198
+ }
233199
+ function words(...values) {
233200
+ return each(values, (value) => value, " ");
233201
+ }
233202
+ function url(...parts) {
233203
+ return parts.reduce((acc, part) => {
233204
+ if (typeof part !== "number" && !part) {
233205
+ return acc;
233206
+ }
233207
+ const segment = String(part).replace(/^\/+|\/+$/g, "");
233208
+ return acc ? `${acc}/${segment}` : segment;
233209
+ }, "");
233210
+ }
233503
233211
 
233504
- {{#each notes}}
233505
- * {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
233506
- {{/each}}
233507
- {{/each}}
233212
+ // node_modules/@conventional-changelog/template/dist/templates.js
233213
+ function repositoryUrl(context) {
233214
+ if (context.repository) {
233215
+ return url(context.host, context.owner, context.repository);
233216
+ }
233217
+ return context.repoUrl || "";
233218
+ }
233219
+ function referenceRepositoryUrl(context, reference2) {
233220
+ if (!context.repository) {
233221
+ return context.repoUrl || "";
233222
+ }
233223
+ if (reference2.repository) {
233224
+ return url(context.host, reference2.owner, reference2.repository);
233225
+ }
233226
+ return url(context.host, context.owner, context.repository);
233227
+ }
233228
+ function compareUrl(context) {
233229
+ const previousTag = encodeURIComponent(context.previousTag || "");
233230
+ const currentTag = encodeURIComponent(context.currentTag || "");
233231
+ return url(repositoryUrl(context), "compare", `${previousTag}...${currentTag}`);
233232
+ }
233233
+ function reference(reference2) {
233234
+ return strings(reference2.owner && `${reference2.owner}/`, reference2.repository, reference2.issue && `${reference2.prefix || "#"}${reference2.issue}`);
233235
+ }
233508
233236
 
233509
- {{/if}}
233510
- `;
233237
+ // node_modules/conventional-changelog-angular/src/templates.js
233238
+ function headerPartial(context) {
233239
+ const {
233240
+ isPatch,
233241
+ linkCompare,
233242
+ version,
233243
+ title,
233244
+ date
233245
+ } = context;
233246
+ const versionText = linkCompare ? link(version, compareUrl(context)) : version;
233247
+ return heading(
233248
+ Boolean(isPatch) + 1,
233249
+ words(
233250
+ versionText,
233251
+ title && `"${title}"`,
233252
+ date && `(${date})`
233253
+ )
233254
+ );
233255
+ }
233256
+ function preamblePartial(context) {
233257
+ return strings(context.preamble);
233258
+ }
233259
+ function commitPartial(context, commit) {
233260
+ const {
233261
+ linkReferences,
233262
+ issue,
233263
+ commit: commitUrlPath
233264
+ } = context;
233265
+ const {
233266
+ scope,
233267
+ subject,
233268
+ header,
233269
+ shortHash,
233270
+ hash,
233271
+ references
233272
+ } = commit;
233273
+ const commitLink = hash ? linkReferences ? `(${link(shortHash, url(repositoryUrl(context), commitUrlPath, hash))})` : shortHash : "";
233274
+ const renderedReferences = each(
233275
+ references,
233276
+ (linkReference) => {
233277
+ if (linkReferences) {
233278
+ return link(
233279
+ reference(linkReference),
233280
+ url(referenceRepositoryUrl(context, linkReference), issue, linkReference.issue)
233281
+ );
233282
+ }
233283
+ return reference(linkReference);
233284
+ },
233285
+ " "
233286
+ );
233287
+ return strings(
233288
+ words(
233289
+ scope && bold(`${scope}:`),
233290
+ subject || header || "",
233291
+ commitLink
233292
+ ),
233293
+ renderedReferences && `, closes ${renderedReferences}`
233294
+ );
233295
+ }
233296
+ function footerPartial({ noteGroups }) {
233297
+ return each(
233298
+ noteGroups,
233299
+ (group) => segments(
233300
+ heading(3, group.title),
233301
+ list(
233302
+ group.notes,
233303
+ (note) => words(
233304
+ note.commit.scope && bold(`${note.commit.scope}:`),
233305
+ note.text
233306
+ )
233307
+ )
233308
+ ),
233309
+ newline(2)
233310
+ );
233311
+ }
233312
+ function template(context) {
233313
+ const {
233314
+ headerPartial: headerPartial2,
233315
+ preamblePartial: preamblePartial2,
233316
+ commitPartial: commitPartial2,
233317
+ footerPartial: footerPartial2,
233318
+ commitGroups
233319
+ } = context;
233320
+ return segments(
233321
+ headerPartial2(context),
233322
+ preamblePartial2(context),
233323
+ each(
233324
+ commitGroups,
233325
+ (group) => segments(
233326
+ group.title && heading(3, group.title),
233327
+ list(
233328
+ group.commits,
233329
+ (commit) => commitPartial2(context, commit)
233330
+ )
233331
+ ),
233332
+ newline(2)
233333
+ ),
233334
+ footerPartial2(context)
233335
+ );
233336
+ }
233511
233337
 
233512
233338
  // node_modules/conventional-changelog-angular/src/writer.js
233513
233339
  var COMMIT_HASH_LENGTH = 7;
233340
+ function compareNotes(a2, b2) {
233341
+ return (a2.title || "").localeCompare(b2.title || "") || (a2.text || "").localeCompare(b2.text || "");
233342
+ }
233514
233343
  function createWriterOpts() {
233515
233344
  return {
233516
- mainTemplate,
233345
+ template,
233517
233346
  headerPartial,
233347
+ preamblePartial,
233518
233348
  commitPartial,
233519
233349
  footerPartial,
233520
233350
  transform: (commit, context) => {
@@ -233555,12 +233385,12 @@ function createWriterOpts() {
233555
233385
  const issues = [];
233556
233386
  let { subject } = commit;
233557
233387
  if (typeof subject === "string") {
233558
- let url = context.repository ? `${context.host}/${context.owner}/${context.repository}` : context.repoUrl;
233559
- if (url) {
233560
- url = `${url}/issues/`;
233388
+ let url2 = context.repository ? `${context.host}/${context.owner}/${context.repository}` : context.repoUrl;
233389
+ if (url2) {
233390
+ url2 = `${url2}/issues/`;
233561
233391
  subject = subject.replace(/#([0-9]+)/g, (_2, issue) => {
233562
233392
  issues.push(issue);
233563
- return `[#${issue}](${url}${issue})`;
233393
+ return `[#${issue}](${url2}${issue})`;
233564
233394
  });
233565
233395
  }
233566
233396
  if (context.host) {
@@ -233575,7 +233405,7 @@ function createWriterOpts() {
233575
233405
  });
233576
233406
  }
233577
233407
  }
233578
- const references = commit.references.filter((reference) => !issues.includes(reference.issue));
233408
+ const references = commit.references.filter((reference2) => !issues.includes(reference2.issue));
233579
233409
  return {
233580
233410
  notes,
233581
233411
  type,
@@ -233589,7 +233419,7 @@ function createWriterOpts() {
233589
233419
  commitGroupsSort: "title",
233590
233420
  commitsSort: ["scope", "subject"],
233591
233421
  noteGroupsSort: "title",
233592
- notesSort: import_compare_func.default
233422
+ notesSort: compareNotes
233593
233423
  };
233594
233424
  }
233595
233425
 
@@ -233759,10 +233589,10 @@ function isArrayLike(value) {
233759
233589
  }
233760
233590
 
233761
233591
  // node_modules/es-toolkit/dist/compat/util/toString.mjs
233762
- function toString(value) {
233592
+ function toString2(value) {
233763
233593
  if (value == null) return "";
233764
233594
  if (typeof value === "string") return value;
233765
- if (Array.isArray(value)) return value.map(toString).join(",");
233595
+ if (Array.isArray(value)) return value.map(toString2).join(",");
233766
233596
  const result = String(value);
233767
233597
  if (result === "0" && Object.is(Number(value), -0)) return "-0";
233768
233598
  return result;
@@ -234115,18 +233945,18 @@ function deburr(str) {
234115
233945
 
234116
233946
  // node_modules/es-toolkit/dist/compat/string/deburr.mjs
234117
233947
  function deburr2(str) {
234118
- return deburr(toString(str));
233948
+ return deburr(toString2(str));
234119
233949
  }
234120
233950
 
234121
233951
  // node_modules/es-toolkit/dist/string/words.mjs
234122
233952
  var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
234123
- function words(str) {
233953
+ function words2(str) {
234124
233954
  return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
234125
233955
  }
234126
233956
 
234127
233957
  // node_modules/es-toolkit/dist/string/camelCase.mjs
234128
233958
  function camelCase(str) {
234129
- const words$1 = words(str);
233959
+ const words$1 = words2(str);
234130
233960
  if (words$1.length === 0) return "";
234131
233961
  const [first, ...rest] = words$1;
234132
233962
  return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
@@ -234134,7 +233964,7 @@ function camelCase(str) {
234134
233964
 
234135
233965
  // node_modules/es-toolkit/dist/compat/_internal/normalizeForCase.mjs
234136
233966
  function normalizeForCase(str) {
234137
- if (typeof str !== "string") str = toString(str);
233967
+ if (typeof str !== "string") str = toString2(str);
234138
233968
  return str.replace(/['\u2019]/g, "");
234139
233969
  }
234140
233970
 
@@ -234145,7 +233975,7 @@ function camelCase2(str) {
234145
233975
 
234146
233976
  // node_modules/es-toolkit/dist/string/kebabCase.mjs
234147
233977
  function kebabCase(str) {
234148
- return words(str).map((word) => word.toLowerCase()).join("-");
233978
+ return words2(str).map((word) => word.toLowerCase()).join("-");
234149
233979
  }
234150
233980
 
234151
233981
  // node_modules/es-toolkit/dist/compat/string/kebabCase.mjs
@@ -234155,7 +233985,7 @@ function kebabCase2(str) {
234155
233985
 
234156
233986
  // node_modules/es-toolkit/dist/string/snakeCase.mjs
234157
233987
  function snakeCase(str) {
234158
- return words(str).map((word) => word.toLowerCase()).join("_");
233988
+ return words2(str).map((word) => word.toLowerCase()).join("_");
234159
233989
  }
234160
233990
 
234161
233991
  // node_modules/es-toolkit/dist/compat/string/snakeCase.mjs
@@ -234165,7 +233995,7 @@ function snakeCase2(str) {
234165
233995
 
234166
233996
  // node_modules/es-toolkit/dist/compat/string/startCase.mjs
234167
233997
  function startCase(str) {
234168
- const words$1 = words(normalizeForCase(deburr2(str)).trim());
233998
+ const words$1 = words2(normalizeForCase(deburr2(str)).trim());
234169
233999
  let result = "";
234170
234000
  for (let i2 = 0; i2 < words$1.length; i2++) {
234171
234001
  const word = words$1[i2];
@@ -234183,7 +234013,7 @@ function upperFirst(str) {
234183
234013
 
234184
234014
  // node_modules/es-toolkit/dist/compat/string/upperFirst.mjs
234185
234015
  function upperFirst2(str) {
234186
- return upperFirst(toString(str));
234016
+ return upperFirst(toString2(str));
234187
234017
  }
234188
234018
 
234189
234019
  // node_modules/@commitlint/ensure/lib/to-case.js
@@ -234269,10 +234099,10 @@ var bodyCase = (parsed, when = "always", value = []) => {
234269
234099
  const r2 = case_default(body, check.case);
234270
234100
  return negated(check.when) ? !r2 : r2;
234271
234101
  });
234272
- const list = checks.map((c2) => c2.case).join(", ");
234102
+ const list2 = checks.map((c2) => c2.case).join(", ");
234273
234103
  return [
234274
234104
  negated(when) ? !result : result,
234275
- message([`body must`, negated(when) ? `not` : null, `be ${list}`])
234105
+ message([`body must`, negated(when) ? `not` : null, `be ${list2}`])
234276
234106
  ];
234277
234107
  };
234278
234108
 
@@ -234424,10 +234254,10 @@ var headerCase = (parsed, when = "always", value = []) => {
234424
234254
  const r2 = case_default(header, check.case);
234425
234255
  return negated2(check.when) ? !r2 : r2;
234426
234256
  });
234427
- const list = checks.map((c2) => c2.case).join(", ");
234257
+ const list2 = checks.map((c2) => c2.case).join(", ");
234428
234258
  return [
234429
234259
  negated2(when) ? !result : result,
234430
- message([`header must`, negated2(when) ? `not` : null, `be ${list}`])
234260
+ message([`header must`, negated2(when) ? `not` : null, `be ${list2}`])
234431
234261
  ];
234432
234262
  };
234433
234263
 
@@ -234511,10 +234341,10 @@ var scopeCase = (parsed, when = "always", value = []) => {
234511
234341
  const r2 = scopeSegments.every((segment) => delimiterRegex.test(segment) || case_default(segment, check.case));
234512
234342
  return negated3(check.when) ? !r2 : r2;
234513
234343
  });
234514
- const list = checks.map((c2) => c2.case).join(", ");
234344
+ const list2 = checks.map((c2) => c2.case).join(", ");
234515
234345
  return [
234516
234346
  negated3(when) ? !result : result,
234517
- message([`scope must`, negated3(when) ? `not` : null, `be ${list}`])
234347
+ message([`scope must`, negated3(when) ? `not` : null, `be ${list2}`])
234518
234348
  ];
234519
234349
  };
234520
234350
 
@@ -234633,10 +234463,10 @@ var subjectCase = (parsed, when = "always", value = []) => {
234633
234463
  const r2 = case_default(subject, check.case);
234634
234464
  return negated4(check.when) ? !r2 : r2;
234635
234465
  });
234636
- const list = checks.map((c2) => c2.case).join(", ");
234466
+ const list2 = checks.map((c2) => c2.case).join(", ");
234637
234467
  return [
234638
234468
  negated4(when) ? !result : result,
234639
- message([`subject must`, negated4(when) ? `not` : null, `be ${list}`])
234469
+ message([`subject must`, negated4(when) ? `not` : null, `be ${list2}`])
234640
234470
  ];
234641
234471
  };
234642
234472
 
@@ -234739,10 +234569,10 @@ var typeCase = (parsed, when = "always", value = []) => {
234739
234569
  const r2 = case_default(type, check.case);
234740
234570
  return negated5(check.when) ? !r2 : r2;
234741
234571
  });
234742
- const list = checks.map((c2) => c2.case).join(", ");
234572
+ const list2 = checks.map((c2) => c2.case).join(", ");
234743
234573
  return [
234744
234574
  negated5(when) ? !result : result,
234745
- message([`type must`, negated5(when) ? `not` : null, `be ${list}`])
234575
+ message([`type must`, negated5(when) ? `not` : null, `be ${list2}`])
234746
234576
  ];
234747
234577
  };
234748
234578
 
@@ -235199,6 +235029,65 @@ var dynamicImport = async (id) => {
235199
235029
  };
235200
235030
  var pathSuffixes = ["", ".js", ".json", `${path2.sep}index.js`, `${path2.sep}index.json`];
235201
235031
  var specifierSuffixes = ["", ".js", ".json", "/index.js", "/index.json"];
235032
+ var resolveExportsEntry = (manifest) => {
235033
+ const fromConditions = (value) => {
235034
+ if (typeof value === "string") {
235035
+ return value;
235036
+ }
235037
+ if (value && typeof value === "object" && !Array.isArray(value)) {
235038
+ const conditions = value;
235039
+ for (const key of ["import", "module", "node", "default"]) {
235040
+ if (key in conditions) {
235041
+ const resolved = fromConditions(conditions[key]);
235042
+ if (resolved) {
235043
+ return resolved;
235044
+ }
235045
+ }
235046
+ }
235047
+ }
235048
+ return void 0;
235049
+ };
235050
+ let exp = manifest.exports;
235051
+ if (exp && typeof exp === "object" && !Array.isArray(exp) && "." in exp) {
235052
+ exp = exp["."];
235053
+ }
235054
+ return fromConditions(exp) || (typeof manifest.module === "string" ? manifest.module : void 0) || (typeof manifest.main === "string" ? manifest.main : void 0) || "index.js";
235055
+ };
235056
+ var resolveEsmOnly = (lookup, fromDir) => {
235057
+ if (path2.isAbsolute(lookup) || lookup.startsWith(".")) {
235058
+ return void 0;
235059
+ }
235060
+ const segments2 = lookup.split("/");
235061
+ const pkgName = lookup.startsWith("@") ? segments2.slice(0, 2).join("/") : segments2[0];
235062
+ const subpath = lookup.slice(pkgName.length).replace(/^\//, "");
235063
+ let dir = fromDir;
235064
+ for (; ; ) {
235065
+ const pkgDir = path2.join(dir, "node_modules", pkgName);
235066
+ const manifestPath = path2.join(pkgDir, "package.json");
235067
+ if (fs2.existsSync(manifestPath)) {
235068
+ if (subpath) {
235069
+ for (const suffix of pathSuffixes) {
235070
+ const filename = path2.join(pkgDir, subpath) + suffix;
235071
+ if (fs2.existsSync(filename)) {
235072
+ return filename;
235073
+ }
235074
+ }
235075
+ return void 0;
235076
+ }
235077
+ const manifest = JSON.parse(fs2.readFileSync(manifestPath, "utf-8"));
235078
+ const resolved = path2.join(pkgDir, resolveExportsEntry(manifest));
235079
+ if (fs2.existsSync(resolved)) {
235080
+ return resolved;
235081
+ }
235082
+ return void 0;
235083
+ }
235084
+ const parentDir = path2.dirname(dir);
235085
+ if (parentDir === dir) {
235086
+ return void 0;
235087
+ }
235088
+ dir = parentDir;
235089
+ }
235090
+ };
235202
235091
  var resolveFrom = (lookup, parent) => {
235203
235092
  if (path2.isAbsolute(lookup)) {
235204
235093
  for (const suffix of pathSuffixes) {
@@ -235223,6 +235112,10 @@ var resolveFrom = (lookup, parent) => {
235223
235112
  try {
235224
235113
  return (0, import_resolve_from.default)(path2.dirname(parentPath), lookup);
235225
235114
  } catch {
235115
+ const esmResolved = resolveEsmOnly(lookup, path2.dirname(parentPath));
235116
+ if (esmResolved) {
235117
+ return esmResolved;
235118
+ }
235226
235119
  throw resolveError;
235227
235120
  }
235228
235121
  };
@@ -237292,7 +237185,7 @@ var ANSI_OSC = "]";
237292
237185
  var ANSI_SGR_TERMINATOR = "m";
237293
237186
  var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
237294
237187
  var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
237295
- var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
237188
+ var wrapAnsiHyperlink = (url2) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url2}${ANSI_ESCAPE_BELL}`;
237296
237189
  var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
237297
237190
  var wrapWord = (rows, word, columns) => {
237298
237191
  const characters = [...word];
@@ -237334,18 +237227,18 @@ var wrapWord = (rows, word, columns) => {
237334
237227
  }
237335
237228
  };
237336
237229
  var stringVisibleTrimSpacesRight = (string) => {
237337
- const words2 = string.split(" ");
237338
- let last = words2.length;
237230
+ const words3 = string.split(" ");
237231
+ let last = words3.length;
237339
237232
  while (last > 0) {
237340
- if (stringWidth(words2[last - 1]) > 0) {
237233
+ if (stringWidth(words3[last - 1]) > 0) {
237341
237234
  break;
237342
237235
  }
237343
237236
  last--;
237344
237237
  }
237345
- if (last === words2.length) {
237238
+ if (last === words3.length) {
237346
237239
  return string;
237347
237240
  }
237348
- return words2.slice(0, last).join(" ") + words2.slice(last).join("");
237241
+ return words3.slice(0, last).join(" ") + words3.slice(last).join("");
237349
237242
  };
237350
237243
  var exec = (string, columns, options = {}) => {
237351
237244
  if (options.trim !== false && string.trim() === "") {
@@ -240164,9 +240057,9 @@ var Completion = class {
240164
240057
  if (isSyncCompletionFunction(this.customCompletionFunction)) {
240165
240058
  const result = this.customCompletionFunction(current, argv);
240166
240059
  if (isPromise(result)) {
240167
- return result.then((list) => {
240060
+ return result.then((list2) => {
240168
240061
  this.shim.process.nextTick(() => {
240169
- done(null, list);
240062
+ done(null, list2);
240170
240063
  });
240171
240064
  }).catch((err) => {
240172
240065
  this.shim.process.nextTick(() => {