@vixt/vue 0.9.0 → 0.11.0

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.
@@ -1,23 +1,13 @@
1
1
  import { builtinModules, createRequire } from "node:module";
2
- import { VixtClientAutoImports, createVixtPlugin, defineVixtModule, resolveLayersDirs } from "@vixt/core";
2
+ import { defineVixtModule } from "@vixt/core";
3
3
  import fs, { realpathSync, statSync } from "node:fs";
4
- import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  import assert from "node:assert";
6
6
  import process$1 from "node:process";
7
7
  import path from "node:path";
8
8
  import v8 from "node:v8";
9
9
  import { format, inspect } from "node:util";
10
- import Vue from "@vitejs/plugin-vue";
11
- import VueJsx from "@vitejs/plugin-vue-jsx";
12
- import UnoCSS from "unocss/vite";
13
- import AutoImport from "unplugin-auto-import/vite";
14
- import Components from "unplugin-vue-components/vite";
15
- import VueDevTools from "vite-plugin-vue-devtools";
16
- import Layouts from "vite-plugin-vue-layouts";
17
- import { VueRouterAutoImports } from "vue-router/unplugin";
18
- import VueRouter from "vue-router/vite";
19
10
  import { parse } from "@vue/compiler-sfc";
20
-
21
11
  //#region \0rolldown/runtime.js
22
12
  var __create = Object.create;
23
13
  var __defProp = Object.defineProperty;
@@ -25,18 +15,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
25
15
  var __getOwnPropNames = Object.getOwnPropertyNames;
26
16
  var __getProtoOf = Object.getPrototypeOf;
27
17
  var __hasOwnProp = Object.prototype.hasOwnProperty;
28
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
18
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
29
19
  var __copyProps = (to, from, except, desc) => {
30
- if (from && typeof from === "object" || typeof from === "function") {
31
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
32
- key = keys[i];
33
- if (!__hasOwnProp.call(to, key) && key !== except) {
34
- __defProp(to, key, {
35
- get: ((k) => from[k]).bind(null, key),
36
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
37
- });
38
- }
39
- }
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
40
26
  }
41
27
  return to;
42
28
  };
@@ -45,7 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
31
  enumerable: true
46
32
  }) : target, mod));
47
33
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
48
-
49
34
  //#endregion
50
35
  //#region ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
51
36
  var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -69,7 +54,6 @@ var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
69
54
  }, "name", { value: fn.name });
70
55
  };
71
56
  }));
72
-
73
57
  //#endregion
74
58
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
75
59
  var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -322,7 +306,6 @@ var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
322
306
  }
323
307
  }
324
308
  }));
325
-
326
309
  //#endregion
327
310
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
328
311
  var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -412,7 +395,6 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
412
395
  }
413
396
  }
414
397
  }));
415
-
416
398
  //#endregion
417
399
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
418
400
  var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -430,11 +412,10 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
430
412
  return copy;
431
413
  }
432
414
  }));
433
-
434
415
  //#endregion
435
416
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js
436
417
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
437
- var fs$3 = __require("fs");
418
+ var fs$2 = __require("fs");
438
419
  var polyfills = require_polyfills();
439
420
  var legacy = require_legacy_streams();
440
421
  var clone = require_clone();
@@ -463,36 +444,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
463
444
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
464
445
  console.error(m);
465
446
  };
466
- if (!fs$3[gracefulQueue]) {
467
- publishQueue(fs$3, global[gracefulQueue] || []);
468
- fs$3.close = (function(fs$close) {
447
+ if (!fs$2[gracefulQueue]) {
448
+ publishQueue(fs$2, global[gracefulQueue] || []);
449
+ fs$2.close = (function(fs$close) {
469
450
  function close(fd, cb) {
470
- return fs$close.call(fs$3, fd, function(err) {
451
+ return fs$close.call(fs$2, fd, function(err) {
471
452
  if (!err) resetQueue();
472
453
  if (typeof cb === "function") cb.apply(this, arguments);
473
454
  });
474
455
  }
475
456
  Object.defineProperty(close, previousSymbol, { value: fs$close });
476
457
  return close;
477
- })(fs$3.close);
478
- fs$3.closeSync = (function(fs$closeSync) {
458
+ })(fs$2.close);
459
+ fs$2.closeSync = (function(fs$closeSync) {
479
460
  function closeSync(fd) {
480
- fs$closeSync.apply(fs$3, arguments);
461
+ fs$closeSync.apply(fs$2, arguments);
481
462
  resetQueue();
482
463
  }
483
464
  Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
484
465
  return closeSync;
485
- })(fs$3.closeSync);
466
+ })(fs$2.closeSync);
486
467
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
487
- debug(fs$3[gracefulQueue]);
488
- __require("assert").equal(fs$3[gracefulQueue].length, 0);
468
+ debug(fs$2[gracefulQueue]);
469
+ __require("assert").equal(fs$2[gracefulQueue].length, 0);
489
470
  });
490
471
  }
491
- if (!global[gracefulQueue]) publishQueue(global, fs$3[gracefulQueue]);
492
- module.exports = patch(clone(fs$3));
493
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$3.__patched) {
494
- module.exports = patch(fs$3);
495
- fs$3.__patched = true;
472
+ if (!global[gracefulQueue]) publishQueue(global, fs$2[gracefulQueue]);
473
+ module.exports = patch(clone(fs$2));
474
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$2.__patched) {
475
+ module.exports = patch(fs$2);
476
+ fs$2.__patched = true;
496
477
  }
497
478
  function patch(fs) {
498
479
  polyfills(fs);
@@ -747,23 +728,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
747
728
  }
748
729
  function enqueue(elem) {
749
730
  debug("ENQUEUE", elem[0].name, elem[1]);
750
- fs$3[gracefulQueue].push(elem);
731
+ fs$2[gracefulQueue].push(elem);
751
732
  retry();
752
733
  }
753
734
  var retryTimer;
754
735
  function resetQueue() {
755
736
  var now = Date.now();
756
- for (var i = 0; i < fs$3[gracefulQueue].length; ++i) if (fs$3[gracefulQueue][i].length > 2) {
757
- fs$3[gracefulQueue][i][3] = now;
758
- fs$3[gracefulQueue][i][4] = now;
737
+ for (var i = 0; i < fs$2[gracefulQueue].length; ++i) if (fs$2[gracefulQueue][i].length > 2) {
738
+ fs$2[gracefulQueue][i][3] = now;
739
+ fs$2[gracefulQueue][i][4] = now;
759
740
  }
760
741
  retry();
761
742
  }
762
743
  function retry() {
763
744
  clearTimeout(retryTimer);
764
745
  retryTimer = void 0;
765
- if (fs$3[gracefulQueue].length === 0) return;
766
- var elem = fs$3[gracefulQueue].shift();
746
+ if (fs$2[gracefulQueue].length === 0) return;
747
+ var elem = fs$2[gracefulQueue].shift();
767
748
  var fn = elem[0];
768
749
  var args = elem[1];
769
750
  var err = elem[2];
@@ -782,14 +763,13 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
782
763
  if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
783
764
  debug("RETRY", fn.name, args);
784
765
  fn.apply(null, args.concat([startTime]));
785
- } else fs$3[gracefulQueue].push(elem);
766
+ } else fs$2[gracefulQueue].push(elem);
786
767
  }
787
768
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
788
769
  }
789
770
  }));
790
-
791
771
  //#endregion
792
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/fs/index.js
772
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/fs/index.js
793
773
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
794
774
  const u = require_universalify().fromCallback;
795
775
  const fs = require_graceful_fs();
@@ -896,9 +876,8 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
896
876
  if (typeof fs.realpath.native === "function") exports.realpath.native = u(fs.realpath.native);
897
877
  else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?", "Warning", "fs-extra-WARN0003");
898
878
  }));
899
-
900
879
  //#endregion
901
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/mkdirs/utils.js
880
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/utils.js
902
881
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
903
882
  const path$12 = __require("path");
904
883
  module.exports.checkPath = function checkPath(pth) {
@@ -911,9 +890,8 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
911
890
  }
912
891
  };
913
892
  }));
914
-
915
893
  //#endregion
916
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/mkdirs/make-dir.js
894
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/make-dir.js
917
895
  var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
918
896
  const fs = require_fs();
919
897
  const { checkPath } = require_utils$1();
@@ -940,9 +918,8 @@ var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
940
918
  });
941
919
  };
942
920
  }));
943
-
944
921
  //#endregion
945
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/mkdirs/index.js
922
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/mkdirs/index.js
946
923
  var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
947
924
  const u = require_universalify().fromPromise;
948
925
  const { makeDir: _makeDir, makeDirSync } = require_make_dir();
@@ -956,9 +933,8 @@ var require_mkdirs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
956
933
  ensureDirSync: makeDirSync
957
934
  };
958
935
  }));
959
-
960
936
  //#endregion
961
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/path-exists/index.js
937
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/path-exists/index.js
962
938
  var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
963
939
  const u = require_universalify().fromPromise;
964
940
  const fs = require_fs();
@@ -970,39 +946,50 @@ var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
970
946
  pathExistsSync: fs.existsSync
971
947
  };
972
948
  }));
973
-
974
949
  //#endregion
975
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/util/utimes.js
950
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/utimes.js
976
951
  var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
977
952
  const fs = require_fs();
978
953
  const u = require_universalify().fromPromise;
979
954
  async function utimesMillis(path, atime, mtime) {
980
955
  const fd = await fs.open(path, "r+");
981
- let closeErr = null;
956
+ let error = null;
982
957
  try {
983
958
  await fs.futimes(fd, atime, mtime);
959
+ } catch (futimesErr) {
960
+ error = futimesErr;
984
961
  } finally {
985
962
  try {
986
963
  await fs.close(fd);
987
- } catch (e) {
988
- closeErr = e;
964
+ } catch (closeErr) {
965
+ if (!error) error = closeErr;
989
966
  }
990
967
  }
991
- if (closeErr) throw closeErr;
968
+ if (error) throw error;
992
969
  }
993
970
  function utimesMillisSync(path, atime, mtime) {
994
971
  const fd = fs.openSync(path, "r+");
995
- fs.futimesSync(fd, atime, mtime);
996
- return fs.closeSync(fd);
972
+ let error = null;
973
+ try {
974
+ fs.futimesSync(fd, atime, mtime);
975
+ } catch (futimesErr) {
976
+ error = futimesErr;
977
+ } finally {
978
+ try {
979
+ fs.closeSync(fd);
980
+ } catch (closeErr) {
981
+ if (!error) error = closeErr;
982
+ }
983
+ }
984
+ if (error) throw error;
997
985
  }
998
986
  module.exports = {
999
987
  utimesMillis: u(utimesMillis),
1000
988
  utimesMillisSync
1001
989
  };
1002
990
  }));
1003
-
1004
991
  //#endregion
1005
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/util/stat.js
992
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/stat.js
1006
993
  var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1007
994
  const fs = require_fs();
1008
995
  const path$11 = __require("path");
@@ -1127,9 +1114,8 @@ var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1127
1114
  areIdentical
1128
1115
  };
1129
1116
  }));
1130
-
1131
1117
  //#endregion
1132
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/util/async.js
1118
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/util/async.js
1133
1119
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1134
1120
  async function asyncIteratorConcurrentProcess(iterator, fn) {
1135
1121
  const promises = [];
@@ -1140,9 +1126,8 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1140
1126
  }
1141
1127
  module.exports = { asyncIteratorConcurrentProcess };
1142
1128
  }));
1143
-
1144
1129
  //#endregion
1145
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/copy/copy.js
1130
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy.js
1146
1131
  var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1147
1132
  const fs = require_fs();
1148
1133
  const path$10 = __require("path");
@@ -1232,9 +1217,8 @@ var require_copy$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1232
1217
  }
1233
1218
  module.exports = copy;
1234
1219
  }));
1235
-
1236
1220
  //#endregion
1237
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/copy/copy-sync.js
1221
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/copy-sync.js
1238
1222
  var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1239
1223
  const fs = require_graceful_fs();
1240
1224
  const path$9 = __require("path");
@@ -1346,9 +1330,8 @@ var require_copy_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1346
1330
  }
1347
1331
  module.exports = copySync;
1348
1332
  }));
1349
-
1350
1333
  //#endregion
1351
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/copy/index.js
1334
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/copy/index.js
1352
1335
  var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1353
1336
  const u = require_universalify().fromPromise;
1354
1337
  module.exports = {
@@ -1356,9 +1339,8 @@ var require_copy = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1356
1339
  copySync: require_copy_sync()
1357
1340
  };
1358
1341
  }));
1359
-
1360
1342
  //#endregion
1361
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/remove/index.js
1343
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/remove/index.js
1362
1344
  var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1363
1345
  const fs = require_graceful_fs();
1364
1346
  const u = require_universalify().fromCallback;
@@ -1379,9 +1361,8 @@ var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1379
1361
  removeSync
1380
1362
  };
1381
1363
  }));
1382
-
1383
1364
  //#endregion
1384
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/empty/index.js
1365
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/empty/index.js
1385
1366
  var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1386
1367
  const u = require_universalify().fromPromise;
1387
1368
  const fs = require_fs();
@@ -1416,9 +1397,8 @@ var require_empty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1416
1397
  emptydir: emptyDir
1417
1398
  };
1418
1399
  }));
1419
-
1420
1400
  //#endregion
1421
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/file.js
1401
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/file.js
1422
1402
  var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1423
1403
  const u = require_universalify().fromPromise;
1424
1404
  const path$7 = __require("path");
@@ -1464,9 +1444,8 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1464
1444
  createFileSync
1465
1445
  };
1466
1446
  }));
1467
-
1468
1447
  //#endregion
1469
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/link.js
1448
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/link.js
1470
1449
  var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1471
1450
  const u = require_universalify().fromPromise;
1472
1451
  const path$6 = __require("path");
@@ -1477,11 +1456,11 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1477
1456
  async function createLink(srcpath, dstpath) {
1478
1457
  let dstStat;
1479
1458
  try {
1480
- dstStat = await fs.lstat(dstpath);
1459
+ dstStat = await fs.lstat(dstpath, { bigint: true });
1481
1460
  } catch {}
1482
1461
  let srcStat;
1483
1462
  try {
1484
- srcStat = await fs.lstat(srcpath);
1463
+ srcStat = await fs.lstat(srcpath, { bigint: true });
1485
1464
  } catch (err) {
1486
1465
  err.message = err.message.replace("lstat", "ensureLink");
1487
1466
  throw err;
@@ -1494,10 +1473,10 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1494
1473
  function createLinkSync(srcpath, dstpath) {
1495
1474
  let dstStat;
1496
1475
  try {
1497
- dstStat = fs.lstatSync(dstpath);
1476
+ dstStat = fs.lstatSync(dstpath, { bigint: true });
1498
1477
  } catch {}
1499
1478
  try {
1500
- const srcStat = fs.lstatSync(srcpath);
1479
+ const srcStat = fs.lstatSync(srcpath, { bigint: true });
1501
1480
  if (dstStat && areIdentical(srcStat, dstStat)) return;
1502
1481
  } catch (err) {
1503
1482
  err.message = err.message.replace("lstat", "ensureLink");
@@ -1513,9 +1492,8 @@ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1513
1492
  createLinkSync
1514
1493
  };
1515
1494
  }));
1516
-
1517
1495
  //#endregion
1518
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/symlink-paths.js
1496
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-paths.js
1519
1497
  var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1520
1498
  const path$5 = __require("path");
1521
1499
  const fs = require_fs();
@@ -1597,9 +1575,8 @@ var require_symlink_paths = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1597
1575
  symlinkPathsSync
1598
1576
  };
1599
1577
  }));
1600
-
1601
1578
  //#endregion
1602
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/symlink-type.js
1579
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink-type.js
1603
1580
  var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1604
1581
  const fs = require_fs();
1605
1582
  const u = require_universalify().fromPromise;
@@ -1628,9 +1605,8 @@ var require_symlink_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1628
1605
  symlinkTypeSync
1629
1606
  };
1630
1607
  }));
1631
-
1632
1608
  //#endregion
1633
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/symlink.js
1609
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/symlink.js
1634
1610
  var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1635
1611
  const u = require_universalify().fromPromise;
1636
1612
  const path$4 = __require("path");
@@ -1646,7 +1622,18 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1646
1622
  stats = await fs.lstat(dstpath);
1647
1623
  } catch {}
