@prisma/client 7.7.0-dev.1 → 7.7.0-dev.2

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.
@@ -33,6 +33,395 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
+ // ../../node_modules/.pnpm/@prisma+prisma-schema-wasm@7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711/node_modules/@prisma/prisma-schema-wasm/src/prisma_schema_build.js
37
+ var require_prisma_schema_build = __commonJS({
38
+ "../../node_modules/.pnpm/@prisma+prisma-schema-wasm@7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711/node_modules/@prisma/prisma-schema-wasm/src/prisma_schema_build.js"(exports2, module2) {
39
+ "use strict";
40
+ var imports = {};
41
+ imports["__wbindgen_placeholder__"] = module2.exports;
42
+ var cachedUint8ArrayMemory0 = null;
43
+ function getUint8ArrayMemory0() {
44
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
45
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
46
+ }
47
+ return cachedUint8ArrayMemory0;
48
+ }
49
+ var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
50
+ cachedTextDecoder.decode();
51
+ function decodeText(ptr, len) {
52
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
53
+ }
54
+ function getStringFromWasm0(ptr, len) {
55
+ ptr = ptr >>> 0;
56
+ return decodeText(ptr, len);
57
+ }
58
+ function takeFromExternrefTable0(idx) {
59
+ const value = wasm.__wbindgen_externrefs.get(idx);
60
+ wasm.__externref_table_dealloc(idx);
61
+ return value;
62
+ }
63
+ function getArrayU8FromWasm0(ptr, len) {
64
+ ptr = ptr >>> 0;
65
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
66
+ }
67
+ var WASM_VECTOR_LEN = 0;
68
+ var cachedTextEncoder = new TextEncoder();
69
+ if (!("encodeInto" in cachedTextEncoder)) {
70
+ cachedTextEncoder.encodeInto = function(arg, view) {
71
+ const buf = cachedTextEncoder.encode(arg);
72
+ view.set(buf);
73
+ return {
74
+ read: arg.length,
75
+ written: buf.length
76
+ };
77
+ };
78
+ }
79
+ function passStringToWasm0(arg, malloc, realloc) {
80
+ if (realloc === void 0) {
81
+ const buf = cachedTextEncoder.encode(arg);
82
+ const ptr2 = malloc(buf.length, 1) >>> 0;
83
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
84
+ WASM_VECTOR_LEN = buf.length;
85
+ return ptr2;
86
+ }
87
+ let len = arg.length;
88
+ let ptr = malloc(len, 1) >>> 0;
89
+ const mem = getUint8ArrayMemory0();
90
+ let offset = 0;
91
+ for (; offset < len; offset++) {
92
+ const code = arg.charCodeAt(offset);
93
+ if (code > 127) break;
94
+ mem[ptr + offset] = code;
95
+ }
96
+ if (offset !== len) {
97
+ if (offset !== 0) {
98
+ arg = arg.slice(offset);
99
+ }
100
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
101
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
102
+ const ret = cachedTextEncoder.encodeInto(arg, view);
103
+ offset += ret.written;
104
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
105
+ }
106
+ WASM_VECTOR_LEN = offset;
107
+ return ptr;
108
+ }
109
+ exports2.merge_schemas = function(input) {
110
+ let deferred3_0;
111
+ let deferred3_1;
112
+ try {
113
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
114
+ const len0 = WASM_VECTOR_LEN;
115
+ const ret = wasm.merge_schemas(ptr0, len0);
116
+ var ptr2 = ret[0];
117
+ var len2 = ret[1];
118
+ if (ret[3]) {
119
+ ptr2 = 0;
120
+ len2 = 0;
121
+ throw takeFromExternrefTable0(ret[2]);
122
+ }
123
+ deferred3_0 = ptr2;
124
+ deferred3_1 = len2;
125
+ return getStringFromWasm0(ptr2, len2);
126
+ } finally {
127
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
128
+ }
129
+ };
130
+ exports2.native_types = function(input) {
131
+ let deferred2_0;
132
+ let deferred2_1;
133
+ try {
134
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
135
+ const len0 = WASM_VECTOR_LEN;
136
+ const ret = wasm.native_types(ptr0, len0);
137
+ deferred2_0 = ret[0];
138
+ deferred2_1 = ret[1];
139
+ return getStringFromWasm0(ret[0], ret[1]);
140
+ } finally {
141
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
142
+ }
143
+ };
144
+ exports2.lint = function(input) {
145
+ let deferred2_0;
146
+ let deferred2_1;
147
+ try {
148
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
149
+ const len0 = WASM_VECTOR_LEN;
150
+ const ret = wasm.lint(ptr0, len0);
151
+ deferred2_0 = ret[0];
152
+ deferred2_1 = ret[1];
153
+ return getStringFromWasm0(ret[0], ret[1]);
154
+ } finally {
155
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
156
+ }
157
+ };
158
+ exports2.get_dmmf = function(params) {
159
+ let deferred3_0;
160
+ let deferred3_1;
161
+ try {
162
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
163
+ const len0 = WASM_VECTOR_LEN;
164
+ const ret = wasm.get_dmmf(ptr0, len0);
165
+ var ptr2 = ret[0];
166
+ var len2 = ret[1];
167
+ if (ret[3]) {
168
+ ptr2 = 0;
169
+ len2 = 0;
170
+ throw takeFromExternrefTable0(ret[2]);
171
+ }
172
+ deferred3_0 = ptr2;
173
+ deferred3_1 = len2;
174
+ return getStringFromWasm0(ptr2, len2);
175
+ } finally {
176
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
177
+ }
178
+ };
179
+ exports2.references = function(schema, params) {
180
+ let deferred3_0;
181
+ let deferred3_1;
182
+ try {
183
+ const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
184
+ const len0 = WASM_VECTOR_LEN;
185
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
186
+ const len1 = WASM_VECTOR_LEN;
187
+ const ret = wasm.references(ptr0, len0, ptr1, len1);
188
+ deferred3_0 = ret[0];
189
+ deferred3_1 = ret[1];
190
+ return getStringFromWasm0(ret[0], ret[1]);
191
+ } finally {
192
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
193
+ }
194
+ };
195
+ exports2.format = function(schema, params) {
196
+ let deferred3_0;
197
+ let deferred3_1;
198
+ try {
199
+ const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
200
+ const len0 = WASM_VECTOR_LEN;
201
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
202
+ const len1 = WASM_VECTOR_LEN;
203
+ const ret = wasm.format(ptr0, len0, ptr1, len1);
204
+ deferred3_0 = ret[0];
205
+ deferred3_1 = ret[1];
206
+ return getStringFromWasm0(ret[0], ret[1]);
207
+ } finally {
208
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
209
+ }
210
+ };
211
+ exports2.validate = function(params) {
212
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
213
+ const len0 = WASM_VECTOR_LEN;
214
+ const ret = wasm.validate(ptr0, len0);
215
+ if (ret[1]) {
216
+ throw takeFromExternrefTable0(ret[0]);
217
+ }
218
+ };
219
+ exports2.debug_panic = function() {
220
+ wasm.debug_panic();
221
+ };
222
+ exports2.text_document_completion = function(schema_files, params) {
223
+ let deferred3_0;
224
+ let deferred3_1;
225
+ try {
226
+ const ptr0 = passStringToWasm0(schema_files, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
227
+ const len0 = WASM_VECTOR_LEN;
228
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
229
+ const len1 = WASM_VECTOR_LEN;
230
+ const ret = wasm.text_document_completion(ptr0, len0, ptr1, len1);
231
+ deferred3_0 = ret[0];
232
+ deferred3_1 = ret[1];
233
+ return getStringFromWasm0(ret[0], ret[1]);
234
+ } finally {
235
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
236
+ }
237
+ };
238
+ exports2.referential_actions = function(input) {
239
+ let deferred2_0;
240
+ let deferred2_1;
241
+ try {
242
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
243
+ const len0 = WASM_VECTOR_LEN;
244
+ const ret = wasm.referential_actions(ptr0, len0);
245
+ deferred2_0 = ret[0];
246
+ deferred2_1 = ret[1];
247
+ return getStringFromWasm0(ret[0], ret[1]);
248
+ } finally {
249
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
250
+ }
251
+ };
252
+ exports2.get_dmmf_buffered = function(params) {
253
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
254
+ const len0 = WASM_VECTOR_LEN;
255
+ const ret = wasm.get_dmmf_buffered(ptr0, len0);
256
+ if (ret[2]) {
257
+ throw takeFromExternrefTable0(ret[1]);
258
+ }
259
+ return DmmfBuffer.__wrap(ret[0]);
260
+ };
261
+ exports2.get_config = function(params) {
262
+ let deferred2_0;
263
+ let deferred2_1;
264
+ try {
265
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
266
+ const len0 = WASM_VECTOR_LEN;
267
+ const ret = wasm.get_config(ptr0, len0);
268
+ deferred2_0 = ret[0];
269
+ deferred2_1 = ret[1];
270
+ return getStringFromWasm0(ret[0], ret[1]);
271
+ } finally {
272
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
273
+ }
274
+ };
275
+ exports2.hover = function(schema_files, params) {
276
+ let deferred3_0;
277
+ let deferred3_1;
278
+ try {
279
+ const ptr0 = passStringToWasm0(schema_files, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
280
+ const len0 = WASM_VECTOR_LEN;
281
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
+ const len1 = WASM_VECTOR_LEN;
283
+ const ret = wasm.hover(ptr0, len0, ptr1, len1);
284
+ deferred3_0 = ret[0];
285
+ deferred3_1 = ret[1];
286
+ return getStringFromWasm0(ret[0], ret[1]);
287
+ } finally {
288
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
289
+ }
290
+ };
291
+ exports2.get_datamodel = function(params) {
292
+ let deferred3_0;
293
+ let deferred3_1;
294
+ try {
295
+ const ptr0 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ const len0 = WASM_VECTOR_LEN;
297
+ const ret = wasm.get_datamodel(ptr0, len0);
298
+ var ptr2 = ret[0];
299
+ var len2 = ret[1];
300
+ if (ret[3]) {
301
+ ptr2 = 0;
302
+ len2 = 0;
303
+ throw takeFromExternrefTable0(ret[2]);
304
+ }
305
+ deferred3_0 = ptr2;
306
+ deferred3_1 = len2;
307
+ return getStringFromWasm0(ptr2, len2);
308
+ } finally {
309
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
310
+ }
311
+ };
312
+ exports2.code_actions = function(schema, params) {
313
+ let deferred3_0;
314
+ let deferred3_1;
315
+ try {
316
+ const ptr0 = passStringToWasm0(schema, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
+ const len0 = WASM_VECTOR_LEN;
318
+ const ptr1 = passStringToWasm0(params, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
+ const len1 = WASM_VECTOR_LEN;
320
+ const ret = wasm.code_actions(ptr0, len0, ptr1, len1);
321
+ deferred3_0 = ret[0];
322
+ deferred3_1 = ret[1];
323
+ return getStringFromWasm0(ret[0], ret[1]);
324
+ } finally {
325
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
326
+ }
327
+ };
328
+ exports2.preview_features = function() {
329
+ let deferred1_0;
330
+ let deferred1_1;
331
+ try {
332
+ const ret = wasm.preview_features();
333
+ deferred1_0 = ret[0];
334
+ deferred1_1 = ret[1];
335
+ return getStringFromWasm0(ret[0], ret[1]);
336
+ } finally {
337
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
338
+ }
339
+ };
340
+ var DmmfBufferFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
341
+ }, unregister: () => {
342
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_dmmfbuffer_free(ptr >>> 0, 1));
343
+ var DmmfBuffer = class _DmmfBuffer {
344
+ static __wrap(ptr) {
345
+ ptr = ptr >>> 0;
346
+ const obj = Object.create(_DmmfBuffer.prototype);
347
+ obj.__wbg_ptr = ptr;
348
+ DmmfBufferFinalization.register(obj, obj.__wbg_ptr, obj);
349
+ return obj;
350
+ }
351
+ __destroy_into_raw() {
352
+ const ptr = this.__wbg_ptr;
353
+ this.__wbg_ptr = 0;
354
+ DmmfBufferFinalization.unregister(this);
355
+ return ptr;
356
+ }
357
+ free() {
358
+ const ptr = this.__destroy_into_raw();
359
+ wasm.__wbg_dmmfbuffer_free(ptr, 0);
360
+ }
361
+ /**
362
+ * Read a chunk of the buffer as `Uint8Array`.
363
+ * `offset` is the byte offset, `length` is the max number of bytes to read.
364
+ * Returns a `Vec<u8>` which wasm-bindgen converts to `Uint8Array` on the JS side.
365
+ * @param {number} offset
366
+ * @param {number} length
367
+ * @returns {Uint8Array}
368
+ */
369
+ read_chunk(offset, length) {
370
+ const ret = wasm.dmmfbuffer_read_chunk(this.__wbg_ptr, offset, length);
371
+ if (ret[3]) {
372
+ throw takeFromExternrefTable0(ret[2]);
373
+ }
374
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
375
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
376
+ return v1;
377
+ }
378
+ /**
379
+ * Returns the total byte length of the serialized DMMF JSON.
380
+ * @returns {number}
381
+ */
382
+ len() {
383
+ const ret = wasm.dmmfbuffer_len(this.__wbg_ptr);
384
+ return ret >>> 0;
385
+ }
386
+ /**
387
+ * Returns `true` if the buffer is empty.
388
+ * @returns {boolean}
389
+ */
390
+ is_empty() {
391
+ const ret = wasm.dmmfbuffer_is_empty(this.__wbg_ptr);
392
+ return ret !== 0;
393
+ }
394
+ };
395
+ if (Symbol.dispose) DmmfBuffer.prototype[Symbol.dispose] = DmmfBuffer.prototype.free;
396
+ exports2.DmmfBuffer = DmmfBuffer;
397
+ exports2.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
398
+ const ret = Error(getStringFromWasm0(arg0, arg1));
399
+ return ret;
400
+ };
401
+ exports2.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
402
+ throw new Error(getStringFromWasm0(arg0, arg1));
403
+ };
404
+ exports2.__wbg_set_message_f22ac4a6869ee695 = function(arg0, arg1) {
405
+ global.PRISMA_WASM_PANIC_REGISTRY.set_message(getStringFromWasm0(arg0, arg1));
406
+ };
407
+ exports2.__wbindgen_init_externref_table = function() {
408
+ const table = wasm.__wbindgen_externrefs;
409
+ const offset = table.grow(4);
410
+ table.set(0, void 0);
411
+ table.set(offset + 0, void 0);
412
+ table.set(offset + 1, null);
413
+ table.set(offset + 2, true);
414
+ table.set(offset + 3, false);
415
+ ;
416
+ };
417
+ var wasmPath = `${__dirname}/prisma_schema_build_bg.wasm`;
418
+ var wasmBytes = require("fs").readFileSync(wasmPath);
419
+ var wasmModule = new WebAssembly.Module(wasmBytes);
420
+ var wasm = exports2.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
421
+ wasm.__wbindgen_start();
422
+ }
423
+ });
424
+
36
425
  // ../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.js
