@prisma/internals 5.19.0-integration-feat-typed-sql.1 → 5.19.0-integration-feat-typed-sql.3

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.
Files changed (71) hide show
  1. package/dist/{chunk-WO5ENZU5.js → chunk-2MWIMEFK.js} +7 -7
  2. package/dist/{chunk-EYOPVHNV.js → chunk-3L4K6SFM.js} +7 -7
  3. package/dist/{chunk-U5T2ALDL.js → chunk-3LRE5S6E.js} +8 -8
  4. package/dist/{chunk-EV4E5GN6.js → chunk-3QGWFG6E.js} +43 -43
  5. package/dist/{chunk-QL3K6JIN.js → chunk-3VLJQQOA.js} +5 -5
  6. package/dist/{chunk-TXN4P2UY.js → chunk-4R56FBUF.js} +7 -7
  7. package/dist/{chunk-YFTWQDWC.js → chunk-4ZVGJDUI.js} +5 -5
  8. package/dist/chunk-5XRQ7ONW.js +122 -0
  9. package/dist/{chunk-PN2OFBAO.js → chunk-AYHYONDC.js} +5 -5
  10. package/dist/{chunk-SQX67EBR.js → chunk-AYV4L55K.js} +5 -5
  11. package/dist/{chunk-WLCAAW3G.js → chunk-BFFNJPN2.js} +8 -8
  12. package/dist/{chunk-OEXSUUW2.js → chunk-BGFWFIPR.js} +5 -5
  13. package/dist/{chunk-5ACIJBB4.js → chunk-BX6YSLDA.js} +8 -8
  14. package/dist/chunk-CSV3AVJ4.js +177 -0
  15. package/dist/{chunk-SLGMG65I.js → chunk-ESY3UZBI.js} +14 -178
  16. package/dist/{chunk-LVR5RA7C.js → chunk-FDFZVU55.js} +7 -4
  17. package/dist/chunk-FHXAG4A2.js +29 -0
  18. package/dist/{chunk-7OGLT63S.js → chunk-FMAFO6VE.js} +5 -5
  19. package/dist/chunk-JD6UDOYA.js +54 -0
  20. package/dist/chunk-JXQEYT4S.js +110 -0
  21. package/dist/{chunk-VCLUGB7N.js → chunk-KKZ2HZWO.js} +5 -5
  22. package/dist/{chunk-HDWBT4CR.js → chunk-KXWHSZYC.js} +6 -3
  23. package/dist/chunk-LZIL2VER.js +166 -0
  24. package/dist/{chunk-NEEB3TIJ.js → chunk-OI5RUNIV.js} +5 -5
  25. package/dist/{chunk-PAX5TFEC.js → chunk-P2HFVVRY.js} +8 -8
  26. package/dist/chunk-QIVUAERL.js +2202 -0
  27. package/dist/{chunk-5S6LK7V2.js → chunk-S5WXQYLR.js} +7 -7
  28. package/dist/chunk-T5RACBRF.js +189 -0
  29. package/dist/{chunk-EIEZZJYX.js → chunk-TGDEZJJ5.js} +5 -5
  30. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  31. package/dist/{chunk-2HHWV7NR.js → chunk-UHV7G65X.js} +8 -8
  32. package/dist/{chunk-3LVVD3OG.js → chunk-UY2MAGUM.js} +5 -5
  33. package/dist/{chunk-D7HXSF3S.js → chunk-WQQLBNTD.js} +5 -5
  34. package/dist/{chunk-GHYJGM56.js → chunk-YHTJPMCB.js} +4 -4
  35. package/dist/{chunk-ULQYCMW4.js → chunk-YWVIUKXT.js} +48 -819
  36. package/dist/{chunk-INKUPLJ6.js → chunk-ZT46JXZT.js} +8 -8
  37. package/dist/cli/checkUnsupportedDataProxy.js +28 -26
  38. package/dist/cli/getSchema.js +33 -31
  39. package/dist/cli/hashes.js +28 -26
  40. package/dist/engine-commands/errorHelpers.js +4 -4
  41. package/dist/engine-commands/formatSchema.js +27 -25
  42. package/dist/engine-commands/getConfig.js +10 -10
  43. package/dist/engine-commands/getDmmf.js +7 -7
  44. package/dist/engine-commands/getEngineVersion.js +5 -5
  45. package/dist/engine-commands/getEnginesMetaInfo.js +7 -7
  46. package/dist/engine-commands/index.js +38 -36
  47. package/dist/engine-commands/lintSchema.js +8 -8
  48. package/dist/engine-commands/mergeSchemas.js +7 -7
  49. package/dist/engine-commands/validate.js +7 -7
  50. package/dist/get-generators/generatorResolvers/generatorResolvers.js +27 -25
  51. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +27 -25
  52. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +27 -25
  53. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +28 -26
  54. package/dist/get-generators/getGenerators.js +30 -28
  55. package/dist/getPackedPackage.js +3 -2
  56. package/dist/highlight/highlight.js +5 -5
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.js +70 -67
  59. package/dist/resolveBinary.js +7 -7
  60. package/dist/schemaEngineCommands.js +8 -8
  61. package/dist/sendPanic.js +27 -25
  62. package/dist/utils/getEnvPaths.js +27 -25
  63. package/dist/utils/getVersionFromPackageJson.js +3 -3
  64. package/dist/utils/handlePanic.js +27 -25
  65. package/dist/utils/isValidJsIdentifier.d.ts +1 -0
  66. package/dist/utils/isValidJsIdentifier.js +26 -0
  67. package/dist/utils/loadEnvFile.js +27 -25
  68. package/dist/utils/missingDatasource.js +4 -4
  69. package/dist/utils/missingGeneratorMessage.js +6 -6
  70. package/dist/wasm.js +4 -4
  71. package/package.json +10 -7
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_PN2OFBAO_exports = {};
20
- __export(chunk_PN2OFBAO_exports, {
19
+ var chunk_AYHYONDC_exports = {};
20
+ __export(chunk_AYHYONDC_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_PN2OFBAO_exports);
27
+ module.exports = __toCommonJS(chunk_AYHYONDC_exports);
28
28
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
29
- var import_chunk_GHYJGM56 = require("./chunk-GHYJGM56.js");
29
+ var import_chunk_JXQEYT4S = require("./chunk-JXQEYT4S.js");
30
30
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
32
32
  var import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_7XNZDY2V.require_execa)());