1648
1624
  if (stats && stats.isSymbolicLink()) {
1649
- const [srcStat, dstStat] = await Promise.all([fs.stat(srcpath), fs.stat(dstpath)]);
1625
+ let srcStat;
1626
+ if (path$4.isAbsolute(srcpath)) srcStat = await fs.stat(srcpath, { bigint: true });
1627
+ else {
1628
+ const dstdir = path$4.dirname(dstpath);
1629
+ const relativeToDst = path$4.join(dstdir, srcpath);
1630
+ try {
1631
+ srcStat = await fs.stat(relativeToDst, { bigint: true });
1632
+ } catch {
1633
+ srcStat = await fs.stat(srcpath, { bigint: true });
1634
+ }
1635
+ }
1636
+ const dstStat = await fs.stat(dstpath, { bigint: true });
1650
1637
  if (areIdentical(srcStat, dstStat)) return;
1651
1638
  }
1652
1639
  const relative = await symlinkPaths(srcpath, dstpath);
@@ -1662,7 +1649,19 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1662
1649
  stats = fs.lstatSync(dstpath);
1663
1650
  } catch {}
1664
1651
  if (stats && stats.isSymbolicLink()) {
1665
- if (areIdentical(fs.statSync(srcpath), fs.statSync(dstpath))) return;
1652
+ let srcStat;
1653
+ if (path$4.isAbsolute(srcpath)) srcStat = fs.statSync(srcpath, { bigint: true });
1654
+ else {
1655
+ const dstdir = path$4.dirname(dstpath);
1656
+ const relativeToDst = path$4.join(dstdir, srcpath);
1657
+ try {
1658
+ srcStat = fs.statSync(relativeToDst, { bigint: true });
1659
+ } catch {
1660
+ srcStat = fs.statSync(srcpath, { bigint: true });
1661
+ }
1662
+ }
1663
+ const dstStat = fs.statSync(dstpath, { bigint: true });
1664
+ if (areIdentical(srcStat, dstStat)) return;
1666
1665
  }
1667
1666
  const relative = symlinkPathsSync(srcpath, dstpath);
1668
1667
  srcpath = relative.toDst;
@@ -1677,9 +1676,8 @@ var require_symlink = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1677
1676
  createSymlinkSync
1678
1677
  };
1679
1678
  }));
1680
-
1681
1679
  //#endregion
1682
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/ensure/index.js
1680
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/ensure/index.js
1683
1681
  var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1684
1682
  const { createFile, createFileSync } = require_file();
1685
1683
  const { createLink, createLinkSync } = require_link();
@@ -1699,13 +1697,14 @@ var require_ensure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1699
1697
  ensureSymlinkSync: createSymlinkSync
1700
1698
  };
1701
1699
  }));
1702
-
1703
1700
  //#endregion
1704
- //#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
1701
+ //#region ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js
1705
1702
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1706
1703
  function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
1707
1704
  const EOF = finalEOL ? EOL : "";
1708
- return JSON.stringify(obj, replacer, spaces).replace(/\n/g, EOL) + EOF;
1705
+ const str = JSON.stringify(obj, replacer, spaces);
1706
+ if (str === void 0) throw new TypeError(`Converting ${typeof obj} value to JSON is not supported`);
1707
+ return str.replace(/\n/g, EOL) + EOF;
1709
1708
  }
1710
1709
  function stripBom(content) {
1711
1710
  if (Buffer.isBuffer(content)) content = content.toString("utf8");
@@ -1716,9 +1715,8 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1716
1715
  stripBom
1717
1716
  };
1718
1717
  }));
1719
-
1720
1718
  //#endregion
1721
- //#region ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
1719
+ //#region ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js
1722
1720
  var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1723
1721
  let _fs;
1724
1722
  try {
@@ -1779,9 +1777,8 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1779
1777
  writeFileSync
1780
1778
  };
1781
1779
  }));
1782
-
1783
1780
  //#endregion
1784
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/json/jsonfile.js
1781
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/jsonfile.js
1785
1782
  var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1786
1783
  const jsonFile = require_jsonfile$1();
1787
1784
  module.exports = {
@@ -1791,9 +1788,8 @@ var require_jsonfile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1791
1788
  writeJsonSync: jsonFile.writeFileSync
1792
1789
  };
1793
1790
  }));
1794
-
1795
1791
  //#endregion
1796
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/output-file/index.js
1792
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/output-file/index.js
1797
1793
  var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1798
1794
  const u = require_universalify().fromPromise;
1799
1795
  const fs = require_fs();
@@ -1815,9 +1811,8 @@ var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1815
1811
  outputFileSync
1816
1812
  };
1817
1813
  }));
1818
-
1819
1814
  //#endregion
1820
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/json/output-json.js
1815
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json.js
1821
1816
  var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1822
1817
  const { stringify } = require_utils();
1823
1818
  const { outputFile } = require_output_file();
@@ -1826,9 +1821,8 @@ var require_output_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1826
1821
  }
1827
1822
  module.exports = outputJson;
1828
1823
  }));
1829
-
1830
1824
  //#endregion
1831
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/json/output-json-sync.js
1825
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/output-json-sync.js
1832
1826
  var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1833
1827
  const { stringify } = require_utils();
1834
1828
  const { outputFileSync } = require_output_file();
@@ -1837,9 +1831,8 @@ var require_output_json_sync = /* @__PURE__ */ __commonJSMin(((exports, module)
1837
1831
  }
1838
1832
  module.exports = outputJsonSync;
1839
1833
  }));
1840
-
1841
1834
  //#endregion
1842
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/json/index.js
1835
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/json/index.js
1843
1836
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1844
1837
  const u = require_universalify().fromPromise;
1845
1838
  const jsonFile = require_jsonfile();
@@ -1853,9 +1846,8 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1853
1846
  jsonFile.readJSONSync = jsonFile.readJsonSync;
1854
1847
  module.exports = jsonFile;
1855
1848
  }));
1856
-
1857
1849
  //#endregion
1858
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/move/move.js
1850
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move.js
1859
1851
  var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1860
1852
  const fs = require_fs();
1861
1853
  const path$2 = __require("path");
@@ -1894,9 +1886,8 @@ var require_move$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1894
1886
  }
1895
1887
  module.exports = move;
1896
1888
  }));
1897
-
1898
1889
  //#endregion
1899
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/move/move-sync.js
1890
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/move-sync.js
1900
1891
  var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1901
1892
  const fs = require_graceful_fs();
1902
1893
  const path$1 = __require("path");
@@ -1943,9 +1934,8 @@ var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1943
1934
  }
1944
1935
  module.exports = moveSync;
1945
1936
  }));
1946
-
1947
1937
  //#endregion
1948
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/move/index.js
1938
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/move/index.js
1949
1939
  var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1950
1940
  const u = require_universalify().fromPromise;
1951
1941
  module.exports = {
@@ -1953,9 +1943,8 @@ var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1953
1943
  moveSync: require_move_sync()
1954
1944
  };
1955
1945
  }));
1956
-
1957
1946
  //#endregion
1958
- //#region ../../node_modules/.pnpm/fs-extra@11.3.3/node_modules/fs-extra/lib/index.js
1947
+ //#region ../../node_modules/.pnpm/fs-extra@11.3.5/node_modules/fs-extra/lib/index.js
1959
1948
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1960
1949
  module.exports = {
1961
1950
  ...require_fs(),
@@ -1970,9 +1959,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1970
1959
  ...require_remove()
1971
1960
  };
1972
1961
  }));
1973
-
1974
1962
  //#endregion