37
426
  var require_pluralize = __commonJS({
38
427
  "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.js"(exports2, module2) {
@@ -406,7 +795,7 @@ var require_universalify = __commonJS({
406
795
  if (typeof cb !== "function") return fn.apply(this, args);
407
796
  else {
408
797
  args.pop();
409
- fn.apply(this, args).then((r) => cb(null, r), cb);
798
+ fn.apply(this, args).then((r2) => cb(null, r2), cb);
410
799
  }
411
800
  }, "name", { value: fn.name });
412
801
  };
@@ -432,9 +821,9 @@ var require_polyfills = __commonJS({
432
821
  }
433
822
  if (typeof process.chdir === "function") {
434
823
  chdir = process.chdir;
435
- process.chdir = function(d) {
824
+ process.chdir = function(d2) {
436
825
  cwd = null;
437
- chdir.call(process, d);
826
+ chdir.call(process, d2);
438
827
  };
439
828
  if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
440
829
  }
@@ -510,7 +899,7 @@ var require_polyfills = __commonJS({
510
899
  var callback;
511
900
  if (callback_ && typeof callback_ === "function") {
512
901
  var eagCounter = 0;
513
- callback = function(er, _, __) {
902
+ callback = function(er, _2, __) {
514
903
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
515
904
  eagCounter++;
516
905
  return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
@@ -849,14 +1238,14 @@ var require_graceful_fs = __commonJS({
849
1238
  }
850
1239
  });
851
1240
  }
852
- var debug2 = noop2;
1241
+ var debug4 = noop2;
853
1242
  if (util2.debuglog)
854
- debug2 = util2.debuglog("gfs4");
1243
+ debug4 = util2.debuglog("gfs4");
855
1244
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
856
- debug2 = function() {
857
- var m = util2.format.apply(util2, arguments);
858
- m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
859
- console.error(m);
1245
+ debug4 = function() {
1246
+ var m2 = util2.format.apply(util2, arguments);
1247
+ m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
1248
+ console.error(m2);
860
1249
  };
861
1250
  if (!fs4[gracefulQueue]) {
862
1251
  queue = global[gracefulQueue] || [];
@@ -888,7 +1277,7 @@ var require_graceful_fs = __commonJS({
888
1277
  }(fs4.closeSync);
889
1278
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
890
1279
  process.on("exit", function() {
891
- debug2(fs4[gracefulQueue]);
1280
+ debug4(fs4[gracefulQueue]);
892
1281
  require("assert").equal(fs4[gracefulQueue].length, 0);
893
1282
  });
894
1283
  }
@@ -1141,17 +1530,17 @@ var require_graceful_fs = __commonJS({
1141
1530
  return fs5;
1142
1531
  }
1143
1532
  function enqueue(elem) {
1144
- debug2("ENQUEUE", elem[0].name, elem[1]);
1533
+ debug4("ENQUEUE", elem[0].name, elem[1]);
1145
1534
  fs4[gracefulQueue].push(elem);
1146
1535
  retry();
1147
1536
  }
1148
1537
  var retryTimer;
1149
1538
  function resetQueue() {
1150
1539
  var now = Date.now();
1151
- for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
1152
- if (fs4[gracefulQueue][i].length > 2) {
1153
- fs4[gracefulQueue][i][3] = now;
1154
- fs4[gracefulQueue][i][4] = now;
1540
+ for (var i2 = 0; i2 < fs4[gracefulQueue].length; ++i2) {
1541
+ if (fs4[gracefulQueue][i2].length > 2) {
1542
+ fs4[gracefulQueue][i2][3] = now;
1543
+ fs4[gracefulQueue][i2][4] = now;
1155
1544
  }
1156
1545
  }
1157
1546
  retry();
@@ -1168,10 +1557,10 @@ var require_graceful_fs = __commonJS({
1168
1557
  var startTime = elem[3];
1169
1558
  var lastTime = elem[4];
1170
1559
  if (startTime === void 0) {
1171
- debug2("RETRY", fn.name, args);
1560
+ debug4("RETRY", fn.name, args);
1172
1561
  fn.apply(null, args);
1173
1562
  } else if (Date.now() - startTime >= 6e4) {
1174
- debug2("TIMEOUT", fn.name, args);
1563
+ debug4("TIMEOUT", fn.name, args);
1175
1564
  var cb = args.pop();
1176
1565
  if (typeof cb === "function")
1177
1566
  cb.call(null, err);
@@ -1180,7 +1569,7 @@ var require_graceful_fs = __commonJS({
1180
1569
  var sinceStart = Math.max(lastTime - startTime, 1);
1181
1570
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
1182
1571
  if (sinceAttempt >= desiredDelay) {
1183
- debug2("RETRY", fn.name, args);
1572
+ debug4("RETRY", fn.name, args);
1184
1573
  fn.apply(null, args.concat([startTime]));
1185
1574
  } else {
1186
1575
  fs4[gracefulQueue].push(elem);
@@ -1197,7 +1586,7 @@ var require_graceful_fs = __commonJS({
1197
1586
  var require_fs = __commonJS({
1198
1587
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/fs/index.js"(exports2) {
1199
1588
  "use strict";
1200
- var u = require_universalify().fromCallback;
1589
+ var u2 = require_universalify().fromCallback;
1201
1590
  var fs4 = require_graceful_fs();
1202
1591
  var api = [
1203
1592
  "access",
@@ -1243,7 +1632,7 @@ var require_fs = __commonJS({
1243
1632
  });
1244
1633
  Object.assign(exports2, fs4);
1245
1634
  api.forEach((method2) => {
1246
- exports2[method2] = u(fs4[method2]);
1635
+ exports2[method2] = u2(fs4[method2]);
1247
1636
  });
1248
1637
  exports2.exists = function(filename, callback) {
1249
1638
  if (typeof callback === "function") {
@@ -1298,7 +1687,7 @@ var require_fs = __commonJS({
1298
1687
  });
1299
1688
  };
1300
1689
  if (typeof fs4.realpath.native === "function") {
1301
- exports2.realpath.native = u(fs4.realpath.native);
1690
+ exports2.realpath.native = u2(fs4.realpath.native);
1302
1691
  } else {
1303
1692
  process.emitWarning(
1304
1693
  "fs.realpath.native is not a function. Is fs being monkey-patched?",
@@ -1359,9 +1748,9 @@ var require_make_dir = __commonJS({
1359
1748
  var require_mkdirs = __commonJS({
1360
1749
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/index.js"(exports2, module2) {
1361
1750
  "use strict";
1362
- var u = require_universalify().fromPromise;
1751
+ var u2 = require_universalify().fromPromise;
1363
1752
  var { makeDir: _makeDir, makeDirSync } = require_make_dir();
1364
- var makeDir = u(_makeDir);
1753
+ var makeDir = u2(_makeDir);
1365
1754
  module2.exports = {
1366
1755
  mkdirs: makeDir,
1367
1756
  mkdirsSync: makeDirSync,
@@ -1378,13 +1767,13 @@ var require_mkdirs = __commonJS({
1378
1767
  var require_path_exists = __commonJS({
1379
1768
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
1380
1769
  "use strict";
1381
- var u = require_universalify().fromPromise;
1770
+ var u2 = require_universalify().fromPromise;
1382
1771
  var fs4 = require_fs();
1383
1772
  function pathExists(path10) {
1384
1773
  return fs4.access(path10).then(() => true).catch(() => false);
1385
1774
  }
1386
1775
  module2.exports = {
1387
- pathExists: u(pathExists),
1776
+ pathExists: u2(pathExists),
1388
1777
  pathExistsSync: fs4.existsSync
1389
1778
  };
1390
1779
  }
@@ -1395,7 +1784,7 @@ var require_utimes = __commonJS({
1395
1784
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
1396
1785
  "use strict";
1397
1786
  var fs4 = require_fs();
1398
- var u = require_universalify().fromPromise;
1787
+ var u2 = require_universalify().fromPromise;
1399
1788
  async function utimesMillis(path10, atime, mtime) {
1400
1789
  const fd = await fs4.open(path10, "r+");
1401
1790
  let closeErr = null;
@@ -1404,8 +1793,8 @@ var require_utimes = __commonJS({
1404
1793
  } finally {
1405
1794
  try {
1406
1795
  await fs4.close(fd);
1407
- } catch (e) {
1408
- closeErr = e;
1796
+ } catch (e2) {
1797
+ closeErr = e2;
1409
1798
  }
1410
1799
  }
1411
1800
  if (closeErr) {
@@ -1418,7 +1807,7 @@ var require_utimes = __commonJS({
1418
1807
  return fs4.closeSync(fd);
1419
1808
  }
1420
1809
  module2.exports = {
1421
- utimesMillis: u(utimesMillis),
1810
+ utimesMillis: u2(utimesMillis),
1422
1811
  utimesMillisSync
1423
1812
  };
1424
1813
  }
@@ -1430,7 +1819,7 @@ var require_stat = __commonJS({
1430
1819
  "use strict";
1431
1820
  var fs4 = require_fs();
1432
1821
  var path10 = require("path");
1433
- var u = require_universalify().fromPromise;
1822
+ var u2 = require_universalify().fromPromise;
1434
1823
  function getStats(src2, dest, opts) {
1435
1824
  const statFunc = opts.dereference ? (file2) => fs4.stat(file2, { bigint: true }) : (file2) => fs4.lstat(file2, { bigint: true });
1436
1825
  return Promise.all([
@@ -1535,19 +1924,19 @@ var require_stat = __commonJS({
1535
1924
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1536
1925
  }
1537
1926
  function isSrcSubdir(src2, dest) {
1538
- const srcArr = path10.resolve(src2).split(path10.sep).filter((i) => i);
1539
- const destArr = path10.resolve(dest).split(path10.sep).filter((i) => i);
1540
- return srcArr.every((cur, i) => destArr[i] === cur);
1927
+ const srcArr = path10.resolve(src2).split(path10.sep).filter((i2) => i2);
1928
+ const destArr = path10.resolve(dest).split(path10.sep).filter((i2) => i2);
1929
+ return srcArr.every((cur, i2) => destArr[i2] === cur);
1541
1930
  }
1542
1931
  function errMsg(src2, dest, funcName) {
1543
1932
  return `Cannot ${funcName} '${src2}' to a subdirectory of itself, '${dest}'.`;
1544
1933
  }
1545
1934
  module2.exports = {
1546
1935
  // checkPaths
1547
- checkPaths: u(checkPaths),
1936
+ checkPaths: u2(checkPaths),
1548
1937
  checkPathsSync,
1549
1938
  // checkParent
1550
- checkParentPaths: u(checkParentPaths),
1939
+ checkParentPaths: u2(checkParentPaths),
1551
1940
  checkParentPathsSync,
1552
1941
  // Misc
1553
1942
  isSrcSubdir,
@@ -1665,9 +2054,9 @@ var require_copy = __commonJS({
1665
2054
  let resolvedDest = null;
1666
2055
  try {
1667
2056
  resolvedDest = await fs4.readlink(dest);
1668
- } catch (e) {
1669
- if (e.code === "EINVAL" || e.code === "UNKNOWN") return fs4.symlink(resolvedSrc, dest);
1670
- throw e;
2057
+ } catch (e2) {
2058
+ if (e2.code === "EINVAL" || e2.code === "UNKNOWN") return fs4.symlink(resolvedSrc, dest);
2059
+ throw e2;
1671
2060
  }
1672
2061
  if (opts.dereference) {
1673
2062
  resolvedDest = path10.resolve(process.cwd(), resolvedDest);
@@ -1825,9 +2214,9 @@ var require_copy_sync = __commonJS({
1825
2214
  var require_copy2 = __commonJS({
1826
2215
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/index.js"(exports2, module2) {
1827
2216
  "use strict";
1828
- var u = require_universalify().fromPromise;
2217
+ var u2 = require_universalify().fromPromise;
1829
2218
  module2.exports = {
1830
- copy: u(require_copy()),
2219
+ copy: u2(require_copy()),
1831
2220
  copySync: require_copy_sync()
1832
2221
  };
1833
2222
  }
@@ -1838,7 +2227,7 @@ var require_remove = __commonJS({
1838
2227
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
1839
2228
  "use strict";
1840
2229
  var fs4 = require_graceful_fs();
1841
- var u = require_universalify().fromCallback;
2230
+ var u2 = require_universalify().fromCallback;
1842
2231
  function remove2(path10, callback) {
1843
2232
  fs4.rm(path10, { recursive: true, force: true }, callback);
1844
2233
  }
@@ -1846,7 +2235,7 @@ var require_remove = __commonJS({
1846
2235
  fs4.rmSync(path10, { recursive: true, force: true });
1847
2236
  }
1848
2237
  module2.exports = {
1849
- remove: u(remove2),
2238
+ remove: u2(remove2),
1850
2239
  removeSync
1851
2240
  };
1852
2241
  }
@@ -1856,12 +2245,12 @@ var require_remove = __commonJS({
1856
2245
  var require_empty = __commonJS({
1857
2246
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
1858
2247
  "use strict";
1859
- var u = require_universalify().fromPromise;
2248
+ var u2 = require_universalify().fromPromise;
1860
2249
  var fs4 = require_fs();
1861
2250
  var path10 = require("path");
1862
2251
  var mkdir = require_mkdirs();
1863
2252
  var remove2 = require_remove();
1864
- var emptyDir = u(async function emptyDir2(dir) {
2253
+ var emptyDir = u2(async function emptyDir2(dir) {
1865
2254
  let items;
1866
2255
  try {
1867
2256
  items = await fs4.readdir(dir);
@@ -1895,7 +2284,7 @@ var require_empty = __commonJS({
1895
2284
  var require_file = __commonJS({
1896
2285
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
1897
2286
  "use strict";
1898
- var u = require_universalify().fromPromise;
2287
+ var u2 = require_universalify().fromPromise;
1899
2288
  var path10 = require("path");
1900
2289
  var fs4 = require_fs();
1901
2290
  var mkdir = require_mkdirs();
@@ -1944,7 +2333,7 @@ var require_file = __commonJS({
1944
2333
  fs4.writeFileSync(file2, "");
1945
2334
  }
1946
2335
  module2.exports = {
1947
- createFile: u(createFile),
2336
+ createFile: u2(createFile),
1948
2337
  createFileSync
1949
2338
  };
1950
2339
  }
@@ -1954,7 +2343,7 @@ var require_file = __commonJS({
1954
2343
  var require_link = __commonJS({
1955
2344
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
1956
2345
  "use strict";
1957
- var u = require_universalify().fromPromise;
2346
+ var u2 = require_universalify().fromPromise;
1958
2347
  var path10 = require("path");
1959
2348
  var fs4 = require_fs();
1960
2349
  var mkdir = require_mkdirs();
@@ -2001,7 +2390,7 @@ var require_link = __commonJS({
2001
2390
  return fs4.linkSync(srcpath, dstpath);
2002
2391
  }
2003
2392
  module2.exports = {
2004
- createLink: u(createLink),
2393
+ createLink: u2(createLink),
2005
2394
  createLinkSync
2006
2395
  };
2007
2396
  }
@@ -2014,7 +2403,7 @@ var require_symlink_paths = __commonJS({
2014
2403
  var path10 = require("path");
2015
2404
  var fs4 = require_fs();
2016
2405
  var { pathExists } = require_path_exists();
2017
- var u = require_universalify().fromPromise;
2406
+ var u2 = require_universalify().fromPromise;
2018
2407
  async function symlinkPaths(srcpath, dstpath) {
2019
2408
  if (path10.isAbsolute(srcpath)) {
2020
2409
  try {
@@ -2074,7 +2463,7 @@ var require_symlink_paths = __commonJS({
2074
2463
  };
2075
2464
  }
2076
2465
  module2.exports = {
2077
- symlinkPaths: u(symlinkPaths),
2466
+ symlinkPaths: u2(symlinkPaths),
2078
2467
  symlinkPathsSync
2079
2468
  };
2080
2469
  }
@@ -2085,7 +2474,7 @@ var require_symlink_type = __commonJS({
2085
2474
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
2086
2475
  "use strict";
2087
2476
  var fs4 = require_fs();
2088
- var u = require_universalify().fromPromise;
2477
+ var u2 = require_universalify().fromPromise;
2089
2478
  async function symlinkType(srcpath, type) {
2090
2479
  if (type) return type;
2091
2480
  let stats;
@@ -2107,7 +2496,7 @@ var require_symlink_type = __commonJS({
2107
2496
  return stats && stats.isDirectory() ? "dir" : "file";
2108
2497
  }
2109
2498
  module2.exports = {
2110
- symlinkType: u(symlinkType),
2499
+ symlinkType: u2(symlinkType),
2111
2500
  symlinkTypeSync
2112
2501
  };
2113
2502
  }
@@ -2117,7 +2506,7 @@ var require_symlink_type = __commonJS({
2117
2506
  var require_symlink = __commonJS({
2118
2507
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
2119
2508
  "use strict";
2120
- var u = require_universalify().fromPromise;
2509
+ var u2 = require_universalify().fromPromise;
2121
2510
  var path10 = require("path");
2122
2511
  var fs4 = require_fs();
2123
2512
  var { mkdirs, mkdirsSync } = require_mkdirs();
@@ -2168,7 +2557,7 @@ var require_symlink = __commonJS({
2168
2557
  return fs4.symlinkSync(srcpath, dstpath, type);
2169
2558
  }
2170
2559
  module2.exports = {
2171
- createSymlink: u(createSymlink),
2560
+ createSymlink: u2(createSymlink),
2172
2561
  createSymlinkSync
2173
2562
  };
2174
2563
  }
@@ -2225,7 +2614,7 @@ var require_jsonfile = __commonJS({
2225
2614
  var _fs;
2226
2615
  try {
2227
2616
  _fs = require_graceful_fs();
2228
- } catch (_) {
2617
+ } catch (_2) {
2229
2618
  _fs = require("fs");
2230
2619
  }
2231
2620
  var universalify = require_universalify();
@@ -2311,7 +2700,7 @@ var require_jsonfile2 = __commonJS({
2311
2700
  var require_output_file = __commonJS({
2312
2701
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
2313
2702
  "use strict";
2314
- var u = require_universalify().fromPromise;
2703
+ var u2 = require_universalify().fromPromise;
2315
2704
  var fs4 = require_fs();
2316
2705
  var path10 = require("path");
2317
2706
  var mkdir = require_mkdirs();
@@ -2331,7 +2720,7 @@ var require_output_file = __commonJS({
2331
2720
  fs4.writeFileSync(file2, ...args);
2332
2721
  }
2333
2722
  module2.exports = {
2334
- outputFile: u(outputFile),
2723
+ outputFile: u2(outputFile),
2335
2724
  outputFileSync
2336
2725
  };
2337
2726
  }
@@ -2369,9 +2758,9 @@ var require_output_json_sync = __commonJS({
2369
2758
  var require_json = __commonJS({
2370
2759
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/json/index.js"(exports2, module2) {
2371
2760
  "use strict";
2372
- var u = require_universalify().fromPromise;
2761
+ var u2 = require_universalify().fromPromise;
2373
2762
  var jsonFile = require_jsonfile2();
2374
- jsonFile.outputJson = u(require_output_json());
2763
+ jsonFile.outputJson = u2(require_output_json());
2375
2764
  jsonFile.outputJsonSync = require_output_json_sync();
2376
2765
  jsonFile.outputJSON = jsonFile.outputJson;
2377
2766
  jsonFile.outputJSONSync = jsonFile.outputJsonSync;
@@ -2492,9 +2881,9 @@ var require_move_sync = __commonJS({
2492
2881
  var require_move2 = __commonJS({
2493
2882
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/index.js"(exports2, module2) {
2494
2883
  "use strict";
2495
- var u = require_universalify().fromPromise;
2884
+ var u2 = require_universalify().fromPromise;
2496
2885
  module2.exports = {
2497
- move: u(require_move()),
2886
+ move: u2(require_move()),
2498
2887
  moveSync: require_move_sync()
2499
2888
  };
2500
2889
  }
@@ -2626,7 +3015,7 @@ var require_caller = __commonJS({
2626
3015
  "use strict";
2627
3016
  module2.exports = function() {
2628
3017
  var origPrepareStackTrace = Error.prepareStackTrace;
2629
- Error.prepareStackTrace = function(_, stack2) {
3018
+ Error.prepareStackTrace = function(_2, stack2) {
2630
3019
  return stack2;
2631
3020
  };
2632
3021
  var stack = new Error().stack;
@@ -2743,7 +3132,7 @@ var require_node_modules_paths = __commonJS({
2743
3132
  var require_normalize_options = __commonJS({
2744
3133
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/normalize-options.js"(exports2, module2) {
2745
3134
  "use strict";
2746
- module2.exports = function(x, opts) {
3135
+ module2.exports = function(x2, opts) {
2747
3136
  return opts || {};
2748
3137
  };
2749
3138
  }
@@ -2757,28 +3146,28 @@ var require_implementation = __commonJS({
2757
3146
  var toStr = Object.prototype.toString;
2758
3147
  var max = Math.max;
2759
3148
  var funcType = "[object Function]";
2760
- var concatty = function concatty2(a, b) {
3149
+ var concatty = function concatty2(a, b2) {
2761
3150
  var arr = [];
2762
- for (var i = 0; i < a.length; i += 1) {
2763
- arr[i] = a[i];
3151
+ for (var i2 = 0; i2 < a.length; i2 += 1) {
3152
+ arr[i2] = a[i2];
2764
3153
  }
2765
- for (var j = 0; j < b.length; j += 1) {
2766
- arr[j + a.length] = b[j];
3154
+ for (var j2 = 0; j2 < b2.length; j2 += 1) {
3155
+ arr[j2 + a.length] = b2[j2];
2767
3156
  }
2768
3157
  return arr;
2769
3158
  };
2770
3159
  var slicy = function slicy2(arrLike, offset) {
2771
3160
  var arr = [];
2772
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
2773
- arr[j] = arrLike[i];
3161
+ for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
3162
+ arr[j2] = arrLike[i2];
2774
3163
  }
2775
3164
  return arr;
2776
3165
  };
2777
3166
  var joiny = function(arr, joiner) {
2778
3167
  var str = "";
2779
- for (var i = 0; i < arr.length; i += 1) {
2780
- str += arr[i];
2781
- if (i + 1 < arr.length) {
3168
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
3169
+ str += arr[i2];
3170
+ if (i2 + 1 < arr.length) {
2782
3171
  str += joiner;
2783
3172
  }
2784
3173
  }
@@ -2809,8 +3198,8 @@ var require_implementation = __commonJS({
2809
3198
  };
2810
3199
  var boundLength = max(0, target.length - args.length);
2811
3200
  var boundArgs = [];
2812
- for (var i = 0; i < boundLength; i++) {
2813
- boundArgs[i] = "$" + i;
3201
+ for (var i2 = 0; i2 < boundLength; i2++) {
3202
+ boundArgs[i2] = "$" + i2;
2814
3203
  }
2815
3204
  bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2816
3205
  if (target.prototype) {
@@ -3023,9 +3412,9 @@ var require_is_core_module = __commonJS({
3023
3412
  var parts = specifier.split(" ");
3024
3413
  var op = parts.length > 1 ? parts[0] : "=";
3025
3414
  var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
3026
- for (var i = 0; i < 3; ++i) {
3027
- var cur = parseInt(nodeParts[i] || 0, 10);
3028
- var ver = parseInt(versionParts[i] || 0, 10);
3415
+ for (var i2 = 0; i2 < 3; ++i2) {
3416
+ var cur = parseInt(nodeParts[i2] || 0, 10);
3417
+ var ver = parseInt(versionParts[i2] || 0, 10);
3029
3418
  if (cur === ver) {
3030
3419
  continue;
3031
3420
  }
@@ -3044,8 +3433,8 @@ var require_is_core_module = __commonJS({
3044
3433
  if (specifiers.length === 0) {
3045
3434
  return false;
3046
3435
  }
3047
- for (var i = 0; i < specifiers.length; ++i) {
3048
- if (!specifierIncluded(current, specifiers[i])) {
3436
+ for (var i2 = 0; i2 < specifiers.length; ++i2) {
3437
+ if (!specifierIncluded(current, specifiers[i2])) {
3049
3438
  return false;
3050
3439
  }
3051
3440
  }
@@ -3060,8 +3449,8 @@ var require_is_core_module = __commonJS({
3060
3449
  throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
3061
3450
  }
3062
3451
  if (specifierValue && typeof specifierValue === "object") {
3063
- for (var i = 0; i < specifierValue.length; ++i) {
3064
- if (matchesRange(current, specifierValue[i])) {
3452
+ for (var i2 = 0; i2 < specifierValue.length; ++i2) {
3453
+ if (matchesRange(current, specifierValue[i2])) {
3065
3454
  return true;
3066
3455
  }
3067
3456
  }
@@ -3070,8 +3459,8 @@ var require_is_core_module = __commonJS({
3070
3459
  return matchesRange(current, specifierValue);
3071
3460
  }
3072
3461
  var data = require_core();
3073
- module2.exports = function isCore(x, nodeVersion) {
3074
- return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
3462
+ module2.exports = function isCore(x2, nodeVersion) {
3463
+ return hasOwn(data, x2) && versionIncluded(nodeVersion, data[x2]);
3075
3464
  };
3076
3465
  }
3077
3466
  });
@@ -3113,17 +3502,17 @@ var require_async = __commonJS({
3113
3502
  return cb(err);
3114
3503
  });
3115
3504
  };
3116
- var defaultRealpath = function realpath(x, cb) {
3117
- realpathFS(x, function(realpathErr, realPath) {
3505
+ var defaultRealpath = function realpath(x2, cb) {
3506
+ realpathFS(x2, function(realpathErr, realPath) {
3118
3507
  if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
3119
- else cb(null, realpathErr ? x : realPath);
3508
+ else cb(null, realpathErr ? x2 : realPath);
3120
3509
  });
3121
3510
  };
3122
- var maybeRealpath = function maybeRealpath2(realpath, x, opts, cb) {
3511
+ var maybeRealpath = function maybeRealpath2(realpath, x2, opts, cb) {
3123
3512
  if (opts && opts.preserveSymlinks === false) {
3124
- realpath(x, cb);
3513
+ realpath(x2, cb);
3125
3514
  } else {
3126
- cb(null, x);
3515
+ cb(null, x2);
3127
3516
  }
3128
3517
  };
3129
3518
  var defaultReadPackage = function defaultReadPackage2(readFile, pkgfile, cb) {
@@ -3139,27 +3528,27 @@ var require_async = __commonJS({
3139
3528
  }
3140
3529
  });
3141
3530
  };
3142
- var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
3143
- var dirs = nodeModulesPaths(start, opts, x);
3144
- for (var i = 0; i < dirs.length; i++) {
3145
- dirs[i] = path10.join(dirs[i], x);
3531
+ var getPackageCandidates = function getPackageCandidates2(x2, start, opts) {
3532
+ var dirs = nodeModulesPaths(start, opts, x2);
3533
+ for (var i2 = 0; i2 < dirs.length; i2++) {
3534
+ dirs[i2] = path10.join(dirs[i2], x2);
3146
3535
  }
3147
3536
  return dirs;
3148
3537
  };
3149
- module2.exports = function resolve3(x, options2, callback) {
3538
+ module2.exports = function resolve3(x2, options2, callback) {
3150
3539
  var cb = callback;
3151
3540
  var opts = options2;
3152
3541
  if (typeof options2 === "function") {
3153
3542
  cb = opts;
3154
3543
  opts = {};
3155
3544
  }
3156
- if (typeof x !== "string") {
3545
+ if (typeof x2 !== "string") {
3157
3546
  var err = new TypeError("Path must be a string.");
3158
3547
  return process.nextTick(function() {
3159
3548
  cb(err);
3160
3549
  });
3161
3550
  }
3162
- opts = normalizeOptions(x, opts);
3551
+ opts = normalizeOptions(x2, opts);
3163
3552
  var isFile = opts.isFile || defaultIsFile;
3164
3553
  var isDirectory = opts.isDirectory || defaultIsDir;
3165
3554
  var readFile = opts.readFile || fs4.readFile;
@@ -3189,18 +3578,18 @@ var require_async = __commonJS({
3189
3578
  );
3190
3579
  var res;
3191
3580
  function init3(basedir2) {
3192
- if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
3193
- res = path10.resolve(basedir2, x);
3194
- if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
3195
- if (/\/$/.test(x) && res === basedir2) {
3581
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
3582
+ res = path10.resolve(basedir2, x2);
3583
+ if (x2 === "." || x2 === ".." || x2.slice(-1) === "/") res += "/";
3584
+ if (/\/$/.test(x2) && res === basedir2) {
3196
3585
  loadAsDirectory(res, opts.package, onfile);
3197
3586
  } else loadAsFile(res, opts.package, onfile);
3198
- } else if (includeCoreModules && isCore(x)) {
3199
- return cb(null, x);
3200
- } else loadNodeModules(x, basedir2, function(err2, n, pkg) {
3587
+ } else if (includeCoreModules && isCore(x2)) {
3588
+ return cb(null, x2);
3589
+ } else loadNodeModules(x2, basedir2, function(err2, n2, pkg) {
3201
3590
  if (err2) cb(err2);
3202
- else if (n) {
3203
- return maybeRealpath(realpath, n, opts, function(err3, realN) {
3591
+ else if (n2) {
3592
+ return maybeRealpath(realpath, n2, opts, function(err3, realN) {
3204
3593
  if (err3) {
3205
3594
  cb(err3);
3206
3595
  } else {
@@ -3208,19 +3597,19 @@ var require_async = __commonJS({
3208
3597
  }
3209
3598
  });
3210
3599
  } else {
3211
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
3600
+ var moduleError = new Error("Cannot find module '" + x2 + "' from '" + parent + "'");
3212
3601
  moduleError.code = "MODULE_NOT_FOUND";
3213
3602
  cb(moduleError);
3214
3603
  }
3215
3604
  });
3216
3605
  }
3217
- function onfile(err2, m, pkg) {
3606
+ function onfile(err2, m2, pkg) {
3218
3607
  if (err2) cb(err2);
3219
- else if (m) cb(null, m, pkg);
3220
- else loadAsDirectory(res, function(err3, d, pkg2) {
3608
+ else if (m2) cb(null, m2, pkg);
3609
+ else loadAsDirectory(res, function(err3, d2, pkg2) {
3221
3610
  if (err3) cb(err3);
3222
- else if (d) {
3223
- maybeRealpath(realpath, d, opts, function(err4, realD) {
3611
+ else if (d2) {
3612
+ maybeRealpath(realpath, d2, opts, function(err4, realD) {
3224
3613
  if (err4) {
3225
3614
  cb(err4);
3226
3615
  } else {
@@ -3228,13 +3617,13 @@ var require_async = __commonJS({
3228
3617
  }
3229
3618
  });
3230
3619
  } else {
3231
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
3620
+ var moduleError = new Error("Cannot find module '" + x2 + "' from '" + parent + "'");
3232
3621
  moduleError.code = "MODULE_NOT_FOUND";
3233
3622
  cb(moduleError);
3234
3623
  }
3235
3624
  });
3236
3625
  }
3237
- function loadAsFile(x2, thePackage, callback2) {
3626
+ function loadAsFile(x3, thePackage, callback2) {
3238
3627
  var loadAsFilePackage = thePackage;
3239
3628
  var cb2 = callback2;
3240
3629
  if (typeof loadAsFilePackage === "function") {
@@ -3242,10 +3631,10 @@ var require_async = __commonJS({
3242
3631
  loadAsFilePackage = void 0;
3243
3632
  }
3244
3633
  var exts = [""].concat(extensions);
3245
- load2(exts, x2, loadAsFilePackage);
3246
- function load2(exts2, x3, loadPackage) {
3634
+ load2(exts, x3, loadAsFilePackage);
3635
+ function load2(exts2, x4, loadPackage) {
3247
3636
  if (exts2.length === 0) return cb2(null, void 0, loadPackage);
3248
- var file2 = x3 + exts2[0];
3637
+ var file2 = x4 + exts2[0];
3249
3638
  var pkg = loadPackage;
3250
3639
  if (pkg) onpkg(null, pkg);
3251
3640
  else loadpkg(path10.dirname(file2), onpkg);
@@ -3255,10 +3644,10 @@ var require_async = __commonJS({
3255
3644
  if (dir && pkg && opts.pathFilter) {
3256
3645
  var rfile = path10.relative(dir, file2);
3257
3646
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
3258
- var r = opts.pathFilter(pkg, x3, rel);
3259
- if (r) return load2(
3647
+ var r2 = opts.pathFilter(pkg, x4, rel);
3648
+ if (r2) return load2(
3260
3649
  [""].concat(extensions.slice()),
3261
- path10.resolve(dir, r),
3650
+ path10.resolve(dir, r2),
3262
3651
  pkg
3263
3652
  );
3264
3653
  }
@@ -3267,7 +3656,7 @@ var require_async = __commonJS({
3267
3656
  function onex(err2, ex) {
3268
3657
  if (err2) return cb2(err2);
3269
3658
  if (ex) return cb2(null, file2, pkg);
3270
- load2(exts2.slice(1), x3, pkg);
3659
+ load2(exts2.slice(1), x4, pkg);
3271
3660
  }
3272
3661
  }
3273
3662
  }
@@ -3293,19 +3682,19 @@ var require_async = __commonJS({
3293
3682
  });
3294
3683
  });
3295
3684
  }
3296
- function loadAsDirectory(x2, loadAsDirectoryPackage, callback2) {
3685
+ function loadAsDirectory(x3, loadAsDirectoryPackage, callback2) {
3297
3686
  var cb2 = callback2;
3298
3687
  var fpkg = loadAsDirectoryPackage;
3299
3688
  if (typeof fpkg === "function") {
3300
3689
  cb2 = fpkg;
3301
3690
  fpkg = opts.package;
3302
3691
  }
3303
- maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
3692
+ maybeRealpath(realpath, x3, opts, function(unwrapErr, pkgdir) {
3304
3693
  if (unwrapErr) return cb2(unwrapErr);
3305
3694
  var pkgfile = path10.join(pkgdir, "package.json");
3306
3695
  isFile(pkgfile, function(err2, ex) {
3307
3696
  if (err2) return cb2(err2);
3308
- if (!ex) return loadAsFile(path10.join(x2, "index"), fpkg, cb2);
3697
+ if (!ex) return loadAsFile(path10.join(x3, "index"), fpkg, cb2);
3309
3698
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
3310
3699
  if (err3) return cb2(err3);
3311
3700
  var pkg = pkgParam;
@@ -3321,20 +3710,20 @@ var require_async = __commonJS({
3321
3710
  if (pkg.main === "." || pkg.main === "./") {
3322
3711
  pkg.main = "index";
3323
3712
  }
3324
- loadAsFile(path10.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
3713
+ loadAsFile(path10.resolve(x3, pkg.main), pkg, function(err4, m2, pkg2) {
3325
3714
  if (err4) return cb2(err4);
3326
- if (m) return cb2(null, m, pkg2);
3327
- if (!pkg2) return loadAsFile(path10.join(x2, "index"), pkg2, cb2);
3328
- var dir = path10.resolve(x2, pkg2.main);
3329
- loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
3715
+ if (m2) return cb2(null, m2, pkg2);
3716
+ if (!pkg2) return loadAsFile(path10.join(x3, "index"), pkg2, cb2);
3717
+ var dir = path10.resolve(x3, pkg2.main);
3718
+ loadAsDirectory(dir, pkg2, function(err5, n2, pkg3) {
3330
3719
  if (err5) return cb2(err5);
3331
- if (n) return cb2(null, n, pkg3);
3332
- loadAsFile(path10.join(x2, "index"), pkg3, cb2);
3720
+ if (n2) return cb2(null, n2, pkg3);
3721
+ loadAsFile(path10.join(x3, "index"), pkg3, cb2);
3333
3722
  });
3334
3723
  });
3335
3724
  return;
3336
3725
  }
3337
- loadAsFile(path10.join(x2, "/index"), pkg, cb2);
3726
+ loadAsFile(path10.join(x3, "/index"), pkg, cb2);
3338
3727
  });
3339
3728
  });
3340
3729
  });
@@ -3348,24 +3737,24 @@ var require_async = __commonJS({
3348
3737
  if (!isdir2) return processDirs(cb2, dirs.slice(1));
3349
3738
  loadAsFile(dir, opts.package, onfile2);
3350
3739
  }
3351
- function onfile2(err2, m, pkg) {
3740
+ function onfile2(err2, m2, pkg) {
3352
3741
  if (err2) return cb2(err2);
3353
- if (m) return cb2(null, m, pkg);
3742
+ if (m2) return cb2(null, m2, pkg);
3354
3743
  loadAsDirectory(dir, opts.package, ondir);
3355
3744
  }
3356
- function ondir(err2, n, pkg) {
3745
+ function ondir(err2, n2, pkg) {
3357
3746
  if (err2) return cb2(err2);
3358
- if (n) return cb2(null, n, pkg);
3747
+ if (n2) return cb2(null, n2, pkg);
3359
3748
  processDirs(cb2, dirs.slice(1));
3360
3749
  }
3361
3750
  }
3362
- function loadNodeModules(x2, start, cb2) {
3751
+ function loadNodeModules(x3, start, cb2) {
3363
3752
  var thunk = function() {
3364
- return getPackageCandidates(x2, start, opts);
3753
+ return getPackageCandidates(x3, start, opts);
3365
3754
  };
3366
3755
  processDirs(
3367
3756
  cb2,
3368
- packageIterator ? packageIterator(x2, start, thunk, opts) : thunk()
3757
+ packageIterator ? packageIterator(x3, start, thunk, opts) : thunk()
3369
3758
  );
3370
3759
  }
3371
3760
  };
@@ -3562,8 +3951,8 @@ var require_is_core = __commonJS({
3562
3951
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports2, module2) {
3563
3952
  "use strict";
3564
3953
  var isCoreModule = require_is_core_module();
3565
- module2.exports = function isCore(x) {
3566
- return isCoreModule(x);
3954
+ module2.exports = function isCore(x2) {
3955
+ return isCoreModule(x2);
3567
3956
  };
3568
3957
  }
3569
3958
  });
@@ -3590,36 +3979,36 @@ var require_sync = __commonJS({
3590
3979
  var defaultIsFile = function isFile(file2) {
3591
3980
  try {
3592
3981
  var stat = fs4.statSync(file2, { throwIfNoEntry: false });
3593
- } catch (e) {
3594
- if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
3595
- throw e;
3982
+ } catch (e2) {
3983
+ if (e2 && (e2.code === "ENOENT" || e2.code === "ENOTDIR")) return false;
3984
+ throw e2;
3596
3985
  }
3597
3986
  return !!stat && (stat.isFile() || stat.isFIFO());
3598
3987
  };
3599
3988
  var defaultIsDir = function isDirectory(dir) {
3600
3989
  try {
3601
3990
  var stat = fs4.statSync(dir, { throwIfNoEntry: false });
3602
- } catch (e) {
3603
- if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
3604
- throw e;
3991
+ } catch (e2) {
3992
+ if (e2 && (e2.code === "ENOENT" || e2.code === "ENOTDIR")) return false;
3993
+ throw e2;
3605
3994
  }
3606
3995
  return !!stat && stat.isDirectory();
3607
3996
  };
3608
- var defaultRealpathSync = function realpathSync(x) {
3997
+ var defaultRealpathSync = function realpathSync(x2) {
3609
3998
  try {
3610
- return realpathFS(x);
3999
+ return realpathFS(x2);
3611
4000
  } catch (realpathErr) {
3612
4001
  if (realpathErr.code !== "ENOENT") {
3613
4002
  throw realpathErr;
3614
4003
  }
3615
4004
  }
3616
- return x;
4005
+ return x2;
3617
4006
  };
3618
- var maybeRealpathSync = function maybeRealpathSync2(realpathSync, x, opts) {
4007
+ var maybeRealpathSync = function maybeRealpathSync2(realpathSync, x2, opts) {
3619
4008
  if (opts && opts.preserveSymlinks === false) {
3620
- return realpathSync(x);
4009
+ return realpathSync(x2);
3621
4010
  }
3622
- return x;
4011
+ return x2;
3623
4012
  };
3624
4013
  var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) {
3625
4014
  var body = readFileSync(pkgfile);
@@ -3629,18 +4018,18 @@ var require_sync = __commonJS({
3629
4018
  } catch (jsonErr) {
3630
4019
  }
3631
4020
  };
3632
- var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
3633
- var dirs = nodeModulesPaths(start, opts, x);
3634
- for (var i = 0; i < dirs.length; i++) {
3635
- dirs[i] = path10.join(dirs[i], x);
4021
+ var getPackageCandidates = function getPackageCandidates2(x2, start, opts) {
4022
+ var dirs = nodeModulesPaths(start, opts, x2);
4023
+ for (var i2 = 0; i2 < dirs.length; i2++) {
4024
+ dirs[i2] = path10.join(dirs[i2], x2);
3636
4025
  }
3637
4026
  return dirs;
3638
4027
  };
3639
- module2.exports = function resolveSync(x, options2) {
3640
- if (typeof x !== "string") {
4028
+ module2.exports = function resolveSync(x2, options2) {
4029
+ if (typeof x2 !== "string") {
3641
4030
  throw new TypeError("Path must be a string.");
3642
4031
  }
3643
- var opts = normalizeOptions(x, options2);
4032
+ var opts = normalizeOptions(x2, options2);
3644
4033
  var isFile = opts.isFile || defaultIsFile;
3645
4034
  var readFileSync = opts.readFileSync || fs4.readFileSync;
3646
4035
  var isDirectory = opts.isDirectory || defaultIsDir;
@@ -3656,34 +4045,34 @@ var require_sync = __commonJS({
3656
4045
  var parent = opts.filename || basedir;
3657
4046
  opts.paths = opts.paths || defaultPaths();
3658
4047
  var absoluteStart = maybeRealpathSync(realpathSync, path10.resolve(basedir), opts);
3659
- if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) {
3660
- var res = path10.resolve(absoluteStart, x);
3661
- if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
3662
- var m = loadAsFileSync(res) || loadAsDirectorySync(res);
3663
- if (m) return maybeRealpathSync(realpathSync, m, opts);
3664
- } else if (includeCoreModules && isCore(x)) {
3665
- return x;
4048
+ if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x2)) {
4049
+ var res = path10.resolve(absoluteStart, x2);
4050
+ if (x2 === "." || x2 === ".." || x2.slice(-1) === "/") res += "/";
4051
+ var m2 = loadAsFileSync(res) || loadAsDirectorySync(res);
4052
+ if (m2) return maybeRealpathSync(realpathSync, m2, opts);
4053
+ } else if (includeCoreModules && isCore(x2)) {
4054
+ return x2;
3666
4055
  } else {
3667
- var n = loadNodeModulesSync(x, absoluteStart);
3668
- if (n) return maybeRealpathSync(realpathSync, n, opts);
4056
+ var n2 = loadNodeModulesSync(x2, absoluteStart);
4057
+ if (n2) return maybeRealpathSync(realpathSync, n2, opts);
3669
4058
  }
3670
- var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
4059
+ var err = new Error("Cannot find module '" + x2 + "' from '" + parent + "'");
3671
4060
  err.code = "MODULE_NOT_FOUND";
3672
4061
  throw err;
3673
- function loadAsFileSync(x2) {
3674
- var pkg = loadpkg(path10.dirname(x2));
4062
+ function loadAsFileSync(x3) {
4063
+ var pkg = loadpkg(path10.dirname(x3));
3675
4064
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
3676
- var rfile = path10.relative(pkg.dir, x2);
3677
- var r = opts.pathFilter(pkg.pkg, x2, rfile);
3678
- if (r) {
3679
- x2 = path10.resolve(pkg.dir, r);
4065
+ var rfile = path10.relative(pkg.dir, x3);
4066
+ var r2 = opts.pathFilter(pkg.pkg, x3, rfile);
4067
+ if (r2) {
4068
+ x3 = path10.resolve(pkg.dir, r2);
3680
4069
  }
3681
4070
  }
3682
- if (isFile(x2)) {
3683
- return x2;
4071
+ if (isFile(x3)) {
4072
+ return x3;
3684
4073
  }
3685
- for (var i = 0; i < extensions.length; i++) {
3686
- var file2 = x2 + extensions[i];
4074
+ for (var i2 = 0; i2 < extensions.length; i2++) {
4075
+ var file2 = x3 + extensions[i2];
3687
4076
  if (isFile(file2)) {
3688
4077
  return file2;
3689
4078
  }
@@ -3709,18 +4098,18 @@ var require_sync = __commonJS({
3709
4098
  }
3710
4099
  return { pkg, dir };
3711
4100
  }
3712
- function loadAsDirectorySync(x2) {
3713
- var pkgfile = path10.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
4101
+ function loadAsDirectorySync(x3) {
4102
+ var pkgfile = path10.join(maybeRealpathSync(realpathSync, x3, opts), "/package.json");
3714
4103
  if (isFile(pkgfile)) {
3715
4104
  try {
3716
4105
  var pkg = readPackageSync(readFileSync, pkgfile);
3717
- } catch (e) {
4106
+ } catch (e2) {
3718
4107
  }
3719
4108
  if (pkg && opts.packageFilter) {
3720
4109
  pkg = opts.packageFilter(
3721
4110
  pkg,
3722
4111
  /*pkgfile,*/
3723
- x2
4112
+ x3
3724
4113
  );
3725
4114
  }
3726
4115
  if (pkg && pkg.main) {
@@ -3733,28 +4122,28 @@ var require_sync = __commonJS({
3733
4122
  pkg.main = "index";
3734
4123
  }
3735
4124
  try {
3736
- var m2 = loadAsFileSync(path10.resolve(x2, pkg.main));
3737
- if (m2) return m2;
3738
- var n2 = loadAsDirectorySync(path10.resolve(x2, pkg.main));
3739
- if (n2) return n2;
3740
- } catch (e) {
4125
+ var m3 = loadAsFileSync(path10.resolve(x3, pkg.main));
4126
+ if (m3) return m3;
4127
+ var n3 = loadAsDirectorySync(path10.resolve(x3, pkg.main));
4128
+ if (n3) return n3;
4129
+ } catch (e2) {
3741
4130
  }
3742
4131
  }
3743
4132
  }
3744
- return loadAsFileSync(path10.join(x2, "/index"));
4133
+ return loadAsFileSync(path10.join(x3, "/index"));
3745
4134
  }
3746
- function loadNodeModulesSync(x2, start) {
4135
+ function loadNodeModulesSync(x3, start) {
3747
4136
  var thunk = function() {
3748
- return getPackageCandidates(x2, start, opts);
4137
+ return getPackageCandidates(x3, start, opts);
3749
4138
  };
3750
- var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
3751
- for (var i = 0; i < dirs.length; i++) {
3752
- var dir = dirs[i];
4139
+ var dirs = packageIterator ? packageIterator(x3, start, thunk, opts) : thunk();
4140
+ for (var i2 = 0; i2 < dirs.length; i2++) {
4141
+ var dir = dirs[i2];
3753
4142
  if (isDirectory(path10.dirname(dir))) {
3754
- var m2 = loadAsFileSync(dir);
3755
- if (m2) return m2;
3756
- var n2 = loadAsDirectorySync(dir);
3757
- if (n2) return n2;
4143
+ var m3 = loadAsFileSync(dir);
4144
+ if (m3) return m3;
4145
+ var n3 = loadAsDirectorySync(dir);
4146
+ if (n3) return n3;
3758
4147
  }
3759
4148
  }
3760
4149
  }
@@ -3793,10 +4182,10 @@ var require_identifier = __commonJS({
3793
4182
  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, 7, 9, 32, 4, 318, 1, 80, 3, 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, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 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, 343, 9, 54, 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, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 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, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
3794
4183
  function isInAstralSet(code, set) {
3795
4184
  let pos2 = 65536;
3796
- for (let i = 0, length = set.length; i < length; i += 2) {
3797
- pos2 += set[i];
4185
+ for (let i2 = 0, length = set.length; i2 < length; i2 += 2) {
4186
+ pos2 += set[i2];
3798
4187
  if (pos2 > code) return false;
3799
- pos2 += set[i + 1];
4188
+ pos2 += set[i2 + 1];
3800
4189
  if (pos2 >= code) return true;
3801
4190
  }
3802
4191
  return false;
@@ -3825,10 +4214,10 @@ var require_identifier = __commonJS({
3825
4214
  }
3826
4215
  function isIdentifierName2(name) {
3827
4216
  let isFirst = true;
3828
- for (let i = 0; i < name.length; i++) {
3829
- let cp2 = name.charCodeAt(i);
3830
- if ((cp2 & 64512) === 55296 && i + 1 < name.length) {
3831
- const trail = name.charCodeAt(++i);
4217
+ for (let i2 = 0; i2 < name.length; i2++) {
4218
+ let cp2 = name.charCodeAt(i2);
4219
+ if ((cp2 & 64512) === 55296 && i2 + 1 < name.length) {
4220
+ const trail = name.charCodeAt(++i2);
3832
4221
  if ((trail & 64512) === 56320) {
3833
4222
  cp2 = 65536 + ((cp2 & 1023) << 10) + (trail & 1023);
3834
4223
  }
@@ -4074,131 +4463,6 @@ __export(generator_exports, {
4074
4463
  module.exports = __toCommonJS(generator_exports);
4075
4464
  var import_node_path6 = __toESM(require("node:path"));
4076
4465
 
4077
- // ../client-common/src/Cache.ts
4078
- var Cache = class {
4079
- _map = /* @__PURE__ */ new Map();
4080
- get(key) {
4081
- return this._map.get(key)?.value;
4082
- }
4083
- set(key, value) {
4084
- this._map.set(key, { value });
4085
- }
4086
- getOrCreate(key, create) {
4087
- const cached = this._map.get(key);
4088
- if (cached) {
4089
- return cached.value;
4090
- }
4091
- const value = create();
4092
- this.set(key, value);
4093
- return value;
4094
- }
4095
- };
4096
-
4097
- // ../client-common/src/casing.ts
4098
- function capitalize(self2) {
4099
- if (self2.length === 0) return self2;
4100
- return self2[0].toUpperCase() + self2.slice(1);
4101
- }
4102
- function uncapitalize(self2) {
4103
- return self2.substring(0, 1).toLowerCase() + self2.substring(1);
4104
- }
4105
-
4106
- // ../client-common/src/Dictionary.ts
4107
- function keyBy(collection, prop) {
4108
- const acc = {};
4109
- for (const obj of collection) {
4110
- const key = obj[prop];
4111
- acc[key] = obj;
4112
- }
4113
- return acc;
4114
- }
4115
-
4116
- // ../client-common/src/enums.ts
4117
- var strictEnumNames = ["TransactionIsolationLevel"];
4118
- var objectEnumNames = ["JsonNullValueInput", "NullableJsonNullValueInput", "JsonNullValueFilter"];
4119
-
4120
- // ../client-common/src/runtimeDataModel.ts
4121
- function dmmfToRuntimeDataModel(dmmfDataModel) {
4122
- return {
4123
- models: buildMapForRuntime(dmmfDataModel.models),
4124
- enums: buildMapForRuntime(dmmfDataModel.enums),
4125
- types: buildMapForRuntime(dmmfDataModel.types)
4126
- };
4127
- }
4128
- function pruneRuntimeDataModel({ models }) {
4129
- const prunedModels = {};
4130
- for (const modelName of Object.keys(models)) {
4131
- prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName };
4132
- for (const { name, kind, type, relationName, dbName } of models[modelName].fields) {
4133
- prunedModels[modelName].fields.push({ name, kind, type, relationName, dbName });
4134
- }
4135
- }
4136
- return { models: prunedModels, enums: {}, types: {} };
4137
- }
4138
- function buildMapForRuntime(list) {
4139
- const result = {};
4140
- for (const { name, ...rest } of list) {
4141
- result[name] = rest;
4142
- }
4143
- return result;
4144
- }
4145
-
4146
- // ../client-common/src/uniqueBy.ts
4147
- function uniqueBy(arr, callee) {
4148
- const result = {};
4149
- for (const value of arr) {
4150
- const hash = callee(value);
4151
- if (!result[hash]) {
4152
- result[hash] = value;
4153
- }
4154
- }
4155
- return Object.values(result);
4156
- }
4157
-
4158
- // ../client-generator-js/src/externalToInternalDmmf.ts
4159
- var import_pluralize = __toESM(require_pluralize());
4160
- function externalToInternalDmmf(document) {
4161
- return {
4162
- ...document,
4163
- mappings: getMappings(document.mappings, document.datamodel)
4164
- };
4165
- }
4166
- function getMappings(mappings, datamodel) {
4167
- const modelOperations = mappings.modelOperations.filter((mapping) => {
4168
- const model = datamodel.models.find((m) => m.name === mapping.model);
4169
- if (!model) {
4170
- throw new Error(`Mapping without model ${mapping.model}`);
4171
- }
4172
- return model.fields.some((f) => f.kind !== "object");
4173
- }).map((mapping) => ({
4174
- model: mapping.model,
4175
- plural: (0, import_pluralize.default)(uncapitalize(mapping.model)),
4176
- // TODO not needed anymore
4177
- findUnique: mapping.findUnique || mapping.findSingle,
4178
- findUniqueOrThrow: mapping.findUniqueOrThrow,
4179
- findFirst: mapping.findFirst,
4180
- findFirstOrThrow: mapping.findFirstOrThrow,
4181
- findMany: mapping.findMany,
4182
- create: mapping.createOne || mapping.createSingle || mapping.create,
4183
- createMany: mapping.createMany,
4184
- createManyAndReturn: mapping.createManyAndReturn,
4185
- delete: mapping.deleteOne || mapping.deleteSingle || mapping.delete,
4186
- update: mapping.updateOne || mapping.updateSingle || mapping.update,
4187
- deleteMany: mapping.deleteMany,
4188
- updateMany: mapping.updateMany,
4189
- updateManyAndReturn: mapping.updateManyAndReturn,
4190
- upsert: mapping.upsertOne || mapping.upsertSingle || mapping.upsert,
4191
- aggregate: mapping.aggregate,
4192
- groupBy: mapping.groupBy,
4193
- findRaw: mapping.findRaw,
4194
- aggregateRaw: mapping.aggregateRaw
4195
- }));
4196
- return {
4197
- modelOperations,
4198
- otherOperations: mappings.otherOperations
4199
- };
4200
- }
4201
-
4202
4466
  // ../internals/src/built-in-provider.ts
4203
4467
  var BuiltInProvider = {
4204
4468
  PrismaClientJs: "prisma-client-js",
@@ -4248,9 +4512,9 @@ if (typeof process !== "undefined") {
4248
4512
  var $ = {
4249
4513
  enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
4250
4514
  };
4251
- function init(x, y) {
4252
- let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
4253
- let open = `\x1B[${x}m`, close = `\x1B[${y}m`;
4515
+ function init(x2, y2) {
4516
+ let rgx = new RegExp(`\\x1b\\[${y2}m`, "g");
4517
+ let open = `\x1B[${x2}m`, close = `\x1B[${y2}m`;
4254
4518
  return function(txt) {
4255
4519
  if (!$.enabled || txt == null) return txt;
4256
4520
  return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close;
@@ -4321,8 +4585,8 @@ var topProps = {
4321
4585
  },
4322
4586
  // this is the core logic to check if logging should happen or not
4323
4587
  enabled(namespace2) {
4324
- const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
4325
- return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
4588
+ const listenedNamespaces = globalThis.DEBUG.split(",").map((s2) => {
4589
+ return s2.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
4326
4590
  });
4327
4591
  const isListened = listenedNamespaces.some((listenedNamespace) => {
4328
4592
  if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
@@ -4377,13 +4641,13 @@ function debugCreate(namespace2) {
4377
4641
  }
4378
4642
  };
4379
4643
  return new Proxy(debugCall, {
4380
- get: (_, prop) => instanceProps[prop],
4381
- set: (_, prop, value) => instanceProps[prop] = value
4644
+ get: (_2, prop) => instanceProps[prop],
4645
+ set: (_2, prop, value) => instanceProps[prop] = value
4382
4646
  });
4383
4647
  }
4384
4648
  var Debug = new Proxy(debugCreate, {
4385
- get: (_, prop) => topProps[prop],
4386
- set: (_, prop, value) => topProps[prop] = value
4649
+ get: (_2, prop) => topProps[prop],
4650
+ set: (_2, prop, value) => topProps[prop] = value
4387
4651
  });
4388
4652
  function safeStringify(value, indent8 = 2) {
4389
4653
  const cache = /* @__PURE__ */ new Set();
@@ -4403,6 +4667,385 @@ function safeStringify(value, indent8 = 2) {
4403
4667
  indent8
4404
4668
  );
4405
4669
  }
4670
+ var src_default = Debug;
4671
+
4672
+ // ../../node_modules/.pnpm/ts-pattern@5.6.2/node_modules/ts-pattern/dist/index.js
4673
+ var t = Symbol.for("@ts-pattern/matcher");
4674
+ var e = Symbol.for("@ts-pattern/isVariadic");
4675
+ var n = "@ts-pattern/anonymous-select-key";
4676
+ var r = (t2) => Boolean(t2 && "object" == typeof t2);
4677
+ var i = (e2) => e2 && !!e2[t];
4678
+ var s = (n2, o2, c3) => {
4679
+ if (i(n2)) {
4680
+ const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(o2);
4681
+ return r2 && i2 && Object.keys(i2).forEach((t2) => c3(t2, i2[t2])), r2;
4682
+ }
4683
+ if (r(n2)) {
4684
+ if (!r(o2)) return false;
4685
+ if (Array.isArray(n2)) {
4686
+ if (!Array.isArray(o2)) return false;
4687
+ let t2 = [], r2 = [], a = [];
4688
+ for (const s2 of n2.keys()) {
4689
+ const o3 = n2[s2];
4690
+ i(o3) && o3[e] ? a.push(o3) : a.length ? r2.push(o3) : t2.push(o3);
4691
+ }
4692
+ if (a.length) {
4693
+ if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
4694
+ if (o2.length < t2.length + r2.length) return false;
4695
+ const e2 = o2.slice(0, t2.length), n3 = 0 === r2.length ? [] : o2.slice(-r2.length), i2 = o2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
4696
+ return t2.every((t3, n4) => s(t3, e2[n4], c3)) && r2.every((t3, e3) => s(t3, n3[e3], c3)) && (0 === a.length || s(a[0], i2, c3));
4697
+ }
4698
+ return n2.length === o2.length && n2.every((t3, e2) => s(t3, o2[e2], c3));
4699
+ }
4700
+ return Reflect.ownKeys(n2).every((e2) => {
4701
+ const r2 = n2[e2];
4702
+ return (e2 in o2 || i(a = r2) && "optional" === a[t]().matcherType) && s(r2, o2[e2], c3);
4703
+ var a;
4704
+ });
4705
+ }
4706
+ return Object.is(o2, n2);
4707
+ };
4708
+ var o = (e2) => {
4709
+ var n2, s2, a;
4710
+ return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
4711
+ };
4712
+ var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
4713
+ function u(t2) {
4714
+ return Object.assign(t2, { optional: () => h(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? y(t2) : y(e2, t2) });
4715
+ }
4716
+ function h(e2) {
4717
+ return u({ [t]: () => ({ match: (t2) => {
4718
+ let n2 = {};
4719
+ const r2 = (t3, e3) => {
4720
+ n2[t3] = e3;
4721
+ };
4722
+ return void 0 === t2 ? (o(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: s(e2, t2, r2), selections: n2 };
4723
+ }, getSelectionKeys: () => o(e2), matcherType: "optional" }) });
4724
+ }
4725
+ function m(...e2) {
4726
+ return u({ [t]: () => ({ match: (t2) => {
4727
+ let n2 = {};
4728
+ const r2 = (t3, e3) => {
4729
+ n2[t3] = e3;
4730
+ };
4731
+ return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
4732
+ }, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
4733
+ }
4734
+ function d(...e2) {
4735
+ return u({ [t]: () => ({ match: (t2) => {
4736
+ let n2 = {};
4737
+ const r2 = (t3, e3) => {
4738
+ n2[t3] = e3;
4739
+ };
4740
+ return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
4741
+ }, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
4742
+ }
4743
+ function p(e2) {
4744
+ return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
4745
+ }
4746
+ function y(...e2) {
4747
+ const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
4748
+ return u({ [t]: () => ({ match: (t2) => {
4749
+ let e3 = { [null != r2 ? r2 : n]: t2 };
4750
+ return { matched: void 0 === i2 || s(i2, t2, (t3, n2) => {
4751
+ e3[t3] = n2;
4752
+ }), selections: e3 };
4753
+ }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : o(i2)) }) });
4754
+ }
4755
+ function v(t2) {
4756
+ return "number" == typeof t2;
4757
+ }
4758
+ function b(t2) {
4759
+ return "string" == typeof t2;
4760
+ }
4761
+ function w(t2) {
4762
+ return "bigint" == typeof t2;
4763
+ }
4764
+ var S = u(p(function(t2) {
4765
+ return true;
4766
+ }));
4767
+ var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
4768
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.startsWith(n2)))));
4769
+ var n2;
4770
+ }, endsWith: (e2) => {
4771
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.endsWith(n2)))));
4772
+ var n2;
4773
+ }, minLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
4774
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.includes(n2)))));
4775
+ var n2;
4776
+ }, regex: (e2) => {
4777
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && Boolean(t3.match(n2))))));
4778
+ var n2;
4779
+ } });
4780
+ var K = j(p(b));
4781
+ var x = (t2) => Object.assign(u(t2), { between: (e2, n2) => x(m(t2, ((t3, e3) => p((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 >= t3))(e2))), int: () => x(m(t2, p((t3) => v(t3) && Number.isInteger(t3)))), finite: () => x(m(t2, p((t3) => v(t3) && Number.isFinite(t3)))), positive: () => x(m(t2, p((t3) => v(t3) && t3 > 0))), negative: () => x(m(t2, p((t3) => v(t3) && t3 < 0))) });
4782
+ var E = x(p(v));
4783
+ var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => p((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, p((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, p((t3) => w(t3) && t3 < 0))) });
4784
+ var P = A(p(w));
4785
+ var T = u(p(function(t2) {
4786
+ return "boolean" == typeof t2;
4787
+ }));
4788
+ var B = u(p(function(t2) {
4789
+ return "symbol" == typeof t2;
4790
+ }));
4791
+ var _ = u(p(function(t2) {
4792
+ return null == t2;
4793
+ }));
4794
+ var k = u(p(function(t2) {
4795
+ return null != t2;
4796
+ }));
4797
+
4798
+ // ../internals/src/engine-commands/queryEngineCommons.ts
4799
+ var createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
4800
+ debug4(`error of type "${type}" in ${fnName}:
4801
+ `, { reason, error });
4802
+ };
4803
+
4804
+ // ../get-dmmf/dist/index.mjs
4805
+ var import_prisma_schema_wasm = __toESM(require_prisma_schema_build(), 1);
4806
+
4807
+ // ../../node_modules/.pnpm/@streamparser+json@0.0.22/node_modules/@streamparser/json/dist/mjs/utils/utf-8.js
4808
+ var charset;
4809
+ (function(charset2) {
4810
+ charset2[charset2["BACKSPACE"] = 8] = "BACKSPACE";
4811
+ charset2[charset2["FORM_FEED"] = 12] = "FORM_FEED";
4812
+ charset2[charset2["NEWLINE"] = 10] = "NEWLINE";
4813
+ charset2[charset2["CARRIAGE_RETURN"] = 13] = "CARRIAGE_RETURN";
4814
+ charset2[charset2["TAB"] = 9] = "TAB";
4815
+ charset2[charset2["SPACE"] = 32] = "SPACE";
4816
+ charset2[charset2["EXCLAMATION_MARK"] = 33] = "EXCLAMATION_MARK";
4817
+ charset2[charset2["QUOTATION_MARK"] = 34] = "QUOTATION_MARK";
4818
+ charset2[charset2["NUMBER_SIGN"] = 35] = "NUMBER_SIGN";
4819
+ charset2[charset2["DOLLAR_SIGN"] = 36] = "DOLLAR_SIGN";
4820
+ charset2[charset2["PERCENT_SIGN"] = 37] = "PERCENT_SIGN";
4821
+ charset2[charset2["AMPERSAND"] = 38] = "AMPERSAND";
4822
+ charset2[charset2["APOSTROPHE"] = 39] = "APOSTROPHE";
4823
+ charset2[charset2["LEFT_PARENTHESIS"] = 40] = "LEFT_PARENTHESIS";
4824
+ charset2[charset2["RIGHT_PARENTHESIS"] = 41] = "RIGHT_PARENTHESIS";
4825
+ charset2[charset2["ASTERISK"] = 42] = "ASTERISK";
4826
+ charset2[charset2["PLUS_SIGN"] = 43] = "PLUS_SIGN";
4827
+ charset2[charset2["COMMA"] = 44] = "COMMA";
4828
+ charset2[charset2["HYPHEN_MINUS"] = 45] = "HYPHEN_MINUS";
4829
+ charset2[charset2["FULL_STOP"] = 46] = "FULL_STOP";
4830
+ charset2[charset2["SOLIDUS"] = 47] = "SOLIDUS";
4831
+ charset2[charset2["DIGIT_ZERO"] = 48] = "DIGIT_ZERO";
4832
+ charset2[charset2["DIGIT_ONE"] = 49] = "DIGIT_ONE";
4833
+ charset2[charset2["DIGIT_TWO"] = 50] = "DIGIT_TWO";
4834
+ charset2[charset2["DIGIT_THREE"] = 51] = "DIGIT_THREE";
4835
+ charset2[charset2["DIGIT_FOUR"] = 52] = "DIGIT_FOUR";
4836
+ charset2[charset2["DIGIT_FIVE"] = 53] = "DIGIT_FIVE";
4837
+ charset2[charset2["DIGIT_SIX"] = 54] = "DIGIT_SIX";
4838
+ charset2[charset2["DIGIT_SEVEN"] = 55] = "DIGIT_SEVEN";
4839
+ charset2[charset2["DIGIT_EIGHT"] = 56] = "DIGIT_EIGHT";
4840
+ charset2[charset2["DIGIT_NINE"] = 57] = "DIGIT_NINE";
4841
+ charset2[charset2["COLON"] = 58] = "COLON";
4842
+ charset2[charset2["SEMICOLON"] = 59] = "SEMICOLON";
4843
+ charset2[charset2["LESS_THAN_SIGN"] = 60] = "LESS_THAN_SIGN";
4844
+ charset2[charset2["EQUALS_SIGN"] = 61] = "EQUALS_SIGN";
4845
+ charset2[charset2["GREATER_THAN_SIGN"] = 62] = "GREATER_THAN_SIGN";
4846
+ charset2[charset2["QUESTION_MARK"] = 63] = "QUESTION_MARK";
4847
+ charset2[charset2["COMMERCIAL_AT"] = 64] = "COMMERCIAL_AT";
4848
+ charset2[charset2["LATIN_CAPITAL_LETTER_A"] = 65] = "LATIN_CAPITAL_LETTER_A";
4849
+ charset2[charset2["LATIN_CAPITAL_LETTER_B"] = 66] = "LATIN_CAPITAL_LETTER_B";
4850
+ charset2[charset2["LATIN_CAPITAL_LETTER_C"] = 67] = "LATIN_CAPITAL_LETTER_C";
4851
+ charset2[charset2["LATIN_CAPITAL_LETTER_D"] = 68] = "LATIN_CAPITAL_LETTER_D";
4852
+ charset2[charset2["LATIN_CAPITAL_LETTER_E"] = 69] = "LATIN_CAPITAL_LETTER_E";
4853
+ charset2[charset2["LATIN_CAPITAL_LETTER_F"] = 70] = "LATIN_CAPITAL_LETTER_F";
4854
+ charset2[charset2["LATIN_CAPITAL_LETTER_G"] = 71] = "LATIN_CAPITAL_LETTER_G";
4855
+ charset2[charset2["LATIN_CAPITAL_LETTER_H"] = 72] = "LATIN_CAPITAL_LETTER_H";
4856
+ charset2[charset2["LATIN_CAPITAL_LETTER_I"] = 73] = "LATIN_CAPITAL_LETTER_I";
4857
+ charset2[charset2["LATIN_CAPITAL_LETTER_J"] = 74] = "LATIN_CAPITAL_LETTER_J";
4858
+ charset2[charset2["LATIN_CAPITAL_LETTER_K"] = 75] = "LATIN_CAPITAL_LETTER_K";
4859
+ charset2[charset2["LATIN_CAPITAL_LETTER_L"] = 76] = "LATIN_CAPITAL_LETTER_L";
4860
+ charset2[charset2["LATIN_CAPITAL_LETTER_M"] = 77] = "LATIN_CAPITAL_LETTER_M";
4861
+ charset2[charset2["LATIN_CAPITAL_LETTER_N"] = 78] = "LATIN_CAPITAL_LETTER_N";
4862
+ charset2[charset2["LATIN_CAPITAL_LETTER_O"] = 79] = "LATIN_CAPITAL_LETTER_O";
4863
+ charset2[charset2["LATIN_CAPITAL_LETTER_P"] = 80] = "LATIN_CAPITAL_LETTER_P";
4864
+ charset2[charset2["LATIN_CAPITAL_LETTER_Q"] = 81] = "LATIN_CAPITAL_LETTER_Q";
4865
+ charset2[charset2["LATIN_CAPITAL_LETTER_R"] = 82] = "LATIN_CAPITAL_LETTER_R";
4866
+ charset2[charset2["LATIN_CAPITAL_LETTER_S"] = 83] = "LATIN_CAPITAL_LETTER_S";
4867
+ charset2[charset2["LATIN_CAPITAL_LETTER_T"] = 84] = "LATIN_CAPITAL_LETTER_T";
4868
+ charset2[charset2["LATIN_CAPITAL_LETTER_U"] = 85] = "LATIN_CAPITAL_LETTER_U";
4869
+ charset2[charset2["LATIN_CAPITAL_LETTER_V"] = 86] = "LATIN_CAPITAL_LETTER_V";
4870
+ charset2[charset2["LATIN_CAPITAL_LETTER_W"] = 87] = "LATIN_CAPITAL_LETTER_W";
4871
+ charset2[charset2["LATIN_CAPITAL_LETTER_X"] = 88] = "LATIN_CAPITAL_LETTER_X";
4872
+ charset2[charset2["LATIN_CAPITAL_LETTER_Y"] = 89] = "LATIN_CAPITAL_LETTER_Y";
4873
+ charset2[charset2["LATIN_CAPITAL_LETTER_Z"] = 90] = "LATIN_CAPITAL_LETTER_Z";
4874
+ charset2[charset2["LEFT_SQUARE_BRACKET"] = 91] = "LEFT_SQUARE_BRACKET";
4875
+ charset2[charset2["REVERSE_SOLIDUS"] = 92] = "REVERSE_SOLIDUS";
4876
+ charset2[charset2["RIGHT_SQUARE_BRACKET"] = 93] = "RIGHT_SQUARE_BRACKET";
4877
+ charset2[charset2["CIRCUMFLEX_ACCENT"] = 94] = "CIRCUMFLEX_ACCENT";
4878
+ charset2[charset2["LOW_LINE"] = 95] = "LOW_LINE";
4879
+ charset2[charset2["GRAVE_ACCENT"] = 96] = "GRAVE_ACCENT";
4880
+ charset2[charset2["LATIN_SMALL_LETTER_A"] = 97] = "LATIN_SMALL_LETTER_A";
4881
+ charset2[charset2["LATIN_SMALL_LETTER_B"] = 98] = "LATIN_SMALL_LETTER_B";
4882
+ charset2[charset2["LATIN_SMALL_LETTER_C"] = 99] = "LATIN_SMALL_LETTER_C";
4883
+ charset2[charset2["LATIN_SMALL_LETTER_D"] = 100] = "LATIN_SMALL_LETTER_D";
4884
+ charset2[charset2["LATIN_SMALL_LETTER_E"] = 101] = "LATIN_SMALL_LETTER_E";
4885
+ charset2[charset2["LATIN_SMALL_LETTER_F"] = 102] = "LATIN_SMALL_LETTER_F";
4886
+ charset2[charset2["LATIN_SMALL_LETTER_G"] = 103] = "LATIN_SMALL_LETTER_G";
4887
+ charset2[charset2["LATIN_SMALL_LETTER_H"] = 104] = "LATIN_SMALL_LETTER_H";
4888
+ charset2[charset2["LATIN_SMALL_LETTER_I"] = 105] = "LATIN_SMALL_LETTER_I";
4889
+ charset2[charset2["LATIN_SMALL_LETTER_J"] = 106] = "LATIN_SMALL_LETTER_J";
4890
+ charset2[charset2["LATIN_SMALL_LETTER_K"] = 107] = "LATIN_SMALL_LETTER_K";
4891
+ charset2[charset2["LATIN_SMALL_LETTER_L"] = 108] = "LATIN_SMALL_LETTER_L";
4892
+ charset2[charset2["LATIN_SMALL_LETTER_M"] = 109] = "LATIN_SMALL_LETTER_M";
4893
+ charset2[charset2["LATIN_SMALL_LETTER_N"] = 110] = "LATIN_SMALL_LETTER_N";
4894
+ charset2[charset2["LATIN_SMALL_LETTER_O"] = 111] = "LATIN_SMALL_LETTER_O";
4895
+ charset2[charset2["LATIN_SMALL_LETTER_P"] = 112] = "LATIN_SMALL_LETTER_P";
4896
+ charset2[charset2["LATIN_SMALL_LETTER_Q"] = 113] = "LATIN_SMALL_LETTER_Q";
4897
+ charset2[charset2["LATIN_SMALL_LETTER_R"] = 114] = "LATIN_SMALL_LETTER_R";
4898
+ charset2[charset2["LATIN_SMALL_LETTER_S"] = 115] = "LATIN_SMALL_LETTER_S";
4899
+ charset2[charset2["LATIN_SMALL_LETTER_T"] = 116] = "LATIN_SMALL_LETTER_T";
4900
+ charset2[charset2["LATIN_SMALL_LETTER_U"] = 117] = "LATIN_SMALL_LETTER_U";
4901
+ charset2[charset2["LATIN_SMALL_LETTER_V"] = 118] = "LATIN_SMALL_LETTER_V";
4902
+ charset2[charset2["LATIN_SMALL_LETTER_W"] = 119] = "LATIN_SMALL_LETTER_W";
4903
+ charset2[charset2["LATIN_SMALL_LETTER_X"] = 120] = "LATIN_SMALL_LETTER_X";
4904
+ charset2[charset2["LATIN_SMALL_LETTER_Y"] = 121] = "LATIN_SMALL_LETTER_Y";
4905
+ charset2[charset2["LATIN_SMALL_LETTER_Z"] = 122] = "LATIN_SMALL_LETTER_Z";
4906
+ charset2[charset2["LEFT_CURLY_BRACKET"] = 123] = "LEFT_CURLY_BRACKET";
4907
+ charset2[charset2["VERTICAL_LINE"] = 124] = "VERTICAL_LINE";
4908
+ charset2[charset2["RIGHT_CURLY_BRACKET"] = 125] = "RIGHT_CURLY_BRACKET";
4909
+ charset2[charset2["TILDE"] = 126] = "TILDE";
4910
+ })(charset || (charset = {}));
4911
+ var escapedSequences = {
4912
+ [charset.QUOTATION_MARK]: charset.QUOTATION_MARK,
4913
+ [charset.REVERSE_SOLIDUS]: charset.REVERSE_SOLIDUS,
4914
+ [charset.SOLIDUS]: charset.SOLIDUS,
4915
+ [charset.LATIN_SMALL_LETTER_B]: charset.BACKSPACE,
4916
+ [charset.LATIN_SMALL_LETTER_F]: charset.FORM_FEED,
4917
+ [charset.LATIN_SMALL_LETTER_N]: charset.NEWLINE,
4918
+ [charset.LATIN_SMALL_LETTER_R]: charset.CARRIAGE_RETURN,
4919
+ [charset.LATIN_SMALL_LETTER_T]: charset.TAB
4920
+ };
4921
+
4922
+ // ../../node_modules/.pnpm/@streamparser+json@0.0.22/node_modules/@streamparser/json/dist/mjs/utils/types/tokenType.js
4923
+ var TokenType;
4924
+ (function(TokenType2) {
4925
+ TokenType2[TokenType2["LEFT_BRACE"] = 0] = "LEFT_BRACE";
4926
+ TokenType2[TokenType2["RIGHT_BRACE"] = 1] = "RIGHT_BRACE";
4927
+ TokenType2[TokenType2["LEFT_BRACKET"] = 2] = "LEFT_BRACKET";
4928
+ TokenType2[TokenType2["RIGHT_BRACKET"] = 3] = "RIGHT_BRACKET";
4929
+ TokenType2[TokenType2["COLON"] = 4] = "COLON";
4930
+ TokenType2[TokenType2["COMMA"] = 5] = "COMMA";
4931
+ TokenType2[TokenType2["TRUE"] = 6] = "TRUE";
4932
+ TokenType2[TokenType2["FALSE"] = 7] = "FALSE";
4933
+ TokenType2[TokenType2["NULL"] = 8] = "NULL";
4934
+ TokenType2[TokenType2["STRING"] = 9] = "STRING";
4935
+ TokenType2[TokenType2["NUMBER"] = 10] = "NUMBER";
4936
+ TokenType2[TokenType2["SEPARATOR"] = 11] = "SEPARATOR";
4937
+ })(TokenType || (TokenType = {}));
4938
+
4939
+ // ../../node_modules/.pnpm/@streamparser+json@0.0.22/node_modules/@streamparser/json/dist/mjs/tokenizer.js
4940
+ var TokenizerStates;
4941
+ (function(TokenizerStates2) {
4942
+ TokenizerStates2[TokenizerStates2["START"] = 0] = "START";
4943
+ TokenizerStates2[TokenizerStates2["ENDED"] = 1] = "ENDED";
4944
+ TokenizerStates2[TokenizerStates2["ERROR"] = 2] = "ERROR";
4945
+ TokenizerStates2[TokenizerStates2["TRUE1"] = 3] = "TRUE1";
4946
+ TokenizerStates2[TokenizerStates2["TRUE2"] = 4] = "TRUE2";
4947
+ TokenizerStates2[TokenizerStates2["TRUE3"] = 5] = "TRUE3";
4948
+ TokenizerStates2[TokenizerStates2["FALSE1"] = 6] = "FALSE1";
4949
+ TokenizerStates2[TokenizerStates2["FALSE2"] = 7] = "FALSE2";
4950
+ TokenizerStates2[TokenizerStates2["FALSE3"] = 8] = "FALSE3";
4951
+ TokenizerStates2[TokenizerStates2["FALSE4"] = 9] = "FALSE4";
4952
+ TokenizerStates2[TokenizerStates2["NULL1"] = 10] = "NULL1";
4953
+ TokenizerStates2[TokenizerStates2["NULL2"] = 11] = "NULL2";
4954
+ TokenizerStates2[TokenizerStates2["NULL3"] = 12] = "NULL3";
4955
+ TokenizerStates2[TokenizerStates2["STRING_DEFAULT"] = 13] = "STRING_DEFAULT";
4956
+ TokenizerStates2[TokenizerStates2["STRING_AFTER_BACKSLASH"] = 14] = "STRING_AFTER_BACKSLASH";
4957
+ TokenizerStates2[TokenizerStates2["STRING_UNICODE_DIGIT_1"] = 15] = "STRING_UNICODE_DIGIT_1";
4958
+ TokenizerStates2[TokenizerStates2["STRING_UNICODE_DIGIT_2"] = 16] = "STRING_UNICODE_DIGIT_2";
4959
+ TokenizerStates2[TokenizerStates2["STRING_UNICODE_DIGIT_3"] = 17] = "STRING_UNICODE_DIGIT_3";
4960
+ TokenizerStates2[TokenizerStates2["STRING_UNICODE_DIGIT_4"] = 18] = "STRING_UNICODE_DIGIT_4";
4961
+ TokenizerStates2[TokenizerStates2["STRING_INCOMPLETE_CHAR"] = 19] = "STRING_INCOMPLETE_CHAR";
4962
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_INITIAL_MINUS"] = 20] = "NUMBER_AFTER_INITIAL_MINUS";
4963
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_INITIAL_ZERO"] = 21] = "NUMBER_AFTER_INITIAL_ZERO";
4964
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_INITIAL_NON_ZERO"] = 22] = "NUMBER_AFTER_INITIAL_NON_ZERO";
4965
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_FULL_STOP"] = 23] = "NUMBER_AFTER_FULL_STOP";
4966
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_DECIMAL"] = 24] = "NUMBER_AFTER_DECIMAL";
4967
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_E"] = 25] = "NUMBER_AFTER_E";
4968
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_E_AND_SIGN"] = 26] = "NUMBER_AFTER_E_AND_SIGN";
4969
+ TokenizerStates2[TokenizerStates2["NUMBER_AFTER_E_AND_DIGIT"] = 27] = "NUMBER_AFTER_E_AND_DIGIT";
4970
+ TokenizerStates2[TokenizerStates2["SEPARATOR"] = 28] = "SEPARATOR";
4971
+ TokenizerStates2[TokenizerStates2["BOM_OR_START"] = 29] = "BOM_OR_START";
4972
+ TokenizerStates2[TokenizerStates2["BOM"] = 30] = "BOM";
4973
+ })(TokenizerStates || (TokenizerStates = {}));
4974
+
4975
+ // ../../node_modules/.pnpm/@streamparser+json@0.0.22/node_modules/@streamparser/json/dist/mjs/utils/types/stackElement.js
4976
+ var TokenParserMode;
4977
+ (function(TokenParserMode2) {
4978
+ TokenParserMode2[TokenParserMode2["OBJECT"] = 0] = "OBJECT";
4979
+ TokenParserMode2[TokenParserMode2["ARRAY"] = 1] = "ARRAY";
4980
+ })(TokenParserMode || (TokenParserMode = {}));
4981
+
4982
+ // ../../node_modules/.pnpm/@streamparser+json@0.0.22/node_modules/@streamparser/json/dist/mjs/tokenparser.js
4983
+ var TokenParserState;
4984
+ (function(TokenParserState2) {
4985
+ TokenParserState2[TokenParserState2["VALUE"] = 0] = "VALUE";
4986
+ TokenParserState2[TokenParserState2["KEY"] = 1] = "KEY";
4987
+ TokenParserState2[TokenParserState2["COLON"] = 2] = "COLON";
4988
+ TokenParserState2[TokenParserState2["COMMA"] = 3] = "COMMA";
4989
+ TokenParserState2[TokenParserState2["ENDED"] = 4] = "ENDED";
4990
+ TokenParserState2[TokenParserState2["ERROR"] = 5] = "ERROR";
4991
+ TokenParserState2[TokenParserState2["SEPARATOR"] = 6] = "SEPARATOR";
4992
+ })(TokenParserState || (TokenParserState = {}));
4993
+
4994
+ // ../get-dmmf/dist/index.mjs
4995
+ var import_pluralize = __toESM(require_pluralize(), 1);
4996
+ var debug = Debug("prisma:getDMMF");
4997
+ function externalToInternalDmmf(document) {
4998
+ return {
4999
+ ...document,
5000
+ mappings: getMappings(document.mappings, document.datamodel)
5001
+ };
5002
+ }
5003
+ function getMappings(mappings, datamodel) {
5004
+ const modelOperations = mappings.modelOperations.filter((mapping) => {
5005
+ const model = datamodel.models.find((m2) => m2.name === mapping.model);
5006
+ if (!model) {
5007
+ throw new Error(`Mapping without model ${mapping.model}`);
5008
+ }
5009
+ return model.fields.some((f) => f.kind !== "object");
5010
+ }).map((mapping) => ({
5011
+ model: mapping.model,
5012
+ plural: (0, import_pluralize.default)(uncapitalize(mapping.model)),
5013
+ findUnique: mapping.findUnique || mapping.findSingle,
5014
+ findUniqueOrThrow: mapping.findUniqueOrThrow,
5015
+ findFirst: mapping.findFirst,
5016
+ findFirstOrThrow: mapping.findFirstOrThrow,
5017
+ findMany: mapping.findMany,
5018
+ create: mapping.createOne || mapping.createSingle || mapping.create,
5019
+ createMany: mapping.createMany,
5020
+ createManyAndReturn: mapping.createManyAndReturn,
5021
+ delete: mapping.deleteOne || mapping.deleteSingle || mapping.delete,
5022
+ update: mapping.updateOne || mapping.updateSingle || mapping.update,
5023
+ deleteMany: mapping.deleteMany,
5024
+ updateMany: mapping.updateMany,
5025
+ updateManyAndReturn: mapping.updateManyAndReturn,
5026
+ upsert: mapping.upsertOne || mapping.upsertSingle || mapping.upsert,
5027
+ aggregate: mapping.aggregate,
5028
+ groupBy: mapping.groupBy,
5029
+ findRaw: mapping.findRaw,
5030
+ aggregateRaw: mapping.aggregateRaw
5031
+ }));
5032
+ return {
5033
+ modelOperations,
5034
+ otherOperations: mappings.otherOperations
5035
+ };
5036
+ }
5037
+ function uncapitalize(self2) {
5038
+ return self2.substring(0, 1).toLowerCase() + self2.substring(1);
5039
+ }
5040
+
5041
+ // ../internals/src/utils/assertNever.ts
5042
+ function assertNever(arg, errorMessage) {
5043
+ throw new Error(errorMessage);
5044
+ }
5045
+
5046
+ // ../internals/src/engine-commands/getDmmf.ts
5047
+ var debug2 = src_default("prisma:getDMMF");
5048
+ var debugErrorType = createDebugErrorType(debug2, "getDmmfWasm");
4406
5049
 
4407
5050
  // ../generator-helper/src/generatorHandler.ts
4408
5051
  var import_node_readline = __toESM(require("node:readline"));
@@ -4422,14 +5065,14 @@ function generatorHandler(handler) {
4422
5065
  id: json.id
4423
5066
  });
4424
5067
  } catch (_e) {
4425
- const e = _e;
5068
+ const e2 = _e;
4426
5069
  respond({
4427
5070
  jsonrpc: "2.0",
4428
5071
  error: {
4429
5072
  code: -32e3,
4430
- message: e.message,
5073
+ message: e2.message,
4431
5074
  data: {
4432
- stack: e.stack
5075
+ stack: e2.stack
4433
5076
  }
4434
5077
  },
4435
5078
  id: json.id
@@ -4448,14 +5091,14 @@ function generatorHandler(handler) {
4448
5091
  id: json.id
4449
5092
  });
4450
5093
  } catch (_e) {
4451
- const e = _e;
5094
+ const e2 = _e;
4452
5095
  respond({
4453
5096
  jsonrpc: "2.0",
4454
5097
  error: {
4455
5098
  code: -32e3,
4456
- message: e.message,
5099
+ message: e2.message,
4457
5100
  data: {
4458
- stack: e.stack
5101
+ stack: e2.stack
4459
5102
  }
4460
5103
  },
4461
5104
  id: json.id
@@ -4484,9 +5127,9 @@ var import_resolve = __toESM(require_resolve());
4484
5127
  async function resolveOrUndefined(id, options2) {
4485
5128
  const _options = { preserveSymlinks: false, ...options2 };
4486
5129
  return new Promise((res) => {
4487
- (0, import_resolve.default)(id, _options, (e, v) => {
4488
- if (e) res(void 0);
4489
- res(v);
5130
+ (0, import_resolve.default)(id, _options, (e2, v2) => {
5131
+ if (e2) res(void 0);
5132
+ res(v2);
4490
5133
  });
4491
5134
  });
4492
5135
  }
@@ -4495,11 +5138,6 @@ async function resolvePkg(id, options2) {
4495
5138
  return resolvedPath && import_path.default.dirname(resolvedPath);
4496
5139
  }
4497
5140
 
4498
- // ../internals/src/utils/assertNever.ts
4499
- function assertNever(arg, errorMessage) {
4500
- throw new Error(errorMessage);
4501
- }
4502
-
4503
5141
  // ../internals/src/utils/path.ts
4504
5142
  var import_path2 = __toESM(require("path"));
4505
5143
  function pathToPosix(filePath) {
@@ -4579,7 +5217,7 @@ var import_path4 = __toESM(require("path"));
4579
5217
  // package.json
4580
5218
  var package_default = {
4581
5219
  name: "@prisma/client",
4582
- version: "7.7.0-dev.1",
5220
+ version: "7.7.0-dev.2",
4583
5221
  description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
4584
5222
  keywords: [
4585
5223
  "ORM",
@@ -4861,9 +5499,85 @@ var package_default = {
4861
5499
  sideEffects: false
4862
5500
  };
4863
5501
 
4864
- // ../client-generator-js/src/getDMMF.ts
4865
- function getPrismaClientDMMF(dmmf) {
4866
- return externalToInternalDmmf(dmmf);
5502
+ // ../client-common/src/Cache.ts
5503
+ var Cache = class {
5504
+ _map = /* @__PURE__ */ new Map();
5505
+ get(key) {
5506
+ return this._map.get(key)?.value;
5507
+ }
5508
+ set(key, value) {
5509
+ this._map.set(key, { value });
5510
+ }
5511
+ getOrCreate(key, create) {
5512
+ const cached = this._map.get(key);
5513
+ if (cached) {
5514
+ return cached.value;
5515
+ }
5516
+ const value = create();
5517
+ this.set(key, value);
5518
+ return value;
5519
+ }
5520
+ };
5521
+
5522
+ // ../client-common/src/casing.ts
5523
+ function capitalize(self2) {
5524
+ if (self2.length === 0) return self2;
5525
+ return self2[0].toUpperCase() + self2.slice(1);
5526
+ }
5527
+ function uncapitalize2(self2) {
5528
+ return self2.substring(0, 1).toLowerCase() + self2.substring(1);
5529
+ }
5530
+
5531
+ // ../client-common/src/Dictionary.ts
5532
+ function keyBy(collection, prop) {
5533
+ const acc = {};
5534
+ for (const obj of collection) {
5535
+ const key = obj[prop];
5536
+ acc[key] = obj;
5537
+ }
5538
+ return acc;
5539
+ }
5540
+
5541
+ // ../client-common/src/enums.ts
5542
+ var strictEnumNames = ["TransactionIsolationLevel"];
5543
+ var objectEnumNames = ["JsonNullValueInput", "NullableJsonNullValueInput", "JsonNullValueFilter"];
5544
+
5545
+ // ../client-common/src/runtimeDataModel.ts
5546
+ function dmmfToRuntimeDataModel(dmmfDataModel) {
5547
+ return {
5548
+ models: buildMapForRuntime(dmmfDataModel.models),
5549
+ enums: buildMapForRuntime(dmmfDataModel.enums),
5550
+ types: buildMapForRuntime(dmmfDataModel.types)
5551
+ };
5552
+ }
5553
+ function pruneRuntimeDataModel({ models }) {
5554
+ const prunedModels = {};
5555
+ for (const modelName of Object.keys(models)) {
5556
+ prunedModels[modelName] = { fields: [], dbName: models[modelName].dbName };
5557
+ for (const { name, kind, type, relationName, dbName } of models[modelName].fields) {
5558
+ prunedModels[modelName].fields.push({ name, kind, type, relationName, dbName });
5559
+ }
5560
+ }
5561
+ return { models: prunedModels, enums: {}, types: {} };
5562
+ }
5563
+ function buildMapForRuntime(list) {
5564
+ const result = {};
5565
+ for (const { name, ...rest } of list) {
5566
+ result[name] = rest;
5567
+ }
5568
+ return result;
5569
+ }
5570
+
5571
+ // ../client-common/src/uniqueBy.ts
5572
+ function uniqueBy(arr, callee) {
5573
+ const result = {};
5574
+ for (const value of arr) {
5575
+ const hash = callee(value);
5576
+ if (!result[hash]) {
5577
+ result[hash] = value;
5578
+ }
5579
+ }
5580
+ return Object.values(result);
4867
5581
  }
4868
5582
 
4869
5583
  // ../client-generator-js/src/TSClient/Enum.ts
@@ -4887,7 +5601,7 @@ var Enum = class {
4887
5601
  toJS() {
4888
5602
  const { type } = this;
4889
5603
  const enumVariants = `{
4890
- ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueJS(v)}`).join(",\n"), TAB_SIZE)}
5604
+ ${(0, import_indent_string.default)(type.values.map((v2) => `${v2}: ${this.getValueJS(v2)}`).join(",\n"), TAB_SIZE)}
4891
5605
  }`;
4892
5606
  const enumBody = this.isStrictEnum() ? `makeStrictEnum(${enumVariants})` : enumVariants;
4893
5607
  return this.useNamespace ? `exports.Prisma.${type.name} = ${enumBody};` : `exports.${type.name} = exports.$Enums.${type.name} = ${enumBody};`;
@@ -4898,7 +5612,7 @@ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValu
4898
5612
  toTS() {
4899
5613
  const { type } = this;
4900
5614
  return `export const ${type.name}: {
4901
- ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueTS(v)}`).join(",\n"), TAB_SIZE)}
5615
+ ${(0, import_indent_string.default)(type.values.map((v2) => `${v2}: ${this.getValueTS(v2)}`).join(",\n"), TAB_SIZE)}
4902
5616
  };
4903
5617
 
4904
5618
  export type ${type.name} = (typeof ${type.name})[keyof typeof ${type.name}]
@@ -5081,9 +5795,9 @@ function docComment(firstParameter, ...args) {
5081
5795
  }
5082
5796
  function docCommentTag(strings, args) {
5083
5797
  const docComment2 = new DocComment();
5084
- const fullText = strings.flatMap((str, i) => {
5085
- if (i < args.length) {
5086
- return [str, args[i]];
5798
+ const fullText = strings.flatMap((str, i2) => {
5799
+ if (i2 < args.length) {
5800
+ return [str, args[i2]];
5087
5801
  }
5088
5802
  return [str];
5089
5803
  }).join("");
@@ -5109,11 +5823,11 @@ function findFirstNonEmptyLine(lines2) {
5109
5823
  return lines2.findIndex((line) => !isEmptyLine(line));
5110
5824
  }
5111
5825
  function findLastNonEmptyLine(lines2) {
5112
- let i = lines2.length - 1;
5113
- while (i > 0 && isEmptyLine(lines2[i])) {
5114
- i--;
5826
+ let i2 = lines2.length - 1;
5827
+ while (i2 > 0 && isEmptyLine(lines2[i2])) {
5828
+ i2--;
5115
5829
  }
5116
- return i;
5830
+ return i2;
5117
5831
  }
5118
5832
  function isEmptyLine(line) {
5119
5833
  return line.trim().length === 0;
@@ -5233,9 +5947,9 @@ var File = class {
5233
5947
  if (this.imports.length > 0) {
5234
5948
  writer.newLine();
5235
5949
  }
5236
- for (const [i, declaration] of this.declarations.entries()) {
5950
+ for (const [i2, declaration] of this.declarations.entries()) {
5237
5951
  writer.writeLine(declaration);
5238
- if (i < this.declarations.length - 1) {
5952
+ if (i2 < this.declarations.length - 1) {
5239
5953
  writer.newLine();
5240
5954
  }
5241
5955
  }
@@ -5560,7 +6274,7 @@ var IntersectionType = class extends TypeBuilder {
5560
6274
  });
5561
6275
  }
5562
6276
  mapTypes(callback) {
5563
- return intersectionType(this.members.map((m) => callback(m)));
6277
+ return intersectionType(this.members.map((m2) => callback(m2)));
5564
6278
  }
5565
6279
  };
5566
6280
  function intersectionType(types) {
@@ -5569,8 +6283,8 @@ function intersectionType(types) {
5569
6283
  throw new TypeError("Intersection types array can not be empty");
5570
6284
  }
5571
6285
  const intersection = new IntersectionType(types[0]);
5572
- for (let i = 1; i < types.length; i++) {
5573
- intersection.addType(types[i]);
6286
+ for (let i2 = 1; i2 < types.length; i2++) {
6287
+ intersection.addType(types[i2]);
5574
6288
  }
5575
6289
  return intersection;
5576
6290
  }
@@ -5797,11 +6511,11 @@ var Writer = class {
5797
6511
  * @param writeItem allow to customize how individual item is written
5798
6512
  * @returns
5799
6513
  */
5800
- writeJoined(separator, values, writeItem = (item2, w) => w.write(item2)) {
6514
+ writeJoined(separator, values, writeItem = (item2, w2) => w2.write(item2)) {
5801
6515
  const last = values.length - 1;
5802
- for (let i = 0; i < values.length; i++) {
5803
- writeItem(values[i], this);
5804
- if (i !== last) {
6516
+ for (let i2 = 0; i2 < values.length; i2++) {
6517
+ writeItem(values[i2], this);
6518
+ if (i2 !== last) {
5805
6519
  this.write(separator);
5806
6520
  }
5807
6521
  }
@@ -6062,7 +6776,7 @@ var UnionType = class extends TypeBuilder {
6062
6776
  });
6063
6777
  }
6064
6778
  mapVariants(callback) {
6065
- return unionType(this.variants.map((v) => callback(v)));
6779
+ return unionType(this.variants.map((v2) => callback(v2)));
6066
6780
  }
6067
6781
  };
6068
6782
  function unionType(types) {
@@ -6071,8 +6785,8 @@ function unionType(types) {
6071
6785
  throw new TypeError("Union types array can not be empty");
6072
6786
  }
6073
6787
  const union = new UnionType(types[0]);
6074
- for (let i = 1; i < types.length; i++) {
6075
- union.addVariant(types[i]);
6788
+ for (let i2 = 1; i2 < types.length; i2++) {
6789
+ union.addVariant(types[i2]);
6076
6790
  }
6077
6791
  return union;
6078
6792
  }
@@ -6100,7 +6814,7 @@ var import_indent_string2 = __toESM(require_indent_string());
6100
6814
  function datamodelEnumToSchemaEnum(datamodelEnum) {
6101
6815
  return {
6102
6816
  name: datamodelEnum.name,
6103
- values: datamodelEnum.values.map((v) => v.name)
6817
+ values: datamodelEnum.values.map((v2) => v2.name)
6104
6818
  };
6105
6819
  }
6106
6820
 
@@ -6333,30 +7047,30 @@ function buildInputField(field, context, source) {
6333
7047
  }
6334
7048
  return tsProperty;
6335
7049
  }
6336
- function buildSingleFieldType(t, genericsInfo, source) {
7050
+ function buildSingleFieldType(t2, genericsInfo, source) {
6337
7051
  let type;
6338
- const scalarType = GraphQLScalarToJSTypeTable[t.type];
6339
- if (t.location === "enumTypes" && t.namespace === "model") {
6340
- type = namedType(`$Enums.${t.type}`);
6341
- } else if (t.type === "Null") {
7052
+ const scalarType = GraphQLScalarToJSTypeTable[t2.type];
7053
+ if (t2.location === "enumTypes" && t2.namespace === "model") {
7054
+ type = namedType(`$Enums.${t2.type}`);
7055
+ } else if (t2.type === "Null") {
6342
7056
  return nullType;
6343
7057
  } else if (Array.isArray(scalarType)) {
6344
7058
  const union = unionType(scalarType.map(namedInputType));
6345
- if (t.isList) {
7059
+ if (t2.isList) {
6346
7060
  return union.mapVariants((variant) => array(variant));
6347
7061
  }
6348
7062
  return union;
6349
7063
  } else {
6350
- type = namedInputType(scalarType ?? t.type);
7064
+ type = namedInputType(scalarType ?? t2.type);
6351
7065
  }
6352
- if (genericsInfo.typeRefNeedsGenericModelArg(t)) {
7066
+ if (genericsInfo.typeRefNeedsGenericModelArg(t2)) {
6353
7067
  if (source) {
6354
7068
  type.addGenericArgument(stringLiteral(source));
6355
7069
  } else {
6356
7070
  type.addGenericArgument(namedType("$PrismaModel"));
6357
7071
  }
6358
7072
  }
6359
- if (t.isList) {
7073
+ if (t2.isList) {
6360
7074
  return array(type);
6361
7075
  }
6362
7076
  return type;
@@ -6365,8 +7079,8 @@ function namedInputType(typeName) {
6365
7079
  return namedType(JSOutputTypeToInputType[typeName] ?? typeName);
6366
7080
  }
6367
7081
  function buildAllFieldTypes(inputTypes, context, source) {
6368
- const inputObjectTypes = inputTypes.filter((t) => t.location === "inputObjectTypes" && !t.isList);
6369
- const otherTypes = inputTypes.filter((t) => t.location !== "inputObjectTypes" || t.isList);
7082
+ const inputObjectTypes = inputTypes.filter((t2) => t2.location === "inputObjectTypes" && !t2.isList);
7083
+ const otherTypes = inputTypes.filter((t2) => t2.location !== "inputObjectTypes" || t2.isList);
6370
7084
  const tsInputObjectTypes = inputObjectTypes.map((type) => buildSingleFieldType(type, context.genericArgsInfo, source));
6371
7085
  const tsOtherTypes = otherTypes.map((type) => buildSingleFieldType(type, context.genericArgsInfo, source));
6372
7086
  if (tsOtherTypes.length === 0) {
@@ -6425,73 +7139,73 @@ function wrapWithAtLeast(body, input) {
6425
7139
  var import_indent_string3 = __toESM(require_indent_string());
6426
7140
 
6427
7141
  // ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs
6428
- function klona(x) {
6429
- if (typeof x !== "object") return x;
6430
- var k, tmp, str = Object.prototype.toString.call(x);
7142
+ function klona(x2) {
7143
+ if (typeof x2 !== "object") return x2;
7144
+ var k2, tmp, str = Object.prototype.toString.call(x2);
6431
7145
  if (str === "[object Object]") {
6432
- if (x.constructor !== Object && typeof x.constructor === "function") {
6433
- tmp = new x.constructor();
6434
- for (k in x) {
6435
- if (x.hasOwnProperty(k) && tmp[k] !== x[k]) {
6436
- tmp[k] = klona(x[k]);
7146
+ if (x2.constructor !== Object && typeof x2.constructor === "function") {
7147
+ tmp = new x2.constructor();
7148
+ for (k2 in x2) {
7149
+ if (x2.hasOwnProperty(k2) && tmp[k2] !== x2[k2]) {
7150
+ tmp[k2] = klona(x2[k2]);
6437
7151
  }
6438
7152
  }
6439
7153
  } else {
6440
7154
  tmp = {};
6441
- for (k in x) {
6442
- if (k === "__proto__") {
6443
- Object.defineProperty(tmp, k, {
6444
- value: klona(x[k]),
7155
+ for (k2 in x2) {
7156
+ if (k2 === "__proto__") {
7157
+ Object.defineProperty(tmp, k2, {
7158
+ value: klona(x2[k2]),
6445
7159
  configurable: true,
6446
7160
  enumerable: true,
6447
7161
  writable: true
6448
7162
  });
6449
7163
  } else {
6450
- tmp[k] = klona(x[k]);
7164
+ tmp[k2] = klona(x2[k2]);
6451
7165
  }
6452
7166
  }
6453
7167
  }
6454
7168
  return tmp;
6455
7169
  }
6456
7170
  if (str === "[object Array]") {
6457
- k = x.length;
6458
- for (tmp = Array(k); k--; ) {
6459
- tmp[k] = klona(x[k]);
7171
+ k2 = x2.length;
7172
+ for (tmp = Array(k2); k2--; ) {
7173
+ tmp[k2] = klona(x2[k2]);
6460
7174
  }
6461
7175
  return tmp;
6462
7176
  }
6463
7177
  if (str === "[object Set]") {
6464
7178
  tmp = /* @__PURE__ */ new Set();
6465
- x.forEach(function(val) {
7179
+ x2.forEach(function(val) {
6466
7180
  tmp.add(klona(val));
6467
7181
  });
6468
7182
  return tmp;
6469
7183
  }
6470
7184
  if (str === "[object Map]") {
6471
7185
  tmp = /* @__PURE__ */ new Map();
6472
- x.forEach(function(val, key) {
7186
+ x2.forEach(function(val, key) {
6473
7187
  tmp.set(klona(key), klona(val));
6474
7188
  });
6475
7189
  return tmp;
6476
7190
  }
6477
7191
  if (str === "[object Date]") {
6478
- return /* @__PURE__ */ new Date(+x);
7192
+ return /* @__PURE__ */ new Date(+x2);
6479
7193
  }
6480
7194
  if (str === "[object RegExp]") {
6481
- tmp = new RegExp(x.source, x.flags);
6482
- tmp.lastIndex = x.lastIndex;
7195
+ tmp = new RegExp(x2.source, x2.flags);
7196
+ tmp.lastIndex = x2.lastIndex;
6483
7197
  return tmp;
6484
7198
  }
6485
7199
  if (str === "[object DataView]") {
6486
- return new x.constructor(klona(x.buffer));
7200
+ return new x2.constructor(klona(x2.buffer));
6487
7201
  }
6488
7202
  if (str === "[object ArrayBuffer]") {
6489
- return x.slice(0);
7203
+ return x2.slice(0);
6490
7204
  }
6491
7205
  if (str.slice(-6) === "Array]") {
6492
- return new x.constructor(x);
7206
+ return new x2.constructor(x2);
6493
7207
  }
6494
- return x;
7208
+ return x2;
6495
7209
  }
6496
7210
 
6497
7211
  // ../client-generator-js/src/TSClient/helpers.ts
@@ -6570,7 +7284,7 @@ const ${ctx.singular} = await ${ctx.method}({
6570
7284
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
6571
7285
  @example
6572
7286
  // Create many ${ctx.plural}
6573
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7287
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6574
7288
  data: [
6575
7289
  // ... provide data here
6576
7290
  ]
@@ -6584,7 +7298,7 @@ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
6584
7298
  body: (ctx) => {
6585
7299
  const onlySelect = ctx.firstScalar ? `
6586
7300
  // Create many ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
6587
- const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
7301
+ const ${uncapitalize2(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
6588
7302
  select: { ${ctx.firstScalar.name}: true },
6589
7303
  data: [
6590
7304
  // ... provide data here
@@ -6594,7 +7308,7 @@ const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}O
6594
7308
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
6595
7309
  @example
6596
7310
  // Create many ${ctx.plural}
6597
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7311
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6598
7312
  data: [
6599
7313
  // ... provide data here
6600
7314
  ]
@@ -6612,7 +7326,7 @@ ${undefinedNote}
6612
7326
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
6613
7327
  @example
6614
7328
  // Get one ${ctx.singular}
6615
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7329
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6616
7330
  where: {
6617
7331
  // ... provide filter here
6618
7332
  }
@@ -6627,7 +7341,7 @@ if no matches were found.
6627
7341
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
6628
7342
  @example
6629
7343
  // Get one ${ctx.singular}
6630
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7344
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6631
7345
  where: {
6632
7346
  // ... provide filter here
6633
7347
  }
@@ -6642,7 +7356,7 @@ ${undefinedNote}
6642
7356
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
6643
7357
  @example
6644
7358
  // Get one ${ctx.singular}
6645
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7359
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6646
7360
  where: {
6647
7361
  // ... provide filter here
6648
7362
  }
@@ -6663,7 +7377,7 @@ ${undefinedNote}
6663
7377
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
6664
7378
  @example
6665
7379
  // Get one ${ctx.singular}
6666
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7380
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6667
7381
  where: {
6668
7382
  // ... provide filter here
6669
7383
  }
@@ -6681,7 +7395,7 @@ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
6681
7395
  body: (ctx) => {
6682
7396
  const onlySelect = ctx.firstScalar ? `
6683
7397
  // Only select the \`${ctx.firstScalar.name}\`
6684
- const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
7398
+ const ${uncapitalize2(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
6685
7399
  return `Find zero or more ${ctx.plural} that matches the filter.
6686
7400
  ${undefinedNote}
6687
7401
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to filter and select certain fields only.
@@ -6708,7 +7422,7 @@ ${onlySelect}
6708
7422
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one ${ctx.singular}.
6709
7423
  @example
6710
7424
  // Update one ${ctx.singular}
6711
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7425
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6712
7426
  where: {
6713
7427
  // ... provide filter here
6714
7428
  },
@@ -6727,7 +7441,7 @@ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
6727
7441
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update or create a ${ctx.singular}.
6728
7442
  @example
6729
7443
  // Update or create a ${ctx.singular}
6730
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7444
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6731
7445
  create: {
6732
7446
  // ... data to create a ${ctx.singular}
6733
7447
  },
@@ -6821,7 +7535,7 @@ ${undefinedNote}
6821
7535
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one or more rows.
6822
7536
  @example
6823
7537
  // Update many ${ctx.plural}
6824
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7538
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6825
7539
  where: {
6826
7540
  // ... provide filter here
6827
7541
  },
@@ -6840,7 +7554,7 @@ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
6840
7554
  body: (ctx) => {
6841
7555
  const onlySelect = ctx.firstScalar ? `
6842
7556
  // Update zero or more ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
6843
- const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
7557
+ const ${uncapitalize2(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
6844
7558
  select: { ${ctx.firstScalar.name}: true },
6845
7559
  where: {
6846
7560
  // ... provide filter here
@@ -6853,7 +7567,7 @@ const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}O
6853
7567
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update many ${ctx.plural}.
6854
7568
  @example
6855
7569
  // Update many ${ctx.plural}
6856
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7570
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6857
7571
  where: {
6858
7572
  // ... provide filter here
6859
7573
  },
@@ -6891,7 +7605,7 @@ const { count } = await ${ctx.method}({
6891
7605
  body: (ctx) => `Perform aggregation operations on a ${ctx.singular}.
6892
7606
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which aggregations you would like to apply.
6893
7607
  @example
6894
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7608
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6895
7609
  pipeline: [
6896
7610
  { $match: { status: "registered" } },
6897
7611
  { $group: { _id: "$country", total: { $sum: 1 } } }
@@ -6906,7 +7620,7 @@ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
6906
7620
  body: (ctx) => `Find zero or more ${ctx.plural} that matches the filter.
6907
7621
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which filters you would like to apply.
6908
7622
  @example
6909
- const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
7623
+ const ${uncapitalize2(ctx.mapping.model)} = await ${ctx.method}({
6910
7624
  filter: { age: { $gt: 25 } }
6911
7625
  })`,
6912
7626
  fields: {
@@ -6922,7 +7636,7 @@ function getMethodJSDocBody(action2, mapping, model) {
6922
7636
  singular: capitalize(mapping.model),
6923
7637
  plural: capitalize(mapping.plural),
6924
7638
  firstScalar: model.fields.find((f) => f.kind === "scalar"),
6925
- method: `prisma.${uncapitalize(mapping.model)}.${action2}`,
7639
+ method: `prisma.${uncapitalize2(mapping.model)}.${action2}`,
6926
7640
  action: action2,
6927
7641
  mapping,
6928
7642
  model
@@ -7133,7 +7847,7 @@ function buildModelPayload(model, context) {
7133
7847
  scalars.add(buildModelOutputProperty(field, context.dmmf));
7134
7848
  }
7135
7849
  }
7136
- const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(uncapitalize(model.name)));
7850
+ const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(uncapitalize2(model.name)));
7137
7851
  const payloadTypeDeclaration = typeDeclaration(
7138
7852
  getPayloadName(model.name, false),
7139
7853
  objectType().add(property("name", stringLiteral(model.name))).add(property("objects", objects)).add(property("scalars", scalarsType)).add(property("composites", composites))
@@ -7177,7 +7891,7 @@ function buildSelectType({
7177
7891
  return buildExport(typeName, selectType);
7178
7892
  }
7179
7893
  function modelResultExtensionsType(modelName) {
7180
- return extArgsParam.toArgument().subKey("result").subKey(uncapitalize(modelName));
7894
+ return extArgsParam.toArgument().subKey("result").subKey(uncapitalize2(modelName));
7181
7895
  }
7182
7896
  function buildScalarSelectType({ modelName, fields, context }) {
7183
7897
  const object = buildSelectOrIncludeObject(
@@ -7245,7 +7959,7 @@ var Model = class {
7245
7959
  this.type = this.context.dmmf.outputTypeMap.model[model.name];
7246
7960
  this.createManyAndReturnType = this.context.dmmf.outputTypeMap.model[getCreateManyAndReturnOutputType(model.name)];
7247
7961
  this.updateManyAndReturnType = this.context.dmmf.outputTypeMap.model[getUpdateManyAndReturnOutputType(model.name)];
7248
- this.mapping = this.context.dmmf.mappings.modelOperations.find((m) => m.model === model.name);
7962
+ this.mapping = this.context.dmmf.mappings.modelOperations.find((m2) => m2.model === model.name);
7249
7963
  }
7250
7964
  type;
7251
7965
  createManyAndReturnType;
@@ -8561,7 +9275,7 @@ var DMMFHelper = class {
8561
9275
  _outputTypeMap;
8562
9276
  _rootFieldMap;
8563
9277
  get compositeNames() {
8564
- return this._compositeNames ??= new Set(this.datamodel.types.map((t) => t.name));
9278
+ return this._compositeNames ??= new Set(this.datamodel.types.map((t2) => t2.name));
8565
9279
  }
8566
9280
  get inputTypesByName() {
8567
9281
  return this._inputTypesByName ??= this.buildInputTypesMap();
@@ -9473,7 +10187,7 @@ function globalOmitConfig(dmmf) {
9473
10187
  const objectType2 = objectType().addMultiple(
9474
10188
  dmmf.datamodel.models.map((model) => {
9475
10189
  const type = namedType(getOmitName(model.name));
9476
- return property(uncapitalize(model.name), type).optional();
10190
+ return property(uncapitalize2(model.name), type).optional();
9477
10191
  })
9478
10192
  );
9479
10193
  return moduleExport(typeDeclaration("GlobalOmitConfig", objectType2));
@@ -9482,11 +10196,11 @@ function globalOmitConfig(dmmf) {
9482
10196
  // ../client-generator-js/src/TSClient/PrismaClient.ts
9483
10197
  function clientTypeMapModelsDefinition(context) {
9484
10198
  const meta = objectType();
9485
- const modelNames = context.dmmf.datamodel.models.map((m) => m.name);
10199
+ const modelNames = context.dmmf.datamodel.models.map((m2) => m2.name);
9486
10200
  if (modelNames.length === 0) {
9487
10201
  meta.add(property("modelProps", neverType));
9488
10202
  } else {
9489
- meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(uncapitalize(name))))));
10203
+ meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(uncapitalize2(name))))));
9490
10204
  }
9491
10205
  const isolationLevel = context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
9492
10206
  meta.add(property("txIsolationLevel", isolationLevel));
@@ -9768,7 +10482,7 @@ var PrismaClientClass = class {
9768
10482
  * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
9769
10483
  * })
9770
10484
  * // Fetch zero or more ${capitalize(example.plural)}
9771
- * const ${uncapitalize(example.plural)} = await prisma.${uncapitalize(example.model)}.findMany()
10485
+ * const ${uncapitalize2(example.plural)} = await prisma.${uncapitalize2(example.model)}.findMany()
9772
10486
  * \`\`\`
9773
10487
  *
9774
10488
  *
@@ -9808,24 +10522,24 @@ ${[
9808
10522
  interactiveTransactionDefinition(this.context),
9809
10523
  runCommandRawDefinition(this.context),
9810
10524
  extendsPropertyDefinition()
9811
- ].filter((d) => d !== null).join("\n").trim()}
10525
+ ].filter((d2) => d2 !== null).join("\n").trim()}
9812
10526
 
9813
10527
  ${(0, import_indent_string6.default)(
9814
- dmmf.mappings.modelOperations.filter((m) => m.findMany).map((m) => {
9815
- let methodName = uncapitalize(m.model);
10528
+ dmmf.mappings.modelOperations.filter((m2) => m2.findMany).map((m2) => {
10529
+ let methodName = uncapitalize2(m2.model);
9816
10530
  if (methodName === "constructor") {
9817
10531
  methodName = '["constructor"]';
9818
10532
  }
9819
10533
  const generics = ["ExtArgs", "ClientOptions"];
9820
10534
  return `/**
9821
- * \`prisma.${methodName}\`: Exposes CRUD operations for the **${m.model}** model.
10535
+ * \`prisma.${methodName}\`: Exposes CRUD operations for the **${m2.model}** model.
9822
10536
  * Example usage:
9823
10537
  * \`\`\`ts
9824
- * // Fetch zero or more ${capitalize(m.plural)}
9825
- * const ${uncapitalize(m.plural)} = await prisma.${methodName}.findMany()
10538
+ * // Fetch zero or more ${capitalize(m2.plural)}
10539
+ * const ${uncapitalize2(m2.plural)} = await prisma.${methodName}.findMany()
9826
10540
  * \`\`\`
9827
10541
  */
9828
- get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
10542
+ get ${methodName}(): Prisma.${m2.model}Delegate<${generics.join(", ")}>;`;
9829
10543
  }).join("\n\n"),
9830
10544
  2
9831
10545
  )}
@@ -9947,7 +10661,7 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, ${transactionCl
9947
10661
  );
9948
10662
  if (
9949
10663
  // We don't support a custom adapter with MongoDB for now.
9950
- this.internalDatasources.some((d) => d.provider !== "mongodb")
10664
+ this.internalDatasources.some((d2) => d2.provider !== "mongodb")
9951
10665
  ) {
9952
10666
  clientOptions.add(
9953
10667
  property("adapter", namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
@@ -10042,7 +10756,7 @@ ${this.dmmf.datamodel.enums.map((datamodelEnum) => new Enum(datamodelEnumToSchem
10042
10756
  ${new Enum(
10043
10757
  {
10044
10758
  name: "ModelName",
10045
- values: this.dmmf.mappings.modelOperations.map((m) => m.model)
10759
+ values: this.dmmf.mappings.modelOperations.map((m2) => m2.model)
10046
10760
  },
10047
10761
  true
10048
10762
  ).toJS()}
@@ -10101,7 +10815,7 @@ Object.assign(exports, Prisma)
10101
10815
  );
10102
10816
  }
10103
10817
  const fieldRefs = this.dmmf.schema.fieldRefTypes.prisma?.map((type) => new FieldRefInput(type).toTS()) ?? [];
10104
- const countTypes = this.dmmf.schema.outputObjectTypes.prisma?.filter((t) => t.name.endsWith("CountOutputType")).map((t) => new Count(t, context));
10818
+ const countTypes = this.dmmf.schema.outputObjectTypes.prisma?.filter((t2) => t2.name.endsWith("CountOutputType")).map((t2) => new Count(t2, context));
10105
10819
  const code = `
10106
10820
  /**
10107
10821
  * Client
@@ -10109,7 +10823,7 @@ Object.assign(exports, Prisma)
10109
10823
 
10110
10824
  ${commonCode.tsWithoutNamespace()}
10111
10825
 
10112
- ${modelAndTypes.map((m) => m.toTSWithoutNamespace()).join("\n")}
10826
+ ${modelAndTypes.map((m2) => m2.toTSWithoutNamespace()).join("\n")}
10113
10827
  ${modelEnums.length > 0 ? `
10114
10828
  /**
10115
10829
  * Enums
@@ -10128,7 +10842,7 @@ ${(0, import_indent_string7.default)(
10128
10842
  ${new Enum(
10129
10843
  {
10130
10844
  name: "ModelName",
10131
- values: this.dmmf.mappings.modelOperations.map((m) => m.model)
10845
+ values: this.dmmf.mappings.modelOperations.map((m2) => m2.model)
10132
10846
  },
10133
10847
  true
10134
10848
  ).toTS()}
@@ -10142,7 +10856,7 @@ export type Datasource = {
10142
10856
  * Count Types
10143
10857
  */
10144
10858
 
10145
- ${countTypes.map((t) => t.toTS()).join("\n")}
10859
+ ${countTypes.map((t2) => t2.toTS()).join("\n")}
10146
10860
 
10147
10861
  /**
10148
10862
  * Models
@@ -10218,7 +10932,7 @@ ${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(type, false).toJS()).
10218
10932
  ${new Enum(
10219
10933
  {
10220
10934
  name: "ModelName",
10221
- values: this.dmmf.mappings.modelOperations.map((m) => m.model)
10935
+ values: this.dmmf.mappings.modelOperations.map((m2) => m2.model)
10222
10936
  },
10223
10937
  true
10224
10938
  ).toJS()}
@@ -10570,7 +11284,7 @@ async function buildClient({
10570
11284
  compilerBuild
10571
11285
  }) {
10572
11286
  const baseClientOptions = {
10573
- dmmf: getPrismaClientDMMF(dmmf),
11287
+ dmmf: externalToInternalDmmf(dmmf),
10574
11288
  datasources,
10575
11289
  generator,
10576
11290
  binaryPaths,
@@ -10944,11 +11658,11 @@ async function verifyOutputDirectory(directory, datamodel, schemaPath) {
10944
11658
  let content;
10945
11659
  try {
10946
11660
  content = await import_promises2.default.readFile(import_path4.default.join(directory, "package.json"), "utf8");
10947
- } catch (e) {
10948
- if (e.code === "ENOENT") {
11661
+ } catch (e2) {
11662
+ if (e2.code === "ENOENT") {
10949
11663
  return;
10950
11664
  }
10951
- throw e;
11665
+ throw e2;
10952
11666
  }
10953
11667
  const { name } = JSON.parse(content);
10954
11668
  if (name === package_default.name) {
@@ -10979,9 +11693,9 @@ function replacePackageName(directoryPath, replacement) {
10979
11693
  }
10980
11694
  function findOutputPathDeclaration(datamodel) {
10981
11695
  const lines2 = datamodel.split(/\r?\n/);
10982
- for (const [i, line] of lines2.entries()) {
11696
+ for (const [i2, line] of lines2.entries()) {
10983
11697
  if (/output\s*=/.test(line)) {
10984
- return { lineNumber: i + 1, content: line.trim() };
11698
+ return { lineNumber: i2 + 1, content: line.trim() };
10985
11699
  }
10986
11700
  }
10987
11701
  return null;
@@ -11018,7 +11732,7 @@ var import_node_path4 = __toESM(require("node:path"));
11018
11732
  var import_engines_version = __toESM(require_engines_version());
11019
11733
 
11020
11734
  // ../client-generator-js/package.json
11021
- var version = "7.7.0-dev.1";
11735
+ var version = "7.7.0-dev.2";
11022
11736
 
11023
11737
  // ../client-generator-js/src/resolvePrismaClient.ts
11024
11738
  var import_promises5 = __toESM(require("node:fs/promises"));
@@ -11140,8 +11854,8 @@ var INSTALL_PAGE = {
11140
11854
  "npm": "https://docs.npmjs.com/cli/v8/configuring-npm/install"
11141
11855
  };
11142
11856
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11143
- function getDefaultExportFromCjs(x) {
11144
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11857
+ function getDefaultExportFromCjs(x2) {
11858
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11145
11859
  }
11146
11860
  var { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
11147
11861
  var crossSpawn$1 = { exports: {} };
@@ -11162,9 +11876,9 @@ function requireWindows() {
11162
11876
  if (pathext.indexOf("") !== -1) {
11163
11877
  return true;
11164
11878
  }
11165
- for (var i = 0; i < pathext.length; i++) {
11166
- var p = pathext[i].toLowerCase();
11167
- if (p && path10.substr(-p.length).toLowerCase() === p) {
11879
+ for (var i2 = 0; i2 < pathext.length; i2++) {
11880
+ var p2 = pathext[i2].toLowerCase();
11881
+ if (p2 && path10.substr(-p2.length).toLowerCase() === p2) {
11168
11882
  return true;
11169
11883
  }
11170
11884
  }
@@ -11211,11 +11925,11 @@ function requireMode() {
11211
11925
  var gid = stat.gid;
11212
11926
  var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid();
11213
11927
  var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid();
11214
- var u = parseInt("100", 8);
11928
+ var u2 = parseInt("100", 8);
11215
11929
  var g = parseInt("010", 8);
11216
- var o = parseInt("001", 8);
11217
- var ug = u | g;
11218
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
11930
+ var o2 = parseInt("001", 8);
11931
+ var ug = u2 | g;
11932
+ var ret = mod & o2 || mod & g && gid === myGid || mod & u2 && uid === myUid || mod & ug && myUid === 0;
11219
11933
  return ret;
11220
11934
  }
11221
11935
  return mode;
@@ -11302,27 +12016,27 @@ var which$3 = (cmd, opt, cb) => {
11302
12016
  opt = {};
11303
12017
  const { pathEnv, pathExt, pathExtExe } = getPathInfo$1(cmd, opt);
11304
12018
  const found = [];
11305
- const step = (i) => new Promise((resolve3, reject) => {
11306
- if (i === pathEnv.length)
12019
+ const step = (i2) => new Promise((resolve3, reject) => {
12020
+ if (i2 === pathEnv.length)
11307
12021
  return opt.all && found.length ? resolve3(found) : reject(getNotFoundError$1(cmd));
11308
- const ppRaw = pathEnv[i];
12022
+ const ppRaw = pathEnv[i2];
11309
12023
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
11310
12024
  const pCmd = path$2.join(pathPart, cmd);
11311
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
11312
- resolve3(subStep(p, i, 0));
12025
+ const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
12026
+ resolve3(subStep(p2, i2, 0));
11313
12027
  });
11314
- const subStep = (p, i, ii) => new Promise((resolve3, reject) => {
12028
+ const subStep = (p2, i2, ii) => new Promise((resolve3, reject) => {
11315
12029
  if (ii === pathExt.length)
11316
- return resolve3(step(i + 1));
12030
+ return resolve3(step(i2 + 1));
11317
12031
  const ext = pathExt[ii];
11318
- isexe$3(p + ext, { pathExt: pathExtExe }, (er, is) => {
12032
+ isexe$3(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
11319
12033
  if (!er && is) {
11320
12034
  if (opt.all)
11321
- found.push(p + ext);
12035
+ found.push(p2 + ext);
11322
12036
  else
11323
- return resolve3(p + ext);
12037
+ return resolve3(p2 + ext);
11324
12038
  }
11325
- return resolve3(subStep(p, i, ii + 1));
12039
+ return resolve3(subStep(p2, i2, ii + 1));
11326
12040
  });
11327
12041
  });
11328
12042
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -11331,13 +12045,13 @@ var whichSync$1 = (cmd, opt) => {
11331
12045
  opt = opt || {};
11332
12046
  const { pathEnv, pathExt, pathExtExe } = getPathInfo$1(cmd, opt);
11333
12047
  const found = [];
11334
- for (let i = 0; i < pathEnv.length; i++) {
11335
- const ppRaw = pathEnv[i];
12048
+ for (let i2 = 0; i2 < pathEnv.length; i2++) {
12049
+ const ppRaw = pathEnv[i2];
11336
12050
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
11337
12051
  const pCmd = path$2.join(pathPart, cmd);
11338
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
11339
- for (let j = 0; j < pathExt.length; j++) {
11340
- const cur = p + pathExt[j];
12052
+ const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
12053
+ for (let j2 = 0; j2 < pathExt.length; j2++) {
12054
+ const cur = p2 + pathExt[j2];
11341
12055
  try {
11342
12056
  const is = isexe$3.sync(cur, { pathExt: pathExtExe });
11343
12057
  if (is) {
@@ -11390,7 +12104,7 @@ function resolveCommandAttempt(parsed, withoutPathExt) {
11390
12104
  path: env2[getPathKey({ env: env2 })],
11391
12105
  pathExt: withoutPathExt ? path$1.delimiter : void 0
11392
12106
  });
11393
- } catch (e) {
12107
+ } catch (e2) {
11394
12108
  } finally {
11395
12109
  if (shouldSwitchCwd) {
11396
12110
  process.chdir(cwd);
@@ -11448,7 +12162,7 @@ function readShebang$1(command) {
11448
12162
  fd = fs2.openSync(command, "r");
11449
12163
  fs2.readSync(fd, buffer, 0, size, 0);
11450
12164
  fs2.closeSync(fd);
11451
- } catch (e) {
12165
+ } catch (e2) {
11452
12166
  }
11453
12167
  return shebangCommand(buffer.toString());
11454
12168
  }
@@ -12187,14 +12901,14 @@ var Emitter = class {
12187
12901
  }
12188
12902
  removeListener(ev, fn) {
12189
12903
  const list = this.listeners[ev];
12190
- const i = list.indexOf(fn);
12191
- if (i === -1) {
12904
+ const i2 = list.indexOf(fn);
12905
+ if (i2 === -1) {
12192
12906
  return;
12193
12907
  }
12194
- if (i === 0 && list.length === 1) {
12908
+ if (i2 === 0 && list.length === 1) {
12195
12909
  list.length = 0;
12196
12910
  } else {
12197
- list.splice(i, 1);
12911
+ list.splice(i2, 1);
12198
12912
  }
12199
12913
  }
12200
12914
  emit(ev, code, signal) {
@@ -12257,16 +12971,16 @@ var SignalExit = class extends SignalExitBase {
12257
12971
  this.#sigListeners[sig] = () => {
12258
12972
  const listeners = this.#process.listeners(sig);
12259
12973
  let { count } = this.#emitter;
12260
- const p = process4;
12261
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
12262
- count += p.__signal_exit_emitter__.count;
12974
+ const p2 = process4;
12975
+ if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
12976
+ count += p2.__signal_exit_emitter__.count;
12263
12977
  }
12264
12978
  if (listeners.length === count) {
12265
12979
  this.unload();
12266
12980
  const ret = this.#emitter.emit("exit", null, sig);
12267
- const s = sig === "SIGHUP" ? this.#hupSig : sig;
12981
+ const s2 = sig === "SIGHUP" ? this.#hupSig : sig;
12268
12982
  if (!ret)
12269
- process4.kill(process4.pid, s);
12983
+ process4.kill(process4.pid, s2);
12270
12984
  }
12271
12985
  };
12272
12986
  }
@@ -12301,7 +13015,7 @@ var SignalExit = class extends SignalExitBase {
12301
13015
  const fn = this.#sigListeners[sig];
12302
13016
  if (fn)
12303
13017
  this.#process.on(sig, fn);
12304
- } catch (_) {
13018
+ } catch (_2) {
12305
13019
  }
12306
13020
  }
12307
13021
  this.#process.emit = (ev, ...a) => {
@@ -12323,7 +13037,7 @@ var SignalExit = class extends SignalExitBase {
12323
13037
  }
12324
13038
  try {
12325
13039
  this.#process.removeListener(sig, listener);
12326
- } catch (_) {
13040
+ } catch (_2) {
12327
13041
  }
12328
13042
  });
12329
13043
  this.#process.emit = this.#originalProcessEmit;
@@ -12392,11 +13106,11 @@ var setKillTimeout = (kill, signal, options2, killResult) => {
12392
13106
  return;
12393
13107
  }
12394
13108
  const timeout = getForceKillAfterTimeout(options2);
12395
- const t = setTimeout(() => {
13109
+ const t2 = setTimeout(() => {
12396
13110
  kill("SIGKILL");
12397
13111
  }, timeout);
12398
- if (t.unref) {
12399
- t.unref();
13112
+ if (t2.unref) {
13113
+ t2.unref();
12400
13114
  }
12401
13115
  };
12402
13116
  var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
@@ -13168,29 +13882,29 @@ var BEL = "\x07";
13168
13882
  var SEP = ";";
13169
13883
  var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
13170
13884
  var ansiEscapes = {};
13171
- ansiEscapes.cursorTo = (x, y) => {
13172
- if (typeof x !== "number") {
13885
+ ansiEscapes.cursorTo = (x2, y2) => {
13886
+ if (typeof x2 !== "number") {
13173
13887
  throw new TypeError("The `x` argument is required");
13174
13888
  }
13175
- if (typeof y !== "number") {
13176
- return ESC$1 + (x + 1) + "G";
13889
+ if (typeof y2 !== "number") {
13890
+ return ESC$1 + (x2 + 1) + "G";
13177
13891
  }
13178
- return ESC$1 + (y + 1) + ";" + (x + 1) + "H";
13892
+ return ESC$1 + (y2 + 1) + ";" + (x2 + 1) + "H";
13179
13893
  };
13180
- ansiEscapes.cursorMove = (x, y) => {
13181
- if (typeof x !== "number") {
13894
+ ansiEscapes.cursorMove = (x2, y2) => {
13895
+ if (typeof x2 !== "number") {
13182
13896
  throw new TypeError("The `x` argument is required");
13183
13897
  }
13184
13898
  let returnValue = "";
13185
- if (x < 0) {
13186
- returnValue += ESC$1 + -x + "D";
13187
- } else if (x > 0) {
13188
- returnValue += ESC$1 + x + "C";
13899
+ if (x2 < 0) {
13900
+ returnValue += ESC$1 + -x2 + "D";
13901
+ } else if (x2 > 0) {
13902
+ returnValue += ESC$1 + x2 + "C";
13189
13903
  }
13190
- if (y < 0) {
13191
- returnValue += ESC$1 + -y + "A";
13192
- } else if (y > 0) {
13193
- returnValue += ESC$1 + y + "B";
13904
+ if (y2 < 0) {
13905
+ returnValue += ESC$1 + -y2 + "A";
13906
+ } else if (y2 > 0) {
13907
+ returnValue += ESC$1 + y2 + "B";
13194
13908
  }
13195
13909
  return returnValue;
13196
13910
  };
@@ -13208,8 +13922,8 @@ ansiEscapes.cursorHide = ESC$1 + "?25l";
13208
13922
  ansiEscapes.cursorShow = ESC$1 + "?25h";
13209
13923
  ansiEscapes.eraseLines = (count) => {
13210
13924
  let clear2 = "";
13211
- for (let i = 0; i < count; i++) {
13212
- clear2 += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
13925
+ for (let i2 = 0; i2 < count; i2++) {
13926
+ clear2 += ansiEscapes.eraseLine + (i2 < count - 1 ? ansiEscapes.cursorUp() : "");
13213
13927
  }
13214
13928
  if (count) {
13215
13929
  clear2 += ansiEscapes.cursorLeft;
@@ -13386,14 +14100,14 @@ var supportsColor = supportsColor_1;
13386
14100
  var hasFlag2 = hasFlag$2;
13387
14101
  function parseVersion(versionString) {
13388
14102
  if (/^\d{3,4}$/.test(versionString)) {
13389
- const m = /(\d{1,2})(\d{2})/.exec(versionString);
14103
+ const m2 = /(\d{1,2})(\d{2})/.exec(versionString);
13390
14104
  return {
13391
14105
  major: 0,
13392
- minor: parseInt(m[1], 10),
13393
- patch: parseInt(m[2], 10)
14106
+ minor: parseInt(m2[1], 10),
14107
+ patch: parseInt(m2[2], 10)
13394
14108
  };
13395
14109
  }
13396
- const versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
14110
+ const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
13397
14111
  return {
13398
14112
  major: versions[0],
13399
14113
  minor: versions[1],
@@ -13509,9 +14223,9 @@ var $$1 = {
13509
14223
  bgWhite: init$1(47, 49)
13510
14224
  };
13511
14225
  function run$2(arr, str) {
13512
- let i = 0, tmp, beg = "", end = "";
13513
- for (; i < arr.length; i++) {
13514
- tmp = arr[i];
14226
+ let i2 = 0, tmp, beg = "", end = "";
14227
+ for (; i2 < arr.length; i2++) {
14228
+ tmp = arr[i2];
13515
14229
  beg += tmp.open;
13516
14230
  end += tmp.close;
13517
14231
  if (!!~str.indexOf(tmp.close)) {
@@ -13610,16 +14324,16 @@ var ESC = "\x1B";
13610
14324
  var CSI = `${ESC}[`;
13611
14325
  var beep$1 = "\x07";
13612
14326
  var cursor$b = {
13613
- to(x, y) {
13614
- if (!y) return `${CSI}${x + 1}G`;
13615
- return `${CSI}${y + 1};${x + 1}H`;
14327
+ to(x2, y2) {
14328
+ if (!y2) return `${CSI}${x2 + 1}G`;
14329
+ return `${CSI}${y2 + 1};${x2 + 1}H`;
13616
14330
  },
13617
- move(x, y) {
14331
+ move(x2, y2) {
13618
14332
  let ret = "";
13619
- if (x < 0) ret += `${CSI}${-x}D`;
13620
- else if (x > 0) ret += `${CSI}${x}C`;
13621
- if (y < 0) ret += `${CSI}${-y}A`;
13622
- else if (y > 0) ret += `${CSI}${y}B`;
14333
+ if (x2 < 0) ret += `${CSI}${-x2}D`;
14334
+ else if (x2 > 0) ret += `${CSI}${x2}C`;
14335
+ if (y2 < 0) ret += `${CSI}${-y2}A`;
14336
+ else if (y2 > 0) ret += `${CSI}${y2}B`;
13623
14337
  return ret;
13624
14338
  },
13625
14339
  up: (count = 1) => `${CSI}${count}A`,
@@ -13647,8 +14361,8 @@ var erase$7 = {
13647
14361
  lineStart: `${CSI}1K`,
13648
14362
  lines(count) {
13649
14363
  let clear2 = "";
13650
- for (let i = 0; i < count; i++)
13651
- clear2 += this.line + (i < count - 1 ? cursor$b.up() : "");
14364
+ for (let i2 = 0; i2 < count; i2++)
14365
+ clear2 += this.line + (i2 < count - 1 ? cursor$b.up() : "");
13652
14366
  if (count)
13653
14367
  clear2 += cursor$b.left;
13654
14368
  return clear2;
@@ -13697,7 +14411,7 @@ var win = {
13697
14411
  };
13698
14412
  var figures$8 = process.platform === "win32" ? win : main;
13699
14413
  var figures_1 = figures$8;
13700
- var c = kleur;
14414
+ var c2 = kleur;
13701
14415
  var figures$7 = figures_1;
13702
14416
  var styles = Object.freeze({
13703
14417
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -13707,14 +14421,14 @@ var styles = Object.freeze({
13707
14421
  });
13708
14422
  var render = (type) => styles[type] || styles.default;
13709
14423
  var symbols = Object.freeze({
13710
- aborted: c.red(figures$7.cross),
13711
- done: c.green(figures$7.tick),
13712
- exited: c.yellow(figures$7.cross),
13713
- default: c.cyan("?")
14424
+ aborted: c2.red(figures$7.cross),
14425
+ done: c2.green(figures$7.tick),
14426
+ exited: c2.yellow(figures$7.cross),
14427
+ default: c2.cyan("?")
13714
14428
  });
13715
14429
  var symbol = (done, aborted, exited) => aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
13716
- var delimiter$1 = (completing) => c.gray(completing ? figures$7.ellipsis : figures$7.pointerSmall);
13717
- var item = (expandable, expanded) => c.gray(expandable ? expanded ? figures$7.pointerSmall : "+" : figures$7.line);
14430
+ var delimiter$1 = (completing) => c2.gray(completing ? figures$7.ellipsis : figures$7.pointerSmall);
14431
+ var item = (expandable, expanded) => c2.gray(expandable ? expanded ? figures$7.pointerSmall : "+" : figures$7.line);
13718
14432
  var style$9 = {
13719
14433
  styles,
13720
14434
  render,
@@ -13727,15 +14441,15 @@ var strip = strip$2;
13727
14441
  var lines$2 = function(msg, perLine) {
13728
14442
  let lines2 = String(strip(msg) || "").split(/\r?\n/);
13729
14443
  if (!perLine) return lines2.length;
13730
- return lines2.map((l) => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);
14444
+ return lines2.map((l) => Math.ceil(l.length / perLine)).reduce((a, b2) => a + b2);
13731
14445
  };
13732
14446
  var wrap$3 = (msg, opts = {}) => {
13733
14447
  const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(" ").join("") : opts.margin || "";
13734
14448
  const width2 = opts.width;
13735
- return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w) => {
13736
- if (w.length + tab.length >= width2 || arr[arr.length - 1].length + w.length + 1 < width2)
13737
- arr[arr.length - 1] += ` ${w}`;
13738
- else arr.push(`${tab}${w}`);
14449
+ return (msg || "").split(/\r?\n/g).map((line) => line.split(/\s+/g).reduce((arr, w2) => {
14450
+ if (w2.length + tab.length >= width2 || arr[arr.length - 1].length + w2.length + 1 < width2)
14451
+ arr[arr.length - 1] += ` ${w2}`;
14452
+ else arr.push(`${tab}${w2}`);
13739
14453
  return arr;
13740
14454
  }, [tab]).join("\n")).join("\n");
13741
14455
  };
@@ -13827,15 +14541,15 @@ var TextPrompt = class extends Prompt$7 {
13827
14541
  this.clear = clear$8(``, this.out.columns);
13828
14542
  this.render();
13829
14543
  }
13830
- set value(v) {
13831
- if (!v && this.initial) {
14544
+ set value(v2) {
14545
+ if (!v2 && this.initial) {
13832
14546
  this.placeholder = true;
13833
14547
  this.rendered = color$8.gray(this.transform.render(this.initial));
13834
14548
  } else {
13835
14549
  this.placeholder = false;
13836
- this.rendered = this.transform.render(v);
14550
+ this.rendered = this.transform.render(v2);
13837
14551
  }
13838
- this._value = v;
14552
+ this._value = v2;
13839
14553
  this.fire();
13840
14554
  }
13841
14555
  get value() {
@@ -13894,15 +14608,15 @@ var TextPrompt = class extends Prompt$7 {
13894
14608
  this.fire();
13895
14609
  this.render();
13896
14610
  }
13897
- moveCursor(n) {
14611
+ moveCursor(n2) {
13898
14612
  if (this.placeholder) return;
13899
- this.cursor = this.cursor + n;
13900
- this.cursorOffset += n;
14613
+ this.cursor = this.cursor + n2;
14614
+ this.cursorOffset += n2;
13901
14615
  }
13902
- _(c2, key) {
14616
+ _(c3, key) {
13903
14617
  let s1 = this.value.slice(0, this.cursor);
13904
14618
  let s2 = this.value.slice(this.cursor);
13905
- this.value = `${s1}${c2}${s2}`;
14619
+ this.value = `${s1}${c3}${s2}`;
13906
14620
  this.red = false;
13907
14621
  this.cursor = this.placeholder ? 0 : s1.length + 1;
13908
14622
  this.render();
@@ -13975,8 +14689,8 @@ var TextPrompt = class extends Prompt$7 {
13975
14689
  ].join(` `);
13976
14690
  if (this.error) {
13977
14691
  this.outputError += this.errorMsg.split(`
13978
- `).reduce((a, l, i) => a + `
13979
- ${i ? " " : figures$6.pointerSmall} ${color$8.red().italic(l)}`, ``);
14692
+ `).reduce((a, l, i2) => a + `
14693
+ ${i2 ? " " : figures$6.pointerSmall} ${color$8.red().italic(l)}`, ``);
13980
14694
  }
13981
14695
  this.out.write(erase$5.line + cursor$8.to(0) + this.outputText + cursor$8.save + this.outputError + cursor$8.restore + cursor$8.move(this.cursorOffset, 0));
13982
14696
  }
@@ -14009,9 +14723,9 @@ var SelectPrompt = class extends Prompt$6 {
14009
14723
  this.clear = clear$7("", this.out.columns);
14010
14724
  this.render();
14011
14725
  }
14012
- moveCursor(n) {
14013
- this.cursor = n;
14014
- this.value = this.choices[n].value;
14726
+ moveCursor(n2) {
14727
+ this.cursor = n2;
14728
+ this.value = this.choices[n2].value;
14015
14729
  this.fire();
14016
14730
  }
14017
14731
  reset() {
@@ -14068,8 +14782,8 @@ var SelectPrompt = class extends Prompt$6 {
14068
14782
  this.moveCursor((this.cursor + 1) % this.choices.length);
14069
14783
  this.render();
14070
14784
  }
14071
- _(c2, key) {
14072
- if (c2 === " ") return this.submit();
14785
+ _(c3, key) {
14786
+ if (c3 === " ") return this.submit();
14073
14787
  }
14074
14788
  get selection() {
14075
14789
  return this.choices[this.cursor];
@@ -14088,25 +14802,25 @@ var SelectPrompt = class extends Prompt$6 {
14088
14802
  ].join(" ");
14089
14803
  if (!this.done) {
14090
14804
  this.outputText += "\n";
14091
- for (let i = startIndex; i < endIndex; i++) {
14092
- let title, prefix, desc = "", v = this.choices[i];
14093
- if (i === startIndex && startIndex > 0) {
14805
+ for (let i2 = startIndex; i2 < endIndex; i2++) {
14806
+ let title, prefix, desc = "", v2 = this.choices[i2];
14807
+ if (i2 === startIndex && startIndex > 0) {
14094
14808
  prefix = figures$5.arrowUp;
14095
- } else if (i === endIndex - 1 && endIndex < this.choices.length) {
14809
+ } else if (i2 === endIndex - 1 && endIndex < this.choices.length) {
14096
14810
  prefix = figures$5.arrowDown;
14097
14811
  } else {
14098
14812
  prefix = " ";
14099
14813
  }
14100
- if (v.disabled) {
14101
- title = this.cursor === i ? color$7.gray().underline(v.title) : color$7.strikethrough().gray(v.title);
14102
- prefix = (this.cursor === i ? color$7.bold().gray(figures$5.pointer) + " " : " ") + prefix;
14814
+ if (v2.disabled) {
14815
+ title = this.cursor === i2 ? color$7.gray().underline(v2.title) : color$7.strikethrough().gray(v2.title);
14816
+ prefix = (this.cursor === i2 ? color$7.bold().gray(figures$5.pointer) + " " : " ") + prefix;
14103
14817
  } else {
14104
- title = this.cursor === i ? color$7.cyan().underline(v.title) : v.title;
14105
- prefix = (this.cursor === i ? color$7.cyan(figures$5.pointer) + " " : " ") + prefix;
14106
- if (v.description && this.cursor === i) {
14107
- desc = ` - ${v.description}`;
14108
- if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {
14109
- desc = "\n" + wrap$2(v.description, { margin: 3, width: this.out.columns });
14818
+ title = this.cursor === i2 ? color$7.cyan().underline(v2.title) : v2.title;
14819
+ prefix = (this.cursor === i2 ? color$7.cyan(figures$5.pointer) + " " : " ") + prefix;
14820
+ if (v2.description && this.cursor === i2) {
14821
+ desc = ` - ${v2.description}`;
14822
+ if (prefix.length + title.length + desc.length >= this.out.columns || v2.description.split(/\r?\n/).length > 1) {
14823
+ desc = "\n" + wrap$2(v2.description, { margin: 3, width: this.out.columns });
14110
14824
  }
14111
14825
  }
14112
14826
  }
@@ -14185,12 +14899,12 @@ var TogglePrompt = class extends Prompt$5 {
14185
14899
  this.fire();
14186
14900
  this.render();
14187
14901
  }
14188
- _(c2, key) {
14189
- if (c2 === " ") {
14902
+ _(c3, key) {
14903
+ if (c3 === " ") {
14190
14904
  this.value = !this.value;
14191
- } else if (c2 === "1") {
14905
+ } else if (c3 === "1") {
14192
14906
  this.value = true;
14193
- } else if (c2 === "0") {
14907
+ } else if (c3 === "0") {
14194
14908
  this.value = false;
14195
14909
  } else return this.bell();
14196
14910
  this.render();
@@ -14257,9 +14971,9 @@ var Meridiem$1 = class Meridiem extends DatePart$8 {
14257
14971
  };
14258
14972
  var meridiem = Meridiem$1;
14259
14973
  var DatePart$7 = datepart;
14260
- var pos = (n) => {
14261
- n = n % 10;
14262
- return n === 1 ? "st" : n === 2 ? "nd" : n === 3 ? "rd" : "th";
14974
+ var pos = (n2) => {
14975
+ n2 = n2 % 10;
14976
+ return n2 === 1 ? "st" : n2 === 2 ? "nd" : n2 === 3 ? "rd" : "th";
14263
14977
  };
14264
14978
  var Day$1 = class Day extends DatePart$7 {
14265
14979
  constructor(opts = {}) {
@@ -14337,8 +15051,8 @@ var Minutes$1 = class Minutes extends DatePart$4 {
14337
15051
  this.date.setMinutes(parseInt(val.substr(-2)));
14338
15052
  }
14339
15053
  toString() {
14340
- let m = this.date.getMinutes();
14341
- return this.token.length > 1 ? String(m).padStart(2, "0") : m;
15054
+ let m2 = this.date.getMinutes();
15055
+ return this.token.length > 1 ? String(m2).padStart(2, "0") : m2;
14342
15056
  }
14343
15057
  };
14344
15058
  var minutes = Minutes$1;
@@ -14379,8 +15093,8 @@ var Seconds$1 = class Seconds extends DatePart$2 {
14379
15093
  this.date.setSeconds(parseInt(val.substr(-2)));
14380
15094
  }
14381
15095
  toString() {
14382
- let s = this.date.getSeconds();
14383
- return this.token.length > 1 ? String(s).padStart(2, "0") : s;
15096
+ let s2 = this.date.getSeconds();
15097
+ return this.token.length > 1 ? String(s2).padStart(2, "0") : s2;
14384
15098
  }
14385
15099
  };
14386
15100
  var seconds = Seconds$1;
@@ -14477,23 +15191,23 @@ var DatePrompt = class extends Prompt$4 {
14477
15191
  let idx = result.findIndex((gr) => gr != null);
14478
15192
  this.parts.push(idx in regexGroups ? regexGroups[idx]({ token: result[idx] || match, date: this.date, parts: this.parts, locales: this.locales }) : result[idx] || match);
14479
15193
  }
14480
- let parts = this.parts.reduce((arr, i) => {
14481
- if (typeof i === "string" && typeof arr[arr.length - 1] === "string")
14482
- arr[arr.length - 1] += i;
14483
- else arr.push(i);
15194
+ let parts = this.parts.reduce((arr, i2) => {
15195
+ if (typeof i2 === "string" && typeof arr[arr.length - 1] === "string")
15196
+ arr[arr.length - 1] += i2;
15197
+ else arr.push(i2);
14484
15198
  return arr;
14485
15199
  }, []);
14486
15200
  this.parts.splice(0);
14487
15201
  this.parts.push(...parts);
14488
15202
  this.reset();
14489
15203
  }
14490
- moveCursor(n) {
15204
+ moveCursor(n2) {
14491
15205
  this.typed = "";
14492
- this.cursor = n;
15206
+ this.cursor = n2;
14493
15207
  this.fire();
14494
15208
  }
14495
15209
  reset() {
14496
- this.moveCursor(this.parts.findIndex((p) => p instanceof DatePart2));
15210
+ this.moveCursor(this.parts.findIndex((p2) => p2 instanceof DatePart2));
14497
15211
  this.fire();
14498
15212
  this.render();
14499
15213
  }
@@ -14558,9 +15272,9 @@ var DatePrompt = class extends Prompt$4 {
14558
15272
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart2));
14559
15273
  this.render();
14560
15274
  }
14561
- _(c2) {
14562
- if (/\d/.test(c2)) {
14563
- this.typed += c2;
15275
+ _(c3) {
15276
+ if (/\d/.test(c3)) {
15277
+ this.typed += c3;
14564
15278
  this.parts[this.cursor].setTo(this.typed);
14565
15279
  this.render();
14566
15280
  }
@@ -14574,12 +15288,12 @@ var DatePrompt = class extends Prompt$4 {
14574
15288
  style$5.symbol(this.done, this.aborted),
14575
15289
  color$5.bold(this.msg),
14576
15290
  style$5.delimiter(false),
14577
- this.parts.reduce((arr, p, idx) => arr.concat(idx === this.cursor && !this.done ? color$5.cyan().underline(p.toString()) : p), []).join("")
15291
+ this.parts.reduce((arr, p2, idx) => arr.concat(idx === this.cursor && !this.done ? color$5.cyan().underline(p2.toString()) : p2), []).join("")
14578
15292
  ].join(" ");
14579
15293
  if (this.error) {
14580
15294
  this.outputText += this.errorMsg.split("\n").reduce(
14581
- (a, l, i) => a + `
14582
- ${i ? ` ` : figures$4.pointerSmall} ${color$5.red().italic(l)}`,
15295
+ (a, l, i2) => a + `
15296
+ ${i2 ? ` ` : figures$4.pointerSmall} ${color$5.red().italic(l)}`,
14583
15297
  ``
14584
15298
  );
14585
15299
  }
@@ -14616,26 +15330,26 @@ var NumberPrompt = class extends Prompt$3 {
14616
15330
  this.lastHit = 0;
14617
15331
  this.render();
14618
15332
  }
14619
- set value(v) {
14620
- if (!v && v !== 0) {
15333
+ set value(v2) {
15334
+ if (!v2 && v2 !== 0) {
14621
15335
  this.placeholder = true;
14622
15336
  this.rendered = color$4.gray(this.transform.render(`${this.initial}`));
14623
15337
  this._value = ``;
14624
15338
  } else {
14625
15339
  this.placeholder = false;
14626
- this.rendered = this.transform.render(`${round(v, this.round)}`);
14627
- this._value = round(v, this.round);
15340
+ this.rendered = this.transform.render(`${round(v2, this.round)}`);
15341
+ this._value = round(v2, this.round);
14628
15342
  }
14629
15343
  this.fire();
14630
15344
  }
14631
15345
  get value() {
14632
15346
  return this._value;
14633
15347
  }
14634
- parse(x) {
14635
- return this.float ? parseFloat(x) : parseInt(x);
15348
+ parse(x2) {
15349
+ return this.float ? parseFloat(x2) : parseInt(x2);
14636
15350
  }
14637
- valid(c2) {
14638
- return c2 === `-` || c2 === `.` && this.float || isNumber.test(c2);
15351
+ valid(c3) {
15352
+ return c3 === `-` || c3 === `.` && this.float || isNumber.test(c3);
14639
15353
  }
14640
15354
  reset() {
14641
15355
  this.typed = ``;
@@ -14647,8 +15361,8 @@ var NumberPrompt = class extends Prompt$3 {
14647
15361
  this.abort();
14648
15362
  }
14649
15363
  abort() {
14650
- let x = this.value;
14651
- this.value = x !== `` ? x : this.initial;
15364
+ let x2 = this.value;
15365
+ this.value = x2 !== `` ? x2 : this.initial;
14652
15366
  this.done = this.aborted = true;
14653
15367
  this.error = false;
14654
15368
  this.fire();
@@ -14673,8 +15387,8 @@ var NumberPrompt = class extends Prompt$3 {
14673
15387
  this.render();
14674
15388
  return;
14675
15389
  }
14676
- let x = this.value;
14677
- this.value = x !== `` ? x : this.initial;
15390
+ let x2 = this.value;
15391
+ this.value = x2 !== `` ? x2 : this.initial;
14678
15392
  this.done = true;
14679
15393
  this.aborted = false;
14680
15394
  this.error = false;
@@ -14722,14 +15436,14 @@ var NumberPrompt = class extends Prompt$3 {
14722
15436
  this.fire();
14723
15437
  this.render();
14724
15438
  }
14725
- _(c2, key) {
14726
- if (!this.valid(c2)) return this.bell();
15439
+ _(c3, key) {
15440
+ if (!this.valid(c3)) return this.bell();
14727
15441
  const now = Date.now();
14728
15442
  if (now - this.lastHit > 1e3) this.typed = ``;
14729
- this.typed += c2;
15443
+ this.typed += c3;
14730
15444
  this.lastHit = now;
14731
15445
  this.color = `cyan`;
14732
- if (c2 === `.`) return this.fire();
15446
+ if (c3 === `.`) return this.fire();
14733
15447
  this.value = Math.min(this.parse(this.typed), this.max);
14734
15448
  if (this.value > this.max) this.value = this.max;
14735
15449
  if (this.value < this.min) this.value = this.min;
@@ -14753,8 +15467,8 @@ var NumberPrompt = class extends Prompt$3 {
14753
15467
  ].join(` `);
14754
15468
  if (this.error) {
14755
15469
  this.outputError += this.errorMsg.split(`
14756
- `).reduce((a, l, i) => a + `
14757
- ${i ? ` ` : figures$3.pointerSmall} ${color$4.red().italic(l)}`, ``);
15470
+ `).reduce((a, l, i2) => a + `
15471
+ ${i2 ? ` ` : figures$3.pointerSmall} ${color$4.red().italic(l)}`, ``);
14758
15472
  }
14759
15473
  this.out.write(erase$2.line + cursor$4.to(0) + this.outputText + cursor$4.save + this.outputError + cursor$4.restore);
14760
15474
  }
@@ -14794,13 +15508,13 @@ var MultiselectPrompt$1 = class MultiselectPrompt extends Prompt$2 {
14794
15508
  }
14795
15509
  }
14796
15510
  reset() {
14797
- this.value.map((v) => !v.selected);
15511
+ this.value.map((v2) => !v2.selected);
14798
15512
  this.cursor = 0;
14799
15513
  this.fire();
14800
15514
  this.render();
14801
15515
  }
14802
15516
  selected() {
14803
- return this.value.filter((v) => v.selected);
15517
+ return this.value.filter((v2) => v2.selected);
14804
15518
  }
14805
15519
  exit() {
14806
15520
  this.abort();
@@ -14813,7 +15527,7 @@ var MultiselectPrompt$1 = class MultiselectPrompt extends Prompt$2 {
14813
15527
  this.close();
14814
15528
  }
14815
15529
  submit() {
14816
- const selected = this.value.filter((e) => e.selected);
15530
+ const selected = this.value.filter((e2) => e2.selected);
14817
15531
  if (this.minSelected && selected.length < this.minSelected) {
14818
15532
  this.showMinError = true;
14819
15533
  this.render();
@@ -14859,19 +15573,19 @@ var MultiselectPrompt$1 = class MultiselectPrompt extends Prompt$2 {
14859
15573
  this.render();
14860
15574
  }
14861
15575
  right() {
14862
- if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
15576
+ if (this.value.filter((e2) => e2.selected).length >= this.maxChoices) return this.bell();
14863
15577
  this.value[this.cursor].selected = true;
14864
15578
  this.render();
14865
15579
  }
14866
15580
  handleSpaceToggle() {
14867
- const v = this.value[this.cursor];
14868
- if (v.selected) {
14869
- v.selected = false;
15581
+ const v2 = this.value[this.cursor];
15582
+ if (v2.selected) {
15583
+ v2.selected = false;
14870
15584
  this.render();
14871
- } else if (v.disabled || this.value.filter((e) => e.selected).length >= this.maxChoices) {
15585
+ } else if (v2.disabled || this.value.filter((e2) => e2.selected).length >= this.maxChoices) {
14872
15586
  return this.bell();
14873
15587
  } else {
14874
- v.selected = true;
15588
+ v2.selected = true;
14875
15589
  this.render();
14876
15590
  }
14877
15591
  }
@@ -14880,13 +15594,13 @@ var MultiselectPrompt$1 = class MultiselectPrompt extends Prompt$2 {
14880
15594
  return this.bell();
14881
15595
  }
14882
15596
  const newSelected = !this.value[this.cursor].selected;
14883
- this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
15597
+ this.value.filter((v2) => !v2.disabled).forEach((v2) => v2.selected = newSelected);
14884
15598
  this.render();
14885
15599
  }
14886
- _(c2, key) {
14887
- if (c2 === " ") {
15600
+ _(c3, key) {
15601
+ if (c3 === " ") {
14888
15602
  this.handleSpaceToggle();
14889
- } else if (c2 === "a") {
15603
+ } else if (c3 === "a") {
14890
15604
  this.toggleAll();
14891
15605
  } else {
14892
15606
  return this.bell();
@@ -14906,17 +15620,17 @@ Instructions:
14906
15620
  }
14907
15621
  return "";
14908
15622
  }
14909
- renderOption(cursor2, v, i, arrowIndicator) {
14910
- const prefix = (v.selected ? color$3.green(figures$2.radioOn) : figures$2.radioOff) + " " + arrowIndicator + " ";
15623
+ renderOption(cursor2, v2, i2, arrowIndicator) {
15624
+ const prefix = (v2.selected ? color$3.green(figures$2.radioOn) : figures$2.radioOff) + " " + arrowIndicator + " ";
14911
15625
  let title, desc;
14912
- if (v.disabled) {
14913
- title = cursor2 === i ? color$3.gray().underline(v.title) : color$3.strikethrough().gray(v.title);
15626
+ if (v2.disabled) {
15627
+ title = cursor2 === i2 ? color$3.gray().underline(v2.title) : color$3.strikethrough().gray(v2.title);
14914
15628
  } else {
14915
- title = cursor2 === i ? color$3.cyan().underline(v.title) : v.title;
14916
- if (cursor2 === i && v.description) {
14917
- desc = ` - ${v.description}`;
14918
- if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {
14919
- desc = "\n" + wrap$1(v.description, { margin: prefix.length, width: this.out.columns });
15629
+ title = cursor2 === i2 ? color$3.cyan().underline(v2.title) : v2.title;
15630
+ if (cursor2 === i2 && v2.description) {
15631
+ desc = ` - ${v2.description}`;
15632
+ if (prefix.length + title.length + desc.length >= this.out.columns || v2.description.split(/\r?\n/).length > 1) {
15633
+ desc = "\n" + wrap$1(v2.description, { margin: prefix.length, width: this.out.columns });
14920
15634
  }
14921
15635
  }
14922
15636
  }
@@ -14929,15 +15643,15 @@ Instructions:
14929
15643
  }
14930
15644
  let { startIndex, endIndex } = entriesToDisplay$1(this.cursor, options2.length, this.optionsPerPage);
14931
15645
  let prefix, styledOptions = [];
14932
- for (let i = startIndex; i < endIndex; i++) {
14933
- if (i === startIndex && startIndex > 0) {
15646
+ for (let i2 = startIndex; i2 < endIndex; i2++) {
15647
+ if (i2 === startIndex && startIndex > 0) {
14934
15648
  prefix = figures$2.arrowUp;
14935
- } else if (i === endIndex - 1 && endIndex < options2.length) {
15649
+ } else if (i2 === endIndex - 1 && endIndex < options2.length) {
14936
15650
  prefix = figures$2.arrowDown;
14937
15651
  } else {
14938
15652
  prefix = " ";
14939
15653
  }
14940
- styledOptions.push(this.renderOption(this.cursor, options2[i], i, prefix));
15654
+ styledOptions.push(this.renderOption(this.cursor, options2[i2], i2, prefix));
14941
15655
  }
14942
15656
  return "\n" + styledOptions.join("\n");
14943
15657
  }
@@ -14950,7 +15664,7 @@ Instructions:
14950
15664
  }
14951
15665
  renderDoneOrInstructions() {
14952
15666
  if (this.done) {
14953
- return this.value.filter((e) => e.selected).map((v) => v.title).join(", ");
15667
+ return this.value.filter((e2) => e2.selected).map((v2) => v2.title).join(", ");
14954
15668
  }
14955
15669
  const output = [color$3.gray(this.hint), this.renderInstructions()];
14956
15670
  if (this.value[this.cursor].disabled) {
@@ -14982,8 +15696,8 @@ var color$2 = kleur;
14982
15696
  var Prompt$1 = prompt$1;
14983
15697
  var { erase: erase$1, cursor: cursor$2 } = src;
14984
15698
  var { style: style$2, clear: clear$2, figures: figures$1, wrap, entriesToDisplay } = util;
14985
- var getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);
14986
- var getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);
15699
+ var getVal = (arr, i2) => arr[i2] && (arr[i2].value || arr[i2].title || arr[i2]);
15700
+ var getTitle = (arr, i2) => arr[i2] && (arr[i2].title || arr[i2].value || arr[i2]);
14987
15701
  var getIndex = (arr, valOrTitle) => {
14988
15702
  const index = arr.findIndex((el) => el.value === valOrTitle || el.title === valOrTitle);
14989
15703
  return index > -1 ? index : void 0;
@@ -15022,18 +15736,18 @@ var AutocompletePrompt = class extends Prompt$1 {
15022
15736
  choice = { title: this._fb };
15023
15737
  return choice || this._fb || { title: this.i18n.noMatches };
15024
15738
  }
15025
- moveSelect(i) {
15026
- this.select = i;
15739
+ moveSelect(i2) {
15740
+ this.select = i2;
15027
15741
  if (this.suggestions.length > 0)
15028
- this.value = getVal(this.suggestions, i);
15742
+ this.value = getVal(this.suggestions, i2);
15029
15743
  else this.value = this.fallback.value;
15030
15744
  this.fire();
15031
15745
  }
15032
15746
  async complete(cb) {
15033
- const p = this.completing = this.suggest(this.input, this.choices);
15034
- const suggestions = await p;
15035
- if (this.completing !== p) return;
15036
- this.suggestions = suggestions.map((s, i, arr) => ({ title: getTitle(arr, i), value: getVal(arr, i), description: s.description }));
15747
+ const p2 = this.completing = this.suggest(this.input, this.choices);
15748
+ const suggestions = await p2;
15749
+ if (this.completing !== p2) return;
15750
+ this.suggestions = suggestions.map((s2, i2, arr) => ({ title: getTitle(arr, i2), value: getVal(arr, i2), description: s2.description }));
15037
15751
  this.completing = false;
15038
15752
  const l = Math.max(suggestions.length - 1, 0);
15039
15753
  this.moveSelect(Math.min(l, this.select));
@@ -15075,10 +15789,10 @@ var AutocompletePrompt = class extends Prompt$1 {
15075
15789
  this.out.write("\n");
15076
15790
  this.close();
15077
15791
  }
15078
- _(c2, key) {
15792
+ _(c3, key) {
15079
15793
  let s1 = this.input.slice(0, this.cursor);
15080
15794
  let s2 = this.input.slice(this.cursor);
15081
- this.input = `${s1}${c2}${s2}`;
15795
+ this.input = `${s1}${c3}${s2}`;
15082
15796
  this.cursor = s1.length + 1;
15083
15797
  this.complete(this.render);
15084
15798
  this.render();
@@ -15148,15 +15862,15 @@ var AutocompletePrompt = class extends Prompt$1 {
15148
15862
  this.cursor = this.cursor + 1;
15149
15863
  this.render();
15150
15864
  }
15151
- renderOption(v, hovered, isStart, isEnd) {
15865
+ renderOption(v2, hovered, isStart, isEnd) {
15152
15866
  let desc;
15153
15867
  let prefix = isStart ? figures$1.arrowUp : isEnd ? figures$1.arrowDown : " ";
15154
- let title = hovered ? color$2.cyan().underline(v.title) : v.title;
15868
+ let title = hovered ? color$2.cyan().underline(v2.title) : v2.title;
15155
15869
  prefix = (hovered ? color$2.cyan(figures$1.pointer) + " " : " ") + prefix;
15156
- if (v.description) {
15157
- desc = ` - ${v.description}`;
15158
- if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {
15159
- desc = "\n" + wrap(v.description, { margin: 3, width: this.out.columns });
15870
+ if (v2.description) {
15871
+ desc = ` - ${v2.description}`;
15872
+ if (prefix.length + title.length + desc.length >= this.out.columns || v2.description.split(/\r?\n/).length > 1) {
15873
+ desc = "\n" + wrap(v2.description, { margin: 3, width: this.out.columns });
15160
15874
  }
15161
15875
  }
15162
15876
  return prefix + " " + title + color$2.gray(desc || "");
@@ -15174,11 +15888,11 @@ var AutocompletePrompt = class extends Prompt$1 {
15174
15888
  this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)
15175
15889
  ].join(" ");
15176
15890
  if (!this.done) {
15177
- const suggestions = this.suggestions.slice(startIndex, endIndex).map((item2, i) => this.renderOption(
15891
+ const suggestions = this.suggestions.slice(startIndex, endIndex).map((item2, i2) => this.renderOption(
15178
15892
  item2,
15179
- this.select === i + startIndex,
15180
- i === 0 && startIndex > 0,
15181
- i + startIndex === endIndex - 1 && endIndex < this.choices.length
15893
+ this.select === i2 + startIndex,
15894
+ i2 === 0 && startIndex > 0,
15895
+ i2 + startIndex === endIndex - 1 && endIndex < this.choices.length
15182
15896
  )).join("\n");
15183
15897
  this.outputText += `
15184
15898
  ` + (suggestions || color$2.gray(this.fallback.title));
@@ -15229,7 +15943,7 @@ var AutocompleteMultiselectPrompt = class extends MultiselectPrompt2 {
15229
15943
  this.render();
15230
15944
  }
15231
15945
  right() {
15232
- if (this.value.filter((e) => e.selected).length >= this.maxChoices) return this.bell();
15946
+ if (this.value.filter((e2) => e2.selected).length >= this.maxChoices) return this.bell();
15233
15947
  this.filteredOptions[this.cursor].selected = true;
15234
15948
  this.render();
15235
15949
  }
@@ -15241,15 +15955,15 @@ var AutocompleteMultiselectPrompt = class extends MultiselectPrompt2 {
15241
15955
  }
15242
15956
  updateFilteredOptions() {
15243
15957
  const currentHighlight = this.filteredOptions[this.cursor];
15244
- this.filteredOptions = this.value.filter((v) => {
15958
+ this.filteredOptions = this.value.filter((v2) => {
15245
15959
  if (this.inputValue) {
15246
- if (typeof v.title === "string") {
15247
- if (v.title.toLowerCase().includes(this.inputValue.toLowerCase())) {
15960
+ if (typeof v2.title === "string") {
15961
+ if (v2.title.toLowerCase().includes(this.inputValue.toLowerCase())) {
15248
15962
  return true;
15249
15963
  }
15250
15964
  }
15251
- if (typeof v.value === "string") {
15252
- if (v.value.toLowerCase().includes(this.inputValue.toLowerCase())) {
15965
+ if (typeof v2.value === "string") {
15966
+ if (v2.value.toLowerCase().includes(this.inputValue.toLowerCase())) {
15253
15967
  return true;
15254
15968
  }
15255
15969
  }
@@ -15257,31 +15971,31 @@ var AutocompleteMultiselectPrompt = class extends MultiselectPrompt2 {
15257
15971
  }
15258
15972
  return true;
15259
15973
  });
15260
- const newHighlightIndex = this.filteredOptions.findIndex((v) => v === currentHighlight);
15974
+ const newHighlightIndex = this.filteredOptions.findIndex((v2) => v2 === currentHighlight);
15261
15975
  this.cursor = newHighlightIndex < 0 ? 0 : newHighlightIndex;
15262
15976
  this.render();
15263
15977
  }
15264
15978
  handleSpaceToggle() {
15265
- const v = this.filteredOptions[this.cursor];
15266
- if (v.selected) {
15267
- v.selected = false;
15979
+ const v2 = this.filteredOptions[this.cursor];
15980
+ if (v2.selected) {
15981
+ v2.selected = false;
15268
15982
  this.render();
15269
- } else if (v.disabled || this.value.filter((e) => e.selected).length >= this.maxChoices) {
15983
+ } else if (v2.disabled || this.value.filter((e2) => e2.selected).length >= this.maxChoices) {
15270
15984
  return this.bell();
15271
15985
  } else {
15272
- v.selected = true;
15986
+ v2.selected = true;
15273
15987
  this.render();
15274
15988
  }
15275
15989
  }
15276
- handleInputChange(c2) {
15277
- this.inputValue = this.inputValue + c2;
15990
+ handleInputChange(c3) {
15991
+ this.inputValue = this.inputValue + c3;
15278
15992
  this.updateFilteredOptions();
15279
15993
  }
15280
- _(c2, key) {
15281
- if (c2 === " ") {
15994
+ _(c3, key) {
15995
+ if (c3 === " ") {
15282
15996
  this.handleSpaceToggle();
15283
15997
  } else {
15284
- this.handleInputChange(c2);
15998
+ this.handleInputChange(c3);
15285
15999
  }
15286
16000
  }
15287
16001
  renderInstructions() {
@@ -15304,16 +16018,16 @@ Instructions:
15304
16018
  Filtered results for: ${this.inputValue ? this.inputValue : color$1.gray("Enter something to filter")}
15305
16019
  `;
15306
16020
  }
15307
- renderOption(cursor2, v, i, arrowIndicator) {
15308
- const prefix = (v.selected ? color$1.green(figures.radioOn) : figures.radioOff) + " " + arrowIndicator + " ";
16021
+ renderOption(cursor2, v2, i2, arrowIndicator) {
16022
+ const prefix = (v2.selected ? color$1.green(figures.radioOn) : figures.radioOff) + " " + arrowIndicator + " ";
15309
16023
  let title;
15310
- if (v.disabled) title = cursor2 === i ? color$1.gray().underline(v.title) : color$1.strikethrough().gray(v.title);
15311
- else title = cursor2 === i ? color$1.cyan().underline(v.title) : v.title;
16024
+ if (v2.disabled) title = cursor2 === i2 ? color$1.gray().underline(v2.title) : color$1.strikethrough().gray(v2.title);
16025
+ else title = cursor2 === i2 ? color$1.cyan().underline(v2.title) : v2.title;
15312
16026
  return prefix + title;
15313
16027
  }
15314
16028
  renderDoneOrInstructions() {
15315
16029
  if (this.done) {
15316
- return this.value.filter((e) => e.selected).map((v) => v.title).join(", ");
16030
+ return this.value.filter((e2) => e2.selected).map((v2) => v2.title).join(", ");
15317
16031
  }
15318
16032
  const output = [color$1.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()];
15319
16033
  if (this.filteredOptions.length && this.filteredOptions[this.cursor].disabled) {
@@ -15381,12 +16095,12 @@ var ConfirmPrompt = class extends Prompt2 {
15381
16095
  this.out.write("\n");
15382
16096
  this.close();
15383
16097
  }
15384
- _(c2, key) {
15385
- if (c2.toLowerCase() === "y") {
16098
+ _(c3, key) {
16099
+ if (c3.toLowerCase() === "y") {
15386
16100
  this.value = true;
15387
16101
  return this.submit();
15388
16102
  }
15389
- if (c2.toLowerCase() === "n") {
16103
+ if (c3.toLowerCase() === "n") {
15390
16104
  this.value = false;
15391
16105
  return this.submit();
15392
16106
  }
@@ -15421,17 +16135,17 @@ var elements = {
15421
16135
  (function(exports2) {
15422
16136
  const $3 = exports2;
15423
16137
  const el = elements;
15424
- const noop2 = (v) => v;
16138
+ const noop2 = (v2) => v2;
15425
16139
  function toPrompt(type, args, opts = {}) {
15426
16140
  return new Promise((res, rej) => {
15427
- const p = new el[type](args);
16141
+ const p2 = new el[type](args);
15428
16142
  const onAbort = opts.onAbort || noop2;
15429
16143
  const onSubmit = opts.onSubmit || noop2;
15430
16144
  const onExit2 = opts.onExit || noop2;
15431
- p.on("state", args.onState || noop2);
15432
- p.on("submit", (x) => res(onSubmit(x)));
15433
- p.on("exit", (x) => res(onExit2(x)));
15434
- p.on("abort", (x) => rej(onAbort(x)));
16145
+ p2.on("state", args.onState || noop2);
16146
+ p2.on("submit", (x2) => res(onSubmit(x2)));
16147
+ p2.on("exit", (x2) => res(onExit2(x2)));
16148
+ p2.on("abort", (x2) => rej(onAbort(x2)));
15435
16149
  });
15436
16150
  }
15437
16151
  $3.text = (args) => toPrompt("TextPrompt", args);
@@ -15449,7 +16163,7 @@ var elements = {
15449
16163
  $3.list = (args) => {
15450
16164
  const sep2 = args.separator || ",";
15451
16165
  return toPrompt("TextPrompt", args, {
15452
- onSubmit: (str) => str.split(sep2).map((s) => s.trim())
16166
+ onSubmit: (str) => str.split(sep2).map((s2) => s2.trim())
15453
16167
  });
15454
16168
  };
15455
16169
  $3.toggle = (args) => toPrompt("TogglePrompt", args);
@@ -15558,8 +16272,8 @@ var isexe$2 = async (path10, options2 = {}) => {
15558
16272
  const { ignoreErrors = false } = options2;
15559
16273
  try {
15560
16274
  return checkStat$1(await (0, promises_1$1.stat)(path10), options2);
15561
- } catch (e) {
15562
- const er = e;
16275
+ } catch (e2) {
16276
+ const er = e2;
15563
16277
  if (ignoreErrors || er.code === "EACCES")
15564
16278
  return false;
15565
16279
  throw er;
@@ -15570,8 +16284,8 @@ var sync$1 = (path10, options2 = {}) => {
15570
16284
  const { ignoreErrors = false } = options2;
15571
16285
  try {
15572
16286
  return checkStat$1((0, fs_1$1.statSync)(path10), options2);
15573
- } catch (e) {
15574
- const er = e;
16287
+ } catch (e2) {
16288
+ const er = e2;
15575
16289
  if (ignoreErrors || er.code === "EACCES")
15576
16290
  return false;
15577
16291
  throw er;
@@ -15590,11 +16304,11 @@ var checkMode = (stat, options2) => {
15590
16304
  const mod = stat.mode;
15591
16305
  const uid = stat.uid;
15592
16306
  const gid = stat.gid;
15593
- const u = parseInt("100", 8);
16307
+ const u2 = parseInt("100", 8);
15594
16308
  const g = parseInt("010", 8);
15595
- const o = parseInt("001", 8);
15596
- const ug = u | g;
15597
- return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);
16309
+ const o2 = parseInt("001", 8);
16310
+ const ug = u2 | g;
16311
+ return !!(mod & o2 || mod & g && groups.has(gid) || mod & u2 && uid === myUid || mod & ug && myUid === 0);
15598
16312
  };
15599
16313
  var win32 = {};
15600
16314
  Object.defineProperty(win32, "__esModule", { value: true });
@@ -15605,8 +16319,8 @@ var isexe$1 = async (path10, options2 = {}) => {
15605
16319
  const { ignoreErrors = false } = options2;
15606
16320
  try {
15607
16321
  return checkStat(await (0, promises_1.stat)(path10), path10, options2);
15608
- } catch (e) {
15609
- const er = e;
16322
+ } catch (e2) {
16323
+ const er = e2;
15610
16324
  if (ignoreErrors || er.code === "EACCES")
15611
16325
  return false;
15612
16326
  throw er;
@@ -15617,8 +16331,8 @@ var sync = (path10, options2 = {}) => {
15617
16331
  const { ignoreErrors = false } = options2;
15618
16332
  try {
15619
16333
  return checkStat((0, fs_1.statSync)(path10), path10, options2);
15620
- } catch (e) {
15621
- const er = e;
16334
+ } catch (e2) {
16335
+ const er = e2;
15622
16336
  if (ignoreErrors || er.code === "EACCES")
15623
16337
  return false;
15624
16338
  throw er;
@@ -15631,10 +16345,10 @@ var checkPathExt = (path10, options2) => {
15631
16345
  if (peSplit.indexOf("") !== -1) {
15632
16346
  return true;
15633
16347
  }
15634
- for (let i = 0; i < peSplit.length; i++) {
15635
- const p = peSplit[i].toLowerCase();
15636
- const ext = path10.substring(path10.length - p.length).toLowerCase();
15637
- if (p && ext === p) {
16348
+ for (let i2 = 0; i2 < peSplit.length; i2++) {
16349
+ const p2 = peSplit[i2].toLowerCase();
16350
+ const ext = path10.substring(path10.length - p2.length).toLowerCase();
16351
+ if (p2 && ext === p2) {
15638
16352
  return true;
15639
16353
  }
15640
16354
  }
@@ -15644,35 +16358,35 @@ var checkStat = (stat, path10, options2) => stat.isFile() && checkPathExt(path10
15644
16358
  var options = {};
15645
16359
  Object.defineProperty(options, "__esModule", { value: true });
15646
16360
  (function(exports2) {
15647
- var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
15648
- if (k2 === void 0) k2 = k;
15649
- var desc = Object.getOwnPropertyDescriptor(m, k);
15650
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16361
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
16362
+ if (k22 === void 0) k22 = k2;
16363
+ var desc = Object.getOwnPropertyDescriptor(m2, k2);
16364
+ if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
15651
16365
  desc = { enumerable: true, get: function() {
15652
- return m[k];
16366
+ return m2[k2];
15653
16367
  } };
15654
16368
  }
15655
- Object.defineProperty(o, k2, desc);
15656
- } : function(o, m, k, k2) {
15657
- if (k2 === void 0) k2 = k;
15658
- o[k2] = m[k];
16369
+ Object.defineProperty(o2, k22, desc);
16370
+ } : function(o2, m2, k2, k22) {
16371
+ if (k22 === void 0) k22 = k2;
16372
+ o2[k22] = m2[k2];
15659
16373
  });
15660
- var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
15661
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15662
- } : function(o, v) {
15663
- o["default"] = v;
16374
+ var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
16375
+ Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
16376
+ } : function(o2, v2) {
16377
+ o2["default"] = v2;
15664
16378
  });
15665
16379
  var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
15666
16380
  if (mod && mod.__esModule) return mod;
15667
16381
  var result = {};
15668
16382
  if (mod != null) {
15669
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
16383
+ for (var k2 in mod) if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2)) __createBinding(result, mod, k2);
15670
16384
  }
15671
16385
  __setModuleDefault(result, mod);
15672
16386
  return result;
15673
16387
  };
15674
- var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports3) {
15675
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
16388
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports3) {
16389
+ for (var p2 in m2) if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p2)) __createBinding(exports3, m2, p2);
15676
16390
  };
15677
16391
  Object.defineProperty(exports2, "__esModule", { value: true });
15678
16392
  exports2.sync = exports2.isexe = exports2.posix = exports2.win32 = void 0;
@@ -15722,9 +16436,9 @@ var which = async (cmd, opt = {}) => {
15722
16436
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
15723
16437
  const found = [];
15724
16438
  for (const envPart of pathEnv) {
15725
- const p = getPathPart(envPart, cmd);
16439
+ const p2 = getPathPart(envPart, cmd);
15726
16440
  for (const ext of pathExt) {
15727
- const withExt = p + ext;
16441
+ const withExt = p2 + ext;
15728
16442
  const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
15729
16443
  if (is) {
15730
16444
  if (!opt.all) {
@@ -15746,9 +16460,9 @@ var whichSync = (cmd, opt = {}) => {
15746
16460
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
15747
16461
  const found = [];
15748
16462
  for (const pathEnvPart of pathEnv) {
15749
- const p = getPathPart(pathEnvPart, cmd);
16463
+ const p2 = getPathPart(pathEnvPart, cmd);
15750
16464
  for (const ext of pathExt) {
15751
- const withExt = p + ext;
16465
+ const withExt = p2 + ext;
15752
16466
  const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
15753
16467
  if (is) {
15754
16468
  if (!opt.all) {
@@ -15834,13 +16548,13 @@ var UnsupportedCommand = class extends Error {
15834
16548
  function getCommand(agent, command, args = []) {
15835
16549
  if (!(agent in AGENTS))
15836
16550
  throw new Error(`Unsupported agent "${agent}"`);
15837
- const c2 = AGENTS[agent][command];
15838
- if (typeof c2 === "function")
15839
- return c2(args);
15840
- if (!c2)
16551
+ const c3 = AGENTS[agent][command];
16552
+ if (typeof c3 === "function")
16553
+ return c3(args);
16554
+ if (!c3)
15841
16555
  throw new UnsupportedCommand({ agent, command });
15842
16556
  const quote = (arg) => !arg.startsWith("--") && arg.includes(" ") ? JSON.stringify(arg) : arg;
15843
- return c2.replace("{0}", args.map(quote).join(" ")).trim();
16557
+ return c3.replace("{0}", args.map(quote).join(" ")).trim();
15844
16558
  }
15845
16559
  var FORCE_COLOR2;
15846
16560
  var NODE_DISABLE_COLORS2;
@@ -15884,9 +16598,9 @@ var $2 = {
15884
16598
  bgWhite: init2(47, 49)
15885
16599
  };
15886
16600
  function run$1(arr, str) {
15887
- let i = 0, tmp, beg = "", end = "";
15888
- for (; i < arr.length; i++) {
15889
- tmp = arr[i];
16601
+ let i2 = 0, tmp, beg = "", end = "";
16602
+ for (; i2 < arr.length; i2++) {
16603
+ tmp = arr[i2];
15890
16604
  beg += tmp.open;
15891
16605
  end += tmp.close;
15892
16606
  if (!!~str.indexOf(tmp.close)) {
@@ -15941,10 +16655,10 @@ function init2(open, close) {
15941
16655
  }
15942
16656
 
15943
16657
  // ../client-generator-js/src/resolvePrismaClient.ts
15944
- var debug = Debug("prisma:generator");
16658
+ var debug3 = Debug("prisma:generator");
15945
16659
  async function resolvePrismaClient(baseDir) {
15946
16660
  const prismaClientDir = await findPrismaClientDir(baseDir);
15947
- debug("baseDir", baseDir);
16661
+ debug3("baseDir", baseDir);
15948
16662
  if (!prismaClientDir) {
15949
16663
  throw new Error(
15950
16664
  `Could not resolve @prisma/client.
@@ -15960,8 +16674,8 @@ async function findPrismaClientDir(baseDir) {
15960
16674
  const cliDir = await resolvePkg("prisma", resolveOpts);
15961
16675
  const clientDir = await resolvePkg("@prisma/client", resolveOpts);
15962
16676
  const resolvedClientDir = clientDir && await import_promises5.default.realpath(clientDir);
15963
- debug("prismaCliDir", cliDir);
15964
- debug("prismaClientDir", clientDir);
16677
+ debug3("prismaCliDir", cliDir);
16678
+ debug3("prismaClientDir", clientDir);
15965
16679
  if (cliDir === void 0) return resolvedClientDir;
15966
16680
  if (clientDir === void 0) return resolvedClientDir;
15967
16681
  const relDir = import_node_path3.default.relative(cliDir, clientDir).split(import_node_path3.default.sep);