cdk-assets 4.4.11 → 4.4.12

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.
@@ -6,11 +6,20 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- var __esm = (fn, res) => function __init() {
10
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ var __esm = (fn, res, err) => function __init() {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ } catch (e16) {
14
+ throw err = [e16], e16;
15
+ }
11
16
  };
12
17
  var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ try {
19
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ } catch (e16) {
21
+ throw mod = 0, e16;
22
+ }
14
23
  };
15
24
  var __export = (target, all) => {
16
25
  for (var name in all)
@@ -24,6 +33,7 @@ var __copyProps = (to, from, except, desc) => {
24
33
  }
25
34
  return to;
26
35
  };
36
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
37
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
38
  // If the importer is in node compatibility mode or this is not an ESM
29
39
  // file that has been converted to a CommonJS file using a Babel-
@@ -190,7 +200,7 @@ async function shell(command, options) {
190
200
  ...options,
191
201
  stdio: [options.input ? "pipe" : "ignore", "pipe", "pipe"]
192
202
  });
193
- return new Promise((resolve6, reject) => {
203
+ return new Promise((resolve5, reject) => {
194
204
  if (options.input) {
195
205
  child.stdin.write(options.input);
196
206
  child.stdin.end();
@@ -209,7 +219,7 @@ async function shell(command, options) {
209
219
  child.once("close", (code, signal) => {
210
220
  handleShellOutput(renderCommandLine(command), options, "close");
211
221
  if (code === 0) {
212
- resolve6(Buffer.concat(stdout).toString("utf-8"));
222
+ resolve5(Buffer.concat(stdout).toString("utf-8"));
213
223
  } else {
214
224
  const out = Buffer.concat(stderr).toString("utf-8").trim();
215
225
  reject(
@@ -417,6 +427,24 @@ var init_docker = __esm({
417
427
  async tag(sourceTag, targetTag) {
418
428
  await this.execute(["tag", sourceTag, targetTag]);
419
429
  }
430
+ /**
431
+ * Find a local image tagged with the given imageTag (the tag portion after the colon).
432
+ * Returns the full `repository:tag` string, or undefined if not found.
433
+ */
434
+ async findImageByTag(imageTag) {
435
+ try {
436
+ const configArgs = this.configDir ? ["--config", this.configDir] : [];
437
+ const shellEventPublisher = shellEventPublisherFromEventEmitter(this.eventEmitter);
438
+ const output = await shell(
439
+ [getDockerCmd(), ...configArgs, "images", "--format", "{{.Repository}}:{{.Tag}}", "--filter", `reference=*/*:${imageTag}`],
440
+ { shellEventPublisher, subprocessOutputDestination: "ignore" }
441
+ );
442
+ const firstLine = output.trim().split("\n")[0]?.trim();
443
+ return firstLine || void 0;
444
+ } catch {
445
+ return void 0;
446
+ }
447
+ }
420
448
  async push(options) {
421
449
  await this.execute(["push", options.tag], {
422
450
  subprocessOutputDestination: this.subprocessOutputDestination
@@ -814,14 +842,14 @@ var init_assets = __esm({
814
842
  var require_helpers = __commonJS({
815
843
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
816
844
  "use strict";
817
- var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path12, name, argument) {
818
- if (Array.isArray(path12)) {
819
- this.path = path12;
820
- this.property = path12.reduce(function(sum, item) {
845
+ var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path11, name, argument) {
846
+ if (Array.isArray(path11)) {
847
+ this.path = path11;
848
+ this.property = path11.reduce(function(sum, item) {
821
849
  return sum + makeSuffix(item);
822
850
  }, "instance");
823
- } else if (path12 !== void 0) {
824
- this.property = path12;
851
+ } else if (path11 !== void 0) {
852
+ this.property = path11;
825
853
  }
826
854
  if (message) {
827
855
  this.message = message;
@@ -916,28 +944,28 @@ var require_helpers = __commonJS({
916
944
  name: { value: "SchemaError", enumerable: false }
917
945
  }
918
946
  );
919
- var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path12, base, schemas) {
947
+ var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path11, base, schemas) {
920
948
  this.schema = schema;
921
949
  this.options = options;
922
- if (Array.isArray(path12)) {
923
- this.path = path12;
924
- this.propertyPath = path12.reduce(function(sum, item) {
950
+ if (Array.isArray(path11)) {
951
+ this.path = path11;
952
+ this.propertyPath = path11.reduce(function(sum, item) {
925
953
  return sum + makeSuffix(item);
926
954
  }, "instance");
927
955
  } else {
928
- this.propertyPath = path12;
956
+ this.propertyPath = path11;
929
957
  }
930
958
  this.base = base;
931
959
  this.schemas = schemas;
932
960
  }, "SchemaContext");
933
- SchemaContext.prototype.resolve = /* @__PURE__ */ __name(function resolve6(target) {
961
+ SchemaContext.prototype.resolve = /* @__PURE__ */ __name(function resolve5(target) {
934
962
  return (() => resolveUrl(this.base, target))();
935
963
  }, "resolve");
936
964
  SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
937
- var path12 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
965
+ var path11 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
938
966
  var id = schema.$id || schema.id;
939
967
  let base = (() => resolveUrl(this.base, id || ""))();
940
- var ctx = new SchemaContext(schema, this.options, path12, base, Object.create(this.schemas));
968
+ var ctx = new SchemaContext(schema, this.options, path11, base, Object.create(this.schemas));
941
969
  if (id && !ctx.schemas[base]) {
942
970
  ctx.schemas[base] = schema;
943
971
  }
@@ -2049,7 +2077,7 @@ var require_validator = __commonJS({
2049
2077
  }
2050
2078
  return schema;
2051
2079
  }, "superResolve");
2052
- Validator2.prototype.resolve = /* @__PURE__ */ __name(function resolve6(schema, switchSchema, ctx) {
2080
+ Validator2.prototype.resolve = /* @__PURE__ */ __name(function resolve5(schema, switchSchema, ctx) {
2053
2081
  switchSchema = ctx.resolve(switchSchema);
2054
2082
  if (ctx.schemas[switchSchema]) {
2055
2083
  return { subschema: ctx.schemas[switchSchema], switchSchema };
@@ -2314,6 +2342,18 @@ var require_semver = __commonJS({
2314
2342
  var { safeRe: re, t } = require_re();
2315
2343
  var parseOptions = require_parse_options();
2316
2344
  var { compareIdentifiers } = require_identifiers();
2345
+ var isPrereleaseIdentifier = /* @__PURE__ */ __name((prerelease, identifier) => {
2346
+ const identifiers = identifier.split(".");
2347
+ if (identifiers.length > prerelease.length) {
2348
+ return false;
2349
+ }
2350
+ for (let i16 = 0; i16 < identifiers.length; i16++) {
2351
+ if (compareIdentifiers(prerelease[i16], identifiers[i16]) !== 0) {
2352
+ return false;
2353
+ }
2354
+ }
2355
+ return true;
2356
+ }, "isPrereleaseIdentifier");
2317
2357
  var SemVer = class _SemVer {
2318
2358
  static {
2319
2359
  __name(this, "SemVer");
@@ -2563,8 +2603,9 @@ var require_semver = __commonJS({
2563
2603
  if (identifierBase === false) {
2564
2604
  prerelease = [identifier];
2565
2605
  }
2566
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
2567
- if (isNaN(this.prerelease[1])) {
2606
+ if (isPrereleaseIdentifier(this.prerelease, identifier)) {
2607
+ const prereleaseBase = this.prerelease[identifier.split(".").length];
2608
+ if (isNaN(prereleaseBase)) {
2568
2609
  this.prerelease = prerelease;
2569
2610
  }
2570
2611
  } else {
@@ -3240,6 +3281,7 @@ var require_range = __commonJS({
3240
3281
  return comp;
3241
3282
  }, "parseComparator");
3242
3283
  var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
3284
+ var invalidXRangeOrder = /* @__PURE__ */ __name((M, m10, p5) => isX(M) && !isX(m10) || isX(m10) && p5 && !isX(p5), "invalidXRangeOrder");
3243
3285
  var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
3244
3286
  return comp.trim().split(/\s+/).map((c16) => replaceTilde(c16, options)).join(" ");
3245
3287
  }, "replaceTildes");
@@ -3299,9 +3341,9 @@ var require_range = __commonJS({
3299
3341
  debug("no pr");
3300
3342
  if (M === "0") {
3301
3343
  if (m10 === "0") {
3302
- ret = `>=${M}.${m10}.${p5}${z} <${M}.${m10}.${+p5 + 1}-0`;
3344
+ ret = `>=${M}.${m10}.${p5} <${M}.${m10}.${+p5 + 1}-0`;
3303
3345
  } else {
3304
- ret = `>=${M}.${m10}.${p5}${z} <${M}.${+m10 + 1}.0-0`;
3346
+ ret = `>=${M}.${m10}.${p5} <${M}.${+m10 + 1}.0-0`;
3305
3347
  }
3306
3348
  } else {
3307
3349
  ret = `>=${M}.${m10}.${p5} <${+M + 1}.0.0-0`;
@@ -3320,6 +3362,9 @@ var require_range = __commonJS({
3320
3362
  const r16 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
3321
3363
  return comp.replace(r16, (ret, gtlt, M, m10, p5, pr) => {
3322
3364
  debug("xRange", comp, ret, gtlt, M, m10, p5, pr);
3365
+ if (invalidXRangeOrder(M, m10, p5)) {
3366
+ return comp;
3367
+ }
3323
3368
  const xM = isX(M);
3324
3369
  const xm = xM || isX(m10);
3325
3370
  const xp = xm || isX(p5);
@@ -4122,7 +4167,7 @@ var require_semver2 = __commonJS({
4122
4167
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4123
4168
  var require_cli_version = __commonJS({
4124
4169
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4125
- module2.exports = { version: "2.1126.0" };
4170
+ module2.exports = { version: "2.1127.0" };
4126
4171
  }
4127
4172
  });
4128
4173
 
@@ -7966,6 +8011,7 @@ var init_container_images = __esm({
7966
8011
  this.asset = asset;
7967
8012
  this.host = host;
7968
8013
  this.options = options;
8014
+ this.buildCompleted = false;
7969
8015
  }
7970
8016
  static {
7971
8017
  __name(this, "ContainerImageAssetHandler");
@@ -7998,6 +8044,7 @@ var init_container_images = __esm({
7998
8044
  return;
7999
8045
  }
8000
8046
  await dockerForBuilding.tag(localTagName, initOnce.imageUri);
8047
+ this.buildCompleted = true;
8001
8048
  }
8002
8049
  async isPublished() {
8003
8050
  try {
@@ -8025,6 +8072,13 @@ var init_container_images = __esm({
8025
8072
  if (this.host.aborted) {
8026
8073
  return;
8027
8074
  }
8075
+ if (!this.buildCompleted && !await dockerForPushing.exists(initOnce.imageUri)) {
8076
+ const imageTag = this.asset.destination.imageTag;
8077
+ const existing = await dockerForPushing.findImageByTag(imageTag);
8078
+ if (existing) {
8079
+ await dockerForPushing.tag(existing, initOnce.imageUri);
8080
+ }
8081
+ }
8028
8082
  this.host.emitMessage("upload" /* UPLOAD */, `Push ${initOnce.imageUri}`);
8029
8083
  await dockerForPushing.push({
8030
8084
  tag: initOnce.imageUri
@@ -8194,11 +8248,11 @@ var require_Mime = __commonJS({
8194
8248
  }
8195
8249
  }
8196
8250
  };
8197
- Mime.prototype.getType = function(path12) {
8198
- path12 = String(path12);
8199
- let last = path12.replace(/^.*[/\\]/, "").toLowerCase();
8251
+ Mime.prototype.getType = function(path11) {
8252
+ path11 = String(path11);
8253
+ let last = path11.replace(/^.*[/\\]/, "").toLowerCase();
8200
8254
  let ext = last.replace(/^.*\./, "").toLowerCase();
8201
- let hasPath = last.length < path12.length;
8255
+ let hasPath = last.length < path11.length;
8202
8256
  let hasDot = ext.length < last.length - 1;
8203
8257
  return (hasDot || !hasPath) && this._types[ext] || null;
8204
8258
  };
@@ -8233,6 +8287,28 @@ var require_mime = __commonJS({
8233
8287
  }
8234
8288
  });
8235
8289
 
8290
+ // ../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts
8291
+ async function pathExists(pathName) {
8292
+ try {
8293
+ await pfs.stat(pathName);
8294
+ return true;
8295
+ } catch (e16) {
8296
+ if (e16.code !== "ENOENT") {
8297
+ throw e16;
8298
+ }
8299
+ return false;
8300
+ }
8301
+ }
8302
+ var fs8, pfs;
8303
+ var init_fs_extra = __esm({
8304
+ "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
8305
+ "use strict";
8306
+ fs8 = __toESM(require("fs"));
8307
+ pfs = fs8.promises;
8308
+ __name(pathExists, "pathExists");
8309
+ }
8310
+ });
8311
+
8236
8312
  // ../../node_modules/fast-glob/out/utils/array.js
8237
8313
  var require_array = __commonJS({
8238
8314
  "../../node_modules/fast-glob/out/utils/array.js"(exports2) {
@@ -8312,7 +8388,7 @@ var require_path = __commonJS({
8312
8388
  Object.defineProperty(exports2, "__esModule", { value: true });
8313
8389
  exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
8314
8390
  var os5 = require("os");
8315
- var path12 = require("path");
8391
+ var path11 = require("path");
8316
8392
  var IS_WINDOWS_PLATFORM = os5.platform() === "win32";
8317
8393
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
8318
8394
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
@@ -8325,7 +8401,7 @@ var require_path = __commonJS({
8325
8401
  __name(unixify, "unixify");
8326
8402
  exports2.unixify = unixify;
8327
8403
  function makeAbsolute(cwd, filepath) {
8328
- return path12.resolve(cwd, filepath);
8404
+ return path11.resolve(cwd, filepath);
8329
8405
  }
8330
8406
  __name(makeAbsolute, "makeAbsolute");
8331
8407
  exports2.makeAbsolute = makeAbsolute;
@@ -9642,7 +9718,7 @@ var require_braces = __commonJS({
9642
9718
  var require_constants3 = __commonJS({
9643
9719
  "../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports2, module2) {
9644
9720
  "use strict";
9645
- var path12 = require("path");
9721
+ var path11 = require("path");
9646
9722
  var WIN_SLASH = "\\\\/";
9647
9723
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
9648
9724
  var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
@@ -9816,7 +9892,7 @@ var require_constants3 = __commonJS({
9816
9892
  /* | */
9817
9893
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
9818
9894
  /* \uFEFF */
9819
- SEP: path12.sep,
9895
+ SEP: path11.sep,
9820
9896
  /**
9821
9897
  * Create EXTGLOB_CHARS
9822
9898
  */
@@ -9843,7 +9919,7 @@ var require_constants3 = __commonJS({
9843
9919
  var require_utils2 = __commonJS({
9844
9920
  "../../node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports2) {
9845
9921
  "use strict";
9846
- var path12 = require("path");
9922
+ var path11 = require("path");
9847
9923
  var win32 = process.platform === "win32";
9848
9924
  var {
9849
9925
  REGEX_BACKSLASH,
@@ -9872,7 +9948,7 @@ var require_utils2 = __commonJS({
9872
9948
  if (options && typeof options.windows === "boolean") {
9873
9949
  return options.windows;
9874
9950
  }
9875
- return win32 === true || path12.sep === "\\";
9951
+ return win32 === true || path11.sep === "\\";
9876
9952
  };
9877
9953
  exports2.escapeLast = (input, char, lastIdx) => {
9878
9954
  const idx = input.lastIndexOf(char, lastIdx);
@@ -11236,7 +11312,7 @@ var require_parse3 = __commonJS({
11236
11312
  var require_picomatch = __commonJS({
11237
11313
  "../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
11238
11314
  "use strict";
11239
- var path12 = require("path");
11315
+ var path11 = require("path");
11240
11316
  var scan = require_scan2();
11241
11317
  var parse = require_parse3();
11242
11318
  var utils = require_utils2();
@@ -11321,7 +11397,7 @@ var require_picomatch = __commonJS({
11321
11397
  };
11322
11398
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
11323
11399
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
11324
- return regex.test(path12.basename(input));
11400
+ return regex.test(path11.basename(input));
11325
11401
  };
11326
11402
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
11327
11403
  picomatch.parse = (pattern, options) => {
@@ -11548,7 +11624,7 @@ var require_pattern = __commonJS({
11548
11624
  "use strict";
11549
11625
  Object.defineProperty(exports2, "__esModule", { value: true });
11550
11626
  exports2.isAbsolute = exports2.partitionAbsoluteAndRelative = exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
11551
- var path12 = require("path");
11627
+ var path11 = require("path");
11552
11628
  var globParent = require_glob_parent();
11553
11629
  var micromatch = require_micromatch();
11554
11630
  var GLOBSTAR = "**";
@@ -11658,7 +11734,7 @@ var require_pattern = __commonJS({
11658
11734
  __name(endsWithSlashGlobStar, "endsWithSlashGlobStar");
11659
11735
  exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
11660
11736
  function isAffectDepthOfReadingPattern(pattern) {
11661
- const basename = path12.basename(pattern);
11737
+ const basename = path11.basename(pattern);
11662
11738
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
11663
11739
  }
11664
11740
  __name(isAffectDepthOfReadingPattern, "isAffectDepthOfReadingPattern");
@@ -11725,7 +11801,7 @@ var require_pattern = __commonJS({
11725
11801
  __name(partitionAbsoluteAndRelative, "partitionAbsoluteAndRelative");
11726
11802
  exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
11727
11803
  function isAbsolute(pattern) {
11728
- return path12.isAbsolute(pattern);
11804
+ return path11.isAbsolute(pattern);
11729
11805
  }
11730
11806
  __name(isAbsolute, "isAbsolute");
11731
11807
  exports2.isAbsolute = isAbsolute;
@@ -11914,10 +11990,10 @@ var require_utils3 = __commonJS({
11914
11990
  exports2.array = array;
11915
11991
  var errno = require_errno();
11916
11992
  exports2.errno = errno;
11917
- var fs13 = require_fs();
11918
- exports2.fs = fs13;
11919
- var path12 = require_path();
11920
- exports2.path = path12;
11993
+ var fs12 = require_fs();
11994
+ exports2.fs = fs12;
11995
+ var path11 = require_path();
11996
+ exports2.path = path11;
11921
11997
  var pattern = require_pattern();
11922
11998
  exports2.pattern = pattern;
11923
11999
  var stream = require_stream();
@@ -12037,8 +12113,8 @@ var require_async = __commonJS({
12037
12113
  "use strict";
12038
12114
  Object.defineProperty(exports2, "__esModule", { value: true });
12039
12115
  exports2.read = void 0;
12040
- function read(path12, settings, callback) {
12041
- settings.fs.lstat(path12, (lstatError, lstat) => {
12116
+ function read(path11, settings, callback) {
12117
+ settings.fs.lstat(path11, (lstatError, lstat) => {
12042
12118
  if (lstatError !== null) {
12043
12119
  callFailureCallback(callback, lstatError);
12044
12120
  return;
@@ -12047,7 +12123,7 @@ var require_async = __commonJS({
12047
12123
  callSuccessCallback(callback, lstat);
12048
12124
  return;
12049
12125
  }
12050
- settings.fs.stat(path12, (statError, stat) => {
12126
+ settings.fs.stat(path11, (statError, stat) => {
12051
12127
  if (statError !== null) {
12052
12128
  if (settings.throwErrorOnBrokenSymbolicLink) {
12053
12129
  callFailureCallback(callback, statError);
@@ -12082,13 +12158,13 @@ var require_sync = __commonJS({
12082
12158
  "use strict";
12083
12159
  Object.defineProperty(exports2, "__esModule", { value: true });
12084
12160
  exports2.read = void 0;
12085
- function read(path12, settings) {
12086
- const lstat = settings.fs.lstatSync(path12);
12161
+ function read(path11, settings) {
12162
+ const lstat = settings.fs.lstatSync(path11);
12087
12163
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
12088
12164
  return lstat;
12089
12165
  }
12090
12166
  try {
12091
- const stat = settings.fs.statSync(path12);
12167
+ const stat = settings.fs.statSync(path11);
12092
12168
  if (settings.markSymbolicLink) {
12093
12169
  stat.isSymbolicLink = () => true;
12094
12170
  }
@@ -12111,12 +12187,12 @@ var require_fs2 = __commonJS({
12111
12187
  "use strict";
12112
12188
  Object.defineProperty(exports2, "__esModule", { value: true });
12113
12189
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
12114
- var fs13 = require("fs");
12190
+ var fs12 = require("fs");
12115
12191
  exports2.FILE_SYSTEM_ADAPTER = {
12116
- lstat: fs13.lstat,
12117
- stat: fs13.stat,
12118
- lstatSync: fs13.lstatSync,
12119
- statSync: fs13.statSync
12192
+ lstat: fs12.lstat,
12193
+ stat: fs12.stat,
12194
+ lstatSync: fs12.lstatSync,
12195
+ statSync: fs12.statSync
12120
12196
  };
12121
12197
  function createFileSystemAdapter(fsMethods) {
12122
12198
  if (fsMethods === void 0) {
@@ -12134,7 +12210,7 @@ var require_settings = __commonJS({
12134
12210
  "../../node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
12135
12211
  "use strict";
12136
12212
  Object.defineProperty(exports2, "__esModule", { value: true });
12137
- var fs13 = require_fs2();
12213
+ var fs12 = require_fs2();
12138
12214
  var Settings = class {
12139
12215
  static {
12140
12216
  __name(this, "Settings");
@@ -12142,7 +12218,7 @@ var require_settings = __commonJS({
12142
12218
  constructor(_options = {}) {
12143
12219
  this._options = _options;
12144
12220
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
12145
- this.fs = fs13.createFileSystemAdapter(this._options.fs);
12221
+ this.fs = fs12.createFileSystemAdapter(this._options.fs);
12146
12222
  this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
12147
12223
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
12148
12224
  }
@@ -12164,18 +12240,18 @@ var require_out = __commonJS({
12164
12240
  var sync = require_sync();
12165
12241
  var settings_1 = require_settings();
12166
12242
  exports2.Settings = settings_1.default;
12167
- function stat(path12, optionsOrSettingsOrCallback, callback) {
12243
+ function stat(path11, optionsOrSettingsOrCallback, callback) {
12168
12244
  if (typeof optionsOrSettingsOrCallback === "function") {
12169
- async.read(path12, getSettings(), optionsOrSettingsOrCallback);
12245
+ async.read(path11, getSettings(), optionsOrSettingsOrCallback);
12170
12246
  return;
12171
12247
  }
12172
- async.read(path12, getSettings(optionsOrSettingsOrCallback), callback);
12248
+ async.read(path11, getSettings(optionsOrSettingsOrCallback), callback);
12173
12249
  }
12174
12250
  __name(stat, "stat");
12175
12251
  exports2.stat = stat;
12176
- function statSync3(path12, optionsOrSettings) {
12252
+ function statSync3(path11, optionsOrSettings) {
12177
12253
  const settings = getSettings(optionsOrSettings);
12178
- return sync.read(path12, settings);
12254
+ return sync.read(path11, settings);
12179
12255
  }
12180
12256
  __name(statSync3, "statSync");
12181
12257
  exports2.statSync = statSync3;
@@ -12308,8 +12384,8 @@ var require_utils4 = __commonJS({
12308
12384
  "use strict";
12309
12385
  Object.defineProperty(exports2, "__esModule", { value: true });
12310
12386
  exports2.fs = void 0;
12311
- var fs13 = require_fs3();
12312
- exports2.fs = fs13;
12387
+ var fs12 = require_fs3();
12388
+ exports2.fs = fs12;
12313
12389
  }
12314
12390
  });
12315
12391
 
@@ -12405,16 +12481,16 @@ var require_async2 = __commonJS({
12405
12481
  return;
12406
12482
  }
12407
12483
  const tasks = names.map((name) => {
12408
- const path12 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
12484
+ const path11 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
12409
12485
  return (done) => {
12410
- fsStat.stat(path12, settings.fsStatSettings, (error2, stats) => {
12486
+ fsStat.stat(path11, settings.fsStatSettings, (error2, stats) => {
12411
12487
  if (error2 !== null) {
12412
12488
  done(error2);
12413
12489
  return;
12414
12490
  }
12415
12491
  const entry = {
12416
12492
  name,
12417
- path: path12,
12493
+ path: path11,
12418
12494
  dirent: utils.fs.createDirentFromStats(name, stats)
12419
12495
  };
12420
12496
  if (settings.stats) {
@@ -12514,14 +12590,14 @@ var require_fs4 = __commonJS({
12514
12590
  "use strict";
12515
12591
  Object.defineProperty(exports2, "__esModule", { value: true });
12516
12592
  exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
12517
- var fs13 = require("fs");
12593
+ var fs12 = require("fs");
12518
12594
  exports2.FILE_SYSTEM_ADAPTER = {
12519
- lstat: fs13.lstat,
12520
- stat: fs13.stat,
12521
- lstatSync: fs13.lstatSync,
12522
- statSync: fs13.statSync,
12523
- readdir: fs13.readdir,
12524
- readdirSync: fs13.readdirSync
12595
+ lstat: fs12.lstat,
12596
+ stat: fs12.stat,
12597
+ lstatSync: fs12.lstatSync,
12598
+ statSync: fs12.statSync,
12599
+ readdir: fs12.readdir,
12600
+ readdirSync: fs12.readdirSync
12525
12601
  };
12526
12602
  function createFileSystemAdapter(fsMethods) {
12527
12603
  if (fsMethods === void 0) {
@@ -12539,9 +12615,9 @@ var require_settings2 = __commonJS({
12539
12615
  "../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
12540
12616
  "use strict";
12541
12617
  Object.defineProperty(exports2, "__esModule", { value: true });
12542
- var path12 = require("path");
12618
+ var path11 = require("path");
12543
12619
  var fsStat = require_out();
12544
- var fs13 = require_fs4();
12620
+ var fs12 = require_fs4();
12545
12621
  var Settings = class {
12546
12622
  static {
12547
12623
  __name(this, "Settings");
@@ -12549,8 +12625,8 @@ var require_settings2 = __commonJS({
12549
12625
  constructor(_options = {}) {
12550
12626
  this._options = _options;
12551
12627
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
12552
- this.fs = fs13.createFileSystemAdapter(this._options.fs);
12553
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path12.sep);
12628
+ this.fs = fs12.createFileSystemAdapter(this._options.fs);
12629
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path11.sep);
12554
12630
  this.stats = this._getValue(this._options.stats, false);
12555
12631
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
12556
12632
  this.fsStatSettings = new fsStat.Settings({
@@ -12577,18 +12653,18 @@ var require_out2 = __commonJS({
12577
12653
  var sync = require_sync2();
12578
12654
  var settings_1 = require_settings2();
12579
12655
  exports2.Settings = settings_1.default;
12580
- function scandir(path12, optionsOrSettingsOrCallback, callback) {
12656
+ function scandir(path11, optionsOrSettingsOrCallback, callback) {
12581
12657
  if (typeof optionsOrSettingsOrCallback === "function") {
12582
- async.read(path12, getSettings(), optionsOrSettingsOrCallback);
12658
+ async.read(path11, getSettings(), optionsOrSettingsOrCallback);
12583
12659
  return;
12584
12660
  }
12585
- async.read(path12, getSettings(optionsOrSettingsOrCallback), callback);
12661
+ async.read(path11, getSettings(optionsOrSettingsOrCallback), callback);
12586
12662
  }
12587
12663
  __name(scandir, "scandir");
12588
12664
  exports2.scandir = scandir;
12589
- function scandirSync(path12, optionsOrSettings) {
12665
+ function scandirSync(path11, optionsOrSettings) {
12590
12666
  const settings = getSettings(optionsOrSettings);
12591
- return sync.read(path12, settings);
12667
+ return sync.read(path11, settings);
12592
12668
  }
12593
12669
  __name(scandirSync, "scandirSync");
12594
12670
  exports2.scandirSync = scandirSync;
@@ -12889,13 +12965,13 @@ var require_queue = __commonJS({
12889
12965
  queue.drained = drained;
12890
12966
  return queue;
12891
12967
  function push(value) {
12892
- var p5 = new Promise(function(resolve6, reject) {
12968
+ var p5 = new Promise(function(resolve5, reject) {
12893
12969
  pushCb(value, function(err, result) {
12894
12970
  if (err) {
12895
12971
  reject(err);
12896
12972
  return;
12897
12973
  }
12898
- resolve6(result);
12974
+ resolve5(result);
12899
12975
  });
12900
12976
  });
12901
12977
  p5.catch(noop);
@@ -12903,13 +12979,13 @@ var require_queue = __commonJS({
12903
12979
  }
12904
12980
  __name(push, "push");
12905
12981
  function unshift(value) {
12906
- var p5 = new Promise(function(resolve6, reject) {
12982
+ var p5 = new Promise(function(resolve5, reject) {
12907
12983
  unshiftCb(value, function(err, result) {
12908
12984
  if (err) {
12909
12985
  reject(err);
12910
12986
  return;
12911
12987
  }
12912
- resolve6(result);
12988
+ resolve5(result);
12913
12989
  });
12914
12990
  });
12915
12991
  p5.catch(noop);
@@ -12917,15 +12993,15 @@ var require_queue = __commonJS({
12917
12993
  }
12918
12994
  __name(unshift, "unshift");
12919
12995
  function drained() {
12920
- var p5 = new Promise(function(resolve6) {
12996
+ var p5 = new Promise(function(resolve5) {
12921
12997
  process.nextTick(function() {
12922
12998
  if (queue.idle()) {
12923
- resolve6();
12999
+ resolve5();
12924
13000
  } else {
12925
13001
  var previousDrain = queue.drain;
12926
13002
  queue.drain = function() {
12927
13003
  if (typeof previousDrain === "function") previousDrain();
12928
- resolve6();
13004
+ resolve5();
12929
13005
  queue.drain = previousDrain;
12930
13006
  };
12931
13007
  }
@@ -13285,7 +13361,7 @@ var require_settings3 = __commonJS({
13285
13361
  "../../node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
13286
13362
  "use strict";
13287
13363
  Object.defineProperty(exports2, "__esModule", { value: true });
13288
- var path12 = require("path");
13364
+ var path11 = require("path");
13289
13365
  var fsScandir = require_out2();
13290
13366
  var Settings = class {
13291
13367
  static {
@@ -13298,7 +13374,7 @@ var require_settings3 = __commonJS({
13298
13374
  this.deepFilter = this._getValue(this._options.deepFilter, null);
13299
13375
  this.entryFilter = this._getValue(this._options.entryFilter, null);
13300
13376
  this.errorFilter = this._getValue(this._options.errorFilter, null);
13301
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path12.sep);
13377
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path11.sep);
13302
13378
  this.fsScandirSettings = new fsScandir.Settings({
13303
13379
  followSymbolicLinks: this._options.followSymbolicLinks,
13304
13380
  fs: this._options.fs,
@@ -13364,7 +13440,7 @@ var require_reader2 = __commonJS({
13364
13440
  "../../node_modules/fast-glob/out/readers/reader.js"(exports2) {
13365
13441
  "use strict";
13366
13442
  Object.defineProperty(exports2, "__esModule", { value: true });
13367
- var path12 = require("path");
13443
+ var path11 = require("path");
13368
13444
  var fsStat = require_out();
13369
13445
  var utils = require_utils3();
13370
13446
  var Reader = class {
@@ -13380,7 +13456,7 @@ var require_reader2 = __commonJS({
13380
13456
  });
13381
13457
  }
13382
13458
  _getFullEntryPath(filepath) {
13383
- return path12.resolve(this._settings.cwd, filepath);
13459
+ return path11.resolve(this._settings.cwd, filepath);
13384
13460
  }
13385
13461
  _makeEntry(stats, pattern) {
13386
13462
  const entry = {
@@ -13450,9 +13526,9 @@ var require_stream3 = __commonJS({
13450
13526
  });
13451
13527
  }
13452
13528
  _getStat(filepath) {
13453
- return new Promise((resolve6, reject) => {
13529
+ return new Promise((resolve5, reject) => {
13454
13530
  this._stat(filepath, this._fsStatSettings, (error2, stats) => {
13455
- return error2 === null ? resolve6(stats) : reject(error2);
13531
+ return error2 === null ? resolve5(stats) : reject(error2);
13456
13532
  });
13457
13533
  });
13458
13534
  }
@@ -13479,10 +13555,10 @@ var require_async5 = __commonJS({
13479
13555
  this._readerStream = new stream_1.default(this._settings);
13480
13556
  }
13481
13557
  dynamic(root16, options) {
13482
- return new Promise((resolve6, reject) => {
13558
+ return new Promise((resolve5, reject) => {
13483
13559
  this._walkAsync(root16, options, (error2, entries) => {
13484
13560
  if (error2 === null) {
13485
- resolve6(entries);
13561
+ resolve5(entries);
13486
13562
  } else {
13487
13563
  reject(error2);
13488
13564
  }
@@ -13492,10 +13568,10 @@ var require_async5 = __commonJS({
13492
13568
  async static(patterns, options) {
13493
13569
  const entries = [];
13494
13570
  const stream = this._readerStream.static(patterns, options);
13495
- return new Promise((resolve6, reject) => {
13571
+ return new Promise((resolve5, reject) => {
13496
13572
  stream.once("error", reject);
13497
13573
  stream.on("data", (entry) => entries.push(entry));
13498
- stream.once("end", () => resolve6(entries));
13574
+ stream.once("end", () => resolve5(entries));
13499
13575
  });
13500
13576
  }
13501
13577
  };
@@ -13820,7 +13896,7 @@ var require_provider = __commonJS({
13820
13896
  "../../node_modules/fast-glob/out/providers/provider.js"(exports2) {
13821
13897
  "use strict";
13822
13898
  Object.defineProperty(exports2, "__esModule", { value: true });
13823
- var path12 = require("path");
13899
+ var path11 = require("path");
13824
13900
  var deep_1 = require_deep();
13825
13901
  var entry_1 = require_entry();
13826
13902
  var error_1 = require_error();
@@ -13837,7 +13913,7 @@ var require_provider = __commonJS({
13837
13913
  this.entryTransformer = new entry_2.default(this._settings);
13838
13914
  }
13839
13915
  _getRootDirectory(task) {
13840
- return path12.resolve(this._settings.cwd, task.base);
13916
+ return path11.resolve(this._settings.cwd, task.base);
13841
13917
  }
13842
13918
  _getReaderOptions(task) {
13843
13919
  const basePath = task.base === "." ? "" : task.base;
@@ -14030,16 +14106,16 @@ var require_settings4 = __commonJS({
14030
14106
  "use strict";
14031
14107
  Object.defineProperty(exports2, "__esModule", { value: true });
14032
14108
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
14033
- var fs13 = require("fs");
14109
+ var fs12 = require("fs");
14034
14110
  var os5 = require("os");
14035
14111
  var CPU_COUNT = Math.max(os5.cpus().length, 1);
14036
14112
  exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
14037
- lstat: fs13.lstat,
14038
- lstatSync: fs13.lstatSync,
14039
- stat: fs13.stat,
14040
- statSync: fs13.statSync,
14041
- readdir: fs13.readdir,
14042
- readdirSync: fs13.readdirSync
14113
+ lstat: fs12.lstat,
14114
+ lstatSync: fs12.lstatSync,
14115
+ stat: fs12.stat,
14116
+ statSync: fs12.statSync,
14117
+ readdir: fs12.readdir,
14118
+ readdirSync: fs12.readdirSync
14043
14119
  };
14044
14120
  var Settings = class {
14045
14121
  static {
@@ -14441,8 +14517,8 @@ var require_minimatch = __commonJS({
14441
14517
  return new Minimatch(pattern, options).match(p5);
14442
14518
  };
14443
14519
  module2.exports = minimatch;
14444
- var path12 = require_path2();
14445
- minimatch.sep = path12.sep;
14520
+ var path11 = require_path2();
14521
+ minimatch.sep = path11.sep;
14446
14522
  var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
14447
14523
  minimatch.GLOBSTAR = GLOBSTAR;
14448
14524
  var expand = require_brace_expansion();
@@ -15054,8 +15130,8 @@ var require_minimatch = __commonJS({
15054
15130
  if (this.empty) return f16 === "";
15055
15131
  if (f16 === "/" && partial) return true;
15056
15132
  const options = this.options;
15057
- if (path12.sep !== "/") {
15058
- f16 = f16.split(path12.sep).join("/");
15133
+ if (path11.sep !== "/") {
15134
+ f16 = f16.split(path11.sep).join("/");
15059
15135
  }
15060
15136
  f16 = f16.split(slashSplit);
15061
15137
  this.debug(this.pattern, "split", f16);
@@ -15093,20 +15169,20 @@ var require_minimatch = __commonJS({
15093
15169
  var require_readdir_glob = __commonJS({
15094
15170
  "../../node_modules/readdir-glob/index.js"(exports2, module2) {
15095
15171
  module2.exports = readdirGlob;
15096
- var fs13 = require("fs");
15172
+ var fs12 = require("fs");
15097
15173
  var { EventEmitter } = require("events");
15098
15174
  var { Minimatch } = require_minimatch();
15099
- var { resolve: resolve6 } = require("path");
15175
+ var { resolve: resolve5 } = require("path");
15100
15176
  function readdir(dir, strict) {
15101
- return new Promise((resolve7, reject) => {
15102
- fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
15177
+ return new Promise((resolve6, reject) => {
15178
+ fs12.readdir(dir, { withFileTypes: true }, (err, files) => {
15103
15179
  if (err) {
15104
15180
  switch (err.code) {
15105
15181
  case "ENOTDIR":
15106
15182
  if (strict) {
15107
15183
  reject(err);
15108
15184
  } else {
15109
- resolve7([]);
15185
+ resolve6([]);
15110
15186
  }
15111
15187
  break;
15112
15188
  case "ENOTSUP":
@@ -15116,7 +15192,7 @@ var require_readdir_glob = __commonJS({
15116
15192
  case "ENAMETOOLONG":
15117
15193
  // Filename too long
15118
15194
  case "UNKNOWN":
15119
- resolve7([]);
15195
+ resolve6([]);
15120
15196
  break;
15121
15197
  case "ELOOP":
15122
15198
  // Too many levels of symbolic links
@@ -15125,38 +15201,38 @@ var require_readdir_glob = __commonJS({
15125
15201
  break;
15126
15202
  }
15127
15203
  } else {
15128
- resolve7(files);
15204
+ resolve6(files);
15129
15205
  }
15130
15206
  });
15131
15207
  });
15132
15208
  }
15133
15209
  __name(readdir, "readdir");
15134
15210
  function stat(file, followSymlinks) {
15135
- return new Promise((resolve7, reject) => {
15136
- const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
15211
+ return new Promise((resolve6, reject) => {
15212
+ const statFunc = followSymlinks ? fs12.stat : fs12.lstat;
15137
15213
  statFunc(file, (err, stats) => {
15138
15214
  if (err) {
15139
15215
  switch (err.code) {
15140
15216
  case "ENOENT":
15141
15217
  if (followSymlinks) {
15142
- resolve7(stat(file, false));
15218
+ resolve6(stat(file, false));
15143
15219
  } else {
15144
- resolve7(null);
15220
+ resolve6(null);
15145
15221
  }
15146
15222
  break;
15147
15223
  default:
15148
- resolve7(null);
15224
+ resolve6(null);
15149
15225
  break;
15150
15226
  }
15151
15227
  } else {
15152
- resolve7(stats);
15228
+ resolve6(stats);
15153
15229
  }
15154
15230
  });
15155
15231
  });
15156
15232
  }
15157
15233
  __name(stat, "stat");
15158
- async function* exploreWalkAsync(dir, path12, followSymlinks, useStat, shouldSkip, strict) {
15159
- let files = await readdir(path12 + dir, strict);
15234
+ async function* exploreWalkAsync(dir, path11, followSymlinks, useStat, shouldSkip, strict) {
15235
+ let files = await readdir(path11 + dir, strict);
15160
15236
  for (const file of files) {
15161
15237
  let name = file.name;
15162
15238
  if (name === void 0) {
@@ -15165,7 +15241,7 @@ var require_readdir_glob = __commonJS({
15165
15241
  }
15166
15242
  const filename = dir + "/" + name;
15167
15243
  const relative = filename.slice(1);
15168
- const absolute = path12 + "/" + relative;
15244
+ const absolute = path11 + "/" + relative;
15169
15245
  let stats = null;
15170
15246
  if (useStat || followSymlinks) {
15171
15247
  stats = await stat(absolute, followSymlinks);
@@ -15179,7 +15255,7 @@ var require_readdir_glob = __commonJS({
15179
15255
  if (stats.isDirectory()) {
15180
15256
  if (!shouldSkip(relative)) {
15181
15257
  yield { relative, absolute, stats };
15182
- yield* exploreWalkAsync(filename, path12, followSymlinks, useStat, shouldSkip, false);
15258
+ yield* exploreWalkAsync(filename, path11, followSymlinks, useStat, shouldSkip, false);
15183
15259
  }
15184
15260
  } else {
15185
15261
  yield { relative, absolute, stats };
@@ -15187,8 +15263,8 @@ var require_readdir_glob = __commonJS({
15187
15263
  }
15188
15264
  }
15189
15265
  __name(exploreWalkAsync, "exploreWalkAsync");
15190
- async function* explore(path12, followSymlinks, useStat, shouldSkip) {
15191
- yield* exploreWalkAsync("", path12, followSymlinks, useStat, shouldSkip, true);
15266
+ async function* explore(path11, followSymlinks, useStat, shouldSkip) {
15267
+ yield* exploreWalkAsync("", path11, followSymlinks, useStat, shouldSkip, true);
15192
15268
  }
15193
15269
  __name(explore, "explore");
15194
15270
  function readOptions(options) {
@@ -15246,7 +15322,7 @@ var require_readdir_glob = __commonJS({
15246
15322
  (skip) => new Minimatch(skip, { dot: true })
15247
15323
  );
15248
15324
  }
15249
- this.iterator = explore(resolve6(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
15325
+ this.iterator = explore(resolve5(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
15250
15326
  this.paused = false;
15251
15327
  this.inactive = false;
15252
15328
  this.aborted = false;
@@ -15425,10 +15501,10 @@ var require_async7 = __commonJS({
15425
15501
  if (typeof args[arity - 1] === "function") {
15426
15502
  return asyncFn.apply(this, args);
15427
15503
  }
15428
- return new Promise((resolve6, reject2) => {
15504
+ return new Promise((resolve5, reject2) => {
15429
15505
  args[arity - 1] = (err, ...cbArgs) => {
15430
15506
  if (err) return reject2(err);
15431
- resolve6(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
15507
+ resolve5(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
15432
15508
  };
15433
15509
  asyncFn.apply(this, args);
15434
15510
  });
@@ -15701,14 +15777,14 @@ var require_async7 = __commonJS({
15701
15777
  var applyEachSeries = applyEach$1(mapSeries$1);
15702
15778
  const PROMISE_SYMBOL = /* @__PURE__ */ Symbol("promiseCallback");
15703
15779
  function promiseCallback() {
15704
- let resolve6, reject2;
15780
+ let resolve5, reject2;
15705
15781
  function callback(err, ...args) {
15706
15782
  if (err) return reject2(err);
15707
- resolve6(args.length > 1 ? args : args[0]);
15783
+ resolve5(args.length > 1 ? args : args[0]);
15708
15784
  }
15709
15785
  __name(callback, "callback");
15710
15786
  callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
15711
- resolve6 = res, reject2 = rej;
15787
+ resolve5 = res, reject2 = rej;
15712
15788
  });
15713
15789
  return callback;
15714
15790
  }
@@ -16077,8 +16153,8 @@ var require_async7 = __commonJS({
16077
16153
  });
16078
16154
  }
16079
16155
  if (rejectOnError || !callback) {
16080
- return new Promise((resolve6, reject2) => {
16081
- res = resolve6;
16156
+ return new Promise((resolve5, reject2) => {
16157
+ res = resolve5;
16082
16158
  rej = reject2;
16083
16159
  });
16084
16160
  }
@@ -16120,10 +16196,10 @@ var require_async7 = __commonJS({
16120
16196
  __name(_maybeDrain, "_maybeDrain");
16121
16197
  const eventMethod = /* @__PURE__ */ __name((name) => (handler) => {
16122
16198
  if (!handler) {
16123
- return new Promise((resolve6, reject2) => {
16199
+ return new Promise((resolve5, reject2) => {
16124
16200
  once2(name, (err, data2) => {
16125
16201
  if (err) return reject2(err);
16126
- resolve6(data2);
16202
+ resolve5(data2);
16127
16203
  });
16128
16204
  });
16129
16205
  }
@@ -17360,54 +17436,54 @@ var require_polyfills = __commonJS({
17360
17436
  }
17361
17437
  var chdir;
17362
17438
  module2.exports = patch;
17363
- function patch(fs13) {
17439
+ function patch(fs12) {
17364
17440
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
17365
- patchLchmod(fs13);
17366
- }
17367
- if (!fs13.lutimes) {
17368
- patchLutimes(fs13);
17369
- }
17370
- fs13.chown = chownFix(fs13.chown);
17371
- fs13.fchown = chownFix(fs13.fchown);
17372
- fs13.lchown = chownFix(fs13.lchown);
17373
- fs13.chmod = chmodFix(fs13.chmod);
17374
- fs13.fchmod = chmodFix(fs13.fchmod);
17375
- fs13.lchmod = chmodFix(fs13.lchmod);
17376
- fs13.chownSync = chownFixSync(fs13.chownSync);
17377
- fs13.fchownSync = chownFixSync(fs13.fchownSync);
17378
- fs13.lchownSync = chownFixSync(fs13.lchownSync);
17379
- fs13.chmodSync = chmodFixSync(fs13.chmodSync);
17380
- fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
17381
- fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
17382
- fs13.stat = statFix(fs13.stat);
17383
- fs13.fstat = statFix(fs13.fstat);
17384
- fs13.lstat = statFix(fs13.lstat);
17385
- fs13.statSync = statFixSync(fs13.statSync);
17386
- fs13.fstatSync = statFixSync(fs13.fstatSync);
17387
- fs13.lstatSync = statFixSync(fs13.lstatSync);
17388
- if (fs13.chmod && !fs13.lchmod) {
17389
- fs13.lchmod = function(path12, mode, cb) {
17441
+ patchLchmod(fs12);
17442
+ }
17443
+ if (!fs12.lutimes) {
17444
+ patchLutimes(fs12);
17445
+ }
17446
+ fs12.chown = chownFix(fs12.chown);
17447
+ fs12.fchown = chownFix(fs12.fchown);
17448
+ fs12.lchown = chownFix(fs12.lchown);
17449
+ fs12.chmod = chmodFix(fs12.chmod);
17450
+ fs12.fchmod = chmodFix(fs12.fchmod);
17451
+ fs12.lchmod = chmodFix(fs12.lchmod);
17452
+ fs12.chownSync = chownFixSync(fs12.chownSync);
17453
+ fs12.fchownSync = chownFixSync(fs12.fchownSync);
17454
+ fs12.lchownSync = chownFixSync(fs12.lchownSync);
17455
+ fs12.chmodSync = chmodFixSync(fs12.chmodSync);
17456
+ fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
17457
+ fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
17458
+ fs12.stat = statFix(fs12.stat);
17459
+ fs12.fstat = statFix(fs12.fstat);
17460
+ fs12.lstat = statFix(fs12.lstat);
17461
+ fs12.statSync = statFixSync(fs12.statSync);
17462
+ fs12.fstatSync = statFixSync(fs12.fstatSync);
17463
+ fs12.lstatSync = statFixSync(fs12.lstatSync);
17464
+ if (fs12.chmod && !fs12.lchmod) {
17465
+ fs12.lchmod = function(path11, mode, cb) {
17390
17466
  if (cb) process.nextTick(cb);
17391
17467
  };
17392
- fs13.lchmodSync = function() {
17468
+ fs12.lchmodSync = function() {
17393
17469
  };
17394
17470
  }
17395
- if (fs13.chown && !fs13.lchown) {
17396
- fs13.lchown = function(path12, uid, gid, cb) {
17471
+ if (fs12.chown && !fs12.lchown) {
17472
+ fs12.lchown = function(path11, uid, gid, cb) {
17397
17473
  if (cb) process.nextTick(cb);
17398
17474
  };
17399
- fs13.lchownSync = function() {
17475
+ fs12.lchownSync = function() {
17400
17476
  };
17401
17477
  }
17402
17478
  if (platform === "win32") {
17403
- fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
17479
+ fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : (function(fs$rename) {
17404
17480
  function rename(from, to, cb) {
17405
17481
  var start = Date.now();
17406
17482
  var backoff = 0;
17407
17483
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
17408
17484
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
17409
17485
  setTimeout(function() {
17410
- fs13.stat(to, function(stater, st) {
17486
+ fs12.stat(to, function(stater, st) {
17411
17487
  if (stater && stater.code === "ENOENT")
17412
17488
  fs$rename(from, to, CB);
17413
17489
  else
@@ -17424,9 +17500,9 @@ var require_polyfills = __commonJS({
17424
17500
  __name(rename, "rename");
17425
17501
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
17426
17502
  return rename;
17427
- })(fs13.rename);
17503
+ })(fs12.rename);
17428
17504
  }
17429
- fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
17505
+ fs12.read = typeof fs12.read !== "function" ? fs12.read : (function(fs$read) {
17430
17506
  function read(fd, buffer, offset, length, position, callback_) {
17431
17507
  var callback;
17432
17508
  if (callback_ && typeof callback_ === "function") {
@@ -17434,23 +17510,23 @@ var require_polyfills = __commonJS({
17434
17510
  callback = /* @__PURE__ */ __name(function(er, _2, __) {
17435
17511
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
17436
17512
  eagCounter++;
17437
- return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17513
+ return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17438
17514
  }
17439
17515
  callback_.apply(this, arguments);
17440
17516
  }, "callback");
17441
17517
  }
17442
- return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17518
+ return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17443
17519
  }
17444
17520
  __name(read, "read");
17445
17521
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
17446
17522
  return read;
17447
- })(fs13.read);
17448
- fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
17523
+ })(fs12.read);
17524
+ fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ (function(fs$readSync) {
17449
17525
  return function(fd, buffer, offset, length, position) {
17450
17526
  var eagCounter = 0;
17451
17527
  while (true) {
17452
17528
  try {
17453
- return fs$readSync.call(fs13, fd, buffer, offset, length, position);
17529
+ return fs$readSync.call(fs12, fd, buffer, offset, length, position);
17454
17530
  } catch (er) {
17455
17531
  if (er.code === "EAGAIN" && eagCounter < 10) {
17456
17532
  eagCounter++;
@@ -17460,11 +17536,11 @@ var require_polyfills = __commonJS({
17460
17536
  }
17461
17537
  }
17462
17538
  };
17463
- })(fs13.readSync);
17464
- function patchLchmod(fs14) {
17465
- fs14.lchmod = function(path12, mode, callback) {
17466
- fs14.open(
17467
- path12,
17539
+ })(fs12.readSync);
17540
+ function patchLchmod(fs13) {
17541
+ fs13.lchmod = function(path11, mode, callback) {
17542
+ fs13.open(
17543
+ path11,
17468
17544
  constants.O_WRONLY | constants.O_SYMLINK,
17469
17545
  mode,
17470
17546
  function(err, fd) {
@@ -17472,74 +17548,74 @@ var require_polyfills = __commonJS({
17472
17548
  if (callback) callback(err);
17473
17549
  return;
17474
17550
  }
17475
- fs14.fchmod(fd, mode, function(err2) {
17476
- fs14.close(fd, function(err22) {
17551
+ fs13.fchmod(fd, mode, function(err2) {
17552
+ fs13.close(fd, function(err22) {
17477
17553
  if (callback) callback(err2 || err22);
17478
17554
  });
17479
17555
  });
17480
17556
  }
17481
17557
  );
17482
17558
  };
17483
- fs14.lchmodSync = function(path12, mode) {
17484
- var fd = fs14.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
17559
+ fs13.lchmodSync = function(path11, mode) {
17560
+ var fd = fs13.openSync(path11, constants.O_WRONLY | constants.O_SYMLINK, mode);
17485
17561
  var threw = true;
17486
17562
  var ret;
17487
17563
  try {
17488
- ret = fs14.fchmodSync(fd, mode);
17564
+ ret = fs13.fchmodSync(fd, mode);
17489
17565
  threw = false;
17490
17566
  } finally {
17491
17567
  if (threw) {
17492
17568
  try {
17493
- fs14.closeSync(fd);
17569
+ fs13.closeSync(fd);
17494
17570
  } catch (er) {
17495
17571
  }
17496
17572
  } else {
17497
- fs14.closeSync(fd);
17573
+ fs13.closeSync(fd);
17498
17574
  }
17499
17575
  }
17500
17576
  return ret;
17501
17577
  };
17502
17578
  }
17503
17579
  __name(patchLchmod, "patchLchmod");
17504
- function patchLutimes(fs14) {
17505
- if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
17506
- fs14.lutimes = function(path12, at, mt, cb) {
17507
- fs14.open(path12, constants.O_SYMLINK, function(er, fd) {
17580
+ function patchLutimes(fs13) {
17581
+ if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
17582
+ fs13.lutimes = function(path11, at, mt, cb) {
17583
+ fs13.open(path11, constants.O_SYMLINK, function(er, fd) {
17508
17584
  if (er) {
17509
17585
  if (cb) cb(er);
17510
17586
  return;
17511
17587
  }
17512
- fs14.futimes(fd, at, mt, function(er2) {
17513
- fs14.close(fd, function(er22) {
17588
+ fs13.futimes(fd, at, mt, function(er2) {
17589
+ fs13.close(fd, function(er22) {
17514
17590
  if (cb) cb(er2 || er22);
17515
17591
  });
17516
17592
  });
17517
17593
  });
17518
17594
  };
17519
- fs14.lutimesSync = function(path12, at, mt) {
17520
- var fd = fs14.openSync(path12, constants.O_SYMLINK);
17595
+ fs13.lutimesSync = function(path11, at, mt) {
17596
+ var fd = fs13.openSync(path11, constants.O_SYMLINK);
17521
17597
  var ret;
17522
17598
  var threw = true;
17523
17599
  try {
17524
- ret = fs14.futimesSync(fd, at, mt);
17600
+ ret = fs13.futimesSync(fd, at, mt);
17525
17601
  threw = false;
17526
17602
  } finally {
17527
17603
  if (threw) {
17528
17604
  try {
17529
- fs14.closeSync(fd);
17605
+ fs13.closeSync(fd);
17530
17606
  } catch (er) {
17531
17607
  }
17532
17608
  } else {
17533
- fs14.closeSync(fd);
17609
+ fs13.closeSync(fd);
17534
17610
  }
17535
17611
  }
17536
17612
  return ret;
17537
17613
  };
17538
- } else if (fs14.futimes) {
17539
- fs14.lutimes = function(_a5, _b, _c16, cb) {
17614
+ } else if (fs13.futimes) {
17615
+ fs13.lutimes = function(_a5, _b, _c16, cb) {
17540
17616
  if (cb) process.nextTick(cb);
17541
17617
  };
17542
- fs14.lutimesSync = function() {
17618
+ fs13.lutimesSync = function() {
17543
17619
  };
17544
17620
  }
17545
17621
  }
@@ -17547,7 +17623,7 @@ var require_polyfills = __commonJS({
17547
17623
  function chmodFix(orig) {
17548
17624
  if (!orig) return orig;
17549
17625
  return function(target, mode, cb) {
17550
- return orig.call(fs13, target, mode, function(er) {
17626
+ return orig.call(fs12, target, mode, function(er) {
17551
17627
  if (chownErOk(er)) er = null;
17552
17628
  if (cb) cb.apply(this, arguments);
17553
17629
  });
@@ -17558,7 +17634,7 @@ var require_polyfills = __commonJS({
17558
17634
  if (!orig) return orig;
17559
17635
  return function(target, mode) {
17560
17636
  try {
17561
- return orig.call(fs13, target, mode);
17637
+ return orig.call(fs12, target, mode);
17562
17638
  } catch (er) {
17563
17639
  if (!chownErOk(er)) throw er;
17564
17640
  }
@@ -17568,7 +17644,7 @@ var require_polyfills = __commonJS({
17568
17644
  function chownFix(orig) {
17569
17645
  if (!orig) return orig;
17570
17646
  return function(target, uid, gid, cb) {
17571
- return orig.call(fs13, target, uid, gid, function(er) {
17647
+ return orig.call(fs12, target, uid, gid, function(er) {
17572
17648
  if (chownErOk(er)) er = null;
17573
17649
  if (cb) cb.apply(this, arguments);
17574
17650
  });
@@ -17579,7 +17655,7 @@ var require_polyfills = __commonJS({
17579
17655
  if (!orig) return orig;
17580
17656
  return function(target, uid, gid) {
17581
17657
  try {
17582
- return orig.call(fs13, target, uid, gid);
17658
+ return orig.call(fs12, target, uid, gid);
17583
17659
  } catch (er) {
17584
17660
  if (!chownErOk(er)) throw er;
17585
17661
  }
@@ -17601,14 +17677,14 @@ var require_polyfills = __commonJS({
17601
17677
  if (cb) cb.apply(this, arguments);
17602
17678
  }
17603
17679
  __name(callback, "callback");
17604
- return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
17680
+ return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
17605
17681
  };
17606
17682
  }
17607
17683
  __name(statFix, "statFix");
17608
17684
  function statFixSync(orig) {
17609
17685
  if (!orig) return orig;
17610
17686
  return function(target, options) {
17611
- var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
17687
+ var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
17612
17688
  if (stats) {
17613
17689
  if (stats.uid < 0) stats.uid += 4294967296;
17614
17690
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -17640,16 +17716,16 @@ var require_legacy_streams = __commonJS({
17640
17716
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
17641
17717
  var Stream = require("stream").Stream;
17642
17718
  module2.exports = legacy;
17643
- function legacy(fs13) {
17719
+ function legacy(fs12) {
17644
17720
  return {
17645
17721
  ReadStream,
17646
17722
  WriteStream
17647
17723
  };
17648
- function ReadStream(path12, options) {
17649
- if (!(this instanceof ReadStream)) return new ReadStream(path12, options);
17724
+ function ReadStream(path11, options) {
17725
+ if (!(this instanceof ReadStream)) return new ReadStream(path11, options);
17650
17726
  Stream.call(this);
17651
17727
  var self2 = this;
17652
- this.path = path12;
17728
+ this.path = path11;
17653
17729
  this.fd = null;
17654
17730
  this.readable = true;
17655
17731
  this.paused = false;
@@ -17683,7 +17759,7 @@ var require_legacy_streams = __commonJS({
17683
17759
  });
17684
17760
  return;
17685
17761
  }
17686
- fs13.open(this.path, this.flags, this.mode, function(err, fd) {
17762
+ fs12.open(this.path, this.flags, this.mode, function(err, fd) {
17687
17763
  if (err) {
17688
17764
  self2.emit("error", err);
17689
17765
  self2.readable = false;
@@ -17695,10 +17771,10 @@ var require_legacy_streams = __commonJS({
17695
17771
  });
17696
17772
  }
17697
17773
  __name(ReadStream, "ReadStream");
17698
- function WriteStream(path12, options) {
17699
- if (!(this instanceof WriteStream)) return new WriteStream(path12, options);
17774
+ function WriteStream(path11, options) {
17775
+ if (!(this instanceof WriteStream)) return new WriteStream(path11, options);
17700
17776
  Stream.call(this);
17701
- this.path = path12;
17777
+ this.path = path11;
17702
17778
  this.fd = null;
17703
17779
  this.writable = true;
17704
17780
  this.flags = "w";
@@ -17723,7 +17799,7 @@ var require_legacy_streams = __commonJS({
17723
17799
  this.busy = false;
17724
17800
  this._queue = [];
17725
17801
  if (this.fd === null) {
17726
- this._open = fs13.open;
17802
+ this._open = fs12.open;
17727
17803
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
17728
17804
  this.flush();
17729
17805
  }
@@ -17761,7 +17837,7 @@ var require_clone = __commonJS({
17761
17837
  // ../../node_modules/graceful-fs/graceful-fs.js
17762
17838
  var require_graceful_fs = __commonJS({
17763
17839
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
17764
- var fs13 = require("fs");
17840
+ var fs12 = require("fs");
17765
17841
  var polyfills = require_polyfills();
17766
17842
  var legacy = require_legacy_streams();
17767
17843
  var clone = require_clone();
@@ -17795,12 +17871,12 @@ var require_graceful_fs = __commonJS({
17795
17871
  m10 = "GFS4: " + m10.split(/\n/).join("\nGFS4: ");
17796
17872
  console.error(m10);
17797
17873
  }, "debug");
17798
- if (!fs13[gracefulQueue]) {
17874
+ if (!fs12[gracefulQueue]) {
17799
17875
  queue = global[gracefulQueue] || [];
17800
- publishQueue(fs13, queue);
17801
- fs13.close = (function(fs$close) {
17876
+ publishQueue(fs12, queue);
17877
+ fs12.close = (function(fs$close) {
17802
17878
  function close(fd, cb) {
17803
- return fs$close.call(fs13, fd, function(err) {
17879
+ return fs$close.call(fs12, fd, function(err) {
17804
17880
  if (!err) {
17805
17881
  resetQueue();
17806
17882
  }
@@ -17813,10 +17889,10 @@ var require_graceful_fs = __commonJS({
17813
17889
  value: fs$close
17814
17890
  });
17815
17891
  return close;
17816
- })(fs13.close);
17817
- fs13.closeSync = (function(fs$closeSync) {
17892
+ })(fs12.close);
17893
+ fs12.closeSync = (function(fs$closeSync) {
17818
17894
  function closeSync(fd) {
17819
- fs$closeSync.apply(fs13, arguments);
17895
+ fs$closeSync.apply(fs12, arguments);
17820
17896
  resetQueue();
17821
17897
  }
17822
17898
  __name(closeSync, "closeSync");
@@ -17824,38 +17900,38 @@ var require_graceful_fs = __commonJS({
17824
17900
  value: fs$closeSync
17825
17901
  });
17826
17902
  return closeSync;
17827
- })(fs13.closeSync);
17903
+ })(fs12.closeSync);
17828
17904
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
17829
17905
  process.on("exit", function() {
17830
- debug(fs13[gracefulQueue]);
17831
- require("assert").equal(fs13[gracefulQueue].length, 0);
17906
+ debug(fs12[gracefulQueue]);
17907
+ require("assert").equal(fs12[gracefulQueue].length, 0);
17832
17908
  });
17833
17909
  }
17834
17910
  }
17835
17911
  var queue;
17836
17912
  if (!global[gracefulQueue]) {
17837
- publishQueue(global, fs13[gracefulQueue]);
17838
- }
17839
- module2.exports = patch(clone(fs13));
17840
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
17841
- module2.exports = patch(fs13);
17842
- fs13.__patched = true;
17843
- }
17844
- function patch(fs14) {
17845
- polyfills(fs14);
17846
- fs14.gracefulify = patch;
17847
- fs14.createReadStream = createReadStream2;
17848
- fs14.createWriteStream = createWriteStream2;
17849
- var fs$readFile = fs14.readFile;
17850
- fs14.readFile = readFile2;
17851
- function readFile2(path12, options, cb) {
17913
+ publishQueue(global, fs12[gracefulQueue]);
17914
+ }
17915
+ module2.exports = patch(clone(fs12));
17916
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
17917
+ module2.exports = patch(fs12);
17918
+ fs12.__patched = true;
17919
+ }
17920
+ function patch(fs13) {
17921
+ polyfills(fs13);
17922
+ fs13.gracefulify = patch;
17923
+ fs13.createReadStream = createReadStream2;
17924
+ fs13.createWriteStream = createWriteStream;
17925
+ var fs$readFile = fs13.readFile;
17926
+ fs13.readFile = readFile2;
17927
+ function readFile2(path11, options, cb) {
17852
17928
  if (typeof options === "function")
17853
17929
  cb = options, options = null;
17854
- return go$readFile(path12, options, cb);
17855
- function go$readFile(path13, options2, cb2, startTime) {
17856
- return fs$readFile(path13, options2, function(err) {
17930
+ return go$readFile(path11, options, cb);
17931
+ function go$readFile(path12, options2, cb2, startTime) {
17932
+ return fs$readFile(path12, options2, function(err) {
17857
17933
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17858
- enqueue([go$readFile, [path13, options2, cb2], err, startTime || Date.now(), Date.now()]);
17934
+ enqueue([go$readFile, [path12, options2, cb2], err, startTime || Date.now(), Date.now()]);
17859
17935
  else {
17860
17936
  if (typeof cb2 === "function")
17861
17937
  cb2.apply(this, arguments);
@@ -17865,16 +17941,16 @@ var require_graceful_fs = __commonJS({
17865
17941
  __name(go$readFile, "go$readFile");
17866
17942
  }
17867
17943
  __name(readFile2, "readFile");
17868
- var fs$writeFile = fs14.writeFile;
17869
- fs14.writeFile = writeFile;
17870
- function writeFile(path12, data2, options, cb) {
17944
+ var fs$writeFile = fs13.writeFile;
17945
+ fs13.writeFile = writeFile;
17946
+ function writeFile(path11, data2, options, cb) {
17871
17947
  if (typeof options === "function")
17872
17948
  cb = options, options = null;
17873
- return go$writeFile(path12, data2, options, cb);
17874
- function go$writeFile(path13, data3, options2, cb2, startTime) {
17875
- return fs$writeFile(path13, data3, options2, function(err) {
17949
+ return go$writeFile(path11, data2, options, cb);
17950
+ function go$writeFile(path12, data3, options2, cb2, startTime) {
17951
+ return fs$writeFile(path12, data3, options2, function(err) {
17876
17952
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17877
- enqueue([go$writeFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
17953
+ enqueue([go$writeFile, [path12, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
17878
17954
  else {
17879
17955
  if (typeof cb2 === "function")
17880
17956
  cb2.apply(this, arguments);
@@ -17884,17 +17960,17 @@ var require_graceful_fs = __commonJS({
17884
17960
  __name(go$writeFile, "go$writeFile");
17885
17961
  }
17886
17962
  __name(writeFile, "writeFile");
17887
- var fs$appendFile = fs14.appendFile;
17963
+ var fs$appendFile = fs13.appendFile;
17888
17964
  if (fs$appendFile)
17889
- fs14.appendFile = appendFile;
17890
- function appendFile(path12, data2, options, cb) {
17965
+ fs13.appendFile = appendFile;
17966
+ function appendFile(path11, data2, options, cb) {
17891
17967
  if (typeof options === "function")
17892
17968
  cb = options, options = null;
17893
- return go$appendFile(path12, data2, options, cb);
17894
- function go$appendFile(path13, data3, options2, cb2, startTime) {
17895
- return fs$appendFile(path13, data3, options2, function(err) {
17969
+ return go$appendFile(path11, data2, options, cb);
17970
+ function go$appendFile(path12, data3, options2, cb2, startTime) {
17971
+ return fs$appendFile(path12, data3, options2, function(err) {
17896
17972
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17897
- enqueue([go$appendFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
17973
+ enqueue([go$appendFile, [path12, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
17898
17974
  else {
17899
17975
  if (typeof cb2 === "function")
17900
17976
  cb2.apply(this, arguments);
@@ -17904,9 +17980,9 @@ var require_graceful_fs = __commonJS({
17904
17980
  __name(go$appendFile, "go$appendFile");
17905
17981
  }
17906
17982
  __name(appendFile, "appendFile");
17907
- var fs$copyFile = fs14.copyFile;
17983
+ var fs$copyFile = fs13.copyFile;
17908
17984
  if (fs$copyFile)
17909
- fs14.copyFile = copyFile;
17985
+ fs13.copyFile = copyFile;
17910
17986
  function copyFile(src, dest, flags, cb) {
17911
17987
  if (typeof flags === "function") {
17912
17988
  cb = flags;
@@ -17926,34 +18002,34 @@ var require_graceful_fs = __commonJS({
17926
18002
  __name(go$copyFile, "go$copyFile");
17927
18003
  }
17928
18004
  __name(copyFile, "copyFile");
17929
- var fs$readdir = fs14.readdir;
17930
- fs14.readdir = readdir;
18005
+ var fs$readdir = fs13.readdir;
18006
+ fs13.readdir = readdir;
17931
18007
  var noReaddirOptionVersions = /^v[0-5]\./;
17932
- function readdir(path12, options, cb) {
18008
+ function readdir(path11, options, cb) {
17933
18009
  if (typeof options === "function")
17934
18010
  cb = options, options = null;
17935
- var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
17936
- return fs$readdir(path13, fs$readdirCallback(
17937
- path13,
18011
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path12, options2, cb2, startTime) {
18012
+ return fs$readdir(path12, fs$readdirCallback(
18013
+ path12,
17938
18014
  options2,
17939
18015
  cb2,
17940
18016
  startTime
17941
18017
  ));
17942
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
17943
- return fs$readdir(path13, options2, fs$readdirCallback(
17944
- path13,
18018
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path12, options2, cb2, startTime) {
18019
+ return fs$readdir(path12, options2, fs$readdirCallback(
18020
+ path12,
17945
18021
  options2,
17946
18022
  cb2,
17947
18023
  startTime
17948
18024
  ));
17949
18025
  }, "go$readdir");
17950
- return go$readdir(path12, options, cb);
17951
- function fs$readdirCallback(path13, options2, cb2, startTime) {
18026
+ return go$readdir(path11, options, cb);
18027
+ function fs$readdirCallback(path12, options2, cb2, startTime) {
17952
18028
  return function(err, files) {
17953
18029
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
17954
18030
  enqueue([
17955
18031
  go$readdir,
17956
- [path13, options2, cb2],
18032
+ [path12, options2, cb2],
17957
18033
  err,
17958
18034
  startTime || Date.now(),
17959
18035
  Date.now()
@@ -17970,21 +18046,21 @@ var require_graceful_fs = __commonJS({
17970
18046
  }
17971
18047
  __name(readdir, "readdir");
17972
18048
  if (process.version.substr(0, 4) === "v0.8") {
17973
- var legStreams = legacy(fs14);
18049
+ var legStreams = legacy(fs13);
17974
18050
  ReadStream = legStreams.ReadStream;
17975
18051
  WriteStream = legStreams.WriteStream;
17976
18052
  }
17977
- var fs$ReadStream = fs14.ReadStream;
18053
+ var fs$ReadStream = fs13.ReadStream;
17978
18054
  if (fs$ReadStream) {
17979
18055
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
17980
18056
  ReadStream.prototype.open = ReadStream$open;
17981
18057
  }
17982
- var fs$WriteStream = fs14.WriteStream;
18058
+ var fs$WriteStream = fs13.WriteStream;
17983
18059
  if (fs$WriteStream) {
17984
18060
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
17985
18061
  WriteStream.prototype.open = WriteStream$open;
17986
18062
  }
17987
- Object.defineProperty(fs14, "ReadStream", {
18063
+ Object.defineProperty(fs13, "ReadStream", {
17988
18064
  get: /* @__PURE__ */ __name(function() {
17989
18065
  return ReadStream;
17990
18066
  }, "get"),
@@ -17994,7 +18070,7 @@ var require_graceful_fs = __commonJS({
17994
18070
  enumerable: true,
17995
18071
  configurable: true
17996
18072
  });
17997
- Object.defineProperty(fs14, "WriteStream", {
18073
+ Object.defineProperty(fs13, "WriteStream", {
17998
18074
  get: /* @__PURE__ */ __name(function() {
17999
18075
  return WriteStream;
18000
18076
  }, "get"),
@@ -18005,7 +18081,7 @@ var require_graceful_fs = __commonJS({
18005
18081
  configurable: true
18006
18082
  });
18007
18083
  var FileReadStream = ReadStream;
18008
- Object.defineProperty(fs14, "FileReadStream", {
18084
+ Object.defineProperty(fs13, "FileReadStream", {
18009
18085
  get: /* @__PURE__ */ __name(function() {
18010
18086
  return FileReadStream;
18011
18087
  }, "get"),
@@ -18016,7 +18092,7 @@ var require_graceful_fs = __commonJS({
18016
18092
  configurable: true
18017
18093
  });
18018
18094
  var FileWriteStream = WriteStream;
18019
- Object.defineProperty(fs14, "FileWriteStream", {
18095
+ Object.defineProperty(fs13, "FileWriteStream", {
18020
18096
  get: /* @__PURE__ */ __name(function() {
18021
18097
  return FileWriteStream;
18022
18098
  }, "get"),
@@ -18026,7 +18102,7 @@ var require_graceful_fs = __commonJS({
18026
18102
  enumerable: true,
18027
18103
  configurable: true
18028
18104
  });
18029
- function ReadStream(path12, options) {
18105
+ function ReadStream(path11, options) {
18030
18106
  if (this instanceof ReadStream)
18031
18107
  return fs$ReadStream.apply(this, arguments), this;
18032
18108
  else
@@ -18048,7 +18124,7 @@ var require_graceful_fs = __commonJS({
18048
18124
  });
18049
18125
  }
18050
18126
  __name(ReadStream$open, "ReadStream$open");
18051
- function WriteStream(path12, options) {
18127
+ function WriteStream(path11, options) {
18052
18128
  if (this instanceof WriteStream)
18053
18129
  return fs$WriteStream.apply(this, arguments), this;
18054
18130
  else
@@ -18068,24 +18144,24 @@ var require_graceful_fs = __commonJS({
18068
18144
  });
18069
18145
  }
18070
18146
  __name(WriteStream$open, "WriteStream$open");
18071
- function createReadStream2(path12, options) {
18072
- return new fs14.ReadStream(path12, options);
18147
+ function createReadStream2(path11, options) {
18148
+ return new fs13.ReadStream(path11, options);
18073
18149
  }
18074
18150
  __name(createReadStream2, "createReadStream");
18075
- function createWriteStream2(path12, options) {
18076
- return new fs14.WriteStream(path12, options);
18151
+ function createWriteStream(path11, options) {
18152
+ return new fs13.WriteStream(path11, options);
18077
18153
  }
18078
- __name(createWriteStream2, "createWriteStream");
18079
- var fs$open = fs14.open;
18080
- fs14.open = open;
18081
- function open(path12, flags, mode, cb) {
18154
+ __name(createWriteStream, "createWriteStream");
18155
+ var fs$open = fs13.open;
18156
+ fs13.open = open;
18157
+ function open(path11, flags, mode, cb) {
18082
18158
  if (typeof mode === "function")
18083
18159
  cb = mode, mode = null;
18084
- return go$open(path12, flags, mode, cb);
18085
- function go$open(path13, flags2, mode2, cb2, startTime) {
18086
- return fs$open(path13, flags2, mode2, function(err, fd) {
18160
+ return go$open(path11, flags, mode, cb);
18161
+ function go$open(path12, flags2, mode2, cb2, startTime) {
18162
+ return fs$open(path12, flags2, mode2, function(err, fd) {
18087
18163
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18088
- enqueue([go$open, [path13, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18164
+ enqueue([go$open, [path12, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18089
18165
  else {
18090
18166
  if (typeof cb2 === "function")
18091
18167
  cb2.apply(this, arguments);
@@ -18095,22 +18171,22 @@ var require_graceful_fs = __commonJS({
18095
18171
  __name(go$open, "go$open");
18096
18172
  }
18097
18173
  __name(open, "open");
18098
- return fs14;
18174
+ return fs13;
18099
18175
  }
18100
18176
  __name(patch, "patch");
18101
18177
  function enqueue(elem) {
18102
18178
  debug("ENQUEUE", elem[0].name, elem[1]);
18103
- fs13[gracefulQueue].push(elem);
18179
+ fs12[gracefulQueue].push(elem);
18104
18180
  retry();
18105
18181
  }
18106
18182
  __name(enqueue, "enqueue");
18107
18183
  var retryTimer;
18108
18184
  function resetQueue() {
18109
18185
  var now = Date.now();
18110
- for (var i16 = 0; i16 < fs13[gracefulQueue].length; ++i16) {
18111
- if (fs13[gracefulQueue][i16].length > 2) {
18112
- fs13[gracefulQueue][i16][3] = now;
18113
- fs13[gracefulQueue][i16][4] = now;
18186
+ for (var i16 = 0; i16 < fs12[gracefulQueue].length; ++i16) {
18187
+ if (fs12[gracefulQueue][i16].length > 2) {
18188
+ fs12[gracefulQueue][i16][3] = now;
18189
+ fs12[gracefulQueue][i16][4] = now;
18114
18190
  }
18115
18191
  }
18116
18192
  retry();
@@ -18119,9 +18195,9 @@ var require_graceful_fs = __commonJS({
18119
18195
  function retry() {
18120
18196
  clearTimeout(retryTimer);
18121
18197
  retryTimer = void 0;
18122
- if (fs13[gracefulQueue].length === 0)
18198
+ if (fs12[gracefulQueue].length === 0)
18123
18199
  return;
18124
- var elem = fs13[gracefulQueue].shift();
18200
+ var elem = fs12[gracefulQueue].shift();
18125
18201
  var fn = elem[0];
18126
18202
  var args = elem[1];
18127
18203
  var err = elem[2];
@@ -18143,7 +18219,7 @@ var require_graceful_fs = __commonJS({
18143
18219
  debug("RETRY", fn.name, args);
18144
18220
  fn.apply(null, args.concat([startTime]));
18145
18221
  } else {
18146
- fs13[gracefulQueue].push(elem);
18222
+ fs12[gracefulQueue].push(elem);
18147
18223
  }
18148
18224
  }
18149
18225
  if (retryTimer === void 0) {
@@ -20305,22 +20381,22 @@ var require_lazystream = __commonJS({
20305
20381
  // ../../node_modules/normalize-path/index.js
20306
20382
  var require_normalize_path = __commonJS({
20307
20383
  "../../node_modules/normalize-path/index.js"(exports2, module2) {
20308
- module2.exports = function(path12, stripTrailing) {
20309
- if (typeof path12 !== "string") {
20384
+ module2.exports = function(path11, stripTrailing) {
20385
+ if (typeof path11 !== "string") {
20310
20386
  throw new TypeError("expected path to be a string");
20311
20387
  }
20312
- if (path12 === "\\" || path12 === "/") return "/";
20313
- var len = path12.length;
20314
- if (len <= 1) return path12;
20388
+ if (path11 === "\\" || path11 === "/") return "/";
20389
+ var len = path11.length;
20390
+ if (len <= 1) return path11;
20315
20391
  var prefix = "";
20316
- if (len > 4 && path12[3] === "\\") {
20317
- var ch = path12[2];
20318
- if ((ch === "?" || ch === ".") && path12.slice(0, 2) === "\\\\") {
20319
- path12 = path12.slice(2);
20392
+ if (len > 4 && path11[3] === "\\") {
20393
+ var ch = path11[2];
20394
+ if ((ch === "?" || ch === ".") && path11.slice(0, 2) === "\\\\") {
20395
+ path11 = path11.slice(2);
20320
20396
  prefix = "//";
20321
20397
  }
20322
20398
  }
20323
- var segs = path12.split(/[/\\]+/);
20399
+ var segs = path11.split(/[/\\]+/);
20324
20400
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
20325
20401
  segs.pop();
20326
20402
  }
@@ -22340,25 +22416,25 @@ var require_util2 = __commonJS({
22340
22416
  };
22341
22417
  },
22342
22418
  createDeferredPromise: /* @__PURE__ */ __name(function() {
22343
- let resolve6;
22419
+ let resolve5;
22344
22420
  let reject;
22345
22421
  const promise = new Promise((res, rej) => {
22346
- resolve6 = res;
22422
+ resolve5 = res;
22347
22423
  reject = rej;
22348
22424
  });
22349
22425
  return {
22350
22426
  promise,
22351
- resolve: resolve6,
22427
+ resolve: resolve5,
22352
22428
  reject
22353
22429
  };
22354
22430
  }, "createDeferredPromise"),
22355
22431
  promisify(fn) {
22356
- return new Promise((resolve6, reject) => {
22432
+ return new Promise((resolve5, reject) => {
22357
22433
  fn((err, ...args) => {
22358
22434
  if (err) {
22359
22435
  return reject(err);
22360
22436
  }
22361
- return resolve6(...args);
22437
+ return resolve5(...args);
22362
22438
  });
22363
22439
  });
22364
22440
  },
@@ -23194,7 +23270,7 @@ var require_end_of_stream = __commonJS({
23194
23270
  validateBoolean(opts.cleanup, "cleanup");
23195
23271
  autoCleanup = opts.cleanup;
23196
23272
  }
23197
- return new Promise2((resolve6, reject) => {
23273
+ return new Promise2((resolve5, reject) => {
23198
23274
  const cleanup = eos(stream, opts, (err) => {
23199
23275
  if (autoCleanup) {
23200
23276
  cleanup();
@@ -23202,7 +23278,7 @@ var require_end_of_stream = __commonJS({
23202
23278
  if (err) {
23203
23279
  reject(err);
23204
23280
  } else {
23205
- resolve6();
23281
+ resolve5();
23206
23282
  }
23207
23283
  });
23208
23284
  });
@@ -24424,7 +24500,7 @@ var require_readable2 = __commonJS({
24424
24500
  error2 = this.readableEnded ? null : new AbortError();
24425
24501
  this.destroy(error2);
24426
24502
  }
24427
- return new Promise2((resolve6, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve6(null)));
24503
+ return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
24428
24504
  };
24429
24505
  Readable4.prototype.push = function(chunk, encoding) {
24430
24506
  return readableAddChunk(this, chunk, encoding, false);
@@ -24993,12 +25069,12 @@ var require_readable2 = __commonJS({
24993
25069
  __name(streamToAsyncIterator, "streamToAsyncIterator");
24994
25070
  async function* createAsyncIterator(stream, options) {
24995
25071
  let callback = nop;
24996
- function next(resolve6) {
25072
+ function next(resolve5) {
24997
25073
  if (this === stream) {
24998
25074
  callback();
24999
25075
  callback = nop;
25000
25076
  } else {
25001
- callback = resolve6;
25077
+ callback = resolve5;
25002
25078
  }
25003
25079
  }
25004
25080
  __name(next, "next");
@@ -26080,7 +26156,7 @@ var require_duplexify = __commonJS({
26080
26156
  );
26081
26157
  }, "duplexify");
26082
26158
  function fromAsyncGen(fn) {
26083
- let { promise, resolve: resolve6 } = createDeferredPromise();
26159
+ let { promise, resolve: resolve5 } = createDeferredPromise();
26084
26160
  const ac = new AbortController2();
26085
26161
  const signal = ac.signal;
26086
26162
  const value = fn(
@@ -26095,7 +26171,7 @@ var require_duplexify = __commonJS({
26095
26171
  throw new AbortError(void 0, {
26096
26172
  cause: signal.reason
26097
26173
  });
26098
- ({ promise, resolve: resolve6 } = createDeferredPromise());
26174
+ ({ promise, resolve: resolve5 } = createDeferredPromise());
26099
26175
  yield chunk;
26100
26176
  }
26101
26177
  })(),
@@ -26106,8 +26182,8 @@ var require_duplexify = __commonJS({
26106
26182
  return {
26107
26183
  value,
26108
26184
  write(chunk, encoding, cb) {
26109
- const _resolve = resolve6;
26110
- resolve6 = null;
26185
+ const _resolve = resolve5;
26186
+ resolve5 = null;
26111
26187
  _resolve({
26112
26188
  chunk,
26113
26189
  done: false,
@@ -26115,8 +26191,8 @@ var require_duplexify = __commonJS({
26115
26191
  });
26116
26192
  },
26117
26193
  final(cb) {
26118
- const _resolve = resolve6;
26119
- resolve6 = null;
26194
+ const _resolve = resolve5;
26195
+ resolve5 = null;
26120
26196
  _resolve({
26121
26197
  done: true,
26122
26198
  cb
@@ -26580,7 +26656,7 @@ var require_pipeline = __commonJS({
26580
26656
  callback();
26581
26657
  }
26582
26658
  }, "resume");
26583
- const wait = /* @__PURE__ */ __name(() => new Promise2((resolve6, reject) => {
26659
+ const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
26584
26660
  if (error2) {
26585
26661
  reject(error2);
26586
26662
  } else {
@@ -26588,7 +26664,7 @@ var require_pipeline = __commonJS({
26588
26664
  if (error2) {
26589
26665
  reject(error2);
26590
26666
  } else {
26591
- resolve6();
26667
+ resolve5();
26592
26668
  }
26593
26669
  }, "onresolve");
26594
26670
  }
@@ -27247,8 +27323,8 @@ var require_operators = __commonJS({
27247
27323
  next = null;
27248
27324
  }
27249
27325
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
27250
- await new Promise2((resolve6) => {
27251
- resume = resolve6;
27326
+ await new Promise2((resolve5) => {
27327
+ resume = resolve5;
27252
27328
  });
27253
27329
  }
27254
27330
  }
@@ -27283,8 +27359,8 @@ var require_operators = __commonJS({
27283
27359
  queue.shift();
27284
27360
  maybeResume();
27285
27361
  }
27286
- await new Promise2((resolve6) => {
27287
- next = resolve6;
27362
+ await new Promise2((resolve5) => {
27363
+ next = resolve5;
27288
27364
  });
27289
27365
  }
27290
27366
  } finally {
@@ -27560,7 +27636,7 @@ var require_promises = __commonJS({
27560
27636
  var { finished } = require_end_of_stream();
27561
27637
  require_stream6();
27562
27638
  function pipeline(...streams) {
27563
- return new Promise2((resolve6, reject) => {
27639
+ return new Promise2((resolve5, reject) => {
27564
27640
  let signal;
27565
27641
  let end;
27566
27642
  const lastArg = streams[streams.length - 1];
@@ -27575,7 +27651,7 @@ var require_promises = __commonJS({
27575
27651
  if (err) {
27576
27652
  reject(err);
27577
27653
  } else {
27578
- resolve6(value);
27654
+ resolve5(value);
27579
27655
  }
27580
27656
  },
27581
27657
  {
@@ -29703,11 +29779,11 @@ var require_commonjs = __commonJS({
29703
29779
  return (f16) => f16.length === len && f16 !== "." && f16 !== "..";
29704
29780
  }, "qmarksTestNoExtDot");
29705
29781
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
29706
- var path12 = {
29782
+ var path11 = {
29707
29783
  win32: { sep: "\\" },
29708
29784
  posix: { sep: "/" }
29709
29785
  };
29710
- exports2.sep = defaultPlatform === "win32" ? path12.win32.sep : path12.posix.sep;
29786
+ exports2.sep = defaultPlatform === "win32" ? path11.win32.sep : path11.posix.sep;
29711
29787
  exports2.minimatch.sep = exports2.sep;
29712
29788
  exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
29713
29789
  exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
@@ -32601,10 +32677,10 @@ var require_commonjs3 = __commonJS({
32601
32677
  * Return a void Promise that resolves once the stream ends.
32602
32678
  */
32603
32679
  async promise() {
32604
- return new Promise((resolve6, reject) => {
32680
+ return new Promise((resolve5, reject) => {
32605
32681
  this.on(DESTROYED, () => reject(new Error("stream destroyed")));
32606
32682
  this.on("error", (er) => reject(er));
32607
- this.on("end", () => resolve6());
32683
+ this.on("end", () => resolve5());
32608
32684
  });
32609
32685
  }
32610
32686
  /**
@@ -32628,7 +32704,7 @@ var require_commonjs3 = __commonJS({
32628
32704
  return Promise.resolve({ done: false, value: res });
32629
32705
  if (this[EOF])
32630
32706
  return stop();
32631
- let resolve6;
32707
+ let resolve5;
32632
32708
  let reject;
32633
32709
  const onerr = /* @__PURE__ */ __name((er) => {
32634
32710
  this.off("data", ondata);
@@ -32642,19 +32718,19 @@ var require_commonjs3 = __commonJS({
32642
32718
  this.off("end", onend);
32643
32719
  this.off(DESTROYED, ondestroy);
32644
32720
  this.pause();
32645
- resolve6({ value, done: !!this[EOF] });
32721
+ resolve5({ value, done: !!this[EOF] });
32646
32722
  }, "ondata");
32647
32723
  const onend = /* @__PURE__ */ __name(() => {
32648
32724
  this.off("error", onerr);
32649
32725
  this.off("data", ondata);
32650
32726
  this.off(DESTROYED, ondestroy);
32651
32727
  stop();
32652
- resolve6({ done: true, value: void 0 });
32728
+ resolve5({ done: true, value: void 0 });
32653
32729
  }, "onend");
32654
32730
  const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
32655
32731
  return new Promise((res2, rej) => {
32656
32732
  reject = rej;
32657
- resolve6 = res2;
32733
+ resolve5 = res2;
32658
32734
  this.once(DESTROYED, ondestroy);
32659
32735
  this.once("error", onerr);
32660
32736
  this.once("end", onend);
@@ -33070,12 +33146,12 @@ var require_commonjs4 = __commonJS({
33070
33146
  /**
33071
33147
  * Get the Path object referenced by the string path, resolved from this Path
33072
33148
  */
33073
- resolve(path12) {
33074
- if (!path12) {
33149
+ resolve(path11) {
33150
+ if (!path11) {
33075
33151
  return this;
33076
33152
  }
33077
- const rootPath = this.getRootString(path12);
33078
- const dir = path12.substring(rootPath.length);
33153
+ const rootPath = this.getRootString(path11);
33154
+ const dir = path11.substring(rootPath.length);
33079
33155
  const dirParts = dir.split(this.splitSep);
33080
33156
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
33081
33157
  return result;
@@ -33679,9 +33755,9 @@ var require_commonjs4 = __commonJS({
33679
33755
  if (this.#asyncReaddirInFlight) {
33680
33756
  await this.#asyncReaddirInFlight;
33681
33757
  } else {
33682
- let resolve6 = /* @__PURE__ */ __name(() => {
33758
+ let resolve5 = /* @__PURE__ */ __name(() => {
33683
33759
  }, "resolve");
33684
- this.#asyncReaddirInFlight = new Promise((res) => resolve6 = res);
33760
+ this.#asyncReaddirInFlight = new Promise((res) => resolve5 = res);
33685
33761
  try {
33686
33762
  for (const e16 of await this.#fs.promises.readdir(fullpath, {
33687
33763
  withFileTypes: true
@@ -33694,7 +33770,7 @@ var require_commonjs4 = __commonJS({
33694
33770
  children.provisional = 0;
33695
33771
  }
33696
33772
  this.#asyncReaddirInFlight = void 0;
33697
- resolve6();
33773
+ resolve5();
33698
33774
  }
33699
33775
  return children.slice(0, children.provisional);
33700
33776
  }
@@ -33831,8 +33907,8 @@ var require_commonjs4 = __commonJS({
33831
33907
  /**
33832
33908
  * @internal
33833
33909
  */
33834
- getRootString(path12) {
33835
- return node_path_1.win32.parse(path12).root;
33910
+ getRootString(path11) {
33911
+ return node_path_1.win32.parse(path11).root;
33836
33912
  }
33837
33913
  /**
33838
33914
  * @internal
@@ -33882,8 +33958,8 @@ var require_commonjs4 = __commonJS({
33882
33958
  /**
33883
33959
  * @internal
33884
33960
  */
33885
- getRootString(path12) {
33886
- return path12.startsWith("/") ? "/" : "";
33961
+ getRootString(path11) {
33962
+ return path11.startsWith("/") ? "/" : "";
33887
33963
  }
33888
33964
  /**
33889
33965
  * @internal
@@ -33936,8 +34012,8 @@ var require_commonjs4 = __commonJS({
33936
34012
  *
33937
34013
  * @internal
33938
34014
  */
33939
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
33940
- this.#fs = fsFromOption(fs13);
34015
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS } = {}) {
34016
+ this.#fs = fsFromOption(fs12);
33941
34017
  if (cwd instanceof URL || cwd.startsWith("file://")) {
33942
34018
  cwd = (0, node_url_1.fileURLToPath)(cwd);
33943
34019
  }
@@ -33976,11 +34052,11 @@ var require_commonjs4 = __commonJS({
33976
34052
  /**
33977
34053
  * Get the depth of a provided path, string, or the cwd
33978
34054
  */
33979
- depth(path12 = this.cwd) {
33980
- if (typeof path12 === "string") {
33981
- path12 = this.cwd.resolve(path12);
34055
+ depth(path11 = this.cwd) {
34056
+ if (typeof path11 === "string") {
34057
+ path11 = this.cwd.resolve(path11);
33982
34058
  }
33983
- return path12.depth();
34059
+ return path11.depth();
33984
34060
  }
33985
34061
  /**
33986
34062
  * Return the cache of child entries. Exposed so subclasses can create
@@ -34467,9 +34543,9 @@ var require_commonjs4 = __commonJS({
34467
34543
  process2();
34468
34544
  return results;
34469
34545
  }
34470
- chdir(path12 = this.cwd) {
34546
+ chdir(path11 = this.cwd) {
34471
34547
  const oldCwd = this.cwd;
34472
- this.cwd = typeof path12 === "string" ? this.cwd.resolve(path12) : path12;
34548
+ this.cwd = typeof path11 === "string" ? this.cwd.resolve(path11) : path11;
34473
34549
  this.cwd[setAsCwd](oldCwd);
34474
34550
  }
34475
34551
  };
@@ -34499,8 +34575,8 @@ var require_commonjs4 = __commonJS({
34499
34575
  /**
34500
34576
  * @internal
34501
34577
  */
34502
- newRoot(fs13) {
34503
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34578
+ newRoot(fs12) {
34579
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34504
34580
  }
34505
34581
  /**
34506
34582
  * Return true if the provided path string is an absolute path
@@ -34532,8 +34608,8 @@ var require_commonjs4 = __commonJS({
34532
34608
  /**
34533
34609
  * @internal
34534
34610
  */
34535
- newRoot(fs13) {
34536
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34611
+ newRoot(fs12) {
34612
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34537
34613
  }
34538
34614
  /**
34539
34615
  * Return true if the provided path string is an absolute path
@@ -34878,8 +34954,8 @@ var require_processor = __commonJS({
34878
34954
  }
34879
34955
  // match, absolute, ifdir
34880
34956
  entries() {
34881
- return [...this.store.entries()].map(([path12, n5]) => [
34882
- path12,
34957
+ return [...this.store.entries()].map(([path11, n5]) => [
34958
+ path11,
34883
34959
  !!(n5 & 2),
34884
34960
  !!(n5 & 1)
34885
34961
  ]);
@@ -35106,9 +35182,9 @@ var require_walker = __commonJS({
35106
35182
  signal;
35107
35183
  maxDepth;
35108
35184
  includeChildMatches;
35109
- constructor(patterns, path12, opts) {
35185
+ constructor(patterns, path11, opts) {
35110
35186
  this.patterns = patterns;
35111
- this.path = path12;
35187
+ this.path = path11;
35112
35188
  this.opts = opts;
35113
35189
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
35114
35190
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -35127,11 +35203,11 @@ var require_walker = __commonJS({
35127
35203
  });
35128
35204
  }
35129
35205
  }
35130
- #ignored(path12) {
35131
- return this.seen.has(path12) || !!this.#ignore?.ignored?.(path12);
35206
+ #ignored(path11) {
35207
+ return this.seen.has(path11) || !!this.#ignore?.ignored?.(path11);
35132
35208
  }
35133
- #childrenIgnored(path12) {
35134
- return !!this.#ignore?.childrenIgnored?.(path12);
35209
+ #childrenIgnored(path11) {
35210
+ return !!this.#ignore?.childrenIgnored?.(path11);
35135
35211
  }
35136
35212
  // backpressure mechanism
35137
35213
  pause() {
@@ -35350,8 +35426,8 @@ var require_walker = __commonJS({
35350
35426
  __name(this, "GlobWalker");
35351
35427
  }
35352
35428
  matches = /* @__PURE__ */ new Set();
35353
- constructor(patterns, path12, opts) {
35354
- super(patterns, path12, opts);
35429
+ constructor(patterns, path11, opts) {
35430
+ super(patterns, path11, opts);
35355
35431
  }
35356
35432
  matchEmit(e16) {
35357
35433
  this.matches.add(e16);
@@ -35392,8 +35468,8 @@ var require_walker = __commonJS({
35392
35468
  __name(this, "GlobStream");
35393
35469
  }
35394
35470
  results;
35395
- constructor(patterns, path12, opts) {
35396
- super(patterns, path12, opts);
35471
+ constructor(patterns, path11, opts) {
35472
+ super(patterns, path11, opts);
35397
35473
  this.results = new minipass_1.Minipass({
35398
35474
  signal: this.signal,
35399
35475
  objectMode: true
@@ -35674,7 +35750,7 @@ var require_commonjs5 = __commonJS({
35674
35750
  exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
35675
35751
  exports2.globStreamSync = globStreamSync;
35676
35752
  exports2.globStream = globStream;
35677
- exports2.globSync = globSync2;
35753
+ exports2.globSync = globSync;
35678
35754
  exports2.globIterateSync = globIterateSync;
35679
35755
  exports2.globIterate = globIterate;
35680
35756
  var minimatch_1 = require_commonjs();
@@ -35707,10 +35783,10 @@ var require_commonjs5 = __commonJS({
35707
35783
  return new glob_js_1.Glob(pattern, options).stream();
35708
35784
  }
35709
35785
  __name(globStream, "globStream");
35710
- function globSync2(pattern, options = {}) {
35786
+ function globSync(pattern, options = {}) {
35711
35787
  return new glob_js_1.Glob(pattern, options).walkSync();
35712
35788
  }
35713
- __name(globSync2, "globSync");
35789
+ __name(globSync, "globSync");
35714
35790
  async function glob_(pattern, options = {}) {
35715
35791
  return new glob_js_1.Glob(pattern, options).walk();
35716
35792
  }
@@ -35729,13 +35805,13 @@ var require_commonjs5 = __commonJS({
35729
35805
  exports2.iterate = Object.assign(globIterate, {
35730
35806
  sync: globIterateSync
35731
35807
  });
35732
- exports2.sync = Object.assign(globSync2, {
35808
+ exports2.sync = Object.assign(globSync, {
35733
35809
  stream: globStreamSync,
35734
35810
  iterate: globIterateSync
35735
35811
  });
35736
35812
  exports2.glob = Object.assign(glob_, {
35737
35813
  glob: glob_,
35738
- globSync: globSync2,
35814
+ globSync,
35739
35815
  sync: exports2.sync,
35740
35816
  globStream,
35741
35817
  stream: exports2.stream,
@@ -35757,8 +35833,8 @@ var require_commonjs5 = __commonJS({
35757
35833
  // ../../node_modules/archiver-utils/file.js
35758
35834
  var require_file = __commonJS({
35759
35835
  "../../node_modules/archiver-utils/file.js"(exports2, module2) {
35760
- var fs13 = require_graceful_fs();
35761
- var path12 = require("path");
35836
+ var fs12 = require_graceful_fs();
35837
+ var path11 = require("path");
35762
35838
  var flatten2 = require_flatten();
35763
35839
  var difference = require_difference();
35764
35840
  var union = require_union();
@@ -35783,8 +35859,8 @@ var require_file = __commonJS({
35783
35859
  return result;
35784
35860
  }, "processPatterns");
35785
35861
  file.exists = function() {
35786
- var filepath = path12.join.apply(path12, arguments);
35787
- return fs13.existsSync(filepath);
35862
+ var filepath = path11.join.apply(path11, arguments);
35863
+ return fs12.existsSync(filepath);
35788
35864
  };
35789
35865
  file.expand = function(...args) {
35790
35866
  var options = isPlainObject(args[0]) ? args.shift() : {};
@@ -35797,12 +35873,12 @@ var require_file = __commonJS({
35797
35873
  });
35798
35874
  if (options.filter) {
35799
35875
  matches = matches.filter(function(filepath) {
35800
- filepath = path12.join(options.cwd || "", filepath);
35876
+ filepath = path11.join(options.cwd || "", filepath);
35801
35877
  try {
35802
35878
  if (typeof options.filter === "function") {
35803
35879
  return options.filter(filepath);
35804
35880
  } else {
35805
- return fs13.statSync(filepath)[options.filter]();
35881
+ return fs12.statSync(filepath)[options.filter]();
35806
35882
  }
35807
35883
  } catch (e16) {
35808
35884
  return false;
@@ -35814,7 +35890,7 @@ var require_file = __commonJS({
35814
35890
  file.expandMapping = function(patterns, destBase, options) {
35815
35891
  options = Object.assign({
35816
35892
  rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
35817
- return path12.join(destBase2 || "", destPath);
35893
+ return path11.join(destBase2 || "", destPath);
35818
35894
  }, "rename")
35819
35895
  }, options);
35820
35896
  var files = [];
@@ -35822,14 +35898,14 @@ var require_file = __commonJS({
35822
35898
  file.expand(options, patterns).forEach(function(src) {
35823
35899
  var destPath = src;
35824
35900
  if (options.flatten) {
35825
- destPath = path12.basename(destPath);
35901
+ destPath = path11.basename(destPath);
35826
35902
  }
35827
35903
  if (options.ext) {
35828
35904
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
35829
35905
  }
35830
35906
  var dest = options.rename(destBase, destPath, options);
35831
35907
  if (options.cwd) {
35832
- src = path12.join(options.cwd, src);
35908
+ src = path11.join(options.cwd, src);
35833
35909
  }
35834
35910
  dest = dest.replace(pathSeparatorRe, "/");
35835
35911
  src = src.replace(pathSeparatorRe, "/");
@@ -35910,8 +35986,8 @@ var require_file = __commonJS({
35910
35986
  // ../../node_modules/archiver-utils/index.js
35911
35987
  var require_archiver_utils = __commonJS({
35912
35988
  "../../node_modules/archiver-utils/index.js"(exports2, module2) {
35913
- var fs13 = require_graceful_fs();
35914
- var path12 = require("path");
35989
+ var fs12 = require_graceful_fs();
35990
+ var path11 = require("path");
35915
35991
  var isStream = require_is_stream();
35916
35992
  var lazystream = require_lazystream();
35917
35993
  var normalizePath = require_normalize_path();
@@ -35959,7 +36035,7 @@ var require_archiver_utils = __commonJS({
35959
36035
  };
35960
36036
  utils.lazyReadStream = function(filepath) {
35961
36037
  return new lazystream.Readable(function() {
35962
- return fs13.createReadStream(filepath);
36038
+ return fs12.createReadStream(filepath);
35963
36039
  });
35964
36040
  };
35965
36041
  utils.normalizeInputSource = function(source) {
@@ -35987,7 +36063,7 @@ var require_archiver_utils = __commonJS({
35987
36063
  callback = base;
35988
36064
  base = dirpath;
35989
36065
  }
35990
- fs13.readdir(dirpath, function(err, list2) {
36066
+ fs12.readdir(dirpath, function(err, list2) {
35991
36067
  var i16 = 0;
35992
36068
  var file;
35993
36069
  var filepath;
@@ -35999,11 +36075,11 @@ var require_archiver_utils = __commonJS({
35999
36075
  if (!file) {
36000
36076
  return callback(null, results);
36001
36077
  }
36002
- filepath = path12.join(dirpath, file);
36003
- fs13.stat(filepath, function(err2, stats) {
36078
+ filepath = path11.join(dirpath, file);
36079
+ fs12.stat(filepath, function(err2, stats) {
36004
36080
  results.push({
36005
36081
  path: filepath,
36006
- relative: path12.relative(base, filepath).replace(/\\/g, "/"),
36082
+ relative: path11.relative(base, filepath).replace(/\\/g, "/"),
36007
36083
  stats
36008
36084
  });
36009
36085
  if (stats && stats.isDirectory()) {
@@ -36609,25 +36685,25 @@ var require_util3 = __commonJS({
36609
36685
  };
36610
36686
  },
36611
36687
  createDeferredPromise: /* @__PURE__ */ __name(function() {
36612
- let resolve6;
36688
+ let resolve5;
36613
36689
  let reject;
36614
36690
  const promise = new Promise((res, rej) => {
36615
- resolve6 = res;
36691
+ resolve5 = res;
36616
36692
  reject = rej;
36617
36693
  });
36618
36694
  return {
36619
36695
  promise,
36620
- resolve: resolve6,
36696
+ resolve: resolve5,
36621
36697
  reject
36622
36698
  };
36623
36699
  }, "createDeferredPromise"),
36624
36700
  promisify(fn) {
36625
- return new Promise((resolve6, reject) => {
36701
+ return new Promise((resolve5, reject) => {
36626
36702
  fn((err, ...args) => {
36627
36703
  if (err) {
36628
36704
  return reject(err);
36629
36705
  }
36630
- return resolve6(...args);
36706
+ return resolve5(...args);
36631
36707
  });
36632
36708
  });
36633
36709
  },
@@ -37456,7 +37532,7 @@ var require_end_of_stream2 = __commonJS({
37456
37532
  validateBoolean(opts.cleanup, "cleanup");
37457
37533
  autoCleanup = opts.cleanup;
37458
37534
  }
37459
- return new Promise2((resolve6, reject) => {
37535
+ return new Promise2((resolve5, reject) => {
37460
37536
  const cleanup = eos(stream, opts, (err) => {
37461
37537
  if (autoCleanup) {
37462
37538
  cleanup();
@@ -37464,7 +37540,7 @@ var require_end_of_stream2 = __commonJS({
37464
37540
  if (err) {
37465
37541
  reject(err);
37466
37542
  } else {
37467
- resolve6();
37543
+ resolve5();
37468
37544
  }
37469
37545
  });
37470
37546
  });
@@ -38373,7 +38449,7 @@ var require_readable3 = __commonJS({
38373
38449
  error2 = this.readableEnded ? null : new AbortError();
38374
38450
  this.destroy(error2);
38375
38451
  }
38376
- return new Promise2((resolve6, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve6(null)));
38452
+ return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
38377
38453
  };
38378
38454
  Readable4.prototype.push = function(chunk, encoding) {
38379
38455
  return readableAddChunk(this, chunk, encoding, false);
@@ -38942,12 +39018,12 @@ var require_readable3 = __commonJS({
38942
39018
  __name(streamToAsyncIterator, "streamToAsyncIterator");
38943
39019
  async function* createAsyncIterator(stream, options) {
38944
39020
  let callback = nop;
38945
- function next(resolve6) {
39021
+ function next(resolve5) {
38946
39022
  if (this === stream) {
38947
39023
  callback();
38948
39024
  callback = nop;
38949
39025
  } else {
38950
- callback = resolve6;
39026
+ callback = resolve5;
38951
39027
  }
38952
39028
  }
38953
39029
  __name(next, "next");
@@ -40029,7 +40105,7 @@ var require_duplexify2 = __commonJS({
40029
40105
  );
40030
40106
  }, "duplexify");
40031
40107
  function fromAsyncGen(fn) {
40032
- let { promise, resolve: resolve6 } = createDeferredPromise();
40108
+ let { promise, resolve: resolve5 } = createDeferredPromise();
40033
40109
  const ac = new AbortController2();
40034
40110
  const signal = ac.signal;
40035
40111
  const value = fn(
@@ -40044,7 +40120,7 @@ var require_duplexify2 = __commonJS({
40044
40120
  throw new AbortError(void 0, {
40045
40121
  cause: signal.reason
40046
40122
  });
40047
- ({ promise, resolve: resolve6 } = createDeferredPromise());
40123
+ ({ promise, resolve: resolve5 } = createDeferredPromise());
40048
40124
  yield chunk;
40049
40125
  }
40050
40126
  })(),
@@ -40055,8 +40131,8 @@ var require_duplexify2 = __commonJS({
40055
40131
  return {
40056
40132
  value,
40057
40133
  write(chunk, encoding, cb) {
40058
- const _resolve = resolve6;
40059
- resolve6 = null;
40134
+ const _resolve = resolve5;
40135
+ resolve5 = null;
40060
40136
  _resolve({
40061
40137
  chunk,
40062
40138
  done: false,
@@ -40064,8 +40140,8 @@ var require_duplexify2 = __commonJS({
40064
40140
  });
40065
40141
  },
40066
40142
  final(cb) {
40067
- const _resolve = resolve6;
40068
- resolve6 = null;
40143
+ const _resolve = resolve5;
40144
+ resolve5 = null;
40069
40145
  _resolve({
40070
40146
  done: true,
40071
40147
  cb
@@ -40529,7 +40605,7 @@ var require_pipeline2 = __commonJS({
40529
40605
  callback();
40530
40606
  }
40531
40607
  }, "resume");
40532
- const wait = /* @__PURE__ */ __name(() => new Promise2((resolve6, reject) => {
40608
+ const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
40533
40609
  if (error2) {
40534
40610
  reject(error2);
40535
40611
  } else {
@@ -40537,7 +40613,7 @@ var require_pipeline2 = __commonJS({
40537
40613
  if (error2) {
40538
40614
  reject(error2);
40539
40615
  } else {
40540
- resolve6();
40616
+ resolve5();
40541
40617
  }
40542
40618
  }, "onresolve");
40543
40619
  }
@@ -41196,8 +41272,8 @@ var require_operators2 = __commonJS({
41196
41272
  next = null;
41197
41273
  }
41198
41274
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
41199
- await new Promise2((resolve6) => {
41200
- resume = resolve6;
41275
+ await new Promise2((resolve5) => {
41276
+ resume = resolve5;
41201
41277
  });
41202
41278
  }
41203
41279
  }
@@ -41232,8 +41308,8 @@ var require_operators2 = __commonJS({
41232
41308
  queue.shift();
41233
41309
  maybeResume();
41234
41310
  }
41235
- await new Promise2((resolve6) => {
41236
- next = resolve6;
41311
+ await new Promise2((resolve5) => {
41312
+ next = resolve5;
41237
41313
  });
41238
41314
  }
41239
41315
  } finally {
@@ -41509,7 +41585,7 @@ var require_promises2 = __commonJS({
41509
41585
  var { finished } = require_end_of_stream2();
41510
41586
  require_stream7();
41511
41587
  function pipeline(...streams) {
41512
- return new Promise2((resolve6, reject) => {
41588
+ return new Promise2((resolve5, reject) => {
41513
41589
  let signal;
41514
41590
  let end;
41515
41591
  const lastArg = streams[streams.length - 1];
@@ -41524,7 +41600,7 @@ var require_promises2 = __commonJS({
41524
41600
  if (err) {
41525
41601
  reject(err);
41526
41602
  } else {
41527
- resolve6(value);
41603
+ resolve5(value);
41528
41604
  }
41529
41605
  },
41530
41606
  {
@@ -41730,10 +41806,10 @@ var require_ours2 = __commonJS({
41730
41806
  // ../../node_modules/archiver/lib/core.js
41731
41807
  var require_core = __commonJS({
41732
41808
  "../../node_modules/archiver/lib/core.js"(exports2, module2) {
41733
- var fs13 = require("fs");
41809
+ var fs12 = require("fs");
41734
41810
  var glob = require_readdir_glob();
41735
41811
  var async = require_async7();
41736
- var path12 = require("path");
41812
+ var path11 = require("path");
41737
41813
  var util = require_archiver_utils();
41738
41814
  var inherits = require("util").inherits;
41739
41815
  var ArchiverError = require_error2();
@@ -41794,7 +41870,7 @@ var require_core = __commonJS({
41794
41870
  data2.sourcePath = filepath;
41795
41871
  task.data = data2;
41796
41872
  this._entriesCount++;
41797
- if (data2.stats && data2.stats instanceof fs13.Stats) {
41873
+ if (data2.stats && data2.stats instanceof fs12.Stats) {
41798
41874
  task = this._updateQueueTaskWithStats(task, data2.stats);
41799
41875
  if (task) {
41800
41876
  if (data2.stats.size) {
@@ -41965,7 +42041,7 @@ var require_core = __commonJS({
41965
42041
  callback();
41966
42042
  return;
41967
42043
  }
41968
- fs13.lstat(task.filepath, function(err, stats) {
42044
+ fs12.lstat(task.filepath, function(err, stats) {
41969
42045
  if (this._state.aborted) {
41970
42046
  setImmediate(callback);
41971
42047
  return;
@@ -42008,10 +42084,10 @@ var require_core = __commonJS({
42008
42084
  task.data.sourceType = "buffer";
42009
42085
  task.source = Buffer.concat([]);
42010
42086
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
42011
- var linkPath = fs13.readlinkSync(task.filepath);
42012
- var dirName = path12.dirname(task.filepath);
42087
+ var linkPath = fs12.readlinkSync(task.filepath);
42088
+ var dirName = path11.dirname(task.filepath);
42013
42089
  task.data.type = "symlink";
42014
- task.data.linkname = path12.relative(dirName, path12.resolve(dirName, linkPath));
42090
+ task.data.linkname = path11.relative(dirName, path11.resolve(dirName, linkPath));
42015
42091
  task.data.sourceType = "buffer";
42016
42092
  task.source = Buffer.concat([]);
42017
42093
  } else {
@@ -42191,11 +42267,11 @@ var require_core = __commonJS({
42191
42267
  this._finalize();
42192
42268
  }
42193
42269
  var self2 = this;
42194
- return new Promise(function(resolve6, reject) {
42270
+ return new Promise(function(resolve5, reject) {
42195
42271
  var errored;
42196
42272
  self2._module.on("end", function() {
42197
42273
  if (!errored) {
42198
- resolve6();
42274
+ resolve5();
42199
42275
  }
42200
42276
  });
42201
42277
  self2._module.on("error", function(err) {
@@ -43270,25 +43346,25 @@ var require_util5 = __commonJS({
43270
43346
  };
43271
43347
  },
43272
43348
  createDeferredPromise: /* @__PURE__ */ __name(function() {
43273
- let resolve6;
43349
+ let resolve5;
43274
43350
  let reject;
43275
43351
  const promise = new Promise((res, rej) => {
43276
- resolve6 = res;
43352
+ resolve5 = res;
43277
43353
  reject = rej;
43278
43354
  });
43279
43355
  return {
43280
43356
  promise,
43281
- resolve: resolve6,
43357
+ resolve: resolve5,
43282
43358
  reject
43283
43359
  };
43284
43360
  }, "createDeferredPromise"),
43285
43361
  promisify(fn) {
43286
- return new Promise((resolve6, reject) => {
43362
+ return new Promise((resolve5, reject) => {
43287
43363
  fn((err, ...args) => {
43288
43364
  if (err) {
43289
43365
  return reject(err);
43290
43366
  }
43291
- return resolve6(...args);
43367
+ return resolve5(...args);
43292
43368
  });
43293
43369
  });
43294
43370
  },
@@ -44117,7 +44193,7 @@ var require_end_of_stream3 = __commonJS({
44117
44193
  validateBoolean(opts.cleanup, "cleanup");
44118
44194
  autoCleanup = opts.cleanup;
44119
44195
  }
44120
- return new Promise2((resolve6, reject) => {
44196
+ return new Promise2((resolve5, reject) => {
44121
44197
  const cleanup = eos(stream, opts, (err) => {
44122
44198
  if (autoCleanup) {
44123
44199
  cleanup();
@@ -44125,7 +44201,7 @@ var require_end_of_stream3 = __commonJS({
44125
44201
  if (err) {
44126
44202
  reject(err);
44127
44203
  } else {
44128
- resolve6();
44204
+ resolve5();
44129
44205
  }
44130
44206
  });
44131
44207
  });
@@ -45034,7 +45110,7 @@ var require_readable4 = __commonJS({
45034
45110
  error2 = this.readableEnded ? null : new AbortError();
45035
45111
  this.destroy(error2);
45036
45112
  }
45037
- return new Promise2((resolve6, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve6(null)));
45113
+ return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
45038
45114
  };
45039
45115
  Readable4.prototype.push = function(chunk, encoding) {
45040
45116
  return readableAddChunk(this, chunk, encoding, false);
@@ -45603,12 +45679,12 @@ var require_readable4 = __commonJS({
45603
45679
  __name(streamToAsyncIterator, "streamToAsyncIterator");
45604
45680
  async function* createAsyncIterator(stream, options) {
45605
45681
  let callback = nop;
45606
- function next(resolve6) {
45682
+ function next(resolve5) {
45607
45683
  if (this === stream) {
45608
45684
  callback();
45609
45685
  callback = nop;
45610
45686
  } else {
45611
- callback = resolve6;
45687
+ callback = resolve5;
45612
45688
  }
45613
45689
  }
45614
45690
  __name(next, "next");
@@ -46690,7 +46766,7 @@ var require_duplexify3 = __commonJS({
46690
46766
  );
46691
46767
  }, "duplexify");
46692
46768
  function fromAsyncGen(fn) {
46693
- let { promise, resolve: resolve6 } = createDeferredPromise();
46769
+ let { promise, resolve: resolve5 } = createDeferredPromise();
46694
46770
  const ac = new AbortController2();
46695
46771
  const signal = ac.signal;
46696
46772
  const value = fn(
@@ -46705,7 +46781,7 @@ var require_duplexify3 = __commonJS({
46705
46781
  throw new AbortError(void 0, {
46706
46782
  cause: signal.reason
46707
46783
  });
46708
- ({ promise, resolve: resolve6 } = createDeferredPromise());
46784
+ ({ promise, resolve: resolve5 } = createDeferredPromise());
46709
46785
  yield chunk;
46710
46786
  }
46711
46787
  })(),
@@ -46716,8 +46792,8 @@ var require_duplexify3 = __commonJS({
46716
46792
  return {
46717
46793
  value,
46718
46794
  write(chunk, encoding, cb) {
46719
- const _resolve = resolve6;
46720
- resolve6 = null;
46795
+ const _resolve = resolve5;
46796
+ resolve5 = null;
46721
46797
  _resolve({
46722
46798
  chunk,
46723
46799
  done: false,
@@ -46725,8 +46801,8 @@ var require_duplexify3 = __commonJS({
46725
46801
  });
46726
46802
  },
46727
46803
  final(cb) {
46728
- const _resolve = resolve6;
46729
- resolve6 = null;
46804
+ const _resolve = resolve5;
46805
+ resolve5 = null;
46730
46806
  _resolve({
46731
46807
  done: true,
46732
46808
  cb
@@ -47190,7 +47266,7 @@ var require_pipeline3 = __commonJS({
47190
47266
  callback();
47191
47267
  }
47192
47268
  }, "resume");
47193
- const wait = /* @__PURE__ */ __name(() => new Promise2((resolve6, reject) => {
47269
+ const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
47194
47270
  if (error2) {
47195
47271
  reject(error2);
47196
47272
  } else {
@@ -47198,7 +47274,7 @@ var require_pipeline3 = __commonJS({
47198
47274
  if (error2) {
47199
47275
  reject(error2);
47200
47276
  } else {
47201
- resolve6();
47277
+ resolve5();
47202
47278
  }
47203
47279
  }, "onresolve");
47204
47280
  }
@@ -47857,8 +47933,8 @@ var require_operators3 = __commonJS({
47857
47933
  next = null;
47858
47934
  }
47859
47935
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
47860
- await new Promise2((resolve6) => {
47861
- resume = resolve6;
47936
+ await new Promise2((resolve5) => {
47937
+ resume = resolve5;
47862
47938
  });
47863
47939
  }
47864
47940
  }
@@ -47893,8 +47969,8 @@ var require_operators3 = __commonJS({
47893
47969
  queue.shift();
47894
47970
  maybeResume();
47895
47971
  }
47896
- await new Promise2((resolve6) => {
47897
- next = resolve6;
47972
+ await new Promise2((resolve5) => {
47973
+ next = resolve5;
47898
47974
  });
47899
47975
  }
47900
47976
  } finally {
@@ -48170,7 +48246,7 @@ var require_promises3 = __commonJS({
48170
48246
  var { finished } = require_end_of_stream3();
48171
48247
  require_stream8();
48172
48248
  function pipeline(...streams) {
48173
- return new Promise2((resolve6, reject) => {
48249
+ return new Promise2((resolve5, reject) => {
48174
48250
  let signal;
48175
48251
  let end;
48176
48252
  const lastArg = streams[streams.length - 1];
@@ -48185,7 +48261,7 @@ var require_promises3 = __commonJS({
48185
48261
  if (err) {
48186
48262
  reject(err);
48187
48263
  } else {
48188
- resolve6(value);
48264
+ resolve5(value);
48189
48265
  }
48190
48266
  },
48191
48267
  {
@@ -49150,25 +49226,25 @@ var require_util7 = __commonJS({
49150
49226
  };
49151
49227
  },
49152
49228
  createDeferredPromise: /* @__PURE__ */ __name(function() {
49153
- let resolve6;
49229
+ let resolve5;
49154
49230
  let reject;
49155
49231
  const promise = new Promise((res, rej) => {
49156
- resolve6 = res;
49232
+ resolve5 = res;
49157
49233
  reject = rej;
49158
49234
  });
49159
49235
  return {
49160
49236
  promise,
49161
- resolve: resolve6,
49237
+ resolve: resolve5,
49162
49238
  reject
49163
49239
  };
49164
49240
  }, "createDeferredPromise"),
49165
49241
  promisify(fn) {
49166
- return new Promise((resolve6, reject) => {
49242
+ return new Promise((resolve5, reject) => {
49167
49243
  fn((err, ...args) => {
49168
49244
  if (err) {
49169
49245
  return reject(err);
49170
49246
  }
49171
- return resolve6(...args);
49247
+ return resolve5(...args);
49172
49248
  });
49173
49249
  });
49174
49250
  },
@@ -49997,7 +50073,7 @@ var require_end_of_stream4 = __commonJS({
49997
50073
  validateBoolean(opts.cleanup, "cleanup");
49998
50074
  autoCleanup = opts.cleanup;
49999
50075
  }
50000
- return new Promise2((resolve6, reject) => {
50076
+ return new Promise2((resolve5, reject) => {
50001
50077
  const cleanup = eos(stream, opts, (err) => {
50002
50078
  if (autoCleanup) {
50003
50079
  cleanup();
@@ -50005,7 +50081,7 @@ var require_end_of_stream4 = __commonJS({
50005
50081
  if (err) {
50006
50082
  reject(err);
50007
50083
  } else {
50008
- resolve6();
50084
+ resolve5();
50009
50085
  }
50010
50086
  });
50011
50087
  });
@@ -50914,7 +50990,7 @@ var require_readable5 = __commonJS({
50914
50990
  error2 = this.readableEnded ? null : new AbortError();
50915
50991
  this.destroy(error2);
50916
50992
  }
50917
- return new Promise2((resolve6, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve6(null)));
50993
+ return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
50918
50994
  };
50919
50995
  Readable4.prototype.push = function(chunk, encoding) {
50920
50996
  return readableAddChunk(this, chunk, encoding, false);
@@ -51483,12 +51559,12 @@ var require_readable5 = __commonJS({
51483
51559
  __name(streamToAsyncIterator, "streamToAsyncIterator");
51484
51560
  async function* createAsyncIterator(stream, options) {
51485
51561
  let callback = nop;
51486
- function next(resolve6) {
51562
+ function next(resolve5) {
51487
51563
  if (this === stream) {
51488
51564
  callback();
51489
51565
  callback = nop;
51490
51566
  } else {
51491
- callback = resolve6;
51567
+ callback = resolve5;
51492
51568
  }
51493
51569
  }
51494
51570
  __name(next, "next");
@@ -52570,7 +52646,7 @@ var require_duplexify4 = __commonJS({
52570
52646
  );
52571
52647
  }, "duplexify");
52572
52648
  function fromAsyncGen(fn) {
52573
- let { promise, resolve: resolve6 } = createDeferredPromise();
52649
+ let { promise, resolve: resolve5 } = createDeferredPromise();
52574
52650
  const ac = new AbortController2();
52575
52651
  const signal = ac.signal;
52576
52652
  const value = fn(
@@ -52585,7 +52661,7 @@ var require_duplexify4 = __commonJS({
52585
52661
  throw new AbortError(void 0, {
52586
52662
  cause: signal.reason
52587
52663
  });
52588
- ({ promise, resolve: resolve6 } = createDeferredPromise());
52664
+ ({ promise, resolve: resolve5 } = createDeferredPromise());
52589
52665
  yield chunk;
52590
52666
  }
52591
52667
  })(),
@@ -52596,8 +52672,8 @@ var require_duplexify4 = __commonJS({
52596
52672
  return {
52597
52673
  value,
52598
52674
  write(chunk, encoding, cb) {
52599
- const _resolve = resolve6;
52600
- resolve6 = null;
52675
+ const _resolve = resolve5;
52676
+ resolve5 = null;
52601
52677
  _resolve({
52602
52678
  chunk,
52603
52679
  done: false,
@@ -52605,8 +52681,8 @@ var require_duplexify4 = __commonJS({
52605
52681
  });
52606
52682
  },
52607
52683
  final(cb) {
52608
- const _resolve = resolve6;
52609
- resolve6 = null;
52684
+ const _resolve = resolve5;
52685
+ resolve5 = null;
52610
52686
  _resolve({
52611
52687
  done: true,
52612
52688
  cb
@@ -53070,7 +53146,7 @@ var require_pipeline4 = __commonJS({
53070
53146
  callback();
53071
53147
  }
53072
53148
  }, "resume");
53073
- const wait = /* @__PURE__ */ __name(() => new Promise2((resolve6, reject) => {
53149
+ const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
53074
53150
  if (error2) {
53075
53151
  reject(error2);
53076
53152
  } else {
@@ -53078,7 +53154,7 @@ var require_pipeline4 = __commonJS({
53078
53154
  if (error2) {
53079
53155
  reject(error2);
53080
53156
  } else {
53081
- resolve6();
53157
+ resolve5();
53082
53158
  }
53083
53159
  }, "onresolve");
53084
53160
  }
@@ -53737,8 +53813,8 @@ var require_operators4 = __commonJS({
53737
53813
  next = null;
53738
53814
  }
53739
53815
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
53740
- await new Promise2((resolve6) => {
53741
- resume = resolve6;
53816
+ await new Promise2((resolve5) => {
53817
+ resume = resolve5;
53742
53818
  });
53743
53819
  }
53744
53820
  }
@@ -53773,8 +53849,8 @@ var require_operators4 = __commonJS({
53773
53849
  queue.shift();
53774
53850
  maybeResume();
53775
53851
  }
53776
- await new Promise2((resolve6) => {
53777
- next = resolve6;
53852
+ await new Promise2((resolve5) => {
53853
+ next = resolve5;
53778
53854
  });
53779
53855
  }
53780
53856
  } finally {
@@ -54050,7 +54126,7 @@ var require_promises4 = __commonJS({
54050
54126
  var { finished } = require_end_of_stream4();
54051
54127
  require_stream9();
54052
54128
  function pipeline(...streams) {
54053
- return new Promise2((resolve6, reject) => {
54129
+ return new Promise2((resolve5, reject) => {
54054
54130
  let signal;
54055
54131
  let end;
54056
54132
  const lastArg = streams[streams.length - 1];
@@ -54065,7 +54141,7 @@ var require_promises4 = __commonJS({
54065
54141
  if (err) {
54066
54142
  reject(err);
54067
54143
  } else {
54068
- resolve6(value);
54144
+ resolve5(value);
54069
54145
  }
54070
54146
  },
54071
54147
  {
@@ -56046,8 +56122,8 @@ var require_streamx = __commonJS({
56046
56122
  return this;
56047
56123
  },
56048
56124
  next() {
56049
- return new Promise(function(resolve6, reject) {
56050
- promiseResolve = resolve6;
56125
+ return new Promise(function(resolve5, reject) {
56126
+ promiseResolve = resolve5;
56051
56127
  promiseReject = reject;
56052
56128
  const data2 = stream.read();
56053
56129
  if (data2 !== null) ondata(data2);
@@ -56080,11 +56156,11 @@ var require_streamx = __commonJS({
56080
56156
  __name(ondata, "ondata");
56081
56157
  function destroy(err) {
56082
56158
  stream.destroy(err);
56083
- return new Promise((resolve6, reject) => {
56084
- if (stream._duplexState & DESTROYED) return resolve6({ value: void 0, done: true });
56159
+ return new Promise((resolve5, reject) => {
56160
+ if (stream._duplexState & DESTROYED) return resolve5({ value: void 0, done: true });
56085
56161
  stream.once("close", function() {
56086
56162
  if (err) reject(err);
56087
- else resolve6({ value: void 0, done: true });
56163
+ else resolve5({ value: void 0, done: true });
56088
56164
  });
56089
56165
  });
56090
56166
  }
@@ -56132,8 +56208,8 @@ var require_streamx = __commonJS({
56132
56208
  const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
56133
56209
  if (writes === 0) return Promise.resolve(true);
56134
56210
  if (state8.drains === null) state8.drains = [];
56135
- return new Promise((resolve6) => {
56136
- state8.drains.push({ writes, resolve: resolve6 });
56211
+ return new Promise((resolve5) => {
56212
+ state8.drains.push({ writes, resolve: resolve5 });
56137
56213
  });
56138
56214
  }
56139
56215
  write(data2) {
@@ -56248,10 +56324,10 @@ var require_streamx = __commonJS({
56248
56324
  }
56249
56325
  __name(transformAfterFlush, "transformAfterFlush");
56250
56326
  function pipelinePromise(...streams) {
56251
- return new Promise((resolve6, reject) => {
56327
+ return new Promise((resolve5, reject) => {
56252
56328
  return pipeline(...streams, (err) => {
56253
56329
  if (err) return reject(err);
56254
- resolve6();
56330
+ resolve5();
56255
56331
  });
56256
56332
  });
56257
56333
  }
@@ -56950,16 +57026,16 @@ var require_extract = __commonJS({
56950
57026
  cb(err);
56951
57027
  }
56952
57028
  __name(consumeCallback, "consumeCallback");
56953
- function onnext(resolve6, reject) {
57029
+ function onnext(resolve5, reject) {
56954
57030
  if (error2) {
56955
57031
  return reject(error2);
56956
57032
  }
56957
57033
  if (entryStream) {
56958
- resolve6({ value: entryStream, done: false });
57034
+ resolve5({ value: entryStream, done: false });
56959
57035
  entryStream = null;
56960
57036
  return;
56961
57037
  }
56962
- promiseResolve = resolve6;
57038
+ promiseResolve = resolve5;
56963
57039
  promiseReject = reject;
56964
57040
  consumeCallback(null);
56965
57041
  if (extract._finished && promiseResolve) {
@@ -56990,11 +57066,11 @@ var require_extract = __commonJS({
56990
57066
  function destroy(err) {
56991
57067
  extract.destroy(err);
56992
57068
  consumeCallback(err);
56993
- return new Promise((resolve6, reject) => {
56994
- if (extract.destroyed) return resolve6({ value: void 0, done: true });
57069
+ return new Promise((resolve5, reject) => {
57070
+ if (extract.destroyed) return resolve5({ value: void 0, done: true });
56995
57071
  extract.once("close", function() {
56996
57072
  if (err) reject(err);
56997
- else resolve6({ value: void 0, done: true });
57073
+ else resolve5({ value: void 0, done: true });
56998
57074
  });
56999
57075
  });
57000
57076
  }
@@ -57777,98 +57853,109 @@ var require_archiver = __commonJS({
57777
57853
  }
57778
57854
  });
57779
57855
 
57780
- // ../@aws-cdk/cdk-assets-lib/lib/private/archive.ts
57781
- async function zipDirectory(directory, outputFile, eventEmitter) {
57782
- const temporaryOutputFile = `${outputFile}.${randomString()}._tmp`;
57783
- await writeZipFile(directory, temporaryOutputFile);
57784
- await moveIntoPlace(temporaryOutputFile, outputFile, eventEmitter);
57785
- }
57786
- function writeZipFile(directory, outputFile) {
57787
- return new Promise(async (ok, fail) => {
57788
- const globOptions = {
57789
- dot: true,
57790
- onlyFiles: true,
57791
- followSymbolicLinks: true,
57792
- cwd: directory
57793
- };
57794
- const files = (0, import_fast_glob.globSync)("**", globOptions);
57795
- const output = (0, import_fs.createWriteStream)(outputFile);
57796
- const archive = archiver("zip");
57797
- archive.on("warning", fail);
57798
- archive.on("error", fail);
57799
- output.once("close", ok);
57800
- archive.pipe(output);
57801
- for (const file of files) {
57802
- const fullPath = path9.resolve(directory, file);
57803
- const [data2, stat] = await Promise.all([import_fs.promises.readFile(fullPath), import_fs.promises.stat(fullPath)]);
57804
- archive.append(data2, {
57805
- name: file,
57806
- date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z"),
57807
- // reset dates to get the same hash for the same content
57808
- mode: stat.mode
57856
+ // ../@aws-cdk/private-tools/lib/zip/index.js
57857
+ var require_zip2 = __commonJS({
57858
+ "../@aws-cdk/private-tools/lib/zip/index.js"(exports2) {
57859
+ "use strict";
57860
+ Object.defineProperty(exports2, "__esModule", { value: true });
57861
+ exports2.zipDirectory = zipDirectory2;
57862
+ exports2.zipString = zipString;
57863
+ var fs_1 = require("fs");
57864
+ var path11 = require("path");
57865
+ var stream_1 = require("stream");
57866
+ var fast_glob_1 = require_out4();
57867
+ var archiver = require_archiver();
57868
+ async function zipDirectory2(directory, outputFile, eventEmitter = () => {
57869
+ }) {
57870
+ const temporaryOutputFile = `${outputFile}.${randomString()}._tmp`;
57871
+ await writeZipFile(directory, temporaryOutputFile);
57872
+ await moveIntoPlace(temporaryOutputFile, outputFile, eventEmitter);
57873
+ }
57874
+ __name(zipDirectory2, "zipDirectory");
57875
+ function zipString(fileName, rawString) {
57876
+ return new Promise((resolve5, reject) => {
57877
+ const buffers = [];
57878
+ const converter = new stream_1.Writable();
57879
+ converter._write = (chunk, _2, callback) => {
57880
+ buffers.push(chunk);
57881
+ process.nextTick(callback);
57882
+ };
57883
+ converter.on("finish", () => resolve5(Buffer.concat(buffers)));
57884
+ const archive = archiver("zip");
57885
+ archive.on("error", reject);
57886
+ archive.pipe(converter);
57887
+ archive.append(rawString, {
57888
+ name: fileName,
57889
+ date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z")
57890
+ });
57891
+ void archive.finalize();
57809
57892
  });
57810
57893
  }
57811
- await archive.finalize();
57812
- });
57813
- }
57814
- async function moveIntoPlace(source, target, eventEmitter) {
57815
- let delay = 100;
57816
- let attempts = 5;
57817
- while (true) {
57818
- try {
57819
- await import_fs.promises.rename(source, target);
57820
- return;
57821
- } catch (e16) {
57822
- if (e16.code !== "EPERM" || attempts-- <= 0) {
57823
- throw e16;
57824
- }
57825
- eventEmitter(e16.message);
57826
- await sleep(Math.floor(Math.random() * delay));
57827
- delay *= 2;
57894
+ __name(zipString, "zipString");
57895
+ function writeZipFile(directory, outputFile) {
57896
+ return new Promise(async (ok, fail) => {
57897
+ const globOptions = {
57898
+ dot: true,
57899
+ onlyFiles: true,
57900
+ followSymbolicLinks: true,
57901
+ cwd: directory
57902
+ };
57903
+ const files = (0, fast_glob_1.globSync)("**", globOptions);
57904
+ const output = (0, fs_1.createWriteStream)(outputFile);
57905
+ const archive = archiver("zip");
57906
+ archive.on("warning", fail);
57907
+ archive.on("error", fail);
57908
+ output.once("close", ok);
57909
+ archive.pipe(output);
57910
+ for (const file of files) {
57911
+ const fullPath = path11.resolve(directory, file);
57912
+ const [data2, stat] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
57913
+ archive.append(data2, {
57914
+ name: file,
57915
+ date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z"),
57916
+ // reset dates to get the same hash for the same content
57917
+ mode: stat.mode
57918
+ });
57919
+ }
57920
+ await archive.finalize();
57921
+ });
57828
57922
  }
57829
- }
57830
- }
57831
- function sleep(ms) {
57832
- return new Promise((ok) => setTimeout(ok, ms));
57833
- }
57834
- function randomString() {
57835
- return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
57836
- }
57837
- var import_fs, path9, import_fast_glob, archiver;
57838
- var init_archive = __esm({
57839
- "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
57840
- "use strict";
57841
- import_fs = require("fs");
57842
- path9 = __toESM(require("path"));
57843
- import_fast_glob = __toESM(require_out4());
57844
- archiver = require_archiver();
57845
- __name(zipDirectory, "zipDirectory");
57846
57923
  __name(writeZipFile, "writeZipFile");
57924
+ async function moveIntoPlace(source, target, eventEmitter) {
57925
+ let delay = 100;
57926
+ let attempts = 5;
57927
+ while (true) {
57928
+ try {
57929
+ await fs_1.promises.rename(source, target);
57930
+ return;
57931
+ } catch (e16) {
57932
+ if (e16.code !== "EPERM" || attempts-- <= 0) {
57933
+ throw e16;
57934
+ }
57935
+ eventEmitter(e16.message);
57936
+ await sleep(Math.floor(Math.random() * delay));
57937
+ delay *= 2;
57938
+ }
57939
+ }
57940
+ }
57847
57941
  __name(moveIntoPlace, "moveIntoPlace");
57942
+ function sleep(ms) {
57943
+ return new Promise((ok) => setTimeout(ok, ms));
57944
+ }
57848
57945
  __name(sleep, "sleep");
57946
+ function randomString() {
57947
+ return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
57948
+ }
57849
57949
  __name(randomString, "randomString");
57850
57950
  }
57851
57951
  });
57852
57952
 
57853
- // ../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts
57854
- async function pathExists(pathName) {
57855
- try {
57856
- await pfs.stat(pathName);
57857
- return true;
57858
- } catch (e16) {
57859
- if (e16.code !== "ENOENT") {
57860
- throw e16;
57861
- }
57862
- return false;
57863
- }
57864
- }
57865
- var fs9, pfs;
57866
- var init_fs_extra = __esm({
57867
- "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
57953
+ // ../@aws-cdk/cdk-assets-lib/lib/private/tools.ts
57954
+ var tools_exports = {};
57955
+ var init_tools = __esm({
57956
+ "../@aws-cdk/cdk-assets-lib/lib/private/tools.ts"() {
57868
57957
  "use strict";
57869
- fs9 = __toESM(require("fs"));
57870
- pfs = fs9.promises;
57871
- __name(pathExists, "pathExists");
57958
+ __reExport(tools_exports, __toESM(require_zip2()));
57872
57959
  }
57873
57960
  });
57874
57961
 
@@ -57891,27 +57978,27 @@ async function cached(cache16, key, factory) {
57891
57978
  cache16.set(key, fresh);
57892
57979
  return fresh;
57893
57980
  }
57894
- var import_fs2, path10, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57981
+ var import_fs, path9, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57895
57982
  var init_files = __esm({
57896
57983
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
57897
57984
  "use strict";
57898
- import_fs2 = require("fs");
57899
- path10 = __toESM(require("path"));
57985
+ import_fs = require("fs");
57986
+ path9 = __toESM(require("path"));
57900
57987
  import_cloud_assembly_schema = __toESM(require_lib2());
57901
57988
  mime = __toESM(require_mime());
57902
57989
  init_client_options();
57903
57990
  init_progress();
57904
- init_archive();
57905
57991
  init_fs_extra();
57906
57992
  init_placeholders2();
57907
57993
  init_shell();
57994
+ init_tools();
57908
57995
  EMPTY_ZIP_FILE_SIZE = 22;
57909
57996
  FileAssetHandler = class {
57910
57997
  constructor(workDir, asset, host) {
57911
57998
  this.workDir = workDir;
57912
57999
  this.asset = asset;
57913
58000
  this.host = host;
57914
- this.fileCacheRoot = path10.join(workDir, ".cache");
58001
+ this.fileCacheRoot = path9.join(workDir, ".cache");
57915
58002
  }
57916
58003
  static {
57917
58004
  __name(this, "FileAssetHandler");
@@ -58022,7 +58109,7 @@ var init_files = __esm({
58022
58109
  {
58023
58110
  Bucket: destination.bucketName,
58024
58111
  Key: destination.objectKey,
58025
- Body: (0, import_fs2.createReadStream)(publishFile.packagedPath),
58112
+ Body: (0, import_fs.createReadStream)(publishFile.packagedPath),
58026
58113
  ContentType: publishFile.contentType,
58027
58114
  ChecksumAlgorithm: "SHA256"
58028
58115
  },
@@ -58036,17 +58123,17 @@ var init_files = __esm({
58036
58123
  `'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
58037
58124
  );
58038
58125
  }
58039
- const fullPath = path10.resolve(this.workDir, source.path);
58126
+ const fullPath = path9.resolve(this.workDir, source.path);
58040
58127
  if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
58041
58128
  const contentType = "application/zip";
58042
- await import_fs2.promises.mkdir(this.fileCacheRoot, { recursive: true });
58043
- const packagedPath = path10.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
58129
+ await import_fs.promises.mkdir(this.fileCacheRoot, { recursive: true });
58130
+ const packagedPath = path9.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
58044
58131
  if (await pathExists(packagedPath)) {
58045
58132
  this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
58046
58133
  return { packagedPath, contentType };
58047
58134
  }
58048
58135
  this.host.emitMessage("build" /* BUILD */, `Zip ${fullPath} -> ${packagedPath}`);
58049
- await zipDirectory(fullPath, packagedPath, (m10) => this.host.emitMessage("debug" /* DEBUG */, m10));
58136
+ await (0, tools_exports.zipDirectory)(fullPath, packagedPath, (m10) => this.host.emitMessage("debug" /* DEBUG */, m10));
58050
58137
  return { packagedPath, contentType };
58051
58138
  } else {
58052
58139
  const contentType = mime.getType(fullPath) ?? "application/octet-stream";
@@ -58181,12 +58268,12 @@ function prefixTreeChars(xs, prefix = "") {
58181
58268
  }
58182
58269
  return ret;
58183
58270
  }
58184
- var fs11, path11, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58271
+ var fs10, path10, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58185
58272
  var init_asset_manifest = __esm({
58186
58273
  "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
58187
58274
  "use strict";
58188
- fs11 = __toESM(require("fs"));
58189
- path11 = __toESM(require("path"));
58275
+ fs10 = __toESM(require("fs"));
58276
+ path10 = __toESM(require("path"));
58190
58277
  import_cloud_assembly_schema2 = __toESM(require_lib2());
58191
58278
  AssetManifest = class _AssetManifest {
58192
58279
  constructor(directory, manifest) {
@@ -58208,7 +58295,7 @@ var init_asset_manifest = __esm({
58208
58295
  static fromFile(fileName) {
58209
58296
  try {
58210
58297
  const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
58211
- return new _AssetManifest(path11.dirname(fileName), obj);
58298
+ return new _AssetManifest(path10.dirname(fileName), obj);
58212
58299
  } catch (e16) {
58213
58300
  throw new Error(`Cannot read asset manifest '${fileName}': ${e16.message}`);
58214
58301
  }
@@ -58221,12 +58308,12 @@ var init_asset_manifest = __esm({
58221
58308
  static fromPath(filePath) {
58222
58309
  let st;
58223
58310
  try {
58224
- st = fs11.statSync(filePath);
58311
+ st = fs10.statSync(filePath);
58225
58312
  } catch (e16) {
58226
58313
  throw new Error(`Cannot read asset manifest at '${filePath}': ${e16.message}`);
58227
58314
  }
58228
58315
  if (st.isDirectory()) {
58229
- return _AssetManifest.fromFile(path11.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58316
+ return _AssetManifest.fromFile(path10.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58230
58317
  }
58231
58318
  return _AssetManifest.fromFile(filePath);
58232
58319
  }
@@ -58430,12 +58517,12 @@ function pLimit(concurrency) {
58430
58517
  let stopped = false;
58431
58518
  function dispatch() {
58432
58519
  if (activeCount < concurrency && queue.length > 0) {
58433
- const [fac, resolve6, reject] = queue.shift();
58520
+ const [fac, resolve5, reject] = queue.shift();
58434
58521
  activeCount++;
58435
58522
  fac().then(
58436
58523
  (r16) => {
58437
58524
  resumeNext();
58438
- resolve6(r16);
58525
+ resolve5(r16);
58439
58526
  },
58440
58527
  (e16) => {
58441
58528
  resumeNext();
@@ -58457,8 +58544,8 @@ function pLimit(concurrency) {
58457
58544
  }
58458
58545
  __name(resumeNext, "resumeNext");
58459
58546
  const ret = /* @__PURE__ */ __name((promiseFactory) => {
58460
- return new Promise((resolve6, reject) => {
58461
- queue.push([promiseFactory, resolve6, reject]);
58547
+ return new Promise((resolve5, reject) => {
58548
+ queue.push([promiseFactory, resolve5, reject]);
58462
58549
  dispatch();
58463
58550
  });
58464
58551
  }, "ret");
@@ -59493,9 +59580,9 @@ var init_createPaginator = __esm({
59493
59580
  return await client.send(command, ...args);
59494
59581
  }, "makePagedClientRequest");
59495
59582
  __name(createPaginator, "createPaginator");
59496
- get = /* @__PURE__ */ __name((fromObject, path12) => {
59583
+ get = /* @__PURE__ */ __name((fromObject, path11) => {
59497
59584
  let cursor2 = fromObject;
59498
- const pathComponents = path12.split(".");
59585
+ const pathComponents = path11.split(".");
59499
59586
  for (const step of pathComponents) {
59500
59587
  if (!cursor2 || typeof cursor2 !== "object") {
59501
59588
  return void 0;
@@ -60168,7 +60255,7 @@ var require_headStream = __commonJS({
60168
60255
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
60169
60256
  return (0, headStream_browser_1.headStream)(stream, bytes);
60170
60257
  }
60171
- return new Promise((resolve6, reject) => {
60258
+ return new Promise((resolve5, reject) => {
60172
60259
  const collector = new Collector2();
60173
60260
  collector.limit = bytes;
60174
60261
  stream.pipe(collector);
@@ -60179,7 +60266,7 @@ var require_headStream = __commonJS({
60179
60266
  collector.on("error", reject);
60180
60267
  collector.on("finish", function() {
60181
60268
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
60182
- resolve6(bytes2);
60269
+ resolve5(bytes2);
60183
60270
  });
60184
60271
  });
60185
60272
  }, "headStream");
@@ -60388,21 +60475,21 @@ var require_dist_cjs13 = __commonJS({
60388
60475
  let sendBody = true;
60389
60476
  if (!externalAgent && expect === "100-continue") {
60390
60477
  sendBody = await Promise.race([
60391
- new Promise((resolve6) => {
60392
- timeoutId = Number(timing.setTimeout(() => resolve6(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
60478
+ new Promise((resolve5) => {
60479
+ timeoutId = Number(timing.setTimeout(() => resolve5(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
60393
60480
  }),
60394
- new Promise((resolve6) => {
60481
+ new Promise((resolve5) => {
60395
60482
  httpRequest.on("continue", () => {
60396
60483
  timing.clearTimeout(timeoutId);
60397
- resolve6(true);
60484
+ resolve5(true);
60398
60485
  });
60399
60486
  httpRequest.on("response", () => {
60400
60487
  timing.clearTimeout(timeoutId);
60401
- resolve6(false);
60488
+ resolve5(false);
60402
60489
  });
60403
60490
  httpRequest.on("error", () => {
60404
60491
  timing.clearTimeout(timeoutId);
60405
- resolve6(false);
60492
+ resolve5(false);
60406
60493
  });
60407
60494
  })
60408
60495
  ]);
@@ -60481,13 +60568,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60481
60568
  return socketWarningTimestamp;
60482
60569
  }
60483
60570
  constructor(options) {
60484
- this.configProvider = new Promise((resolve6, reject) => {
60571
+ this.configProvider = new Promise((resolve5, reject) => {
60485
60572
  if (typeof options === "function") {
60486
60573
  options().then((_options) => {
60487
- resolve6(this.resolveDefaultConfig(_options));
60574
+ resolve5(this.resolveDefaultConfig(_options));
60488
60575
  }).catch(reject);
60489
60576
  } else {
60490
- resolve6(this.resolveDefaultConfig(options));
60577
+ resolve5(this.resolveDefaultConfig(options));
60491
60578
  }
60492
60579
  });
60493
60580
  }
@@ -60507,7 +60594,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60507
60594
  return new Promise((_resolve, _reject) => {
60508
60595
  let writeRequestBodyPromise = void 0;
60509
60596
  const timeouts = [];
60510
- const resolve6 = /* @__PURE__ */ __name(async (arg) => {
60597
+ const resolve5 = /* @__PURE__ */ __name(async (arg) => {
60511
60598
  await writeRequestBodyPromise;
60512
60599
  timeouts.forEach(timing.clearTimeout);
60513
60600
  _resolve(arg);
@@ -60541,12 +60628,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60541
60628
  const password = request.password ?? "";
60542
60629
  auth = `${username}:${password}`;
60543
60630
  }
60544
- let path12 = request.path;
60631
+ let path11 = request.path;
60545
60632
  if (queryString) {
60546
- path12 += `?${queryString}`;
60633
+ path11 += `?${queryString}`;
60547
60634
  }
60548
60635
  if (request.fragment) {
60549
- path12 += `#${request.fragment}`;
60636
+ path11 += `#${request.fragment}`;
60550
60637
  }
60551
60638
  let hostname = request.hostname ?? "";
60552
60639
  if (hostname[0] === "[" && hostname.endsWith("]")) {
@@ -60558,7 +60645,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60558
60645
  headers: request.headers,
60559
60646
  host: hostname,
60560
60647
  method: request.method,
60561
- path: path12,
60648
+ path: path11,
60562
60649
  port: request.port,
60563
60650
  agent,
60564
60651
  auth
@@ -60571,7 +60658,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60571
60658
  headers: getTransformedHeaders(res.headers),
60572
60659
  body: res
60573
60660
  });
60574
- resolve6({ response: httpResponse });
60661
+ resolve5({ response: httpResponse });
60575
60662
  });
60576
60663
  req.on("error", (err) => {
60577
60664
  if (NODEJS_TIMEOUT_ERROR_CODES2.includes(err.code)) {
@@ -60896,13 +60983,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60896
60983
  return new _NodeHttp2Handler(instanceOrOptions);
60897
60984
  }
60898
60985
  constructor(options) {
60899
- this.configProvider = new Promise((resolve6, reject) => {
60986
+ this.configProvider = new Promise((resolve5, reject) => {
60900
60987
  if (typeof options === "function") {
60901
60988
  options().then((opts) => {
60902
- resolve6(opts || {});
60989
+ resolve5(opts || {});
60903
60990
  }).catch(reject);
60904
60991
  } else {
60905
- resolve6(options || {});
60992
+ resolve5(options || {});
60906
60993
  }
60907
60994
  });
60908
60995
  }
@@ -60924,7 +61011,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60924
61011
  return new Promise((_resolve, _reject) => {
60925
61012
  let fulfilled = false;
60926
61013
  let writeRequestBodyPromise = void 0;
60927
- const resolve6 = /* @__PURE__ */ __name(async (arg) => {
61014
+ const resolve5 = /* @__PURE__ */ __name(async (arg) => {
60928
61015
  await writeRequestBodyPromise;
60929
61016
  _resolve(arg);
60930
61017
  }, "resolve");
@@ -60961,16 +61048,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60961
61048
  reject(err);
60962
61049
  }, "rejectWithDestroy");
60963
61050
  const queryString = querystringBuilder.buildQueryString(query ?? {});
60964
- let path12 = request.path;
61051
+ let path11 = request.path;
60965
61052
  if (queryString) {
60966
- path12 += `?${queryString}`;
61053
+ path11 += `?${queryString}`;
60967
61054
  }
60968
61055
  if (request.fragment) {
60969
- path12 += `#${request.fragment}`;
61056
+ path11 += `#${request.fragment}`;
60970
61057
  }
60971
61058
  const clientHttp2Stream = session.request({
60972
61059
  ...request.headers,
60973
- [http2.constants.HTTP2_HEADER_PATH]: path12,
61060
+ [http2.constants.HTTP2_HEADER_PATH]: path11,
60974
61061
  [http2.constants.HTTP2_HEADER_METHOD]: method
60975
61062
  });
60976
61063
  if (effectiveRequestTimeout) {
@@ -61009,7 +61096,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
61009
61096
  body: clientHttp2Stream
61010
61097
  });
61011
61098
  fulfilled = true;
61012
- resolve6({ response: httpResponse });
61099
+ resolve5({ response: httpResponse });
61013
61100
  if (useIsolatedSession) {
61014
61101
  session.close();
61015
61102
  }
@@ -61054,7 +61141,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
61054
61141
  if (isReadableStreamInstance2(stream)) {
61055
61142
  return collectReadableStream2(stream);
61056
61143
  }
61057
- return new Promise((resolve6, reject) => {
61144
+ return new Promise((resolve5, reject) => {
61058
61145
  const collector = new Collector2();
61059
61146
  stream.pipe(collector);
61060
61147
  stream.on("error", (err) => {
@@ -61064,7 +61151,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
61064
61151
  collector.on("error", reject);
61065
61152
  collector.on("finish", function() {
61066
61153
  const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
61067
- resolve6(bytes);
61154
+ resolve5(bytes);
61068
61155
  });
61069
61156
  });
61070
61157
  }, "streamCollector");
@@ -61110,7 +61197,7 @@ var require_dist_cjs14 = __commonJS({
61110
61197
  }
61111
61198
  __name(createRequest, "createRequest");
61112
61199
  function requestTimeout(timeoutInMs = 0) {
61113
- return new Promise((resolve6, reject) => {
61200
+ return new Promise((resolve5, reject) => {
61114
61201
  if (timeoutInMs) {
61115
61202
  setTimeout(() => {
61116
61203
  const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
@@ -61160,13 +61247,13 @@ var require_dist_cjs14 = __commonJS({
61160
61247
  const abortError = buildAbortError(abortSignal);
61161
61248
  return Promise.reject(abortError);
61162
61249
  }
61163
- let path12 = request.path;
61250
+ let path11 = request.path;
61164
61251
  const queryString = querystringBuilder.buildQueryString(request.query || {});
61165
61252
  if (queryString) {
61166
- path12 += `?${queryString}`;
61253
+ path11 += `?${queryString}`;
61167
61254
  }
61168
61255
  if (request.fragment) {
61169
- path12 += `#${request.fragment}`;
61256
+ path11 += `#${request.fragment}`;
61170
61257
  }
61171
61258
  let auth = "";
61172
61259
  if (request.username != null || request.password != null) {
@@ -61175,7 +61262,7 @@ var require_dist_cjs14 = __commonJS({
61175
61262
  auth = `${username}:${password}@`;
61176
61263
  }
61177
61264
  const { port, method } = request;
61178
- const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path12}`;
61265
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path11}`;
61179
61266
  const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
61180
61267
  const requestOptions = {
61181
61268
  body,
@@ -61231,7 +61318,7 @@ var require_dist_cjs14 = __commonJS({
61231
61318
  requestTimeout(requestTimeoutInMs)
61232
61319
  ];
61233
61320
  if (abortSignal) {
61234
- raceOfPromises.push(new Promise((resolve6, reject) => {
61321
+ raceOfPromises.push(new Promise((resolve5, reject) => {
61235
61322
  const onAbort = /* @__PURE__ */ __name(() => {
61236
61323
  const abortError = buildAbortError(abortSignal);
61237
61324
  reject(abortError);
@@ -61314,7 +61401,7 @@ var require_dist_cjs14 = __commonJS({
61314
61401
  }
61315
61402
  __name(collectStream2, "collectStream");
61316
61403
  function readToBase642(blob) {
61317
- return new Promise((resolve6, reject) => {
61404
+ return new Promise((resolve5, reject) => {
61318
61405
  const reader = new FileReader();
61319
61406
  reader.onloadend = () => {
61320
61407
  if (reader.readyState !== 2) {
@@ -61323,7 +61410,7 @@ var require_dist_cjs14 = __commonJS({
61323
61410
  const result = reader.result ?? "";
61324
61411
  const commaIndex = result.indexOf(",");
61325
61412
  const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
61326
- resolve6(result.substring(dataOffset));
61413
+ resolve5(result.substring(dataOffset));
61327
61414
  };
61328
61415
  reader.onabort = () => reject(new Error("Read aborted"));
61329
61416
  reader.onerror = () => reject(reader.error);
@@ -63153,12 +63240,12 @@ function __metadata(metadataKey, metadataValue) {
63153
63240
  }
63154
63241
  function __awaiter(thisArg, _arguments, P, generator) {
63155
63242
  function adopt(value) {
63156
- return value instanceof P ? value : new P(function(resolve6) {
63157
- resolve6(value);
63243
+ return value instanceof P ? value : new P(function(resolve5) {
63244
+ resolve5(value);
63158
63245
  });
63159
63246
  }
63160
63247
  __name(adopt, "adopt");
63161
- return new (P || (P = Promise))(function(resolve6, reject) {
63248
+ return new (P || (P = Promise))(function(resolve5, reject) {
63162
63249
  function fulfilled(value) {
63163
63250
  try {
63164
63251
  step(generator.next(value));
@@ -63176,7 +63263,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
63176
63263
  }
63177
63264
  __name(rejected, "rejected");
63178
63265
  function step(result) {
63179
- result.done ? resolve6(result.value) : adopt(result.value).then(fulfilled, rejected);
63266
+ result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
63180
63267
  }
63181
63268
  __name(step, "step");
63182
63269
  step((generator = generator.apply(thisArg, _arguments || [])).next());
@@ -63378,15 +63465,15 @@ function __asyncValues(o5) {
63378
63465
  }, i16);
63379
63466
  function verb(n5) {
63380
63467
  i16[n5] = o5[n5] && function(v) {
63381
- return new Promise(function(resolve6, reject) {
63382
- v = o5[n5](v), settle(resolve6, reject, v.done, v.value);
63468
+ return new Promise(function(resolve5, reject) {
63469
+ v = o5[n5](v), settle(resolve5, reject, v.done, v.value);
63383
63470
  });
63384
63471
  };
63385
63472
  }
63386
63473
  __name(verb, "verb");
63387
- function settle(resolve6, reject, d16, v) {
63474
+ function settle(resolve5, reject, d16, v) {
63388
63475
  Promise.resolve(v).then(function(v2) {
63389
- resolve6({ value: v2, done: d16 });
63476
+ resolve5({ value: v2, done: d16 });
63390
63477
  }, reject);
63391
63478
  }
63392
63479
  __name(settle, "settle");
@@ -63481,13 +63568,13 @@ function __disposeResources(env) {
63481
63568
  __name(next, "next");
63482
63569
  return next();
63483
63570
  }
63484
- function __rewriteRelativeImportExtension(path12, preserveJsx) {
63485
- if (typeof path12 === "string" && /^\.\.?\//.test(path12)) {
63486
- return path12.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m10, tsx, d16, ext, cm) {
63571
+ function __rewriteRelativeImportExtension(path11, preserveJsx) {
63572
+ if (typeof path11 === "string" && /^\.\.?\//.test(path11)) {
63573
+ return path11.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m10, tsx, d16, ext, cm) {
63487
63574
  return tsx ? preserveJsx ? ".jsx" : ".js" : d16 && (!ext || !cm) ? m10 : d16 + ext + "." + cm.toLowerCase() + "js";
63488
63575
  });
63489
63576
  }
63490
- return path12;
63577
+ return path11;
63491
63578
  }
63492
63579
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
63493
63580
  var init_tslib_es6 = __esm({
@@ -64442,11 +64529,11 @@ var init_HttpBindingProtocol = __esm({
64442
64529
  const opTraits = translateTraits(operationSchema.traits);
64443
64530
  if (opTraits.http) {
64444
64531
  request.method = opTraits.http[0];
64445
- const [path12, search] = opTraits.http[1].split("?");
64532
+ const [path11, search] = opTraits.http[1].split("?");
64446
64533
  if (request.path == "/") {
64447
- request.path = path12;
64534
+ request.path = path11;
64448
64535
  } else {
64449
- request.path += path12;
64536
+ request.path += path11;
64450
64537
  }
64451
64538
  const traitSearchParams = new URLSearchParams(search ?? "");
64452
64539
  for (const [key, value] of traitSearchParams) {
@@ -64854,8 +64941,8 @@ var init_requestBuilder = __esm({
64854
64941
  return this;
64855
64942
  }
64856
64943
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
64857
- this.resolvePathStack.push((path12) => {
64858
- this.path = resolvedPath(path12, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64944
+ this.resolvePathStack.push((path11) => {
64945
+ this.path = resolvedPath(path11, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64859
64946
  });
64860
64947
  return this;
64861
64948
  }
@@ -65551,18 +65638,18 @@ var require_dist_cjs20 = __commonJS({
65551
65638
  return void 0;
65552
65639
  }
65553
65640
  __name(coalesce2, "coalesce");
65554
- var getAttrPathList2 = /* @__PURE__ */ __name((path12) => {
65555
- const parts = path12.split(".");
65641
+ var getAttrPathList2 = /* @__PURE__ */ __name((path11) => {
65642
+ const parts = path11.split(".");
65556
65643
  const pathList = [];
65557
65644
  for (const part of parts) {
65558
65645
  const squareBracketIndex = part.indexOf("[");
65559
65646
  if (squareBracketIndex !== -1) {
65560
65647
  if (part.indexOf("]") !== part.length - 1) {
65561
- throw new EndpointError2(`Path: '${path12}' does not end with ']'`);
65648
+ throw new EndpointError2(`Path: '${path11}' does not end with ']'`);
65562
65649
  }
65563
65650
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
65564
65651
  if (Number.isNaN(parseInt(arrayIndex))) {
65565
- throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path12}'`);
65652
+ throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path11}'`);
65566
65653
  }
65567
65654
  if (squareBracketIndex !== 0) {
65568
65655
  pathList.push(part.slice(0, squareBracketIndex));
@@ -65574,9 +65661,9 @@ var require_dist_cjs20 = __commonJS({
65574
65661
  }
65575
65662
  return pathList;
65576
65663
  }, "getAttrPathList");
65577
- var getAttr2 = /* @__PURE__ */ __name((value, path12) => getAttrPathList2(path12).reduce((acc, index) => {
65664
+ var getAttr2 = /* @__PURE__ */ __name((value, path11) => getAttrPathList2(path11).reduce((acc, index) => {
65578
65665
  if (typeof acc !== "object") {
65579
- throw new EndpointError2(`Index '${index}' in '${path12}' not found in '${JSON.stringify(value)}'`);
65666
+ throw new EndpointError2(`Index '${index}' in '${path11}' not found in '${JSON.stringify(value)}'`);
65580
65667
  } else if (Array.isArray(acc)) {
65581
65668
  const i16 = parseInt(index);
65582
65669
  return acc[i16 < 0 ? acc.length + i16 : i16];
@@ -65615,8 +65702,8 @@ var require_dist_cjs20 = __commonJS({
65615
65702
  return value;
65616
65703
  }
65617
65704
  if (typeof value === "object" && "hostname" in value) {
65618
- const { hostname: hostname2, port, protocol: protocol2 = "", path: path12 = "", query = {} } = value;
65619
- const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path12}`);
65705
+ const { hostname: hostname2, port, protocol: protocol2 = "", path: path11 = "", query = {} } = value;
65706
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path11}`);
65620
65707
  url.search = Object.entries(query).map(([k16, v]) => `${k16}=${v}`).join("&");
65621
65708
  return url;
65622
65709
  }
@@ -67312,7 +67399,7 @@ var init_retryMiddleware = __esm({
67312
67399
  init_parseRetryAfterHeader();
67313
67400
  init_util2();
67314
67401
  __name(bindRetryMiddleware, "bindRetryMiddleware");
67315
- cooldown = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
67402
+ cooldown = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
67316
67403
  isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
67317
67404
  getRetryErrorInfo = /* @__PURE__ */ __name((error2, logger3) => {
67318
67405
  const errorInfo = {
@@ -67414,7 +67501,7 @@ var init_DefaultRateLimiter = __esm({
67414
67501
  this.refillTokenBucket();
67415
67502
  while (amount > this.availableTokens) {
67416
67503
  const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
67417
- await new Promise((resolve6) => _DefaultRateLimiter.setTimeoutFn(resolve6, delay));
67504
+ await new Promise((resolve5) => _DefaultRateLimiter.setTimeoutFn(resolve5, delay));
67418
67505
  this.refillTokenBucket();
67419
67506
  }
67420
67507
  this.availableTokens = this.availableTokens - amount;
@@ -67873,7 +67960,7 @@ var init_StandardRetryStrategy2 = __esm({
67873
67960
  const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
67874
67961
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
67875
67962
  totalDelay += delay;
67876
- await new Promise((resolve6) => setTimeout(resolve6, delay));
67963
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
67877
67964
  continue;
67878
67965
  }
67879
67966
  if (!err.$metadata) {
@@ -68858,14 +68945,14 @@ var require_readFile = __commonJS({
68858
68945
  var promises_1 = require("node:fs/promises");
68859
68946
  exports2.filePromises = {};
68860
68947
  exports2.fileIntercept = {};
68861
- var readFile2 = /* @__PURE__ */ __name((path12, options) => {
68862
- if (exports2.fileIntercept[path12] !== void 0) {
68863
- return exports2.fileIntercept[path12];
68948
+ var readFile2 = /* @__PURE__ */ __name((path11, options) => {
68949
+ if (exports2.fileIntercept[path11] !== void 0) {
68950
+ return exports2.fileIntercept[path11];
68864
68951
  }
68865
- if (!exports2.filePromises[path12] || options?.ignoreCache) {
68866
- exports2.filePromises[path12] = (0, promises_1.readFile)(path12, "utf8");
68952
+ if (!exports2.filePromises[path11] || options?.ignoreCache) {
68953
+ exports2.filePromises[path11] = (0, promises_1.readFile)(path11, "utf8");
68867
68954
  }
68868
- return exports2.filePromises[path12];
68955
+ return exports2.filePromises[path11];
68869
68956
  }, "readFile");
68870
68957
  exports2.readFile = readFile2;
68871
68958
  }
@@ -68878,7 +68965,7 @@ var require_dist_cjs28 = __commonJS({
68878
68965
  var getHomeDir2 = require_getHomeDir();
68879
68966
  var getSSOTokenFilepath = require_getSSOTokenFilepath();
68880
68967
  var getSSOTokenFromFile = require_getSSOTokenFromFile();
68881
- var path12 = require("path");
68968
+ var path11 = require("path");
68882
68969
  var types = require_dist_cjs();
68883
68970
  var readFile2 = require_readFile();
68884
68971
  var ENV_PROFILE2 = "AWS_PROFILE";
@@ -68900,9 +68987,9 @@ var require_dist_cjs28 = __commonJS({
68900
68987
  ...data2.default && { default: data2.default }
68901
68988
  }), "getConfigData");
68902
68989
  var ENV_CONFIG_PATH2 = "AWS_CONFIG_FILE";
68903
- var getConfigFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH2] || path12.join(getHomeDir2.getHomeDir(), ".aws", "config"), "getConfigFilepath");
68990
+ var getConfigFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH2] || path11.join(getHomeDir2.getHomeDir(), ".aws", "config"), "getConfigFilepath");
68904
68991
  var ENV_CREDENTIALS_PATH2 = "AWS_SHARED_CREDENTIALS_FILE";
68905
- var getCredentialsFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH2] || path12.join(getHomeDir2.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
68992
+ var getCredentialsFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH2] || path11.join(getHomeDir2.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
68906
68993
  var prefixKeyRegex2 = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
68907
68994
  var profileNameBlockList2 = ["__proto__", "profile __proto__"];
68908
68995
  var parseIni2 = /* @__PURE__ */ __name((iniData) => {
@@ -68957,11 +69044,11 @@ var require_dist_cjs28 = __commonJS({
68957
69044
  const relativeHomeDirPrefix = "~/";
68958
69045
  let resolvedFilepath = filepath;
68959
69046
  if (filepath.startsWith(relativeHomeDirPrefix)) {
68960
- resolvedFilepath = path12.join(homeDir, filepath.slice(2));
69047
+ resolvedFilepath = path11.join(homeDir, filepath.slice(2));
68961
69048
  }
68962
69049
  let resolvedConfigFilepath = configFilepath;
68963
69050
  if (configFilepath.startsWith(relativeHomeDirPrefix)) {
68964
- resolvedConfigFilepath = path12.join(homeDir, configFilepath.slice(2));
69051
+ resolvedConfigFilepath = path11.join(homeDir, configFilepath.slice(2));
68965
69052
  }
68966
69053
  const parsedFiles = await Promise.all([
68967
69054
  readFile2.readFile(resolvedConfigFilepath, {
@@ -69000,8 +69087,8 @@ var require_dist_cjs28 = __commonJS({
69000
69087
  getFileRecord() {
69001
69088
  return readFile2.fileIntercept;
69002
69089
  },
69003
- interceptFile(path13, contents) {
69004
- readFile2.fileIntercept[path13] = Promise.resolve(contents);
69090
+ interceptFile(path12, contents) {
69091
+ readFile2.fileIntercept[path12] = Promise.resolve(contents);
69005
69092
  },
69006
69093
  getTokenRecord() {
69007
69094
  return getSSOTokenFromFile.tokenIntercept;
@@ -69328,8 +69415,8 @@ var require_dist_cjs31 = __commonJS({
69328
69415
  return endpoint.url.href;
69329
69416
  }
69330
69417
  if ("hostname" in endpoint) {
69331
- const { protocol, hostname, port, path: path12 } = endpoint;
69332
- return `${protocol}//${hostname}${port ? ":" + port : ""}${path12}`;
69418
+ const { protocol, hostname, port, path: path11 } = endpoint;
69419
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path11}`;
69333
69420
  }
69334
69421
  }
69335
69422
  return endpoint;
@@ -70605,7 +70692,7 @@ var require_dist_cjs35 = __commonJS({
70605
70692
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
70606
70693
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
70607
70694
  totalDelay += delay;
70608
- await new Promise((resolve6) => setTimeout(resolve6, delay));
70695
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
70609
70696
  continue;
70610
70697
  }
70611
70698
  if (!err.$metadata) {
@@ -70817,7 +70904,7 @@ var require_dist_cjs35 = __commonJS({
70817
70904
  return retryStrategy.retry(next, args);
70818
70905
  }
70819
70906
  }, "retryMiddleware");
70820
- var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
70907
+ var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
70821
70908
  var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
70822
70909
  var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
70823
70910
  const errorInfo = {
@@ -71456,10 +71543,10 @@ ${longDate}
71456
71543
  ${credentialScope}
71457
71544
  ${utilHexEncoding.toHex(hashedRequest)}`;
71458
71545
  }
71459
- getCanonicalPath({ path: path12 }) {
71546
+ getCanonicalPath({ path: path11 }) {
71460
71547
  if (this.uriEscapePath) {
71461
71548
  const normalizedPathSegments = [];
71462
- for (const pathSegment of path12.split("/")) {
71549
+ for (const pathSegment of path11.split("/")) {
71463
71550
  if (pathSegment?.length === 0)
71464
71551
  continue;
71465
71552
  if (pathSegment === ".")
@@ -71470,11 +71557,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
71470
71557
  normalizedPathSegments.push(pathSegment);
71471
71558
  }
71472
71559
  }
71473
- const normalizedPath = `${path12?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path12?.endsWith("/") ? "/" : ""}`;
71560
+ const normalizedPath = `${path11?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path11?.endsWith("/") ? "/" : ""}`;
71474
71561
  const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
71475
71562
  return doubleEncoded.replace(/%2F/g, "/");
71476
71563
  }
71477
- return path12;
71564
+ return path11;
71478
71565
  }
71479
71566
  validateResolvedCredentials(credentials) {
71480
71567
  if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
@@ -72052,7 +72139,7 @@ var require_dist_cjs38 = __commonJS({
72052
72139
  var nodeConfigProvider = require_dist_cjs29();
72053
72140
  var urlParser = require_dist_cjs18();
72054
72141
  function httpRequest(options) {
72055
- return new Promise((resolve6, reject) => {
72142
+ return new Promise((resolve5, reject) => {
72056
72143
  const req = http.request({
72057
72144
  method: "GET",
72058
72145
  ...options,
@@ -72077,7 +72164,7 @@ var require_dist_cjs38 = __commonJS({
72077
72164
  chunks.push(chunk);
72078
72165
  });
72079
72166
  res.on("end", () => {
72080
- resolve6(buffer.Buffer.concat(chunks));
72167
+ resolve5(buffer.Buffer.concat(chunks));
72081
72168
  req.destroy();
72082
72169
  });
72083
72170
  });
@@ -72961,7 +73048,7 @@ var require_headStream2 = __commonJS({
72961
73048
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
72962
73049
  return (0, headStream_browser_1.headStream)(stream, bytes);
72963
73050
  }
72964
- return new Promise((resolve6, reject) => {
73051
+ return new Promise((resolve5, reject) => {
72965
73052
  const collector = new Collector2();
72966
73053
  collector.limit = bytes;
72967
73054
  stream.pipe(collector);
@@ -72972,7 +73059,7 @@ var require_headStream2 = __commonJS({
72972
73059
  collector.on("error", reject);
72973
73060
  collector.on("finish", function() {
72974
73061
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
72975
- resolve6(bytes2);
73062
+ resolve5(bytes2);
72976
73063
  });
72977
73064
  });
72978
73065
  }, "headStream");
@@ -73326,7 +73413,7 @@ var require_retry_wrapper = __commonJS({
73326
73413
  try {
73327
73414
  return await toRetry();
73328
73415
  } catch (e16) {
73329
- await new Promise((resolve6) => setTimeout(resolve6, delayMs));
73416
+ await new Promise((resolve5) => setTimeout(resolve5, delayMs));
73330
73417
  }
73331
73418
  }
73332
73419
  return await toRetry();
@@ -74260,7 +74347,7 @@ var require_dist_cjs42 = __commonJS({
74260
74347
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
74261
74348
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
74262
74349
  totalDelay += delay;
74263
- await new Promise((resolve6) => setTimeout(resolve6, delay));
74350
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
74264
74351
  continue;
74265
74352
  }
74266
74353
  if (!err.$metadata) {
@@ -74472,7 +74559,7 @@ var require_dist_cjs42 = __commonJS({
74472
74559
  return retryStrategy.retry(next, args);
74473
74560
  }
74474
74561
  }, "retryMiddleware");
74475
- var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
74562
+ var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
74476
74563
  var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
74477
74564
  var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
74478
74565
  const errorInfo = {
@@ -76093,11 +76180,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
76093
76180
  }
76094
76181
  }
76095
76182
  const { service, operation: operation2 } = (0, import_util_middleware6.getSmithyContext)(context);
76096
- const path12 = `/service/${service}/operation/${operation2}`;
76183
+ const path11 = `/service/${service}/operation/${operation2}`;
76097
76184
  if (request.path.endsWith("/")) {
76098
- request.path += path12.slice(1);
76185
+ request.path += path11.slice(1);
76099
76186
  } else {
76100
- request.path += path12;
76187
+ request.path += path11;
76101
76188
  }
76102
76189
  return request;
76103
76190
  }
@@ -93580,8 +93667,8 @@ var require_dist_cjs60 = __commonJS({
93580
93667
  return value;
93581
93668
  };
93582
93669
  }, "getCircularReplacer");
93583
- var sleep2 = /* @__PURE__ */ __name((seconds) => {
93584
- return new Promise((resolve6) => setTimeout(resolve6, seconds * 1e3));
93670
+ var sleep = /* @__PURE__ */ __name((seconds) => {
93671
+ return new Promise((resolve5) => setTimeout(resolve5, seconds * 1e3));
93585
93672
  }, "sleep");
93586
93673
  var waiterServiceDefaults = {
93587
93674
  minDelay: 2,
@@ -93634,7 +93721,7 @@ var require_dist_cjs60 = __commonJS({
93634
93721
  if (Date.now() + delayMs > waitUntil) {
93635
93722
  return { state: exports2.WaiterState.TIMEOUT, observedResponses };
93636
93723
  }
93637
- await sleep2(delayMs / 1e3);
93724
+ await sleep(delayMs / 1e3);
93638
93725
  }
93639
93726
  const { state: state8, reason } = await acceptorChecks(client, input);
93640
93727
  if (reason) {
@@ -93710,8 +93797,8 @@ var require_dist_cjs60 = __commonJS({
93710
93797
  }, "validateWaiterOptions");
93711
93798
  var abortTimeout = /* @__PURE__ */ __name((abortSignal) => {
93712
93799
  let onAbort;
93713
- const promise = new Promise((resolve6) => {
93714
- onAbort = /* @__PURE__ */ __name(() => resolve6({ state: exports2.WaiterState.ABORTED }), "onAbort");
93800
+ const promise = new Promise((resolve5) => {
93801
+ onAbort = /* @__PURE__ */ __name(() => resolve5({ state: exports2.WaiterState.ABORTED }), "onAbort");
93715
93802
  if (typeof abortSignal.addEventListener === "function") {
93716
93803
  abortSignal.addEventListener("abort", onAbort);
93717
93804
  } else {
@@ -95404,7 +95491,7 @@ var require_headStream3 = __commonJS({
95404
95491
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
95405
95492
  return (0, headStream_browser_1.headStream)(stream, bytes);
95406
95493
  }
95407
- return new Promise((resolve6, reject) => {
95494
+ return new Promise((resolve5, reject) => {
95408
95495
  const collector = new Collector2();
95409
95496
  collector.limit = bytes;
95410
95497
  stream.pipe(collector);
@@ -95415,7 +95502,7 @@ var require_headStream3 = __commonJS({
95415
95502
  collector.on("error", reject);
95416
95503
  collector.on("finish", function() {
95417
95504
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
95418
- resolve6(bytes2);
95505
+ resolve5(bytes2);
95419
95506
  });
95420
95507
  });
95421
95508
  }, "headStream");
@@ -97636,7 +97723,7 @@ var require_dist_cjs71 = __commonJS({
97636
97723
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
97637
97724
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
97638
97725
  totalDelay += delay;
97639
- await new Promise((resolve6) => setTimeout(resolve6, delay));
97726
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
97640
97727
  continue;
97641
97728
  }
97642
97729
  if (!err.$metadata) {
@@ -97848,7 +97935,7 @@ var require_dist_cjs71 = __commonJS({
97848
97935
  return retryStrategy.retry(next, args);
97849
97936
  }
97850
97937
  }, "retryMiddleware");
97851
- var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
97938
+ var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
97852
97939
  var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
97853
97940
  var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
97854
97941
  const errorInfo = {
@@ -106672,7 +106759,7 @@ var require_headStream4 = __commonJS({
106672
106759
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
106673
106760
  return (0, headStream_browser_1.headStream)(stream, bytes);
106674
106761
  }
106675
- return new Promise((resolve6, reject) => {
106762
+ return new Promise((resolve5, reject) => {
106676
106763
  const collector = new Collector2();
106677
106764
  collector.limit = bytes;
106678
106765
  stream.pipe(collector);
@@ -106683,7 +106770,7 @@ var require_headStream4 = __commonJS({
106683
106770
  collector.on("error", reject);
106684
106771
  collector.on("finish", function() {
106685
106772
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
106686
- resolve6(bytes2);
106773
+ resolve5(bytes2);
106687
106774
  });
106688
106775
  });
106689
106776
  }, "headStream");
@@ -107037,7 +107124,7 @@ var require_retry_wrapper2 = __commonJS({
107037
107124
  try {
107038
107125
  return await toRetry();
107039
107126
  } catch (e16) {
107040
- await new Promise((resolve6) => setTimeout(resolve6, delayMs));
107127
+ await new Promise((resolve5) => setTimeout(resolve5, delayMs));
107041
107128
  }
107042
107129
  }
107043
107130
  return await toRetry();
@@ -113424,7 +113511,7 @@ var require_dist_cjs85 = __commonJS({
113424
113511
  streamEnded = true;
113425
113512
  });
113426
113513
  while (!generationEnded) {
113427
- const value = await new Promise((resolve6) => setTimeout(() => resolve6(records.shift()), 0));
113514
+ const value = await new Promise((resolve5) => setTimeout(() => resolve5(records.shift()), 0));
113428
113515
  if (value) {
113429
113516
  yield value;
113430
113517
  }
@@ -113461,7 +113548,7 @@ var require_dist_cjs85 = __commonJS({
113461
113548
  var require_dist_cjs86 = __commonJS({
113462
113549
  "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
113463
113550
  "use strict";
113464
- var fs13 = require("fs");
113551
+ var fs12 = require("fs");
113465
113552
  var utilUtf8 = require_dist_cjs9();
113466
113553
  var stream = require("stream");
113467
113554
  var HashCalculator = class extends stream.Writable {
@@ -113482,12 +113569,12 @@ var require_dist_cjs86 = __commonJS({
113482
113569
  callback();
113483
113570
  }
113484
113571
  };
113485
- var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve6, reject) => {
113572
+ var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve5, reject) => {
113486
113573
  if (!isReadStream(fileStream)) {
113487
113574
  reject(new Error("Unable to calculate hash for non-file streams."));
113488
113575
  return;
113489
113576
  }
113490
- const fileStreamTee = fs13.createReadStream(fileStream.path, {
113577
+ const fileStreamTee = fs12.createReadStream(fileStream.path, {
113491
113578
  start: fileStream.start,
113492
113579
  end: fileStream.end
113493
113580
  });
@@ -113500,7 +113587,7 @@ var require_dist_cjs86 = __commonJS({
113500
113587
  });
113501
113588
  hashCalculator.on("error", reject);
113502
113589
  hashCalculator.on("finish", function() {
113503
- hash.digest().then(resolve6).catch(reject);
113590
+ hash.digest().then(resolve5).catch(reject);
113504
113591
  });
113505
113592
  }), "fileStreamHasher");
113506
113593
  var isReadStream = /* @__PURE__ */ __name((stream2) => typeof stream2.path === "string", "isReadStream");
@@ -113511,14 +113598,14 @@ var require_dist_cjs86 = __commonJS({
113511
113598
  const hash = new hashCtor();
113512
113599
  const hashCalculator = new HashCalculator(hash);
113513
113600
  readableStream.pipe(hashCalculator);
113514
- return new Promise((resolve6, reject) => {
113601
+ return new Promise((resolve5, reject) => {
113515
113602
  readableStream.on("error", (err) => {
113516
113603
  hashCalculator.end();
113517
113604
  reject(err);
113518
113605
  });
113519
113606
  hashCalculator.on("error", reject);
113520
113607
  hashCalculator.on("finish", () => {
113521
- hash.digest().then(resolve6).catch(reject);
113608
+ hash.digest().then(resolve5).catch(reject);
113522
113609
  });
113523
113610
  });
113524
113611
  }, "readableStreamHasher");
@@ -113787,8 +113874,8 @@ var require_dist_cjs89 = __commonJS({
113787
113874
  return value;
113788
113875
  };
113789
113876
  }, "getCircularReplacer");
113790
- var sleep2 = /* @__PURE__ */ __name((seconds) => {
113791
- return new Promise((resolve6) => setTimeout(resolve6, seconds * 1e3));
113877
+ var sleep = /* @__PURE__ */ __name((seconds) => {
113878
+ return new Promise((resolve5) => setTimeout(resolve5, seconds * 1e3));
113792
113879
  }, "sleep");
113793
113880
  var waiterServiceDefaults = {
113794
113881
  minDelay: 2,
@@ -113841,7 +113928,7 @@ var require_dist_cjs89 = __commonJS({
113841
113928
  if (Date.now() + delayMs > waitUntil) {
113842
113929
  return { state: exports2.WaiterState.TIMEOUT, observedResponses };
113843
113930
  }
113844
- await sleep2(delayMs / 1e3);
113931
+ await sleep(delayMs / 1e3);
113845
113932
  }
113846
113933
  const { state: state8, reason } = await acceptorChecks(client, input);
113847
113934
  if (reason) {
@@ -113917,8 +114004,8 @@ var require_dist_cjs89 = __commonJS({
113917
114004
  }, "validateWaiterOptions");
113918
114005
  var abortTimeout = /* @__PURE__ */ __name((abortSignal) => {
113919
114006
  let onAbort;
113920
- const promise = new Promise((resolve6) => {
113921
- onAbort = /* @__PURE__ */ __name(() => resolve6({ state: exports2.WaiterState.ABORTED }), "onAbort");
114007
+ const promise = new Promise((resolve5) => {
114008
+ onAbort = /* @__PURE__ */ __name(() => resolve5({ state: exports2.WaiterState.ABORTED }), "onAbort");
113922
114009
  if (typeof abortSignal.addEventListener === "function") {
113923
114010
  abortSignal.addEventListener("abort", onAbort);
113924
114011
  } else {
@@ -116912,7 +116999,7 @@ var require_dist_cjs92 = __commonJS({
116912
116999
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
116913
117000
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
116914
117001
  totalDelay += delay;
116915
- await new Promise((resolve6) => setTimeout(resolve6, delay));
117002
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
116916
117003
  continue;
116917
117004
  }
116918
117005
  if (!err.$metadata) {
@@ -117124,7 +117211,7 @@ var require_dist_cjs92 = __commonJS({
117124
117211
  return retryStrategy.retry(next, args);
117125
117212
  }
117126
117213
  }, "retryMiddleware");
117127
- var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
117214
+ var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
117128
117215
  var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
117129
117216
  var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
117130
117217
  const errorInfo = {
@@ -118368,7 +118455,7 @@ var require_headStream5 = __commonJS({
118368
118455
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
118369
118456
  return (0, headStream_browser_1.headStream)(stream, bytes);
118370
118457
  }
118371
- return new Promise((resolve6, reject) => {
118458
+ return new Promise((resolve5, reject) => {
118372
118459
  const collector = new Collector2();
118373
118460
  collector.limit = bytes;
118374
118461
  stream.pipe(collector);
@@ -118379,7 +118466,7 @@ var require_headStream5 = __commonJS({
118379
118466
  collector.on("error", reject);
118380
118467
  collector.on("finish", function() {
118381
118468
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
118382
- resolve6(bytes2);
118469
+ resolve5(bytes2);
118383
118470
  });
118384
118471
  });
118385
118472
  }, "headStream");
@@ -118733,7 +118820,7 @@ var require_retry_wrapper3 = __commonJS({
118733
118820
  try {
118734
118821
  return await toRetry();
118735
118822
  } catch (e16) {
118736
- await new Promise((resolve6) => setTimeout(resolve6, delayMs));
118823
+ await new Promise((resolve5) => setTimeout(resolve5, delayMs));
118737
118824
  }
118738
118825
  }
118739
118826
  return await toRetry();
@@ -127396,7 +127483,7 @@ var require_dist_cjs106 = __commonJS({
127396
127483
  const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
127397
127484
  const delay = Math.max(delayFromResponse || 0, delayFromDecider);
127398
127485
  totalDelay += delay;
127399
- await new Promise((resolve6) => setTimeout(resolve6, delay));
127486
+ await new Promise((resolve5) => setTimeout(resolve5, delay));
127400
127487
  continue;
127401
127488
  }
127402
127489
  if (!err.$metadata) {
@@ -127608,7 +127695,7 @@ var require_dist_cjs106 = __commonJS({
127608
127695
  return retryStrategy.retry(next, args);
127609
127696
  }
127610
127697
  }, "retryMiddleware");
127611
- var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve6) => setTimeout(resolve6, ms)), "cooldown");
127698
+ var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
127612
127699
  var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
127613
127700
  var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
127614
127701
  const errorInfo = {
@@ -133781,7 +133868,7 @@ var require_headStream6 = __commonJS({
133781
133868
  if ((0, stream_type_check_1.isReadableStream)(stream)) {
133782
133869
  return (0, headStream_browser_1.headStream)(stream, bytes);
133783
133870
  }
133784
- return new Promise((resolve6, reject) => {
133871
+ return new Promise((resolve5, reject) => {
133785
133872
  const collector = new Collector2();
133786
133873
  collector.limit = bytes;
133787
133874
  stream.pipe(collector);
@@ -133792,7 +133879,7 @@ var require_headStream6 = __commonJS({
133792
133879
  collector.on("error", reject);
133793
133880
  collector.on("finish", function() {
133794
133881
  const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
133795
- resolve6(bytes2);
133882
+ resolve5(bytes2);
133796
133883
  });
133797
133884
  });
133798
133885
  }, "headStream");
@@ -134146,7 +134233,7 @@ var require_retry_wrapper4 = __commonJS({
134146
134233
  try {
134147
134234
  return await toRetry();
134148
134235
  } catch (e16) {
134149
- await new Promise((resolve6) => setTimeout(resolve6, delayMs));
134236
+ await new Promise((resolve5) => setTimeout(resolve5, delayMs));
134150
134237
  }
134151
134238
  }
134152
134239
  return await toRetry();
@@ -142321,35 +142408,35 @@ var require_dist_cjs124 = __commonJS({
142321
142408
  getItem(key) {
142322
142409
  return this.withObjectStore("readonly", (store) => {
142323
142410
  const req = store.get(key);
142324
- return new Promise((resolve6) => {
142325
- req.onerror = () => resolve6(null);
142326
- req.onsuccess = () => resolve6(req.result ? req.result.value : null);
142411
+ return new Promise((resolve5) => {
142412
+ req.onerror = () => resolve5(null);
142413
+ req.onsuccess = () => resolve5(req.result ? req.result.value : null);
142327
142414
  });
142328
142415
  }).catch(() => null);
142329
142416
  }
142330
142417
  removeItem(key) {
142331
142418
  return this.withObjectStore("readwrite", (store) => {
142332
142419
  const req = store.delete(key);
142333
- return new Promise((resolve6, reject) => {
142420
+ return new Promise((resolve5, reject) => {
142334
142421
  req.onerror = () => reject(req.error);
142335
- req.onsuccess = () => resolve6();
142422
+ req.onsuccess = () => resolve5();
142336
142423
  });
142337
142424
  });
142338
142425
  }
142339
142426
  setItem(id, value) {
142340
142427
  return this.withObjectStore("readwrite", (store) => {
142341
142428
  const req = store.put({ id, value });
142342
- return new Promise((resolve6, reject) => {
142429
+ return new Promise((resolve5, reject) => {
142343
142430
  req.onerror = () => reject(req.error);
142344
- req.onsuccess = () => resolve6();
142431
+ req.onsuccess = () => resolve5();
142345
142432
  });
142346
142433
  });
142347
142434
  }
142348
142435
  getDb() {
142349
142436
  const openDbRequest = self.indexedDB.open(this.dbName, 1);
142350
- return new Promise((resolve6, reject) => {
142437
+ return new Promise((resolve5, reject) => {
142351
142438
  openDbRequest.onsuccess = () => {
142352
- resolve6(openDbRequest.result);
142439
+ resolve5(openDbRequest.result);
142353
142440
  };
142354
142441
  openDbRequest.onerror = () => {
142355
142442
  reject(openDbRequest.error);
@@ -142370,9 +142457,9 @@ var require_dist_cjs124 = __commonJS({
142370
142457
  return this.getDb().then((db) => {
142371
142458
  const tx = db.transaction(STORE_NAME, mode);
142372
142459
  tx.oncomplete = () => db.close();
142373
- return new Promise((resolve6, reject) => {
142460
+ return new Promise((resolve5, reject) => {
142374
142461
  tx.onerror = () => reject(tx.error);
142375
- resolve6(action(tx.objectStore(STORE_NAME)));
142462
+ resolve5(action(tx.objectStore(STORE_NAME)));
142376
142463
  }).catch((err) => {
142377
142464
  db.close();
142378
142465
  throw err;
@@ -143038,98 +143125,11 @@ var init_constants3 = __esm({
143038
143125
  }
143039
143126
  });
143040
143127
 
143041
- // ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/types/dist-cjs/index.js
143042
- var require_dist_cjs126 = __commonJS({
143043
- "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/types/dist-cjs/index.js"(exports2) {
143044
- "use strict";
143045
- exports2.HttpAuthLocation = void 0;
143046
- (function(HttpAuthLocation) {
143047
- HttpAuthLocation["HEADER"] = "header";
143048
- HttpAuthLocation["QUERY"] = "query";
143049
- })(exports2.HttpAuthLocation || (exports2.HttpAuthLocation = {}));
143050
- exports2.HttpApiKeyAuthLocation = void 0;
143051
- (function(HttpApiKeyAuthLocation2) {
143052
- HttpApiKeyAuthLocation2["HEADER"] = "header";
143053
- HttpApiKeyAuthLocation2["QUERY"] = "query";
143054
- })(exports2.HttpApiKeyAuthLocation || (exports2.HttpApiKeyAuthLocation = {}));
143055
- exports2.EndpointURLScheme = void 0;
143056
- (function(EndpointURLScheme2) {
143057
- EndpointURLScheme2["HTTP"] = "http";
143058
- EndpointURLScheme2["HTTPS"] = "https";
143059
- })(exports2.EndpointURLScheme || (exports2.EndpointURLScheme = {}));
143060
- exports2.AlgorithmId = void 0;
143061
- (function(AlgorithmId) {
143062
- AlgorithmId["MD5"] = "md5";
143063
- AlgorithmId["CRC32"] = "crc32";
143064
- AlgorithmId["CRC32C"] = "crc32c";
143065
- AlgorithmId["SHA1"] = "sha1";
143066
- AlgorithmId["SHA256"] = "sha256";
143067
- })(exports2.AlgorithmId || (exports2.AlgorithmId = {}));
143068
- var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
143069
- const checksumAlgorithms = [];
143070
- if (runtimeConfig.sha256 !== void 0) {
143071
- checksumAlgorithms.push({
143072
- algorithmId: /* @__PURE__ */ __name(() => exports2.AlgorithmId.SHA256, "algorithmId"),
143073
- checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.sha256, "checksumConstructor")
143074
- });
143075
- }
143076
- if (runtimeConfig.md5 != void 0) {
143077
- checksumAlgorithms.push({
143078
- algorithmId: /* @__PURE__ */ __name(() => exports2.AlgorithmId.MD5, "algorithmId"),
143079
- checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.md5, "checksumConstructor")
143080
- });
143081
- }
143082
- return {
143083
- addChecksumAlgorithm(algo) {
143084
- checksumAlgorithms.push(algo);
143085
- },
143086
- checksumAlgorithms() {
143087
- return checksumAlgorithms;
143088
- }
143089
- };
143090
- }, "getChecksumConfiguration");
143091
- var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
143092
- const runtimeConfig = {};
143093
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
143094
- runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
143095
- });
143096
- return runtimeConfig;
143097
- }, "resolveChecksumRuntimeConfig");
143098
- var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
143099
- return getChecksumConfiguration(runtimeConfig);
143100
- }, "getDefaultClientConfiguration");
143101
- var resolveDefaultRuntimeConfig16 = /* @__PURE__ */ __name((config) => {
143102
- return resolveChecksumRuntimeConfig(config);
143103
- }, "resolveDefaultRuntimeConfig");
143104
- exports2.FieldPosition = void 0;
143105
- (function(FieldPosition2) {
143106
- FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
143107
- FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
143108
- })(exports2.FieldPosition || (exports2.FieldPosition = {}));
143109
- var SMITHY_CONTEXT_KEY3 = "__smithy_context";
143110
- exports2.IniSectionType = void 0;
143111
- (function(IniSectionType3) {
143112
- IniSectionType3["PROFILE"] = "profile";
143113
- IniSectionType3["SSO_SESSION"] = "sso-session";
143114
- IniSectionType3["SERVICES"] = "services";
143115
- })(exports2.IniSectionType || (exports2.IniSectionType = {}));
143116
- exports2.RequestHandlerProtocol = void 0;
143117
- (function(RequestHandlerProtocol) {
143118
- RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
143119
- RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
143120
- RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
143121
- })(exports2.RequestHandlerProtocol || (exports2.RequestHandlerProtocol = {}));
143122
- exports2.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY3;
143123
- exports2.getDefaultClientConfiguration = getDefaultClientConfiguration;
143124
- exports2.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig16;
143125
- }
143126
- });
143127
-
143128
143128
  // ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
143129
143129
  var import_types3, getConfigData;
143130
143130
  var init_getConfigData = __esm({
143131
143131
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js"() {
143132
- import_types3 = __toESM(require_dist_cjs126());
143132
+ import_types3 = __toESM(require_dist_cjs());
143133
143133
  init_constants3();
143134
143134
  getConfigData = /* @__PURE__ */ __name((data2) => Object.entries(data2).filter(([key]) => {
143135
143135
  const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
@@ -143174,7 +143174,7 @@ var init_getCredentialsFilepath = __esm({
143174
143174
  var import_types4, prefixKeyRegex, profileNameBlockList, parseIni;
143175
143175
  var init_parseIni = __esm({
143176
143176
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js"() {
143177
- import_types4 = __toESM(require_dist_cjs126());
143177
+ import_types4 = __toESM(require_dist_cjs());
143178
143178
  init_constants3();
143179
143179
  prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
143180
143180
  profileNameBlockList = ["__proto__", "profile __proto__"];
@@ -143233,14 +143233,14 @@ var init_readFile = __esm({
143233
143233
  import_promises = require("node:fs/promises");
143234
143234
  filePromises = {};
143235
143235
  fileIntercept = {};
143236
- readFile = /* @__PURE__ */ __name((path12, options) => {
143237
- if (fileIntercept[path12] !== void 0) {
143238
- return fileIntercept[path12];
143236
+ readFile = /* @__PURE__ */ __name((path11, options) => {
143237
+ if (fileIntercept[path11] !== void 0) {
143238
+ return fileIntercept[path11];
143239
143239
  }
143240
- if (!filePromises[path12] || options?.ignoreCache) {
143241
- filePromises[path12] = (0, import_promises.readFile)(path12, "utf8");
143240
+ if (!filePromises[path11] || options?.ignoreCache) {
143241
+ filePromises[path11] = (0, import_promises.readFile)(path11, "utf8");
143242
143242
  }
143243
- return filePromises[path12];
143243
+ return filePromises[path11];
143244
143244
  }, "readFile");
143245
143245
  }
143246
143246
  });
@@ -143382,7 +143382,7 @@ var init_configLoader = __esm({
143382
143382
  var import_types5, getSmithyContext22;
143383
143383
  var init_getSmithyContext2 = __esm({
143384
143384
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js"() {
143385
- import_types5 = __toESM(require_dist_cjs126());
143385
+ import_types5 = __toESM(require_dist_cjs());
143386
143386
  getSmithyContext22 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
143387
143387
  }
143388
143388
  });
@@ -144300,8 +144300,8 @@ var init_createConfigValueProvider = __esm({
144300
144300
  return endpoint.url.href;
144301
144301
  }
144302
144302
  if ("hostname" in endpoint) {
144303
- const { protocol, hostname, port, path: path12 } = endpoint;
144304
- return `${protocol}//${hostname}${port ? ":" + port : ""}${path12}`;
144303
+ const { protocol, hostname, port, path: path11 } = endpoint;
144304
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path11}`;
144305
144305
  }
144306
144306
  }
144307
144307
  return endpoint;
@@ -144732,18 +144732,18 @@ var getAttrPathList;
144732
144732
  var init_getAttrPathList = __esm({
144733
144733
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js"() {
144734
144734
  init_types();
144735
- getAttrPathList = /* @__PURE__ */ __name((path12) => {
144736
- const parts = path12.split(".");
144735
+ getAttrPathList = /* @__PURE__ */ __name((path11) => {
144736
+ const parts = path11.split(".");
144737
144737
  const pathList = [];
144738
144738
  for (const part of parts) {
144739
144739
  const squareBracketIndex = part.indexOf("[");
144740
144740
  if (squareBracketIndex !== -1) {
144741
144741
  if (part.indexOf("]") !== part.length - 1) {
144742
- throw new EndpointError(`Path: '${path12}' does not end with ']'`);
144742
+ throw new EndpointError(`Path: '${path11}' does not end with ']'`);
144743
144743
  }
144744
144744
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
144745
144745
  if (Number.isNaN(parseInt(arrayIndex))) {
144746
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path12}'`);
144746
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path11}'`);
144747
144747
  }
144748
144748
  if (squareBracketIndex !== 0) {
144749
144749
  pathList.push(part.slice(0, squareBracketIndex));
@@ -144764,9 +144764,9 @@ var init_getAttr = __esm({
144764
144764
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js"() {
144765
144765
  init_types();
144766
144766
  init_getAttrPathList();
144767
- getAttr = /* @__PURE__ */ __name((value, path12) => getAttrPathList(path12).reduce((acc, index) => {
144767
+ getAttr = /* @__PURE__ */ __name((value, path11) => getAttrPathList(path11).reduce((acc, index) => {
144768
144768
  if (typeof acc !== "object") {
144769
- throw new EndpointError(`Index '${index}' in '${path12}' not found in '${JSON.stringify(value)}'`);
144769
+ throw new EndpointError(`Index '${index}' in '${path11}' not found in '${JSON.stringify(value)}'`);
144770
144770
  } else if (Array.isArray(acc)) {
144771
144771
  const i16 = parseInt(index);
144772
144772
  return acc[i16 < 0 ? acc.length + i16 : i16];
@@ -144815,7 +144815,7 @@ var init_isIpAddress = __esm({
144815
144815
  var import_types8, DEFAULT_PORTS, parseURL;
144816
144816
  var init_parseURL = __esm({
144817
144817
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js"() {
144818
- import_types8 = __toESM(require_dist_cjs126());
144818
+ import_types8 = __toESM(require_dist_cjs());
144819
144819
  init_isIpAddress();
144820
144820
  DEFAULT_PORTS = {
144821
144821
  [import_types8.EndpointURLScheme.HTTP]: 80,
@@ -144828,8 +144828,8 @@ var init_parseURL = __esm({
144828
144828
  return value;
144829
144829
  }
144830
144830
  if (typeof value === "object" && "hostname" in value) {
144831
- const { hostname: hostname2, port, protocol: protocol2 = "", path: path12 = "", query = {} } = value;
144832
- const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path12}`);
144831
+ const { hostname: hostname2, port, protocol: protocol2 = "", path: path11 = "", query = {} } = value;
144832
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path11}`);
144833
144833
  url.search = Object.entries(query).map(([k16, v]) => `${k16}=${v}`).join("&");
144834
144834
  return url;
144835
144835
  }
@@ -146079,7 +146079,7 @@ async function collectStream(stream) {
146079
146079
  return collected;
146080
146080
  }
146081
146081
  function readToBase64(blob) {
146082
- return new Promise((resolve6, reject) => {
146082
+ return new Promise((resolve5, reject) => {
146083
146083
  const reader = new FileReader();
146084
146084
  reader.onloadend = () => {
146085
146085
  if (reader.readyState !== 2) {
@@ -146088,7 +146088,7 @@ function readToBase64(blob) {
146088
146088
  const result = reader.result ?? "";
146089
146089
  const commaIndex = result.indexOf(",");
146090
146090
  const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
146091
- resolve6(result.substring(dataOffset));
146091
+ resolve5(result.substring(dataOffset));
146092
146092
  };
146093
146093
  reader.onabort = () => reject(new Error("Read aborted"));
146094
146094
  reader.onerror = () => reject(reader.error);
@@ -146220,7 +146220,7 @@ var init_stream_collector = __esm({
146220
146220
  if (isReadableStreamInstance(stream)) {
146221
146221
  return collectReadableStream(stream);
146222
146222
  }
146223
- return new Promise((resolve6, reject) => {
146223
+ return new Promise((resolve5, reject) => {
146224
146224
  const collector = new Collector();
146225
146225
  stream.pipe(collector);
146226
146226
  stream.on("error", (err) => {
@@ -146230,7 +146230,7 @@ var init_stream_collector = __esm({
146230
146230
  collector.on("error", reject);
146231
146231
  collector.on("finish", function() {
146232
146232
  const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
146233
- resolve6(bytes);
146233
+ resolve5(bytes);
146234
146234
  });
146235
146235
  });
146236
146236
  }, "streamCollector");
@@ -147018,7 +147018,7 @@ async function* readableToIterable(readStream) {
147018
147018
  streamEnded = true;
147019
147019
  });
147020
147020
  while (!generationEnded) {
147021
- const value = await new Promise((resolve6) => setTimeout(() => resolve6(records.shift()), 0));
147021
+ const value = await new Promise((resolve5) => setTimeout(() => resolve5(records.shift()), 0));
147022
147022
  if (value) {
147023
147023
  yield value;
147024
147024
  }
@@ -147584,11 +147584,11 @@ var init_HttpBindingProtocol3 = __esm({
147584
147584
  const opTraits = translateTraits2(operationSchema.traits);
147585
147585
  if (opTraits.http) {
147586
147586
  request.method = opTraits.http[0];
147587
- const [path12, search] = opTraits.http[1].split("?");
147587
+ const [path11, search] = opTraits.http[1].split("?");
147588
147588
  if (request.path == "/") {
147589
- request.path = path12;
147589
+ request.path = path11;
147590
147590
  } else {
147591
- request.path += path12;
147591
+ request.path += path11;
147592
147592
  }
147593
147593
  const traitSearchParams = new URLSearchParams(search ?? "");
147594
147594
  for (const [key, value] of traitSearchParams) {
@@ -147996,8 +147996,8 @@ var init_requestBuilder4 = __esm({
147996
147996
  return this;
147997
147997
  }
147998
147998
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
147999
- this.resolvePathStack.push((path12) => {
148000
- this.path = resolvedPath2(path12, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
147999
+ this.resolvePathStack.push((path11) => {
148000
+ this.path = resolvedPath2(path11, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
148001
148001
  });
148002
148002
  return this;
148003
148003
  }
@@ -148309,7 +148309,7 @@ var init_HttpInterceptingShapeSerializer3 = __esm({
148309
148309
  var import_types18, Field;
148310
148310
  var init_Field = __esm({
148311
148311
  "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js"() {
148312
- import_types18 = __toESM(require_dist_cjs126());
148312
+ import_types18 = __toESM(require_dist_cjs());
148313
148313
  Field = class {
148314
148314
  static {
148315
148315
  __name(this, "Field");
@@ -148586,7 +148586,7 @@ var require_runtimeConfig5 = __commonJS({
148586
148586
  });
148587
148587
 
148588
148588
  // ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
148589
- var require_dist_cjs127 = __commonJS({
148589
+ var require_dist_cjs126 = __commonJS({
148590
148590
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports2) {
148591
148591
  "use strict";
148592
148592
  var clientS3 = require_dist_cjs90();
@@ -149042,7 +149042,7 @@ to input.params.ContentLength in bytes.
149042
149042
  }
149043
149043
  }
149044
149044
  async __abortTimeout(abortSignal) {
149045
- return new Promise((resolve6, reject) => {
149045
+ return new Promise((resolve5, reject) => {
149046
149046
  abortSignal.onabort = () => {
149047
149047
  const abortError = new Error("Upload aborted.");
149048
149048
  abortError.name = "AbortError";
@@ -149100,7 +149100,7 @@ var init_aws = __esm({
149100
149100
  import_client_secrets_manager = __toESM(require_dist_cjs103());
149101
149101
  import_client_sts = __toESM(require_dist_cjs123());
149102
149102
  import_credential_providers = __toESM(require_dist_cjs125());
149103
- import_lib_storage = __toESM(require_dist_cjs127());
149103
+ import_lib_storage = __toESM(require_dist_cjs126());
149104
149104
  import_config_resolver31 = __toESM(require_dist_cjs25());
149105
149105
  import_node_config_provider16 = __toESM(require_dist_cjs29());
149106
149106
  USER_AGENT = "cdk-assets";
@@ -149236,7 +149236,7 @@ var require_lib5 = __commonJS({
149236
149236
 
149237
149237
  // bin/docker-credential-cdk-assets.js
149238
149238
  Object.defineProperty(exports, "__esModule", { value: true });
149239
- var fs12 = require("fs");
149239
+ var fs11 = require("fs");
149240
149240
  var cdk_assets_lib_1 = require_lib5();
149241
149241
  var docker_credentials_1 = (init_docker_credentials(), __toCommonJS(docker_credentials_exports));
149242
149242
  async function main() {
@@ -149247,9 +149247,9 @@ async function main() {
149247
149247
  if (!config) {
149248
149248
  throw new Error(`unable to find CDK Docker credentials at: ${(0, docker_credentials_1.cdkCredentialsConfigFile)()}`);
149249
149249
  }
149250
- let endpoint = fs12.readFileSync(0, { encoding: "utf-8" }).trim();
149250
+ let endpoint = fs11.readFileSync(0, { encoding: "utf-8" }).trim();
149251
149251
  const credentials = await (0, docker_credentials_1.fetchDockerLoginCredentials)(new cdk_assets_lib_1.DefaultAwsClient(), config, endpoint);
149252
- fs12.writeFileSync(1, JSON.stringify(credentials));
149252
+ fs11.writeFileSync(1, JSON.stringify(credentials));
149253
149253
  }
149254
149254
  __name(main, "main");
149255
149255
  main().catch((e16) => {