1975
- //#region ../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs
1963
+ //#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
1976
1964
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
1977
1965
  var astralIdentifierCodes = [
1978
1966
  509,
@@ -2005,8 +1993,8 @@ var astralIdentifierCodes = [
2005
1993
  4,
2006
1994
  318,
2007
1995
  1,
2008
- 80,
2009
- 3,
1996
+ 78,
1997
+ 5,
2010
1998
  71,
2011
1999
  10,
2012
2000
  50,
@@ -2151,7 +2139,9 @@ var astralIdentifierCodes = [
2151
2139
  10,
2152
2140
  47,
2153
2141
  15,
2154
- 343,
2142
+ 199,
2143
+ 7,
2144
+ 137,
2155
2145
  9,
2156
2146
  54,
2157
2147
  7,
@@ -2183,7 +2173,9 @@ var astralIdentifierCodes = [
2183
2173
  4,
2184
2174
  9,
2185
2175
  9,
2186
- 330,
2176
+ 55,
2177
+ 9,
2178
+ 266,
2187
2179
  3,
2188
2180
  10,
2189
2181
  1,
@@ -2283,7 +2275,15 @@ var astralIdentifierCodes = [
2283
2275
  1,
2284
2276
  2,
2285
2277
  9,
2286
- 726,
2278
+ 233,
2279
+ 0,
2280
+ 3,
2281
+ 0,
2282
+ 8,
2283
+ 1,
2284
+ 6,
2285
+ 0,
2286
+ 475,
2287
2287
  6,
2288
2288
  110,
2289
2289
  6,
@@ -2393,7 +2393,9 @@ var astralIdentifierStartCodes = [
2393
2393
  21,
2394
2394
  11,
2395
2395
  25,
2396
- 71,
2396
+ 7,
2397
+ 25,
2398
+ 39,
2397
2399
  55,
2398
2400
  7,
2399
2401
  1,
@@ -2438,8 +2440,8 @@ var astralIdentifierStartCodes = [
2438
2440
  7,
2439
2441
  1,
2440
2442
  17,
2441
- 2,
2442
- 60,
2443
+ 5,
2444
+ 57,
2443
2445
  28,
2444
2446
  11,
2445
2447
  0,
@@ -2623,7 +2625,9 @@ var astralIdentifierStartCodes = [
2623
2625
  31,
2624
2626
  15,
2625
2627
  0,
2626
- 328,
2628
+ 24,
2629
+ 43,
2630
+ 261,
2627
2631
  18,
2628
2632
  16,
2629
2633
  0,
@@ -2671,7 +2675,11 @@ var astralIdentifierStartCodes = [
2671
2675
  44,
2672
2676
  212,
2673
2677
  63,
2674
- 129,
2678
+ 33,
2679
+ 24,
2680
+ 3,
2681
+ 24,
2682
+ 45,
2675
2683
  74,
2676
2684
  6,
2677
2685
  0,
@@ -2681,13 +2689,15 @@ var astralIdentifierStartCodes = [
2681
2689
  1,
2682
2690
  2,
2683
2691
  0,
2684
- 29,
2685
- 6135,
2686
- 9,
2687
- 1237,
2692
+ 15,
2693
+ 4,
2694
+ 10,
2695
+ 7381,
2688
2696
  42,
2689
- 9,
2690
- 8936,
2697
+ 31,
2698
+ 98,
2699
+ 114,
2700
+ 8702,
2691
2701
  3,
2692
2702
  2,
2693
2703
  6,
@@ -2795,7 +2805,19 @@ var astralIdentifierStartCodes = [
2795
2805
  29,
2796
2806
  3,
2797
2807
  0,
2798
- 496,
2808
+ 208,
2809
+ 30,
2810
+ 2,
2811
+ 2,
2812
+ 2,
2813
+ 1,
2814
+ 2,
2815
+ 6,
2816
+ 3,
2817
+ 4,
2818
+ 10,
2819
+ 1,
2820
+ 225,
2799
2821
  6,
2800
2822
  2,
2801
2823
  3,
@@ -2878,12 +2900,10 @@ var astralIdentifierStartCodes = [
2878
2900
  4421,
2879
2901
  42719,
2880
2902
  33,
2881
- 4153,
2882
- 7,
2883
- 221,
2903
+ 4381,
2904
+ 3,
2905
+ 5773,
2884
2906
  3,
2885
- 5761,
2886
- 15,
2887
2907
  7472,
2888
2908
  16,
2889
2909
  621,
@@ -2892,10 +2912,10 @@ var astralIdentifierStartCodes = [
2892
2912
  1507,
2893
2913
  4938,
2894
2914
  6,
2895
- 4191
2915
+ 8489
2896
2916
  ];
2897
- var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
2898
- var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
2917
+ var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
2918
+ var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
2899
2919
  var reservedWords = {
2900
2920
  3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
2901
2921
  5: "class enum extends super const export import",
@@ -3198,6 +3218,7 @@ function getOptions(opts) {
3198
3218
  };
3199
3219
  }
3200
3220
  if (isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);
3221
+ if (options.sourceType === "commonjs" && options.allowAwaitOutsideFunction) throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
3201
3222
  return options;
3202
3223
  }
3203
3224
  function pushComment(options, array) {
@@ -3213,7 +3234,7 @@ function pushComment(options, array) {
3213
3234
  array.push(comment);
3214
3235
  };
3215
3236
  }
3216
- var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
3237
+ var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_SWITCH = 1024, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
3217
3238
  function functionFlags(async, generator) {
3218
3239
  return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
3219
3240
  }
@@ -3258,7 +3279,7 @@ var Parser = function Parser(options, input, startPos) {
3258
3279
  this.undefinedExports = Object.create(null);
3259
3280
  if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") this.skipLineComment(2);
3260
3281
  this.scopeStack = [];
3261
- this.enterScope(SCOPE_TOP);
3282
+ this.enterScope(this.options.sourceType === "commonjs" ? SCOPE_FUNCTION : SCOPE_TOP);
3262
3283
  this.regexpState = null;
3263
3284
  this.privateNameStack = [];
3264
3285
  };
@@ -3267,10 +3288,12 @@ var prototypeAccessors = {
3267
3288
  inGenerator: { configurable: true },
3268
3289
  inAsync: { configurable: true },
3269
3290
  canAwait: { configurable: true },
3291
+ allowReturn: { configurable: true },
3270
3292
  allowSuper: { configurable: true },
3271
3293
  allowDirectSuper: { configurable: true },
3272
3294
  treatFunctionsAsVar: { configurable: true },
3273
3295
  allowNewDotTarget: { configurable: true },
3296
+ allowUsing: { configurable: true },
3274
3297
  inClassStaticBlock: { configurable: true }
3275
3298
  };
3276
3299
  Parser.prototype.parse = function parse() {
@@ -3295,6 +3318,11 @@ prototypeAccessors.canAwait.get = function() {
3295
3318
  }
3296
3319
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
3297
3320
  };
3321
+ prototypeAccessors.allowReturn.get = function() {
3322
+ if (this.inFunction) return true;
3323
+ if (this.options.allowReturnOutsideFunction && this.currentVarScope().flags & SCOPE_TOP) return true;
3324
+ return false;
3325
+ };
3298
3326
  prototypeAccessors.allowSuper.get = function() {
3299
3327
  return (this.currentThisScope().flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
3300
3328
  };
@@ -3311,6 +3339,12 @@ prototypeAccessors.allowNewDotTarget.get = function() {
3311
3339
  }
3312
3340
  return false;
3313
3341
  };
3342
+ prototypeAccessors.allowUsing.get = function() {
3343
+ var flags = this.currentScope().flags;
3344
+ if (flags & SCOPE_SWITCH) return false;
3345
+ if (!this.inModule && flags & SCOPE_TOP) return false;
3346
+ return true;
3347
+ };
3314
3348
  prototypeAccessors.inClassStaticBlock.get = function() {
3315
3349
  return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
3316
3350
  };
@@ -3435,7 +3469,7 @@ pp$8.parseTopLevel = function(node) {
3435
3469
  }
3436
3470
  this.adaptDirectivePrologue(node.body);
3437
3471
  this.next();
3438
- node.sourceType = this.options.sourceType;
3472
+ node.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType;
3439
3473
  return this.finishNode(node, "Program");
3440
3474
  };
3441
3475
  var loopLabel = { kind: "loop" }, switchLabel = { kind: "switch" };
@@ -3443,15 +3477,17 @@ pp$8.isLet = function(context) {
3443
3477
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
3444
3478
  skipWhiteSpace.lastIndex = this.pos;
3445
3479
  var skip = skipWhiteSpace.exec(this.input);
3446
- var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
3480
+ var next = this.pos + skip[0].length, nextCh = this.fullCharCodeAt(next);
3447
3481
  if (nextCh === 91 || nextCh === 92) return true;
3448
3482
  if (context) return false;
3449
- if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) return true;
3450
- if (isIdentifierStart(nextCh, true)) {
3451
- var pos = next + 1;
3452
- while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) ++pos;
3453
- if (nextCh === 92 || nextCh > 55295 && nextCh < 56320) return true;
3454
- var ident = this.input.slice(next, pos);
3483
+ if (nextCh === 123) return true;
3484
+ if (isIdentifierStart(nextCh)) {
3485
+ var start = next;
3486
+ do
3487
+ next += nextCh <= 65535 ? 1 : 2;
3488
+ while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)));
3489
+ if (nextCh === 92) return true;
3490
+ var ident = this.input.slice(start, next);
3455
3491
  if (!keywordRelationalOperator.test(ident)) return true;
3456
3492
  }
3457
3493
  return false;
@@ -3461,7 +3497,7 @@ pp$8.isAsyncFunction = function() {
3461
3497
  skipWhiteSpace.lastIndex = this.pos;
3462
3498
  var skip = skipWhiteSpace.exec(this.input);
3463
3499
  var next = this.pos + skip[0].length, after;
3464
- return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 55295 && after < 56320));
3500
+ return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92));
3465
3501
  };
3466
3502
  pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
3467
3503
  if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using")) return false;
@@ -3470,20 +3506,23 @@ pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
3470
3506
  var next = this.pos + skip[0].length;
3471
3507
  if (lineBreak.test(this.input.slice(this.pos, next))) return false;
3472
3508
  if (isAwaitUsing) {
3473
- var awaitEndPos = next + 5, after;
3474
- if (this.input.slice(next, awaitEndPos) !== "using" || awaitEndPos === this.input.length || isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) || after > 55295 && after < 56320) return false;
3475
- skipWhiteSpace.lastIndex = awaitEndPos;
3509
+ var usingEndPos = next + 5, after;
3510
+ if (this.input.slice(next, usingEndPos) !== "using" || usingEndPos === this.input.length || isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) || after === 92) return false;
3511
+ skipWhiteSpace.lastIndex = usingEndPos;
3476
3512
  var skipAfterUsing = skipWhiteSpace.exec(this.input);
3477
- if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) return false;
3478
- }
3479
- if (isFor) {
3480
- var ofEndPos = next + 2, after$1;
3481
- if (this.input.slice(next, ofEndPos) === "of") {
3482
- if (ofEndPos === this.input.length || !isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 55295 && after$1 < 56320)) return false;
3483
- }
3484
- }
3485
- var ch = this.input.charCodeAt(next);
3486
- return isIdentifierStart(ch, true) || ch === 92;
3513
+ next = usingEndPos + skipAfterUsing[0].length;
3514
+ if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) return false;
3515
+ }
3516
+ var ch = this.fullCharCodeAt(next);
3517
+ if (!isIdentifierStart(ch) && ch !== 92) return false;
3518
+ var idStart = next;
3519
+ do
3520
+ next += ch <= 65535 ? 1 : 2;
3521
+ while (isIdentifierChar(ch = this.fullCharCodeAt(next)));
3522
+ if (ch === 92) return true;
3523
+ var id = this.input.slice(idStart, next);
3524
+ if (keywordRelationalOperator.test(id) || isFor && id === "of") return false;
3525
+ return true;
3487
3526
  };
