@prisma/internals 6.5.0-integration-engines-6-5-0-44-integration-a9055b89e58b4b5bfb59600785423b1db3d0e75d-e9ebf7d1309110571e3c2df4a1fed37f5a614cef.2 → 6.5.0-integration-engines-6-5-0-46-integration-84a848328b0a8928e7495826cfe347b3bb40361c-2e8776a81f94f60e8cd63a61fa6f1d0c2aa4b5d2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/{chunk-MFK43ZSM.js → chunk-3AMCNRY4.js} +205 -424
  2. package/dist/{chunk-JEUU4EXM.js → chunk-4DH5NBIQ.js} +5 -5
  3. package/dist/{chunk-F2PUWTME.js → chunk-7ZFPD7HV.js} +5 -5
  4. package/dist/{chunk-V6Z564LJ.js → chunk-C2WD2XUT.js} +5 -4
  5. package/dist/{chunk-C4IEGAOY.js → chunk-CHH55V3R.js} +7 -7
  6. package/dist/{chunk-VNAGSBKZ.js → chunk-FGWVCRA7.js} +8 -8
  7. package/dist/{chunk-XOBM662N.js → chunk-GEQDXVEA.js} +5 -5
  8. package/dist/{chunk-6PZALOID.js → chunk-HYNHCECI.js} +6 -6
  9. package/dist/{chunk-6LFXTBDM.js → chunk-IOFQL4P6.js} +5 -5
  10. package/dist/{chunk-M3ZLCR2D.js → chunk-IXECGYRM.js} +8 -8
  11. package/dist/{chunk-ON3PN6I5.js → chunk-KERZNROJ.js} +205 -424
  12. package/dist/{chunk-COBYMDJU.js → chunk-KIWN3HUJ.js} +7 -7
  13. package/dist/{chunk-PCHJHBBX.js → chunk-MNRAMMNG.js} +8 -8
  14. package/dist/{chunk-UOJZI7DJ.js → chunk-N2QQ3S77.js} +5 -5
  15. package/dist/{chunk-VT6IBJXX.js → chunk-ROZVXBLM.js} +5 -5
  16. package/dist/{chunk-Z24QHFWD.js → chunk-UH2VUWEV.js} +8 -8
  17. package/dist/{chunk-Z4DUIIQU.js → chunk-VUXISLJ4.js} +5 -5
  18. package/dist/{chunk-PQQXGMS7.js → chunk-VWD3KAEH.js} +5 -5
  19. package/dist/{chunk-M64P47W4.js → chunk-WYAGH5VW.js} +8 -8
  20. package/dist/{chunk-ZRWHMLKR.js → chunk-YXRWLB3U.js} +8 -8
  21. package/dist/{chunk-RXKTBDHR.js → chunk-ZT7ILOOF.js} +5 -5
  22. package/dist/cli/checkUnsupportedDataProxy.js +13 -13
  23. package/dist/cli/getSchema.js +17 -17
  24. package/dist/cli/hashes.js +13 -13
  25. package/dist/engine-commands/errorHelpers.js +4 -4
  26. package/dist/engine-commands/formatSchema.js +12 -12
  27. package/dist/engine-commands/getConfig.js +10 -10
  28. package/dist/engine-commands/getDmmf.js +7 -7
  29. package/dist/engine-commands/index.js +21 -21
  30. package/dist/engine-commands/lintSchema.js +8 -8
  31. package/dist/engine-commands/mergeSchemas.js +7 -7
  32. package/dist/engine-commands/validate.js +7 -7
  33. package/dist/get-generators/generatorResolvers/generatorResolvers.js +12 -12
  34. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +12 -12
  35. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +13 -13
  36. package/dist/get-generators/getGenerators.js +15 -15
  37. package/dist/getPackedPackage.js +2 -2
  38. package/dist/index.js +41 -41
  39. package/dist/sendPanic.js +12 -12
  40. package/dist/utils/getEnvPaths.js +12 -12
  41. package/dist/utils/getVersionFromPackageJson.js +3 -3
  42. package/dist/utils/handlePanic.js +12 -12
  43. package/dist/utils/loadEnvFile.js +12 -12
  44. package/dist/wasm.js +4 -4
  45. package/package.json +10 -10
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_ON3PN6I5_exports = {};
30
- __export2(chunk_ON3PN6I5_exports, {
29
+ var chunk_KERZNROJ_exports = {};
30
+ __export2(chunk_KERZNROJ_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -54,7 +54,7 @@ __export2(chunk_ON3PN6I5_exports, {
54
54
  sendPanic: () => sendPanic,
55
55
  skipIndex: () => skipIndex
56
56
  });
57
- module.exports = __toCommonJS2(chunk_ON3PN6I5_exports);
57
+ module.exports = __toCommonJS2(chunk_KERZNROJ_exports);
58
58
  var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
59
59
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
60
60
  var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
@@ -79,13 +79,13 @@ var import_chunk_AC6EAR56 = require("./chunk-AC6EAR56.js");
79
79
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
80
80
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
81
81
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
82
- var import_chunk_F2PUWTME = require("./chunk-F2PUWTME.js");
83
- var import_chunk_COBYMDJU = require("./chunk-COBYMDJU.js");
84
- var import_chunk_M3ZLCR2D = require("./chunk-M3ZLCR2D.js");
85
- var import_chunk_PCHJHBBX = require("./chunk-PCHJHBBX.js");
82
+ var import_chunk_N2QQ3S77 = require("./chunk-N2QQ3S77.js");
83
+ var import_chunk_CHH55V3R = require("./chunk-CHH55V3R.js");
84
+ var import_chunk_UH2VUWEV = require("./chunk-UH2VUWEV.js");
85
+ var import_chunk_MNRAMMNG = require("./chunk-MNRAMMNG.js");
86
86
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
87
87
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
88
- var import_chunk_PQQXGMS7 = require("./chunk-PQQXGMS7.js");
88
+ var import_chunk_VWD3KAEH = require("./chunk-VWD3KAEH.js");
89
89
  var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
90
90
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
91
91
  var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
@@ -93,7 +93,7 @@ var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
93
93
  var import_chunk_ZYW3HGSH = require("./chunk-ZYW3HGSH.js");
94
94
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
95
95
  var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
96
- var import_chunk_V6Z564LJ = require("./chunk-V6Z564LJ.js");
96
+ var import_chunk_C2WD2XUT = require("./chunk-C2WD2XUT.js");
97
97
  var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
98
98
  var import_chunk_53LS3WUO = require("./chunk-53LS3WUO.js");
99
99
  var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
@@ -103,6 +103,12 @@ var import_debug = __toESM2(require("@prisma/debug"));
103
103
  var import_config = require("@prisma/config");
104
104
  var import_fs = __toESM2(require("fs"));
105
105
  var import_debug2 = __toESM2(require("@prisma/debug"));
106
+ var import_node_path = __toESM2(require("node:path"));
107
+ var import_node_process = __toESM2(require("node:process"));
108
+ var import_node_path2 = __toESM2(require("node:path"));
109
+ var import_node_fs = __toESM2(require("node:fs"));
110
+ var import_node_url = require("node:url");
111
+ var import_node_fs2 = __toESM2(require("node:fs"));
106
112
  var import_fs2 = __toESM2(require("fs"));
107
113
  var import_path = __toESM2(require("path"));
108
114
  var import_debug3 = require("@prisma/debug");
@@ -128,321 +134,17 @@ var import_os = __toESM2(require("os"));
128
134
  var import_path6 = __toESM2(require("path"));
129
135
  var import_prompts = __toESM2(require("prompts"));
130
136
  var import_get_platform3 = require("@prisma/get-platform");
131
- var require_yocto_queue = (0, import_chunk_WWAWV7DQ.__commonJS)({
132
- "../../node_modules/.pnpm/yocto-queue@0.1.0/node_modules/yocto-queue/index.js"(exports2, module2) {
133
- "use strict";
134
- var Node = class {
135
- /// value;
136
- /// next;
137
- constructor(value) {
138
- this.value = value;
139
- this.next = void 0;
140
- }
141
- };
142
- var Queue = class {
143
- // TODO: Use private class fields when targeting Node.js 12.
144
- // #_head;
145
- // #_tail;
146
- // #_size;
147
- constructor() {
148
- this.clear();
149
- }
150
- enqueue(value) {
151
- const node = new Node(value);
152
- if (this._head) {
153
- this._tail.next = node;
154
- this._tail = node;
155
- } else {
156
- this._head = node;
157
- this._tail = node;
158
- }
159
- this._size++;
160
- }
161
- dequeue() {
162
- const current = this._head;
163
- if (!current) {
164
- return;
165
- }
166
- this._head = this._head.next;
167
- this._size--;
168
- return current.value;
169
- }
170
- clear() {
171
- this._head = void 0;
172
- this._tail = void 0;
173
- this._size = 0;
174
- }
175
- get size() {
176
- return this._size;
177
- }
178
- *[Symbol.iterator]() {
179
- let current = this._head;
180
- while (current) {
181
- yield current.value;
182
- current = current.next;
183
- }
184
- }
185
- };
186
- module2.exports = Queue;
187
- }
188
- });
189
- var require_p_limit = (0, import_chunk_WWAWV7DQ.__commonJS)({
190
- "../../node_modules/.pnpm/p-limit@3.1.0/node_modules/p-limit/index.js"(exports2, module2) {
191
- "use strict";
192
- var Queue = require_yocto_queue();
193
- var pLimit = (concurrency) => {
194
- if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
195
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
196
- }
197
- const queue2 = new Queue();
198
- let activeCount = 0;
199
- const next = () => {
200
- activeCount--;
201
- if (queue2.size > 0) {
202
- queue2.dequeue()();
203
- }
204
- };
205
- const run = async (fn, resolve, ...args) => {
206
- activeCount++;
207
- const result = (async () => fn(...args))();
208
- resolve(result);
209
- try {
210
- await result;
211
- } catch {
212
- }
213
- next();
214
- };
215
- const enqueue = (fn, resolve, ...args) => {
216
- queue2.enqueue(run.bind(null, fn, resolve, ...args));
217
- (async () => {
218
- await Promise.resolve();
219
- if (activeCount < concurrency && queue2.size > 0) {
220
- queue2.dequeue()();
221
- }
222
- })();
223
- };
224
- const generator = (fn, ...args) => new Promise((resolve) => {
225
- enqueue(fn, resolve, ...args);
226
- });
227
- Object.defineProperties(generator, {
228
- activeCount: {
229
- get: () => activeCount
230
- },
231
- pendingCount: {
232
- get: () => queue2.size
233
- },
234
- clearQueue: {
235
- value: () => {
236
- queue2.clear();
237
- }
238
- }
239
- });
240
- return generator;
241
- };
242
- module2.exports = pLimit;
243
- }
244
- });
245
- var require_p_locate = (0, import_chunk_WWAWV7DQ.__commonJS)({
246
- "../../node_modules/.pnpm/p-locate@5.0.0/node_modules/p-locate/index.js"(exports2, module2) {
247
- "use strict";
248
- var pLimit = require_p_limit();
249
- var EndError = class extends Error {
250
- constructor(value) {
251
- super();
252
- this.value = value;
253
- }
254
- };
255
- var testElement = async (element, tester) => tester(await element);
256
- var finder = async (element) => {
257
- const values = await Promise.all(element);
258
- if (values[1] === true) {
259
- throw new EndError(values[0]);
260
- }
261
- return false;
262
- };
263
- var pLocate = async (iterable, tester, options2) => {
264
- options2 = {
265
- concurrency: Infinity,
266
- preserveOrder: true,
267
- ...options2
268
- };
269
- const limit = pLimit(options2.concurrency);
270
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
271
- const checkLimit = pLimit(options2.preserveOrder ? 1 : Infinity);
272
- try {
273
- await Promise.all(items.map((element) => checkLimit(finder, element)));
274
- } catch (error) {
275
- if (error instanceof EndError) {
276
- return error.value;
277
- }
278
- throw error;
279
- }
280
- };
281
- module2.exports = pLocate;
282
- }
283
- });
284
- var require_locate_path = (0, import_chunk_WWAWV7DQ.__commonJS)({
285
- "../../node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js"(exports2, module2) {
286
- "use strict";
287
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
288
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
289
- var { promisify: promisify3 } = (0, import_chunk_WWAWV7DQ.__require)("util");
290
- var pLocate = require_p_locate();
291
- var fsStat = promisify3(fs8.stat);
292
- var fsLStat = promisify3(fs8.lstat);
293
- var typeMappings = {
294
- directory: "isDirectory",
295
- file: "isFile"
296
- };
297
- function checkType({ type }) {
298
- if (type in typeMappings) {
299
- return;
300
- }
301
- throw new Error(`Invalid type specified: ${type}`);
302
- }
303
- var matchType = (type, stat2) => type === void 0 || stat2[typeMappings[type]]();
304
- module2.exports = async (paths2, options2) => {
305
- options2 = {
306
- cwd: process.cwd(),
307
- type: "file",
308
- allowSymlinks: true,
309
- ...options2
310
- };
311
- checkType(options2);
312
- const statFn = options2.allowSymlinks ? fsStat : fsLStat;
313
- return pLocate(paths2, async (path_) => {
314
- try {
315
- const stat2 = await statFn(path8.resolve(options2.cwd, path_));
316
- return matchType(options2.type, stat2);
317
- } catch {
318
- return false;
319
- }
320
- }, options2);
321
- };
322
- module2.exports.sync = (paths2, options2) => {
323
- options2 = {
324
- cwd: process.cwd(),
325
- allowSymlinks: true,
326
- type: "file",
327
- ...options2
328
- };
329
- checkType(options2);
330
- const statFn = options2.allowSymlinks ? fs8.statSync : fs8.lstatSync;
331
- for (const path_ of paths2) {
332
- try {
333
- const stat2 = statFn(path8.resolve(options2.cwd, path_));
334
- if (matchType(options2.type, stat2)) {
335
- return path_;
336
- }
337
- } catch {
338
- }
339
- }
340
- };
341
- }
342
- });
343
- var require_path_exists = (0, import_chunk_WWAWV7DQ.__commonJS)({
344
- "../../node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js"(exports2, module2) {
345
- "use strict";
346
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
347
- var { promisify: promisify3 } = (0, import_chunk_WWAWV7DQ.__require)("util");
348
- var pAccess = promisify3(fs8.access);
349
- module2.exports = async (path8) => {
350
- try {
351
- await pAccess(path8);
352
- return true;
353
- } catch (_2) {
354
- return false;
355
- }
356
- };
357
- module2.exports.sync = (path8) => {
358
- try {
359
- fs8.accessSync(path8);
360
- return true;
361
- } catch (_2) {
362
- return false;
363
- }
364
- };
365
- }
366
- });
367
- var require_find_up = (0, import_chunk_WWAWV7DQ.__commonJS)({
368
- "../../node_modules/.pnpm/find-up@5.0.0/node_modules/find-up/index.js"(exports2, module2) {
369
- "use strict";
370
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
371
- var locatePath = require_locate_path();
372
- var pathExists = require_path_exists();
373
- var stop = Symbol("findUp.stop");
374
- module2.exports = async (name, options2 = {}) => {
375
- let directory = path8.resolve(options2.cwd || "");
376
- const { root } = path8.parse(directory);
377
- const paths2 = [].concat(name);
378
- const runMatcher = async (locateOptions) => {
379
- if (typeof name !== "function") {
380
- return locatePath(paths2, locateOptions);
381
- }
382
- const foundPath = await name(locateOptions.cwd);
383
- if (typeof foundPath === "string") {
384
- return locatePath([foundPath], locateOptions);
385
- }
386
- return foundPath;
387
- };
388
- while (true) {
389
- const foundPath = await runMatcher({ ...options2, cwd: directory });
390
- if (foundPath === stop) {
391
- return;
392
- }
393
- if (foundPath) {
394
- return path8.resolve(directory, foundPath);
395
- }
396
- if (directory === root) {
397
- return;
398
- }
399
- directory = path8.dirname(directory);
400
- }
401
- };
402
- module2.exports.sync = (name, options2 = {}) => {
403
- let directory = path8.resolve(options2.cwd || "");
404
- const { root } = path8.parse(directory);
405
- const paths2 = [].concat(name);
406
- const runMatcher = (locateOptions) => {
407
- if (typeof name !== "function") {
408
- return locatePath.sync(paths2, locateOptions);
409
- }
410
- const foundPath = name(locateOptions.cwd);
411
- if (typeof foundPath === "string") {
412
- return locatePath.sync([foundPath], locateOptions);
413
- }
414
- return foundPath;
415
- };
416
- while (true) {
417
- const foundPath = runMatcher({ ...options2, cwd: directory });
418
- if (foundPath === stop) {
419
- return;
420
- }
421
- if (foundPath) {
422
- return path8.resolve(directory, foundPath);
423
- }
424
- if (directory === root) {
425
- return;
426
- }
427
- directory = path8.dirname(directory);
428
- }
429
- };
430
- module2.exports.exists = pathExists;
431
- module2.exports.sync.exists = pathExists.sync;
432
- module2.exports.stop = stop;
433
- }
434
- });
435
137
  var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
436
138
  "../../node_modules/.pnpm/readdir-glob@1.1.2/node_modules/readdir-glob/index.js"(exports2, module2) {
437
139
  "use strict";
438
140
  module2.exports = readdirGlob;
439
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
141
+ var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
440
142
  var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
441
- var { Minimatch } = (0, import_chunk_V6Z564LJ.require_minimatch)();
143
+ var { Minimatch } = (0, import_chunk_C2WD2XUT.require_minimatch)();
442
144
  var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
443
145
  function readdir(dir2, strict) {
444
146
  return new Promise((resolve2, reject2) => {
445
- fs8.readdir(dir2, { withFileTypes: true }, (err, files) => {
147
+ fs10.readdir(dir2, { withFileTypes: true }, (err, files) => {
446
148
  if (err) {
447
149
  switch (err.code) {
448
150
  case "ENOTDIR":
@@ -475,7 +177,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
475
177
  }
476
178
  function stat2(file, followSymlinks) {
477
179
  return new Promise((resolve2, reject2) => {
478
- const statFunc = followSymlinks ? fs8.stat : fs8.lstat;
180
+ const statFunc = followSymlinks ? fs10.stat : fs10.lstat;
479
181
  statFunc(file, (err, stats) => {
480
182
  if (err) {
481
183
  switch (err.code) {
@@ -496,8 +198,8 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
496
198
  });
497
199
  });
498
200
  }
499
- async function* exploreWalkAsync(dir2, path8, followSymlinks, useStat, shouldSkip, strict) {
500
- let files = await readdir(path8 + dir2, strict);
201
+ async function* exploreWalkAsync(dir2, path10, followSymlinks, useStat, shouldSkip, strict) {
202
+ let files = await readdir(path10 + dir2, strict);
501
203
  for (const file of files) {
502
204
  let name = file.name;
503
205
  if (name === void 0) {
@@ -506,7 +208,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
506
208
  }
507
209
  const filename = dir2 + "/" + name;
508
210
  const relative = filename.slice(1);
509
- const absolute = path8 + "/" + relative;
211
+ const absolute = path10 + "/" + relative;
510
212
  let stats = null;
511
213
  if (useStat || followSymlinks) {
512
214
  stats = await stat2(absolute, followSymlinks);
@@ -520,15 +222,15 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
520
222
  if (stats.isDirectory()) {
521
223
  if (!shouldSkip(relative)) {
522
224
  yield { relative, absolute, stats };
523
- yield* exploreWalkAsync(filename, path8, followSymlinks, useStat, shouldSkip, false);
225
+ yield* exploreWalkAsync(filename, path10, followSymlinks, useStat, shouldSkip, false);
524
226
  }
525
227
  } else {
526
228
  yield { relative, absolute, stats };
527
229
  }
528
230
  }
529
231
  }
530
- async function* explore(path8, followSymlinks, useStat, shouldSkip) {
531
- yield* exploreWalkAsync("", path8, followSymlinks, useStat, shouldSkip, true);
232
+ async function* explore(path10, followSymlinks, useStat, shouldSkip) {
233
+ yield* exploreWalkAsync("", path10, followSymlinks, useStat, shouldSkip, true);
532
234
  }
533
235
  function readOptions(options2) {
534
236
  return {
@@ -2849,7 +2551,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
2849
2551
  var Duplex;
2850
2552
  Writable.WritableState = WritableState;
2851
2553
  var util = Object.create(require_util());
2852
- util.inherits = (0, import_chunk_V6Z564LJ.require_inherits)();
2554
+ util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
2853
2555
  var internalUtil = {
2854
2556
  deprecate: require_node()
2855
2557
  };
@@ -3287,7 +2989,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
3287
2989
  };
3288
2990
  module2.exports = Duplex;
3289
2991
  var util = Object.create(require_util());
3290
- util.inherits = (0, import_chunk_V6Z564LJ.require_inherits)();
2992
+ util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
3291
2993
  var Readable = require_stream_readable();
3292
2994
  var Writable = require_stream_writable();
3293
2995
  util.inherits(Duplex, Readable);
@@ -3608,7 +3310,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
3608
3310
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
3609
3311
  }
3610
3312
  var util = Object.create(require_util());
3611
- util.inherits = (0, import_chunk_V6Z564LJ.require_inherits)();
3313
+ util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
3612
3314
  var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
3613
3315
  var debug8 = void 0;
3614
3316
  if (debugUtil && debugUtil.debuglog) {
@@ -4275,7 +3977,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
4275
3977
  module2.exports = Transform;
4276
3978
  var Duplex = require_stream_duplex();
4277
3979
  var util = Object.create(require_util());
4278
- util.inherits = (0, import_chunk_V6Z564LJ.require_inherits)();
3980
+ util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
4279
3981
  util.inherits(Transform, Duplex);
4280
3982
  function afterTransform(er, data) {
4281
3983
  var ts = this._transformState;
@@ -4373,7 +4075,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
4373
4075
  module2.exports = PassThrough;
4374
4076
  var Transform = require_stream_transform();
4375
4077
  var util = Object.create(require_util());
4376
- util.inherits = (0, import_chunk_V6Z564LJ.require_inherits)();
4078
+ util.inherits = (0, import_chunk_C2WD2XUT.require_inherits)();
4377
4079
  util.inherits(PassThrough, Transform);
4378
4080
  function PassThrough(options2) {
4379
4081
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
@@ -4461,22 +4163,22 @@ var require_lazystream = (0, import_chunk_WWAWV7DQ.__commonJS)({
4461
4163
  var require_normalize_path = (0, import_chunk_WWAWV7DQ.__commonJS)({
4462
4164
  "../../node_modules/.pnpm/normalize-path@3.0.0/node_modules/normalize-path/index.js"(exports2, module2) {
4463
4165
  "use strict";
4464
- module2.exports = function(path8, stripTrailing) {
4465
- if (typeof path8 !== "string") {
4166
+ module2.exports = function(path10, stripTrailing) {
4167
+ if (typeof path10 !== "string") {
4466
4168
  throw new TypeError("expected path to be a string");
4467
4169
  }
4468
- if (path8 === "\\" || path8 === "/") return "/";
4469
- var len = path8.length;
4470
- if (len <= 1) return path8;
4170
+ if (path10 === "\\" || path10 === "/") return "/";
4171
+ var len = path10.length;
4172
+ if (len <= 1) return path10;
4471
4173
  var prefix = "";
4472
- if (len > 4 && path8[3] === "\\") {
4473
- var ch = path8[2];
4474
- if ((ch === "?" || ch === ".") && path8.slice(0, 2) === "\\\\") {
4475
- path8 = path8.slice(2);
4174
+ if (len > 4 && path10[3] === "\\") {
4175
+ var ch = path10[2];
4176
+ if ((ch === "?" || ch === ".") && path10.slice(0, 2) === "\\\\") {
4177
+ path10 = path10.slice(2);
4476
4178
  prefix = "//";
4477
4179
  }
4478
4180
  }
4479
- var segs = path8.split(/[/\\]+/);
4181
+ var segs = path10.split(/[/\\]+/);
4480
4182
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
4481
4183
  segs.pop();
4482
4184
  }
@@ -5659,7 +5361,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5659
5361
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
5660
5362
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
5661
5363
  var errorOrDestroy = destroyImpl.errorOrDestroy;
5662
- (0, import_chunk_V6Z564LJ.require_inherits)()(Writable, Stream);
5364
+ (0, import_chunk_C2WD2XUT.require_inherits)()(Writable, Stream);
5663
5365
  function nop() {
5664
5366
  }
5665
5367
  function WritableState(options2, stream, isDuplex) {
@@ -6101,7 +5803,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6101
5803
  module2.exports = Duplex;
6102
5804
  var Readable = require_stream_readable2();
6103
5805
  var Writable = require_stream_writable2();
6104
- (0, import_chunk_V6Z564LJ.require_inherits)()(Duplex, Readable);
5806
+ (0, import_chunk_C2WD2XUT.require_inherits)()(Duplex, Readable);
6105
5807
  {
6106
5808
  keys = objectKeys(Writable.prototype);
6107
5809
  for (v = 0; v < keys.length; v++) {
@@ -6878,7 +6580,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6878
6580
  var StringDecoder;
6879
6581
  var createReadableStreamAsyncIterator;
6880
6582
  var from;
6881
- (0, import_chunk_V6Z564LJ.require_inherits)()(Readable, Stream);
6583
+ (0, import_chunk_C2WD2XUT.require_inherits)()(Readable, Stream);
6882
6584
  var errorOrDestroy = destroyImpl.errorOrDestroy;
6883
6585
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
6884
6586
  function prependListener(emitter, event, fn) {
@@ -7583,7 +7285,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7583
7285
  var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
7584
7286
  var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
7585
7287
  var Duplex = require_stream_duplex2();
7586
- (0, import_chunk_V6Z564LJ.require_inherits)()(Transform, Duplex);
7288
+ (0, import_chunk_C2WD2XUT.require_inherits)()(Transform, Duplex);
7587
7289
  function afterTransform(er, data) {
7588
7290
  var ts = this._transformState;
7589
7291
  ts.transforming = false;
@@ -7677,7 +7379,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7677
7379
  "use strict";
7678
7380
  module2.exports = PassThrough;
7679
7381
  var Transform = require_stream_transform2();
7680
- (0, import_chunk_V6Z564LJ.require_inherits)()(PassThrough, Transform);
7382
+ (0, import_chunk_C2WD2XUT.require_inherits)()(PassThrough, Transform);
7681
7383
  function PassThrough(options2) {
7682
7384
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
7683
7385
  Transform.call(this, options2);
@@ -8545,13 +8247,13 @@ var require_isPlainObject = (0, import_chunk_WWAWV7DQ.__commonJS)({
8545
8247
  var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8546
8248
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/file.js"(exports2, module2) {
8547
8249
  "use strict";
8548
- var fs8 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
8549
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
8250
+ var fs10 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
8251
+ var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
8550
8252
  var flatten = require_flatten();
8551
8253
  var difference = require_difference();
8552
8254
  var union = require_union();
8553
8255
  var isPlainObject = require_isPlainObject();
8554
- var glob = (0, import_chunk_V6Z564LJ.require_glob)();
8256
+ var glob = (0, import_chunk_C2WD2XUT.require_glob)();
8555
8257
  var file = module2.exports = {};
8556
8258
  var pathSeparatorRe = /[\/\\]/g;
8557
8259
  var processPatterns = function(patterns, fn) {
@@ -8571,8 +8273,8 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8571
8273
  return result;
8572
8274
  };
8573
8275
  file.exists = function() {
8574
- var filepath = path8.join.apply(path8, arguments);
8575
- return fs8.existsSync(filepath);
8276
+ var filepath = path10.join.apply(path10, arguments);
8277
+ return fs10.existsSync(filepath);
8576
8278
  };
8577
8279
  file.expand = function(...args) {
8578
8280
  var options2 = isPlainObject(args[0]) ? args.shift() : {};
@@ -8585,12 +8287,12 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8585
8287
  });
8586
8288
  if (options2.filter) {
8587
8289
  matches = matches.filter(function(filepath) {
8588
- filepath = path8.join(options2.cwd || "", filepath);
8290
+ filepath = path10.join(options2.cwd || "", filepath);
8589
8291
  try {
8590
8292
  if (typeof options2.filter === "function") {
8591
8293
  return options2.filter(filepath);
8592
8294
  } else {
8593
- return fs8.statSync(filepath)[options2.filter]();
8295
+ return fs10.statSync(filepath)[options2.filter]();
8594
8296
  }
8595
8297
  } catch (e) {
8596
8298
  return false;
@@ -8602,7 +8304,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8602
8304
  file.expandMapping = function(patterns, destBase, options2) {
8603
8305
  options2 = Object.assign({
8604
8306
  rename: function(destBase2, destPath) {
8605
- return path8.join(destBase2 || "", destPath);
8307
+ return path10.join(destBase2 || "", destPath);
8606
8308
  }
8607
8309
  }, options2);
8608
8310
  var files = [];
@@ -8610,14 +8312,14 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8610
8312
  file.expand(options2, patterns).forEach(function(src) {
8611
8313
  var destPath = src;
8612
8314
  if (options2.flatten) {
8613
- destPath = path8.basename(destPath);
8315
+ destPath = path10.basename(destPath);
8614
8316
  }
8615
8317
  if (options2.ext) {
8616
8318
  destPath = destPath.replace(/(\.[^\/]*)?$/, options2.ext);
8617
8319
  }
8618
8320
  var dest = options2.rename(destBase, destPath, options2);
8619
8321
  if (options2.cwd) {
8620
- src = path8.join(options2.cwd, src);
8322
+ src = path10.join(options2.cwd, src);
8621
8323
  }
8622
8324
  dest = dest.replace(pathSeparatorRe, "/");
8623
8325
  src = src.replace(pathSeparatorRe, "/");
@@ -8697,8 +8399,8 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
8697
8399
  var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
8698
8400
  "../../node_modules/.pnpm/archiver-utils@4.0.1/node_modules/archiver-utils/index.js"(exports2, module2) {
8699
8401
  "use strict";
8700
- var fs8 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
8701
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
8402
+ var fs10 = (0, import_chunk_GXDYIY4M.require_graceful_fs)();
8403
+ var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
8702
8404
  var lazystream = require_lazystream();
8703
8405
  var normalizePath = require_normalize_path();
8704
8406
  var defaults = require_defaults();
@@ -8745,7 +8447,7 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
8745
8447
  };
8746
8448
  utils.lazyReadStream = function(filepath) {
8747
8449
  return new lazystream.Readable(function() {
8748
- return fs8.createReadStream(filepath);
8450
+ return fs10.createReadStream(filepath);
8749
8451
  });
8750
8452
  };
8751
8453
  utils.normalizeInputSource = function(source) {
@@ -8773,7 +8475,7 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
8773
8475
  callback = base;
8774
8476
  base = dirpath;
8775
8477
  }
8776
- fs8.readdir(dirpath, function(err, list) {
8478
+ fs10.readdir(dirpath, function(err, list) {
8777
8479
  var i = 0;
8778
8480
  var file;
8779
8481
  var filepath;
@@ -8785,11 +8487,11 @@ var require_archiver_utils = (0, import_chunk_WWAWV7DQ.__commonJS)({
8785
8487
  if (!file) {
8786
8488
  return callback(null, results);
8787
8489
  }
8788
- filepath = path8.join(dirpath, file);
8789
- fs8.stat(filepath, function(err2, stats) {
8490
+ filepath = path10.join(dirpath, file);
8491
+ fs10.stat(filepath, function(err2, stats) {
8790
8492
  results.push({
8791
8493
  path: filepath,
8792
- relative: path8.relative(base, filepath).replace(/\\/g, "/"),
8494
+ relative: path10.relative(base, filepath).replace(/\\/g, "/"),
8793
8495
  stats
8794
8496
  });
8795
8497
  if (stats && stats.isDirectory()) {
@@ -8846,10 +8548,10 @@ var require_error = (0, import_chunk_WWAWV7DQ.__commonJS)({
8846
8548
  var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
8847
8549
  "../../node_modules/.pnpm/archiver@6.0.2/node_modules/archiver/lib/core.js"(exports2, module2) {
8848
8550
  "use strict";
8849
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
8551
+ var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
8850
8552
  var glob = require_readdir_glob();
8851
8553
  var async = (init_async(), (0, import_chunk_WWAWV7DQ.__toCommonJS)(async_exports));
8852
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
8554
+ var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
8853
8555
  var util = require_archiver_utils();
8854
8556
  var inherits = (0, import_chunk_WWAWV7DQ.__require)("util").inherits;
8855
8557
  var ArchiverError = require_error();
@@ -8910,7 +8612,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
8910
8612
  data.sourcePath = filepath;
8911
8613
  task.data = data;
8912
8614
  this._entriesCount++;
8913
- if (data.stats && data.stats instanceof fs8.Stats) {
8615
+ if (data.stats && data.stats instanceof fs10.Stats) {
8914
8616
  task = this._updateQueueTaskWithStats(task, data.stats);
8915
8617
  if (task) {
8916
8618
  if (data.stats.size) {
@@ -9081,7 +8783,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
9081
8783
  callback();
9082
8784
  return;
9083
8785
  }
9084
- fs8.lstat(task.filepath, function(err, stats) {
8786
+ fs10.lstat(task.filepath, function(err, stats) {
9085
8787
  if (this._state.aborted) {
9086
8788
  setImmediate(callback);
9087
8789
  return;
@@ -9124,10 +8826,10 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
9124
8826
  task.data.sourceType = "buffer";
9125
8827
  task.source = Buffer.concat([]);
9126
8828
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
9127
- var linkPath = fs8.readlinkSync(task.filepath);
9128
- var dirName = path8.dirname(task.filepath);
8829
+ var linkPath = fs10.readlinkSync(task.filepath);
8830
+ var dirName = path10.dirname(task.filepath);
9129
8831
  task.data.type = "symlink";
9130
- task.data.linkname = path8.relative(dirName, path8.resolve(dirName, linkPath));
8832
+ task.data.linkname = path10.relative(dirName, path10.resolve(dirName, linkPath));
9131
8833
  task.data.sourceType = "buffer";
9132
8834
  task.source = Buffer.concat([]);
9133
8835
  } else {
@@ -10245,22 +9947,22 @@ var require_zip_archive_output_stream = (0, import_chunk_WWAWV7DQ.__commonJS)({
10245
9947
  };
10246
9948
  ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {
10247
9949
  var deflate = ae.getMethod() === constants2.METHOD_DEFLATED;
10248
- var process2 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
9950
+ var process3 = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();
10249
9951
  var error = null;
10250
9952
  function handleStuff() {
10251
- var digest = process2.digest().readUInt32BE(0);
9953
+ var digest = process3.digest().readUInt32BE(0);
10252
9954
  ae.setCrc(digest);
10253
- ae.setSize(process2.size());
10254
- ae.setCompressedSize(process2.size(true));
9955
+ ae.setSize(process3.size());
9956
+ ae.setCompressedSize(process3.size(true));
10255
9957
  this._afterAppend(ae);
10256
9958
  callback(error, ae);
10257
9959
  }
10258
- process2.once("end", handleStuff.bind(this));
10259
- process2.once("error", function(err) {
9960
+ process3.once("end", handleStuff.bind(this));
9961
+ process3.once("error", function(err) {
10260
9962
  error = err;
10261
9963
  });
10262
- process2.pipe(this, { end: false });
10263
- return process2;
9964
+ process3.pipe(this, { end: false });
9965
+ return process3;
10264
9966
  };
10265
9967
  ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {
10266
9968
  var records = this._entries.length;
@@ -14401,11 +14103,11 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
14401
14103
  var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14402
14104
  "../../node_modules/.pnpm/tmp@0.2.3/node_modules/tmp/lib/tmp.js"(exports2, module2) {
14403
14105
  "use strict";
14404
- var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
14106
+ var fs10 = (0, import_chunk_WWAWV7DQ.__require)("fs");
14405
14107
  var os3 = (0, import_chunk_WWAWV7DQ.__require)("os");
14406
- var path8 = (0, import_chunk_WWAWV7DQ.__require)("path");
14108
+ var path10 = (0, import_chunk_WWAWV7DQ.__require)("path");
14407
14109
  var crypto3 = (0, import_chunk_WWAWV7DQ.__require)("crypto");
14408
- var _c = { fs: fs8.constants, os: os3.constants };
14110
+ var _c = { fs: fs10.constants, os: os3.constants };
14409
14111
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
14410
14112
  var TEMPLATE_PATTERN = /XXXXXX/;
14411
14113
  var DEFAULT_TRIES = 3;
@@ -14417,13 +14119,13 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14417
14119
  var FILE_MODE = 384;
14418
14120
  var EXIT = "exit";
14419
14121
  var _removeObjects = [];
14420
- var FN_RMDIR_SYNC = fs8.rmdirSync.bind(fs8);
14122
+ var FN_RMDIR_SYNC = fs10.rmdirSync.bind(fs10);
14421
14123
  var _gracefulCleanup = false;
14422
14124
  function rimraf(dirPath, callback) {
14423
- return fs8.rm(dirPath, { recursive: true }, callback);
14125
+ return fs10.rm(dirPath, { recursive: true }, callback);
14424
14126
  }
14425
14127
  function FN_RIMRAF_SYNC(dirPath) {
14426
- return fs8.rmSync(dirPath, { recursive: true });
14128
+ return fs10.rmSync(dirPath, { recursive: true });
14427
14129
  }
14428
14130
  function tmpName(options2, callback) {
14429
14131
  const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
@@ -14436,7 +14138,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14436
14138
  (function _getUniqueName() {
14437
14139
  try {
14438
14140
  const name = _generateTmpName(opts);
14439
- fs8.stat(name, function(err) {
14141
+ fs10.stat(name, function(err) {
14440
14142
  if (!err) {
14441
14143
  if (tries-- > 0) return _getUniqueName();
14442
14144
  return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
@@ -14455,7 +14157,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14455
14157
  do {
14456
14158
  const name = _generateTmpName(opts);
14457
14159
  try {
14458
- fs8.statSync(name);
14160
+ fs10.statSync(name);
14459
14161
  } catch (e) {
14460
14162
  return name;
14461
14163
  }
@@ -14466,10 +14168,10 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14466
14168
  const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
14467
14169
  tmpName(opts, function _tmpNameCreated(err, name) {
14468
14170
  if (err) return cb(err);
14469
- fs8.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
14171
+ fs10.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
14470
14172
  if (err2) return cb(err2);
14471
14173
  if (opts.discardDescriptor) {
14472
- return fs8.close(fd, function _discardCallback(possibleErr) {
14174
+ return fs10.close(fd, function _discardCallback(possibleErr) {
14473
14175
  return cb(possibleErr, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts, false));
14474
14176
  });
14475
14177
  } else {
@@ -14483,9 +14185,9 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14483
14185
  const args = _parseArguments(options2), opts = args[0];
14484
14186
  const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
14485
14187
  const name = tmpNameSync(opts);
14486
- var fd = fs8.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
14188
+ var fd = fs10.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
14487
14189
  if (opts.discardDescriptor) {
14488
- fs8.closeSync(fd);
14190
+ fs10.closeSync(fd);
14489
14191
  fd = void 0;
14490
14192
  }
14491
14193
  return {
@@ -14498,7 +14200,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14498
14200
  const args = _parseArguments(options2, callback), opts = args[0], cb = args[1];
14499
14201
  tmpName(opts, function _tmpNameCreated(err, name) {
14500
14202
  if (err) return cb(err);
14501
- fs8.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
14203
+ fs10.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
14502
14204
  if (err2) return cb(err2);
14503
14205
  cb(null, name, _prepareTmpDirRemoveCallback(name, opts, false));
14504
14206
  });
@@ -14507,7 +14209,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14507
14209
  function dirSync(options2) {
14508
14210
  const args = _parseArguments(options2), opts = args[0];
14509
14211
  const name = tmpNameSync(opts);
14510
- fs8.mkdirSync(name, opts.mode || DIR_MODE);
14212
+ fs10.mkdirSync(name, opts.mode || DIR_MODE);
14511
14213
  return {
14512
14214
  name,
14513
14215
  removeCallback: _prepareTmpDirRemoveCallback(name, opts, true)
@@ -14521,20 +14223,20 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14521
14223
  next();
14522
14224
  };
14523
14225
  if (0 <= fdPath[0])
14524
- fs8.close(fdPath[0], function() {
14525
- fs8.unlink(fdPath[1], _handler);
14226
+ fs10.close(fdPath[0], function() {
14227
+ fs10.unlink(fdPath[1], _handler);
14526
14228
  });
14527
- else fs8.unlink(fdPath[1], _handler);
14229
+ else fs10.unlink(fdPath[1], _handler);
14528
14230
  }
14529
14231
  function _removeFileSync(fdPath) {
14530
14232
  let rethrownException = null;
14531
14233
  try {
14532
- if (0 <= fdPath[0]) fs8.closeSync(fdPath[0]);
14234
+ if (0 <= fdPath[0]) fs10.closeSync(fdPath[0]);
14533
14235
  } catch (e) {
14534
14236
  if (!_isEBADF(e) && !_isENOENT(e)) throw e;
14535
14237
  } finally {
14536
14238
  try {
14537
- fs8.unlinkSync(fdPath[1]);
14239
+ fs10.unlinkSync(fdPath[1]);
14538
14240
  } catch (e) {
14539
14241
  if (!_isENOENT(e)) rethrownException = e;
14540
14242
  }
@@ -14550,7 +14252,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14550
14252
  return sync ? removeCallbackSync : removeCallback;
14551
14253
  }
14552
14254
  function _prepareTmpDirRemoveCallback(name, opts, sync) {
14553
- const removeFunction = opts.unsafeCleanup ? rimraf : fs8.rmdir.bind(fs8);
14255
+ const removeFunction = opts.unsafeCleanup ? rimraf : fs10.rmdir.bind(fs10);
14554
14256
  const removeFunctionSync = opts.unsafeCleanup ? FN_RIMRAF_SYNC : FN_RMDIR_SYNC;
14555
14257
  const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name, sync);
14556
14258
  const removeCallback = _prepareRemoveCallback(removeFunction, name, sync, removeCallbackSync);
@@ -14617,9 +14319,9 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14617
14319
  function _generateTmpName(opts) {
14618
14320
  const tmpDir = opts.tmpdir;
14619
14321
  if (!_isUndefined(opts.name))
14620
- return path8.join(tmpDir, opts.dir, opts.name);
14322
+ return path10.join(tmpDir, opts.dir, opts.name);
14621
14323
  if (!_isUndefined(opts.template))
14622
- return path8.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
14324
+ return path10.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
14623
14325
  const name = [
14624
14326
  opts.prefix ? opts.prefix : "tmp",
14625
14327
  "-",
@@ -14628,7 +14330,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14628
14330
  _randomChars(12),
14629
14331
  opts.postfix ? "-" + opts.postfix : ""
14630
14332
  ].join("");
14631
- return path8.join(tmpDir, opts.dir, name);
14333
+ return path10.join(tmpDir, opts.dir, name);
14632
14334
  }
14633
14335
  function _assertAndSanitizeOptions(options2) {
14634
14336
  options2.tmpdir = _getTmpDir(options2);
@@ -14649,29 +14351,29 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14649
14351
  options2.detachDescriptor = !!options2.detachDescriptor;
14650
14352
  options2.discardDescriptor = !!options2.discardDescriptor;
14651
14353
  options2.unsafeCleanup = !!options2.unsafeCleanup;
14652
- options2.dir = _isUndefined(options2.dir) ? "" : path8.relative(tmpDir, _resolvePath(options2.dir, tmpDir));
14653
- options2.template = _isUndefined(options2.template) ? void 0 : path8.relative(tmpDir, _resolvePath(options2.template, tmpDir));
14654
- options2.template = _isBlank(options2.template) ? void 0 : path8.relative(options2.dir, options2.template);
14354
+ options2.dir = _isUndefined(options2.dir) ? "" : path10.relative(tmpDir, _resolvePath(options2.dir, tmpDir));
14355
+ options2.template = _isUndefined(options2.template) ? void 0 : path10.relative(tmpDir, _resolvePath(options2.template, tmpDir));
14356
+ options2.template = _isBlank(options2.template) ? void 0 : path10.relative(options2.dir, options2.template);
14655
14357
  options2.name = _isUndefined(options2.name) ? void 0 : options2.name;
14656
14358
  options2.prefix = _isUndefined(options2.prefix) ? "" : options2.prefix;
14657
14359
  options2.postfix = _isUndefined(options2.postfix) ? "" : options2.postfix;
14658
14360
  }
14659
14361
  function _resolvePath(name, tmpDir) {
14660
14362
  if (name.startsWith(tmpDir)) {
14661
- return path8.resolve(name);
14363
+ return path10.resolve(name);
14662
14364
  } else {
14663
- return path8.resolve(path8.join(tmpDir, name));
14365
+ return path10.resolve(path10.join(tmpDir, name));
14664
14366
  }
14665
14367
  }
14666
14368
  function _assertIsRelative(name, option, tmpDir) {
14667
14369
  if (option === "name") {
14668
- if (path8.isAbsolute(name))
14370
+ if (path10.isAbsolute(name))
14669
14371
  throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
14670
- let basename = path8.basename(name);
14372
+ let basename = path10.basename(name);
14671
14373
  if (basename === ".." || basename === "." || basename !== name)
14672
14374
  throw new Error(`${option} option must not contain a path, found "${name}".`);
14673
14375
  } else {
14674
- if (path8.isAbsolute(name) && !name.startsWith(tmpDir)) {
14376
+ if (path10.isAbsolute(name) && !name.startsWith(tmpDir)) {
14675
14377
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
14676
14378
  }
14677
14379
  let resolvedPath = _resolvePath(name, tmpDir);
@@ -14692,7 +14394,7 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14692
14394
  _gracefulCleanup = true;
14693
14395
  }
14694
14396
  function _getTmpDir(options2) {
14695
- return path8.resolve(options2 && options2.tmpdir || os3.tmpdir());
14397
+ return path10.resolve(options2 && options2.tmpdir || os3.tmpdir());
14696
14398
  }
14697
14399
  process.addListener(EXIT, _garbageCollector);
14698
14400
  Object.defineProperty(module2.exports, "tmpdir", {
@@ -14711,7 +14413,86 @@ var require_tmp = (0, import_chunk_WWAWV7DQ.__commonJS)({
14711
14413
  module2.exports.setGracefulCleanup = setGracefulCleanup;
14712
14414
  }
14713
14415
  });
14714
- var import_find_up = (0, import_chunk_WWAWV7DQ.__toESM)(require_find_up());
14416
+ var typeMappings = {
14417
+ directory: "isDirectory",
14418
+ file: "isFile"
14419
+ };
14420
+ function checkType(type) {
14421
+ if (Object.hasOwnProperty.call(typeMappings, type)) {
14422
+ return;
14423
+ }
14424
+ throw new Error(`Invalid type specified: ${type}`);
14425
+ }
14426
+ var matchType = (type, stat2) => stat2[typeMappings[type]]();
14427
+ var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
14428
+ function locatePathSync(paths2, {
14429
+ cwd = import_node_process.default.cwd(),
14430
+ type = "file",
14431
+ allowSymlinks = true
14432
+ } = {}) {
14433
+ checkType(type);
14434
+ cwd = toPath2(cwd);
14435
+ const statFunction = allowSymlinks ? import_node_fs.default.statSync : import_node_fs.default.lstatSync;
14436
+ for (const path_ of paths2) {
14437
+ try {
14438
+ const stat2 = statFunction(import_node_path2.default.resolve(cwd, path_), {
14439
+ throwIfNoEntry: false
14440
+ });
14441
+ if (!stat2) {
14442
+ continue;
14443
+ }
14444
+ if (matchType(type, stat2)) {
14445
+ return path_;
14446
+ }
14447
+ } catch {
14448
+ }
14449
+ }
14450
+ }
14451
+ function pathExistsSync(path10) {
14452
+ try {
14453
+ import_node_fs2.default.accessSync(path10);
14454
+ return true;
14455
+ } catch {
14456
+ return false;
14457
+ }
14458
+ }
14459
+ var findUpStop = Symbol("findUpStop");
14460
+ function findUpMultipleSync(name, options2 = {}) {
14461
+ let directory = import_node_path.default.resolve((0, import_chunk_C2WD2XUT.toPath)(options2.cwd) ?? "");
14462
+ const { root } = import_node_path.default.parse(directory);
14463
+ const stopAt = import_node_path.default.resolve(directory, (0, import_chunk_C2WD2XUT.toPath)(options2.stopAt) ?? root);
14464
+ const limit = options2.limit ?? Number.POSITIVE_INFINITY;
14465
+ const paths2 = [name].flat();
14466
+ const runMatcher = (locateOptions) => {
14467
+ if (typeof name !== "function") {
14468
+ return locatePathSync(paths2, locateOptions);
14469
+ }
14470
+ const foundPath = name(locateOptions.cwd);
14471
+ if (typeof foundPath === "string") {
14472
+ return locatePathSync([foundPath], locateOptions);
14473
+ }
14474
+ return foundPath;
14475
+ };
14476
+ const matches = [];
14477
+ while (true) {
14478
+ const foundPath = runMatcher({ ...options2, cwd: directory });
14479
+ if (foundPath === findUpStop) {
14480
+ break;
14481
+ }
14482
+ if (foundPath) {
14483
+ matches.push(import_node_path.default.resolve(directory, foundPath));
14484
+ }
14485
+ if (directory === stopAt || matches.length >= limit) {
14486
+ break;
14487
+ }
14488
+ directory = import_node_path.default.dirname(directory);
14489
+ }
14490
+ return matches;
14491
+ }
14492
+ function findUpSync(name, options2 = {}) {
14493
+ const matches = findUpMultipleSync(name, { ...options2, limit: 1 });
14494
+ return matches[0];
14495
+ }
14715
14496
  var readFile = (0, import_util.promisify)(import_fs3.default.readFile);
14716
14497
  var stat = (0, import_util.promisify)(import_fs3.default.stat);
14717
14498
  var debug2 = (0, import_debug3.Debug)("prisma:getSchema");
@@ -14750,7 +14531,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14750
14531
  }
14751
14532
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14752
14533
  debug2("Loading config");
14753
- const config2 = await (0, import_chunk_M3ZLCR2D.getConfig)({
14534
+ const config2 = await (0, import_chunk_UH2VUWEV.getConfig)({
14754
14535
  datamodel: files,
14755
14536
  ignoreEnvVarErrors: true
14756
14537
  });
@@ -14841,7 +14622,7 @@ function renderDefaultLookupError(error, cwd) {
14841
14622
  return parts.join("\n");
14842
14623
  }
14843
14624
  async function getPrismaConfigFromPackageJson(cwd) {
14844
- const pkgJson = await (0, import_chunk_V6Z564LJ.readPackageUp)({ cwd, normalize: false });
14625
+ const pkgJson = await (0, import_chunk_C2WD2XUT.readPackageUp)({ cwd, normalize: false });
14845
14626
  const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
14846
14627
  if (!pkgJson) {
14847
14628
  return null;
@@ -15014,9 +14795,9 @@ async function readSchemaPathFromPkgJson() {
15014
14795
  }
15015
14796
  }
15016
14797
  function getProjectRootEnvPath(opts) {
15017
- const pkgJsonPath = import_find_up.default.sync((dir2) => {
14798
+ const pkgJsonPath = findUpSync((dir2) => {
15018
14799
  const pkgPath = import_path.default.join(dir2, "package.json");
15019
- if (import_find_up.default.sync.exists(pkgPath)) {
14800
+ if (pathExistsSync(pkgPath)) {
15020
14801
  try {
15021
14802
  const pkg = JSON.parse(import_fs2.default.readFileSync(pkgPath, "utf8"));
15022
14803
  if (pkg["name"] !== ".prisma/client") {
@@ -15076,8 +14857,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
15076
14857
  if (argName.includes("schema")) {
15077
14858
  await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
15078
14859
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15079
- const config2 = await (0, import_chunk_M3ZLCR2D.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15080
- const url = (0, import_chunk_M3ZLCR2D.resolveUrl)((0, import_chunk_M3ZLCR2D.getEffectiveUrl)(config2.datasources[0]));
14860
+ const config2 = await (0, import_chunk_UH2VUWEV.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14861
+ const url = (0, import_chunk_UH2VUWEV.resolveUrl)((0, import_chunk_UH2VUWEV.getEffectiveUrl)(config2.datasources[0]));
15081
14862
  if (url?.startsWith("prisma://")) {
15082
14863
  return forbiddenCmdWithDataProxyFlagMessage(command);
15083
14864
  }
@@ -15099,7 +14880,7 @@ function getCLIPathHash() {
15099
14880
  const cliPath = process.argv[1];
15100
14881
  return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
15101
14882
  }
15102
- var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_V6Z564LJ.require_p_map)());
14883
+ var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_C2WD2XUT.require_p_map)());
15103
14884
  var debug4 = (0, import_debug6.default)("prisma:generator");
15104
14885
  async function checkTypeScriptVersion() {
15105
14886
  const minVersion = "4.1.0";
@@ -15250,7 +15031,7 @@ async function getGenerators(options) {
15250
15031
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15251
15032
  }
15252
15033
  }
15253
- const config = await (0, import_chunk_M3ZLCR2D.getConfig)({
15034
+ const config = await (0, import_chunk_UH2VUWEV.getConfig)({
15254
15035
  datamodel: schemas,
15255
15036
  datamodelPath: schemaPath,
15256
15037
  prismaPath,
@@ -15261,7 +15042,7 @@ async function getGenerators(options) {
15261
15042
  }
15262
15043
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15263
15044
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15264
- const dmmf = await (0, import_chunk_PCHJHBBX.getDMMF)({
15045
+ const dmmf = await (0, import_chunk_MNRAMMNG.getDMMF)({
15265
15046
  datamodel: schemas,
15266
15047
  datamodelPath: schemaPath,
15267
15048
  prismaPath,
@@ -15322,7 +15103,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15322
15103
  fromEnvVar: "null"
15323
15104
  };
15324
15105
  }
15325
- const datamodel = (0, import_chunk_COBYMDJU.mergeSchemas)({ schemas });
15106
+ const datamodel = (0, import_chunk_CHH55V3R.mergeSchemas)({ schemas });
15326
15107
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15327
15108
  const options2 = {
15328
15109
  datamodel,
@@ -15405,7 +15186,7 @@ generator gen {
15405
15186
  debug6({ generatorBinaryPaths });
15406
15187
  generator.setBinaryPaths(generatorBinaryPaths);
15407
15188
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15408
- const customDmmf = await (0, import_chunk_PCHJHBBX.getDMMF)({
15189
+ const customDmmf = await (0, import_chunk_MNRAMMNG.getDMMF)({
15409
15190
  datamodel: schemas,
15410
15191
  datamodelPath: schemaPath,
15411
15192
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15589,7 +15370,7 @@ function concatSchemaForReport(schemaFiles) {
15589
15370
  if (!schemaFiles) {
15590
15371
  return void 0;
15591
15372
  }
15592
- return schemaFiles.map(([path8, content]) => `// ${path8}
15373
+ return schemaFiles.map(([path10, content]) => `// ${path10}
15593
15374
  ${content}`).join("\n");
15594
15375
  }
15595
15376
  function getCommand() {
@@ -15703,7 +15484,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15703
15484
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15704
15485
  handleFormatPanic(
15705
15486
  () => {
15706
- import_chunk_PQQXGMS7.prismaSchemaWasm.debug_panic();
15487
+ import_chunk_VWD3KAEH.prismaSchemaWasm.debug_panic();
15707
15488
  },
15708
15489
  { schemas: schemas2 }
15709
15490
  );
@@ -15723,12 +15504,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15723
15504
  () => {
15724
15505
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15725
15506
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15726
- const lintDiagnostics2 = (0, import_chunk_F2PUWTME.lintSchema)({ schemas: formattedMultipleSchemas2 });
15507
+ const lintDiagnostics2 = (0, import_chunk_N2QQ3S77.lintSchema)({ schemas: formattedMultipleSchemas2 });
15727
15508
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15728
15509
  },
15729
15510
  { schemas: schemas2 }
15730
15511
  );
15731
- const lintWarnings = (0, import_chunk_F2PUWTME.getLintWarningsAsText)(lintDiagnostics);
15512
+ const lintWarnings = (0, import_chunk_N2QQ3S77.getLintWarningsAsText)(lintDiagnostics);
15732
15513
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15733
15514
  console.warn(lintWarnings);
15734
15515
  }
@@ -15758,7 +15539,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15758
15539
  }
15759
15540
  }
15760
15541
  function formatWasm(schema, documentFormattingParams) {
15761
- const formattedSchema = import_chunk_PQQXGMS7.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15542
+ const formattedSchema = import_chunk_VWD3KAEH.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15762
15543
  return formattedSchema;
15763
15544
  }
15764
15545
  /*! Bundled license information: