@prisma/migrate 6.7.0-dev.1 → 6.7.0-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/Migrate.js +5 -5
  2. package/dist/SchemaEngineCLI.js +4 -4
  3. package/dist/SchemaEngineWasm.js +3 -3
  4. package/dist/bin.js +25 -25
  5. package/dist/{chunk-U3PKVEAK.js → chunk-3LPJTPON.js} +5 -5
  6. package/dist/{chunk-O5YQGEQH.js → chunk-6FXCGDYG.js} +5 -5
  7. package/dist/{chunk-7HZE6BDG.js → chunk-7SHRWQOO.js} +6 -6
  8. package/dist/{chunk-OEWQACEH.js → chunk-AXR7LS2N.js} +531 -617
  9. package/dist/{chunk-OEFUBBD2.js → chunk-EVYAFMVA.js} +5 -5
  10. package/dist/{chunk-TUCW5C5C.js → chunk-GTNVXSIW.js} +5 -5
  11. package/dist/{chunk-I3LT2PO3.js → chunk-HAXSH7UY.js} +5 -5
  12. package/dist/{chunk-OULXWNUZ.js → chunk-HKEIYY25.js} +7 -30
  13. package/dist/{chunk-SQFNJXFA.js → chunk-K7LD5M6A.js} +5 -5
  14. package/dist/{chunk-NRSITJIH.js → chunk-NP7ZZIVZ.js} +5 -5
  15. package/dist/{chunk-JOAFF4FT.js → chunk-QRILN5QM.js} +7 -7
  16. package/dist/{chunk-MJAWC6DU.js → chunk-R6N4ZN7K.js} +532 -1063
  17. package/dist/{chunk-6JKG6LGO.js → chunk-RAQT64TS.js} +7 -7
  18. package/dist/{chunk-ORYJRFI7.js → chunk-UYASBG5U.js} +5 -5
  19. package/dist/{chunk-6BNGZSAG.js → chunk-WFPTCAHP.js} +5 -5
  20. package/dist/commands/DbExecute.js +6 -6
  21. package/dist/commands/DbPull.js +6 -6
  22. package/dist/commands/DbPush.js +6 -6
  23. package/dist/commands/MigrateDeploy.js +6 -6
  24. package/dist/commands/MigrateDev.js +6 -6
  25. package/dist/commands/MigrateDiff.js +6 -6
  26. package/dist/commands/MigrateReset.js +6 -6
  27. package/dist/commands/MigrateResolve.js +6 -6
  28. package/dist/commands/MigrateStatus.js +6 -6
  29. package/dist/index.js +29 -29
  30. package/dist/utils/getDatabaseVersionSafe.js +6 -6
  31. package/dist/utils/introspectSql.js +6 -6
  32. package/dist/views/handleViewsIO.js +2 -2
  33. package/package.json +9 -10
  34. package/dist/chunk-PFEI6CRX.js +0 -11313
  35. package/dist/internals/src/Generator.d.ts +0 -42
  36. package/dist/internals/src/WasmPanicRegistry.d.ts +0 -5
  37. package/dist/internals/src/WasmSchemaEngineLoader.d.ts +0 -5
  38. package/dist/internals/src/cli/Help.d.ts +0 -11
  39. package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +0 -18
  40. package/dist/internals/src/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  41. package/dist/internals/src/cli/directoryConfig.d.ts +0 -7
  42. package/dist/internals/src/cli/getGeneratorSuccessMessage.d.ts +0 -7
  43. package/dist/internals/src/cli/getTypescriptVersion.d.ts +0 -1
  44. package/dist/internals/src/cli/hashes.d.ts +0 -10
  45. package/dist/internals/src/cli/schemaContext.d.ts +0 -59
  46. package/dist/internals/src/cli/types.d.ts +0 -47
  47. package/dist/internals/src/cli/utils.d.ts +0 -13
  48. package/dist/internals/src/client/getClientEngineType.d.ts +0 -8
  49. package/dist/internals/src/convertCredentials.d.ts +0 -10
  50. package/dist/internals/src/dotenvExpand.d.ts +0 -35
  51. package/dist/internals/src/engine-commands/errorHelpers.d.ts +0 -4
  52. package/dist/internals/src/engine-commands/formatSchema.d.ts +0 -22
  53. package/dist/internals/src/engine-commands/getConfig.d.ts +0 -31
  54. package/dist/internals/src/engine-commands/getDmmf.d.ts +0 -20
  55. package/dist/internals/src/engine-commands/getEngineVersion.d.ts +0 -4
  56. package/dist/internals/src/engine-commands/getEnginesMetaInfo.d.ts +0 -25
  57. package/dist/internals/src/engine-commands/index.d.ts +0 -10
  58. package/dist/internals/src/engine-commands/lintSchema.d.ts +0 -26
  59. package/dist/internals/src/engine-commands/mergeSchemas.d.ts +0 -12
  60. package/dist/internals/src/engine-commands/queryEngineCommons.d.ts +0 -31
  61. package/dist/internals/src/engine-commands/relativizePathInPSLError.d.ts +0 -1
  62. package/dist/internals/src/engine-commands/validate.d.ts +0 -12
  63. package/dist/internals/src/errorReporting.d.ts +0 -25
  64. package/dist/internals/src/get-generators/getGenerators.d.ts +0 -71
  65. package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +0 -3
  66. package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +0 -3
  67. package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +0 -3
  68. package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +0 -3
  69. package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +0 -2
  70. package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +0 -9
  71. package/dist/internals/src/getPackedPackage.d.ts +0 -1
  72. package/dist/internals/src/highlight/highlight.d.ts +0 -3
  73. package/dist/internals/src/highlight/languages/dml.d.ts +0 -2
  74. package/dist/internals/src/highlight/languages/sql.d.ts +0 -2
  75. package/dist/internals/src/highlight/prism.d.ts +0 -6
  76. package/dist/internals/src/highlight/theme.d.ts +0 -2
  77. package/dist/internals/src/highlight/types.d.ts +0 -35
  78. package/dist/internals/src/index.d.ts +0 -92
  79. package/dist/internals/src/logger.d.ts +0 -14
  80. package/dist/internals/src/migrateTypes.d.ts +0 -89
  81. package/dist/internals/src/panic.d.ts +0 -31
  82. package/dist/internals/src/resolveBinary.d.ts +0 -6
  83. package/dist/internals/src/resolveOutput.d.ts +0 -5
  84. package/dist/internals/src/resolvePkg.d.ts +0 -7
  85. package/dist/internals/src/schemaEngineCommands.d.ts +0 -37
  86. package/dist/internals/src/sendPanic.d.ts +0 -10
  87. package/dist/internals/src/tracing/types.d.ts +0 -55
  88. package/dist/internals/src/types.d.ts +0 -19
  89. package/dist/internals/src/utils/assertAlways.d.ts +0 -14
  90. package/dist/internals/src/utils/assertNever.d.ts +0 -27
  91. package/dist/internals/src/utils/binaryTargetRegex.d.ts +0 -8
  92. package/dist/internals/src/utils/byline.d.ts +0 -4
  93. package/dist/internals/src/utils/callOnce.d.ts +0 -13
  94. package/dist/internals/src/utils/canPrompt.d.ts +0 -1
  95. package/dist/internals/src/utils/chmodPlusX.d.ts +0 -1
  96. package/dist/internals/src/utils/cloudflareD1.d.ts +0 -5
  97. package/dist/internals/src/utils/drawBox.d.ts +0 -9
  98. package/dist/internals/src/utils/extractPreviewFeatures.d.ts +0 -2
  99. package/dist/internals/src/utils/formatTable.d.ts +0 -5
  100. package/dist/internals/src/utils/formatms.d.ts +0 -5
  101. package/dist/internals/src/utils/fs-functional.d.ts +0 -53
  102. package/dist/internals/src/utils/fs-utils.d.ts +0 -30
  103. package/dist/internals/src/utils/getCommandWithExecutor.d.ts +0 -1
  104. package/dist/internals/src/utils/getEnvPaths.d.ts +0 -14
  105. package/dist/internals/src/utils/getGitHubIssueUrl.d.ts +0 -18
  106. package/dist/internals/src/utils/getMigrateConfigDir.d.ts +0 -2
  107. package/dist/internals/src/utils/getVersionFromPackageJson.d.ts +0 -1
  108. package/dist/internals/src/utils/handleEngineLoadingErrors.d.ts +0 -8
  109. package/dist/internals/src/utils/handlePanic.d.ts +0 -11
  110. package/dist/internals/src/utils/hasOwnProperty.d.ts +0 -1
  111. package/dist/internals/src/utils/isCi.d.ts +0 -1
  112. package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +0 -1
  113. package/dist/internals/src/utils/isInContainer.d.ts +0 -5
  114. package/dist/internals/src/utils/isInNpmLifecycleHook.d.ts +0 -4
  115. package/dist/internals/src/utils/isInteractive.d.ts +0 -6
  116. package/dist/internals/src/utils/isPromiseLike.d.ts +0 -1
  117. package/dist/internals/src/utils/isValidJsIdentifier.d.ts +0 -1
  118. package/dist/internals/src/utils/keyBy.d.ts +0 -9
  119. package/dist/internals/src/utils/link.d.ts +0 -1
  120. package/dist/internals/src/utils/load.d.ts +0 -6
  121. package/dist/internals/src/utils/loadEnvFile.d.ts +0 -10
  122. package/dist/internals/src/utils/mapKeys.d.ts +0 -1
  123. package/dist/internals/src/utils/mapObjectValues.d.ts +0 -1
  124. package/dist/internals/src/utils/maskSchema.d.ts +0 -4
  125. package/dist/internals/src/utils/max.d.ts +0 -11
  126. package/dist/internals/src/utils/maybeInGitHook.d.ts +0 -9
  127. package/dist/internals/src/utils/missingDatasource.d.ts +0 -1
  128. package/dist/internals/src/utils/missingGeneratorMessage.d.ts +0 -3
  129. package/dist/internals/src/utils/parseAWSNodejsRuntimeEnvVarVersion.d.ts +0 -1
  130. package/dist/internals/src/utils/parseEnvValue.d.ts +0 -17
  131. package/dist/internals/src/utils/path.d.ts +0 -14
  132. package/dist/internals/src/utils/pick.d.ts +0 -1
  133. package/dist/internals/src/utils/printConfigWarnings.d.ts +0 -1
  134. package/dist/internals/src/utils/prismaPostgres.d.ts +0 -3
  135. package/dist/internals/src/utils/serializeQueryEngineName.d.ts +0 -4
  136. package/dist/internals/src/utils/setClassName.d.ts +0 -9
  137. package/dist/internals/src/utils/toSchemasContainer.d.ts +0 -5
  138. package/dist/internals/src/utils/tryLoadEnvs.d.ts +0 -25
  139. package/dist/internals/src/utils/vercelPkgPathRegex.d.ts +0 -1
  140. package/dist/internals/src/warnOnce.d.ts +0 -1
  141. package/dist/internals/src/wasm.d.ts +0 -5
  142. package/dist/multipart-parser-ASKQAOL4-WZ47HU6G.js +0 -4696
  143. package/dist/multipart-parser-QCI3Y5IB.js +0 -4561
  144. package/dist/typescript-2LKASCMC.js +0 -205192
  145. package/dist/typescript-H3AVJ6KX.js +0 -205230
