prettier 3.0.0-alpha.11 → 3.0.0-alpha.12

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.
package/index.mjs CHANGED
@@ -1379,15 +1379,15 @@ var require_route = __commonJS({
1379
1379
  };
1380
1380
  }
1381
1381
  function wrapConversion(toModel, graph) {
1382
- var path11 = [graph[toModel].parent, toModel];
1382
+ var path9 = [graph[toModel].parent, toModel];
1383
1383
  var fn = conversions[graph[toModel].parent][toModel];
1384
1384
  var cur = graph[toModel].parent;
1385
1385
  while (graph[cur].parent) {
1386
- path11.unshift(graph[cur].parent);
1386
+ path9.unshift(graph[cur].parent);
1387
1387
  fn = link(conversions[graph[cur].parent][cur], fn);
1388
1388
  cur = graph[cur].parent;
1389
1389
  }
1390
- fn.conversion = path11;
1390
+ fn.conversion = path9;
1391
1391
  return fn;
1392
1392
  }
1393
1393
  module.exports = function(fromModel) {
@@ -2815,7 +2815,7 @@ var require_path = __commonJS({
2815
2815
  "use strict";
2816
2816
  Object.defineProperty(exports, "__esModule", { value: true });
2817
2817
  exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
2818
- var path11 = __require("path");
2818
+ var path9 = __require("path");
2819
2819
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
2820
2820
  var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
2821
2821
  function unixify(filepath) {
@@ -2823,7 +2823,7 @@ var require_path = __commonJS({
2823
2823
  }
2824
2824
  exports.unixify = unixify;
2825
2825
  function makeAbsolute(cwd, filepath) {
2826
- return path11.resolve(cwd, filepath);
2826
+ return path9.resolve(cwd, filepath);
2827
2827
  }
2828
2828
  exports.makeAbsolute = makeAbsolute;
2829
2829
  function escape(pattern) {
@@ -4130,7 +4130,7 @@ var require_braces = __commonJS({
4130
4130
  var require_constants2 = __commonJS({
4131
4131
  "node_modules/picomatch/lib/constants.js"(exports, module) {
4132
4132
  "use strict";
4133
- var path11 = __require("path");
4133
+ var path9 = __require("path");
4134
4134
  var WIN_SLASH = "\\\\/";
4135
4135
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
4136
4136
  var DOT_LITERAL = "\\.";
@@ -4300,7 +4300,7 @@ var require_constants2 = __commonJS({
4300
4300
  /* | */
4301
4301
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
4302
4302
  /* \uFEFF */
4303
- SEP: path11.sep,
4303
+ SEP: path9.sep,
4304
4304
  /**
4305
4305
  * Create EXTGLOB_CHARS
4306
4306
  */
@@ -4327,7 +4327,7 @@ var require_constants2 = __commonJS({
4327
4327
  var require_utils3 = __commonJS({
4328
4328
  "node_modules/picomatch/lib/utils.js"(exports) {
4329
4329
  "use strict";
4330
- var path11 = __require("path");
4330
+ var path9 = __require("path");
4331
4331
  var win32 = process.platform === "win32";
4332
4332
  var {
4333
4333
  REGEX_BACKSLASH,
@@ -4356,7 +4356,7 @@ var require_utils3 = __commonJS({
4356
4356
  if (options8 && typeof options8.windows === "boolean") {
4357
4357
  return options8.windows;
4358
4358
  }
4359
- return win32 === true || path11.sep === "\\";
4359
+ return win32 === true || path9.sep === "\\";
4360
4360
  };
4361
4361
  exports.escapeLast = (input, char, lastIdx) => {
4362
4362
  const idx = input.lastIndexOf(char, lastIdx);
@@ -5504,7 +5504,7 @@ var require_parse2 = __commonJS({
5504
5504
  var require_picomatch = __commonJS({
5505
5505
  "node_modules/picomatch/lib/picomatch.js"(exports, module) {
5506
5506
  "use strict";
5507
- var path11 = __require("path");
5507
+ var path9 = __require("path");
5508
5508
  var scan = require_scan();
5509
5509
  var parse3 = require_parse2();
5510
5510
  var utils = require_utils3();
@@ -5590,7 +5590,7 @@ var require_picomatch = __commonJS({
5590
5590
  };
5591
5591
  picomatch.matchBase = (input, glob, options8, posix = utils.isWindows(options8)) => {
5592
5592
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options8);
5593
- return regex.test(path11.basename(input));
5593
+ return regex.test(path9.basename(input));
5594
5594
  };
5595
5595
  picomatch.isMatch = (str, patterns, options8) => picomatch(patterns, options8)(str);
5596
5596
  picomatch.parse = (pattern, options8) => {
@@ -5820,7 +5820,7 @@ var require_pattern = __commonJS({
5820
5820
  "use strict";
5821
5821
  Object.defineProperty(exports, "__esModule", { value: true });
5822
5822
  exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
5823
- var path11 = __require("path");
5823
+ var path9 = __require("path");
5824
5824
  var globParent = require_glob_parent();
5825
5825
  var micromatch2 = require_micromatch();
5826
5826
  var GLOBSTAR = "**";
@@ -5914,7 +5914,7 @@ var require_pattern = __commonJS({
5914
5914
  }
5915
5915
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
5916
5916
  function isAffectDepthOfReadingPattern(pattern) {
5917
- const basename = path11.basename(pattern);
5917
+ const basename = path9.basename(pattern);
5918
5918
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
5919
5919
  }
5920
5920
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -6127,10 +6127,10 @@ var require_utils4 = __commonJS({
6127
6127
  exports.array = array;
6128
6128
  var errno = require_errno();
6129
6129
  exports.errno = errno;
6130
- var fs6 = require_fs();
6131
- exports.fs = fs6;
6132
- var path11 = require_path();
6133
- exports.path = path11;
6130
+ var fs5 = require_fs();
6131
+ exports.fs = fs5;
6132
+ var path9 = require_path();
6133
+ exports.path = path9;
6134
6134
  var pattern = require_pattern();
6135
6135
  exports.pattern = pattern;
6136
6136
  var stream = require_stream();
@@ -6248,8 +6248,8 @@ var require_async = __commonJS({
6248
6248
  "use strict";
6249
6249
  Object.defineProperty(exports, "__esModule", { value: true });
6250
6250
  exports.read = void 0;
6251
- function read2(path11, settings, callback) {
6252
- settings.fs.lstat(path11, (lstatError, lstat) => {
6251
+ function read2(path9, settings, callback) {
6252
+ settings.fs.lstat(path9, (lstatError, lstat) => {
6253
6253
  if (lstatError !== null) {
6254
6254
  callFailureCallback(callback, lstatError);
6255
6255
  return;
@@ -6258,7 +6258,7 @@ var require_async = __commonJS({
6258
6258
  callSuccessCallback(callback, lstat);
6259
6259
  return;
6260
6260
  }
6261
- settings.fs.stat(path11, (statError, stat) => {
6261
+ settings.fs.stat(path9, (statError, stat) => {
6262
6262
  if (statError !== null) {
6263
6263
  if (settings.throwErrorOnBrokenSymbolicLink) {
6264
6264
  callFailureCallback(callback, statError);
@@ -6290,13 +6290,13 @@ var require_sync = __commonJS({
6290
6290
  "use strict";
6291
6291
  Object.defineProperty(exports, "__esModule", { value: true });
6292
6292
  exports.read = void 0;
6293
- function read2(path11, settings) {
6294
- const lstat = settings.fs.lstatSync(path11);
6293
+ function read2(path9, settings) {
6294
+ const lstat = settings.fs.lstatSync(path9);
6295
6295
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
6296
6296
  return lstat;
6297
6297
  }
6298
6298
  try {
6299
- const stat = settings.fs.statSync(path11);
6299
+ const stat = settings.fs.statSync(path9);
6300
6300
  if (settings.markSymbolicLink) {
6301
6301
  stat.isSymbolicLink = () => true;
6302
6302
  }
@@ -6318,12 +6318,12 @@ var require_fs2 = __commonJS({
6318
6318
  "use strict";
6319
6319
  Object.defineProperty(exports, "__esModule", { value: true });
6320
6320
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
6321
- var fs6 = __require("fs");
6321
+ var fs5 = __require("fs");
6322
6322
  exports.FILE_SYSTEM_ADAPTER = {
6323
- lstat: fs6.lstat,
6324
- stat: fs6.stat,
6325
- lstatSync: fs6.lstatSync,
6326
- statSync: fs6.statSync
6323
+ lstat: fs5.lstat,
6324
+ stat: fs5.stat,
6325
+ lstatSync: fs5.lstatSync,
6326
+ statSync: fs5.statSync
6327
6327
  };
6328
6328
  function createFileSystemAdapter(fsMethods) {
6329
6329
  if (fsMethods === void 0) {
@@ -6340,12 +6340,12 @@ var require_settings = __commonJS({
6340
6340
  "node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
6341
6341
  "use strict";
6342
6342
  Object.defineProperty(exports, "__esModule", { value: true });
6343
- var fs6 = require_fs2();
6343
+ var fs5 = require_fs2();
6344
6344
  var Settings = class {
6345
6345
  constructor(_options = {}) {
6346
6346
  this._options = _options;
6347
6347
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
6348
- this.fs = fs6.createFileSystemAdapter(this._options.fs);
6348
+ this.fs = fs5.createFileSystemAdapter(this._options.fs);
6349
6349
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
6350
6350
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
6351
6351
  }
@@ -6367,17 +6367,17 @@ var require_out = __commonJS({
6367
6367
  var sync = require_sync();
6368
6368
  var settings_1 = require_settings();
6369
6369
  exports.Settings = settings_1.default;
6370
- function stat(path11, optionsOrSettingsOrCallback, callback) {
6370
+ function stat(path9, optionsOrSettingsOrCallback, callback) {
6371
6371
  if (typeof optionsOrSettingsOrCallback === "function") {
6372
- async.read(path11, getSettings(), optionsOrSettingsOrCallback);
6372
+ async.read(path9, getSettings(), optionsOrSettingsOrCallback);
6373
6373
  return;
6374
6374
  }
6375
- async.read(path11, getSettings(optionsOrSettingsOrCallback), callback);
6375
+ async.read(path9, getSettings(optionsOrSettingsOrCallback), callback);
6376
6376
  }
6377
6377
  exports.stat = stat;
6378
- function statSync2(path11, optionsOrSettings) {
6378
+ function statSync2(path9, optionsOrSettings) {
6379
6379
  const settings = getSettings(optionsOrSettings);
6380
- return sync.read(path11, settings);
6380
+ return sync.read(path9, settings);
6381
6381
  }
6382
6382
  exports.statSync = statSync2;
6383
6383
  function getSettings(settingsOrOptions = {}) {
@@ -6503,8 +6503,8 @@ var require_utils5 = __commonJS({
6503
6503
  "use strict";
6504
6504
  Object.defineProperty(exports, "__esModule", { value: true });
6505
6505
  exports.fs = void 0;
6506
- var fs6 = require_fs3();
6507
- exports.fs = fs6;
6506
+ var fs5 = require_fs3();
6507
+ exports.fs = fs5;
6508
6508
  }
6509
6509
  });
6510
6510
 
@@ -6596,16 +6596,16 @@ var require_async2 = __commonJS({
6596
6596
  return;
6597
6597
  }
6598
6598
  const tasks = names.map((name) => {
6599
- const path11 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
6599
+ const path9 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
6600
6600
  return (done) => {
6601
- fsStat.stat(path11, settings.fsStatSettings, (error, stats) => {
6601
+ fsStat.stat(path9, settings.fsStatSettings, (error, stats) => {
6602
6602
  if (error !== null) {
6603
6603
  done(error);
6604
6604
  return;
6605
6605
  }
6606
6606
  const entry = {
6607
6607
  name,
6608
- path: path11,
6608
+ path: path9,
6609
6609
  dirent: utils.fs.createDirentFromStats(name, stats)
6610
6610
  };
6611
6611
  if (settings.stats) {
@@ -6699,14 +6699,14 @@ var require_fs4 = __commonJS({
6699
6699
  "use strict";
6700
6700
  Object.defineProperty(exports, "__esModule", { value: true });
6701
6701
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
6702
- var fs6 = __require("fs");
6702
+ var fs5 = __require("fs");
6703
6703
  exports.FILE_SYSTEM_ADAPTER = {
6704
- lstat: fs6.lstat,
6705
- stat: fs6.stat,
6706
- lstatSync: fs6.lstatSync,
6707
- statSync: fs6.statSync,
6708
- readdir: fs6.readdir,
6709
- readdirSync: fs6.readdirSync
6704
+ lstat: fs5.lstat,
6705
+ stat: fs5.stat,
6706
+ lstatSync: fs5.lstatSync,
6707
+ statSync: fs5.statSync,
6708
+ readdir: fs5.readdir,
6709
+ readdirSync: fs5.readdirSync
6710
6710
  };
6711
6711
  function createFileSystemAdapter(fsMethods) {
6712
6712
  if (fsMethods === void 0) {
@@ -6723,15 +6723,15 @@ var require_settings2 = __commonJS({
6723
6723
  "node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
6724
6724
  "use strict";
6725
6725
  Object.defineProperty(exports, "__esModule", { value: true });
6726
- var path11 = __require("path");
6726
+ var path9 = __require("path");
6727
6727
  var fsStat = require_out();
6728
- var fs6 = require_fs4();
6728
+ var fs5 = require_fs4();
6729
6729
  var Settings = class {
6730
6730
  constructor(_options = {}) {
6731
6731
  this._options = _options;
6732
6732
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
6733
- this.fs = fs6.createFileSystemAdapter(this._options.fs);
6734
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path11.sep);
6733
+ this.fs = fs5.createFileSystemAdapter(this._options.fs);
6734
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep);
6735
6735
  this.stats = this._getValue(this._options.stats, false);
6736
6736
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
6737
6737
  this.fsStatSettings = new fsStat.Settings({
@@ -6758,17 +6758,17 @@ var require_out2 = __commonJS({
6758
6758
  var sync = require_sync2();
6759
6759
  var settings_1 = require_settings2();
6760
6760
  exports.Settings = settings_1.default;
6761
- function scandir(path11, optionsOrSettingsOrCallback, callback) {
6761
+ function scandir(path9, optionsOrSettingsOrCallback, callback) {
6762
6762
  if (typeof optionsOrSettingsOrCallback === "function") {
6763
- async.read(path11, getSettings(), optionsOrSettingsOrCallback);
6763
+ async.read(path9, getSettings(), optionsOrSettingsOrCallback);
6764
6764
  return;
6765
6765
  }
6766
- async.read(path11, getSettings(optionsOrSettingsOrCallback), callback);
6766
+ async.read(path9, getSettings(optionsOrSettingsOrCallback), callback);
6767
6767
  }
6768
6768
  exports.scandir = scandir;
6769
- function scandirSync(path11, optionsOrSettings) {
6769
+ function scandirSync(path9, optionsOrSettings) {
6770
6770
  const settings = getSettings(optionsOrSettings);
6771
- return sync.read(path11, settings);
6771
+ return sync.read(path9, settings);
6772
6772
  }
6773
6773
  exports.scandirSync = scandirSync;
6774
6774
  function getSettings(settingsOrOptions = {}) {
@@ -7032,6 +7032,11 @@ var require_queue = __commonJS({
7032
7032
  return p;
7033
7033
  }
7034
7034
  function drained() {
7035
+ if (queue.idle()) {
7036
+ return new Promise(function(resolve2) {
7037
+ resolve2();
7038
+ });
7039
+ }
7035
7040
  var previousDrain = queue.drain;
7036
7041
  var p = new Promise(function(resolve2) {
7037
7042
  queue.drain = function() {
@@ -7367,7 +7372,7 @@ var require_settings3 = __commonJS({
7367
7372
  "node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
7368
7373
  "use strict";
7369
7374
  Object.defineProperty(exports, "__esModule", { value: true });
7370
- var path11 = __require("path");
7375
+ var path9 = __require("path");
7371
7376
  var fsScandir = require_out2();
7372
7377
  var Settings = class {
7373
7378
  constructor(_options = {}) {
@@ -7377,7 +7382,7 @@ var require_settings3 = __commonJS({
7377
7382
  this.deepFilter = this._getValue(this._options.deepFilter, null);
7378
7383
  this.entryFilter = this._getValue(this._options.entryFilter, null);
7379
7384
  this.errorFilter = this._getValue(this._options.errorFilter, null);
7380
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path11.sep);
7385
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path9.sep);
7381
7386
  this.fsScandirSettings = new fsScandir.Settings({
7382
7387
  followSymbolicLinks: this._options.followSymbolicLinks,
7383
7388
  fs: this._options.fs,
@@ -7439,7 +7444,7 @@ var require_reader2 = __commonJS({
7439
7444
  "node_modules/fast-glob/out/readers/reader.js"(exports) {
7440
7445
  "use strict";
7441
7446
  Object.defineProperty(exports, "__esModule", { value: true });
7442
- var path11 = __require("path");
7447
+ var path9 = __require("path");
7443
7448
  var fsStat = require_out();
7444
7449
  var utils = require_utils4();
7445
7450
  var Reader = class {
@@ -7452,7 +7457,7 @@ var require_reader2 = __commonJS({
7452
7457
  });
7453
7458
  }
7454
7459
  _getFullEntryPath(filepath) {
7455
- return path11.resolve(this._settings.cwd, filepath);
7460
+ return path9.resolve(this._settings.cwd, filepath);
7456
7461
  }
7457
7462
  _makeEntry(stats, pattern) {
7458
7463
  const entry = {
@@ -7751,8 +7756,8 @@ var require_entry = __commonJS({
7751
7756
  return false;
7752
7757
  }
7753
7758
  const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
7754
- const isDirectory2 = entry.dirent.isDirectory();
7755
- const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory2) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory2);
7759
+ const isDirectory = entry.dirent.isDirectory();
7760
+ const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
7756
7761
  if (this._settings.unique && isMatched) {
7757
7762
  this._createIndexRecord(entry);
7758
7763
  }
@@ -7777,10 +7782,10 @@ var require_entry = __commonJS({
7777
7782
  const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
7778
7783
  return utils.pattern.matchAny(fullpath, patternsRe);
7779
7784
  }
7780
- _isMatchToPatterns(entryPath, patternsRe, isDirectory2) {
7785
+ _isMatchToPatterns(entryPath, patternsRe, isDirectory) {
7781
7786
  const filepath = utils.path.removeLeadingDotSegment(entryPath);
7782
7787
  const isMatched = utils.pattern.matchAny(filepath, patternsRe);
7783
- if (!isMatched && isDirectory2) {
7788
+ if (!isMatched && isDirectory) {
7784
7789
  return utils.pattern.matchAny(filepath + "/", patternsRe);
7785
7790
  }
7786
7791
  return isMatched;
@@ -7848,7 +7853,7 @@ var require_provider = __commonJS({
7848
7853
  "node_modules/fast-glob/out/providers/provider.js"(exports) {
7849
7854
  "use strict";
7850
7855
  Object.defineProperty(exports, "__esModule", { value: true });
7851
- var path11 = __require("path");
7856
+ var path9 = __require("path");
7852
7857
  var deep_1 = require_deep();
7853
7858
  var entry_1 = require_entry();
7854
7859
  var error_1 = require_error();
@@ -7862,7 +7867,7 @@ var require_provider = __commonJS({
7862
7867
  this.entryTransformer = new entry_2.default(this._settings);
7863
7868
  }
7864
7869
  _getRootDirectory(task) {
7865
- return path11.resolve(this._settings.cwd, task.base);
7870
+ return path9.resolve(this._settings.cwd, task.base);
7866
7871
  }
7867
7872
  _getReaderOptions(task) {
7868
7873
  const basePath = task.base === "." ? "" : task.base;
@@ -8043,16 +8048,16 @@ var require_settings4 = __commonJS({
8043
8048
  "use strict";
8044
8049
  Object.defineProperty(exports, "__esModule", { value: true });
8045
8050
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
8046
- var fs6 = __require("fs");
8051
+ var fs5 = __require("fs");
8047
8052
  var os = __require("os");
8048
8053
  var CPU_COUNT = Math.max(os.cpus().length, 1);
8049
8054
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
8050
- lstat: fs6.lstat,
8051
- lstatSync: fs6.lstatSync,
8052
- stat: fs6.stat,
8053
- statSync: fs6.statSync,
8054
- readdir: fs6.readdir,
8055
- readdirSync: fs6.readdirSync
8055
+ lstat: fs5.lstat,
8056
+ lstatSync: fs5.lstatSync,
8057
+ stat: fs5.stat,
8058
+ statSync: fs5.statSync,
8059
+ readdir: fs5.readdir,
8060
+ readdirSync: fs5.readdirSync
8056
8061
  };
8057
8062
  var Settings = class {
8058
8063
  constructor(_options = {}) {
@@ -8375,10 +8380,10 @@ var require_base = __commonJS({
8375
8380
  }
8376
8381
  return components;
8377
8382
  }
8378
- function clonePath(path11) {
8383
+ function clonePath(path9) {
8379
8384
  return {
8380
- newPos: path11.newPos,
8381
- components: path11.components.slice(0)
8385
+ newPos: path9.newPos,
8386
+ components: path9.components.slice(0)
8382
8387
  };
8383
8388
  }
8384
8389
  }
@@ -8416,21 +8421,11 @@ var require_array3 = __commonJS({
8416
8421
  }
8417
8422
  });
8418
8423
 
8419
- // node_modules/string-width/node_modules/emoji-regex/index.js
8420
- var require_emoji_regex = __commonJS({
8421
- "node_modules/string-width/node_modules/emoji-regex/index.js"(exports, module) {
8422
- "use strict";
8423
- module.exports = function() {
8424
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
8425
- };
8426
- }
8427
- });
8428
-
8429
8424
  // node_modules/n-readlines/readlines.js
8430
8425
  var require_readlines = __commonJS({
8431
8426
  "node_modules/n-readlines/readlines.js"(exports, module) {
8432
8427
  "use strict";
8433
- var fs6 = __require("fs");
8428
+ var fs5 = __require("fs");
8434
8429
  var LineByLine = class {
8435
8430
  constructor(file, options8) {
8436
8431
  options8 = options8 || {};
@@ -8444,7 +8439,7 @@ var require_readlines = __commonJS({
8444
8439
  if (typeof file === "number") {
8445
8440
  this.fd = file;
8446
8441
  } else {
8447
- this.fd = fs6.openSync(file, "r");
8442
+ this.fd = fs5.openSync(file, "r");
8448
8443
  }
8449
8444
  this.options = options8;
8450
8445
  this.newLineCharacter = options8.newLineCharacter;
@@ -8467,7 +8462,7 @@ var require_readlines = __commonJS({
8467
8462
  this.fdPosition = 0;
8468
8463
  }
8469
8464
  close() {
8470
- fs6.closeSync(this.fd);
8465
+ fs5.closeSync(this.fd);
8471
8466
  this.fd = null;
8472
8467
  }
8473
8468
  _extractLines(buffer) {
@@ -8497,7 +8492,7 @@ var require_readlines = __commonJS({
8497
8492
  const buffers = [];
8498
8493
  do {
8499
8494
  const readBuffer = Buffer.alloc(this.options.readChunk);
8500
- bytesRead = fs6.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition);
8495
+ bytesRead = fs5.readSync(this.fd, readBuffer, 0, this.options.readChunk, this.fdPosition);
8501
8496
  totalBytesRead = totalBytesRead + bytesRead;
8502
8497
  this.fdPosition = this.fdPosition + bytesRead;
8503
8498
  buffers.push(readBuffer);
@@ -9541,11 +9536,23 @@ var require_constants4 = __commonJS({
9541
9536
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
9542
9537
  9007199254740991;
9543
9538
  var MAX_SAFE_COMPONENT_LENGTH = 16;
9539
+ var RELEASE_TYPES = [
9540
+ "major",
9541
+ "premajor",
9542
+ "minor",
9543
+ "preminor",
9544
+ "patch",
9545
+ "prepatch",
9546
+ "prerelease"
9547
+ ];
9544
9548
  module.exports = {
9545
- SEMVER_SPEC_VERSION,
9546
9549
  MAX_LENGTH,
9550
+ MAX_SAFE_COMPONENT_LENGTH,
9547
9551
  MAX_SAFE_INTEGER,
9548
- MAX_SAFE_COMPONENT_LENGTH
9552
+ RELEASE_TYPES,
9553
+ SEMVER_SPEC_VERSION,
9554
+ FLAG_INCLUDE_PRERELEASE: 1,
9555
+ FLAG_LOOSE: 2
9549
9556
  };
9550
9557
  }
9551
9558
  });
@@ -9616,11 +9623,17 @@ var require_re = __commonJS({
9616
9623
  // node_modules/semver/internal/parse-options.js
9617
9624
  var require_parse_options = __commonJS({
9618
9625
  "node_modules/semver/internal/parse-options.js"(exports, module) {
9619
- var opts = ["includePrerelease", "loose", "rtl"];
9620
- var parseOptions = (options8) => !options8 ? {} : typeof options8 !== "object" ? { loose: true } : opts.filter((k) => options8[k]).reduce((o, k) => {
9621
- o[k] = true;
9622
- return o;
9623
- }, {});
9626
+ var looseOption = Object.freeze({ loose: true });
9627
+ var emptyOpts = Object.freeze({});
9628
+ var parseOptions = (options8) => {
9629
+ if (!options8) {
9630
+ return emptyOpts;
9631
+ }
9632
+ if (typeof options8 !== "object") {
9633
+ return looseOption;
9634
+ }
9635
+ return options8;
9636
+ };
9624
9637
  module.exports = parseOptions;
9625
9638
  }
9626
9639
  });
@@ -9664,7 +9677,7 @@ var require_semver = __commonJS({
9664
9677
  version = version.version;
9665
9678
  }
9666
9679
  } else if (typeof version !== "string") {
9667
- throw new TypeError(`Invalid Version: ${version}`);
9680
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
9668
9681
  }
9669
9682
  if (version.length > MAX_LENGTH) {
9670
9683
  throw new TypeError(
@@ -9790,31 +9803,31 @@ var require_semver = __commonJS({
9790
9803
  }
9791
9804
  // preminor will bump the version up to the next minor release, and immediately
9792
9805
  // down to pre-release. premajor and prepatch work the same way.
9793
- inc(release, identifier) {
9806
+ inc(release, identifier, identifierBase) {
9794
9807
  switch (release) {
9795
9808
  case "premajor":
9796
9809
  this.prerelease.length = 0;
9797
9810
  this.patch = 0;
9798
9811
  this.minor = 0;
9799
9812
  this.major++;
9800
- this.inc("pre", identifier);
9813
+ this.inc("pre", identifier, identifierBase);
9801
9814
  break;
9802
9815
  case "preminor":
9803
9816
  this.prerelease.length = 0;
9804
9817
  this.patch = 0;
9805
9818
  this.minor++;
9806
- this.inc("pre", identifier);
9819
+ this.inc("pre", identifier, identifierBase);
9807
9820
  break;
9808
9821
  case "prepatch":
9809
9822
  this.prerelease.length = 0;
9810
- this.inc("patch", identifier);
9811
- this.inc("pre", identifier);
9823
+ this.inc("patch", identifier, identifierBase);
9824
+ this.inc("pre", identifier, identifierBase);
9812
9825
  break;
9813
9826
  case "prerelease":
9814
9827
  if (this.prerelease.length === 0) {
9815
- this.inc("patch", identifier);
9828
+ this.inc("patch", identifier, identifierBase);
9816
9829
  }
9817
- this.inc("pre", identifier);
9830
+ this.inc("pre", identifier, identifierBase);
9818
9831
  break;
9819
9832
  case "major":
9820
9833
  if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
@@ -9837,9 +9850,13 @@ var require_semver = __commonJS({
9837
9850
  }
9838
9851
  this.prerelease = [];
9839
9852
  break;
9840
- case "pre":
9853
+ case "pre": {
9854
+ const base = Number(identifierBase) ? 1 : 0;
9855
+ if (!identifier && identifierBase === false) {
9856
+ throw new Error("invalid increment argument: identifier is empty");
9857
+ }
9841
9858
  if (this.prerelease.length === 0) {
9842
- this.prerelease = [0];
9859
+ this.prerelease = [base];
9843
9860
  } else {
9844
9861
  let i = this.prerelease.length;
9845
9862
  while (--i >= 0) {
@@ -9849,19 +9866,27 @@ var require_semver = __commonJS({
9849
9866
  }
9850
9867
  }
9851
9868
  if (i === -1) {
9852
- this.prerelease.push(0);
9869
+ if (identifier === this.prerelease.join(".") && identifierBase === false) {
9870
+ throw new Error("invalid increment argument: identifier already exists");
9871
+ }
9872
+ this.prerelease.push(base);
9853
9873
  }
9854
9874
  }
9855
9875
  if (identifier) {
9876
+ let prerelease = [identifier, base];
9877
+ if (identifierBase === false) {
9878
+ prerelease = [identifier];
9879
+ }
9856
9880
  if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
9857
9881
  if (isNaN(this.prerelease[1])) {
9858
- this.prerelease = [identifier, 0];
9882
+ this.prerelease = prerelease;
9859
9883
  }
9860
9884
  } else {
9861
- this.prerelease = [identifier, 0];
9885
+ this.prerelease = prerelease;
9862
9886
  }
9863
9887
  }
9864
9888
  break;
9889
+ }
9865
9890
  default:
9866
9891
  throw new Error(`invalid increment argument: ${release}`);
9867
9892
  }
@@ -10774,7 +10799,7 @@ var require_fnmatch = __commonJS({
10774
10799
  var cache = minimatch.cache = new LRU({ max: 100 });
10775
10800
  var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
10776
10801
  var sigmund = require_sigmund();
10777
- var path11 = __require("path");
10802
+ var path9 = __require("path");
10778
10803
  var qmark = "[^/]";
10779
10804
  var star = qmark + "*?";
10780
10805
  var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
@@ -11294,7 +11319,7 @@ var require_fnmatch = __commonJS({
11294
11319
  );
11295
11320
  }
11296
11321
  if (options8.matchBase && pattern.length === 1) {
11297
- file = path11.basename(file.join("/")).split("/");
11322
+ file = path9.basename(file.join("/")).split("/");
11298
11323
  }
11299
11324
  if (options8.debug) {
11300
11325
  console.error("matchOne", file.length, pattern.length);
@@ -11511,7 +11536,7 @@ var require_ini = __commonJS({
11511
11536
  return result;
11512
11537
  };
11513
11538
  Object.defineProperty(exports, "__esModule", { value: true });
11514
- var fs6 = __importStar2(__require("fs"));
11539
+ var fs5 = __importStar2(__require("fs"));
11515
11540
  var regex = {
11516
11541
  section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,
11517
11542
  param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,
@@ -11521,7 +11546,7 @@ var require_ini = __commonJS({
11521
11546
  return __awaiter2(this, void 0, void 0, function() {
11522
11547
  return __generator2(this, function(_a) {
11523
11548
  return [2, new Promise(function(resolve2, reject) {
11524
- fs6.readFile(file, "utf8", function(err, data) {
11549
+ fs5.readFile(file, "utf8", function(err, data) {
11525
11550
  if (err) {
11526
11551
  reject(err);
11527
11552
  return;
@@ -11534,7 +11559,7 @@ var require_ini = __commonJS({
11534
11559
  }
11535
11560
  exports.parse = parse3;
11536
11561
  function parseSync(file) {
11537
- return parseString(fs6.readFileSync(file, "utf8"));
11562
+ return parseString(fs5.readFileSync(file, "utf8"));
11538
11563
  }
11539
11564
  exports.parseSync = parseSync;
11540
11565
  function parseString(data) {
@@ -11748,8 +11773,8 @@ var require_src = __commonJS({
11748
11773
  return mod && mod.__esModule ? mod : { "default": mod };
11749
11774
  };
11750
11775
  Object.defineProperty(exports, "__esModule", { value: true });
11751
- var fs6 = __importStar2(__require("fs"));
11752
- var path11 = __importStar2(__require("path"));
11776
+ var fs5 = __importStar2(__require("fs"));
11777
+ var path9 = __importStar2(__require("path"));
11753
11778
  var semver = {
11754
11779
  gte: require_gte()
11755
11780
  };
@@ -11773,8 +11798,8 @@ var require_src = __commonJS({
11773
11798
  function getConfigFileNames(filepath, options8) {
11774
11799
  var paths = [];
11775
11800
  do {
11776
- filepath = path11.dirname(filepath);
11777
- paths.push(path11.join(filepath, options8.config));
11801
+ filepath = path9.dirname(filepath);
11802
+ paths.push(path9.join(filepath, options8.config));
11778
11803
  } while (filepath !== options8.root);
11779
11804
  return paths;
11780
11805
  }
@@ -11797,7 +11822,7 @@ var require_src = __commonJS({
11797
11822
  return {
11798
11823
  config: options8.config || ".editorconfig",
11799
11824
  version: options8.version || package_json_1.default.version,
11800
- root: path11.resolve(options8.root || path11.parse(filepath).root)
11825
+ root: path9.resolve(options8.root || path9.parse(filepath).root)
11801
11826
  };
11802
11827
  }
11803
11828
  function buildFullGlob(pathPrefix, glob) {
@@ -11811,7 +11836,7 @@ var require_src = __commonJS({
11811
11836
  default:
11812
11837
  break;
11813
11838
  }
11814
- return path11.join(pathPrefix, glob);
11839
+ return path9.join(pathPrefix, glob);
11815
11840
  }
11816
11841
  function extendProps(props, options8) {
11817
11842
  if (props === void 0) {
@@ -11842,7 +11867,7 @@ var require_src = __commonJS({
11842
11867
  }
11843
11868
  function parseFromConfigs(configs, filepath, options8) {
11844
11869
  return processMatches(configs.reverse().reduce(function(matches, file) {
11845
- var pathPrefix = path11.dirname(file.name);
11870
+ var pathPrefix = path9.dirname(file.name);
11846
11871
  file.contents.forEach(function(section) {
11847
11872
  var glob = section[0];
11848
11873
  var options22 = section[1];
@@ -11880,7 +11905,7 @@ var require_src = __commonJS({
11880
11905
  return __generator2(this, function(_a) {
11881
11906
  return [2, Promise.all(filepaths.map(function(name) {
11882
11907
  return new Promise(function(resolve2) {
11883
- fs6.readFile(name, "utf8", function(err, data) {
11908
+ fs5.readFile(name, "utf8", function(err, data) {
11884
11909
  resolve2({
11885
11910
  name,
11886
11911
  contents: err ? "" : data
@@ -11896,7 +11921,7 @@ var require_src = __commonJS({
11896
11921
  var file;
11897
11922
  filepaths.forEach(function(filepath) {
11898
11923
  try {
11899
- file = fs6.readFileSync(filepath, "utf8");
11924
+ file = fs5.readFileSync(filepath, "utf8");
11900
11925
  } catch (e) {
11901
11926
  file = "";
11902
11927
  }
@@ -11911,7 +11936,7 @@ var require_src = __commonJS({
11911
11936
  if (options8 === void 0) {
11912
11937
  options8 = {};
11913
11938
  }
11914
- var resolvedFilePath = path11.resolve(filepath);
11939
+ var resolvedFilePath = path9.resolve(filepath);
11915
11940
  return [
11916
11941
  resolvedFilePath,
11917
11942
  processOptions(options8, resolvedFilePath)
@@ -14768,17 +14793,17 @@ var require_ignore = __commonJS({
14768
14793
  var throwError = (message, Ctor) => {
14769
14794
  throw new Ctor(message);
14770
14795
  };
14771
- var checkPath = (path11, originalPath, doThrow) => {
14772
- if (!isString(path11)) {
14796
+ var checkPath = (path9, originalPath, doThrow) => {
14797
+ if (!isString(path9)) {
14773
14798
  return doThrow(
14774
14799
  `path must be a string, but got \`${originalPath}\``,
14775
14800
  TypeError
14776
14801
  );
14777
14802
  }
14778
- if (!path11) {
14803
+ if (!path9) {
14779
14804
  return doThrow(`path must not be empty`, TypeError);
14780
14805
  }
14781
- if (checkPath.isNotRelative(path11)) {
14806
+ if (checkPath.isNotRelative(path9)) {
14782
14807
  const r = "`path.relative()`d";
14783
14808
  return doThrow(
14784
14809
  `path should be a ${r} string, but got "${originalPath}"`,
@@ -14787,7 +14812,7 @@ var require_ignore = __commonJS({
14787
14812
  }
14788
14813
  return true;
14789
14814
  };
14790
- var isNotRelative = (path11) => REGEX_TEST_INVALID_PATH.test(path11);
14815
+ var isNotRelative = (path9) => REGEX_TEST_INVALID_PATH.test(path9);
14791
14816
  checkPath.isNotRelative = isNotRelative;
14792
14817
  checkPath.convert = (p) => p;
14793
14818
  var Ignore = class {
@@ -14846,7 +14871,7 @@ var require_ignore = __commonJS({
14846
14871
  // setting `checkUnignored` to `false` could reduce additional
14847
14872
  // path matching.
14848
14873
  // @returns {TestResult} true if a file is ignored
14849
- _testOne(path11, checkUnignored) {
14874
+ _testOne(path9, checkUnignored) {
14850
14875
  let ignored = false;
14851
14876
  let unignored = false;
14852
14877
  this._rules.forEach((rule) => {
@@ -14854,7 +14879,7 @@ var require_ignore = __commonJS({
14854
14879
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
14855
14880
  return;
14856
14881
  }
14857
- const matched = rule.regex.test(path11);
14882
+ const matched = rule.regex.test(path9);
14858
14883
  if (matched) {
14859
14884
  ignored = !negative;
14860
14885
  unignored = negative;
@@ -14867,24 +14892,24 @@ var require_ignore = __commonJS({
14867
14892
  }
14868
14893
  // @returns {TestResult}
14869
14894
  _test(originalPath, cache, checkUnignored, slices) {
14870
- const path11 = originalPath && checkPath.convert(originalPath);
14895
+ const path9 = originalPath && checkPath.convert(originalPath);
14871
14896
  checkPath(
14872
- path11,
14897
+ path9,
14873
14898
  originalPath,
14874
14899
  this._allowRelativePaths ? RETURN_FALSE : throwError
14875
14900
  );
14876
- return this._t(path11, cache, checkUnignored, slices);
14901
+ return this._t(path9, cache, checkUnignored, slices);
14877
14902
  }
14878
- _t(path11, cache, checkUnignored, slices) {
14879
- if (path11 in cache) {
14880
- return cache[path11];
14903
+ _t(path9, cache, checkUnignored, slices) {
14904
+ if (path9 in cache) {
14905
+ return cache[path9];
14881
14906
  }
14882
14907
  if (!slices) {
14883
- slices = path11.split(SLASH);
14908
+ slices = path9.split(SLASH);
14884
14909
  }
14885
14910
  slices.pop();
14886
14911
  if (!slices.length) {
14887
- return cache[path11] = this._testOne(path11, checkUnignored);
14912
+ return cache[path9] = this._testOne(path9, checkUnignored);
14888
14913
  }
14889
14914
  const parent = this._t(
14890
14915
  slices.join(SLASH) + SLASH,
@@ -14892,24 +14917,24 @@ var require_ignore = __commonJS({
14892
14917
  checkUnignored,
14893
14918
  slices
14894
14919
  );
14895
- return cache[path11] = parent.ignored ? parent : this._testOne(path11, checkUnignored);
14920
+ return cache[path9] = parent.ignored ? parent : this._testOne(path9, checkUnignored);
14896
14921
  }
14897
- ignores(path11) {
14898
- return this._test(path11, this._ignoreCache, false).ignored;
14922
+ ignores(path9) {
14923
+ return this._test(path9, this._ignoreCache, false).ignored;
14899
14924
  }
14900
14925
  createFilter() {
14901
- return (path11) => !this.ignores(path11);
14926
+ return (path9) => !this.ignores(path9);
14902
14927
  }
14903
14928
  filter(paths) {
14904
14929
  return makeArray(paths).filter(this.createFilter());
14905
14930
  }
14906
14931
  // @returns {TestResult}
14907
- test(path11) {
14908
- return this._test(path11, this._testCache, true);
14932
+ test(path9) {
14933
+ return this._test(path9, this._testCache, true);
14909
14934
  }
14910
14935
  };
14911
14936
  var factory = (options8) => new Ignore(options8);
14912
- var isPathValid = (path11) => checkPath(path11 && checkPath.convert(path11), path11, RETURN_FALSE);
14937
+ var isPathValid = (path9) => checkPath(path9 && checkPath.convert(path9), path9, RETURN_FALSE);
14913
14938
  factory.isPathValid = isPathValid;
14914
14939
  factory.default = factory;
14915
14940
  module.exports = factory;
@@ -14920,14 +14945,30 @@ var require_ignore = __commonJS({
14920
14945
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
14921
14946
  checkPath.convert = makePosix;
14922
14947
  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
14923
- checkPath.isNotRelative = (path11) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path11) || isNotRelative(path11);
14948
+ checkPath.isNotRelative = (path9) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path9) || isNotRelative(path9);
14924
14949
  }
14925
14950
  }
14926
14951
  });
14927
14952
 
14928
14953
  // src/index.js
14954
+ var src_exports = {};
14955
+ __export(src_exports, {
14956
+ __debug: () => debugApis,
14957
+ __internal: () => sharedWithCli,
14958
+ check: () => check,
14959
+ clearConfigCache: () => clearCache3,
14960
+ doc: () => doc,
14961
+ format: () => format2,
14962
+ formatWithCursor: () => formatWithCursor2,
14963
+ getFileInfo: () => getFileInfo2,
14964
+ getSupportInfo: () => getSupportInfo2,
14965
+ resolveConfig: () => resolveConfig,
14966
+ resolveConfigFile: () => resolveConfigFile,
14967
+ util: () => public_exports,
14968
+ version: () => version_evaluate_default
14969
+ });
14929
14970
  var import_vnopts2 = __toESM(require_lib(), 1);
14930
- var import_fast_glob2 = __toESM(require_out4(), 1);
14971
+ var import_fast_glob = __toESM(require_out4(), 1);
14931
14972
 
14932
14973
  // scripts/build/shims/string-replace-all.js
14933
14974
  var stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
@@ -15207,73 +15248,32 @@ function normalizeEndOfLine(text) {
15207
15248
  );
15208
15249
  }
15209
15250
 
15210
- // node_modules/strip-ansi/node_modules/ansi-regex/index.js
15211
- function ansiRegex({ onlyFirst = false } = {}) {
15212
- const pattern = [
15213
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
15214
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
15215
- ].join("|");
15216
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
15217
- }
15218
-
15219
- // node_modules/strip-ansi/index.js
15220
- function stripAnsi(string) {
15221
- if (typeof string !== "string") {
15222
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
15223
- }
15224
- return string.replace(ansiRegex(), "");
15225
- }
15226
-
15227
- // node_modules/string-width/node_modules/is-fullwidth-code-point/index.js
15228
- function isFullwidthCodePoint(codePoint) {
15229
- if (!Number.isInteger(codePoint)) {
15230
- return false;
15231
- }
15232
- return codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
15233
- codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
15234
- codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
15235
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
15236
- 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
15237
- 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
15238
- 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
15239
- 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
15240
- 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
15241
- 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
15242
- 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
15243
- 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
15244
- 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
15245
- 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
15246
- 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
15247
- 131072 <= codePoint && codePoint <= 262141);
15248
- }
15251
+ // node_modules/emoji-regex/index.mjs
15252
+ var emoji_regex_default = () => {
15253
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
15254
+ };
15249
15255
 
15250
- // node_modules/string-width/index.js
15251
- var import_emoji_regex = __toESM(require_emoji_regex(), 1);
15252
- function stringWidth(string) {
15253
- if (typeof string !== "string" || string.length === 0) {
15254
- return 0;
15255
- }
15256
- string = stripAnsi(string);
15257
- if (string.length === 0) {
15258
- return 0;
15259
- }
15260
- string = string.replace((0, import_emoji_regex.default)(), " ");
15261
- let width = 0;
15262
- for (let index = 0; index < string.length; index++) {
15263
- const codePoint = string.codePointAt(index);
15264
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
15265
- continue;
15256
+ // node_modules/eastasianwidth/eastasianwidth.js
15257
+ var eastasianwidth_default = {
15258
+ eastAsianWidth(character) {
15259
+ var x = character.charCodeAt(0);
15260
+ var y = character.length == 2 ? character.charCodeAt(1) : 0;
15261
+ var codePoint = x;
15262
+ if (55296 <= x && x <= 56319 && 56320 <= y && y <= 57343) {
15263
+ x &= 1023;
15264
+ y &= 1023;
15265
+ codePoint = x << 10 | y;
15266
+ codePoint += 65536;
15266
15267
  }
15267
- if (codePoint >= 768 && codePoint <= 879) {
15268
- continue;
15268
+ if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
15269
+ return "F";
15269
15270
  }
15270
- if (codePoint > 65535) {
15271
- index++;
15271
+ if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
15272
+ return "W";
15272
15273
  }
15273
- width += isFullwidthCodePoint(codePoint) ? 2 : 1;
15274
+ return "N";
15274
15275
  }
15275
- return width;
15276
- }
15276
+ };
15277
15277
 
15278
15278
  // src/utils/get-string-width.js
15279
15279
  var notAsciiRegex = /[^\x20-\x7F]/;
@@ -15284,7 +15284,20 @@ function getStringWidth(text) {
15284
15284
  if (!notAsciiRegex.test(text)) {
15285
15285
  return text.length;
15286
15286
  }
15287
- return stringWidth(text);
15287
+ text = text.replace(emoji_regex_default(), " ");
15288
+ let width = 0;
15289
+ for (const character of text) {
15290
+ const codePoint = character.codePointAt(0);
15291
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
15292
+ continue;
15293
+ }
15294
+ if (codePoint >= 768 && codePoint <= 879) {
15295
+ continue;
15296
+ }
15297
+ const code = eastasianwidth_default.eastAsianWidth(character);
15298
+ width += code === "F" || code === "W" ? 2 : 1;
15299
+ }
15300
+ return width;
15288
15301
  }
15289
15302
  var get_string_width_default = getStringWidth;
15290
15303
 
@@ -16460,20 +16473,6 @@ var core_options_evaluate_default = {
16460
16473
  "cliName": "plugin",
16461
16474
  "cliCategory": "Config"
16462
16475
  },
16463
- "pluginSearchDirs": {
16464
- "type": "path",
16465
- "array": true,
16466
- "default": [
16467
- {
16468
- "value": []
16469
- }
16470
- ],
16471
- "category": "Global",
16472
- "description": "Custom directory that contains prettier plugins in node_modules subdirectory.\nOverrides default behavior when plugins are searched relatively to the location of Prettier.\nMultiple values are accepted.",
16473
- "exception": (value) => typeof value === "string" || typeof value === "object",
16474
- "cliName": "plugin-search-dir",
16475
- "cliCategory": "Config"
16476
- },
16477
16476
  "printWidth": {
16478
16477
  "category": "Global",
16479
16478
  "type": "int",
@@ -16758,9 +16757,6 @@ function normalizeOptions(options8, optionInfos, {
16758
16757
  if (shouldSuppressDuplicateDeprecationWarnings) {
16759
16758
  hasDeprecationWarned = normalizer._hasDeprecationWarned;
16760
16759
  }
16761
- if (isCLI && normalized["plugin-search"] === false) {
16762
- normalized["plugin-search-dir"] = false;
16763
- }
16764
16760
  return normalized;
16765
16761
  }
16766
16762
  function optionInfosToSchemas(optionInfos, {
@@ -16797,31 +16793,6 @@ function optionInfoToSchema(optionInfo, {
16797
16793
  const {
16798
16794
  name
16799
16795
  } = optionInfo;
16800
- if (name === "plugin-search-dir" || name === "pluginSearchDirs") {
16801
- return import_vnopts.default.AnySchema.create({
16802
- // @ts-expect-error
16803
- name,
16804
- preprocess(value) {
16805
- if (value === false) {
16806
- return value;
16807
- }
16808
- value = Array.isArray(value) ? value : [value];
16809
- return value;
16810
- },
16811
- /**
16812
- * @param {Array<unknown> | false} value
16813
- */
16814
- validate(value) {
16815
- if (value === false) {
16816
- return true;
16817
- }
16818
- return value.every((dir) => typeof dir === "string");
16819
- },
16820
- expected() {
16821
- return "false or paths to plugin search dir";
16822
- }
16823
- });
16824
- }
16825
16796
  const parameters = {
16826
16797
  name
16827
16798
  };
@@ -17319,8 +17290,8 @@ var AstPath = class {
17319
17290
  // the end of the iteration.
17320
17291
  map(callback, ...names) {
17321
17292
  const result = [];
17322
- this.each((path11, index, value) => {
17323
- result[index] = callback(path11, index, value);
17293
+ this.each((path9, index, value) => {
17294
+ result[index] = callback(path9, index, value);
17324
17295
  }, ...names);
17325
17296
  return result;
17326
17297
  }
@@ -17843,15 +17814,15 @@ function isPreviousLineEmpty(text, startIndex) {
17843
17814
  var is_previous_line_empty_default = isPreviousLineEmpty;
17844
17815
 
17845
17816
  // src/main/comments/print.js
17846
- function printComment(path11, options8) {
17847
- const comment = path11.node;
17817
+ function printComment(path9, options8) {
17818
+ const comment = path9.node;
17848
17819
  comment.printed = true;
17849
- return options8.printer.printComment(path11, options8);
17820
+ return options8.printer.printComment(path9, options8);
17850
17821
  }
17851
- function printLeadingComment(path11, options8) {
17822
+ function printLeadingComment(path9, options8) {
17852
17823
  var _a;
17853
- const comment = path11.node;
17854
- const parts = [printComment(path11, options8)];
17824
+ const comment = path9.node;
17825
+ const parts = [printComment(path9, options8)];
17855
17826
  const { printer, originalText, locStart, locEnd } = options8;
17856
17827
  const isBlock = (_a = printer.isBlockComment) == null ? void 0 : _a.call(printer, comment);
17857
17828
  if (isBlock) {
@@ -17871,10 +17842,10 @@ function printLeadingComment(path11, options8) {
17871
17842
  }
17872
17843
  return parts;
17873
17844
  }
17874
- function printTrailingComment(path11, options8, previousComment) {
17845
+ function printTrailingComment(path9, options8, previousComment) {
17875
17846
  var _a;
17876
- const comment = path11.node;
17877
- const printed = printComment(path11, options8);
17847
+ const comment = path9.node;
17848
+ const printed = printComment(path9, options8);
17878
17849
  const { printer, originalText, locStart } = options8;
17879
17850
  const isBlock = (_a = printer.isBlockComment) == null ? void 0 : _a.call(printer, comment);
17880
17851
  if ((previousComment == null ? void 0 : previousComment.hasLineSuffix) && !(previousComment == null ? void 0 : previousComment.isBlock) || has_newline_default(originalText, locStart(comment), { backwards: true })) {
@@ -17897,8 +17868,8 @@ function printTrailingComment(path11, options8, previousComment) {
17897
17868
  }
17898
17869
  return { doc: [" ", printed], isBlock, hasLineSuffix: false };
17899
17870
  }
17900
- function printCommentsSeparately(path11, options8) {
17901
- const value = path11.node;
17871
+ function printCommentsSeparately(path9, options8) {
17872
+ const value = path9.node;
17902
17873
  if (!value) {
17903
17874
  return {};
17904
17875
  }
@@ -17912,17 +17883,17 @@ function printCommentsSeparately(path11, options8) {
17912
17883
  const leadingParts = [];
17913
17884
  const trailingParts = [];
17914
17885
  let printedTrailingComment;
17915
- path11.each(() => {
17916
- const comment = path11.node;
17886
+ path9.each(() => {
17887
+ const comment = path9.node;
17917
17888
  if (ignored == null ? void 0 : ignored.has(comment)) {
17918
17889
  return;
17919
17890
  }
17920
17891
  const { leading, trailing } = comment;
17921
17892
  if (leading) {
17922
- leadingParts.push(printLeadingComment(path11, options8));
17893
+ leadingParts.push(printLeadingComment(path9, options8));
17923
17894
  } else if (trailing) {
17924
17895
  printedTrailingComment = printTrailingComment(
17925
- path11,
17896
+ path9,
17926
17897
  options8,
17927
17898
  printedTrailingComment
17928
17899
  );
@@ -17931,8 +17902,8 @@ function printCommentsSeparately(path11, options8) {
17931
17902
  }, "comments");
17932
17903
  return { leading: leadingParts, trailing: trailingParts };
17933
17904
  }
17934
- function printComments(path11, doc2, options8) {
17935
- const { leading, trailing } = printCommentsSeparately(path11, options8);
17905
+ function printComments(path9, doc2, options8) {
17906
+ const { leading, trailing } = printCommentsSeparately(path9, options8);
17936
17907
  if (!leading && !trailing) {
17937
17908
  return doc2;
17938
17909
  }
@@ -17954,7 +17925,7 @@ function ensureAllCommentsPrinted(options8) {
17954
17925
  }
17955
17926
 
17956
17927
  // src/main/multiparser.js
17957
- async function printEmbeddedLanguages(path11, genericPrint, options8, printAstToDoc2, embeds) {
17928
+ async function printEmbeddedLanguages(path9, genericPrint, options8, printAstToDoc2, embeds) {
17958
17929
  const {
17959
17930
  embeddedLanguageFormatting,
17960
17931
  printer: {
@@ -17976,11 +17947,11 @@ async function printEmbeddedLanguages(path11, genericPrint, options8, printAstTo
17976
17947
  );
17977
17948
  const embedCallResults = [];
17978
17949
  recurse();
17979
- const originalPathStack = path11.stack;
17950
+ const originalPathStack = path9.stack;
17980
17951
  for (const { print, node, pathStack } of embedCallResults) {
17981
17952
  try {
17982
- path11.stack = pathStack;
17983
- const doc2 = await print(textToDocForEmbed, genericPrint, path11, options8);
17953
+ path9.stack = pathStack;
17954
+ const doc2 = await print(textToDocForEmbed, genericPrint, path9, options8);
17984
17955
  if (doc2) {
17985
17956
  embeds.set(node, doc2);
17986
17957
  }
@@ -17990,23 +17961,23 @@ async function printEmbeddedLanguages(path11, genericPrint, options8, printAstTo
17990
17961
  }
17991
17962
  }
17992
17963
  }
17993
- path11.stack = originalPathStack;
17964
+ path9.stack = originalPathStack;
17994
17965
  function textToDocForEmbed(text, partialNextOptions) {
17995
17966
  return textToDoc(text, partialNextOptions, options8, printAstToDoc2);
17996
17967
  }
17997
17968
  function recurse() {
17998
- const { node } = path11;
17999
- if (node === null || typeof node !== "object" || hasPrettierIgnore(path11)) {
17969
+ const { node } = path9;
17970
+ if (node === null || typeof node !== "object" || hasPrettierIgnore(path9)) {
18000
17971
  return;
18001
17972
  }
18002
17973
  for (const key of getVisitorKeys(node)) {
18003
17974
  if (Array.isArray(node[key])) {
18004
- path11.each(recurse, key);
17975
+ path9.each(recurse, key);
18005
17976
  } else {
18006
- path11.call(recurse, key);
17977
+ path9.call(recurse, key);
18007
17978
  }
18008
17979
  }
18009
- const result = embed(path11, options8);
17980
+ const result = embed(path9, options8);
18010
17981
  if (!result) {
18011
17982
  return;
18012
17983
  }
@@ -18014,7 +17985,7 @@ async function printEmbeddedLanguages(path11, genericPrint, options8, printAstTo
18014
17985
  embedCallResults.push({
18015
17986
  print: result,
18016
17987
  node,
18017
- pathStack: [...path11.stack]
17988
+ pathStack: [...path9.stack]
18018
17989
  });
18019
17990
  return;
18020
17991
  }
@@ -18050,11 +18021,11 @@ function createPrintPreCheckFunction(options8) {
18050
18021
  const getVisitorKeys = create_get_visitor_keys_function_default(
18051
18022
  options8.printer.getVisitorKeys
18052
18023
  );
18053
- return function(path11) {
18054
- if (path11.isRoot) {
18024
+ return function(path9) {
18025
+ if (path9.isRoot) {
18055
18026
  return;
18056
18027
  }
18057
- const { key, parent } = path11;
18028
+ const { key, parent } = path9;
18058
18029
  const visitorKeys = getVisitorKeys(parent);
18059
18030
  if (visitorKeys.includes(key)) {
18060
18031
  return;
@@ -18063,15 +18034,15 @@ function createPrintPreCheckFunction(options8) {
18063
18034
  parentNode: parent,
18064
18035
  allowedProperties: visitorKeys,
18065
18036
  printingProperty: key,
18066
- printingValue: path11.node,
18067
- pathStack: path11.stack.length > 5 ? ["...", ...path11.stack.slice(-5)] : [...path11.stack]
18037
+ printingValue: path9.node,
18038
+ pathStack: path9.stack.length > 5 ? ["...", ...path9.stack.slice(-5)] : [...path9.stack]
18068
18039
  });
18069
18040
  };
18070
18041
  }
18071
18042
  var create_print_pre_check_function_default = createPrintPreCheckFunction;
18072
18043
 
18073
18044
  // src/main/print-ignored.js
18074
- function printIgnored(path11, options8) {
18045
+ function printIgnored(path9, options8) {
18075
18046
  const {
18076
18047
  originalText,
18077
18048
  [Symbol.for("comments")]: comments,
@@ -18079,7 +18050,7 @@ function printIgnored(path11, options8) {
18079
18050
  locEnd,
18080
18051
  [Symbol.for("printedComments")]: printedComments
18081
18052
  } = options8;
18082
- const { node } = path11;
18053
+ const { node } = path9;
18083
18054
  const start = locStart(node);
18084
18055
  const end = locEnd(node);
18085
18056
  for (const comment of comments) {
@@ -18095,12 +18066,12 @@ var print_ignored_default = printIgnored;
18095
18066
  async function printAstToDoc(ast, options8) {
18096
18067
  ({ ast } = await prepareToPrint(ast, options8));
18097
18068
  const cache = /* @__PURE__ */ new Map();
18098
- const path11 = new ast_path_default(ast);
18069
+ const path9 = new ast_path_default(ast);
18099
18070
  const ensurePrintingNode = create_print_pre_check_function_default(options8);
18100
18071
  const embeds = /* @__PURE__ */ new Map();
18101
- await printEmbeddedLanguages(path11, mainPrint, options8, printAstToDoc, embeds);
18072
+ await printEmbeddedLanguages(path9, mainPrint, options8, printAstToDoc, embeds);
18102
18073
  const doc2 = await callPluginPrintFunction(
18103
- path11,
18074
+ path9,
18104
18075
  options8,
18105
18076
  mainPrint,
18106
18077
  void 0,
@@ -18109,17 +18080,17 @@ async function printAstToDoc(ast, options8) {
18109
18080
  ensureAllCommentsPrinted(options8);
18110
18081
  return doc2;
18111
18082
  function mainPrint(selector, args) {
18112
- if (selector === void 0 || selector === path11) {
18083
+ if (selector === void 0 || selector === path9) {
18113
18084
  return mainPrintInternal(args);
18114
18085
  }
18115
18086
  if (Array.isArray(selector)) {
18116
- return path11.call(() => mainPrintInternal(args), ...selector);
18087
+ return path9.call(() => mainPrintInternal(args), ...selector);
18117
18088
  }
18118
- return path11.call(() => mainPrintInternal(args), selector);
18089
+ return path9.call(() => mainPrintInternal(args), selector);
18119
18090
  }
18120
18091
  function mainPrintInternal(args) {
18121
- ensurePrintingNode(path11);
18122
- const value = path11.node;
18092
+ ensurePrintingNode(path9);
18093
+ const value = path9.node;
18123
18094
  if (value === void 0 || value === null) {
18124
18095
  return "";
18125
18096
  }
@@ -18127,27 +18098,27 @@ async function printAstToDoc(ast, options8) {
18127
18098
  if (shouldCache && cache.has(value)) {
18128
18099
  return cache.get(value);
18129
18100
  }
18130
- const doc3 = callPluginPrintFunction(path11, options8, mainPrint, args, embeds);
18101
+ const doc3 = callPluginPrintFunction(path9, options8, mainPrint, args, embeds);
18131
18102
  if (shouldCache) {
18132
18103
  cache.set(value, doc3);
18133
18104
  }
18134
18105
  return doc3;
18135
18106
  }
18136
18107
  }
18137
- function callPluginPrintFunction(path11, options8, printPath, args, embeds) {
18108
+ function callPluginPrintFunction(path9, options8, printPath, args, embeds) {
18138
18109
  var _a;
18139
- const { node } = path11;
18110
+ const { node } = path9;
18140
18111
  const { printer } = options8;
18141
18112
  let doc2;
18142
- if ((_a = printer.hasPrettierIgnore) == null ? void 0 : _a.call(printer, path11)) {
18143
- doc2 = print_ignored_default(path11, options8);
18113
+ if ((_a = printer.hasPrettierIgnore) == null ? void 0 : _a.call(printer, path9)) {
18114
+ doc2 = print_ignored_default(path9, options8);
18144
18115
  } else if (embeds.has(node)) {
18145
18116
  doc2 = embeds.get(node);
18146
18117
  } else {
18147
- doc2 = printer.print(path11, options8, printPath, args);
18118
+ doc2 = printer.print(path9, options8, printPath, args);
18148
18119
  }
18149
- if (printer.printComment && (!printer.willPrintOwnComments || !printer.willPrintOwnComments(path11, options8))) {
18150
- doc2 = printComments(path11, doc2, options8);
18120
+ if (printer.printComment && (!printer.willPrintOwnComments || !printer.willPrintOwnComments(path9, options8))) {
18121
+ doc2 = printComments(path9, doc2, options8);
18151
18122
  }
18152
18123
  if (node === options8.cursorNode) {
18153
18124
  doc2 = inheritLabel(doc2, (doc3) => [cursor, doc3, cursor]);
@@ -18661,7 +18632,7 @@ async function printDocToString2(doc2, options8) {
18661
18632
 
18662
18633
  // src/config/resolve-config.js
18663
18634
  var import_micromatch = __toESM(require_micromatch(), 1);
18664
- import path6 from "path";
18635
+ import path5 from "path";
18665
18636
 
18666
18637
  // node_modules/mimic-fn/index.js
18667
18638
  var copyProperty = (to, from, property, ignoreNonConfigurable) => {
@@ -18812,11 +18783,10 @@ import assert4 from "assert";
18812
18783
  import { Stats, statSync, realpathSync } from "fs";
18813
18784
  import process3 from "process";
18814
18785
  import { URL as URL3, fileURLToPath as fileURLToPath3, pathToFileURL } from "url";
18815
- import path5 from "path";
18786
+ import path4 from "path";
18816
18787
  import { builtinModules } from "module";
18817
18788
 
18818
18789
  // node_modules/import-meta-resolve/lib/get-format.js
18819
- import path4 from "path";
18820
18790
  import { URL as URL2, fileURLToPath as fileURLToPath2 } from "url";
18821
18791
 
18822
18792
  // node_modules/import-meta-resolve/lib/package-config.js
@@ -18829,6 +18799,19 @@ import assert3 from "assert";
18829
18799
  import { format, inspect } from "util";
18830
18800
  var isWindows = process2.platform === "win32";
18831
18801
  var own = {}.hasOwnProperty;
18802
+ var classRegExp = /^([A-Z][a-z\d]*)+$/;
18803
+ var kTypes = /* @__PURE__ */ new Set([
18804
+ "string",
18805
+ "function",
18806
+ "number",
18807
+ "object",
18808
+ // Accept 'Function' and 'Object' as alternative to the lower cased version.
18809
+ "Function",
18810
+ "Object",
18811
+ "boolean",
18812
+ "bigint",
18813
+ "symbol"
18814
+ ]);
18832
18815
  var codes = {};
18833
18816
  function formatList(array, type = "and") {
18834
18817
  return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
@@ -18836,6 +18819,80 @@ function formatList(array, type = "and") {
18836
18819
  var messages = /* @__PURE__ */ new Map();
18837
18820
  var nodeInternalPrefix = "__node_internal_";
18838
18821
  var userStackTraceLimit;
18822
+ codes.ERR_INVALID_ARG_TYPE = createError(
18823
+ "ERR_INVALID_ARG_TYPE",
18824
+ /**
18825
+ * @param {string} name
18826
+ * @param {Array<string> | string} expected
18827
+ * @param {unknown} actual
18828
+ */
18829
+ (name, expected, actual) => {
18830
+ assert3(typeof name === "string", "'name' must be a string");
18831
+ if (!Array.isArray(expected)) {
18832
+ expected = [expected];
18833
+ }
18834
+ let message = "The ";
18835
+ if (name.endsWith(" argument")) {
18836
+ message += `${name} `;
18837
+ } else {
18838
+ const type = name.includes(".") ? "property" : "argument";
18839
+ message += `"${name}" ${type} `;
18840
+ }
18841
+ message += "must be ";
18842
+ const types = [];
18843
+ const instances = [];
18844
+ const other = [];
18845
+ for (const value of expected) {
18846
+ assert3(
18847
+ typeof value === "string",
18848
+ "All expected entries have to be of type string"
18849
+ );
18850
+ if (kTypes.has(value)) {
18851
+ types.push(value.toLowerCase());
18852
+ } else if (classRegExp.exec(value) === null) {
18853
+ assert3(
18854
+ value !== "object",
18855
+ 'The value "object" should be written as "Object"'
18856
+ );
18857
+ other.push(value);
18858
+ } else {
18859
+ instances.push(value);
18860
+ }
18861
+ }
18862
+ if (instances.length > 0) {
18863
+ const pos = types.indexOf("object");
18864
+ if (pos !== -1) {
18865
+ types.slice(pos, 1);
18866
+ instances.push("Object");
18867
+ }
18868
+ }
18869
+ if (types.length > 0) {
18870
+ message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(
18871
+ types,
18872
+ "or"
18873
+ )}`;
18874
+ if (instances.length > 0 || other.length > 0)
18875
+ message += " or ";
18876
+ }
18877
+ if (instances.length > 0) {
18878
+ message += `an instance of ${formatList(instances, "or")}`;
18879
+ if (other.length > 0)
18880
+ message += " or ";
18881
+ }
18882
+ if (other.length > 0) {
18883
+ if (other.length > 1) {
18884
+ message += `one of ${formatList(other, "or")}`;
18885
+ } else {
18886
+ if (other[0].toLowerCase() !== other[0])
18887
+ message += "an ";
18888
+ message += `${other[0]}`;
18889
+ }
18890
+ }
18891
+ message += `. Received ${determineSpecificType(actual)}`;
18892
+ return message;
18893
+ },
18894
+ TypeError
18895
+ );
18839
18896
  codes.ERR_INVALID_MODULE_SPECIFIER = createError(
18840
18897
  "ERR_INVALID_MODULE_SPECIFIER",
18841
18898
  /**
@@ -18855,8 +18912,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
18855
18912
  * @param {string} [base]
18856
18913
  * @param {string} [message]
18857
18914
  */
18858
- (path11, base, message) => {
18859
- return `Invalid package config ${path11}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
18915
+ (path9, base, message) => {
18916
+ return `Invalid package config ${path9}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
18860
18917
  },
18861
18918
  Error
18862
18919
  );
@@ -18888,8 +18945,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
18888
18945
  * @param {string} base
18889
18946
  * @param {string} [type]
18890
18947
  */
18891
- (path11, base, type = "package") => {
18892
- return `Cannot find ${type} '${path11}' imported from ${base}`;
18948
+ (path9, base, type = "package") => {
18949
+ return `Cannot find ${type} '${path9}' imported from ${base}`;
18893
18950
  },
18894
18951
  Error
18895
18952
  );
@@ -18935,8 +18992,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
18935
18992
  * @param {string} ext
18936
18993
  * @param {string} path
18937
18994
  */
18938
- (ext, path11) => {
18939
- return `Unknown file extension "${ext}" for ${path11}`;
18995
+ (ext, path9) => {
18996
+ return `Unknown file extension "${ext}" for ${path9}`;
18940
18997
  },
18941
18998
  TypeError
18942
18999
  );
@@ -19053,7 +19110,7 @@ var captureLargerStackTrace = hideStackFrames(
19053
19110
  );
19054
19111
  function getMessage(key, args, self) {
19055
19112
  const message = messages.get(key);
19056
- assert3(typeof message !== "undefined", "expected `message` to be found");
19113
+ assert3(message !== void 0, "expected `message` to be found");
19057
19114
  if (typeof message === "function") {
19058
19115
  assert3(
19059
19116
  message.length <= args.length,
@@ -19075,6 +19132,25 @@ function getMessage(key, args, self) {
19075
19132
  args.unshift(message);
19076
19133
  return Reflect.apply(format, null, args);
19077
19134
  }
19135
+ function determineSpecificType(value) {
19136
+ if (value === null || value === void 0) {
19137
+ return String(value);
19138
+ }
19139
+ if (typeof value === "function" && value.name) {
19140
+ return `function ${value.name}`;
19141
+ }
19142
+ if (typeof value === "object") {
19143
+ if (value.constructor && value.constructor.name) {
19144
+ return `an instance of ${value.constructor.name}`;
19145
+ }
19146
+ return `${inspect(value, { depth: -1 })}`;
19147
+ }
19148
+ let inspected = inspect(value, { colors: false });
19149
+ if (inspected.length > 28) {
19150
+ inspected = `${inspected.slice(0, 25)}...`;
19151
+ }
19152
+ return `type ${typeof value} (${inspected})`;
19153
+ }
19078
19154
 
19079
19155
  // node_modules/import-meta-resolve/lib/package-json-reader.js
19080
19156
  import fs3 from "fs";
@@ -19103,15 +19179,15 @@ function read(jsonPath) {
19103
19179
  // node_modules/import-meta-resolve/lib/package-config.js
19104
19180
  var { ERR_INVALID_PACKAGE_CONFIG } = codes;
19105
19181
  var packageJsonCache = /* @__PURE__ */ new Map();
19106
- function getPackageConfig(path11, specifier, base) {
19107
- const existing = packageJsonCache.get(path11);
19182
+ function getPackageConfig(path9, specifier, base) {
19183
+ const existing = packageJsonCache.get(path9);
19108
19184
  if (existing !== void 0) {
19109
19185
  return existing;
19110
19186
  }
19111
- const source = package_json_reader_default.read(path11).string;
19187
+ const source = package_json_reader_default.read(path9).string;
19112
19188
  if (source === void 0) {
19113
19189
  const packageConfig2 = {
19114
- pjsonPath: path11,
19190
+ pjsonPath: path9,
19115
19191
  exists: false,
19116
19192
  main: void 0,
19117
19193
  name: void 0,
@@ -19119,7 +19195,7 @@ function getPackageConfig(path11, specifier, base) {
19119
19195
  exports: void 0,
19120
19196
  imports: void 0
19121
19197
  };
19122
- packageJsonCache.set(path11, packageConfig2);
19198
+ packageJsonCache.set(path9, packageConfig2);
19123
19199
  return packageConfig2;
19124
19200
  }
19125
19201
  let packageJson;
@@ -19131,14 +19207,14 @@ function getPackageConfig(path11, specifier, base) {
19131
19207
  error
19132
19208
  );
19133
19209
  throw new ERR_INVALID_PACKAGE_CONFIG(
19134
- path11,
19210
+ path9,
19135
19211
  (base ? `"${specifier}" from ` : "") + fileURLToPath(base || specifier),
19136
19212
  exception.message
19137
19213
  );
19138
19214
  }
19139
19215
  const { exports, imports, main, name, type } = packageJson;
19140
19216
  const packageConfig = {
19141
- pjsonPath: path11,
19217
+ pjsonPath: path9,
19142
19218
  exists: true,
19143
19219
  main: typeof main === "string" ? main : void 0,
19144
19220
  name: typeof name === "string" ? name : void 0,
@@ -19148,7 +19224,7 @@ function getPackageConfig(path11, specifier, base) {
19148
19224
  // @ts-expect-error Assume `Record<string, unknown>`.
19149
19225
  imports: imports && typeof imports === "object" ? imports : void 0
19150
19226
  };
19151
- packageJsonCache.set(path11, packageConfig);
19227
+ packageJsonCache.set(path9, packageConfig);
19152
19228
  return packageConfig;
19153
19229
  }
19154
19230
  function getPackageScopeConfig(resolved) {
@@ -19223,9 +19299,22 @@ function getDataProtocolModuleFormat(parsed) {
19223
19299
  ) || [null, null, null];
19224
19300
  return mimeToFormat(mime);
19225
19301
  }
19302
+ function extname(url) {
19303
+ const pathname = url.pathname;
19304
+ let index = pathname.length;
19305
+ while (index--) {
19306
+ const code = pathname.codePointAt(index);
19307
+ if (code === 47) {
19308
+ return "";
19309
+ }
19310
+ if (code === 46) {
19311
+ return pathname.codePointAt(index - 1) === 47 ? "" : pathname.slice(index);
19312
+ }
19313
+ }
19314
+ return "";
19315
+ }
19226
19316
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
19227
- const filepath = fileURLToPath2(url);
19228
- const ext = path4.extname(filepath);
19317
+ const ext = extname(url);
19229
19318
  if (ext === ".js") {
19230
19319
  return getPackageType(url) === "module" ? "module" : "commonjs";
19231
19320
  }
@@ -19235,6 +19324,7 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
19235
19324
  if (ignoreErrors) {
19236
19325
  return void 0;
19237
19326
  }
19327
+ const filepath = fileURLToPath2(url);
19238
19328
  throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
19239
19329
  }
19240
19330
  function getHttpProtocolModuleFormat() {
@@ -19305,12 +19395,12 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
19305
19395
  const format3 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
19306
19396
  if (format3 !== "module")
19307
19397
  return;
19308
- const path11 = fileURLToPath3(url.href);
19398
+ const path9 = fileURLToPath3(url.href);
19309
19399
  const pkgPath = fileURLToPath3(new URL3(".", packageJsonUrl));
19310
19400
  const basePath = fileURLToPath3(base);
19311
19401
  if (main)
19312
19402
  process3.emitWarning(
19313
- `Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path11.slice(
19403
+ `Package ${pkgPath} has a "main" field set to ${JSON.stringify(main)}, excluding the full filename and extension to the resolved file at "${path9.slice(
19314
19404
  pkgPath.length
19315
19405
  )}", imported from ${basePath}.
19316
19406
  Automatic extension resolution of the "main" field isdeprecated for ES modules.`,
@@ -19319,7 +19409,7 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
19319
19409
  );
19320
19410
  else
19321
19411
  process3.emitWarning(
19322
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path11.slice(
19412
+ `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${path9.slice(
19323
19413
  pkgPath.length
19324
19414
  )}", imported from ${basePath}.
19325
19415
  Default "index" lookups for the main are deprecated for ES modules.`,
@@ -19327,9 +19417,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
19327
19417
  "DEP0151"
19328
19418
  );
19329
19419
  }
19330
- function tryStatSync(path11) {
19420
+ function tryStatSync(path9) {
19331
19421
  try {
19332
- return statSync(path11);
19422
+ return statSync(path9);
19333
19423
  } catch {
19334
19424
  return new Stats();
19335
19425
  }
@@ -19413,7 +19503,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
19413
19503
  if (!preserveSymlinks) {
19414
19504
  const real = realpathSync(filePath);
19415
19505
  const { search, hash } = resolved;
19416
- resolved = pathToFileURL(real + (filePath.endsWith(path5.sep) ? "/" : ""));
19506
+ resolved = pathToFileURL(real + (filePath.endsWith(path4.sep) ? "/" : ""));
19417
19507
  resolved.search = search;
19418
19508
  resolved.hash = hash;
19419
19509
  }
@@ -19456,13 +19546,13 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
19456
19546
  throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
19457
19547
  if (!target.startsWith("./")) {
19458
19548
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
19459
- let isURL = false;
19549
+ let isURL2 = false;
19460
19550
  try {
19461
19551
  new URL3(target);
19462
- isURL = true;
19552
+ isURL2 = true;
19463
19553
  } catch {
19464
19554
  }
19465
- if (!isURL) {
19555
+ if (!isURL2) {
19466
19556
  const exportTarget = pattern ? RegExpPrototypeSymbolReplace.call(
19467
19557
  patternRegEx,
19468
19558
  target,
@@ -19942,7 +20032,8 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
19942
20032
  return isRelativeSpecifier(specifier);
19943
20033
  }
19944
20034
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
19945
- const isRemote = base.protocol === "http:" || base.protocol === "https:";
20035
+ const protocol = base.protocol;
20036
+ const isRemote = protocol === "http:" || protocol === "https:";
19946
20037
  let resolved;
19947
20038
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
19948
20039
  resolved = new URL3(specifier, base);
@@ -19957,45 +20048,68 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
19957
20048
  }
19958
20049
  }
19959
20050
  }
19960
- assert4(typeof resolved !== "undefined", "expected to be defined");
20051
+ assert4(resolved !== void 0, "expected to be defined");
19961
20052
  if (resolved.protocol !== "file:") {
19962
20053
  return resolved;
19963
20054
  }
19964
20055
  return finalizeResolution(resolved, base, preserveSymlinks);
19965
20056
  }
19966
20057
  function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
19967
- if (parsed && parsedParentURL && (parsedParentURL.protocol === "http:" || parsedParentURL.protocol === "https:")) {
19968
- if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
19969
- if (parsed && parsed.protocol !== "https:" && parsed.protocol !== "http:") {
20058
+ if (parsedParentURL) {
20059
+ const parentProtocol = parsedParentURL.protocol;
20060
+ if (parentProtocol === "http:" || parentProtocol === "https:") {
20061
+ if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
20062
+ const parsedProtocol = parsed == null ? void 0 : parsed.protocol;
20063
+ if (parsedProtocol && parsedProtocol !== "https:" && parsedProtocol !== "http:") {
20064
+ throw new ERR_NETWORK_IMPORT_DISALLOWED(
20065
+ specifier,
20066
+ parsedParentURL,
20067
+ "remote imports cannot import from a local location."
20068
+ );
20069
+ }
20070
+ return { url: (parsed == null ? void 0 : parsed.href) || "" };
20071
+ }
20072
+ if (builtinModules.includes(specifier)) {
19970
20073
  throw new ERR_NETWORK_IMPORT_DISALLOWED(
19971
20074
  specifier,
19972
20075
  parsedParentURL,
19973
20076
  "remote imports cannot import from a local location."
19974
20077
  );
19975
20078
  }
19976
- return { url: parsed.href };
19977
- }
19978
- if (builtinModules.includes(specifier)) {
19979
20079
  throw new ERR_NETWORK_IMPORT_DISALLOWED(
19980
20080
  specifier,
19981
20081
  parsedParentURL,
19982
- "remote imports cannot import from a local location."
20082
+ "only relative and absolute specifiers are supported."
19983
20083
  );
19984
20084
  }
19985
- throw new ERR_NETWORK_IMPORT_DISALLOWED(
19986
- specifier,
19987
- parsedParentURL,
19988
- "only relative and absolute specifiers are supported."
20085
+ }
20086
+ }
20087
+ function isURL(self) {
20088
+ return Boolean(
20089
+ self && typeof self === "object" && "href" in self && typeof self.href === "string" && "protocol" in self && typeof self.protocol === "string" && self.href && self.protocol
20090
+ );
20091
+ }
20092
+ function throwIfInvalidParentURL(parentURL) {
20093
+ if (parentURL === void 0) {
20094
+ return;
20095
+ }
20096
+ if (typeof parentURL !== "string" && !isURL(parentURL)) {
20097
+ throw new codes.ERR_INVALID_ARG_TYPE(
20098
+ "parentURL",
20099
+ ["string", "URL"],
20100
+ parentURL
19989
20101
  );
19990
20102
  }
19991
20103
  }
19992
20104
  function throwIfUnsupportedURLProtocol(url) {
19993
- if (url.protocol !== "file:" && url.protocol !== "data:" && url.protocol !== "node:") {
20105
+ const protocol = url.protocol;
20106
+ if (protocol !== "file:" && protocol !== "data:" && protocol !== "node:") {
19994
20107
  throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(url);
19995
20108
  }
19996
20109
  }
19997
20110
  function throwIfUnsupportedURLScheme(parsed, experimentalNetworkImports2) {
19998
- if (parsed && parsed.protocol !== "file:" && parsed.protocol !== "data:" && (!experimentalNetworkImports2 || parsed.protocol !== "https:" && parsed.protocol !== "http:")) {
20111
+ const protocol = parsed == null ? void 0 : parsed.protocol;
20112
+ if (protocol && protocol !== "file:" && protocol !== "data:" && (!experimentalNetworkImports2 || protocol !== "https:" && protocol !== "http:")) {
19999
20113
  throw new ERR_UNSUPPORTED_ESM_URL_SCHEME(
20000
20114
  parsed,
20001
20115
  ["file", "data"].concat(
@@ -20006,7 +20120,8 @@ function throwIfUnsupportedURLScheme(parsed, experimentalNetworkImports2) {
20006
20120
  }
20007
20121
  function defaultResolve(specifier, context = {}) {
20008
20122
  const { parentURL } = context;
20009
- assert4(typeof parentURL !== "undefined", "expected `parentURL` to be defined");
20123
+ assert4(parentURL !== void 0, "expected `parentURL` to be defined");
20124
+ throwIfInvalidParentURL(parentURL);
20010
20125
  let parsedParentURL;
20011
20126
  if (parentURL) {
20012
20127
  try {
@@ -20017,7 +20132,8 @@ function defaultResolve(specifier, context = {}) {
20017
20132
  let parsed;
20018
20133
  try {
20019
20134
  parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier) ? new URL3(specifier, parsedParentURL) : new URL3(specifier);
20020
- if (parsed.protocol === "data:" || experimentalNetworkImports && (parsed.protocol === "https:" || parsed.protocol === "http:")) {
20135
+ const protocol = parsed.protocol;
20136
+ if (protocol === "data:" || experimentalNetworkImports && (protocol === "https:" || protocol === "http:")) {
20021
20137
  return { url: parsed.href, format: null };
20022
20138
  }
20023
20139
  } catch {
@@ -20044,7 +20160,7 @@ function defaultResolve(specifier, context = {}) {
20044
20160
  }
20045
20161
 
20046
20162
  // node_modules/import-meta-resolve/index.js
20047
- async function resolve(specifier, parent) {
20163
+ function resolve(specifier, parent) {
20048
20164
  if (!parent) {
20049
20165
  throw new Error(
20050
20166
  "Please pass `parent`: `import-meta-resolve` cannot ponyfill that"
@@ -20057,13 +20173,16 @@ async function resolve(specifier, parent) {
20057
20173
  /** @type {ErrnoException} */
20058
20174
  error
20059
20175
  );
20060
- return exception.code === "ERR_UNSUPPORTED_DIR_IMPORT" && typeof exception.url === "string" ? exception.url : Promise.reject(error);
20176
+ if (exception.code === "ERR_UNSUPPORTED_DIR_IMPORT" && typeof exception.url === "string") {
20177
+ return exception.url;
20178
+ }
20179
+ throw error;
20061
20180
  }
20062
20181
  }
20063
20182
 
20064
20183
  // src/utils/import-from-file.js
20065
- async function importFromFile(specifier, parent) {
20066
- const url = await resolve(specifier, pathToFileURL2(parent).href);
20184
+ function importFromFile(specifier, parent) {
20185
+ const url = resolve(specifier, pathToFileURL2(parent).href);
20067
20186
  return import(url);
20068
20187
  }
20069
20188
  var import_from_file_default = importFromFile;
@@ -20188,12 +20307,10 @@ async function resolveConfig(filePath, options8) {
20188
20307
  ...editorConfigured,
20189
20308
  ...mergeOverrides(result, filePath)
20190
20309
  };
20191
- for (const optionName of ["plugins", "pluginSearchDirs"]) {
20192
- if (Array.isArray(merged[optionName])) {
20193
- merged[optionName] = merged[optionName].map(
20194
- (value) => typeof value === "string" && value.startsWith(".") ? path6.resolve(path6.dirname(result.filepath), value) : value
20195
- );
20196
- }
20310
+ if (Array.isArray(merged.plugins)) {
20311
+ merged.plugins = merged.plugins.map(
20312
+ (value) => typeof value === "string" && value.startsWith(".") ? path5.resolve(path5.dirname(result.filepath), value) : value
20313
+ );
20197
20314
  }
20198
20315
  return merged;
20199
20316
  }
@@ -20206,7 +20323,7 @@ function mergeOverrides(configResult, filePath) {
20206
20323
  const { config, filepath: configPath } = configResult || {};
20207
20324
  const { overrides, ...options8 } = config || {};
20208
20325
  if (filePath && overrides) {
20209
- const relativeFilePath = path6.relative(path6.dirname(configPath), filePath);
20326
+ const relativeFilePath = path5.relative(path5.dirname(configPath), filePath);
20210
20327
  for (const override of overrides) {
20211
20328
  if (pathMatchesGlobs(
20212
20329
  relativeFilePath,
@@ -20238,7 +20355,7 @@ function pathMatchesGlobs(filePath, patterns, excludedPatterns) {
20238
20355
 
20239
20356
  // src/utils/ignore.js
20240
20357
  var import_ignore = __toESM(require_ignore(), 1);
20241
- import path7 from "path";
20358
+ import path6 from "path";
20242
20359
 
20243
20360
  // src/utils/read-file.js
20244
20361
  import fs4 from "fs/promises";
@@ -20256,7 +20373,7 @@ var read_file_default = readFile;
20256
20373
 
20257
20374
  // src/utils/ignore.js
20258
20375
  var createIgnore = import_ignore.default.default;
20259
- var slash = path7.sep === "\\" ? (filepath) => string_replace_all_default(
20376
+ var slash = path6.sep === "\\" ? (filepath) => string_replace_all_default(
20260
20377
  /* isOptionalObject*/
20261
20378
  false,
20262
20379
  filepath,
@@ -20278,8 +20395,8 @@ async function createSingleIsIgnoredFunction(ignoreFilePath, withNodeModules) {
20278
20395
  allowRelativePaths: true
20279
20396
  }).add(content);
20280
20397
  return (filepath) => {
20281
- filepath = path7.resolve(filepath);
20282
- const relativePath = ignoreFilePath ? path7.relative(path7.dirname(ignoreFilePath), filepath) : path7.relative(process.cwd(), filepath);
20398
+ filepath = path6.resolve(filepath);
20399
+ const relativePath = ignoreFilePath ? path6.relative(path6.dirname(ignoreFilePath), filepath) : path6.relative(process.cwd(), filepath);
20283
20400
  return ignore.ignores(slash(relativePath));
20284
20401
  };
20285
20402
  }
@@ -20331,12 +20448,12 @@ var get_file_info_default = getFileInfo;
20331
20448
 
20332
20449
  // src/main/plugins/load-plugin.js
20333
20450
  import { pathToFileURL as pathToFileURL4 } from "url";
20334
- import path9 from "path";
20451
+ import path8 from "path";
20335
20452
 
20336
20453
  // src/utils/import-from-directory.js
20337
- import path8 from "path";
20454
+ import path7 from "path";
20338
20455
  function importFromDirectory(specifier, directory) {
20339
- return import_from_file_default(specifier, path8.join(directory, "noop.js"));
20456
+ return import_from_file_default(specifier, path7.join(directory, "noop.js"));
20340
20457
  }
20341
20458
  var import_from_directory_default = importFromDirectory;
20342
20459
 
@@ -20351,7 +20468,7 @@ var loadPluginFromDirectory = mem(
20351
20468
  );
20352
20469
  var importPlugin = mem(async (name) => {
20353
20470
  try {
20354
- return await import(pathToFileURL4(path9.resolve(name)).href);
20471
+ return await import(pathToFileURL4(path8.resolve(name)).href);
20355
20472
  } catch {
20356
20473
  return import_from_directory_default(name, process.cwd());
20357
20474
  }
@@ -20367,73 +20484,6 @@ function clearCache2() {
20367
20484
  memClear(importPlugin);
20368
20485
  }
20369
20486
 
20370
- // src/main/plugins/search-plugins.js
20371
- import path10 from "path";
20372
- var import_fast_glob = __toESM(require_out4(), 1);
20373
-
20374
- // src/utils/is-directory.js
20375
- import fs5 from "fs/promises";
20376
- async function isDirectory(directory) {
20377
- let stat;
20378
- try {
20379
- stat = await fs5.stat(directory);
20380
- } catch {
20381
- return false;
20382
- }
20383
- return stat.isDirectory();
20384
- }
20385
- var is_directory_default = isDirectory;
20386
-
20387
- // src/main/plugins/search-plugins.js
20388
- import mockable2 from "./internal/internal.mjs";
20389
- var findNodeModules = mem(
20390
- (directory) => mockable2.findParentDir(directory, "node_modules")
20391
- );
20392
- var findPluginsInNodeModules = mem(async (nodeModulesDir) => {
20393
- const pluginPackageJsonPaths = await (0, import_fast_glob.default)(
20394
- [
20395
- "prettier-plugin-*/package.json",
20396
- "@*/prettier-plugin-*/package.json",
20397
- "@prettier/plugin-*/package.json"
20398
- ],
20399
- {
20400
- cwd: nodeModulesDir
20401
- }
20402
- );
20403
- return pluginPackageJsonPaths.map(path10.dirname);
20404
- });
20405
- var searchPluginsInDirectory = mem(async (directory) => {
20406
- const absolutePath = path10.resolve(process.cwd(), directory);
20407
- const nodeModulesDir = path10.join(absolutePath, "node_modules");
20408
- if (!await is_directory_default(nodeModulesDir) && !await is_directory_default(absolutePath)) {
20409
- throw new Error(`${directory} does not exist or is not a directory`);
20410
- }
20411
- const pluginNames = await findPluginsInNodeModules(nodeModulesDir);
20412
- return Promise.all(
20413
- pluginNames.map((name) => loadPluginFromDirectory(name, nodeModulesDir))
20414
- );
20415
- });
20416
- var searchPlugins = mem(
20417
- async (directories = []) => {
20418
- if (directories.length === 0) {
20419
- const nodeModulesDirectory = findNodeModules(__dirname);
20420
- if (nodeModulesDirectory) {
20421
- directories = [nodeModulesDirectory];
20422
- }
20423
- }
20424
- return (await Promise.all(
20425
- directories.map((directory) => searchPluginsInDirectory(directory))
20426
- )).flat();
20427
- },
20428
- { cacheKey: JSON.stringify }
20429
- );
20430
- function clearCache3() {
20431
- memClear(searchPlugins);
20432
- memClear(searchPluginsInDirectory);
20433
- memClear(findPluginsInNodeModules);
20434
- memClear(findNodeModules);
20435
- }
20436
-
20437
20487
  // src/plugins/builtin-plugins-proxy.js
20438
20488
  var builtin_plugins_proxy_exports = {};
20439
20489
  __export(builtin_plugins_proxy_exports, {
@@ -21455,12 +21505,6 @@ function loadPlugins(plugins = []) {
21455
21505
  }
21456
21506
  var load_plugins_default = loadPlugins;
21457
21507
 
21458
- // src/main/plugins/index.js
21459
- function clearCache4() {
21460
- clearCache2();
21461
- clearCache3();
21462
- }
21463
-
21464
21508
  // src/main/option-categories.js
21465
21509
  var option_categories_exports = {};
21466
21510
  __export(option_categories_exports, {
@@ -21708,20 +21752,19 @@ function isNextLineEmpty2(text, startIndex) {
21708
21752
  import * as doc from "./doc.mjs";
21709
21753
 
21710
21754
  // src/main/version.evaluate.cjs
21711
- var version_evaluate_default = "3.0.0-alpha.11";
21755
+ var version_evaluate_default = "3.0.0-alpha.12";
21712
21756
 
21713
21757
  // src/index.js
21714
21758
  function withPlugins(fn, optionsArgumentIndex = 1) {
21715
21759
  return async (...args) => {
21716
21760
  const options8 = args[optionsArgumentIndex] ?? {};
21717
- const { plugins = [], pluginSearchDirs } = options8;
21761
+ const { plugins = [] } = options8;
21718
21762
  args[optionsArgumentIndex] = {
21719
21763
  ...options8,
21720
21764
  plugins: (await Promise.all([
21721
21765
  load_builtin_plugins_default(),
21722
21766
  // TODO: standalone version allow `plugins` to be `prettierPlugins` which is an object, should allow that too
21723
- load_plugins_default(plugins),
21724
- options8.pluginSearchDirs === false ? [] : searchPlugins(pluginSearchDirs)
21767
+ load_plugins_default(plugins)
21725
21768
  ])).flat()
21726
21769
  };
21727
21770
  return fn(...args);
@@ -21738,9 +21781,9 @@ async function format2(text, options8) {
21738
21781
  async function check(text, options8) {
21739
21782
  return await format2(text, options8) === text;
21740
21783
  }
21741
- async function clearCache5() {
21784
+ async function clearCache3() {
21742
21785
  clearCache();
21743
- clearCache4();
21786
+ clearCache2();
21744
21787
  }
21745
21788
  var getFileInfo2 = withPlugins(get_file_info_default);
21746
21789
  var getSupportInfo2 = withPlugins(getSupportInfo, 0);
@@ -21753,7 +21796,7 @@ var sharedWithCli = {
21753
21796
  getSupportInfoWithoutPlugins: getSupportInfo,
21754
21797
  normalizeOptionSettings,
21755
21798
  vnopts: import_vnopts2.default,
21756
- fastGlob: import_fast_glob2.default,
21799
+ fastGlob: import_fast_glob.default,
21757
21800
  utils: {
21758
21801
  isNonEmptyArray: is_non_empty_array_default,
21759
21802
  partition: partition_default,
@@ -21767,11 +21810,15 @@ var debugApis = {
21767
21810
  printToDoc: withPlugins(printToDoc),
21768
21811
  printDocToString: withPlugins(printDocToString2)
21769
21812
  };
21813
+
21814
+ // with-default-export:src/index.js
21815
+ var src_default = src_exports;
21770
21816
  export {
21771
21817
  debugApis as __debug,
21772
21818
  sharedWithCli as __internal,
21773
21819
  check,
21774
- clearCache5 as clearConfigCache,
21820
+ clearCache3 as clearConfigCache,
21821
+ src_default as default,
21775
21822
  doc,
21776
21823
  format2 as format,
21777
21824
  formatWithCursor2 as formatWithCursor,