3488
3527
  pp$8.isAwaitUsing = function(isFor) {
3489
3528
  return this.isUsingKeyword(true, isFor);
@@ -3544,7 +3583,7 @@ pp$8.parseStatement = function(context, topLevel, exports) {
3544
3583
  }
3545
3584
  var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
3546
3585
  if (usingKind) {
3547
- if (topLevel && this.options.sourceType === "script") this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`");
3586
+ if (!this.allowUsing) this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");
3548
3587
  if (usingKind === "await using") {
3549
3588
  if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
3550
3589
  this.next();
@@ -3618,7 +3657,10 @@ pp$8.parseForStatement = function(node) {
3618
3657
  if (usingKind) {
3619
3658
  var init$2 = this.startNode();
3620
3659
  this.next();
3621
- if (usingKind === "await using") this.next();
3660
+ if (usingKind === "await using") {
3661
+ if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
3662
+ this.next();
3663
+ }
3622
3664
  this.parseVar(init$2, true, usingKind);
3623
3665
  this.finishNode(init$2, "VariableDeclaration");
3624
3666
  return this.parseForAfterInit(node, init$2, awaitAt);
@@ -3665,7 +3707,7 @@ pp$8.parseIfStatement = function(node) {
3665
3707
  return this.finishNode(node, "IfStatement");
3666
3708
  };
3667
3709
  pp$8.parseReturnStatement = function(node) {
3668
- if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, "'return' outside of function");
3710
+ if (!this.allowReturn) this.raise(this.start, "'return' outside of function");
3669
3711
  this.next();
3670
3712
  if (this.eat(types$1.semi) || this.insertSemicolon()) node.argument = null;
3671
3713
  else {
@@ -3680,7 +3722,7 @@ pp$8.parseSwitchStatement = function(node) {
3680
3722
  node.cases = [];
3681
3723
  this.expect(types$1.braceL);
3682
3724
  this.labels.push(switchLabel);
3683
- this.enterScope(0);
3725
+ this.enterScope(SCOPE_SWITCH);
3684
3726
  var cur;
3685
3727
  for (var sawDefault = false; this.type !== types$1.braceR;) if (this.type === types$1._case || this.type === types$1._default) {
3686
3728
  var isCase = this.type === types$1._case;
@@ -5421,29 +5463,27 @@ pp$2.copyNode = function(node) {
5421
5463
  for (var prop in node) newNode[prop] = node[prop];
5422
5464
  return newNode;
5423
5465
  };
5424
- var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
5466
+ var scriptValuesAddedInUnicode = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz";
5425
5467
  var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
5426
5468
  var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
5427
5469
  var ecma11BinaryProperties = ecma10BinaryProperties;
5428
5470
  var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
5429
5471
  var ecma13BinaryProperties = ecma12BinaryProperties;
5430
- var ecma14BinaryProperties = ecma13BinaryProperties;
5431
5472
  var unicodeBinaryProperties = {
5432
5473
  9: ecma9BinaryProperties,
5433
5474
  10: ecma10BinaryProperties,
5434
5475
  11: ecma11BinaryProperties,
5435
5476
  12: ecma12BinaryProperties,
5436
5477
  13: ecma13BinaryProperties,
5437
- 14: ecma14BinaryProperties
5478
+ 14: ecma13BinaryProperties
5438
5479
  };
5439
- var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
5440
5480
  var unicodeBinaryPropertiesOfStrings = {
5441
5481
  9: "",
5442
5482
  10: "",
5443
5483
  11: "",
5444
5484
  12: "",
5445
5485
  13: "",
5446
- 14: ecma14BinaryPropertiesOfStrings
5486
+ 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
5447
5487
  };
5448
5488
  var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
5449
5489
  var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
@@ -5451,14 +5491,13 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
5451
5491
  var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
5452
5492
  var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
5453
5493
  var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
5454
- var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
5455
5494
  var unicodeScriptValues = {
5456
5495
  9: ecma9ScriptValues,
5457
5496
  10: ecma10ScriptValues,
5458
5497
  11: ecma11ScriptValues,
5459
5498
  12: ecma12ScriptValues,
5460
5499
  13: ecma13ScriptValues,
5461
- 14: ecma14ScriptValues
5500
+ 14: ecma13ScriptValues + " " + scriptValuesAddedInUnicode
5462
5501
  };
5463
5502
  var data = {};
5464
5503
  function buildUnicodeData(ecmaVersion) {
@@ -6427,12 +6466,15 @@ pp.readToken = function(code) {
6427
6466
  if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92) return this.readWord();
6428
6467
  return this.getTokenFromCode(code);
6429
6468
  };
6430
- pp.fullCharCodeAtPos = function() {
6431
- var code = this.input.charCodeAt(this.pos);
6469
+ pp.fullCharCodeAt = function(pos) {
6470
+ var code = this.input.charCodeAt(pos);
6432
6471
  if (code <= 55295 || code >= 56320) return code;
6433
- var next = this.input.charCodeAt(this.pos + 1);
6472
+ var next = this.input.charCodeAt(pos + 1);
6434
6473
  return next <= 56319 || next >= 57344 ? code : (code << 10) + next - 56613888;
6435
6474
  };
6475
+ pp.fullCharCodeAtPos = function() {
6476
+ return this.fullCharCodeAt(this.pos);
6477
+ };
6436
6478
  pp.skipBlockComment = function() {
6437
6479
  var startLoc = this.options.onComment && this.curPosition();
6438
6480
  var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
@@ -6976,10 +7018,9 @@ pp.readWord = function() {
6976
7018
  if (this.keywords.test(word)) type = keywords[word];
6977
7019
  return this.finishToken(type, word);
6978
7020
  };
6979
- var version = "8.15.0";
6980
7021
  Parser.acorn = {
6981
7022
  Parser,
6982
- version,
7023
+ version: "8.16.0",
6983
7024
  defaultOptions,
6984
7025
  Position,
6985
7026
  SourceLocation,
@@ -6998,10 +7039,7 @@ Parser.acorn = {
6998
7039
  lineBreakG,
6999
7040
  nonASCIIwhitespace
7000
7041
  };
7001
-
7002
- //#endregion
7003
- //#region ../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs
7004
- const r = String.fromCharCode;
7042
+ String.fromCharCode;
7005
7043
  const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
7006
7044
  const JOIN_LEADING_SLASH_RE = /^\.?\//;
7007
7045
  function hasTrailingSlash(input = "", respectQueryAndFragment) {
@@ -7033,8 +7071,6 @@ function joinURL(base, ...input) {
7033
7071
  } else url = segment;
7034
7072
  return url;
7035
7073
  }
7036
- const protocolRelative = Symbol.for("ufo:protocolRelative");
7037
-
7038
7074
  //#endregion
7039
7075
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
7040
7076
  let _lazyMatch = () => {
@@ -7283,7 +7319,6 @@ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
7283
7319
  const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
7284
7320
  const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
7285
7321
  const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
7286
- const sep = "/";
7287
7322
  const normalize = function(path) {
7288
7323
  if (path.length === 0) return ".";
7289
7324
  path = normalizeWindowsPath(path);
@@ -7462,10 +7497,9 @@ const _path = {
7462
7497
  parse: parse$1,
7463
7498
  relative,
7464
7499
  resolve,
7465
- sep,
7500
+ sep: "/",
7466
7501
  toNamespacedPath
7467
7502
  };
7468
-
7469
7503
  //#endregion
7470
7504
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
7471
7505
  const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
@@ -7483,9 +7517,8 @@ const mix = (del = delimiter) => {
7483
7517
  };
7484
7518
  const posix = /* @__PURE__ */ mix(":");
7485
7519
  const win32 = /* @__PURE__ */ mix(";");
7486
-
7487
7520
  //#endregion
7488
- //#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs
7521
+ //#region ../../node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist/index.mjs
7489
7522
  const BUILTIN_MODULES = new Set(builtinModules);
7490
7523
  function normalizeSlash(path) {
7491
7524
  return path.replace(/\\/g, "/");
@@ -7541,7 +7574,7 @@ codes.ERR_INVALID_ARG_TYPE = createError(
7541
7574
  * @param {unknown} actual
7542
7575
  */
7543
7576
  (name, expected, actual) => {
7544
- assert(typeof name === "string", "'name' must be a string");
7577
+ assert.ok(typeof name === "string", "'name' must be a string");
7545
7578
  if (!Array.isArray(expected)) expected = [expected];
7546
7579
  let message = "The ";
7547
7580
  if (name.endsWith(" argument")) message += `${name} `;
@@ -7557,10 +7590,10 @@ codes.ERR_INVALID_ARG_TYPE = createError(
7557
7590
  /** @type {Array<string>} */
7558
7591
  const other = [];
7559
7592
  for (const value of expected) {
7560
- assert(typeof value === "string", "All expected entries have to be of type string");
7593
+ assert.ok(typeof value === "string", "All expected entries have to be of type string");
7561
7594
  if (kTypes.has(value)) types.push(value.toLowerCase());
7562
7595
  else if (classRegExp.exec(value) === null) {
7563
- assert(value !== "object", "The value \"object\" should be written as \"Object\"");
7596
+ assert.ok(value !== "object", "The value \"object\" should be written as \"Object\"");
7564
7597
  other.push(value);
7565
7598
  } else instances.push(value);
7566
7599
  }
@@ -7625,7 +7658,7 @@ codes.ERR_INVALID_PACKAGE_TARGET = createError(
7625
7658
  (packagePath, key, target, isImport = false, base = void 0) => {
7626
7659
  const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
7627
7660
  if (key === ".") {
7628
- assert(isImport === false);
7661
+ assert.ok(isImport === false);
7629
7662
  return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
7630
7663
  }
7631
7664
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? "; targets must start with \"./\"" : ""}`;
@@ -7733,6 +7766,7 @@ function makeNodeErrorWithCode(Base, key) {
7733
7766
  configurable: true
7734
7767
  },
7735
7768
  toString: {
7769
+ /** @this {Error} */
7736
7770
  value() {
7737
7771
  return `${this.name} [${key}]: ${this.message}`;
7738
7772
  },
@@ -7792,15 +7826,15 @@ const captureLargerStackTrace = hideStackFrames(
7792
7826
  */
7793
7827
  function getMessage(key, parameters, self) {
7794
7828
  const message = messages.get(key);
7795
- assert(message !== void 0, "expected `message` to be found");
7829
+ assert.ok(message !== void 0, "expected `message` to be found");
7796
7830
  if (typeof message === "function") {
7797
- assert(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
7831
+ assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
7798
7832
  return Reflect.apply(message, self, parameters);
7799
7833
  }
7800
7834
  const regex = /%[dfijoOs]/g;
7801
7835
  let expectedLength = 0;
7802
7836
  while (regex.exec(message) !== null) expectedLength++;
7803
- assert(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
7837
+ assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
7804
7838
  if (parameters.length === 0) return message;
7805
7839
  parameters.unshift(message);
7806
7840
  return Reflect.apply(format, null, parameters);
@@ -8001,6 +8035,21 @@ function defaultGetFormatWithoutErrors(url, context) {
8001
8035
  if (!hasOwnProperty.call(protocolHandlers, protocol)) return null;
8002
8036
  return protocolHandlers[protocol](url, context, true) || null;
8003
8037
  }
8038
+ const DEFAULT_CONDITIONS = Object.freeze(["node", "import"]);
8039
+ const DEFAULT_CONDITIONS_SET$1 = new Set(DEFAULT_CONDITIONS);
8040
+ /**
8041
+ * Returns the default conditions for ES module loading, as a Set.
8042
+ */
8043
+ function getDefaultConditionsSet() {
8044
+ return DEFAULT_CONDITIONS_SET$1;
8045
+ }
8046
+ /**
8047
+ * @param {Array<string>} [conditions]
8048
+ * @returns {Set<string>}
8049
+ */
8050
+ function getConditionsSet(conditions) {
8051
+ return getDefaultConditionsSet();
8052
+ }
8004
8053
  const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
8005
8054
  const { ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes;
8006
8055
  const own = {}.hasOwnProperty;
@@ -8039,7 +8088,7 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
8039
8088
  if (process$1.noDeprecation) return;
8040
8089
  if (defaultGetFormatWithoutErrors(url, { parentURL: base.href }) !== "module") return;
8041
8090
  const urlPath = fileURLToPath(url.href);
8042
- const packagePath = fileURLToPath(new URL$1(".", packageJsonUrl));
8091
+ const packagePath = fileURLToPath(new URL(".", packageJsonUrl));
8043
8092
  const basePath = fileURLToPath(base);
8044
8093
  if (!main) process$1.emitWarning(`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
8045
8094
  else if (path.resolve(packagePath, main) !== urlPath) process$1.emitWarning(`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(packagePath.length)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
@@ -8079,7 +8128,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
8079
8128
  /** @type {URL | undefined} */
8080
8129
  let guess;
8081
8130
  if (packageConfig.main !== void 0) {
8082
- guess = new URL$1(packageConfig.main, packageJsonUrl);
8131
+ guess = new URL(packageConfig.main, packageJsonUrl);
8083
8132
  if (fileExists(guess)) return guess;
8084
8133
  const tries = [
8085
8134
  `./${packageConfig.main}.js`,
@@ -8091,7 +8140,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
8091
8140
  ];
8092
8141
  let i = -1;
8093
8142
  while (++i < tries.length) {
8094
- guess = new URL$1(tries[i], packageJsonUrl);
8143
+ guess = new URL(tries[i], packageJsonUrl);
8095
8144
  if (fileExists(guess)) break;
8096
8145
  guess = void 0;
8097
8146
  }
@@ -8107,7 +8156,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
8107
8156
  ];
8108
8157
  let i = -1;
8109
8158
  while (++i < tries.length) {
8110
- guess = new URL$1(tries[i], packageJsonUrl);
8159
+ guess = new URL(tries[i], packageJsonUrl);
8111
8160
  if (fileExists(guess)) break;
8112
8161
  guess = void 0;
8113
8162
  }
@@ -8115,7 +8164,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
8115
8164
  emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
8116
8165
  return guess;
8117
8166
  }
8118
- throw new ERR_MODULE_NOT_FOUND(fileURLToPath(new URL$1(".", packageJsonUrl)), fileURLToPath(base));
8167
+ throw new ERR_MODULE_NOT_FOUND(fileURLToPath(new URL(".", packageJsonUrl)), fileURLToPath(base));
8119
8168
  }
8120
8169
  /**
8121
8170
  * @param {URL} resolved
@@ -8162,7 +8211,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
8162
8211
  * @returns {Error}
8163
8212
  */
8164
8213
  function importNotDefined(specifier, packageJsonUrl, base) {
8165
- return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && fileURLToPath(new URL$1(".", packageJsonUrl)), fileURLToPath(base));
8214
+ return new ERR_PACKAGE_IMPORT_NOT_DEFINED(specifier, packageJsonUrl && fileURLToPath(new URL(".", packageJsonUrl)), fileURLToPath(base));
8166
8215
  }
8167
8216
  /**
8168
8217
  * @param {string} subpath
@@ -8171,7 +8220,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
8171
8220
  * @returns {Error}
8172
8221
  */
8173
8222
  function exportsNotFound(subpath, packageJsonUrl, base) {
8174
- return new ERR_PACKAGE_PATH_NOT_EXPORTED(fileURLToPath(new URL$1(".", packageJsonUrl)), subpath, base && fileURLToPath(base));
8223
+ return new ERR_PACKAGE_PATH_NOT_EXPORTED(fileURLToPath(new URL(".", packageJsonUrl)), subpath, base && fileURLToPath(base));
8175
8224
  }
8176
8225
  /**
8177
8226
  * @param {string} request
@@ -8194,7 +8243,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
8194
8243
  */
8195
8244
  function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
8196
8245
  target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
8197
- return new ERR_INVALID_PACKAGE_TARGET(fileURLToPath(new URL$1(".", packageJsonUrl)), subpath, target, internal, base && fileURLToPath(base));
8246
+ return new ERR_INVALID_PACKAGE_TARGET(fileURLToPath(new URL(".", packageJsonUrl)), subpath, target, internal, base && fileURLToPath(base));
8198
8247
  }
8199
8248
  /**
8200
8249
  * @param {string} target
@@ -8214,7 +8263,7 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
8214
8263
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
8215
8264
  let isURL = false;
8216
8265
  try {
8217
- new URL$1(target);
8266
+ new URL(target);
8218
8267
  isURL = true;
8219
8268
  } catch {}
8220
8269
  if (!isURL) return packageResolve(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target + subpath, packageJsonUrl, conditions);
@@ -8227,9 +8276,9 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
8227
8276
  emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
8228
8277
  }
8229
8278
  } else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
8230
- const resolved = new URL$1(target, packageJsonUrl);
8279
+ const resolved = new URL(target, packageJsonUrl);
8231
8280
  const resolvedPath = resolved.pathname;
8232
- const packagePath = new URL$1(".", packageJsonUrl).pathname;
8281
+ const packagePath = new URL(".", packageJsonUrl).pathname;
8233
8282
  if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
8234
8283
  if (subpath === "") return resolved;
8235
8284
  if (invalidSegmentRegEx.exec(subpath) !== null) {
@@ -8238,8 +8287,8 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
8238
8287
  if (!isPathMap) emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, false);
8239
8288
  } else throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
8240
8289
  }
8241
- if (pattern) return new URL$1(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath));
8242
- return new URL$1(subpath, resolved);
8290
+ if (pattern) return new URL(RegExpPrototypeSymbolReplace.call(patternRegEx, resolved.href, () => subpath));
8291
+ return new URL(subpath, resolved);
8243
8292
  }
8244
8293
  /**
8245
8294
  * @param {string} key
@@ -8321,10 +8370,10 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
8321
8370
  * @param {URL} base
8322
8371
  * @returns {boolean}
8323
8372
  */
8324
- function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
8325
- if (typeof exports === "string" || Array.isArray(exports)) return true;
8326
- if (typeof exports !== "object" || exports === null) return false;
8327
- const keys = Object.getOwnPropertyNames(exports);
8373
+ function isConditionalExportsMainSugar(exports$1, packageJsonUrl, base) {
8374
+ if (typeof exports$1 === "string" || Array.isArray(exports$1)) return true;
8375
+ if (typeof exports$1 !== "object" || exports$1 === null) return false;
8376
+ const keys = Object.getOwnPropertyNames(exports$1);
8328
8377
  let isConditionalSugar = false;
8329
8378
  let i = 0;
8330
8379
  let keyIndex = -1;
@@ -8357,17 +8406,17 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
8357
8406
  * @returns {URL}
8358
8407
  */
8359
8408
  function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
8360
- let exports = packageConfig.exports;
8361
- if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) exports = { ".": exports };
8362
- if (own.call(exports, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
8363
- const target = exports[packageSubpath];
8409
+ let exports$1 = packageConfig.exports;
8410
+ if (isConditionalExportsMainSugar(exports$1, packageJsonUrl, base)) exports$1 = { ".": exports$1 };
8411
+ if (own.call(exports$1, packageSubpath) && !packageSubpath.includes("*") && !packageSubpath.endsWith("/")) {
8412
+ const target = exports$1[packageSubpath];
8364
8413
  const resolveResult = resolvePackageTarget(packageJsonUrl, target, "", packageSubpath, base, false, false, false, conditions);
8365
8414
  if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
8366
8415
  return resolveResult;
8367
8416
  }
8368
8417
  let bestMatch = "";
8369
8418
  let bestMatchSubpath = "";
8370
- const keys = Object.getOwnPropertyNames(exports);
8419
+ const keys = Object.getOwnPropertyNames(exports$1);
8371
8420
  let i = -1;
8372
8421
  while (++i < keys.length) {
8373
8422
  const key = keys[i];
@@ -8382,7 +8431,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
8382
8431
  }
8383
8432
  }
8384
8433
  if (bestMatch) {
8385
- const target = exports[bestMatch];
8434
+ const target = exports$1[bestMatch];
8386
8435
  const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, false, packageSubpath.endsWith("/"), conditions);
8387
8436
  if (resolveResult === null || resolveResult === void 0) throw exportsNotFound(packageSubpath, packageJsonUrl, base);
8388
8437
  return resolveResult;
@@ -8477,7 +8526,7 @@ function parsePackageName(specifier, base) {
8477
8526
  * @returns {URL}
8478
8527
  */
8479
8528
  function packageResolve(specifier, base, conditions) {
8480
- if (builtinModules.includes(specifier)) return new URL$1("node:" + specifier);
8529
+ if (builtinModules.includes(specifier)) return new URL("node:" + specifier);
8481
8530
  const { packageName, packageSubpath, isScoped } = parsePackageName(specifier, base);
8482
8531
  const packageConfig = getPackageScopeConfig(base);
8483
8532
  /* c8 ignore next 16 */
@@ -8485,7 +8534,7 @@ function packageResolve(specifier, base, conditions) {
8485
8534
  const packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);
8486
8535
  if (packageConfig.name === packageName && packageConfig.exports !== void 0 && packageConfig.exports !== null) return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions);
8487
8536
  }
8488
- let packageJsonUrl = new URL$1("./node_modules/" + packageName + "/package.json", base);
8537
+ let packageJsonUrl = new URL("./node_modules/" + packageName + "/package.json", base);
8489
8538
  let packageJsonPath = fileURLToPath(packageJsonUrl);
8490
8539
  /** @type {string} */
8491
8540
  let lastPath;
@@ -8493,7 +8542,7 @@ function packageResolve(specifier, base, conditions) {
8493
8542
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
8494
8543
  if (!stat || !stat.isDirectory()) {
8495
8544
  lastPath = packageJsonPath;
8496
- packageJsonUrl = new URL$1((isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json", packageJsonUrl);
8545
+ packageJsonUrl = new URL((isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json", packageJsonUrl);
8497
8546
  packageJsonPath = fileURLToPath(packageJsonUrl);
8498
8547
  continue;
8499
8548
  }
@@ -8503,7 +8552,7 @@ function packageResolve(specifier, base, conditions) {
8503
8552
  });
8504
8553
  if (packageConfig.exports !== void 0 && packageConfig.exports !== null) return packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions);
8505
8554
  if (packageSubpath === ".") return legacyMainResolve(packageJsonUrl, packageConfig, base);
8506
- return new URL$1(packageSubpath, packageJsonUrl);
8555
+ return new URL(packageSubpath, packageJsonUrl);
8507
8556
  } while (packageJsonPath.length !== lastPath.length);
8508
8557
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), false);
8509
8558
  }
@@ -8543,12 +8592,13 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
8543
8592
  * A URL object to the found thing.
8544
8593
  */
8545
8594
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
8595
+ if (conditions === void 0) conditions = getConditionsSet();
8546
8596
  const protocol = base.protocol;
8547
8597
  const isRemote = protocol === "data:" || protocol === "http:" || protocol === "https:";
8548
8598
  /** @type {URL | undefined} */
8549
8599
  let resolved;
8550
8600
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) try {
8551
- resolved = new URL$1(specifier, base);
8601
+ resolved = new URL(specifier, base);
8552
8602
  } catch (error_) {
8553
8603
  const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
8554
8604
  error.cause = error_;
@@ -8556,7 +8606,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
8556
8606
  }
8557
8607
  else if (protocol === "file:" && specifier[0] === "#") resolved = packageImportsResolve(specifier, base, conditions);
8558
8608
  else try {
8559
- resolved = new URL$1(specifier);
8609
+ resolved = new URL(specifier);
8560
8610
  } catch (error_) {
8561
8611
  if (isRemote && !builtinModules.includes(specifier)) {
8562
8612
  const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
@@ -8565,7 +8615,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
8565
8615
  }
8566
8616
  resolved = packageResolve(specifier, base, conditions);
8567
8617
  }
8568
- assert(resolved !== void 0, "expected to be defined");
8618
+ assert.ok(resolved !== void 0, "expected to be defined");
8569
8619
  if (resolved.protocol !== "file:") return resolved;
8570
8620
  return finalizeResolution(resolved, base);
8571
8621
  }
@@ -8644,121 +8694,8 @@ function resolveSync(id, options) {
8644
8694
  function resolvePathSync(id, options) {
8645
8695
  return fileURLToPath$1(resolveSync(id, options));
8646
8696
  }
8647
-
8648
8697
  //#endregion
8649
- //#region ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
8650
- function isPlainObject(value) {
8651
- if (value === null || typeof value !== "object") return false;
8652
- const prototype = Object.getPrototypeOf(value);
8653
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
8654
- if (Symbol.iterator in value) return false;
8655
- if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
8656
- return true;
8657
- }
8658
- function _defu(baseObject, defaults, namespace = ".", merger) {
8659
- if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
8660
- const object = Object.assign({}, defaults);
8661
- for (const key in baseObject) {
8662
- if (key === "__proto__" || key === "constructor") continue;
8663
- const value = baseObject[key];
8664
- if (value === null || value === void 0) continue;
8665
- if (merger && merger(object, key, value, namespace)) continue;
8666
- if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
8667
- else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
8668
- else object[key] = value;
8669
- }
8670
- return object;
8671
- }
8672
- function createDefu(merger) {
8673
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
8674
- }
8675
- const defu = createDefu();
8676
- const defuFn = createDefu((object, key, currentValue) => {
8677
- if (object[key] !== void 0 && typeof currentValue === "function") {
8678
- object[key] = currentValue(object[key]);
8679
- return true;
8680
- }
8681
- });
8682
- const defuArrayFn = createDefu((object, key, currentValue) => {
8683
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
8684
- object[key] = currentValue(object[key]);
8685
- return true;
8686
- }
8687
- });
8688
-
8689
- //#endregion
8690
- //#region src/modules/preset-vue.ts
8691
- const name$1 = "vixt:preset-vue";
8692
- var preset_vue_default = defineVixtModule({
8693
- meta: { name: name$1 },
8694
- setup(_, vixt) {
8695
- const { components = [], composables = [], constants = [], utils = [], stores = [], pages = [], layouts = [] } = resolveLayersDirs([...vixt._layers].reverse());
8696
- const { buildTypesDir } = vixt.options;
8697
- const defaultOptions = {
8698
- vue: {},
8699
- vueJsx: {},
8700
- router: {
8701
- dts: `${buildTypesDir}/typed-router.d.ts`,
8702
- routesFolder: pages,
8703
- extendRoute(route) {
8704
- const node = route.node.value;
8705
- const overrides = node._overrides;
8706
- if (overrides.size <= 1) return;
8707
- for (const pageDir of [...pages].reverse()) {
8708
- const matched = [...overrides.keys()].find((e) => e.match(pageDir));
8709
- if (matched) {
8710
- node.components.set("default", matched);
8711
- return;
8712
- }
8713
- }
8714
- }
8715
- },
8716
- layouts: {
8717
- layoutsDirs: layouts,
8718
- pagesDirs: pages
8719
- },
8720
- components: {
8721
- dts: `${buildTypesDir}/components.d.ts`,
8722
- dirs: [...components].reverse(),
8723
- directoryAsNamespace: true,
8724
- collapseSamePrefixes: true
8725
- },
8726
- imports: {
8727
- imports: [
8728
- "vue",
8729
- "@vueuse/core",
8730
- "pinia",
8731
- VueRouterAutoImports,
8732
- VixtClientAutoImports
8733
- ],
8734
- dts: `${buildTypesDir}/auto-imports.d.ts`,
8735
- dirs: [
8736
- composables,
8737
- constants,
8738
- stores,
8739
- utils
8740
- ].flat(),
8741
- vueTemplate: true
8742
- },
8743
- unocss: {},
8744
- devtools: { enabled: false }
8745
- };
8746
- const options = vixt.options = defu(vixt.options, defaultOptions);
8747
- return [
8748
- VueRouter(options.router),
8749
- Vue(options.vue),
8750
- VueJsx(options.vueJsx),
8751
- Layouts(options.layouts),
8752
- Components(options.components),
8753
- AutoImport(options.imports),
8754
- UnoCSS(options.unocss),
8755
- options.devtools?.enabled && VueDevTools(options.devtools)
8756
- ];
8757
- }
8758
- });
8759
-
8760
- //#endregion
8761
- //#region src/modules/virtual-root-component.ts
8698
+ //#region src/node/modules/virtual-root-component.ts
8762
8699
  function resolveRootComponent(vixt) {
8763
8700
  for (const layer of vixt._layers) {
8764
8701
  const layerRootComponentPath = posix.resolve(layer.config.srcDir, "App.vue");
@@ -8802,31 +8739,5 @@ var virtual_root_component_default = defineVixtModule({
8802
8739
  };
8803
8740
  }
8804
8741
  });
8805
-
8806
- //#endregion
8807
- //#region src/index.ts
8808
- const plugins = ["@vixt/vue/client/plugins/pinia", "@vixt/vue/client/plugins/router"];
8809
- var src_default = createVixtPlugin({ defaults: {
8810
- modules: [preset_vue_default, virtual_root_component_default],
8811
- plugins,
8812
- app: {
8813
- entryFile: "main.ts",
8814
- entryCode: import_lib.default.readFileSync(resolvePathSync("@vixt/vue/client/entry"), "utf-8"),
8815
- head: { meta: [{ charset: "utf-8" }, {
8816
- name: "viewport",
8817
- content: "width=device-width, initial-scale=1.0"
8818
- }] }
8819
- },
8820
- typescript: { tsConfig: {
8821
- compilerOptions: { types: [
8822
- "@vixt/vue/types",
8823
- "vue-router/auto",
8824
- "vite-plugin-vue-layouts/client"
8825
- ] },
8826
- vueCompilerOptions: { plugins: ["vue-router/volar/sfc-typed-router", "vue-router/volar/sfc-route-blocks"] }
8827
- } },
8828
- vite: { optimizeDeps: { exclude: plugins } }
8829
- } });
8830
-
8831
8742
  //#endregion
8832
- export { src_default as default };
8743
+ export { __toESM as a, require_lib as i, virtual_root_component_default as n, resolvePathSync as r, isEmptyCode as t };