@@ -26,17 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MJAWC6DU_exports = {};
30
- __export(chunk_MJAWC6DU_exports, {
29
+ var chunk_R6N4ZN7K_exports = {};
30
+ __export(chunk_R6N4ZN7K_exports, {
31
31
  MigrateDiff: () => MigrateDiff
32
32
  });
33
- module.exports = __toCommonJS(chunk_MJAWC6DU_exports);
33
+ module.exports = __toCommonJS(chunk_R6N4ZN7K_exports);
34
34
  var import_chunk_33LPBNDX = require("./chunk-33LPBNDX.js");
35
35
  var import_chunk_AUGZZ6RT = require("./chunk-AUGZZ6RT.js");
36
36
  var import_chunk_VAJ4VX67 = require("./chunk-VAJ4VX67.js");
37
- var import_chunk_JOAFF4FT = require("./chunk-JOAFF4FT.js");
37
+ var import_chunk_QRILN5QM = require("./chunk-QRILN5QM.js");
38
38
  var import_chunk_PQKZ53DW = require("./chunk-PQKZ53DW.js");
39
- var import_chunk_OEWQACEH = require("./chunk-OEWQACEH.js");
40
39
  var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
41
40
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
42
41
  var import_debug = __toESM(require("@prisma/debug"));
@@ -54,10 +53,6 @@ var import_promises2 = __toESM(require("node:fs/promises"));
54
53
  var import_node_path3 = __toESM(require("node:path"));
55
54
  var import_node_url2 = require("node:url");
56
55
  var import_util = require("util");
57
- var import_debug3 = __toESM(require("@prisma/debug"));
58
- var import_get_platform = require("@prisma/get-platform");
59
- var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
60
- var import_node_path4 = __toESM(require("node:path"));
61
56
  var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
62
57
  "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(exports, module2) {
63
58
  "use strict";
@@ -250,19 +245,19 @@ var require_remove = (0, import_chunk_2ESYSVXG.__commonJS)({
250
245
  "use strict";
251
246
  var fs3 = require_fs();
252
247
  var validate = require_validate();
253
- var validateInput = (methodName, path7) => {
248
+ var validateInput = (methodName, path6) => {
254
249
  const methodSignature = `${methodName}([path])`;
255
- validate.argument(methodSignature, "path", path7, ["string", "undefined"]);
250
+ validate.argument(methodSignature, "path", path6, ["string", "undefined"]);
256
251
  };
257
- var removeSync = (path7) => {
258
- fs3.rmSync(path7, {
252
+ var removeSync = (path6) => {
253
+ fs3.rmSync(path6, {
259
254
  recursive: true,
260
255
  force: true,
261
256
  maxRetries: 3
262
257
  });
263
258
  };
264
- var removeAsync = (path7) => {
265
- return fs3.rm(path7, {
259
+ var removeAsync = (path6) => {
260
+ return fs3.rm(path6, {
266
261
  recursive: true,
267
262
  force: true,
268
263
  maxRetries: 3
@@ -281,9 +276,9 @@ var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
281
276
  var modeUtil = require_mode();
282
277
  var validate = require_validate();
283
278
  var remove = require_remove();
284
- var validateInput = (methodName, path7, criteria) => {
279
+ var validateInput = (methodName, path6, criteria) => {
285
280
  const methodSignature = `${methodName}(path, [criteria])`;
286
- validate.argument(methodSignature, "path", path7, ["string"]);
281
+ validate.argument(methodSignature, "path", path6, ["string"]);
287
282
  validate.options(methodSignature, "criteria", criteria, {
288
283
  empty: ["boolean"],
289
284
  mode: ["string", "number"]
@@ -299,73 +294,73 @@ var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
299
294
  }
300
295
  return criteria;
301
296
  };
302
- var generatePathOccupiedByNotDirectoryError = (path7) => {
297
+ var generatePathOccupiedByNotDirectoryError = (path6) => {
303
298
  return new Error(
304
- `Path ${path7} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`
299
+ `Path ${path6} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`
305
300
  );
306
301
  };
307
- var checkWhatAlreadyOccupiesPathSync = (path7) => {
302
+ var checkWhatAlreadyOccupiesPathSync = (path6) => {
308
303
  let stat2;
309
304
  try {
310
- stat2 = fs3.statSync(path7);
305
+ stat2 = fs3.statSync(path6);
311
306
  } catch (err) {
312
307
  if (err.code !== "ENOENT") {
313
308
  throw err;
314
309
  }
315
310
  }
316
311
  if (stat2 && !stat2.isDirectory()) {
317
- throw generatePathOccupiedByNotDirectoryError(path7);
312
+ throw generatePathOccupiedByNotDirectoryError(path6);
318
313
  }
319
314
  return stat2;
320
315
  };
321
- var createBrandNewDirectorySync = (path7, opts) => {
316
+ var createBrandNewDirectorySync = (path6, opts) => {
322
317
  const options = opts || {};
323
318
  try {
324
- fs3.mkdirSync(path7, options.mode);
319
+ fs3.mkdirSync(path6, options.mode);
325
320
  } catch (err) {
326
321
  if (err.code === "ENOENT") {
327
- createBrandNewDirectorySync(pathUtil.dirname(path7), options);
328
- fs3.mkdirSync(path7, options.mode);
322
+ createBrandNewDirectorySync(pathUtil.dirname(path6), options);
323
+ fs3.mkdirSync(path6, options.mode);
329
324
  } else if (err.code === "EEXIST") {
330
325
  } else {
331
326
  throw err;
332
327
  }
333
328
  }
334
329
  };
335
- var checkExistingDirectoryFulfillsCriteriaSync = (path7, stat2, criteria) => {
330
+ var checkExistingDirectoryFulfillsCriteriaSync = (path6, stat2, criteria) => {
336
331
  const checkMode = () => {
337
332
  const mode = modeUtil.normalizeFileMode(stat2.mode);
338
333
  if (criteria.mode !== void 0 && criteria.mode !== mode) {
339
- fs3.chmodSync(path7, criteria.mode);
334
+ fs3.chmodSync(path6, criteria.mode);
340
335
  }
341
336
  };
342
337
  const checkEmptiness = () => {
343
338
  if (criteria.empty) {
344
- const list = fs3.readdirSync(path7);
339
+ const list = fs3.readdirSync(path6);
345
340
  list.forEach((filename) => {
346
- remove.sync(pathUtil.resolve(path7, filename));
341
+ remove.sync(pathUtil.resolve(path6, filename));
347
342
  });
348
343
  }
349
344
  };
350
345
  checkMode();
351
346
  checkEmptiness();
352
347
  };
353
- var dirSync = (path7, passedCriteria) => {
348
+ var dirSync = (path6, passedCriteria) => {
354
349
  const criteria = getCriteriaDefaults(passedCriteria);
355
- const stat2 = checkWhatAlreadyOccupiesPathSync(path7);
350
+ const stat2 = checkWhatAlreadyOccupiesPathSync(path6);
356
351
  if (stat2) {
357
- checkExistingDirectoryFulfillsCriteriaSync(path7, stat2, criteria);
352
+ checkExistingDirectoryFulfillsCriteriaSync(path6, stat2, criteria);
358
353
  } else {
359
- createBrandNewDirectorySync(path7, criteria);
354
+ createBrandNewDirectorySync(path6, criteria);
360
355
  }
361
356
  };
362
- var checkWhatAlreadyOccupiesPathAsync = (path7) => {
357
+ var checkWhatAlreadyOccupiesPathAsync = (path6) => {
363
358
  return new Promise((resolve, reject) => {
364
- fs3.stat(path7).then((stat2) => {
359
+ fs3.stat(path6).then((stat2) => {
365
360
  if (stat2.isDirectory()) {
366
361
  resolve(stat2);
367
362
  } else {
368
- reject(generatePathOccupiedByNotDirectoryError(path7));
363
+ reject(generatePathOccupiedByNotDirectoryError(path6));
369
364
  }
370
365
  }).catch((err) => {
371
366
  if (err.code === "ENOENT") {
@@ -376,14 +371,14 @@ var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
376
371
  });
377
372
  });
378
373
  };
379
- var emptyAsync = (path7) => {
374
+ var emptyAsync = (path6) => {
380
375
  return new Promise((resolve, reject) => {
381
- fs3.readdir(path7).then((list) => {
376
+ fs3.readdir(path6).then((list) => {
382
377
  const doOne = (index) => {
383
378
  if (index === list.length) {
384
379
  resolve();
385
380
  } else {
386
- const subPath = pathUtil.resolve(path7, list[index]);
381
+ const subPath = pathUtil.resolve(path6, list[index]);
387
382
  remove.async(subPath).then(() => {
388
383
  doOne(index + 1);
389
384
  });
@@ -393,31 +388,31 @@ var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
393
388
  }).catch(reject);
394
389
  });
395
390
  };
396
- var checkExistingDirectoryFulfillsCriteriaAsync = (path7, stat2, criteria) => {
391
+ var checkExistingDirectoryFulfillsCriteriaAsync = (path6, stat2, criteria) => {
397
392
  return new Promise((resolve, reject) => {
398
393
  const checkMode = () => {
399
394
  const mode = modeUtil.normalizeFileMode(stat2.mode);
400
395
  if (criteria.mode !== void 0 && criteria.mode !== mode) {
401
- return fs3.chmod(path7, criteria.mode);
396
+ return fs3.chmod(path6, criteria.mode);
402
397
  }
403
398
  return Promise.resolve();
404
399
  };
405
400
  const checkEmptiness = () => {
406
401
  if (criteria.empty) {
407
- return emptyAsync(path7);
402
+ return emptyAsync(path6);
408
403
  }
409
404
  return Promise.resolve();
410
405
  };
411
406
  checkMode().then(checkEmptiness).then(resolve, reject);
412
407
  });
413
408
  };
414
- var createBrandNewDirectoryAsync = (path7, opts) => {
409
+ var createBrandNewDirectoryAsync = (path6, opts) => {
415
410
  const options = opts || {};
416
411
  return new Promise((resolve, reject) => {
417
- fs3.mkdir(path7, options.mode).then(resolve).catch((err) => {
412
+ fs3.mkdir(path6, options.mode).then(resolve).catch((err) => {
418
413
  if (err.code === "ENOENT") {
419
- createBrandNewDirectoryAsync(pathUtil.dirname(path7), options).then(() => {
420
- return fs3.mkdir(path7, options.mode);
414
+ createBrandNewDirectoryAsync(pathUtil.dirname(path6), options).then(() => {
415
+ return fs3.mkdir(path6, options.mode);
421
416
  }).then(resolve).catch((err2) => {
422
417
  if (err2.code === "EEXIST") {
423
418
  resolve();
@@ -433,18 +428,18 @@ var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({
433
428
  });
434
429
  });
435
430
  };
436
- var dirAsync = (path7, passedCriteria) => {
431
+ var dirAsync = (path6, passedCriteria) => {
437
432
  return new Promise((resolve, reject) => {
438
433
  const criteria = getCriteriaDefaults(passedCriteria);
439
- checkWhatAlreadyOccupiesPathAsync(path7).then((stat2) => {
434
+ checkWhatAlreadyOccupiesPathAsync(path6).then((stat2) => {
440
435
  if (stat2 !== void 0) {
441
436
  return checkExistingDirectoryFulfillsCriteriaAsync(
442
- path7,
437
+ path6,
443
438
  stat2,
444
439
  criteria
445
440
  );
446
441
  }
447
- return createBrandNewDirectoryAsync(path7, criteria);
442
+ return createBrandNewDirectoryAsync(path6, criteria);
448
443
  }).then(resolve, reject);
449
444
  });
450
445
  };
@@ -462,9 +457,9 @@ var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({
462
457
  var fs3 = require_fs();
463
458
  var validate = require_validate();
464
459
  var dir = require_dir();
465
- var validateInput = (methodName, path7, data, options) => {
460
+ var validateInput = (methodName, path6, data, options) => {
466
461
  const methodSignature = `${methodName}(path, data, [options])`;
467
- validate.argument(methodSignature, "path", path7, ["string"]);
462
+ validate.argument(methodSignature, "path", path6, ["string"]);
468
463
  validate.argument(methodSignature, "data", data, [
469
464
  "string",
470
465
  "buffer",
@@ -488,37 +483,37 @@ var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({
488
483
  }
489
484
  return data;
490
485
  };
491
- var writeFileSync = (path7, data, options) => {
486
+ var writeFileSync = (path6, data, options) => {
492
487
  try {
493
- fs3.writeFileSync(path7, data, options);
488
+ fs3.writeFileSync(path6, data, options);
494
489
  } catch (err) {
495
490
  if (err.code === "ENOENT") {
496
- dir.createSync(pathUtil.dirname(path7));
497
- fs3.writeFileSync(path7, data, options);
491
+ dir.createSync(pathUtil.dirname(path6));
492
+ fs3.writeFileSync(path6, data, options);
498
493
  } else {
499
494
  throw err;
500
495
  }
501
496
  }
502
497
  };
503
- var writeAtomicSync = (path7, data, options) => {
504
- writeFileSync(path7 + newExt, data, options);
505
- fs3.renameSync(path7 + newExt, path7);
498
+ var writeAtomicSync = (path6, data, options) => {
499
+ writeFileSync(path6 + newExt, data, options);
500
+ fs3.renameSync(path6 + newExt, path6);
506
501
  };
507
- var writeSync = (path7, data, options) => {
502
+ var writeSync = (path6, data, options) => {
508
503
  const opts = options || {};
509
504
  const processedData = serializeToJsonMaybe(data, opts.jsonIndent);
510
505
  let writeStrategy = writeFileSync;
511
506
  if (opts.atomic) {
512
507
  writeStrategy = writeAtomicSync;
513
508
  }
514
- writeStrategy(path7, processedData, { mode: opts.mode });
509
+ writeStrategy(path6, processedData, { mode: opts.mode });
515
510
  };
516
- var writeFileAsync = (path7, data, options) => {
511
+ var writeFileAsync = (path6, data, options) => {
517
512
  return new Promise((resolve, reject) => {
518
- fs3.writeFile(path7, data, options).then(resolve).catch((err) => {
513
+ fs3.writeFile(path6, data, options).then(resolve).catch((err) => {
519
514
  if (err.code === "ENOENT") {
520
- dir.createAsync(pathUtil.dirname(path7)).then(() => {
521
- return fs3.writeFile(path7, data, options);
515
+ dir.createAsync(pathUtil.dirname(path6)).then(() => {
516
+ return fs3.writeFile(path6, data, options);
522
517
  }).then(resolve, reject);
523
518
  } else {
524
519
  reject(err);
@@ -526,21 +521,21 @@ var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({
526
521
  });
527
522
  });
528
523
  };
529
- var writeAtomicAsync = (path7, data, options) => {
524
+ var writeAtomicAsync = (path6, data, options) => {
530
525
  return new Promise((resolve, reject) => {
531
- writeFileAsync(path7 + newExt, data, options).then(() => {
532
- return fs3.rename(path7 + newExt, path7);
526
+ writeFileAsync(path6 + newExt, data, options).then(() => {
527
+ return fs3.rename(path6 + newExt, path6);
533
528
  }).then(resolve, reject);
534
529
  });
535
530
  };
536
- var writeAsync = (path7, data, options) => {
531
+ var writeAsync = (path6, data, options) => {
537
532
  const opts = options || {};
538
533
  const processedData = serializeToJsonMaybe(data, opts.jsonIndent);
539
534
  let writeStrategy = writeFileAsync;
540
535
  if (opts.atomic) {
541
536
  writeStrategy = writeAtomicAsync;
542
537
  }
543
- return writeStrategy(path7, processedData, { mode: opts.mode });
538
+ return writeStrategy(path6, processedData, { mode: opts.mode });
544
539
  };
545
540
  exports.validateInput = validateInput;
546
541
  exports.sync = writeSync;
@@ -553,30 +548,30 @@ var require_append = (0, import_chunk_2ESYSVXG.__commonJS)({
553
548
  var fs3 = require_fs();
554
549
  var write = require_write();
555
550
  var validate = require_validate();
556
- var validateInput = (methodName, path7, data, options) => {
551
+ var validateInput = (methodName, path6, data, options) => {
557
552
  const methodSignature = `${methodName}(path, data, [options])`;
558
- validate.argument(methodSignature, "path", path7, ["string"]);
553
+ validate.argument(methodSignature, "path", path6, ["string"]);
559
554
  validate.argument(methodSignature, "data", data, ["string", "buffer"]);
560
555
  validate.options(methodSignature, "options", options, {
561
556
  mode: ["string", "number"]
562
557
  });
563
558
  };
564
- var appendSync = (path7, data, options) => {
559
+ var appendSync = (path6, data, options) => {
565
560
  try {
566
- fs3.appendFileSync(path7, data, options);
561
+ fs3.appendFileSync(path6, data, options);
567
562
  } catch (err) {
568
563
  if (err.code === "ENOENT") {
569
- write.sync(path7, data, options);
564
+ write.sync(path6, data, options);
570
565
  } else {
571
566
  throw err;
572
567
  }
573
568
  }
574
569
  };
575
- var appendAsync = (path7, data, options) => {
570
+ var appendAsync = (path6, data, options) => {
576
571
  return new Promise((resolve, reject) => {
577
- fs3.appendFile(path7, data, options).then(resolve).catch((err) => {
572
+ fs3.appendFile(path6, data, options).then(resolve).catch((err) => {
578
573
  if (err.code === "ENOENT") {
579
- write.async(path7, data, options).then(resolve, reject);
574
+ write.async(path6, data, options).then(resolve, reject);
580
575
  } else {
581
576
  reject(err);
582
577
  }
@@ -595,9 +590,9 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
595
590
  var modeUtil = require_mode();
596
591
  var validate = require_validate();
597
592
  var write = require_write();
598
- var validateInput = (methodName, path7, criteria) => {
593
+ var validateInput = (methodName, path6, criteria) => {
599
594
  const methodSignature = `${methodName}(path, [criteria])`;
600
- validate.argument(methodSignature, "path", path7, ["string"]);
595
+ validate.argument(methodSignature, "path", path6, ["string"]);
601
596
  validate.options(methodSignature, "criteria", criteria, {
602
597
  content: ["string", "buffer", "object", "array"],
603
598
  jsonIndent: ["number"],
@@ -611,30 +606,30 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
611
606
  }
612
607
  return criteria;
613
608
  };
614
- var generatePathOccupiedByNotFileError = (path7) => {
609
+ var generatePathOccupiedByNotFileError = (path6) => {
615
610
  return new Error(
616
- `Path ${path7} exists but is not a file. Halting jetpack.file() call for safety reasons.`
611
+ `Path ${path6} exists but is not a file. Halting jetpack.file() call for safety reasons.`
617
612
  );
618
613
  };
619
- var checkWhatAlreadyOccupiesPathSync = (path7) => {
614
+ var checkWhatAlreadyOccupiesPathSync = (path6) => {
620
615
  let stat2;
621
616
  try {
622
- stat2 = fs3.statSync(path7);
617
+ stat2 = fs3.statSync(path6);
623
618
  } catch (err) {
624
619
  if (err.code !== "ENOENT") {
625
620
  throw err;
626
621
  }
627
622
  }
628
623
  if (stat2 && !stat2.isFile()) {
629
- throw generatePathOccupiedByNotFileError(path7);
624
+ throw generatePathOccupiedByNotFileError(path6);
630
625
  }
631
626
  return stat2;
632
627
  };
633
- var checkExistingFileFulfillsCriteriaSync = (path7, stat2, criteria) => {
628
+ var checkExistingFileFulfillsCriteriaSync = (path6, stat2, criteria) => {
634
629
  const mode = modeUtil.normalizeFileMode(stat2.mode);
635
630
  const checkContent = () => {
636
631
  if (criteria.content !== void 0) {
637
- write.sync(path7, criteria.content, {
632
+ write.sync(path6, criteria.content, {
638
633
  mode,
639
634
  jsonIndent: criteria.jsonIndent
640
635
  });
@@ -644,7 +639,7 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
644
639
  };
645
640
  const checkMode = () => {
646
641
  if (criteria.mode !== void 0 && criteria.mode !== mode) {
647
- fs3.chmodSync(path7, criteria.mode);
642
+ fs3.chmodSync(path6, criteria.mode);
648
643
  }
649
644
  };
650
645
  const contentReplaced = checkContent();
@@ -652,32 +647,32 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
652
647
  checkMode();
653
648
  }
654
649
  };
655
- var createBrandNewFileSync = (path7, criteria) => {
650
+ var createBrandNewFileSync = (path6, criteria) => {
656
651
  let content = "";
657
652
  if (criteria.content !== void 0) {
658
653
  content = criteria.content;
659
654
  }
660
- write.sync(path7, content, {
655
+ write.sync(path6, content, {
661
656
  mode: criteria.mode,
662
657
  jsonIndent: criteria.jsonIndent
663
658
  });
664
659
  };
665
- var fileSync = (path7, passedCriteria) => {
660
+ var fileSync = (path6, passedCriteria) => {
666
661
  const criteria = getCriteriaDefaults(passedCriteria);
667
- const stat2 = checkWhatAlreadyOccupiesPathSync(path7);
662
+ const stat2 = checkWhatAlreadyOccupiesPathSync(path6);
668
663
  if (stat2 !== void 0) {
669
- checkExistingFileFulfillsCriteriaSync(path7, stat2, criteria);
664
+ checkExistingFileFulfillsCriteriaSync(path6, stat2, criteria);
670
665
  } else {
671
- createBrandNewFileSync(path7, criteria);
666
+ createBrandNewFileSync(path6, criteria);
672
667
  }
673
668
  };
674
- var checkWhatAlreadyOccupiesPathAsync = (path7) => {
669
+ var checkWhatAlreadyOccupiesPathAsync = (path6) => {
675
670
  return new Promise((resolve, reject) => {
676
- fs3.stat(path7).then((stat2) => {
671
+ fs3.stat(path6).then((stat2) => {
677
672
  if (stat2.isFile()) {
678
673
  resolve(stat2);
679
674
  } else {
680
- reject(generatePathOccupiedByNotFileError(path7));
675
+ reject(generatePathOccupiedByNotFileError(path6));
681
676
  }
682
677
  }).catch((err) => {
683
678
  if (err.code === "ENOENT") {
@@ -688,12 +683,12 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
688
683
  });
689
684
  });
690
685
  };
691
- var checkExistingFileFulfillsCriteriaAsync = (path7, stat2, criteria) => {
686
+ var checkExistingFileFulfillsCriteriaAsync = (path6, stat2, criteria) => {
692
687
  const mode = modeUtil.normalizeFileMode(stat2.mode);
693
688
  const checkContent = () => {
694
689
  return new Promise((resolve, reject) => {
695
690
  if (criteria.content !== void 0) {
696
- write.async(path7, criteria.content, {
691
+ write.async(path6, criteria.content, {
697
692
  mode,
698
693
  jsonIndent: criteria.jsonIndent
699
694
  }).then(() => {
@@ -706,7 +701,7 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
706
701
  };
707
702
  const checkMode = () => {
708
703
  if (criteria.mode !== void 0 && criteria.mode !== mode) {
709
- return fs3.chmod(path7, criteria.mode);
704
+ return fs3.chmod(path6, criteria.mode);
710
705
  }
711
706
  return void 0;
712
707
  };
@@ -717,24 +712,24 @@ var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({
717
712
  return void 0;
718
713
  });
719
714
  };
720
- var createBrandNewFileAsync = (path7, criteria) => {
715
+ var createBrandNewFileAsync = (path6, criteria) => {
721
716
  let content = "";
722
717
  if (criteria.content !== void 0) {
723
718
  content = criteria.content;
724
719
  }
725
- return write.async(path7, content, {
720
+ return write.async(path6, content, {
726
721
  mode: criteria.mode,
727
722
  jsonIndent: criteria.jsonIndent
728
723
  });
729
724
  };
730
- var fileAsync = (path7, passedCriteria) => {
725
+ var fileAsync = (path6, passedCriteria) => {
731
726
  return new Promise((resolve, reject) => {
732
727
  const criteria = getCriteriaDefaults(passedCriteria);
733
- checkWhatAlreadyOccupiesPathAsync(path7).then((stat2) => {
728
+ checkWhatAlreadyOccupiesPathAsync(path6).then((stat2) => {
734
729
  if (stat2 !== void 0) {
735
- return checkExistingFileFulfillsCriteriaAsync(path7, stat2, criteria);
730
+ return checkExistingFileFulfillsCriteriaAsync(path6, stat2, criteria);
736
731
  }
737
- return createBrandNewFileAsync(path7, criteria);
732
+ return createBrandNewFileAsync(path6, criteria);
738
733
  }).then(resolve, reject);
739
734
  });
740
735
  };
@@ -752,9 +747,9 @@ var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
752
747
  var validate = require_validate();
753
748
  var supportedChecksumAlgorithms = ["md5", "sha1", "sha256", "sha512"];
754
749
  var symlinkOptions = ["report", "follow"];
755
- var validateInput = (methodName, path7, options) => {
750
+ var validateInput = (methodName, path6, options) => {
756
751
  const methodSignature = `${methodName}(path, [options])`;
757
- validate.argument(methodSignature, "path", path7, ["string"]);
752
+ validate.argument(methodSignature, "path", path6, ["string"]);
758
753
  validate.options(methodSignature, "options", options, {
759
754
  checksum: ["string"],
760
755
  mode: ["boolean"],
@@ -777,9 +772,9 @@ var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
777
772
  );
778
773
  }
779
774
  };
780
- var createInspectObj = (path7, options, stat2) => {
775
+ var createInspectObj = (path6, options, stat2) => {
781
776
  const obj = {};
782
- obj.name = pathUtil.basename(path7);
777
+ obj.name = pathUtil.basename(path6);
783
778
  if (stat2.isFile()) {
784
779
  obj.type = "file";
785
780
  obj.size = stat2.size;
@@ -800,24 +795,24 @@ var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
800
795
  obj.birthTime = stat2.birthtime;
801
796
  }
802
797
  if (options.absolutePath) {
803
- obj.absolutePath = path7;
798
+ obj.absolutePath = path6;
804
799
  }
805
800
  return obj;
806
801
  };
807
- var fileChecksum = (path7, algo) => {
802
+ var fileChecksum = (path6, algo) => {
808
803
  const hash = crypto.createHash(algo);
809
- const data = fs3.readFileSync(path7);
804
+ const data = fs3.readFileSync(path6);
810
805
  hash.update(data);
811
806
  return hash.digest("hex");
812
807
  };
813
- var addExtraFieldsSync = (path7, inspectObj, options) => {
808
+ var addExtraFieldsSync = (path6, inspectObj, options) => {
814
809
  if (inspectObj.type === "file" && options.checksum) {
815
- inspectObj[options.checksum] = fileChecksum(path7, options.checksum);
810
+ inspectObj[options.checksum] = fileChecksum(path6, options.checksum);
816
811
  } else if (inspectObj.type === "symlink") {
817
- inspectObj.pointsAt = fs3.readlinkSync(path7);
812
+ inspectObj.pointsAt = fs3.readlinkSync(path6);
818
813
  }
819
814
  };
820
- var inspectSync = (path7, options) => {
815
+ var inspectSync = (path6, options) => {
821
816
  let statOperation = fs3.lstatSync;
822
817
  let stat2;
823
818
  const opts = options || {};
@@ -825,21 +820,21 @@ var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
825
820
  statOperation = fs3.statSync;
826
821
  }
827
822
  try {
828
- stat2 = statOperation(path7);
823
+ stat2 = statOperation(path6);
829
824
  } catch (err) {
830
825
  if (err.code === "ENOENT") {
831
826
  return void 0;
832
827
  }
833
828
  throw err;
834
829
  }
835
- const inspectObj = createInspectObj(path7, opts, stat2);
836
- addExtraFieldsSync(path7, inspectObj, opts);
830
+ const inspectObj = createInspectObj(path6, opts, stat2);
831
+ addExtraFieldsSync(path6, inspectObj, opts);
837
832
  return inspectObj;
838
833
  };
839
- var fileChecksumAsync = (path7, algo) => {
834
+ var fileChecksumAsync = (path6, algo) => {
840
835
  return new Promise((resolve, reject) => {
841
836
  const hash = crypto.createHash(algo);
842
- const s = fs3.createReadStream(path7);
837
+ const s = fs3.createReadStream(path6);
843
838
  s.on("data", (data) => {
844
839
  hash.update(data);
845
840
  });
@@ -849,30 +844,30 @@ var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({
849
844
  s.on("error", reject);
850
845
  });
851
846
  };
852
- var addExtraFieldsAsync = (path7, inspectObj, options) => {
847
+ var addExtraFieldsAsync = (path6, inspectObj, options) => {
853
848
  if (inspectObj.type === "file" && options.checksum) {
854
- return fileChecksumAsync(path7, options.checksum).then((checksum) => {
849
+ return fileChecksumAsync(path6, options.checksum).then((checksum) => {
855
850
  inspectObj[options.checksum] = checksum;
856
851
  return inspectObj;
857
852
  });
858
853
  } else if (inspectObj.type === "symlink") {
859
- return fs3.readlink(path7).then((linkPath) => {
854
+ return fs3.readlink(path6).then((linkPath) => {
860
855
  inspectObj.pointsAt = linkPath;
861
856
  return inspectObj;
862
857
  });
863
858
  }
864
859
  return Promise.resolve(inspectObj);
865
860
  };
866
- var inspectAsync = (path7, options) => {
861
+ var inspectAsync = (path6, options) => {
867
862
  return new Promise((resolve, reject) => {
868
863
  let statOperation = fs3.lstat;
869
864
  const opts = options || {};
870
865
  if (opts.symlinks === "follow") {
871
866
  statOperation = fs3.stat;
872
867
  }
873
- statOperation(path7).then((stat2) => {
874
- const inspectObj = createInspectObj(path7, opts, stat2);
875
- addExtraFieldsAsync(path7, inspectObj, opts).then(resolve, reject);
868
+ statOperation(path6).then((stat2) => {
869
+ const inspectObj = createInspectObj(path6, opts, stat2);
870
+ addExtraFieldsAsync(path6, inspectObj, opts).then(resolve, reject);
876
871
  }).catch((err) => {
877
872
  if (err.code === "ENOENT") {
878
873
  resolve(void 0);
@@ -894,13 +889,13 @@ var require_list = (0, import_chunk_2ESYSVXG.__commonJS)({
894
889
  "use strict";
895
890
  var fs3 = require_fs();
896
891
  var validate = require_validate();
897
- var validateInput = (methodName, path7) => {
892
+ var validateInput = (methodName, path6) => {
898
893
  const methodSignature = `${methodName}(path)`;
899
- validate.argument(methodSignature, "path", path7, ["string", "undefined"]);
894
+ validate.argument(methodSignature, "path", path6, ["string", "undefined"]);
900
895
  };
901
- var listSync = (path7) => {
896
+ var listSync = (path6) => {
902
897
  try {
903
- return fs3.readdirSync(path7);
898
+ return fs3.readdirSync(path6);
904
899
  } catch (err) {
905
900
  if (err.code === "ENOENT") {
906
901
  return void 0;
@@ -908,9 +903,9 @@ var require_list = (0, import_chunk_2ESYSVXG.__commonJS)({
908
903
  throw err;
909
904
  }
910
905
  };
911
- var listAsync = (path7) => {
906
+ var listAsync = (path6) => {
912
907
  return new Promise((resolve, reject) => {
913
- fs3.readdir(path7).then((list) => {
908
+ fs3.readdir(path6).then((list) => {
914
909
  resolve(list);
915
910
  }).catch((err) => {
916
911
  if (err.code === "ENOENT") {
@@ -945,7 +940,7 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
945
940
  }
946
941
  return "other";
947
942
  };
948
- var initialWalkSync = (path7, options, callback) => {
943
+ var initialWalkSync = (path6, options, callback) => {
949
944
  if (options.maxLevelsDeep === void 0) {
950
945
  options.maxLevelsDeep = Infinity;
951
946
  }
@@ -957,14 +952,14 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
957
952
  options.inspectOptions.symlinks = options.symlinks;
958
953
  }
959
954
  }
960
- const walkSync = (path8, currentLevel) => {
961
- fs3.readdirSync(path8, { withFileTypes: true }).forEach((direntItem) => {
955
+ const walkSync = (path7, currentLevel) => {
956
+ fs3.readdirSync(path7, { withFileTypes: true }).forEach((direntItem) => {
962
957
  const withFileTypesNotSupported = typeof direntItem === "string";
963
958
  let fileItemPath;
964
959
  if (withFileTypesNotSupported) {
965
- fileItemPath = pathUtil.join(path8, direntItem);
960
+ fileItemPath = pathUtil.join(path7, direntItem);
966
961
  } else {
967
- fileItemPath = pathUtil.join(path8, direntItem.name);
962
+ fileItemPath = pathUtil.join(path7, direntItem.name);
968
963
  }
969
964
  let fileItem;
970
965
  if (performInspectOnEachNode) {
@@ -992,22 +987,22 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
992
987
  }
993
988
  });
994
989
  };
995
- const item = inspect.sync(path7, options.inspectOptions);
990
+ const item = inspect.sync(path6, options.inspectOptions);
996
991
  if (item) {
997
992
  if (performInspectOnEachNode) {
998
- callback(path7, item);
993
+ callback(path6, item);
999
994
  } else {
1000
- callback(path7, { name: item.name, type: item.type });
995
+ callback(path6, { name: item.name, type: item.type });
1001
996
  }
1002
997
  if (item.type === "dir") {
1003
- walkSync(path7, 1);
998
+ walkSync(path6, 1);
1004
999
  }
1005
1000
  } else {
1006
- callback(path7, void 0);
1001
+ callback(path6, void 0);
1007
1002
  }
1008
1003
  };
1009
1004
  var maxConcurrentOperations = 5;
1010
- var initialWalkAsync = (path7, options, callback, doneCallback) => {
1005
+ var initialWalkAsync = (path6, options, callback, doneCallback) => {
1011
1006
  if (options.maxLevelsDeep === void 0) {
1012
1007
  options.maxLevelsDeep = Infinity;
1013
1008
  }
@@ -1038,14 +1033,14 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
1038
1033
  nowDoingConcurrentOperations -= 1;
1039
1034
  checkConcurrentOperations();
1040
1035
  };
1041
- const walkAsync = (path8, currentLevel) => {
1036
+ const walkAsync = (path7, currentLevel) => {
1042
1037
  const goDeeperIfDir = (fileItemPath, fileItem) => {
1043
1038
  if (fileItem.type === "dir" && currentLevel < options.maxLevelsDeep) {
1044
1039
  walkAsync(fileItemPath, currentLevel + 1);
1045
1040
  }
1046
1041
  };
1047
1042
  whenConcurrencySlotAvailable(() => {
1048
- fs3.readdir(path8, { withFileTypes: true }, (err, files) => {
1043
+ fs3.readdir(path7, { withFileTypes: true }, (err, files) => {
1049
1044
  if (err) {
1050
1045
  doneCallback(err);
1051
1046
  } else {
@@ -1053,9 +1048,9 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
1053
1048
  const withFileTypesNotSupported = typeof direntItem === "string";
1054
1049
  let fileItemPath;
1055
1050
  if (withFileTypesNotSupported) {
1056
- fileItemPath = pathUtil.join(path8, direntItem);
1051
+ fileItemPath = pathUtil.join(path7, direntItem);
1057
1052
  } else {
1058
- fileItemPath = pathUtil.join(path8, direntItem.name);
1053
+ fileItemPath = pathUtil.join(path7, direntItem.name);
1059
1054
  }
1060
1055
  if (performInspectOnEachNode || withFileTypesNotSupported) {
1061
1056
  whenConcurrencySlotAvailable(() => {
@@ -1106,20 +1101,20 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
1106
1101
  });
1107
1102
  });
1108
1103
  };
1109
- inspect.async(path7, options.inspectOptions).then((item) => {
1104
+ inspect.async(path6, options.inspectOptions).then((item) => {
1110
1105
  if (item) {
1111
1106
  if (performInspectOnEachNode) {
1112
- callback(path7, item);
1107
+ callback(path6, item);
1113
1108
  } else {
1114
- callback(path7, { name: item.name, type: item.type });
1109
+ callback(path6, { name: item.name, type: item.type });
1115
1110
  }
1116
1111
  if (item.type === "dir") {
1117
- walkAsync(path7, 1);
1112
+ walkAsync(path6, 1);
1118
1113
  } else {
1119
1114
  doneCallback();
1120
1115
  }
1121
1116
  } else {
1122
- callback(path7, void 0);
1117
+ callback(path6, void 0);
1123
1118
  doneCallback();
1124
1119
  }
1125
1120
  }).catch((err) => {
@@ -1159,7 +1154,7 @@ var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
1159
1154
  }
1160
1155
  balanced.range = range;
1161
1156
  function range(a, b, str) {
1162
- var begs, beg, left3, right3, result;
1157
+ var begs, beg, left, right, result;
1163
1158
  var ai = str.indexOf(a);
1164
1159
  var bi = str.indexOf(b, ai + 1);
1165
1160
  var i = ai;
@@ -1168,7 +1163,7 @@ var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
1168
1163
  return [ai, bi];
1169
1164
  }
1170
1165
  begs = [];
1171
- left3 = str.length;
1166
+ left = str.length;
1172
1167
  while (i >= 0 && !result) {
1173
1168
  if (i == ai) {
1174
1169
  begs.push(i);
@@ -1177,16 +1172,16 @@ var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
1177
1172
  result = [begs.pop(), bi];
1178
1173
  } else {
1179
1174
  beg = begs.pop();
1180
- if (beg < left3) {
1181
- left3 = beg;
1182
- right3 = bi;
1175
+ if (beg < left) {
1176
+ left = beg;
1177
+ right = bi;
1183
1178
  }
1184
1179
  bi = str.indexOf(b, i + 1);
1185
1180
  }
1186
1181
  i = ai < bi && ai >= 0 ? ai : bi;
1187
1182
  }
1188
1183
  if (begs.length) {
1189
- result = [left3, right3];
1184
+ result = [left, right];
1190
1185
  }
1191
1186
  }
1192
1187
  return result;
@@ -1289,7 +1284,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1289
1284
  }
1290
1285
  }
1291
1286
  }
1292
- var N2;
1287
+ var N;
1293
1288
  if (isSequence) {
1294
1289
  var x = numeric(n[0]);
1295
1290
  var y = numeric(n[1]);
@@ -1302,7 +1297,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1302
1297
  test = gte;
1303
1298
  }
1304
1299
  var pad = n.some(isPadded);
1305
- N2 = [];
1300
+ N = [];
1306
1301
  for (var i = x; test(i, y); i += incr) {
1307
1302
  var c;
1308
1303
  if (isAlphaSequence) {
@@ -1314,25 +1309,25 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1314
1309
  if (pad) {
1315
1310
  var need = width - c.length;
1316
1311
  if (need > 0) {
1317
- var z2 = new Array(need + 1).join("0");
1312
+ var z = new Array(need + 1).join("0");
1318
1313
  if (i < 0)
1319
- c = "-" + z2 + c.slice(1);
1314
+ c = "-" + z + c.slice(1);
1320
1315
  else
1321
- c = z2 + c;
1316
+ c = z + c;
1322
1317
  }
1323
1318
  }
1324
1319
  }
1325
- N2.push(c);
1320
+ N.push(c);
1326
1321
  }
1327
1322
  } else {
1328
- N2 = [];
1323
+ N = [];
1329
1324
  for (var j = 0; j < n.length; j++) {
1330
- N2.push.apply(N2, expand(n[j], false));
1325
+ N.push.apply(N, expand(n[j], false));
1331
1326
  }
1332
1327
  }
1333
- for (var j = 0; j < N2.length; j++) {
1328
+ for (var j = 0; j < N.length; j++) {
1334
1329
  for (var k = 0; k < post.length; k++) {
1335
- var expansion = pre + N2[j] + post[k];
1330
+ var expansion = pre + N[j] + post[k];
1336
1331
  if (!isTop || isSequence || expansion)
1337
1332
  expansions.push(expansion);
1338
1333
  }
@@ -1353,8 +1348,8 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
1353
1348
  return new Minimatch(pattern, options).match(p);
1354
1349
  };
1355
1350
  module2.exports = minimatch;
1356
- var path7 = require_path();
1357
- minimatch.sep = path7.sep;
1351
+ var path6 = require_path();
1352
+ minimatch.sep = path6.sep;
1358
1353
  var GLOBSTAR = Symbol("globstar **");
1359
1354
  minimatch.GLOBSTAR = GLOBSTAR;
1360
1355
  var expand = require_brace_expansion();
@@ -1839,8 +1834,8 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
1839
1834
  if (this.empty) return f === "";
1840
1835
  if (f === "/" && partial) return true;
1841
1836
  const options = this.options;
1842
- if (path7.sep !== "/") {
1843
- f = f.split(path7.sep).join("/");
1837
+ if (path6.sep !== "/") {
1838
+ f = f.split(path6.sep).join("/");
1844
1839
  }
1845
1840
  f = f.split(slashSplit);
1846
1841
  this.debug(this.pattern, "split", f);
@@ -1948,9 +1943,9 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
1948
1943
  var inspect = require_inspect();
1949
1944
  var matcher = require_matcher();
1950
1945
  var validate = require_validate();
1951
- var validateInput = (methodName, path7, options) => {
1946
+ var validateInput = (methodName, path6, options) => {
1952
1947
  const methodSignature = `${methodName}([path], options)`;
1953
- validate.argument(methodSignature, "path", path7, ["string"]);
1948
+ validate.argument(methodSignature, "path", path6, ["string"]);
1954
1949
  validate.options(methodSignature, "options", options, {
1955
1950
  matching: ["string", "array of string"],
1956
1951
  filter: ["function"],
@@ -1980,26 +1975,26 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
1980
1975
  return opts;
1981
1976
  };
1982
1977
  var processFoundPaths = (foundPaths, cwd) => {
1983
- return foundPaths.map((path7) => {
1984
- return pathUtil.relative(cwd, path7);
1978
+ return foundPaths.map((path6) => {
1979
+ return pathUtil.relative(cwd, path6);
1985
1980
  });
1986
1981
  };
1987
- var generatePathDoesntExistError = (path7) => {
1988
- const err = new Error(`Path you want to find stuff in doesn't exist ${path7}`);
1982
+ var generatePathDoesntExistError = (path6) => {
1983
+ const err = new Error(`Path you want to find stuff in doesn't exist ${path6}`);
1989
1984
  err.code = "ENOENT";
1990
1985
  return err;
1991
1986
  };
1992
- var generatePathNotDirectoryError = (path7) => {
1987
+ var generatePathNotDirectoryError = (path6) => {
1993
1988
  const err = new Error(
1994
- `Path you want to find stuff in must be a directory ${path7}`
1989
+ `Path you want to find stuff in must be a directory ${path6}`
1995
1990
  );
1996
1991
  err.code = "ENOTDIR";
1997
1992
  return err;
1998
1993
  };
1999
- var findSync = (path7, options) => {
1994
+ var findSync = (path6, options) => {
2000
1995
  const foundAbsolutePaths = [];
2001
1996
  const matchesAnyOfGlobs = matcher.create(
2002
- path7,
1997
+ path6,
2003
1998
  options.matching,
2004
1999
  options.ignoreCase
2005
2000
  );
@@ -2008,14 +2003,14 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
2008
2003
  maxLevelsDeep = 1;
2009
2004
  }
2010
2005
  treeWalker.sync(
2011
- path7,
2006
+ path6,
2012
2007
  {
2013
2008
  maxLevelsDeep,
2014
2009
  symlinks: "follow",
2015
2010
  inspectOptions: { times: true, absolutePath: true }
2016
2011
  },
2017
2012
  (itemPath, item) => {
2018
- if (item && itemPath !== path7 && matchesAnyOfGlobs(itemPath)) {
2013
+ if (item && itemPath !== path6 && matchesAnyOfGlobs(itemPath)) {
2019
2014
  const weHaveMatch = item.type === "file" && options.files === true || item.type === "dir" && options.directories === true;
2020
2015
  if (weHaveMatch) {
2021
2016
  if (options.filter) {
@@ -2033,20 +2028,20 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
2033
2028
  foundAbsolutePaths.sort();
2034
2029
  return processFoundPaths(foundAbsolutePaths, options.cwd);
2035
2030
  };
2036
- var findSyncInit = (path7, options) => {
2037
- const entryPointInspect = inspect.sync(path7, { symlinks: "follow" });
2031
+ var findSyncInit = (path6, options) => {
2032
+ const entryPointInspect = inspect.sync(path6, { symlinks: "follow" });
2038
2033
  if (entryPointInspect === void 0) {
2039
- throw generatePathDoesntExistError(path7);
2034
+ throw generatePathDoesntExistError(path6);
2040
2035
  } else if (entryPointInspect.type !== "dir") {
2041
- throw generatePathNotDirectoryError(path7);
2036
+ throw generatePathNotDirectoryError(path6);
2042
2037
  }
2043
- return findSync(path7, normalizeOptions(options));
2038
+ return findSync(path6, normalizeOptions(options));
2044
2039
  };
2045
- var findAsync = (path7, options) => {
2040
+ var findAsync = (path6, options) => {
2046
2041
  return new Promise((resolve, reject) => {
2047
2042
  const foundAbsolutePaths = [];
2048
2043
  const matchesAnyOfGlobs = matcher.create(
2049
- path7,
2044
+ path6,
2050
2045
  options.matching,
2051
2046
  options.ignoreCase
2052
2047
  );
@@ -2063,14 +2058,14 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
2063
2058
  }
2064
2059
  };
2065
2060
  treeWalker.async(
2066
- path7,
2061
+ path6,
2067
2062
  {
2068
2063
  maxLevelsDeep,
2069
2064
  symlinks: "follow",
2070
2065
  inspectOptions: { times: true, absolutePath: true }
2071
2066
  },
2072
2067
  (itemPath, item) => {
2073
- if (item && itemPath !== path7 && matchesAnyOfGlobs(itemPath)) {
2068
+ if (item && itemPath !== path6 && matchesAnyOfGlobs(itemPath)) {
2074
2069
  const weHaveMatch = item.type === "file" && options.files === true || item.type === "dir" && options.directories === true;
2075
2070
  if (weHaveMatch) {
2076
2071
  if (options.filter) {
@@ -2107,14 +2102,14 @@ var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({
2107
2102
  );
2108
2103
  });
2109
2104
  };
2110
- var findAsyncInit = (path7, options) => {
2111
- return inspect.async(path7, { symlinks: "follow" }).then((entryPointInspect) => {
2105
+ var findAsyncInit = (path6, options) => {
2106
+ return inspect.async(path6, { symlinks: "follow" }).then((entryPointInspect) => {
2112
2107
  if (entryPointInspect === void 0) {
2113
- throw generatePathDoesntExistError(path7);
2108
+ throw generatePathDoesntExistError(path6);
2114
2109
  } else if (entryPointInspect.type !== "dir") {
2115
- throw generatePathNotDirectoryError(path7);
2110
+ throw generatePathNotDirectoryError(path6);
2116
2111
  }
2117
- return findAsync(path7, normalizeOptions(options));
2112
+ return findAsync(path6, normalizeOptions(options));
2118
2113
  });
2119
2114
  };
2120
2115
  exports.validateInput = validateInput;
@@ -2131,9 +2126,9 @@ var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({
2131
2126
  var list = require_list();
2132
2127
  var validate = require_validate();
2133
2128
  var treeWalker = require_tree_walker();
2134
- var validateInput = (methodName, path7, options) => {
2129
+ var validateInput = (methodName, path6, options) => {
2135
2130
  const methodSignature = `${methodName}(path, [options])`;
2136
- validate.argument(methodSignature, "path", path7, ["string"]);
2131
+ validate.argument(methodSignature, "path", path6, ["string"]);
2137
2132
  validate.options(methodSignature, "options", options, {
2138
2133
  checksum: ["string"],
2139
2134
  relativePath: ["boolean"],
@@ -2207,15 +2202,15 @@ var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({
2207
2202
  }
2208
2203
  return treeNode;
2209
2204
  };
2210
- var inspectTreeSync = (path7, opts) => {
2205
+ var inspectTreeSync = (path6, opts) => {
2211
2206
  const options = opts || {};
2212
2207
  let tree;
2213
- treeWalker.sync(path7, { inspectOptions: options }, (itemPath, item) => {
2208
+ treeWalker.sync(path6, { inspectOptions: options }, (itemPath, item) => {
2214
2209
  if (item) {
2215
2210
  if (item.type === "dir") {
2216
2211
  item.children = [];
2217
2212
  }
2218
- const relativePath = pathUtil.relative(path7, itemPath);
2213
+ const relativePath = pathUtil.relative(path6, itemPath);
2219
2214
  if (relativePath === "") {
2220
2215
  tree = item;
2221
2216
  } else {
@@ -2233,19 +2228,19 @@ var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({
2233
2228
  }
2234
2229
  return tree;
2235
2230
  };
2236
- var inspectTreeAsync = (path7, opts) => {
2231
+ var inspectTreeAsync = (path6, opts) => {
2237
2232
  const options = opts || {};
2238
2233
  let tree;
2239
2234
  return new Promise((resolve, reject) => {
2240
2235
  treeWalker.async(
2241
- path7,
2236
+ path6,
2242
2237
  { inspectOptions: options },
2243
2238
  (itemPath, item) => {
2244
2239
  if (item) {
2245
2240
  if (item.type === "dir") {
2246
2241
  item.children = [];
2247
2242
  }
2248
- const relativePath = pathUtil.relative(path7, itemPath);
2243
+ const relativePath = pathUtil.relative(path6, itemPath);
2249
2244
  if (relativePath === "") {
2250
2245
  tree = item;
2251
2246
  } else {
@@ -2281,13 +2276,13 @@ var require_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
2281
2276
  "use strict";
2282
2277
  var fs3 = require_fs();
2283
2278
  var validate = require_validate();
2284
- var validateInput = (methodName, path7) => {
2279
+ var validateInput = (methodName, path6) => {
2285
2280
  const methodSignature = `${methodName}(path)`;
2286
- validate.argument(methodSignature, "path", path7, ["string"]);
2281
+ validate.argument(methodSignature, "path", path6, ["string"]);
2287
2282
  };
2288
- var existsSync = (path7) => {
2283
+ var existsSync = (path6) => {
2289
2284
  try {
2290
- const stat2 = fs3.statSync(path7);
2285
+ const stat2 = fs3.statSync(path6);
2291
2286
  if (stat2.isDirectory()) {
2292
2287
  return "dir";
2293
2288
  } else if (stat2.isFile()) {
@@ -2301,9 +2296,9 @@ var require_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
2301
2296
  }
2302
2297
  return false;
2303
2298
  };
2304
- var existsAsync = (path7) => {
2299
+ var existsAsync = (path6) => {
2305
2300
  return new Promise((resolve, reject) => {
2306
- fs3.stat(path7).then((stat2) => {
2301
+ fs3.stat(path6).then((stat2) => {
2307
2302
  if (stat2.isDirectory()) {
2308
2303
  resolve("dir");
2309
2304
  } else if (stat2.isFile()) {
@@ -2368,13 +2363,13 @@ var require_copy = (0, import_chunk_2ESYSVXG.__commonJS)({
2368
2363
  }
2369
2364
  return parsedOptions;
2370
2365
  };
2371
- var generateNoSourceError = (path7) => {
2372
- const err = new Error(`Path to copy doesn't exist ${path7}`);
2366
+ var generateNoSourceError = (path6) => {
2367
+ const err = new Error(`Path to copy doesn't exist ${path6}`);
2373
2368
  err.code = "ENOENT";
2374
2369
  return err;
2375
2370
  };
2376
- var generateDestinationExistsError = (path7) => {
2377
- const err = new Error(`Destination path already exists ${path7}`);
2371
+ var generateDestinationExistsError = (path6) => {
2372
+ const err = new Error(`Destination path already exists ${path6}`);
2378
2373
  err.code = "EEXIST";
2379
2374
  return err;
2380
2375
  };
@@ -2612,13 +2607,13 @@ var require_move = (0, import_chunk_2ESYSVXG.__commonJS)({
2612
2607
  const opts = options || {};
2613
2608
  return opts;
2614
2609
  };
2615
- var generateDestinationExistsError = (path7) => {
2616
- const err = new Error(`Destination path already exists ${path7}`);
2610
+ var generateDestinationExistsError = (path6) => {
2611
+ const err = new Error(`Destination path already exists ${path6}`);
2617
2612
  err.code = "EEXIST";
2618
2613
  return err;
2619
2614
  };
2620
- var generateSourceDoesntExistError = (path7) => {
2621
- const err = new Error(`Path to move doesn't exist ${path7}`);
2615
+ var generateSourceDoesntExistError = (path6) => {
2616
+ const err = new Error(`Path to move doesn't exist ${path6}`);
2622
2617
  err.code = "ENOENT";
2623
2618
  return err;
2624
2619
  };
@@ -2700,9 +2695,9 @@ var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
2700
2695
  var fs3 = require_fs();
2701
2696
  var validate = require_validate();
2702
2697
  var supportedReturnAs = ["utf8", "buffer", "json", "jsonWithDates"];
2703
- var validateInput = (methodName, path7, returnAs) => {
2698
+ var validateInput = (methodName, path6, returnAs) => {
2704
2699
  const methodSignature = `${methodName}(path, returnAs)`;
2705
- validate.argument(methodSignature, "path", path7, ["string"]);
2700
+ validate.argument(methodSignature, "path", path6, ["string"]);
2706
2701
  validate.argument(methodSignature, "returnAs", returnAs, [
2707
2702
  "string",
2708
2703
  "undefined"
@@ -2724,14 +2719,14 @@ var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
2724
2719
  }
2725
2720
  return value;
2726
2721
  };
2727
- var makeNicerJsonParsingError = (path7, err) => {
2722
+ var makeNicerJsonParsingError = (path6, err) => {
2728
2723
  const nicerError = new Error(
2729
- `JSON parsing failed while reading ${path7} [${err}]`
2724
+ `JSON parsing failed while reading ${path6} [${err}]`
2730
2725
  );
2731
2726
  nicerError.originalError = err;
2732
2727
  return nicerError;
2733
2728
  };
2734
- var readSync = (path7, returnAs) => {
2729
+ var readSync = (path6, returnAs) => {
2735
2730
  const retAs = returnAs || "utf8";
2736
2731
  let data;
2737
2732
  let encoding = "utf8";
@@ -2739,7 +2734,7 @@ var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
2739
2734
  encoding = null;
2740
2735
  }
2741
2736
  try {
2742
- data = fs3.readFileSync(path7, { encoding });
2737
+ data = fs3.readFileSync(path6, { encoding });
2743
2738
  } catch (err) {
2744
2739
  if (err.code === "ENOENT") {
2745
2740
  return void 0;
@@ -2753,18 +2748,18 @@ var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
2753
2748
  data = JSON.parse(data, jsonDateParser);
2754
2749
  }
2755
2750
  } catch (err) {
2756
- throw makeNicerJsonParsingError(path7, err);
2751
+ throw makeNicerJsonParsingError(path6, err);
2757
2752
  }
2758
2753
  return data;
2759
2754
  };
2760
- var readAsync = (path7, returnAs) => {
2755
+ var readAsync = (path6, returnAs) => {
2761
2756
  return new Promise((resolve, reject) => {
2762
2757
  const retAs = returnAs || "utf8";
2763
2758
  let encoding = "utf8";
2764
2759
  if (retAs === "buffer") {
2765
2760
  encoding = null;
2766
2761
  }
2767
- fs3.readFile(path7, { encoding }).then((data) => {
2762
+ fs3.readFile(path6, { encoding }).then((data) => {
2768
2763
  try {
2769
2764
  if (retAs === "json") {
2770
2765
  resolve(JSON.parse(data));
@@ -2774,7 +2769,7 @@ var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({
2774
2769
  resolve(data);
2775
2770
  }
2776
2771
  } catch (err) {
2777
- reject(makeNicerJsonParsingError(path7, err));
2772
+ reject(makeNicerJsonParsingError(path6, err));
2778
2773
  }
2779
2774
  }).catch((err) => {
2780
2775
  if (err.code === "ENOENT") {
@@ -2796,9 +2791,9 @@ var require_rename = (0, import_chunk_2ESYSVXG.__commonJS)({
2796
2791
  var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path");
2797
2792
  var move = require_move();
2798
2793
  var validate = require_validate();
2799
- var validateInput = (methodName, path7, newName, options) => {
2794
+ var validateInput = (methodName, path6, newName, options) => {
2800
2795
  const methodSignature = `${methodName}(path, newName, [options])`;
2801
- validate.argument(methodSignature, "path", path7, ["string"]);
2796
+ validate.argument(methodSignature, "path", path6, ["string"]);
2802
2797
  validate.argument(methodSignature, "newName", newName, ["string"]);
2803
2798
  validate.options(methodSignature, "options", options, {
2804
2799
  overwrite: ["boolean"]
@@ -2809,13 +2804,13 @@ var require_rename = (0, import_chunk_2ESYSVXG.__commonJS)({
2809
2804
  );
2810
2805
  }
2811
2806
  };
2812
- var renameSync = (path7, newName, options) => {
2813
- const newPath = pathUtil.join(pathUtil.dirname(path7), newName);
2814
- move.sync(path7, newPath, options);
2807
+ var renameSync = (path6, newName, options) => {
2808
+ const newPath = pathUtil.join(pathUtil.dirname(path6), newName);
2809
+ move.sync(path6, newPath, options);
2815
2810
  };
2816
- var renameAsync = (path7, newName, options) => {
2817
- const newPath = pathUtil.join(pathUtil.dirname(path7), newName);
2818
- return move.async(path7, newPath, options);
2811
+ var renameAsync = (path6, newName, options) => {
2812
+ const newPath = pathUtil.join(pathUtil.dirname(path6), newName);
2813
+ return move.async(path6, newPath, options);
2819
2814
  };
2820
2815
  exports.validateInput = validateInput;
2821
2816
  exports.sync = renameSync;
@@ -2829,29 +2824,29 @@ var require_symlink = (0, import_chunk_2ESYSVXG.__commonJS)({
2829
2824
  var fs3 = require_fs();
2830
2825
  var validate = require_validate();
2831
2826
  var dir = require_dir();
2832
- var validateInput = (methodName, symlinkValue, path7) => {
2827
+ var validateInput = (methodName, symlinkValue, path6) => {
2833
2828
  const methodSignature = `${methodName}(symlinkValue, path)`;
2834
2829
  validate.argument(methodSignature, "symlinkValue", symlinkValue, ["string"]);
2835
- validate.argument(methodSignature, "path", path7, ["string"]);
2830
+ validate.argument(methodSignature, "path", path6, ["string"]);
2836
2831
  };
2837
- var symlinkSync = (symlinkValue, path7) => {
2832
+ var symlinkSync = (symlinkValue, path6) => {
2838
2833
  try {
2839
- fs3.symlinkSync(symlinkValue, path7);
2834
+ fs3.symlinkSync(symlinkValue, path6);
2840
2835
  } catch (err) {
2841
2836
  if (err.code === "ENOENT") {
2842
- dir.createSync(pathUtil.dirname(path7));
2843
- fs3.symlinkSync(symlinkValue, path7);
2837
+ dir.createSync(pathUtil.dirname(path6));
2838
+ fs3.symlinkSync(symlinkValue, path6);
2844
2839
  } else {
2845
2840
  throw err;
2846
2841
  }
2847
2842
  }
2848
2843
  };
2849
- var symlinkAsync = (symlinkValue, path7) => {
2844
+ var symlinkAsync = (symlinkValue, path6) => {
2850
2845
  return new Promise((resolve, reject) => {
2851
- fs3.symlink(symlinkValue, path7).then(resolve).catch((err) => {
2846
+ fs3.symlink(symlinkValue, path6).then(resolve).catch((err) => {
2852
2847
  if (err.code === "ENOENT") {
2853
- dir.createAsync(pathUtil.dirname(path7)).then(() => {
2854
- return fs3.symlink(symlinkValue, path7);
2848
+ dir.createAsync(pathUtil.dirname(path6)).then(() => {
2849
+ return fs3.symlink(symlinkValue, path6);
2855
2850
  }).then(resolve, reject);
2856
2851
  } else {
2857
2852
  reject(err);
@@ -2990,8 +2985,8 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
2990
2985
  const pathParts = [getCwdPath()].concat(args);
2991
2986
  return jetpackContext(pathUtil.resolve.apply(null, pathParts));
2992
2987
  };
2993
- const resolvePath = (path7) => {
2994
- return pathUtil.resolve(getCwdPath(), path7);
2988
+ const resolvePath = (path6) => {
2989
+ return pathUtil.resolve(getCwdPath(), path6);
2995
2990
  };
2996
2991
  const getPath = function() {
2997
2992
  Array.prototype.unshift.call(arguments, getCwdPath());
@@ -3005,13 +3000,13 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
3005
3000
  const api = {
3006
3001
  cwd,
3007
3002
  path: getPath,
3008
- append: (path7, data, options) => {
3009
- append.validateInput("append", path7, data, options);
3010
- append.sync(resolvePath(path7), data, options);
3003
+ append: (path6, data, options) => {
3004
+ append.validateInput("append", path6, data, options);
3005
+ append.sync(resolvePath(path6), data, options);
3011
3006
  },
3012
- appendAsync: (path7, data, options) => {
3013
- append.validateInput("appendAsync", path7, data, options);
3014
- return append.async(resolvePath(path7), data, options);
3007
+ appendAsync: (path6, data, options) => {
3008
+ append.validateInput("appendAsync", path6, data, options);
3009
+ return append.async(resolvePath(path6), data, options);
3015
3010
  },
3016
3011
  copy: (from, to, options) => {
3017
3012
  copy.validateInput("copy", from, to, options);
@@ -3021,44 +3016,44 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
3021
3016
  copy.validateInput("copyAsync", from, to, options);
3022
3017
  return copy.async(resolvePath(from), resolvePath(to), options);
3023
3018
  },
3024
- createWriteStream: (path7, options) => {
3025
- return streams.createWriteStream(resolvePath(path7), options);
3019
+ createWriteStream: (path6, options) => {
3020
+ return streams.createWriteStream(resolvePath(path6), options);
3026
3021
  },
3027
- createReadStream: (path7, options) => {
3028
- return streams.createReadStream(resolvePath(path7), options);
3022
+ createReadStream: (path6, options) => {
3023
+ return streams.createReadStream(resolvePath(path6), options);
3029
3024
  },
3030
- dir: (path7, criteria) => {
3031
- dir.validateInput("dir", path7, criteria);
3032
- const normalizedPath = resolvePath(path7);
3025
+ dir: (path6, criteria) => {
3026
+ dir.validateInput("dir", path6, criteria);
3027
+ const normalizedPath = resolvePath(path6);
3033
3028
  dir.sync(normalizedPath, criteria);
3034
3029
  return cwd(normalizedPath);
3035
3030
  },
3036
- dirAsync: (path7, criteria) => {
3037
- dir.validateInput("dirAsync", path7, criteria);
3031
+ dirAsync: (path6, criteria) => {
3032
+ dir.validateInput("dirAsync", path6, criteria);
3038
3033
  return new Promise((resolve, reject) => {
3039
- const normalizedPath = resolvePath(path7);
3034
+ const normalizedPath = resolvePath(path6);
3040
3035
  dir.async(normalizedPath, criteria).then(() => {
3041
3036
  resolve(cwd(normalizedPath));
3042
3037
  }, reject);
3043
3038
  });
3044
3039
  },
3045
- exists: (path7) => {
3046
- exists.validateInput("exists", path7);
3047
- return exists.sync(resolvePath(path7));
3040
+ exists: (path6) => {
3041
+ exists.validateInput("exists", path6);
3042
+ return exists.sync(resolvePath(path6));
3048
3043
  },
3049
- existsAsync: (path7) => {
3050
- exists.validateInput("existsAsync", path7);
3051
- return exists.async(resolvePath(path7));
3044
+ existsAsync: (path6) => {
3045
+ exists.validateInput("existsAsync", path6);
3046
+ return exists.async(resolvePath(path6));
3052
3047
  },
3053
- file: (path7, criteria) => {
3054
- file.validateInput("file", path7, criteria);
3055
- file.sync(resolvePath(path7), criteria);
3048
+ file: (path6, criteria) => {
3049
+ file.validateInput("file", path6, criteria);
3050
+ file.sync(resolvePath(path6), criteria);
3056
3051
  return api;
3057
3052
  },
3058
- fileAsync: (path7, criteria) => {
3059
- file.validateInput("fileAsync", path7, criteria);
3053
+ fileAsync: (path6, criteria) => {
3054
+ file.validateInput("fileAsync", path6, criteria);
3060
3055
  return new Promise((resolve, reject) => {
3061
- file.async(resolvePath(path7), criteria).then(() => {
3056
+ file.async(resolvePath(path6), criteria).then(() => {
3062
3057
  resolve(api);
3063
3058
  }, reject);
3064
3059
  });
@@ -3079,29 +3074,29 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
3079
3074
  find.validateInput("findAsync", startPath, options);
3080
3075
  return find.async(resolvePath(startPath), normalizeOptions(options));
3081
3076
  },
3082
- inspect: (path7, fieldsToInclude) => {
3083
- inspect.validateInput("inspect", path7, fieldsToInclude);
3084
- return inspect.sync(resolvePath(path7), fieldsToInclude);
3077
+ inspect: (path6, fieldsToInclude) => {
3078
+ inspect.validateInput("inspect", path6, fieldsToInclude);
3079
+ return inspect.sync(resolvePath(path6), fieldsToInclude);
3085
3080
  },
3086
- inspectAsync: (path7, fieldsToInclude) => {
3087
- inspect.validateInput("inspectAsync", path7, fieldsToInclude);
3088
- return inspect.async(resolvePath(path7), fieldsToInclude);
3081
+ inspectAsync: (path6, fieldsToInclude) => {
3082
+ inspect.validateInput("inspectAsync", path6, fieldsToInclude);
3083
+ return inspect.async(resolvePath(path6), fieldsToInclude);
3089
3084
  },
3090
- inspectTree: (path7, options) => {
3091
- inspectTree.validateInput("inspectTree", path7, options);
3092
- return inspectTree.sync(resolvePath(path7), options);
3085
+ inspectTree: (path6, options) => {
3086
+ inspectTree.validateInput("inspectTree", path6, options);
3087
+ return inspectTree.sync(resolvePath(path6), options);
3093
3088
  },
3094
- inspectTreeAsync: (path7, options) => {
3095
- inspectTree.validateInput("inspectTreeAsync", path7, options);
3096
- return inspectTree.async(resolvePath(path7), options);
3089
+ inspectTreeAsync: (path6, options) => {
3090
+ inspectTree.validateInput("inspectTreeAsync", path6, options);
3091
+ return inspectTree.async(resolvePath(path6), options);
3097
3092
  },
3098
- list: (path7) => {
3099
- list.validateInput("list", path7);
3100
- return list.sync(resolvePath(path7 || "."));
3093
+ list: (path6) => {
3094
+ list.validateInput("list", path6);
3095
+ return list.sync(resolvePath(path6 || "."));
3101
3096
  },
3102
- listAsync: (path7) => {
3103
- list.validateInput("listAsync", path7);
3104
- return list.async(resolvePath(path7 || "."));
3097
+ listAsync: (path6) => {
3098
+ list.validateInput("listAsync", path6);
3099
+ return list.async(resolvePath(path6 || "."));
3105
3100
  },
3106
3101
  move: (from, to, options) => {
3107
3102
  move.validateInput("move", from, to, options);
@@ -3111,37 +3106,37 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
3111
3106
  move.validateInput("moveAsync", from, to, options);
3112
3107
  return move.async(resolvePath(from), resolvePath(to), options);
3113
3108
  },
3114
- read: (path7, returnAs) => {
3115
- read.validateInput("read", path7, returnAs);
3116
- return read.sync(resolvePath(path7), returnAs);
3109
+ read: (path6, returnAs) => {
3110
+ read.validateInput("read", path6, returnAs);
3111
+ return read.sync(resolvePath(path6), returnAs);
3117
3112
  },
3118
- readAsync: (path7, returnAs) => {
3119
- read.validateInput("readAsync", path7, returnAs);
3120
- return read.async(resolvePath(path7), returnAs);
3113
+ readAsync: (path6, returnAs) => {
3114
+ read.validateInput("readAsync", path6, returnAs);
3115
+ return read.async(resolvePath(path6), returnAs);
3121
3116
  },
3122
- remove: (path7) => {
3123
- remove.validateInput("remove", path7);
3124
- remove.sync(resolvePath(path7 || "."));
3117
+ remove: (path6) => {
3118
+ remove.validateInput("remove", path6);
3119
+ remove.sync(resolvePath(path6 || "."));
3125
3120
  },
3126
- removeAsync: (path7) => {
3127
- remove.validateInput("removeAsync", path7);
3128
- return remove.async(resolvePath(path7 || "."));
3121
+ removeAsync: (path6) => {
3122
+ remove.validateInput("removeAsync", path6);
3123
+ return remove.async(resolvePath(path6 || "."));
3129
3124
  },
3130
- rename: (path7, newName, options) => {
3131
- rename.validateInput("rename", path7, newName, options);
3132
- rename.sync(resolvePath(path7), newName, options);
3125
+ rename: (path6, newName, options) => {
3126
+ rename.validateInput("rename", path6, newName, options);
3127
+ rename.sync(resolvePath(path6), newName, options);
3133
3128
  },
3134
- renameAsync: (path7, newName, options) => {
3135
- rename.validateInput("renameAsync", path7, newName, options);
3136
- return rename.async(resolvePath(path7), newName, options);
3129
+ renameAsync: (path6, newName, options) => {
3130
+ rename.validateInput("renameAsync", path6, newName, options);
3131
+ return rename.async(resolvePath(path6), newName, options);
3137
3132
  },
3138
- symlink: (symlinkValue, path7) => {
3139
- symlink.validateInput("symlink", symlinkValue, path7);
3140
- symlink.sync(symlinkValue, resolvePath(path7));
3133
+ symlink: (symlinkValue, path6) => {
3134
+ symlink.validateInput("symlink", symlinkValue, path6);
3135
+ symlink.sync(symlinkValue, resolvePath(path6));
3141
3136
  },
3142
- symlinkAsync: (symlinkValue, path7) => {
3143
- symlink.validateInput("symlinkAsync", symlinkValue, path7);
3144
- return symlink.async(symlinkValue, resolvePath(path7));
3137
+ symlinkAsync: (symlinkValue, path6) => {
3138
+ symlink.validateInput("symlinkAsync", symlinkValue, path6);
3139
+ return symlink.async(symlinkValue, resolvePath(path6));
3145
3140
  },
3146
3141
  tmpDir: (options) => {
3147
3142
  tmpDir.validateInput("tmpDir", options);
@@ -3156,13 +3151,13 @@ var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({
3156
3151
  }, reject);
3157
3152
  });
3158
3153
  },
3159
- write: (path7, data, options) => {
3160
- write.validateInput("write", path7, data, options);
3161
- write.sync(resolvePath(path7), data, options);
3154
+ write: (path6, data, options) => {
3155
+ write.validateInput("write", path6, data, options);
3156
+ write.sync(resolvePath(path6), data, options);
3162
3157
  },
3163
- writeAsync: (path7, data, options) => {
3164
- write.validateInput("writeAsync", path7, data, options);
3165
- return write.async(resolvePath(path7), data, options);
3158
+ writeAsync: (path6, data, options) => {
3159
+ write.validateInput("writeAsync", path6, data, options);
3160
+ return write.async(resolvePath(path6), data, options);
3166
3161
  }
3167
3162
  };
3168
3163
  if (util.inspect.custom !== void 0) {
@@ -3260,14 +3255,14 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
3260
3255
  fs3.fstatSync = statFixSync(fs3.fstatSync);
3261
3256
  fs3.lstatSync = statFixSync(fs3.lstatSync);
3262
3257
  if (fs3.chmod && !fs3.lchmod) {
3263
- fs3.lchmod = function(path7, mode, cb) {
3258
+ fs3.lchmod = function(path6, mode, cb) {
3264
3259
  if (cb) process.nextTick(cb);
3265
3260
  };
3266
3261
  fs3.lchmodSync = function() {
3267
3262
  };
3268
3263
  }
3269
3264
  if (fs3.chown && !fs3.lchown) {
3270
- fs3.lchown = function(path7, uid, gid, cb) {
3265
+ fs3.lchown = function(path6, uid, gid, cb) {
3271
3266
  if (cb) process.nextTick(cb);
3272
3267
  };
3273
3268
  fs3.lchownSync = function() {
@@ -3334,9 +3329,9 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
3334
3329
  };
3335
3330
  }(fs3.readSync);
3336
3331
  function patchLchmod(fs4) {
3337
- fs4.lchmod = function(path7, mode, callback) {
3332
+ fs4.lchmod = function(path6, mode, callback) {
3338
3333
  fs4.open(
3339
- path7,
3334
+ path6,
3340
3335
  constants.O_WRONLY | constants.O_SYMLINK,
3341
3336
  mode,
3342
3337
  function(err, fd) {
@@ -3352,8 +3347,8 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
3352
3347
  }
3353
3348
  );
3354
3349
  };
3355
- fs4.lchmodSync = function(path7, mode) {
3356
- var fd = fs4.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
3350
+ fs4.lchmodSync = function(path6, mode) {
3351
+ var fd = fs4.openSync(path6, constants.O_WRONLY | constants.O_SYMLINK, mode);
3357
3352
  var threw = true;
3358
3353
  var ret;
3359
3354
  try {
@@ -3374,8 +3369,8 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
3374
3369
  }
3375
3370
  function patchLutimes(fs4) {
3376
3371
  if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
3377
- fs4.lutimes = function(path7, at, mt, cb) {
3378
- fs4.open(path7, constants.O_SYMLINK, function(er, fd) {
3372
+ fs4.lutimes = function(path6, at, mt, cb) {
3373
+ fs4.open(path6, constants.O_SYMLINK, function(er, fd) {
3379
3374
  if (er) {
3380
3375
  if (cb) cb(er);
3381
3376
  return;
@@ -3387,8 +3382,8 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
3387
3382
  });
3388
3383
  });
3389
3384
  };
3390
- fs4.lutimesSync = function(path7, at, mt) {
3391
- var fd = fs4.openSync(path7, constants.O_SYMLINK);
3385
+ fs4.lutimesSync = function(path6, at, mt) {
3386
+ var fd = fs4.openSync(path6, constants.O_SYMLINK);
3392
3387
  var ret;
3393
3388
  var threw = true;
3394
3389
  try {
@@ -3505,11 +3500,11 @@ var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
3505
3500
  ReadStream,
3506
3501
  WriteStream
3507
3502
  };
3508
- function ReadStream(path7, options) {
3509
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
3503
+ function ReadStream(path6, options) {
3504
+ if (!(this instanceof ReadStream)) return new ReadStream(path6, options);
3510
3505
  Stream.call(this);
3511
3506
  var self = this;
3512
- this.path = path7;
3507
+ this.path = path6;
3513
3508
  this.fd = null;
3514
3509
  this.readable = true;
3515
3510
  this.paused = false;
@@ -3554,10 +3549,10 @@ var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
3554
3549
  self._read();
3555
3550
  });
3556
3551
  }
3557
- function WriteStream(path7, options) {
3558
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
3552
+ function WriteStream(path6, options) {
3553
+ if (!(this instanceof WriteStream)) return new WriteStream(path6, options);
3559
3554
  Stream.call(this);
3560
- this.path = path7;
3555
+ this.path = path6;
3561
3556
  this.fd = null;
3562
3557
  this.writable = true;
3563
3558
  this.flags = "w";
@@ -3637,11 +3632,11 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3637
3632
  }
3638
3633
  });
3639
3634
  }
3640
- var debug4 = noop;
3635
+ var debug3 = noop;
3641
3636
  if (util.debuglog)
3642
- debug4 = util.debuglog("gfs4");
3637
+ debug3 = util.debuglog("gfs4");
3643
3638
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
3644
- debug4 = function() {
3639
+ debug3 = function() {
3645
3640
  var m = util.format.apply(util, arguments);
3646
3641
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
3647
3642
  console.error(m);
@@ -3676,7 +3671,7 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3676
3671
  }(fs3.closeSync);
3677
3672
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
3678
3673
  process.on("exit", function() {
3679
- debug4(fs3[gracefulQueue]);
3674
+ debug3(fs3[gracefulQueue]);
3680
3675
  (0, import_chunk_2ESYSVXG.__require)("assert").equal(fs3[gracefulQueue].length, 0);
3681
3676
  });
3682
3677
  }
@@ -3697,14 +3692,14 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3697
3692
  fs4.createWriteStream = createWriteStream;
3698
3693
  var fs$readFile = fs4.readFile;
3699
3694
  fs4.readFile = readFile2;
3700
- function readFile2(path7, options, cb) {
3695
+ function readFile2(path6, options, cb) {
3701
3696
  if (typeof options === "function")
3702
3697
  cb = options, options = null;
3703
- return go$readFile(path7, options, cb);
3704
- function go$readFile(path8, options2, cb2, startTime) {
3705
- return fs$readFile(path8, options2, function(err) {
3698
+ return go$readFile(path6, options, cb);
3699
+ function go$readFile(path7, options2, cb2, startTime) {
3700
+ return fs$readFile(path7, options2, function(err) {
3706
3701
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3707
- enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
3702
+ enqueue([go$readFile, [path7, options2, cb2], err, startTime || Date.now(), Date.now()]);
3708
3703
  else {
3709
3704
  if (typeof cb2 === "function")
3710
3705
  cb2.apply(this, arguments);
@@ -3714,14 +3709,14 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3714
3709
  }
3715
3710
  var fs$writeFile = fs4.writeFile;
3716
3711
  fs4.writeFile = writeFile;
3717
- function writeFile(path7, data, options, cb) {
3712
+ function writeFile(path6, data, options, cb) {
3718
3713
  if (typeof options === "function")
3719
3714
  cb = options, options = null;
3720
- return go$writeFile(path7, data, options, cb);
3721
- function go$writeFile(path8, data2, options2, cb2, startTime) {
3722
- return fs$writeFile(path8, data2, options2, function(err) {
3715
+ return go$writeFile(path6, data, options, cb);
3716
+ function go$writeFile(path7, data2, options2, cb2, startTime) {
3717
+ return fs$writeFile(path7, data2, options2, function(err) {
3723
3718
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3724
- enqueue([go$writeFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3719
+ enqueue([go$writeFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3725
3720
  else {
3726
3721
  if (typeof cb2 === "function")
3727
3722
  cb2.apply(this, arguments);
@@ -3732,14 +3727,14 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3732
3727
  var fs$appendFile = fs4.appendFile;
3733
3728
  if (fs$appendFile)
3734
3729
  fs4.appendFile = appendFile;
3735
- function appendFile(path7, data, options, cb) {
3730
+ function appendFile(path6, data, options, cb) {
3736
3731
  if (typeof options === "function")
3737
3732
  cb = options, options = null;
3738
- return go$appendFile(path7, data, options, cb);
3739
- function go$appendFile(path8, data2, options2, cb2, startTime) {
3740
- return fs$appendFile(path8, data2, options2, function(err) {
3733
+ return go$appendFile(path6, data, options, cb);
3734
+ function go$appendFile(path7, data2, options2, cb2, startTime) {
3735
+ return fs$appendFile(path7, data2, options2, function(err) {
3741
3736
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3742
- enqueue([go$appendFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3737
+ enqueue([go$appendFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3743
3738
  else {
3744
3739
  if (typeof cb2 === "function")
3745
3740
  cb2.apply(this, arguments);
@@ -3770,31 +3765,31 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3770
3765
  var fs$readdir = fs4.readdir;
3771
3766
  fs4.readdir = readdir;
3772
3767
  var noReaddirOptionVersions = /^v[0-5]\./;
3773
- function readdir(path7, options, cb) {
3768
+ function readdir(path6, options, cb) {
3774
3769
  if (typeof options === "function")
3775
3770
  cb = options, options = null;
3776
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
3777
- return fs$readdir(path8, fs$readdirCallback(
3778
- path8,
3771
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path7, options2, cb2, startTime) {
3772
+ return fs$readdir(path7, fs$readdirCallback(
3773
+ path7,
3779
3774
  options2,
3780
3775
  cb2,
3781
3776
  startTime
3782
3777
  ));
3783
- } : function go$readdir2(path8, options2, cb2, startTime) {
3784
- return fs$readdir(path8, options2, fs$readdirCallback(
3785
- path8,
3778
+ } : function go$readdir2(path7, options2, cb2, startTime) {
3779
+ return fs$readdir(path7, options2, fs$readdirCallback(
3780
+ path7,
3786
3781
  options2,
3787
3782
  cb2,
3788
3783
  startTime
3789
3784
  ));
3790
3785
  };
3791
- return go$readdir(path7, options, cb);
3792
- function fs$readdirCallback(path8, options2, cb2, startTime) {
3786
+ return go$readdir(path6, options, cb);
3787
+ function fs$readdirCallback(path7, options2, cb2, startTime) {
3793
3788
  return function(err, files) {
3794
3789
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3795
3790
  enqueue([
3796
3791
  go$readdir,
3797
- [path8, options2, cb2],
3792
+ [path7, options2, cb2],
3798
3793
  err,
3799
3794
  startTime || Date.now(),
3800
3795
  Date.now()
@@ -3865,7 +3860,7 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3865
3860
  enumerable: true,
3866
3861
  configurable: true
3867
3862
  });
3868
- function ReadStream(path7, options) {
3863
+ function ReadStream(path6, options) {
3869
3864
  if (this instanceof ReadStream)
3870
3865
  return fs$ReadStream.apply(this, arguments), this;
3871
3866
  else
@@ -3885,7 +3880,7 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3885
3880
  }
3886
3881
  });
3887
3882
  }
3888
- function WriteStream(path7, options) {
3883
+ function WriteStream(path6, options) {
3889
3884
  if (this instanceof WriteStream)
3890
3885
  return fs$WriteStream.apply(this, arguments), this;
3891
3886
  else
@@ -3903,22 +3898,22 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3903
3898
  }
3904
3899
  });
3905
3900
  }
3906
- function createReadStream(path7, options) {
3907
- return new fs4.ReadStream(path7, options);
3901
+ function createReadStream(path6, options) {
3902
+ return new fs4.ReadStream(path6, options);
3908
3903
  }
3909
- function createWriteStream(path7, options) {
3910
- return new fs4.WriteStream(path7, options);
3904
+ function createWriteStream(path6, options) {
3905
+ return new fs4.WriteStream(path6, options);
3911
3906
  }
3912
3907
  var fs$open = fs4.open;
3913
3908
  fs4.open = open;
3914
- function open(path7, flags, mode, cb) {
3909
+ function open(path6, flags, mode, cb) {
3915
3910
  if (typeof mode === "function")
3916
3911
  cb = mode, mode = null;
3917
- return go$open(path7, flags, mode, cb);
3918
- function go$open(path8, flags2, mode2, cb2, startTime) {
3919
- return fs$open(path8, flags2, mode2, function(err, fd) {
3912
+ return go$open(path6, flags, mode, cb);
3913
+ function go$open(path7, flags2, mode2, cb2, startTime) {
3914
+ return fs$open(path7, flags2, mode2, function(err, fd) {
3920
3915
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3921
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3916
+ enqueue([go$open, [path7, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3922
3917
  else {
3923
3918
  if (typeof cb2 === "function")
3924
3919
  cb2.apply(this, arguments);
@@ -3929,7 +3924,7 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3929
3924
  return fs4;
3930
3925
  }
3931
3926
  function enqueue(elem) {
3932
- debug4("ENQUEUE", elem[0].name, elem[1]);
3927
+ debug3("ENQUEUE", elem[0].name, elem[1]);
3933
3928
  fs3[gracefulQueue].push(elem);
3934
3929
  retry();
3935
3930
  }
@@ -3956,10 +3951,10 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3956
3951
  var startTime = elem[3];
3957
3952
  var lastTime = elem[4];
3958
3953
  if (startTime === void 0) {
3959
- debug4("RETRY", fn.name, args);
3954
+ debug3("RETRY", fn.name, args);
3960
3955
  fn.apply(null, args);
3961
3956
  } else if (Date.now() - startTime >= 6e4) {
3962
- debug4("TIMEOUT", fn.name, args);
3957
+ debug3("TIMEOUT", fn.name, args);
3963
3958
  var cb = args.pop();
3964
3959
  if (typeof cb === "function")
3965
3960
  cb.call(null, err);
@@ -3968,7 +3963,7 @@ var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
3968
3963
  var sinceStart = Math.max(lastTime - startTime, 1);
3969
3964
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
3970
3965
  if (sinceAttempt >= desiredDelay) {
3971
- debug4("RETRY", fn.name, args);
3966
+ debug3("RETRY", fn.name, args);
3972
3967
  fn.apply(null, args.concat([startTime]));
3973
3968
  } else {
3974
3969
  fs3[gracefulQueue].push(elem);
@@ -4097,10 +4092,10 @@ var require_fs2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4097
4092
  var require_utils = (0, import_chunk_2ESYSVXG.__commonJS)({
4098
4093
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
4099
4094
  "use strict";
4100
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4095
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4101
4096
  module2.exports.checkPath = function checkPath(pth) {
4102
4097
  if (process.platform === "win32") {
4103
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path7.parse(pth).root, ""));
4098
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path6.parse(pth).root, ""));
4104
4099
  if (pathHasInvalidWinCharacters) {
4105
4100
  const error = new Error(`Path contains invalid characters: ${pth}`);
4106
4101
  error.code = "EINVAL";
@@ -4158,8 +4153,8 @@ var require_path_exists = (0, import_chunk_2ESYSVXG.__commonJS)({
4158
4153
  "use strict";
4159
4154
  var u = require_universalify().fromPromise;
4160
4155
  var fs3 = require_fs2();
4161
- function pathExists(path7) {
4162
- return fs3.access(path7).then(() => true).catch(() => false);
4156
+ function pathExists(path6) {
4157
+ return fs3.access(path6).then(() => true).catch(() => false);
4163
4158
  }
4164
4159
  module2.exports = {
4165
4160
  pathExists: u(pathExists),
@@ -4172,8 +4167,8 @@ var require_utimes = (0, import_chunk_2ESYSVXG.__commonJS)({
4172
4167
  "use strict";
4173
4168
  var fs3 = require_fs2();
4174
4169
  var u = require_universalify().fromPromise;
4175
- async function utimesMillis(path7, atime, mtime) {
4176
- const fd = await fs3.open(path7, "r+");
4170
+ async function utimesMillis(path6, atime, mtime) {
4171
+ const fd = await fs3.open(path6, "r+");
4177
4172
  let closeErr = null;
4178
4173
  try {
4179
4174
  await fs3.futimes(fd, atime, mtime);
@@ -4188,8 +4183,8 @@ var require_utimes = (0, import_chunk_2ESYSVXG.__commonJS)({
4188
4183
  throw closeErr;
4189
4184
  }
4190
4185
  }
4191
- function utimesMillisSync(path7, atime, mtime) {
4192
- const fd = fs3.openSync(path7, "r+");
4186
+ function utimesMillisSync(path6, atime, mtime) {
4187
+ const fd = fs3.openSync(path6, "r+");
4193
4188
  fs3.futimesSync(fd, atime, mtime);
4194
4189
  return fs3.closeSync(fd);
4195
4190
  }
@@ -4203,7 +4198,7 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4203
4198
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
4204
4199
  "use strict";
4205
4200
  var fs3 = require_fs2();
4206
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4201
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4207
4202
  var u = require_universalify().fromPromise;
4208
4203
  function getStats(src, dest, opts) {
4209
4204
  const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
@@ -4231,8 +4226,8 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4231
4226
  const { srcStat, destStat } = await getStats(src, dest, opts);
4232
4227
  if (destStat) {
4233
4228
  if (areIdentical(srcStat, destStat)) {
4234
- const srcBaseName = path7.basename(src);
4235
- const destBaseName = path7.basename(dest);
4229
+ const srcBaseName = path6.basename(src);
4230
+ const destBaseName = path6.basename(dest);
4236
4231
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
4237
4232
  return { srcStat, destStat, isChangingCase: true };
4238
4233
  }
@@ -4254,8 +4249,8 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4254
4249
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
4255
4250
  if (destStat) {
4256
4251
  if (areIdentical(srcStat, destStat)) {
4257
- const srcBaseName = path7.basename(src);
4258
- const destBaseName = path7.basename(dest);
4252
+ const srcBaseName = path6.basename(src);
4253
+ const destBaseName = path6.basename(dest);
4259
4254
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
4260
4255
  return { srcStat, destStat, isChangingCase: true };
4261
4256
  }
@@ -4274,9 +4269,9 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4274
4269
  return { srcStat, destStat };
4275
4270
  }
4276
4271
  async function checkParentPaths(src, srcStat, dest, funcName) {
4277
- const srcParent = path7.resolve(path7.dirname(src));
4278
- const destParent = path7.resolve(path7.dirname(dest));
4279
- if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
4272
+ const srcParent = path6.resolve(path6.dirname(src));
4273
+ const destParent = path6.resolve(path6.dirname(dest));
4274
+ if (destParent === srcParent || destParent === path6.parse(destParent).root) return;
4280
4275
  let destStat;
4281
4276
  try {
4282
4277
  destStat = await fs3.stat(destParent, { bigint: true });
@@ -4290,9 +4285,9 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4290
4285
  return checkParentPaths(src, srcStat, destParent, funcName);
4291
4286
  }
4292
4287
  function checkParentPathsSync(src, srcStat, dest, funcName) {
4293
- const srcParent = path7.resolve(path7.dirname(src));
4294
- const destParent = path7.resolve(path7.dirname(dest));
4295
- if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
4288
+ const srcParent = path6.resolve(path6.dirname(src));
4289
+ const destParent = path6.resolve(path6.dirname(dest));
4290
+ if (destParent === srcParent || destParent === path6.parse(destParent).root) return;
4296
4291
  let destStat;
4297
4292
  try {
4298
4293
  destStat = fs3.statSync(destParent, { bigint: true });
@@ -4309,8 +4304,8 @@ var require_stat = (0, import_chunk_2ESYSVXG.__commonJS)({
4309
4304
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
4310
4305
  }
4311
4306
  function isSrcSubdir(src, dest) {
4312
- const srcArr = path7.resolve(src).split(path7.sep).filter((i) => i);
4313
- const destArr = path7.resolve(dest).split(path7.sep).filter((i) => i);
4307
+ const srcArr = path6.resolve(src).split(path6.sep).filter((i) => i);
4308
+ const destArr = path6.resolve(dest).split(path6.sep).filter((i) => i);
4314
4309
  return srcArr.every((cur, i) => destArr[i] === cur);
4315
4310
  }
4316
4311
  function errMsg(src, dest, funcName) {
@@ -4333,7 +4328,7 @@ var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4333
4328
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
4334
4329
  "use strict";
4335
4330
  var fs3 = require_fs2();
4336
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4331
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4337
4332
  var { mkdirs } = require_mkdirs();
4338
4333
  var { pathExists } = require_path_exists();
4339
4334
  var { utimesMillis } = require_utimes();
@@ -4355,7 +4350,7 @@ var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4355
4350
  await stat2.checkParentPaths(src, srcStat, dest, "copy");
4356
4351
  const include = await runFilter(src, dest, opts);
4357
4352
  if (!include) return;
4358
- const destParent = path7.dirname(dest);
4353
+ const destParent = path6.dirname(dest);
4359
4354
  const dirExists = await pathExists(destParent);
4360
4355
  if (!dirExists) {
4361
4356
  await mkdirs(destParent);
@@ -4409,8 +4404,8 @@ var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4409
4404
  }
4410
4405
  const promises = [];
4411
4406
  for await (const item of await fs3.opendir(src)) {
4412
- const srcItem = path7.join(src, item.name);
4413
- const destItem = path7.join(dest, item.name);
4407
+ const srcItem = path6.join(src, item.name);
4408
+ const destItem = path6.join(dest, item.name);
4414
4409
  promises.push(
4415
4410
  runFilter(srcItem, destItem, opts).then((include) => {
4416
4411
  if (include) {
@@ -4429,7 +4424,7 @@ var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4429
4424
  async function onLink(destStat, src, dest, opts) {
4430
4425
  let resolvedSrc = await fs3.readlink(src);
4431
4426
  if (opts.dereference) {
4432
- resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
4427
+ resolvedSrc = path6.resolve(process.cwd(), resolvedSrc);
4433
4428
  }
4434
4429
  if (!destStat) {
4435
4430
  return fs3.symlink(resolvedSrc, dest);
@@ -4442,7 +4437,7 @@ var require_copy2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4442
4437
  throw e;
4443
4438
  }
4444
4439
  if (opts.dereference) {
4445
- resolvedDest = path7.resolve(process.cwd(), resolvedDest);
4440
+ resolvedDest = path6.resolve(process.cwd(), resolvedDest);
4446
4441
  }
4447
4442
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
4448
4443
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -4460,7 +4455,7 @@ var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
4460
4455
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
4461
4456
  "use strict";
4462
4457
  var fs3 = require_graceful_fs();
4463
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4458
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4464
4459
  var mkdirsSync = require_mkdirs().mkdirsSync;
4465
4460
  var utimesMillisSync = require_utimes().utimesMillisSync;
4466
4461
  var stat2 = require_stat();
@@ -4481,7 +4476,7 @@ var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
4481
4476
  const { srcStat, destStat } = stat2.checkPathsSync(src, dest, "copy", opts);
4482
4477
  stat2.checkParentPathsSync(src, srcStat, dest, "copy");
4483
4478
  if (opts.filter && !opts.filter(src, dest)) return;
4484
- const destParent = path7.dirname(dest);
4479
+ const destParent = path6.dirname(dest);
4485
4480
  if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
4486
4481
  return getStats(destStat, src, dest, opts);
4487
4482
  }
@@ -4550,8 +4545,8 @@ var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
4550
4545
  }
4551
4546
  }
4552
4547
  function copyDirItem(item, src, dest, opts) {
4553
- const srcItem = path7.join(src, item);
4554
- const destItem = path7.join(dest, item);
4548
+ const srcItem = path6.join(src, item);
4549
+ const destItem = path6.join(dest, item);
4555
4550
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
4556
4551
  const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
4557
4552
  return getStats(destStat, srcItem, destItem, opts);
@@ -4559,7 +4554,7 @@ var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
4559
4554
  function onLink(destStat, src, dest, opts) {
4560
4555
  let resolvedSrc = fs3.readlinkSync(src);
4561
4556
  if (opts.dereference) {
4562
- resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
4557
+ resolvedSrc = path6.resolve(process.cwd(), resolvedSrc);
4563
4558
  }
4564
4559
  if (!destStat) {
4565
4560
  return fs3.symlinkSync(resolvedSrc, dest);
@@ -4572,7 +4567,7 @@ var require_copy_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
4572
4567
  throw err;
4573
4568
  }
4574
4569
  if (opts.dereference) {
4575
- resolvedDest = path7.resolve(process.cwd(), resolvedDest);
4570
+ resolvedDest = path6.resolve(process.cwd(), resolvedDest);
4576
4571
  }
4577
4572
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
4578
4573
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -4605,11 +4600,11 @@ var require_remove2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4605
4600
  "use strict";
4606
4601
  var fs3 = require_graceful_fs();
4607
4602
  var u = require_universalify().fromCallback;
4608
- function remove(path7, callback) {
4609
- fs3.rm(path7, { recursive: true, force: true }, callback);
4603
+ function remove(path6, callback) {
4604
+ fs3.rm(path6, { recursive: true, force: true }, callback);
4610
4605
  }
4611
- function removeSync(path7) {
4612
- fs3.rmSync(path7, { recursive: true, force: true });
4606
+ function removeSync(path6) {
4607
+ fs3.rmSync(path6, { recursive: true, force: true });
4613
4608
  }
4614
4609
  module2.exports = {
4615
4610
  remove: u(remove),
@@ -4622,7 +4617,7 @@ var require_empty = (0, import_chunk_2ESYSVXG.__commonJS)({
4622
4617
  "use strict";
4623
4618
  var u = require_universalify().fromPromise;
4624
4619
  var fs3 = require_fs2();
4625
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4620
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4626
4621
  var mkdir = require_mkdirs();
4627
4622
  var remove = require_remove2();
4628
4623
  var emptyDir = u(async function emptyDir2(dir) {
@@ -4632,7 +4627,7 @@ var require_empty = (0, import_chunk_2ESYSVXG.__commonJS)({
4632
4627
  } catch {
4633
4628
  return mkdir.mkdirs(dir);
4634
4629
  }
4635
- return Promise.all(items.map((item) => remove.remove(path7.join(dir, item))));
4630
+ return Promise.all(items.map((item) => remove.remove(path6.join(dir, item))));
4636
4631
  });
4637
4632
  function emptyDirSync(dir) {
4638
4633
  let items;
@@ -4642,7 +4637,7 @@ var require_empty = (0, import_chunk_2ESYSVXG.__commonJS)({
4642
4637
  return mkdir.mkdirsSync(dir);
4643
4638
  }
4644
4639
  items.forEach((item) => {
4645
- item = path7.join(dir, item);
4640
+ item = path6.join(dir, item);
4646
4641
  remove.removeSync(item);
4647
4642
  });
4648
4643
  }
@@ -4658,7 +4653,7 @@ var require_file2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4658
4653
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
4659
4654
  "use strict";
4660
4655
  var u = require_universalify().fromPromise;
4661
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4656
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4662
4657
  var fs3 = require_fs2();
4663
4658
  var mkdir = require_mkdirs();
4664
4659
  async function createFile(file) {
@@ -4668,7 +4663,7 @@ var require_file2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4668
4663
  } catch {
4669
4664
  }
4670
4665
  if (stats && stats.isFile()) return;
4671
- const dir = path7.dirname(file);
4666
+ const dir = path6.dirname(file);
4672
4667
  let dirStats = null;
4673
4668
  try {
4674
4669
  dirStats = await fs3.stat(dir);
@@ -4694,7 +4689,7 @@ var require_file2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4694
4689
  } catch {
4695
4690
  }
4696
4691
  if (stats && stats.isFile()) return;
4697
- const dir = path7.dirname(file);
4692
+ const dir = path6.dirname(file);
4698
4693
  try {
4699
4694
  if (!fs3.statSync(dir).isDirectory()) {
4700
4695
  fs3.readdirSync(dir);
@@ -4715,7 +4710,7 @@ var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
4715
4710
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
4716
4711
  "use strict";
4717
4712
  var u = require_universalify().fromPromise;
4718
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4713
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4719
4714
  var fs3 = require_fs2();
4720
4715
  var mkdir = require_mkdirs();
4721
4716
  var { pathExists } = require_path_exists();
@@ -4734,7 +4729,7 @@ var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
4734
4729
  throw err;
4735
4730
  }
4736
4731
  if (dstStat && areIdentical(srcStat, dstStat)) return;
4737
- const dir = path7.dirname(dstpath);
4732
+ const dir = path6.dirname(dstpath);
4738
4733
  const dirExists = await pathExists(dir);
4739
4734
  if (!dirExists) {
4740
4735
  await mkdir.mkdirs(dir);
@@ -4754,7 +4749,7 @@ var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
4754
4749
  err.message = err.message.replace("lstat", "ensureLink");
4755
4750
  throw err;
4756
4751
  }
4757
- const dir = path7.dirname(dstpath);
4752
+ const dir = path6.dirname(dstpath);
4758
4753
  const dirExists = fs3.existsSync(dir);
4759
4754
  if (dirExists) return fs3.linkSync(srcpath, dstpath);
4760
4755
  mkdir.mkdirsSync(dir);
@@ -4769,12 +4764,12 @@ var require_link = (0, import_chunk_2ESYSVXG.__commonJS)({
4769
4764
  var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
4770
4765
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
4771
4766
  "use strict";
4772
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4767
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4773
4768
  var fs3 = require_fs2();
4774
4769
  var { pathExists } = require_path_exists();
4775
4770
  var u = require_universalify().fromPromise;
4776
4771
  async function symlinkPaths(srcpath, dstpath) {
4777
- if (path7.isAbsolute(srcpath)) {
4772
+ if (path6.isAbsolute(srcpath)) {
4778
4773
  try {
4779
4774
  await fs3.lstat(srcpath);
4780
4775
  } catch (err) {
@@ -4786,8 +4781,8 @@ var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
4786
4781
  toDst: srcpath
4787
4782
  };
4788
4783
  }
4789
- const dstdir = path7.dirname(dstpath);
4790
- const relativeToDst = path7.join(dstdir, srcpath);
4784
+ const dstdir = path6.dirname(dstpath);
4785
+ const relativeToDst = path6.join(dstdir, srcpath);
4791
4786
  const exists = await pathExists(relativeToDst);
4792
4787
  if (exists) {
4793
4788
  return {
@@ -4803,11 +4798,11 @@ var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
4803
4798
  }
4804
4799
  return {
4805
4800
  toCwd: srcpath,
4806
- toDst: path7.relative(dstdir, srcpath)
4801
+ toDst: path6.relative(dstdir, srcpath)
4807
4802
  };
4808
4803
  }
4809
4804
  function symlinkPathsSync(srcpath, dstpath) {
4810
- if (path7.isAbsolute(srcpath)) {
4805
+ if (path6.isAbsolute(srcpath)) {
4811
4806
  const exists2 = fs3.existsSync(srcpath);
4812
4807
  if (!exists2) throw new Error("absolute srcpath does not exist");
4813
4808
  return {
@@ -4815,8 +4810,8 @@ var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
4815
4810
  toDst: srcpath
4816
4811
  };
4817
4812
  }
4818
- const dstdir = path7.dirname(dstpath);
4819
- const relativeToDst = path7.join(dstdir, srcpath);
4813
+ const dstdir = path6.dirname(dstpath);
4814
+ const relativeToDst = path6.join(dstdir, srcpath);
4820
4815
  const exists = fs3.existsSync(relativeToDst);
4821
4816
  if (exists) {
4822
4817
  return {
@@ -4828,7 +4823,7 @@ var require_symlink_paths = (0, import_chunk_2ESYSVXG.__commonJS)({
4828
4823
  if (!srcExists) throw new Error("relative srcpath does not exist");
4829
4824
  return {
4830
4825
  toCwd: srcpath,
4831
- toDst: path7.relative(dstdir, srcpath)
4826
+ toDst: path6.relative(dstdir, srcpath)
4832
4827
  };
4833
4828
  }
4834
4829
  module2.exports = {
@@ -4872,7 +4867,7 @@ var require_symlink2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4872
4867
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
4873
4868
  "use strict";
4874
4869
  var u = require_universalify().fromPromise;
4875
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
4870
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
4876
4871
  var fs3 = require_fs2();
4877
4872
  var { mkdirs, mkdirsSync } = require_mkdirs();
4878
4873
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -4895,7 +4890,7 @@ var require_symlink2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4895
4890
  const relative = await symlinkPaths(srcpath, dstpath);
4896
4891
  srcpath = relative.toDst;
4897
4892
  const toType = await symlinkType(relative.toCwd, type);
4898
- const dir = path7.dirname(dstpath);
4893
+ const dir = path6.dirname(dstpath);
4899
4894
  if (!await pathExists(dir)) {
4900
4895
  await mkdirs(dir);
4901
4896
  }
@@ -4915,7 +4910,7 @@ var require_symlink2 = (0, import_chunk_2ESYSVXG.__commonJS)({
4915
4910
  const relative = symlinkPathsSync(srcpath, dstpath);
4916
4911
  srcpath = relative.toDst;
4917
4912
  type = symlinkTypeSync(relative.toCwd, type);
4918
- const dir = path7.dirname(dstpath);
4913
+ const dir = path6.dirname(dstpath);
4919
4914
  const exists = fs3.existsSync(dir);
4920
4915
  if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
4921
4916
  mkdirsSync(dir);
@@ -5057,18 +5052,18 @@ var require_output_file = (0, import_chunk_2ESYSVXG.__commonJS)({
5057
5052
  "use strict";
5058
5053
  var u = require_universalify().fromPromise;
5059
5054
  var fs3 = require_fs2();
5060
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
5055
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
5061
5056
  var mkdir = require_mkdirs();
5062
5057
  var pathExists = require_path_exists().pathExists;
5063
5058
  async function outputFile(file, data, encoding = "utf-8") {
5064
- const dir = path7.dirname(file);
5059
+ const dir = path6.dirname(file);
5065
5060
  if (!await pathExists(dir)) {
5066
5061
  await mkdir.mkdirs(dir);
5067
5062
  }
5068
5063
  return fs3.writeFile(file, data, encoding);
5069
5064
  }
5070
5065
  function outputFileSync(file, ...args) {
5071
- const dir = path7.dirname(file);
5066
+ const dir = path6.dirname(file);
5072
5067
  if (!fs3.existsSync(dir)) {
5073
5068
  mkdir.mkdirsSync(dir);
5074
5069
  }
@@ -5124,7 +5119,7 @@ var require_move2 = (0, import_chunk_2ESYSVXG.__commonJS)({
5124
5119
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
5125
5120
  "use strict";
5126
5121
  var fs3 = require_fs2();
5127
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
5122
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
5128
5123
  var { copy } = require_copy3();
5129
5124
  var { remove } = require_remove2();
5130
5125
  var { mkdirp } = require_mkdirs();
@@ -5134,8 +5129,8 @@ var require_move2 = (0, import_chunk_2ESYSVXG.__commonJS)({
5134
5129
  const overwrite = opts.overwrite || opts.clobber || false;
5135
5130
  const { srcStat, isChangingCase = false } = await stat2.checkPaths(src, dest, "move", opts);
5136
5131
  await stat2.checkParentPaths(src, srcStat, dest, "move");
5137
- const destParent = path7.dirname(dest);
5138
- const parsedParentPath = path7.parse(destParent);
5132
+ const destParent = path6.dirname(dest);
5133
+ const parsedParentPath = path6.parse(destParent);
5139
5134
  if (parsedParentPath.root !== destParent) {
5140
5135
  await mkdirp(destParent);
5141
5136
  }
@@ -5174,7 +5169,7 @@ var require_move_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
5174
5169
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
5175
5170
  "use strict";
5176
5171
  var fs3 = require_graceful_fs();
5177
- var path7 = (0, import_chunk_2ESYSVXG.__require)("path");
5172
+ var path6 = (0, import_chunk_2ESYSVXG.__require)("path");
5178
5173
  var copySync = require_copy3().copySync;
5179
5174
  var removeSync = require_remove2().removeSync;
5180
5175
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -5184,12 +5179,12 @@ var require_move_sync = (0, import_chunk_2ESYSVXG.__commonJS)({
5184
5179
  const overwrite = opts.overwrite || opts.clobber || false;
5185
5180
  const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
5186
5181
  stat2.checkParentPathsSync(src, srcStat, dest, "move");
5187
- if (!isParentRoot(dest)) mkdirpSync(path7.dirname(dest));
5182
+ if (!isParentRoot(dest)) mkdirpSync(path6.dirname(dest));
5188
5183
  return doRename(src, dest, overwrite, isChangingCase);
5189
5184
  }
5190
5185
  function isParentRoot(dest) {
5191
- const parent = path7.dirname(dest);
5192
- const parsedPath = path7.parse(parent);
5186
+ const parent = path6.dirname(dest);
5187
+ const parsedPath = path6.parse(parent);
5193
5188
  return parsedPath.root === parent;
5194
5189
  }
5195
5190
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -5287,13 +5282,11 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5287
5282
  ensureType: () => ensureType2,
5288
5283
  loadRelatedSchemaFiles: () => loadRelatedSchemaFiles,
5289
5284
  loadSchemaFiles: () => loadSchemaFiles2,
5290
- realFsResolver: () => realFsResolver,
5291
- usesPrismaSchemaFolder: () => usesPrismaSchemaFolder2
5285
+ realFsResolver: () => realFsResolver
5292
5286
  });
5293
5287
  module2.exports = __toCommonJS2(index_exports);
5294
5288
  var import_node_path22 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
5295
- var import_prisma_schema_wasm2 = (0, import_chunk_2ESYSVXG.__require)("@prisma/prisma-schema-wasm");
5296
- var import_node_path5 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
5289
+ var import_node_path4 = __toESM22((0, import_chunk_2ESYSVXG.__require)("node:path"));
5297
5290
  function createFileNameToKeyMapper(options) {
5298
5291
  if (options.caseSensitive) {
5299
5292
  return (fileName) => fileName;
@@ -5320,14 +5313,14 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5320
5313
  }
5321
5314
  };
5322
5315
  function uniqueWith(fileNames, toKey) {
5323
- const map2 = /* @__PURE__ */ new Map();
5316
+ const map = /* @__PURE__ */ new Map();
5324
5317
  for (const fileName of fileNames) {
5325
5318
  const key = toKey(fileName);
5326
- if (!map2.has(key)) {
5327
- map2.set(key, fileName);
5319
+ if (!map.has(key)) {
5320
+ map.set(key, fileName);
5328
5321
  }
5329
5322
  }
5330
- return Array.from(map2.values());
5323
+ return Array.from(map.values());
5331
5324
  }
5332
5325
  var InMemoryFilesResolver = class {
5333
5326
  _tree = {};
@@ -5446,7 +5439,7 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5446
5439
  return processEntry(realPath, realType, filesResolver);
5447
5440
  }
5448
5441
  if (entryType.kind === "file") {
5449
- if (import_node_path5.default.extname(entryPath) !== ".prisma") {
5442
+ if (import_node_path4.default.extname(entryPath) !== ".prisma") {
5450
5443
  return [];
5451
5444
  }
5452
5445
  const content = await filesResolver.getFileContents(entryPath);
@@ -5459,7 +5452,7 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5459
5452
  const dirEntries = await filesResolver.listDirContents(entryPath);
5460
5453
  const nested = await Promise.all(
5461
5454
  dirEntries.map(async (dirEntry) => {
5462
- const fullPath = import_node_path5.default.join(entryPath, dirEntry);
5455
+ const fullPath = import_node_path4.default.join(entryPath, dirEntry);
5463
5456
  const nestedEntryType = await filesResolver.getEntryType(fullPath);
5464
5457
  return processEntry(fullPath, nestedEntryType, filesResolver);
5465
5458
  })
@@ -5468,20 +5461,12 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5468
5461
  }
5469
5462
  return [];
5470
5463
  }
5471
- function usesPrismaSchemaFolder2(config) {
5472
- const previewFeatures = config.generators.find((g) => g.previewFeatures.length > 0)?.previewFeatures;
5473
- return (previewFeatures || []).includes("prismaSchemaFolder");
5474
- }
5475
5464
  async function loadRelatedSchemaFiles(filePath, filesResolver = realFsResolver) {
5476
5465
  const rootDir = await findSchemaRoot(filePath, filesResolver);
5477
5466
  if (!rootDir) {
5478
5467
  return singleFile(filePath, filesResolver);
5479
5468
  }
5480
- const files = await loadSchemaFiles2(rootDir, filesResolver);
5481
- if (isPrismaFolderEnabled(files)) {
5482
- return files;
5483
- }
5484
- return singleFile(filePath, filesResolver);
5469
+ return await loadSchemaFiles2(rootDir, filesResolver);
5485
5470
  }
5486
5471
  async function singleFile(filePath, filesResolver) {
5487
5472
  const contents = await filesResolver.getFileContents(filePath);
@@ -5490,20 +5475,6 @@ var require_dist = (0, import_chunk_2ESYSVXG.__commonJS)({
5490
5475
  }
5491
5476
  return [[filePath, contents]];
5492
5477
  }
5493
- function isPrismaFolderEnabled(files) {
5494
- const params = JSON.stringify({
5495
- prismaSchema: files,
5496
- datasourceOverrides: {},
5497
- ignoreEnvVarErrors: true,
5498
- env: {}
5499
- });
5500
- try {
5501
- const response = JSON.parse((0, import_prisma_schema_wasm2.get_config)(params));
5502
- return usesPrismaSchemaFolder2(response.config);
5503
- } catch (e) {
5504
- return false;
5505
- }
5506
- }
5507
5478
  async function findSchemaRoot(filePath, filesResolver) {
5508
5479
  let dir = import_node_path22.default.dirname(filePath);
5509
5480
  while (dir !== filePath) {
@@ -6070,26 +6041,26 @@ var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
6070
6041
  b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
6071
6042
  var x = r * 0.4124 + g * 0.3576 + b * 0.1805;
6072
6043
  var y = r * 0.2126 + g * 0.7152 + b * 0.0722;
6073
- var z2 = r * 0.0193 + g * 0.1192 + b * 0.9505;
6074
- return [x * 100, y * 100, z2 * 100];
6044
+ var z = r * 0.0193 + g * 0.1192 + b * 0.9505;
6045
+ return [x * 100, y * 100, z * 100];
6075
6046
  };
6076
6047
  convert.rgb.lab = function(rgb) {
6077
6048
  var xyz = convert.rgb.xyz(rgb);
6078
6049
  var x = xyz[0];
6079
6050
  var y = xyz[1];
6080
- var z2 = xyz[2];
6051
+ var z = xyz[2];
6081
6052
  var l;
6082
6053
  var a;
6083
6054
  var b;
6084
6055
  x /= 95.047;
6085
6056
  y /= 100;
6086
- z2 /= 108.883;
6057
+ z /= 108.883;
6087
6058
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6088
6059
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6089
- z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
6060
+ z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
6090
6061
  l = 116 * y - 16;
6091
6062
  a = 500 * (x - y);
6092
- b = 200 * (y - z2);
6063
+ b = 200 * (y - z);
6093
6064
  return [l, a, b];
6094
6065
  };
6095
6066
  convert.hsl.rgb = function(hsl) {
@@ -6264,13 +6235,13 @@ var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
6264
6235
  convert.xyz.rgb = function(xyz) {
6265
6236
  var x = xyz[0] / 100;
6266
6237
  var y = xyz[1] / 100;
6267
- var z2 = xyz[2] / 100;
6238
+ var z = xyz[2] / 100;
6268
6239
  var r;
6269
6240
  var g;
6270
6241
  var b;
6271
- r = x * 3.2406 + y * -1.5372 + z2 * -0.4986;
6272
- g = x * -0.9689 + y * 1.8758 + z2 * 0.0415;
6273
- b = x * 0.0557 + y * -0.204 + z2 * 1.057;
6242
+ r = x * 3.2406 + y * -1.5372 + z * -0.4986;
6243
+ g = x * -0.9689 + y * 1.8758 + z * 0.0415;
6244
+ b = x * 0.0557 + y * -0.204 + z * 1.057;
6274
6245
  r = r > 31308e-7 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : r * 12.92;
6275
6246
  g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
6276
6247
  b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
@@ -6282,19 +6253,19 @@ var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
6282
6253
  convert.xyz.lab = function(xyz) {
6283
6254
  var x = xyz[0];
6284
6255
  var y = xyz[1];
6285
- var z2 = xyz[2];
6256
+ var z = xyz[2];
6286
6257
  var l;
6287
6258
  var a;
6288
6259
  var b;
6289
6260
  x /= 95.047;
6290
6261
  y /= 100;
6291
- z2 /= 108.883;
6262
+ z /= 108.883;
6292
6263
  x = x > 8856e-6 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;
6293
6264
  y = y > 8856e-6 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;
6294
- z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
6265
+ z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
6295
6266
  l = 116 * y - 16;
6296
6267
  a = 500 * (x - y);
6297
- b = 200 * (y - z2);
6268
+ b = 200 * (y - z);
6298
6269
  return [l, a, b];
6299
6270
  };
6300
6271
  convert.lab.xyz = function(lab) {
@@ -6303,20 +6274,20 @@ var require_conversions = (0, import_chunk_2ESYSVXG.__commonJS)({
6303
6274
  var b = lab[2];
6304
6275
  var x;
6305
6276
  var y;
6306
- var z2;
6277
+ var z;
6307
6278
  y = (l + 16) / 116;
6308
6279
  x = a / 500 + y;
6309
- z2 = y - b / 200;
6280
+ z = y - b / 200;
6310
6281
  var y2 = Math.pow(y, 3);
6311
6282
  var x2 = Math.pow(x, 3);
6312
- var z22 = Math.pow(z2, 3);
6283
+ var z2 = Math.pow(z, 3);
6313
6284
  y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
6314
6285
  x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
6315
- z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
6286
+ z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
6316
6287
  x *= 95.047;
6317
6288
  y *= 100;
6318
- z2 *= 108.883;
6319
- return [x, y, z2];
6289
+ z *= 108.883;
6290
+ return [x, y, z];
6320
6291
  };
6321
6292
  convert.lab.lch = function(lab) {
6322
6293
  var l = lab[0];
@@ -6644,15 +6615,15 @@ var require_route = (0, import_chunk_2ESYSVXG.__commonJS)({
6644
6615
  };
6645
6616
  }
6646
6617
  function wrapConversion(toModel, graph) {
6647
- var path7 = [graph[toModel].parent, toModel];
6618
+ var path6 = [graph[toModel].parent, toModel];
6648
6619
  var fn = conversions[graph[toModel].parent][toModel];
6649
6620
  var cur = graph[toModel].parent;
6650
6621
  while (graph[cur].parent) {
6651
- path7.unshift(graph[cur].parent);
6622
+ path6.unshift(graph[cur].parent);
6652
6623
  fn = link2(conversions[graph[cur].parent][cur], fn);
6653
6624
  cur = graph[cur].parent;
6654
6625
  }
6655
- fn.conversion = path7;
6626
+ fn.conversion = path6;
6656
6627
  return fn;
6657
6628
  }
6658
6629
  module2.exports = function(fromModel) {
@@ -6942,10 +6913,10 @@ var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({
6942
6913
  return 3;
6943
6914
  }
6944
6915
  if ("TERM_PROGRAM" in env) {
6945
- const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6916
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
6946
6917
  switch (env.TERM_PROGRAM) {
6947
6918
  case "iTerm.app":
6948
- return version2 >= 3 ? 3 : 2;
6919
+ return version >= 3 ? 3 : 2;
6949
6920
  case "Apple_Terminal":
6950
6921
  return 2;
6951
6922
  }
@@ -8445,8 +8416,8 @@ var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
8445
8416
  }
8446
8417
  }
8447
8418
  function parseParenthesizedExpression() {
8448
- var left3 = parseOperator("(");
8449
- if (!left3) {
8419
+ var left = parseOperator("(");
8420
+ if (!left) {
8450
8421
  return;
8451
8422
  }
8452
8423
  var expr = parseExpression();
@@ -8460,21 +8431,21 @@ var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({
8460
8431
  }
8461
8432
  function makeBinaryOpParser(operator, nextParser) {
8462
8433
  return function parseBinaryOp() {
8463
- var left3 = nextParser();
8464
- if (!left3) {
8434
+ var left = nextParser();
8435
+ if (!left) {
8465
8436
  return;
8466
8437
  }
8467
8438
  if (!parseOperator(operator)) {
8468
- return left3;
8439
+ return left;
8469
8440
  }
8470
- var right3 = parseBinaryOp();
8471
- if (!right3) {
8441
+ var right = parseBinaryOp();
8442
+ if (!right) {
8472
8443
  throw new Error("Expected expression");
8473
8444
  }
8474
8445
  return {
8475
- left: left3,
8446
+ left,
8476
8447
  conjunction: operator.toLowerCase(),
8477
- right: right3
8448
+ right
8478
8449
  };
8479
8450
  };
8480
8451
  }
@@ -8894,13 +8865,13 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
8894
8865
  var defaults = {
8895
8866
  sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin("#", committish)}`,
8896
8867
  sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
8897
- edittemplate: ({ domain, user, project, committish, editpath, path: path7 }) => `https://${domain}/${user}/${project}${maybeJoin("/", editpath, "/", maybeEncode(committish || "HEAD"), "/", path7)}`,
8868
+ edittemplate: ({ domain, user, project, committish, editpath, path: path6 }) => `https://${domain}/${user}/${project}${maybeJoin("/", editpath, "/", maybeEncode(committish || "HEAD"), "/", path6)}`,
8898
8869
  browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}`,
8899
- browsetreetemplate: ({ domain, user, project, committish, treepath, path: path7, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "HEAD")}/${path7}${maybeJoin("#", hashformat(fragment || ""))}`,
8900
- browseblobtemplate: ({ domain, user, project, committish, blobpath, path: path7, fragment, hashformat }) => `https://${domain}/${user}/${project}/${blobpath}/${maybeEncode(committish || "HEAD")}/${path7}${maybeJoin("#", hashformat(fragment || ""))}`,
8870
+ browsetreetemplate: ({ domain, user, project, committish, treepath, path: path6, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "HEAD")}/${path6}${maybeJoin("#", hashformat(fragment || ""))}`,
8871
+ browseblobtemplate: ({ domain, user, project, committish, blobpath, path: path6, fragment, hashformat }) => `https://${domain}/${user}/${project}/${blobpath}/${maybeEncode(committish || "HEAD")}/${path6}${maybeJoin("#", hashformat(fragment || ""))}`,
8901
8872
  docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`,
8902
8873
  httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
8903
- filetemplate: ({ domain, user, project, committish, path: path7 }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish || "HEAD")}/${path7}`,
8874
+ filetemplate: ({ domain, user, project, committish, path: path6 }) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish || "HEAD")}/${path6}`,
8904
8875
  shortcuttemplate: ({ type, user, project, committish }) => `${type}:${user}/${project}${maybeJoin("#", committish)}`,
8905
8876
  pathtemplate: ({ user, project, committish }) => `${user}/${project}${maybeJoin("#", committish)}`,
8906
8877
  bugstemplate: ({ domain, user, project }) => `https://${domain}/${user}/${project}/issues`,
@@ -8915,7 +8886,7 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
8915
8886
  treepath: "tree",
8916
8887
  blobpath: "blob",
8917
8888
  editpath: "edit",
8918
- filetemplate: ({ auth, user, project, committish, path: path7 }) => `https://${maybeJoin(auth, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish || "HEAD")}/${path7}`,
8889
+ filetemplate: ({ auth, user, project, committish, path: path6 }) => `https://${maybeJoin(auth, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish || "HEAD")}/${path6}`,
8919
8890
  gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
8920
8891
  tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish || "HEAD")}`,
8921
8892
  extract: (url) => {
@@ -8941,7 +8912,7 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
8941
8912
  treepath: "src",
8942
8913
  blobpath: "src",
8943
8914
  editpath: "?mode=edit",
8944
- edittemplate: ({ domain, user, project, committish, treepath, path: path7, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish || "HEAD"), "/", path7, editpath)}`,
8915
+ edittemplate: ({ domain, user, project, committish, treepath, path: path6, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish || "HEAD"), "/", path6, editpath)}`,
8945
8916
  tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish || "HEAD")}.tar.gz`,
8946
8917
  extract: (url) => {
8947
8918
  let [, user, project, aux] = url.pathname.split("/", 4);
@@ -8966,11 +8937,11 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
8966
8937
  httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
8967
8938
  tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || "HEAD")}`,
8968
8939
  extract: (url) => {
8969
- const path7 = url.pathname.slice(1);
8970
- if (path7.includes("/-/") || path7.includes("/archive.tar.gz")) {
8940
+ const path6 = url.pathname.slice(1);
8941
+ if (path6.includes("/-/") || path6.includes("/archive.tar.gz")) {
8971
8942
  return;
8972
8943
  }
8973
- const segments = path7.split("/");
8944
+ const segments = path6.split("/");
8974
8945
  let project = segments.pop();
8975
8946
  if (project.endsWith(".git")) {
8976
8947
  project = project.slice(0, -4);
@@ -8990,11 +8961,11 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
8990
8961
  sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin("#", committish)}`,
8991
8962
  edittemplate: ({ domain, user, project, committish, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", maybeEncode(committish))}/${editpath}`,
8992
8963
  browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`,
8993
- browsetreetemplate: ({ domain, project, committish, path: path7, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path7))}`,
8994
- browseblobtemplate: ({ domain, project, committish, path: path7, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path7))}`,
8964
+ browsetreetemplate: ({ domain, project, committish, path: path6, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path6))}`,
8965
+ browseblobtemplate: ({ domain, project, committish, path: path6, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path6))}`,
8995
8966
  docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`,
8996
8967
  httpstemplate: ({ domain, project, committish }) => `git+https://${domain}/${project}.git${maybeJoin("#", committish)}`,
8997
- filetemplate: ({ user, project, committish, path: path7 }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin("/", maybeEncode(committish))}/${path7}`,
8968
+ filetemplate: ({ user, project, committish, path: path6 }) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin("/", maybeEncode(committish))}/${path6}`,
8998
8969
  shortcuttemplate: ({ type, project, committish }) => `${type}:${project}${maybeJoin("#", committish)}`,
8999
8970
  pathtemplate: ({ project, committish }) => `${project}${maybeJoin("#", committish)}`,
9000
8971
  bugstemplate: ({ domain, project }) => `https://${domain}/${project}`,
@@ -9026,7 +8997,7 @@ var require_hosts = (0, import_chunk_2ESYSVXG.__commonJS)({
9026
8997
  domain: "git.sr.ht",
9027
8998
  treepath: "tree",
9028
8999
  blobpath: "tree",
9029
- filetemplate: ({ domain, user, project, committish, path: path7 }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "HEAD"}/${path7}`,
9000
+ filetemplate: ({ domain, user, project, committish, path: path6 }) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "HEAD"}/${path6}`,
9030
9001
  httpstemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
9031
9002
  tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "HEAD"}.tar.gz`,
9032
9003
  bugstemplate: ({ user, project }) => null,
@@ -9272,25 +9243,25 @@ var require_lib5 = (0, import_chunk_2ESYSVXG.__commonJS)({
9272
9243
  sshurl(opts) {
9273
9244
  return this.#fill(this.sshurltemplate, opts);
9274
9245
  }
9275
- browse(path7, ...args) {
9276
- if (typeof path7 !== "string") {
9277
- return this.#fill(this.browsetemplate, path7);
9246
+ browse(path6, ...args) {
9247
+ if (typeof path6 !== "string") {
9248
+ return this.#fill(this.browsetemplate, path6);
9278
9249
  }
9279
9250
  if (typeof args[0] !== "string") {
9280
- return this.#fill(this.browsetreetemplate, { ...args[0], path: path7 });
9251
+ return this.#fill(this.browsetreetemplate, { ...args[0], path: path6 });
9281
9252
  }
9282
- return this.#fill(this.browsetreetemplate, { ...args[1], fragment: args[0], path: path7 });
9253
+ return this.#fill(this.browsetreetemplate, { ...args[1], fragment: args[0], path: path6 });
9283
9254
  }
9284
9255
  // If the path is known to be a file, then browseFile should be used. For some hosts
9285
9256
  // the url is the same as browse, but for others like GitHub a file can use both `/tree/`
9286
9257
  // and `/blob/` in the path. When using a default committish of `HEAD` then the `/tree/`
9287
9258
  // path will redirect to a specific commit. Using the `/blob/` path avoids this and
9288
9259
  // does not redirect to a different commit.
9289
- browseFile(path7, ...args) {
9260
+ browseFile(path6, ...args) {
9290
9261
  if (typeof args[0] !== "string") {
9291
- return this.#fill(this.browseblobtemplate, { ...args[0], path: path7 });
9262
+ return this.#fill(this.browseblobtemplate, { ...args[0], path: path6 });
9292
9263
  }
9293
- return this.#fill(this.browseblobtemplate, { ...args[1], fragment: args[0], path: path7 });
9264
+ return this.#fill(this.browseblobtemplate, { ...args[1], fragment: args[0], path: path6 });
9294
9265
  }
9295
9266
  docs(opts) {
9296
9267
  return this.#fill(this.docstemplate, opts);
@@ -9313,11 +9284,11 @@ var require_lib5 = (0, import_chunk_2ESYSVXG.__commonJS)({
9313
9284
  tarball(opts) {
9314
9285
  return this.#fill(this.tarballtemplate, { ...opts, noCommittish: false });
9315
9286
  }
9316
- file(path7, opts) {
9317
- return this.#fill(this.filetemplate, { ...opts, path: path7 });
9287
+ file(path6, opts) {
9288
+ return this.#fill(this.filetemplate, { ...opts, path: path6 });
9318
9289
  }
9319
- edit(path7, opts) {
9320
- return this.#fill(this.edittemplate, { ...opts, path: path7 });
9290
+ edit(path6, opts) {
9291
+ return this.#fill(this.edittemplate, { ...opts, path: path6 });
9321
9292
  }
9322
9293
  getDefaultRepresentation() {
9323
9294
  return this.default;
@@ -10162,115 +10133,6 @@ var require_normalize = (0, import_chunk_2ESYSVXG.__commonJS)({
10162
10133
  }
10163
10134
  }
10164
10135
  });
10165
- var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
10166
- "../internals/package.json"(exports, module2) {
10167
- module2.exports = {
10168
- name: "@prisma/internals",
10169
- version: "0.0.0",
10170
- description: "This package is intended for Prisma's internal use",
10171
- main: "dist/index.js",
10172
- types: "dist/index.d.ts",
10173
- repository: {
10174
- type: "git",
10175
- url: "https://github.com/prisma/prisma.git",
10176
- directory: "packages/internals"
10177
- },
10178
- homepage: "https://www.prisma.io",
10179
- author: "Tim Suchanek <suchanek@prisma.io>",
10180
- bugs: "https://github.com/prisma/prisma/issues",
10181
- license: "Apache-2.0",
10182
- scripts: {
10183
- dev: "DEV=true tsx helpers/build.ts",
10184
- build: "tsx helpers/build.ts",
10185
- test: "dotenv -e ../../.db.env -- jest --silent",
10186
- prepublishOnly: "pnpm run build"
10187
- },
10188
- files: [
10189
- "README.md",
10190
- "dist",
10191
- "!**/libquery_engine*",
10192
- "!dist/get-generators/engines/*",
10193
- "scripts"
10194
- ],
10195
- devDependencies: {
10196
- "@babel/helper-validator-identifier": "7.25.9",
10197
- "@opentelemetry/api": "1.9.0",
10198
- "@swc/core": "1.11.5",
10199
- "@swc/jest": "0.2.37",
10200
- "@types/babel__helper-validator-identifier": "7.15.2",
10201
- "@types/jest": "29.5.14",
10202
- "@types/node": "18.19.76",
10203
- "@types/resolve": "1.20.6",
10204
- archiver: "6.0.2",
10205
- "checkpoint-client": "1.1.33",
10206
- "cli-truncate": "4.0.0",
10207
- dotenv: "16.4.7",
10208
- esbuild: "0.25.1",
10209
- "escape-string-regexp": "5.0.0",
10210
- execa: "5.1.1",
10211
- "fast-glob": "3.3.3",
10212
- "find-up": "7.0.0",
10213
- "fp-ts": "2.16.9",
10214
- "fs-extra": "11.3.0",
10215
- "fs-jetpack": "5.1.0",
10216
- "global-dirs": "4.0.0",
10217
- globby: "11.1.0",
10218
- "identifier-regex": "1.0.0",
10219
- "indent-string": "4.0.0",
10220
- "is-windows": "1.0.2",
10221
- "is-wsl": "3.1.0",
10222
- jest: "29.7.0",
10223
- "jest-junit": "16.0.0",
10224
- kleur: "4.1.5",
10225
- "mock-stdin": "1.0.0",
10226
- "new-github-issue-url": "0.2.1",
10227
- "node-fetch": "3.3.2",
10228
- "npm-packlist": "5.1.3",
10229
- open: "7.4.2",
10230
- "p-map": "4.0.0",
10231
- "read-package-up": "11.0.0",
10232
- resolve: "1.22.10",
10233
- "string-width": "7.2.0",
10234
- "strip-ansi": "6.0.1",
10235
- "strip-indent": "4.0.0",
10236
- "temp-dir": "2.0.0",
10237
- tempy: "1.0.1",
10238
- "terminal-link": "4.0.0",
10239
- tmp: "0.2.3",
10240
- "ts-node": "10.9.2",
10241
- "ts-pattern": "5.6.2",
10242
- "ts-toolbelt": "9.6.0",
10243
- typescript: "5.4.5",
10244
- yarn: "1.22.22"
10245
- },
10246
- dependencies: {
10247
- "@prisma/config": "workspace:*",
10248
- "@prisma/debug": "workspace:*",
10249
- "@prisma/dmmf": "workspace:*",
10250
- "@prisma/driver-adapter-utils": "workspace:*",
10251
- "@prisma/engines": "workspace:*",
10252
- "@prisma/fetch-engine": "workspace:*",
10253
- "@prisma/generator": "workspace:*",
10254
- "@prisma/generator-helper": "workspace:*",
10255
- "@prisma/get-platform": "workspace:*",
10256
- "@prisma/prisma-schema-wasm": "6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a",
10257
- "@prisma/schema-engine-wasm": "6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a",
10258
- "@prisma/schema-files-loader": "workspace:*",
10259
- arg: "5.0.2",
10260
- prompts: "2.4.2"
10261
- },
10262
- peerDependencies: {
10263
- typescript: ">=5.1.0"
10264
- },
10265
- peerDependenciesMeta: {
10266
- typescript: {
10267
- optional: true
10268
- }
10269
- },
10270
- sideEffects: false
10271
- };
10272
- }
10273
- });
10274
10136
  var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)(require_main());
10275
10137
  var import_schema_files_loader = (0, import_chunk_2ESYSVXG.__toESM)(require_dist());
10276
10138
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
@@ -10414,391 +10276,9 @@ async function readPackageUp(options) {
10414
10276
  path: filePath
10415
10277
  };
10416
10278
  }
10417
- var __spreadArray = function(to, from, pack) {
10418
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
10419
- if (ar || !(i in from)) {
10420
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
10421
- ar[i] = from[i];
10422
- }
10423
- }
10424
- return to.concat(ar || Array.prototype.slice.call(from));
10425
- };
10426
- function identity(a) {
10427
- return a;
10428
- }
10429
- function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
10430
- switch (arguments.length) {
10431
- case 1:
10432
- return a;
10433
- case 2:
10434
- return ab(a);
10435
- case 3:
10436
- return bc(ab(a));
10437
- case 4:
10438
- return cd(bc(ab(a)));
10439
- case 5:
10440
- return de(cd(bc(ab(a))));
10441
- case 6:
10442
- return ef(de(cd(bc(ab(a)))));
10443
- case 7:
10444
- return fg(ef(de(cd(bc(ab(a))))));
10445
- case 8:
10446
- return gh(fg(ef(de(cd(bc(ab(a)))))));
10447
- case 9:
10448
- return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
10449
- default: {
10450
- var ret = arguments[0];
10451
- for (var i = 1; i < arguments.length; i++) {
10452
- ret = arguments[i](ret);
10453
- }
10454
- return ret;
10455
- }
10456
- }
10457
- }
10458
- var dual = function(arity, body) {
10459
- var isDataFirst = typeof arity === "number" ? function(args) {
10460
- return args.length >= arity;
10461
- } : arity;
10462
- return function() {
10463
- var args = Array.from(arguments);
10464
- if (isDataFirst(arguments)) {
10465
- return body.apply(this, args);
10466
- }
10467
- return function(self) {
10468
- return body.apply(void 0, __spreadArray([self], args, false));
10469
- };
10470
- };
10471
- };
10472
- var isLeft = function(ma) {
10473
- return ma._tag === "Left";
10474
- };
10475
- var isRight = function(ma) {
10476
- return ma._tag === "Right";
10477
- };
10478
- var left = function(e) {
10479
- return { _tag: "Left", left: e };
10480
- };
10481
- var right = function(a) {
10482
- return { _tag: "Right", right: a };
10483
- };
10484
- function as(F) {
10485
- return function(self, b) {
10486
- return F.map(self, function() {
10487
- return b;
10488
- });
10489
- };
10490
- }
10491
- function asUnit(F) {
10492
- var asM = as(F);
10493
- return function(self) {
10494
- return asM(self, void 0);
10495
- };
10496
- }
10497
- function tap(M) {
10498
- return function(first, f) {
10499
- return M.chain(first, function(a) {
10500
- return M.map(f(a), function() {
10501
- return a;
10502
- });
10503
- });
10504
- };
10505
- }
10506
- var left2 = left;
10507
- var right2 = right;
10508
- var flatMap = /* @__PURE__ */ dual(2, function(ma, f) {
10509
- return isLeft2(ma) ? ma : f(ma.right);
10510
- });
10511
- var _map = function(fa, f) {
10512
- return pipe(fa, map(f));
10513
- };
10514
- var _ap = function(fab, fa) {
10515
- return pipe(fab, ap(fa));
10516
- };
10517
- var URI = "Either";
10518
- var map = function(f) {
10519
- return function(fa) {
10520
- return isLeft2(fa) ? fa : right2(f(fa.right));
10521
- };
10522
- };
10523
- var Functor = {
10524
- URI,
10525
- map: _map
10526
- };
10527
- var as2 = dual(2, as(Functor));
10528
- var asUnit2 = asUnit(Functor);
10529
- var apW = function(fa) {
10530
- return function(fab) {
10531
- return isLeft2(fab) ? fab : isLeft2(fa) ? fa : right2(fab.right(fa.right));
10532
- };
10533
- };
10534
- var ap = apW;
10535
- var Chain = {
10536
- URI,
10537
- map: _map,
10538
- ap: _ap,
10539
- chain: flatMap
10540
- };
10541
- var FromEither = {
10542
- URI,
10543
- fromEither: identity
10544
- };
10545
- var isLeft2 = isLeft;
10546
- var isRight2 = isRight;
10547
- var getOrElseW = function(onLeft) {
10548
- return function(ma) {
10549
- return isLeft2(ma) ? onLeft(ma.left) : ma.right;
10550
- };
10551
- };
10552
- var tap2 = /* @__PURE__ */ dual(2, tap(Chain));
10553
- var _FromEither = {
10554
- fromEither: FromEither.fromEither
10555
- };
10556
- var tryCatch = function(f, onThrow) {
10557
- try {
10558
- return right2(f());
10559
- } catch (e) {
10560
- return left2(onThrow(e));
10561
- }
10562
- };
10563
- var chainW = flatMap;
10564
- var import_function3 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OEWQACEH.require_function)());
10565
- var RustPanic = class extends Error {
10566
- __typename = "RustPanic";
10567
- request;
10568
- rustStack;
10569
- area;
10570
- introspectionUrl;
10571
- constructor(message, rustStack, request, area, introspectionUrl) {
10572
- super(message);
10573
- this.name = "RustPanic";
10574
- this.rustStack = rustStack;
10575
- this.request = request;
10576
- this.area = area;
10577
- this.introspectionUrl = introspectionUrl;
10578
- }
10579
- };
10580
- function isWasmPanic(error) {
10581
- return error.name === "RuntimeError";
10582
- }
10583
- function getWasmError(error) {
10584
- const message = globalThis.PRISMA_WASM_PANIC_REGISTRY.get();
10585
- const stack = [message, ...(error.stack || "NO_BACKTRACE").split("\n").slice(1)].join("\n");
10586
- return { message, stack };
10587
- }
10588
- var WasmPanicRegistry = class {
10589
- message = "";
10590
- get() {
10591
- return `${this.message}`;
10592
- }
10593
- // Don't use this method directly, it's only used by the Wasm panic hook in @prisma/prisma-schema-wasm.
10594
- set_message(value) {
10595
- this.message = `RuntimeError: ${value}`;
10596
- }
10597
- };
10598
- globalThis.PRISMA_WASM_PANIC_REGISTRY = new WasmPanicRegistry();
10599
- var { dependencies } = require_package();
10600
- var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
10601
- var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
10602
- function slugify(str) {
10603
- return str.toString().toLowerCase().replace(/\s+/g, "-");
10604
- }
10605
- function formatTable(rows, options = { json: false }) {
10606
- if (options.json) {
10607
- const result = rows.reduce((acc, [name, value]) => {
10608
- acc[slugify(name)] = value;
10609
- return acc;
10610
- }, {});
10611
- return JSON.stringify(result, null, 2);
10612
- }
10613
- const maxPad = rows.reduce((acc, curr) => Math.max(acc, curr[0].length), 0);
10614
- return rows.map(([left3, right3]) => `${left3.padEnd(maxPad)} : ${right3}`).join("\n");
10615
- }
10616
- var packageJson = require_package();
10617
- var version = packageJson.version;
10618
- function addVersionDetailsToErrorMessage(message) {
10619
- const rows = [["Prisma CLI Version", version]];
10620
- return `${message}
10621
-
10622
- ${formatTable(rows)}`;
10623
- }
10624
- var import_function2 = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OEWQACEH.require_function)());
10625
- function relativizePathInPSLError(error) {
10626
- return error.replaceAll(process.cwd() + import_node_path4.default.sep, "");
10627
- }
10628
- var createDebugErrorType = (debug4, fnName) => ({ type, reason, error }) => {
10629
- debug4(`error of type "${type}" in ${fnName}:
10630
- `, { reason, error });
10631
- };
10632
- function createSchemaValidationError(reason) {
10633
- return `${(0, import_chunk_SKRR5WT4.red)((0, import_chunk_SKRR5WT4.bold)("Prisma schema validation"))} - ${reason}`;
10634
- }
10635
- function parseQueryEngineError({ errorOutput, reason }) {
10636
- const actualError = (0, import_function2.pipe)(
10637
- tryCatch(
10638
- () => JSON.parse(errorOutput),
10639
- () => ({ _tag: "unparsed", message: errorOutput, reason })
10640
- ),
10641
- map((errorOutputAsJSON) => {
10642
- const defaultMessage = (0, import_chunk_SKRR5WT4.red)((0, import_chunk_SKRR5WT4.bold)(relativizePathInPSLError(errorOutputAsJSON.message)));
10643
- const getConfigErrorInit = (0, import_chunk_OEWQACEH.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
10644
- return {
10645
- reason: createSchemaValidationError(reason),
10646
- errorCode: eJSON.error_code
10647
- };
10648
- }).with({ error_code: import_chunk_OEWQACEH.N.string }, (eJSON) => {
10649
- return {
10650
- reason,
10651
- errorCode: eJSON.error_code
10652
- };
10653
- }).otherwise(() => {
10654
- return {
10655
- reason
10656
- };
10657
- });
10658
- return { _tag: "parsed", message: defaultMessage, ...getConfigErrorInit };
10659
- }),
10660
- getOrElseW(import_function2.identity)
10661
- );
10662
- return actualError;
10663
- }
10664
- var debug = (0, import_debug3.default)("prisma:getConfig");
10665
- var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
10666
- var GetConfigError = class extends Error {
10667
- constructor(params) {
10668
- const constructedErrorMessage = (0, import_chunk_OEWQACEH.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
10669
- const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
10670
- return `${reason}
10671
- ${errorCodeMessage}
10672
- ${message}`;
10673
- }).with({ _tag: "unparsed" }, ({ message, reason }) => {
10674
- const detailsHeader = (0, import_chunk_SKRR5WT4.red)((0, import_chunk_SKRR5WT4.bold)("Details:"));
10675
- return `${reason}
10676
- ${detailsHeader} ${message}`;
10677
- }).exhaustive();
10678
- const errorMessageWithContext = `${constructedErrorMessage}
10679
- [Context: getConfig]`;
10680
- super(addVersionDetailsToErrorMessage(errorMessageWithContext));
10681
- this.name = "GetConfigError";
10682
- }
10683
- };
10684
- async function getConfig(options) {
10685
- const debugErrorType = createDebugErrorType(debug, "getConfigWasm");
10686
- debug(`Using getConfig Wasm`);
10687
- const configEither = (0, import_function3.pipe)(
10688
- tryCatch(
10689
- () => {
10690
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
10691
- debug("Triggering a Rust panic...");
10692
- import_prisma_schema_wasm.default.debug_panic();
10693
- }
10694
- const params = JSON.stringify({
10695
- prismaSchema: options.datamodel,
10696
- datasourceOverrides: {},
10697
- ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
10698
- env: process.env
10699
- });
10700
- const data = import_prisma_schema_wasm.default.get_config(params);
10701
- return data;
10702
- },
10703
- (e) => ({
10704
- type: "wasm-error",
10705
- reason: "(get-config wasm)",
10706
- error: e
10707
- })
10708
- ),
10709
- map((result) => ({ result })),
10710
- chainW(
10711
- ({ result }) => (
10712
- // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
10713
- tryCatch(
10714
- () => JSON.parse(result),
10715
- (e) => ({
10716
- type: "parse-json",
10717
- reason: "Unable to parse JSON",
10718
- error: e
10719
- })
10720
- )
10721
- )
10722
- ),
10723
- chainW((response) => {
10724
- if (response.errors.length > 0) {
10725
- return left2({
10726
- type: "validation-error",
10727
- reason: "(get-config wasm)",
10728
- error: response.errors
10729
- });
10730
- }
10731
- return right2(response.config);
10732
- })
10733
- );
10734
- if (isRight2(configEither)) {
10735
- debug("config data retrieved without errors in getConfig Wasm");
10736
- const { right: data } = configEither;
10737
- for (const generator of data.generators) {
10738
- await resolveBinaryTargets(generator);
10739
- }
10740
- return Promise.resolve(data);
10741
- }
10742
- const error = (0, import_chunk_OEWQACEH.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
10743
- debugErrorType(e);
10744
- if (isWasmPanic(e.error)) {
10745
- const { message, stack } = getWasmError(e.error);
10746
- const panic = new RustPanic(
10747
- /* message */
10748
- message,
10749
- /* rustStack */
10750
- stack,
10751
- /* request */
10752
- "@prisma/prisma-schema-wasm get_config",
10753
- "FMT_CLI"
10754
- /* FMT_CLI */
10755
- );
10756
- return panic;
10757
- }
10758
- const errorOutput = e.error.message;
10759
- return new GetConfigError(parseQueryEngineError({ errorOutput, reason: e.reason }));
10760
- }).with({ type: "validation-error" }, (e) => {
10761
- return new GetConfigError({
10762
- _tag: "parsed",
10763
- errorCode: SCHEMA_VALIDATION_ERROR_CODE,
10764
- reason: createSchemaValidationError(e.reason),
10765
- message: formatErrors(e.error)
10766
- });
10767
- }).otherwise((e) => {
10768
- debugErrorType(e);
10769
- return new GetConfigError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
10770
- });
10771
- throw error;
10772
- }
10773
- async function resolveBinaryTargets(generator) {
10774
- for (const binaryTarget of generator.binaryTargets) {
10775
- if (binaryTarget.fromEnvVar && process.env[binaryTarget.fromEnvVar]) {
10776
- const value = JSON.parse(process.env[binaryTarget.fromEnvVar]);
10777
- if (Array.isArray(value)) {
10778
- generator.binaryTargets = value.map((v) => ({ fromEnvVar: null, value: v }));
10779
- await resolveBinaryTargets(generator);
10780
- } else {
10781
- binaryTarget.value = value;
10782
- }
10783
- }
10784
- if (binaryTarget.value === "native") {
10785
- binaryTarget.value = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
10786
- binaryTarget.native = true;
10787
- }
10788
- }
10789
- if (generator.binaryTargets.length === 0) {
10790
- generator.binaryTargets = [{ fromEnvVar: null, value: await (0, import_get_platform.getBinaryTargetForCurrentPlatform)(), native: true }];
10791
- }
10792
- }
10793
- function formatErrors(errors) {
10794
- const formattedErrors = errors.map((e) => relativizePathInPSLError(e.message)).join("\n\n");
10795
- const errorCount = `Validation Error Count: ${errors.length}`;
10796
- return `${formattedErrors}
10797
- ${errorCount}`;
10798
- }
10799
10279
  var readFile = (0, import_util.promisify)(import_fs.default.readFile);
10800
10280
  var stat = (0, import_util.promisify)(import_fs.default.stat);
10801
- var debug2 = (0, import_debug2.Debug)("prisma:getSchema");
10281
+ var debug = (0, import_debug2.Debug)("prisma:getSchema");
10802
10282
  async function getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig, { cwd = process.cwd(), argumentName = "--schema" } = {}) {
10803
10283
  const result = await getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfig, { cwd, argumentName });
10804
10284
  if (result.ok) {
@@ -10807,7 +10287,7 @@ async function getSchemaWithPath(schemaPathFromArgs, schemaPathFromConfig, { cwd
10807
10287
  throw new Error(renderDefaultLookupError(result.error, cwd));
10808
10288
  }
10809
10289
  async function readSchemaFromSingleFile(schemaPath) {
10810
- debug2("Reading schema from single file", schemaPath);
10290
+ debug("Reading schema from single file", schemaPath);
10811
10291
  const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "file");
10812
10292
  if (typeError) {
10813
10293
  return { ok: false, error: typeError };
@@ -10820,21 +10300,12 @@ async function readSchemaFromSingleFile(schemaPath) {
10820
10300
  };
10821
10301
  }
10822
10302
  async function readSchemaFromDirectory(schemaPath) {
10823
- debug2("Reading schema from multiple files", schemaPath);
10303
+ debug("Reading schema from multiple files", schemaPath);
10824
10304
  const typeError = await (0, import_schema_files_loader.ensureType)(schemaPath, "directory");
10825
10305
  if (typeError) {
10826
10306
  return { ok: false, error: typeError };
10827
10307
  }
10828
10308
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath);
10829
- debug2("Loading config");
10830
- const config = await getConfig({
10831
- datamodel: files,
10832
- ignoreEnvVarErrors: true
10833
- });
10834
- debug2("Ok");
10835
- if (!(0, import_schema_files_loader.usesPrismaSchemaFolder)(config)) {
10836
- return { ok: false, error: { kind: "FolderPreviewNotEnabled", path: schemaPath } };
10837
- }
10838
10309
  return { ok: true, schema: { schemaPath, schemaRootDir: schemaPath, schemas: files } };
10839
10310
  }
10840
10311
  async function readSchemaFromFileOrDirectory(schemaPath) {
@@ -10892,8 +10363,6 @@ function renderLookupError(error) {
10892
10363
  const expected = error.expectedType ?? "file or directory";
10893
10364
  return `${expected} not found`;
10894
10365
  }
10895
- case "FolderPreviewNotEnabled":
10896
- return `"prismaSchemaFolder" preview feature must be enabled`;
10897
10366
  case "WrongType":
10898
10367
  return `expected ${error.expectedTypes.join(" or ")}`;
10899
10368
  }
@@ -10948,7 +10417,7 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
10948
10417
  }
10949
10418
  async function getSchemaFromPackageJson(cwd) {
10950
10419
  const prismaConfig = await getPrismaConfigFromPackageJson(cwd);
10951
- debug2("prismaConfig", prismaConfig);
10420
+ debug("prismaConfig", prismaConfig);
10952
10421
  if (!prismaConfig || !prismaConfig.data?.schema) {
10953
10422
  return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
10954
10423
  }
@@ -10978,11 +10447,11 @@ async function getSchemaFromPackageJson(cwd) {
10978
10447
  }
10979
10448
  async function getDefaultSchema(cwd, failures = []) {
10980
10449
  const lookupPaths = [import_path2.default.join(cwd, "schema.prisma"), import_path2.default.join(cwd, "prisma", "schema.prisma")];
10981
- for (const path7 of lookupPaths) {
10982
- debug2(`Checking existence of ${path7}`);
10983
- const schema = await readSchemaFromSingleFile(path7);
10450
+ for (const path6 of lookupPaths) {
10451
+ debug(`Checking existence of ${path6}`);
10452
+ const schema = await readSchemaFromSingleFile(path6);
10984
10453
  if (!schema.ok) {
10985
- failures.push({ path: path7, error: schema.error });
10454
+ failures.push({ path: path6, error: schema.error });
10986
10455
  continue;
10987
10456
  }
10988
10457
  return schema;
@@ -10995,7 +10464,7 @@ async function getDefaultSchema(cwd, failures = []) {
10995
10464
  }
10996
10465
  };
10997
10466
  }
10998
- var debug3 = (0, import_debug.default)("prisma:migrate:diff");
10467
+ var debug2 = (0, import_debug.default)("prisma:migrate:diff");
10999
10468
  var helpOptions = (0, import_internals.format)(
11000
10469
  `${(0, import_chunk_SKRR5WT4.bold)("Usage")}
11001
10470
 
@@ -11269,7 +10738,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
11269
10738
  };
11270
10739
  }
11271
10740
  const adapter = await config.migrate?.adapter(process.env);
11272
- const migrate = await import_chunk_JOAFF4FT.Migrate.setup({ adapter });
10741
+ const migrate = await import_chunk_QRILN5QM.Migrate.setup({ adapter });
11273
10742
  const captureStdout = new import_chunk_VAJ4VX67.CaptureStdout();
11274
10743
  const outputPath = args["--output"];
11275
10744
  const isOutputDefined = Boolean(outputPath);
@@ -11295,7 +10764,7 @@ ${(0, import_chunk_SKRR5WT4.bold)("Examples")}
11295
10764
  captureStdout.clearCaptureText();
11296
10765
  await import_fs_jetpack.default.writeAsync(outputPath, diffOutput.join("\n"));
11297
10766
  }
11298
- debug3({ migrateDiffOutput: result });
10767
+ debug2({ migrateDiffOutput: result });
11299
10768
  if (args["--exit-code"] && result.exitCode) {
11300
10769
  process.exit(result.exitCode);
11301
10770
  }