@@ -141,7 +141,7 @@ async function execaCommand({
141
141
  schemaEnginePath,
142
142
  engineCommandName
143
143
  }) {
144
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_GHYJGM56.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
144
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_JXQEYT4S.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
145
145
  try {
146
146
  return await (0, import_execa.default)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
147
147
  cwd,
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_SQX67EBR_exports = {};
20
- __export(chunk_SQX67EBR_exports, {
19
+ var chunk_AYV4L55K_exports = {};
20
+ __export(chunk_AYV4L55K_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_SQX67EBR_exports);
24
- var import_chunk_3LVVD3OG = require("./chunk-3LVVD3OG.js");
23
+ module.exports = __toCommonJS(chunk_AYV4L55K_exports);
24
+ var import_chunk_UY2MAGUM = require("./chunk-UY2MAGUM.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_3LVVD3OG.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_UY2MAGUM.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_WLCAAW3G_exports = {};
30
- __export(chunk_WLCAAW3G_exports, {
29
+ var chunk_BFFNJPN2_exports = {};
30
+ __export(chunk_BFFNJPN2_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_WLCAAW3G_exports);
34
+ module.exports = __toCommonJS(chunk_BFFNJPN2_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
- var import_chunk_VCLUGB7N = require("./chunk-VCLUGB7N.js");
37
+ var import_chunk_AYV4L55K = require("./chunk-AYV4L55K.js");
38
38
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
39
39
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
40
- var import_chunk_7OGLT63S = require("./chunk-7OGLT63S.js");
40
+ var import_chunk_OI5RUNIV = require("./chunk-OI5RUNIV.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_VCLUGB7N.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_AYV4L55K.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -91,13 +91,13 @@ async function getDMMF(options) {
91
91
  () => {
92
92
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
93
93
  debug("Triggering a Rust panic...");
94
- import_chunk_7OGLT63S.prismaSchemaWasm.debug_panic();
94
+ import_chunk_OI5RUNIV.prismaSchemaWasm.debug_panic();
95
95
  }
96
96
  const params = JSON.stringify({
97
97
  prismaSchema: datamodel,
98
98
  noColor: Boolean(process.env.NO_COLOR)
99
99
  });
100
- const data = import_chunk_7OGLT63S.prismaSchemaWasm.get_dmmf(params);
100
+ const data = import_chunk_OI5RUNIV.prismaSchemaWasm.get_dmmf(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_OEXSUUW2_exports = {};
20
- __export(chunk_OEXSUUW2_exports, {
19
+ var chunk_BGFWFIPR_exports = {};
20
+ __export(chunk_BGFWFIPR_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_OEXSUUW2_exports);
23
+ module.exports = __toCommonJS(chunk_BGFWFIPR_exports);
24
24
  var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
25
- var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
25
+ var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
28
28
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
29
29
  You can define a datasource like this:
30
30
 
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
- (0, import_chunk_VNIE2AZB.highlightDatamodel)(`datasource db {
32
+ (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
34
  url = env("DB_URL")
35
35
  }`)
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_5ACIJBB4_exports = {};
30
- __export(chunk_5ACIJBB4_exports, {
29
+ var chunk_BX6YSLDA_exports = {};
30
+ __export(chunk_BX6YSLDA_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_5ACIJBB4_exports);
37
+ module.exports = __toCommonJS(chunk_BX6YSLDA_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
39
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
40
40
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
41
- var import_chunk_VCLUGB7N = require("./chunk-VCLUGB7N.js");
41
+ var import_chunk_KKZ2HZWO = require("./chunk-KKZ2HZWO.js");
42
42
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
43
43
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_7OGLT63S = require("./chunk-7OGLT63S.js");
44
+ var import_chunk_FMAFO6VE = require("./chunk-FMAFO6VE.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
46
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_VCLUGB7N.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_KKZ2HZWO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -90,7 +90,7 @@ async function getConfig(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_7OGLT63S.prismaSchemaWasm.debug_panic();
93
+ import_chunk_FMAFO6VE.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_7OGLT63S.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_FMAFO6VE.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var chunk_CSV3AVJ4_exports = {};
30
+ __export(chunk_CSV3AVJ4_exports, {
31
+ getEnginesInfo: () => getEnginesInfo,
32
+ getEnginesMetaInfo: () => getEnginesMetaInfo,
33
+ resolveEngine: () => resolveEngine
34
+ });
35
+ module.exports = __toCommonJS(chunk_CSV3AVJ4_exports);
36
+ var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
37
+ var import_chunk_JD6UDOYA = require("./chunk-JD6UDOYA.js");
38
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
39
+ var import_chunk_YHTJPMCB = require("./chunk-YHTJPMCB.js");
40
+ var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
41
+ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
+ var import_engines = require("@prisma/engines");
43
+ var import_fetch_engine = require("@prisma/fetch-engine");
44
+ var import_path = __toESM(require("path"));
45
+ var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_QOTVZEEZ.require_function)());
46
+ var none2 = import_chunk_4A5ZK522.none;
47
+ var some2 = import_chunk_4A5ZK522.some;
48
+ var getRight = function(ma) {
49
+ return ma._tag === "Left" ? none2 : some2(ma.right);
50
+ };
51
+ var _map = function(fa, f) {
52
+ return (0, import_chunk_4A5ZK522.pipe)(fa, map(f));
53
+ };
54
+ var _ap = function(fab, fa) {
55
+ return (0, import_chunk_4A5ZK522.pipe)(fab, ap(fa));
56
+ };
57
+ var URI = "Option";
58
+ var map = function(f) {
59
+ return function(fa) {
60
+ return isNone(fa) ? none2 : some2(f(fa.value));
61
+ };
62
+ };
63
+ var Functor = {
64
+ URI,
65
+ map: _map
66
+ };
67
+ var as2 = (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.as)(Functor));
68
+ var asUnit2 = (0, import_chunk_4A5ZK522.asUnit)(Functor);
69
+ var ap = function(fa) {
70
+ return function(fab) {
71
+ return isNone(fab) ? none2 : isNone(fa) ? none2 : some2(fab.value(fa.value));
72
+ };
73
+ };
74
+ var flatMap = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, function(ma, f) {
75
+ return isNone(ma) ? none2 : f(ma.value);
76
+ });
77
+ var Chain = {
78
+ URI,
79
+ map: _map,
80
+ ap: _ap,
81
+ chain: flatMap
82
+ };
83
+ var orElse = (0, import_chunk_4A5ZK522.dual)(2, function(self, that) {
84
+ return isNone(self) ? that() : self;
85
+ });
86
+ var fromEither2 = getRight;
87
+ var FromEither = {
88
+ URI,
89
+ fromEither: fromEither2
90
+ };
91
+ var isSome2 = import_chunk_4A5ZK522.isSome;
92
+ var isNone = function(fa) {
93
+ return fa._tag === "None";
94
+ };
95
+ var matchW = function(onNone, onSome) {
96
+ return function(ma) {
97
+ return isNone(ma) ? onNone() : onSome(ma.value);
98
+ };
99
+ };
100
+ var match = matchW;
101
+ var fold = match;
102
+ var tap2 = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.tap)(Chain));
103
+ var tapEither2 = /* @__PURE__ */ (0, import_chunk_4A5ZK522.dual)(2, (0, import_chunk_4A5ZK522.tapEither)(FromEither, Chain));
104
+ var fromNullable = function(a) {
105
+ return a == null ? none2 : some2(a);
106
+ };
107
+ async function getEnginesMetaInfo() {
108
+ const cliQueryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
109
+ const engines = [
110
+ {
111
+ name: "query-engine",
112
+ type: cliQueryEngineBinaryType
113
+ },
114
+ {
115
+ name: "schema-engine",
116
+ type: import_fetch_engine.BinaryType.SchemaEngineBinary
117
+ }
118
+ ];
119
+ const enginePromises = engines.map(({ name, type }) => {
120
+ return resolveEngine(type).then((result) => [name, result]);
121
+ });
122
+ const engineMatrix = await Promise.all(enginePromises).then(Object.fromEntries);
123
+ const engineDataAcc = engines.map(({ name }) => {
124
+ const [engineInfo, errors] = getEnginesInfo(engineMatrix[name]);
125
+ return [{ [name]: engineInfo }, errors];
126
+ });
127
+ const engineMetaInfo = engineDataAcc.map((arr) => arr[0]);
128
+ const enginesMetaInfoErrors = engineDataAcc.flatMap((arr) => arr[1]);
129
+ return [engineMetaInfo, enginesMetaInfoErrors];
130
+ }
131
+ function getEnginesInfo(enginesInfo) {
132
+ const errors = [];
133
+ const resolved = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ fromEnvVar: import_chunk_H3T4L34H.N.when(isSome2) }, (_engineInfo) => {
134
+ return `, resolved by ${_engineInfo.fromEnvVar.value}`;
135
+ }).otherwise(() => "");
136
+ const absolutePath = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isRight) }, (_engineInfo) => {
137
+ return _engineInfo.path.right;
138
+ }).with({ path: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isLeft) }, (_engineInfo) => {
139
+ errors.push(_engineInfo.path.left);
140
+ return "E_CANNOT_RESOLVE_PATH";
141
+ }).exhaustive();
142
+ const version = (0, import_chunk_H3T4L34H.$)(enginesInfo).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isRight) }, (_engineInfo) => {
143
+ return _engineInfo.version.right;
144
+ }).with({ version: import_chunk_H3T4L34H.N.when(import_chunk_4A5ZK522.isLeft) }, (_engineInfo) => {
145
+ errors.push(_engineInfo.version.left);
146
+ return "E_CANNOT_RESOLVE_VERSION";
147
+ }).exhaustive();
148
+ const versionMessage = `${version} (at ${import_path.default.relative(process.cwd(), absolutePath)}${resolved})`;
149
+ return [versionMessage, errors];
150
+ }
151
+ async function resolveEngine(binaryName) {
152
+ const pathFromEnvOption = fromNullable((0, import_fetch_engine.getBinaryEnvVarPath)(binaryName));
153
+ const fromEnvVarOption = (0, import_function2.pipe)(
154
+ pathFromEnvOption,
155
+ map((p) => p.fromEnvVar)
156
+ );
157
+ const enginePathEither = await (0, import_function2.pipe)(
158
+ pathFromEnvOption,
159
+ fold(
160
+ () => (0, import_chunk_YHTJPMCB.safeResolveBinary)(binaryName),
161
+ (pathFromEnv) => (0, import_chunk_4A5ZK522.right2)(pathFromEnv.path)
162
+ )
163
+ )();
164
+ const versionEither = await (0, import_function2.pipe)(
165
+ enginePathEither,
166
+ import_chunk_4A5ZK522.fromEither,
167
+ (0, import_chunk_4A5ZK522.chain)((enginePath) => {
168
+ return (0, import_chunk_JD6UDOYA.safeGetEngineVersion)(enginePath, binaryName);
169
+ })
170
+ )();
171
+ const engineInfo = {
172
+ path: enginePathEither,
173
+ version: versionEither,
174
+ fromEnvVar: fromEnvVarOption
175
+ };
176
+ return engineInfo;
177
+ }
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_SLGMG65I_exports = {};
30
- __export(chunk_SLGMG65I_exports, {
29
+ var chunk_ESY3UZBI_exports = {};
30
+ __export(chunk_ESY3UZBI_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  readPackageUp: () => readPackageUp,
33
33
  require_glob: () => require_glob,
@@ -35,9 +35,10 @@ __export(chunk_SLGMG65I_exports, {
35
35
  require_minimatch: () => require_minimatch,
36
36
  require_p_map: () => require_p_map
37
37
  });
38
- module.exports = __toCommonJS(chunk_SLGMG65I_exports);
38
+ module.exports = __toCommonJS(chunk_ESY3UZBI_exports);
39
39
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
40
40
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
41
+ var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
41
42
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
42
43
  var import_chunk_4E7A3GDU = require("./chunk-4E7A3GDU.js");
43
44
  var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
@@ -55,7 +56,7 @@ var import_fs3 = __toESM(require("fs"));
55
56
  var import_promises2 = __toESM(require("fs/promises"));
56
57
  var import_path4 = __toESM(require("path"));
57
58
  var import_url2 = require("url");
58
- var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
59
+ var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
59
60
  "../../node_modules/.pnpm/npm-normalize-package-bin@2.0.0/node_modules/npm-normalize-package-bin/lib/index.js"(exports, module2) {
60
61
  "use strict";
61
62
  var { join, basename } = (0, import_chunk_WWAWV7DQ.__require)("path");
@@ -104,13 +105,13 @@ var require_lib = (0, import_chunk_WWAWV7DQ.__commonJS)({
104
105
  module2.exports = normalize;
105
106
  }
106
107
  });
107
- var require_lib2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
108
+ var require_lib3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
108
109
  "../../node_modules/.pnpm/npm-bundled@2.0.1/node_modules/npm-bundled/lib/index.js"(exports, module2) {
109
110
  "use strict";
110
111
  var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
111
112
  var path5 = (0, import_chunk_WWAWV7DQ.__require)("path");
112
113
  var EE = (0, import_chunk_WWAWV7DQ.__require)("events").EventEmitter;
113
- var normalizePackageBin = require_lib();
114
+ var normalizePackageBin = require_lib2();
114
115
  var BundleWalker = class _BundleWalker extends EE {
115
116
  constructor(opt) {
116
117
  opt = opt || {};
@@ -1077,7 +1078,7 @@ var require_minimatch = (0, import_chunk_WWAWV7DQ.__commonJS)({
1077
1078
  minimatch.Minimatch = Minimatch;
1078
1079
  }
1079
1080
  });
1080
- var require_lib3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1081
+ var require_lib4 = (0, import_chunk_WWAWV7DQ.__commonJS)({
1081
1082
  "../../node_modules/.pnpm/ignore-walk@5.0.1/node_modules/ignore-walk/lib/index.js"(exports, module2) {
1082
1083
  "use strict";
1083
1084
  var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
@@ -2818,17 +2819,17 @@ var require_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
2818
2819
  };
2819
2820
  }
2820
2821
  });
2821
- var require_lib4 = (0, import_chunk_WWAWV7DQ.__commonJS)({
2822
+ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
2822
2823
  "../../node_modules/.pnpm/npm-packlist@5.1.3/node_modules/npm-packlist/lib/index.js"(exports, module2) {
2823
2824
  "use strict";
2824
- var bundleWalk = require_lib2();
2825
+ var bundleWalk = require_lib3();
2825
2826
  var BundleWalker = bundleWalk.BundleWalker;
2826
- var ignoreWalk = require_lib3();
2827
+ var ignoreWalk = require_lib4();
2827
2828
  var IgnoreWalker = ignoreWalk.Walker;
2828
2829
  var rootBuiltinRules = Symbol("root-builtin-rules");
2829
2830
  var packageNecessaryRules = Symbol("package-necessary-rules");
2830
2831
  var path5 = (0, import_chunk_WWAWV7DQ.__require)("path");
2831
- var normalizePackageBin = require_lib();
2832
+ var normalizePackageBin = require_lib2();
2832
2833
  var packageMustHaveFileNames = "readme|copying|license|licence";
2833
2834
  var packageMustHaves = `@(${packageMustHaveFileNames}){,.*[^~$]}`;
2834
2835
  var packageMustHavesRE = new RegExp(`^(${packageMustHaveFileNames})(\\..*[^~$])?$`, "i");
@@ -3178,171 +3179,6 @@ var require_js_tokens = (0, import_chunk_WWAWV7DQ.__commonJS)({
3178
3179
  };
3179
3180
  }
3180
3181
  });
3181
- var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
3182
- "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.22.20/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
3183
- "use strict";
3184
- Object.defineProperty(exports, "__esModule", {
3185
- value: true
3186
- });
3187
- exports.isIdentifierChar = isIdentifierChar;
3188
- exports.isIdentifierName = isIdentifierName;
3189
- exports.isIdentifierStart = isIdentifierStart;
3190
- var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
3191
- var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
3192
- var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
3193
- var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
3194
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
3195
- var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
3196
- var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
3197
- function isInAstralSet(code, set) {
3198
- let pos = 65536;
3199
- for (let i = 0, length = set.length; i < length; i += 2) {
3200
- pos += set[i];
3201
- if (pos > code) return false;
3202
- pos += set[i + 1];
3203
- if (pos >= code) return true;
3204
- }
3205
- return false;
3206
- }
3207
- function isIdentifierStart(code) {
3208
- if (code < 65) return code === 36;
3209
- if (code <= 90) return true;
3210
- if (code < 97) return code === 95;
3211
- if (code <= 122) return true;
3212
- if (code <= 65535) {
3213
- return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
3214
- }
3215
- return isInAstralSet(code, astralIdentifierStartCodes);
3216
- }
3217
- function isIdentifierChar(code) {
3218
- if (code < 48) return code === 36;
3219
- if (code < 58) return true;
3220
- if (code < 65) return false;
3221
- if (code <= 90) return true;
3222
- if (code < 97) return code === 95;
3223
- if (code <= 122) return true;
3224
- if (code <= 65535) {
3225
- return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
3226
- }
3227
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
3228
- }
3229
- function isIdentifierName(name) {
3230
- let isFirst = true;
3231
- for (let i = 0; i < name.length; i++) {
3232
- let cp = name.charCodeAt(i);
3233
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
3234
- const trail = name.charCodeAt(++i);
3235
- if ((trail & 64512) === 56320) {
3236
- cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
3237
- }
3238
- }
3239
- if (isFirst) {
3240
- isFirst = false;
3241
- if (!isIdentifierStart(cp)) {
3242
- return false;
3243
- }
3244
- } else if (!isIdentifierChar(cp)) {
3245
- return false;
3246
- }
3247
- }
3248
- return !isFirst;
3249
- }
3250
- }
3251
- });
3252
- var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
3253
- "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.22.20/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
3254
- "use strict";
3255
- Object.defineProperty(exports, "__esModule", {
3256
- value: true
3257
- });
3258
- exports.isKeyword = isKeyword;
3259
- exports.isReservedWord = isReservedWord;
3260
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
3261
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
3262
- exports.isStrictReservedWord = isStrictReservedWord;
3263
- var reservedWords = {
3264
- keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
3265
- strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
3266
- strictBind: ["eval", "arguments"]
3267
- };
3268
- var keywords = new Set(reservedWords.keyword);
3269
- var reservedWordsStrictSet = new Set(reservedWords.strict);
3270
- var reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
3271
- function isReservedWord(word, inModule) {
3272
- return inModule && word === "await" || word === "enum";
3273
- }
3274
- function isStrictReservedWord(word, inModule) {
3275
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
3276
- }
3277
- function isStrictBindOnlyReservedWord(word) {
3278
- return reservedWordsStrictBindSet.has(word);
3279
- }
3280
- function isStrictBindReservedWord(word, inModule) {
3281
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
3282
- }
3283
- function isKeyword(word) {
3284
- return keywords.has(word);
3285
- }
3286
- }
3287
- });
3288
- var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
3289
- "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.22.20/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
3290
- "use strict";
3291
- Object.defineProperty(exports, "__esModule", {
3292
- value: true
3293
- });
3294
- Object.defineProperty(exports, "isIdentifierChar", {
3295
- enumerable: true,
3296
- get: function() {
3297
- return _identifier.isIdentifierChar;
3298
- }
3299
- });
3300
- Object.defineProperty(exports, "isIdentifierName", {
3301
- enumerable: true,
3302
- get: function() {
3303
- return _identifier.isIdentifierName;
3304
- }
3305
- });
3306
- Object.defineProperty(exports, "isIdentifierStart", {
3307
- enumerable: true,
3308
- get: function() {
3309
- return _identifier.isIdentifierStart;
3310
- }
3311
- });
3312
- Object.defineProperty(exports, "isKeyword", {
3313
- enumerable: true,
3314
- get: function() {
3315
- return _keyword.isKeyword;
3316
- }
3317
- });
3318
- Object.defineProperty(exports, "isReservedWord", {
3319
- enumerable: true,
3320
- get: function() {
3321
- return _keyword.isReservedWord;
3322
- }
3323
- });
3324
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
3325
- enumerable: true,
3326
- get: function() {
3327
- return _keyword.isStrictBindOnlyReservedWord;
3328
- }
3329
- });
3330
- Object.defineProperty(exports, "isStrictBindReservedWord", {
3331
- enumerable: true,
3332
- get: function() {
3333
- return _keyword.isStrictBindReservedWord;
3334
- }
3335
- });
3336
- Object.defineProperty(exports, "isStrictReservedWord", {
3337
- enumerable: true,
3338
- get: function() {
3339
- return _keyword.isStrictReservedWord;
3340
- }
3341
- });
3342
- var _identifier = require_identifier();
3343
- var _keyword = require_keyword();
3344
- }
3345
- });
3346
3182
  var require_escape_string_regexp = (0, import_chunk_WWAWV7DQ.__commonJS)({
3347
3183
  "../../node_modules/.pnpm/escape-string-regexp@1.0.5/node_modules/escape-string-regexp/index.js"(exports, module2) {
3348
3184
  "use strict";
@@ -4878,7 +4714,7 @@ var require_lib6 = (0, import_chunk_WWAWV7DQ.__commonJS)({
4878
4714
  exports.default = highlight;
4879
4715
  exports.shouldHighlight = shouldHighlight;
4880
4716
  var _jsTokens = require_js_tokens();
4881
- var _helperValidatorIdentifier = require_lib5();
4717
+ var _helperValidatorIdentifier = (0, import_chunk_T5RACBRF.require_lib)();
4882
4718
  var _chalk = _interopRequireWildcard(require_chalk(), true);
4883
4719
  function _getRequireWildcardCache(e) {
4884
4720
  if ("function" != typeof WeakMap) return null;
@@ -11745,7 +11581,7 @@ var require_tempy = (0, import_chunk_WWAWV7DQ.__commonJS)({
11745
11581
  });
11746
11582
  }
11747
11583
  });
11748
- var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib4());
11584
+ var import_npm_packlist = (0, import_chunk_WWAWV7DQ.__toESM)(require_lib5());
11749
11585
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath;
11750
11586
  async function findUp(name, {
11751
11587
  cwd = import_process.default.cwd(),