cdk-assets 4.3.3 → 4.3.5

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.
package/bin/cdk-assets.js CHANGED
@@ -755,14 +755,14 @@ var require_helpers = __commonJS({
755
755
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
756
756
  "use strict";
757
757
  var uri = require("url");
758
- var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path13, name, argument) {
759
- if (Array.isArray(path13)) {
760
- this.path = path13;
761
- this.property = path13.reduce(function(sum, item) {
758
+ var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path14, name, argument) {
759
+ if (Array.isArray(path14)) {
760
+ this.path = path14;
761
+ this.property = path14.reduce(function(sum, item) {
762
762
  return sum + makeSuffix(item);
763
763
  }, "instance");
764
- } else if (path13 !== void 0) {
765
- this.property = path13;
764
+ } else if (path14 !== void 0) {
765
+ this.property = path14;
766
766
  }
767
767
  if (message) {
768
768
  this.message = message;
@@ -855,16 +855,16 @@ var require_helpers = __commonJS({
855
855
  name: { value: "SchemaError", enumerable: false }
856
856
  }
857
857
  );
858
- var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path13, base, schemas) {
858
+ var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path14, base, schemas) {
859
859
  this.schema = schema;
860
860
  this.options = options;
861
- if (Array.isArray(path13)) {
862
- this.path = path13;
863
- this.propertyPath = path13.reduce(function(sum, item) {
861
+ if (Array.isArray(path14)) {
862
+ this.path = path14;
863
+ this.propertyPath = path14.reduce(function(sum, item) {
864
864
  return sum + makeSuffix(item);
865
865
  }, "instance");
866
866
  } else {
867
- this.propertyPath = path13;
867
+ this.propertyPath = path14;
868
868
  }
869
869
  this.base = base;
870
870
  this.schemas = schemas;
@@ -873,10 +873,10 @@ var require_helpers = __commonJS({
873
873
  return uri.resolve(this.base, target);
874
874
  }, "resolve");
875
875
  SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
876
- var path13 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
876
+ var path14 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
877
877
  var id = schema.$id || schema.id;
878
878
  var base = uri.resolve(this.base, id || "");
879
- var ctx = new SchemaContext(schema, this.options, path13, base, Object.create(this.schemas));
879
+ var ctx = new SchemaContext(schema, this.options, path14, base, Object.create(this.schemas));
880
880
  if (id && !ctx.schemas[base]) {
881
881
  ctx.schemas[base] = schema;
882
882
  }
@@ -4008,7 +4008,7 @@ var require_semver2 = __commonJS({
4008
4008
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4009
4009
  var require_cli_version = __commonJS({
4010
4010
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4011
- module2.exports = { version: "2.1103.0" };
4011
+ module2.exports = { version: "2.1106.0" };
4012
4012
  }
4013
4013
  });
4014
4014
 
@@ -4343,7 +4343,7 @@ var require_cloud_assembly_schema = __commonJS({
4343
4343
  type: "string"
4344
4344
  },
4345
4345
  metadata: {
4346
- description: "Associated metadata. (Default - no metadata.)",
4346
+ description: "Associated metadata.\n\nMetadata can be stored directly in the assembly manifest, as well as in a\nseparate file (see `additionalMetadataFile`). It should prefer to be stored\nin the additional file, as that will reduce the size of the assembly\nmanifest in cases of a lot of metdata (which CDK does emit by default). (Default - no metadata.)",
4347
4347
  type: "object",
4348
4348
  additionalProperties: {
4349
4349
  type: "array",
@@ -4352,6 +4352,10 @@ var require_cloud_assembly_schema = __commonJS({
4352
4352
  }
4353
4353
  }
4354
4354
  },
4355
+ additionalMetadataFile: {
4356
+ description: "A file with additional metadata entries.\n\nThe schema of this file is exactly the same as the type of the `metadata` field.\nIn other words, that file contains an object mapping construct paths to arrays\nof metadata entries. (Default - no additional metadata)",
4357
+ type: "string"
4358
+ },
4355
4359
  dependencies: {
4356
4360
  description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
4357
4361
  type: "array",
@@ -5996,9 +6000,9 @@ var require_integ_schema = __commonJS({
5996
6000
  var require_version = __commonJS({
5997
6001
  "../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
5998
6002
  module2.exports = {
5999
- schemaHash: "1b06659a117c44714e2e52854571bb1b45b765b277bb1c208bc4b7ea01f6a684",
6003
+ schemaHash: "22c511a4ddd185761b8d56ac21d48c8384873ffe4b953b3567654746f8dd26f1",
6000
6004
  $comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
6001
- revision: 50
6005
+ revision: 52
6002
6006
  };
6003
6007
  }
6004
6008
  });
@@ -6392,14 +6396,16 @@ var cloud_artifact_exports = {};
6392
6396
  __export(cloud_artifact_exports, {
6393
6397
  CloudArtifact: () => CloudArtifact
6394
6398
  });
6395
- var cxschema, CloudArtifact;
6399
+ var fs4, path3, cxschema, CloudArtifact;
6396
6400
  var init_cloud_artifact = __esm({
6397
6401
  "../@aws-cdk/cloud-assembly-api/lib/cloud-artifact.ts"() {
6398
6402
  "use strict";
6403
+ fs4 = __toESM(require("fs"));
6404
+ path3 = __toESM(require("path"));
6399
6405
  cxschema = __toESM(require_lib2());
6400
6406
  init_metadata();
6401
6407
  init_error();
6402
- CloudArtifact = class {
6408
+ CloudArtifact = class _CloudArtifact {
6403
6409
  constructor(assembly, id, manifest) {
6404
6410
  this.assembly = assembly;
6405
6411
  this.id = id;
@@ -6410,6 +6416,31 @@ var init_cloud_artifact = __esm({
6410
6416
  static {
6411
6417
  __name(this, "CloudArtifact");
6412
6418
  }
6419
+ /**
6420
+ * Read the metadata for the given artifact
6421
+ *
6422
+ * HISTORICAL OR PRIVATE USE ONLY
6423
+ *
6424
+ * This is publicly exposed as a static function for downstream libraries that
6425
+ * don't use the `CloudAssembly`/`CloudArtifact` API, yet still need to read
6426
+ * an artifact's metadata.
6427
+ *
6428
+ * 99% of consumers should just access `artifact.metadata`.
6429
+ */
6430
+ static readMetadata(assemblyDirectory, x4) {
6431
+ const ret = {};
6432
+ if (x4.additionalMetadataFile) {
6433
+ Object.assign(ret, JSON.parse(fs4.readFileSync(path3.join(assemblyDirectory, x4.additionalMetadataFile), "utf-8")));
6434
+ }
6435
+ for (const [p4, entries] of Object.entries(x4.metadata ?? {})) {
6436
+ if (ret[p4]) {
6437
+ ret[p4].push(...entries);
6438
+ } else {
6439
+ ret[p4] = entries;
6440
+ }
6441
+ }
6442
+ return ret;
6443
+ }
6413
6444
  /**
6414
6445
  * Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
6415
6446
  *
@@ -6422,6 +6453,12 @@ var init_cloud_artifact = __esm({
6422
6453
  void assembly, void id, void artifact;
6423
6454
  throw new CloudAssemblyError("Implementation not overridden yet");
6424
6455
  }
6456
+ /**
6457
+ * Returns the metadata associated with this Cloud Artifact
6458
+ */
6459
+ get metadata() {
6460
+ return _CloudArtifact.readMetadata(this.assembly.directory, this.manifest);
6461
+ }
6425
6462
  /**
6426
6463
  * Returns all the artifacts that this artifact depends on.
6427
6464
  */
@@ -6442,11 +6479,12 @@ var init_cloud_artifact = __esm({
6442
6479
  * @returns all the metadata entries of a specific type in this artifact.
6443
6480
  */
6444
6481
  findMetadataByType(type) {
6482
+ const metadata = this.metadata;
6445
6483
  const result = new Array();
6446
- for (const path13 of Object.keys(this.manifest.metadata || {})) {
6447
- for (const entry of (this.manifest.metadata || {})[path13]) {
6484
+ for (const p4 of Object.keys(metadata || {})) {
6485
+ for (const entry of (metadata || {})[p4]) {
6448
6486
  if (entry.type === type) {
6449
- result.push({ path: path13, ...entry });
6487
+ result.push({ path: p4, ...entry });
6450
6488
  }
6451
6489
  }
6452
6490
  }
@@ -6454,7 +6492,7 @@ var init_cloud_artifact = __esm({
6454
6492
  }
6455
6493
  renderMessages() {
6456
6494
  const messages = new Array();
6457
- for (const [id, metadata] of Object.entries(this.manifest.metadata || {})) {
6495
+ for (const [id, metadata] of Object.entries(this.metadata || {})) {
6458
6496
  for (const entry of metadata) {
6459
6497
  let level;
6460
6498
  switch (entry.type) {
@@ -6492,12 +6530,12 @@ var asset_manifest_artifact_exports = {};
6492
6530
  __export(asset_manifest_artifact_exports, {
6493
6531
  AssetManifestArtifact: () => AssetManifestArtifact
6494
6532
  });
6495
- var fs4, path3, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6533
+ var fs5, path4, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6496
6534
  var init_asset_manifest_artifact = __esm({
6497
6535
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/asset-manifest-artifact.ts"() {
6498
6536
  "use strict";
6499
- fs4 = __toESM(require("fs"));
6500
- path3 = __toESM(require("path"));
6537
+ fs5 = __toESM(require("fs"));
6538
+ path4 = __toESM(require("path"));
6501
6539
  init_cloud_artifact();
6502
6540
  init_error();
6503
6541
  ASSET_MANIFEST_ARTIFACT_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
@@ -6531,7 +6569,7 @@ var init_asset_manifest_artifact = __esm({
6531
6569
  if (!properties.file) {
6532
6570
  throw new CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
6533
6571
  }
6534
- this.file = path3.resolve(this.assembly.directory, properties.file);
6572
+ this.file = path4.resolve(this.assembly.directory, properties.file);
6535
6573
  this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
6536
6574
  this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
6537
6575
  }
@@ -6542,7 +6580,7 @@ var init_asset_manifest_artifact = __esm({
6542
6580
  if (this._contents !== void 0) {
6543
6581
  return this._contents;
6544
6582
  }
6545
- const contents = this._contents = JSON.parse(fs4.readFileSync(this.file, "utf-8"));
6583
+ const contents = this._contents = JSON.parse(fs5.readFileSync(this.file, "utf-8"));
6546
6584
  return contents;
6547
6585
  }
6548
6586
  };
@@ -6607,12 +6645,12 @@ var cloudformation_artifact_exports = {};
6607
6645
  __export(cloudformation_artifact_exports, {
6608
6646
  CloudFormationStackArtifact: () => CloudFormationStackArtifact
6609
6647
  });
6610
- var fs5, path4, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6648
+ var fs6, path5, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6611
6649
  var init_cloudformation_artifact = __esm({
6612
6650
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/cloudformation-artifact.ts"() {
6613
6651
  "use strict";
6614
- fs5 = __toESM(require("fs"));
6615
- path4 = __toESM(require("path"));
6652
+ fs6 = __toESM(require("fs"));
6653
+ path5 = __toESM(require("path"));
6616
6654
  cxschema2 = __toESM(require_lib2());
6617
6655
  init_cloud_artifact();
6618
6656
  init_environment();
@@ -6676,14 +6714,14 @@ var init_cloudformation_artifact = __esm({
6676
6714
  * Full path to the template file
6677
6715
  */
6678
6716
  get templateFullPath() {
6679
- return path4.join(this.assembly.directory, this.templateFile);
6717
+ return path5.join(this.assembly.directory, this.templateFile);
6680
6718
  }
6681
6719
  /**
6682
6720
  * The CloudFormation template for this stack.
6683
6721
  */
6684
6722
  get template() {
6685
6723
  if (this._template === void 0) {
6686
- this._template = JSON.parse(fs5.readFileSync(this.templateFullPath, "utf-8"));
6724
+ this._template = JSON.parse(fs6.readFileSync(this.templateFullPath, "utf-8"));
6687
6725
  }
6688
6726
  return this._template;
6689
6727
  }
@@ -6701,11 +6739,11 @@ var nested_cloud_assembly_artifact_exports = {};
6701
6739
  __export(nested_cloud_assembly_artifact_exports, {
6702
6740
  NestedCloudAssemblyArtifact: () => NestedCloudAssemblyArtifact
6703
6741
  });
6704
- var path5, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6742
+ var path6, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6705
6743
  var init_nested_cloud_assembly_artifact = __esm({
6706
6744
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/nested-cloud-assembly-artifact.ts"() {
6707
6745
  "use strict";
6708
- path5 = __toESM(require("path"));
6746
+ path6 = __toESM(require("path"));
6709
6747
  init_cloud_artifact();
6710
6748
  NESTED_CLOUD_ASSEMBLY_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
6711
6749
  NestedCloudAssemblyArtifact = class extends CloudArtifact {
@@ -6742,7 +6780,7 @@ var init_nested_cloud_assembly_artifact = __esm({
6742
6780
  * Full path to the nested assembly directory
6743
6781
  */
6744
6782
  get fullPath() {
6745
- return path5.join(this.assembly.directory, this.directoryName);
6783
+ return path6.join(this.assembly.directory, this.directoryName);
6746
6784
  }
6747
6785
  };
6748
6786
  Object.defineProperty(NestedCloudAssemblyArtifact.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
@@ -6893,26 +6931,26 @@ function determineOutputDirectory(outdir) {
6893
6931
  if (outdir) {
6894
6932
  return outdir;
6895
6933
  }
6896
- const tmpDir = fs6.mkdtempSync(path6.join(fs6.realpathSync(os3.tmpdir()), "cdk.out"));
6934
+ const tmpDir = fs7.mkdtempSync(path7.join(fs7.realpathSync(os3.tmpdir()), "cdk.out"));
6897
6935
  TEMPORARY_ASSEMBLY_DIRS.push(tmpDir);
6898
6936
  return outdir ?? tmpDir;
6899
6937
  }
6900
6938
  function ensureDirSync(dir) {
6901
- if (fs6.existsSync(dir)) {
6902
- if (!fs6.statSync(dir).isDirectory()) {
6939
+ if (fs7.existsSync(dir)) {
6940
+ if (!fs7.statSync(dir).isDirectory()) {
6903
6941
  throw new CloudAssemblyError(`${dir} must be a directory`);
6904
6942
  }
6905
6943
  } else {
6906
- fs6.mkdirSync(dir, { recursive: true });
6944
+ fs7.mkdirSync(dir, { recursive: true });
6907
6945
  }
6908
6946
  }
6909
- var fs6, os3, path6, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6947
+ var fs7, os3, path7, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6910
6948
  var init_cloud_assembly2 = __esm({
6911
6949
  "../@aws-cdk/cloud-assembly-api/lib/cloud-assembly.ts"() {
6912
6950
  "use strict";
6913
- fs6 = __toESM(require("fs"));
6951
+ fs7 = __toESM(require("fs"));
6914
6952
  os3 = __toESM(require("os"));
6915
- path6 = __toESM(require("path"));
6953
+ path7 = __toESM(require("path"));
6916
6954
  cxschema4 = __toESM(require_lib2());
6917
6955
  init_cloudformation_artifact();
6918
6956
  init_nested_cloud_assembly_artifact();
@@ -6976,7 +7014,7 @@ var init_cloud_assembly2 = __esm({
6976
7014
  */
6977
7015
  static cleanupTemporaryDirectories() {
6978
7016
  for (const dir of TEMPORARY_ASSEMBLY_DIRS) {
6979
- fs6.rmSync(dir, { recursive: true, force: true });
7017
+ fs7.rmSync(dir, { recursive: true, force: true });
6980
7018
  }
6981
7019
  TEMPORARY_ASSEMBLY_DIRS.splice(0, TEMPORARY_ASSEMBLY_DIRS.length);
6982
7020
  }
@@ -6986,7 +7024,7 @@ var init_cloud_assembly2 = __esm({
6986
7024
  */
6987
7025
  constructor(directory, loadOptions) {
6988
7026
  this.directory = directory;
6989
- this.manifest = cxschema4.Manifest.loadAssemblyManifest(path6.join(directory, MANIFEST_FILE), loadOptions);
7027
+ this.manifest = cxschema4.Manifest.loadAssemblyManifest(path7.join(directory, MANIFEST_FILE), loadOptions);
6990
7028
  this.version = this.manifest.version;
6991
7029
  this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
6992
7030
  this.runtime = this.manifest.runtime || { libraries: {} };
@@ -7187,9 +7225,9 @@ var init_cloud_assembly2 = __esm({
7187
7225
  missing: this.missing.length > 0 ? this.missing : void 0
7188
7226
  };
7189
7227
  manifest = filterUndefined(manifest);
7190
- const manifestFilePath = path6.join(this.outdir, MANIFEST_FILE);
7228
+ const manifestFilePath = path7.join(this.outdir, MANIFEST_FILE);
7191
7229
  cxschema4.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
7192
- fs6.writeFileSync(path6.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7230
+ fs7.writeFileSync(path7.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7193
7231
  return new CloudAssembly(this.outdir);
7194
7232
  }
7195
7233
  /**
@@ -7197,7 +7235,7 @@ var init_cloud_assembly2 = __esm({
7197
7235
  */
7198
7236
  createNestedAssembly(artifactId, displayName) {
7199
7237
  const directoryName = artifactId;
7200
- const innerAsmDir = path6.join(this.outdir, directoryName);
7238
+ const innerAsmDir = path7.join(this.outdir, directoryName);
7201
7239
  this.addArtifact(artifactId, {
7202
7240
  type: cxschema4.ArtifactType.NESTED_CLOUD_ASSEMBLY,
7203
7241
  properties: {
@@ -7215,7 +7253,7 @@ var init_cloud_assembly2 = __esm({
7215
7253
  * Delete the cloud assembly directory
7216
7254
  */
7217
7255
  delete() {
7218
- fs6.rmSync(this.outdir, { recursive: true, force: true });
7256
+ fs7.rmSync(this.outdir, { recursive: true, force: true });
7219
7257
  }
7220
7258
  };
7221
7259
  __name(filterUndefined, "filterUndefined");
@@ -7503,11 +7541,11 @@ async function repositoryUri(ecr, repositoryName) {
7503
7541
  return void 0;
7504
7542
  }
7505
7543
  }
7506
- var path7, ContainerImageAssetHandler, ContainerImageBuilder;
7544
+ var path8, ContainerImageAssetHandler, ContainerImageBuilder;
7507
7545
  var init_container_images = __esm({
7508
7546
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
7509
7547
  "use strict";
7510
- path7 = __toESM(require("path"));
7548
+ path8 = __toESM(require("path"));
7511
7549
  init_client_options();
7512
7550
  init_progress();
7513
7551
  init_placeholders2();
@@ -7678,7 +7716,7 @@ var init_container_images = __esm({
7678
7716
  `'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
7679
7717
  );
7680
7718
  }
7681
- const fullPath = path7.resolve(this.workDir, source.directory);
7719
+ const fullPath = path8.resolve(this.workDir, source.directory);
7682
7720
  this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
7683
7721
  await this.docker.build({
7684
7722
  directory: fullPath,
@@ -7748,11 +7786,11 @@ var require_Mime = __commonJS({
7748
7786
  }
7749
7787
  }
7750
7788
  };
7751
- Mime.prototype.getType = function(path13) {
7752
- path13 = String(path13);
7753
- let last = path13.replace(/^.*[/\\]/, "").toLowerCase();
7789
+ Mime.prototype.getType = function(path14) {
7790
+ path14 = String(path14);
7791
+ let last = path14.replace(/^.*[/\\]/, "").toLowerCase();
7754
7792
  let ext2 = last.replace(/^.*\./, "").toLowerCase();
7755
- let hasPath = last.length < path13.length;
7793
+ let hasPath = last.length < path14.length;
7756
7794
  let hasDot = ext2.length < last.length - 1;
7757
7795
  return (hasDot || !hasPath) && this._types[ext2] || null;
7758
7796
  };
@@ -8019,10 +8057,10 @@ var init_esm2 = __esm({
8019
8057
  }
8020
8058
  });
8021
8059
 
8022
- // ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
8060
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8023
8061
  var MAX_PATTERN_LENGTH, assertValidPattern;
8024
8062
  var init_assert_valid_pattern = __esm({
8025
- "../../node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8063
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8026
8064
  MAX_PATTERN_LENGTH = 1024 * 64;
8027
8065
  assertValidPattern = /* @__PURE__ */ __name((pattern) => {
8028
8066
  if (typeof pattern !== "string") {
@@ -8035,10 +8073,10 @@ var init_assert_valid_pattern = __esm({
8035
8073
  }
8036
8074
  });
8037
8075
 
8038
- // ../../node_modules/minimatch/dist/esm/brace-expressions.js
8076
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
8039
8077
  var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
8040
8078
  var init_brace_expressions = __esm({
8041
- "../../node_modules/minimatch/dist/esm/brace-expressions.js"() {
8079
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
8042
8080
  posixClasses = {
8043
8081
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
8044
8082
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -8149,10 +8187,10 @@ var init_brace_expressions = __esm({
8149
8187
  }
8150
8188
  });
8151
8189
 
8152
- // ../../node_modules/minimatch/dist/esm/unescape.js
8190
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
8153
8191
  var unescape;
8154
8192
  var init_unescape = __esm({
8155
- "../../node_modules/minimatch/dist/esm/unescape.js"() {
8193
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
8156
8194
  unescape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
8157
8195
  if (magicalBraces) {
8158
8196
  return windowsPathsNoEscape ? s4.replace(/\[([^\/\\])\]/g, "$1") : s4.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
@@ -8162,10 +8200,10 @@ var init_unescape = __esm({
8162
8200
  }
8163
8201
  });
8164
8202
 
8165
- // ../../node_modules/minimatch/dist/esm/ast.js
8203
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
8166
8204
  var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
8167
8205
  var init_ast = __esm({
8168
- "../../node_modules/minimatch/dist/esm/ast.js"() {
8206
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
8169
8207
  init_brace_expressions();
8170
8208
  init_unescape();
8171
8209
  types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
@@ -8648,10 +8686,10 @@ var init_ast = __esm({
8648
8686
  }
8649
8687
  });
8650
8688
 
8651
- // ../../node_modules/minimatch/dist/esm/escape.js
8689
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
8652
8690
  var escape;
8653
8691
  var init_escape = __esm({
8654
- "../../node_modules/minimatch/dist/esm/escape.js"() {
8692
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
8655
8693
  escape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
8656
8694
  if (magicalBraces) {
8657
8695
  return windowsPathsNoEscape ? s4.replace(/[?*()[\]{}]/g, "[$&]") : s4.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -8661,10 +8699,10 @@ var init_escape = __esm({
8661
8699
  }
8662
8700
  });
8663
8701
 
8664
- // ../../node_modules/minimatch/dist/esm/index.js
8665
- var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path8, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
8702
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
8703
+ var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path9, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
8666
8704
  var init_esm3 = __esm({
8667
- "../../node_modules/minimatch/dist/esm/index.js"() {
8705
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
8668
8706
  init_esm2();
8669
8707
  init_assert_valid_pattern();
8670
8708
  init_ast();
@@ -8731,11 +8769,11 @@ var init_esm3 = __esm({
8731
8769
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
8732
8770
  }, "qmarksTestNoExtDot");
8733
8771
  defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
8734
- path8 = {
8772
+ path9 = {
8735
8773
  win32: { sep: "\\" },
8736
8774
  posix: { sep: "/" }
8737
8775
  };
8738
- sep = defaultPlatform === "win32" ? path8.win32.sep : path8.posix.sep;
8776
+ sep = defaultPlatform === "win32" ? path9.win32.sep : path9.posix.sep;
8739
8777
  minimatch.sep = sep;
8740
8778
  GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
8741
8779
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -12032,12 +12070,12 @@ var init_esm6 = __esm({
12032
12070
  /**
12033
12071
  * Get the Path object referenced by the string path, resolved from this Path
12034
12072
  */
12035
- resolve(path13) {
12036
- if (!path13) {
12073
+ resolve(path14) {
12074
+ if (!path14) {
12037
12075
  return this;
12038
12076
  }
12039
- const rootPath = this.getRootString(path13);
12040
- const dir = path13.substring(rootPath.length);
12077
+ const rootPath = this.getRootString(path14);
12078
+ const dir = path14.substring(rootPath.length);
12041
12079
  const dirParts = dir.split(this.splitSep);
12042
12080
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
12043
12081
  return result;
@@ -12792,8 +12830,8 @@ var init_esm6 = __esm({
12792
12830
  /**
12793
12831
  * @internal
12794
12832
  */
12795
- getRootString(path13) {
12796
- return import_node_path.win32.parse(path13).root;
12833
+ getRootString(path14) {
12834
+ return import_node_path.win32.parse(path14).root;
12797
12835
  }
12798
12836
  /**
12799
12837
  * @internal
@@ -12842,8 +12880,8 @@ var init_esm6 = __esm({
12842
12880
  /**
12843
12881
  * @internal
12844
12882
  */
12845
- getRootString(path13) {
12846
- return path13.startsWith("/") ? "/" : "";
12883
+ getRootString(path14) {
12884
+ return path14.startsWith("/") ? "/" : "";
12847
12885
  }
12848
12886
  /**
12849
12887
  * @internal
@@ -12895,8 +12933,8 @@ var init_esm6 = __esm({
12895
12933
  *
12896
12934
  * @internal
12897
12935
  */
12898
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS } = {}) {
12899
- this.#fs = fsFromOption(fs12);
12936
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
12937
+ this.#fs = fsFromOption(fs13);
12900
12938
  if (cwd instanceof URL || cwd.startsWith("file://")) {
12901
12939
  cwd = (0, import_node_url.fileURLToPath)(cwd);
12902
12940
  }
@@ -12935,11 +12973,11 @@ var init_esm6 = __esm({
12935
12973
  /**
12936
12974
  * Get the depth of a provided path, string, or the cwd
12937
12975
  */
12938
- depth(path13 = this.cwd) {
12939
- if (typeof path13 === "string") {
12940
- path13 = this.cwd.resolve(path13);
12976
+ depth(path14 = this.cwd) {
12977
+ if (typeof path14 === "string") {
12978
+ path14 = this.cwd.resolve(path14);
12941
12979
  }
12942
- return path13.depth();
12980
+ return path14.depth();
12943
12981
  }
12944
12982
  /**
12945
12983
  * Return the cache of child entries. Exposed so subclasses can create
@@ -13426,9 +13464,9 @@ var init_esm6 = __esm({
13426
13464
  process2();
13427
13465
  return results;
13428
13466
  }
13429
- chdir(path13 = this.cwd) {
13467
+ chdir(path14 = this.cwd) {
13430
13468
  const oldCwd = this.cwd;
13431
- this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
13469
+ this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
13432
13470
  this.cwd[setAsCwd](oldCwd);
13433
13471
  }
13434
13472
  };
@@ -13457,8 +13495,8 @@ var init_esm6 = __esm({
13457
13495
  /**
13458
13496
  * @internal
13459
13497
  */
13460
- newRoot(fs12) {
13461
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13498
+ newRoot(fs13) {
13499
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13462
13500
  }
13463
13501
  /**
13464
13502
  * Return true if the provided path string is an absolute path
@@ -13489,8 +13527,8 @@ var init_esm6 = __esm({
13489
13527
  /**
13490
13528
  * @internal
13491
13529
  */
13492
- newRoot(fs12) {
13493
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13530
+ newRoot(fs13) {
13531
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13494
13532
  }
13495
13533
  /**
13496
13534
  * Return true if the provided path string is an absolute path
@@ -13824,8 +13862,8 @@ var init_processor = __esm({
13824
13862
  }
13825
13863
  // match, absolute, ifdir
13826
13864
  entries() {
13827
- return [...this.store.entries()].map(([path13, n4]) => [
13828
- path13,
13865
+ return [...this.store.entries()].map(([path14, n4]) => [
13866
+ path14,
13829
13867
  !!(n4 & 2),
13830
13868
  !!(n4 & 1)
13831
13869
  ]);
@@ -14047,9 +14085,9 @@ var init_walker = __esm({
14047
14085
  signal;
14048
14086
  maxDepth;
14049
14087
  includeChildMatches;
14050
- constructor(patterns, path13, opts) {
14088
+ constructor(patterns, path14, opts) {
14051
14089
  this.patterns = patterns;
14052
- this.path = path13;
14090
+ this.path = path14;
14053
14091
  this.opts = opts;
14054
14092
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
14055
14093
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -14068,11 +14106,11 @@ var init_walker = __esm({
14068
14106
  });
14069
14107
  }
14070
14108
  }
14071
- #ignored(path13) {
14072
- return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
14109
+ #ignored(path14) {
14110
+ return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
14073
14111
  }
14074
- #childrenIgnored(path13) {
14075
- return !!this.#ignore?.childrenIgnored?.(path13);
14112
+ #childrenIgnored(path14) {
14113
+ return !!this.#ignore?.childrenIgnored?.(path14);
14076
14114
  }
14077
14115
  // backpressure mechanism
14078
14116
  pause() {
@@ -14290,8 +14328,8 @@ var init_walker = __esm({
14290
14328
  __name(this, "GlobWalker");
14291
14329
  }
14292
14330
  matches = /* @__PURE__ */ new Set();
14293
- constructor(patterns, path13, opts) {
14294
- super(patterns, path13, opts);
14331
+ constructor(patterns, path14, opts) {
14332
+ super(patterns, path14, opts);
14295
14333
  }
14296
14334
  matchEmit(e4) {
14297
14335
  this.matches.add(e4);
@@ -14331,8 +14369,8 @@ var init_walker = __esm({
14331
14369
  __name(this, "GlobStream");
14332
14370
  }
14333
14371
  results;
14334
- constructor(patterns, path13, opts) {
14335
- super(patterns, path13, opts);
14372
+ constructor(patterns, path14, opts) {
14373
+ super(patterns, path14, opts);
14336
14374
  this.results = new Minipass({
14337
14375
  signal: this.signal,
14338
14376
  objectMode: true
@@ -14904,8 +14942,8 @@ var require_minimatch = __commonJS({
14904
14942
  return new Minimatch2(pattern, options).match(p4);
14905
14943
  };
14906
14944
  module2.exports = minimatch2;
14907
- var path13 = require_path();
14908
- minimatch2.sep = path13.sep;
14945
+ var path14 = require_path();
14946
+ minimatch2.sep = path14.sep;
14909
14947
  var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **");
14910
14948
  minimatch2.GLOBSTAR = GLOBSTAR2;
14911
14949
  var expand2 = require_brace_expansion();
@@ -15420,8 +15458,8 @@ var require_minimatch = __commonJS({
15420
15458
  if (this.empty) return f4 === "";
15421
15459
  if (f4 === "/" && partial) return true;
15422
15460
  const options = this.options;
15423
- if (path13.sep !== "/") {
15424
- f4 = f4.split(path13.sep).join("/");
15461
+ if (path14.sep !== "/") {
15462
+ f4 = f4.split(path14.sep).join("/");
15425
15463
  }
15426
15464
  f4 = f4.split(slashSplit);
15427
15465
  this.debug(this.pattern, "split", f4);
@@ -15459,13 +15497,13 @@ var require_minimatch = __commonJS({
15459
15497
  var require_readdir_glob = __commonJS({
15460
15498
  "../../node_modules/readdir-glob/index.js"(exports2, module2) {
15461
15499
  module2.exports = readdirGlob;
15462
- var fs12 = require("fs");
15500
+ var fs13 = require("fs");
15463
15501
  var { EventEmitter: EventEmitter2 } = require("events");
15464
15502
  var { Minimatch: Minimatch2 } = require_minimatch();
15465
15503
  var { resolve: resolve6 } = require("path");
15466
15504
  function readdir2(dir, strict) {
15467
15505
  return new Promise((resolve7, reject) => {
15468
- fs12.readdir(dir, { withFileTypes: true }, (err, files) => {
15506
+ fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
15469
15507
  if (err) {
15470
15508
  switch (err.code) {
15471
15509
  case "ENOTDIR":
@@ -15499,7 +15537,7 @@ var require_readdir_glob = __commonJS({
15499
15537
  __name(readdir2, "readdir");
15500
15538
  function stat(file, followSymlinks) {
15501
15539
  return new Promise((resolve7, reject) => {
15502
- const statFunc = followSymlinks ? fs12.stat : fs12.lstat;
15540
+ const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
15503
15541
  statFunc(file, (err, stats) => {
15504
15542
  if (err) {
15505
15543
  switch (err.code) {
@@ -15521,8 +15559,8 @@ var require_readdir_glob = __commonJS({
15521
15559
  });
15522
15560
  }
15523
15561
  __name(stat, "stat");
15524
- async function* exploreWalkAsync(dir, path13, followSymlinks, useStat, shouldSkip, strict) {
15525
- let files = await readdir2(path13 + dir, strict);
15562
+ async function* exploreWalkAsync(dir, path14, followSymlinks, useStat, shouldSkip, strict) {
15563
+ let files = await readdir2(path14 + dir, strict);
15526
15564
  for (const file of files) {
15527
15565
  let name = file.name;
15528
15566
  if (name === void 0) {
@@ -15531,7 +15569,7 @@ var require_readdir_glob = __commonJS({
15531
15569
  }
15532
15570
  const filename = dir + "/" + name;
15533
15571
  const relative = filename.slice(1);
15534
- const absolute = path13 + "/" + relative;
15572
+ const absolute = path14 + "/" + relative;
15535
15573
  let stats = null;
15536
15574
  if (useStat || followSymlinks) {
15537
15575
  stats = await stat(absolute, followSymlinks);
@@ -15545,7 +15583,7 @@ var require_readdir_glob = __commonJS({
15545
15583
  if (stats.isDirectory()) {
15546
15584
  if (!shouldSkip(relative)) {
15547
15585
  yield { relative, absolute, stats };
15548
- yield* exploreWalkAsync(filename, path13, followSymlinks, useStat, shouldSkip, false);
15586
+ yield* exploreWalkAsync(filename, path14, followSymlinks, useStat, shouldSkip, false);
15549
15587
  }
15550
15588
  } else {
15551
15589
  yield { relative, absolute, stats };
@@ -15553,8 +15591,8 @@ var require_readdir_glob = __commonJS({
15553
15591
  }
15554
15592
  }
15555
15593
  __name(exploreWalkAsync, "exploreWalkAsync");
15556
- async function* explore(path13, followSymlinks, useStat, shouldSkip) {
15557
- yield* exploreWalkAsync("", path13, followSymlinks, useStat, shouldSkip, true);
15594
+ async function* explore(path14, followSymlinks, useStat, shouldSkip) {
15595
+ yield* exploreWalkAsync("", path14, followSymlinks, useStat, shouldSkip, true);
15558
15596
  }
15559
15597
  __name(explore, "explore");
15560
15598
  function readOptions(options) {
@@ -17726,54 +17764,54 @@ var require_polyfills = __commonJS({
17726
17764
  }
17727
17765
  var chdir;
17728
17766
  module2.exports = patch;
17729
- function patch(fs12) {
17767
+ function patch(fs13) {
17730
17768
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
17731
- patchLchmod(fs12);
17732
- }
17733
- if (!fs12.lutimes) {
17734
- patchLutimes(fs12);
17735
- }
17736
- fs12.chown = chownFix(fs12.chown);
17737
- fs12.fchown = chownFix(fs12.fchown);
17738
- fs12.lchown = chownFix(fs12.lchown);
17739
- fs12.chmod = chmodFix(fs12.chmod);
17740
- fs12.fchmod = chmodFix(fs12.fchmod);
17741
- fs12.lchmod = chmodFix(fs12.lchmod);
17742
- fs12.chownSync = chownFixSync(fs12.chownSync);
17743
- fs12.fchownSync = chownFixSync(fs12.fchownSync);
17744
- fs12.lchownSync = chownFixSync(fs12.lchownSync);
17745
- fs12.chmodSync = chmodFixSync(fs12.chmodSync);
17746
- fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
17747
- fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
17748
- fs12.stat = statFix(fs12.stat);
17749
- fs12.fstat = statFix(fs12.fstat);
17750
- fs12.lstat = statFix(fs12.lstat);
17751
- fs12.statSync = statFixSync(fs12.statSync);
17752
- fs12.fstatSync = statFixSync(fs12.fstatSync);
17753
- fs12.lstatSync = statFixSync(fs12.lstatSync);
17754
- if (fs12.chmod && !fs12.lchmod) {
17755
- fs12.lchmod = function(path13, mode, cb) {
17769
+ patchLchmod(fs13);
17770
+ }
17771
+ if (!fs13.lutimes) {
17772
+ patchLutimes(fs13);
17773
+ }
17774
+ fs13.chown = chownFix(fs13.chown);
17775
+ fs13.fchown = chownFix(fs13.fchown);
17776
+ fs13.lchown = chownFix(fs13.lchown);
17777
+ fs13.chmod = chmodFix(fs13.chmod);
17778
+ fs13.fchmod = chmodFix(fs13.fchmod);
17779
+ fs13.lchmod = chmodFix(fs13.lchmod);
17780
+ fs13.chownSync = chownFixSync(fs13.chownSync);
17781
+ fs13.fchownSync = chownFixSync(fs13.fchownSync);
17782
+ fs13.lchownSync = chownFixSync(fs13.lchownSync);
17783
+ fs13.chmodSync = chmodFixSync(fs13.chmodSync);
17784
+ fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
17785
+ fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
17786
+ fs13.stat = statFix(fs13.stat);
17787
+ fs13.fstat = statFix(fs13.fstat);
17788
+ fs13.lstat = statFix(fs13.lstat);
17789
+ fs13.statSync = statFixSync(fs13.statSync);
17790
+ fs13.fstatSync = statFixSync(fs13.fstatSync);
17791
+ fs13.lstatSync = statFixSync(fs13.lstatSync);
17792
+ if (fs13.chmod && !fs13.lchmod) {
17793
+ fs13.lchmod = function(path14, mode, cb) {
17756
17794
  if (cb) process.nextTick(cb);
17757
17795
  };
17758
- fs12.lchmodSync = function() {
17796
+ fs13.lchmodSync = function() {
17759
17797
  };
17760
17798
  }
17761
- if (fs12.chown && !fs12.lchown) {
17762
- fs12.lchown = function(path13, uid, gid, cb) {
17799
+ if (fs13.chown && !fs13.lchown) {
17800
+ fs13.lchown = function(path14, uid, gid, cb) {
17763
17801
  if (cb) process.nextTick(cb);
17764
17802
  };
17765
- fs12.lchownSync = function() {
17803
+ fs13.lchownSync = function() {
17766
17804
  };
17767
17805
  }
17768
17806
  if (platform === "win32") {
17769
- fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : (function(fs$rename) {
17807
+ fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
17770
17808
  function rename(from, to, cb) {
17771
17809
  var start = Date.now();
17772
17810
  var backoff = 0;
17773
17811
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
17774
17812
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
17775
17813
  setTimeout(function() {
17776
- fs12.stat(to, function(stater, st) {
17814
+ fs13.stat(to, function(stater, st) {
17777
17815
  if (stater && stater.code === "ENOENT")
17778
17816
  fs$rename(from, to, CB);
17779
17817
  else
@@ -17790,9 +17828,9 @@ var require_polyfills = __commonJS({
17790
17828
  __name(rename, "rename");
17791
17829
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
17792
17830
  return rename;
17793
- })(fs12.rename);
17831
+ })(fs13.rename);
17794
17832
  }
17795
- fs12.read = typeof fs12.read !== "function" ? fs12.read : (function(fs$read) {
17833
+ fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
17796
17834
  function read(fd, buffer, offset, length, position, callback_) {
17797
17835
  var callback;
17798
17836
  if (callback_ && typeof callback_ === "function") {
@@ -17800,23 +17838,23 @@ var require_polyfills = __commonJS({
17800
17838
  callback = /* @__PURE__ */ __name(function(er, _2, __) {
17801
17839
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
17802
17840
  eagCounter++;
17803
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17841
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17804
17842
  }
17805
17843
  callback_.apply(this, arguments);
17806
17844
  }, "callback");
17807
17845
  }
17808
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17846
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17809
17847
  }
17810
17848
  __name(read, "read");
17811
17849
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
17812
17850
  return read;
17813
- })(fs12.read);
17814
- fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ (function(fs$readSync) {
17851
+ })(fs13.read);
17852
+ fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
17815
17853
  return function(fd, buffer, offset, length, position) {
17816
17854
  var eagCounter = 0;
17817
17855
  while (true) {
17818
17856
  try {
17819
- return fs$readSync.call(fs12, fd, buffer, offset, length, position);
17857
+ return fs$readSync.call(fs13, fd, buffer, offset, length, position);
17820
17858
  } catch (er) {
17821
17859
  if (er.code === "EAGAIN" && eagCounter < 10) {
17822
17860
  eagCounter++;
@@ -17826,11 +17864,11 @@ var require_polyfills = __commonJS({
17826
17864
  }
17827
17865
  }
17828
17866
  };
17829
- })(fs12.readSync);
17830
- function patchLchmod(fs13) {
17831
- fs13.lchmod = function(path13, mode, callback) {
17832
- fs13.open(
17833
- path13,
17867
+ })(fs13.readSync);
17868
+ function patchLchmod(fs14) {
17869
+ fs14.lchmod = function(path14, mode, callback) {
17870
+ fs14.open(
17871
+ path14,
17834
17872
  constants.O_WRONLY | constants.O_SYMLINK,
17835
17873
  mode,
17836
17874
  function(err, fd) {
@@ -17838,74 +17876,74 @@ var require_polyfills = __commonJS({
17838
17876
  if (callback) callback(err);
17839
17877
  return;
17840
17878
  }
17841
- fs13.fchmod(fd, mode, function(err2) {
17842
- fs13.close(fd, function(err22) {
17879
+ fs14.fchmod(fd, mode, function(err2) {
17880
+ fs14.close(fd, function(err22) {
17843
17881
  if (callback) callback(err2 || err22);
17844
17882
  });
17845
17883
  });
17846
17884
  }
17847
17885
  );
17848
17886
  };
17849
- fs13.lchmodSync = function(path13, mode) {
17850
- var fd = fs13.openSync(path13, constants.O_WRONLY | constants.O_SYMLINK, mode);
17887
+ fs14.lchmodSync = function(path14, mode) {
17888
+ var fd = fs14.openSync(path14, constants.O_WRONLY | constants.O_SYMLINK, mode);
17851
17889
  var threw = true;
17852
17890
  var ret;
17853
17891
  try {
17854
- ret = fs13.fchmodSync(fd, mode);
17892
+ ret = fs14.fchmodSync(fd, mode);
17855
17893
  threw = false;
17856
17894
  } finally {
17857
17895
  if (threw) {
17858
17896
  try {
17859
- fs13.closeSync(fd);
17897
+ fs14.closeSync(fd);
17860
17898
  } catch (er) {
17861
17899
  }
17862
17900
  } else {
17863
- fs13.closeSync(fd);
17901
+ fs14.closeSync(fd);
17864
17902
  }
17865
17903
  }
17866
17904
  return ret;
17867
17905
  };
17868
17906
  }
17869
17907
  __name(patchLchmod, "patchLchmod");
17870
- function patchLutimes(fs13) {
17871
- if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
17872
- fs13.lutimes = function(path13, at, mt, cb) {
17873
- fs13.open(path13, constants.O_SYMLINK, function(er, fd) {
17908
+ function patchLutimes(fs14) {
17909
+ if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
17910
+ fs14.lutimes = function(path14, at, mt, cb) {
17911
+ fs14.open(path14, constants.O_SYMLINK, function(er, fd) {
17874
17912
  if (er) {
17875
17913
  if (cb) cb(er);
17876
17914
  return;
17877
17915
  }
17878
- fs13.futimes(fd, at, mt, function(er2) {
17879
- fs13.close(fd, function(er22) {
17916
+ fs14.futimes(fd, at, mt, function(er2) {
17917
+ fs14.close(fd, function(er22) {
17880
17918
  if (cb) cb(er2 || er22);
17881
17919
  });
17882
17920
  });
17883
17921
  });
17884
17922
  };
17885
- fs13.lutimesSync = function(path13, at, mt) {
17886
- var fd = fs13.openSync(path13, constants.O_SYMLINK);
17923
+ fs14.lutimesSync = function(path14, at, mt) {
17924
+ var fd = fs14.openSync(path14, constants.O_SYMLINK);
17887
17925
  var ret;
17888
17926
  var threw = true;
17889
17927
  try {
17890
- ret = fs13.futimesSync(fd, at, mt);
17928
+ ret = fs14.futimesSync(fd, at, mt);
17891
17929
  threw = false;
17892
17930
  } finally {
17893
17931
  if (threw) {
17894
17932
  try {
17895
- fs13.closeSync(fd);
17933
+ fs14.closeSync(fd);
17896
17934
  } catch (er) {
17897
17935
  }
17898
17936
  } else {
17899
- fs13.closeSync(fd);
17937
+ fs14.closeSync(fd);
17900
17938
  }
17901
17939
  }
17902
17940
  return ret;
17903
17941
  };
17904
- } else if (fs13.futimes) {
17905
- fs13.lutimes = function(_a2, _b, _c4, cb) {
17942
+ } else if (fs14.futimes) {
17943
+ fs14.lutimes = function(_a2, _b, _c4, cb) {
17906
17944
  if (cb) process.nextTick(cb);
17907
17945
  };
17908
- fs13.lutimesSync = function() {
17946
+ fs14.lutimesSync = function() {
17909
17947
  };
17910
17948
  }
17911
17949
  }
@@ -17913,7 +17951,7 @@ var require_polyfills = __commonJS({
17913
17951
  function chmodFix(orig) {
17914
17952
  if (!orig) return orig;
17915
17953
  return function(target, mode, cb) {
17916
- return orig.call(fs12, target, mode, function(er) {
17954
+ return orig.call(fs13, target, mode, function(er) {
17917
17955
  if (chownErOk(er)) er = null;
17918
17956
  if (cb) cb.apply(this, arguments);
17919
17957
  });
@@ -17924,7 +17962,7 @@ var require_polyfills = __commonJS({
17924
17962
  if (!orig) return orig;
17925
17963
  return function(target, mode) {
17926
17964
  try {
17927
- return orig.call(fs12, target, mode);
17965
+ return orig.call(fs13, target, mode);
17928
17966
  } catch (er) {
17929
17967
  if (!chownErOk(er)) throw er;
17930
17968
  }
@@ -17934,7 +17972,7 @@ var require_polyfills = __commonJS({
17934
17972
  function chownFix(orig) {
17935
17973
  if (!orig) return orig;
17936
17974
  return function(target, uid, gid, cb) {
17937
- return orig.call(fs12, target, uid, gid, function(er) {
17975
+ return orig.call(fs13, target, uid, gid, function(er) {
17938
17976
  if (chownErOk(er)) er = null;
17939
17977
  if (cb) cb.apply(this, arguments);
17940
17978
  });
@@ -17945,7 +17983,7 @@ var require_polyfills = __commonJS({
17945
17983
  if (!orig) return orig;
17946
17984
  return function(target, uid, gid) {
17947
17985
  try {
17948
- return orig.call(fs12, target, uid, gid);
17986
+ return orig.call(fs13, target, uid, gid);
17949
17987
  } catch (er) {
17950
17988
  if (!chownErOk(er)) throw er;
17951
17989
  }
@@ -17967,14 +18005,14 @@ var require_polyfills = __commonJS({
17967
18005
  if (cb) cb.apply(this, arguments);
17968
18006
  }
17969
18007
  __name(callback, "callback");
17970
- return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
18008
+ return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
17971
18009
  };
17972
18010
  }
17973
18011
  __name(statFix, "statFix");
17974
18012
  function statFixSync(orig) {
17975
18013
  if (!orig) return orig;
17976
18014
  return function(target, options) {
17977
- var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
18015
+ var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
17978
18016
  if (stats) {
17979
18017
  if (stats.uid < 0) stats.uid += 4294967296;
17980
18018
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -18006,16 +18044,16 @@ var require_legacy_streams = __commonJS({
18006
18044
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
18007
18045
  var Stream2 = require("stream").Stream;
18008
18046
  module2.exports = legacy;
18009
- function legacy(fs12) {
18047
+ function legacy(fs13) {
18010
18048
  return {
18011
18049
  ReadStream,
18012
18050
  WriteStream
18013
18051
  };
18014
- function ReadStream(path13, options) {
18015
- if (!(this instanceof ReadStream)) return new ReadStream(path13, options);
18052
+ function ReadStream(path14, options) {
18053
+ if (!(this instanceof ReadStream)) return new ReadStream(path14, options);
18016
18054
  Stream2.call(this);
18017
18055
  var self2 = this;
18018
- this.path = path13;
18056
+ this.path = path14;
18019
18057
  this.fd = null;
18020
18058
  this.readable = true;
18021
18059
  this.paused = false;
@@ -18049,7 +18087,7 @@ var require_legacy_streams = __commonJS({
18049
18087
  });
18050
18088
  return;
18051
18089
  }
18052
- fs12.open(this.path, this.flags, this.mode, function(err, fd) {
18090
+ fs13.open(this.path, this.flags, this.mode, function(err, fd) {
18053
18091
  if (err) {
18054
18092
  self2.emit("error", err);
18055
18093
  self2.readable = false;
@@ -18061,10 +18099,10 @@ var require_legacy_streams = __commonJS({
18061
18099
  });
18062
18100
  }
18063
18101
  __name(ReadStream, "ReadStream");
18064
- function WriteStream(path13, options) {
18065
- if (!(this instanceof WriteStream)) return new WriteStream(path13, options);
18102
+ function WriteStream(path14, options) {
18103
+ if (!(this instanceof WriteStream)) return new WriteStream(path14, options);
18066
18104
  Stream2.call(this);
18067
- this.path = path13;
18105
+ this.path = path14;
18068
18106
  this.fd = null;
18069
18107
  this.writable = true;
18070
18108
  this.flags = "w";
@@ -18089,7 +18127,7 @@ var require_legacy_streams = __commonJS({
18089
18127
  this.busy = false;
18090
18128
  this._queue = [];
18091
18129
  if (this.fd === null) {
18092
- this._open = fs12.open;
18130
+ this._open = fs13.open;
18093
18131
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
18094
18132
  this.flush();
18095
18133
  }
@@ -18127,7 +18165,7 @@ var require_clone = __commonJS({
18127
18165
  // ../../node_modules/graceful-fs/graceful-fs.js
18128
18166
  var require_graceful_fs = __commonJS({
18129
18167
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
18130
- var fs12 = require("fs");
18168
+ var fs13 = require("fs");
18131
18169
  var polyfills = require_polyfills();
18132
18170
  var legacy = require_legacy_streams();
18133
18171
  var clone = require_clone();
@@ -18161,12 +18199,12 @@ var require_graceful_fs = __commonJS({
18161
18199
  m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
18162
18200
  console.error(m4);
18163
18201
  }, "debug");
18164
- if (!fs12[gracefulQueue]) {
18202
+ if (!fs13[gracefulQueue]) {
18165
18203
  queue = global[gracefulQueue] || [];
18166
- publishQueue(fs12, queue);
18167
- fs12.close = (function(fs$close) {
18204
+ publishQueue(fs13, queue);
18205
+ fs13.close = (function(fs$close) {
18168
18206
  function close(fd, cb) {
18169
- return fs$close.call(fs12, fd, function(err) {
18207
+ return fs$close.call(fs13, fd, function(err) {
18170
18208
  if (!err) {
18171
18209
  resetQueue();
18172
18210
  }
@@ -18179,10 +18217,10 @@ var require_graceful_fs = __commonJS({
18179
18217
  value: fs$close
18180
18218
  });
18181
18219
  return close;
18182
- })(fs12.close);
18183
- fs12.closeSync = (function(fs$closeSync) {
18220
+ })(fs13.close);
18221
+ fs13.closeSync = (function(fs$closeSync) {
18184
18222
  function closeSync(fd) {
18185
- fs$closeSync.apply(fs12, arguments);
18223
+ fs$closeSync.apply(fs13, arguments);
18186
18224
  resetQueue();
18187
18225
  }
18188
18226
  __name(closeSync, "closeSync");
@@ -18190,38 +18228,38 @@ var require_graceful_fs = __commonJS({
18190
18228
  value: fs$closeSync
18191
18229
  });
18192
18230
  return closeSync;
18193
- })(fs12.closeSync);
18231
+ })(fs13.closeSync);
18194
18232
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
18195
18233
  process.on("exit", function() {
18196
- debug(fs12[gracefulQueue]);
18197
- require("assert").equal(fs12[gracefulQueue].length, 0);
18234
+ debug(fs13[gracefulQueue]);
18235
+ require("assert").equal(fs13[gracefulQueue].length, 0);
18198
18236
  });
18199
18237
  }
18200
18238
  }
18201
18239
  var queue;
18202
18240
  if (!global[gracefulQueue]) {
18203
- publishQueue(global, fs12[gracefulQueue]);
18204
- }
18205
- module2.exports = patch(clone(fs12));
18206
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
18207
- module2.exports = patch(fs12);
18208
- fs12.__patched = true;
18209
- }
18210
- function patch(fs13) {
18211
- polyfills(fs13);
18212
- fs13.gracefulify = patch;
18213
- fs13.createReadStream = createReadStream2;
18214
- fs13.createWriteStream = createWriteStream2;
18215
- var fs$readFile = fs13.readFile;
18216
- fs13.readFile = readFile;
18217
- function readFile(path13, options, cb) {
18241
+ publishQueue(global, fs13[gracefulQueue]);
18242
+ }
18243
+ module2.exports = patch(clone(fs13));
18244
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
18245
+ module2.exports = patch(fs13);
18246
+ fs13.__patched = true;
18247
+ }
18248
+ function patch(fs14) {
18249
+ polyfills(fs14);
18250
+ fs14.gracefulify = patch;
18251
+ fs14.createReadStream = createReadStream2;
18252
+ fs14.createWriteStream = createWriteStream2;
18253
+ var fs$readFile = fs14.readFile;
18254
+ fs14.readFile = readFile;
18255
+ function readFile(path14, options, cb) {
18218
18256
  if (typeof options === "function")
18219
18257
  cb = options, options = null;
18220
- return go$readFile(path13, options, cb);
18221
- function go$readFile(path14, options2, cb2, startTime) {
18222
- return fs$readFile(path14, options2, function(err) {
18258
+ return go$readFile(path14, options, cb);
18259
+ function go$readFile(path15, options2, cb2, startTime) {
18260
+ return fs$readFile(path15, options2, function(err) {
18223
18261
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18224
- enqueue([go$readFile, [path14, options2, cb2], err, startTime || Date.now(), Date.now()]);
18262
+ enqueue([go$readFile, [path15, options2, cb2], err, startTime || Date.now(), Date.now()]);
18225
18263
  else {
18226
18264
  if (typeof cb2 === "function")
18227
18265
  cb2.apply(this, arguments);
@@ -18231,16 +18269,16 @@ var require_graceful_fs = __commonJS({
18231
18269
  __name(go$readFile, "go$readFile");
18232
18270
  }
18233
18271
  __name(readFile, "readFile");
18234
- var fs$writeFile = fs13.writeFile;
18235
- fs13.writeFile = writeFile;
18236
- function writeFile(path13, data2, options, cb) {
18272
+ var fs$writeFile = fs14.writeFile;
18273
+ fs14.writeFile = writeFile;
18274
+ function writeFile(path14, data2, options, cb) {
18237
18275
  if (typeof options === "function")
18238
18276
  cb = options, options = null;
18239
- return go$writeFile(path13, data2, options, cb);
18240
- function go$writeFile(path14, data3, options2, cb2, startTime) {
18241
- return fs$writeFile(path14, data3, options2, function(err) {
18277
+ return go$writeFile(path14, data2, options, cb);
18278
+ function go$writeFile(path15, data3, options2, cb2, startTime) {
18279
+ return fs$writeFile(path15, data3, options2, function(err) {
18242
18280
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18243
- enqueue([go$writeFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18281
+ enqueue([go$writeFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18244
18282
  else {
18245
18283
  if (typeof cb2 === "function")
18246
18284
  cb2.apply(this, arguments);
@@ -18250,17 +18288,17 @@ var require_graceful_fs = __commonJS({
18250
18288
  __name(go$writeFile, "go$writeFile");
18251
18289
  }
18252
18290
  __name(writeFile, "writeFile");
18253
- var fs$appendFile = fs13.appendFile;
18291
+ var fs$appendFile = fs14.appendFile;
18254
18292
  if (fs$appendFile)
18255
- fs13.appendFile = appendFile;
18256
- function appendFile(path13, data2, options, cb) {
18293
+ fs14.appendFile = appendFile;
18294
+ function appendFile(path14, data2, options, cb) {
18257
18295
  if (typeof options === "function")
18258
18296
  cb = options, options = null;
18259
- return go$appendFile(path13, data2, options, cb);
18260
- function go$appendFile(path14, data3, options2, cb2, startTime) {
18261
- return fs$appendFile(path14, data3, options2, function(err) {
18297
+ return go$appendFile(path14, data2, options, cb);
18298
+ function go$appendFile(path15, data3, options2, cb2, startTime) {
18299
+ return fs$appendFile(path15, data3, options2, function(err) {
18262
18300
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18263
- enqueue([go$appendFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18301
+ enqueue([go$appendFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18264
18302
  else {
18265
18303
  if (typeof cb2 === "function")
18266
18304
  cb2.apply(this, arguments);
@@ -18270,9 +18308,9 @@ var require_graceful_fs = __commonJS({
18270
18308
  __name(go$appendFile, "go$appendFile");
18271
18309
  }
18272
18310
  __name(appendFile, "appendFile");
18273
- var fs$copyFile = fs13.copyFile;
18311
+ var fs$copyFile = fs14.copyFile;
18274
18312
  if (fs$copyFile)
18275
- fs13.copyFile = copyFile;
18313
+ fs14.copyFile = copyFile;
18276
18314
  function copyFile(src, dest, flags, cb) {
18277
18315
  if (typeof flags === "function") {
18278
18316
  cb = flags;
@@ -18292,34 +18330,34 @@ var require_graceful_fs = __commonJS({
18292
18330
  __name(go$copyFile, "go$copyFile");
18293
18331
  }
18294
18332
  __name(copyFile, "copyFile");
18295
- var fs$readdir = fs13.readdir;
18296
- fs13.readdir = readdir2;
18333
+ var fs$readdir = fs14.readdir;
18334
+ fs14.readdir = readdir2;
18297
18335
  var noReaddirOptionVersions = /^v[0-5]\./;
18298
- function readdir2(path13, options, cb) {
18336
+ function readdir2(path14, options, cb) {
18299
18337
  if (typeof options === "function")
18300
18338
  cb = options, options = null;
18301
- var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18302
- return fs$readdir(path14, fs$readdirCallback(
18303
- path14,
18339
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
18340
+ return fs$readdir(path15, fs$readdirCallback(
18341
+ path15,
18304
18342
  options2,
18305
18343
  cb2,
18306
18344
  startTime
18307
18345
  ));
18308
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18309
- return fs$readdir(path14, options2, fs$readdirCallback(
18310
- path14,
18346
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
18347
+ return fs$readdir(path15, options2, fs$readdirCallback(
18348
+ path15,
18311
18349
  options2,
18312
18350
  cb2,
18313
18351
  startTime
18314
18352
  ));
18315
18353
  }, "go$readdir");
18316
- return go$readdir(path13, options, cb);
18317
- function fs$readdirCallback(path14, options2, cb2, startTime) {
18354
+ return go$readdir(path14, options, cb);
18355
+ function fs$readdirCallback(path15, options2, cb2, startTime) {
18318
18356
  return function(err, files) {
18319
18357
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18320
18358
  enqueue([
18321
18359
  go$readdir,
18322
- [path14, options2, cb2],
18360
+ [path15, options2, cb2],
18323
18361
  err,
18324
18362
  startTime || Date.now(),
18325
18363
  Date.now()
@@ -18336,21 +18374,21 @@ var require_graceful_fs = __commonJS({
18336
18374
  }
18337
18375
  __name(readdir2, "readdir");
18338
18376
  if (process.version.substr(0, 4) === "v0.8") {
18339
- var legStreams = legacy(fs13);
18377
+ var legStreams = legacy(fs14);
18340
18378
  ReadStream = legStreams.ReadStream;
18341
18379
  WriteStream = legStreams.WriteStream;
18342
18380
  }
18343
- var fs$ReadStream = fs13.ReadStream;
18381
+ var fs$ReadStream = fs14.ReadStream;
18344
18382
  if (fs$ReadStream) {
18345
18383
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
18346
18384
  ReadStream.prototype.open = ReadStream$open;
18347
18385
  }
18348
- var fs$WriteStream = fs13.WriteStream;
18386
+ var fs$WriteStream = fs14.WriteStream;
18349
18387
  if (fs$WriteStream) {
18350
18388
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
18351
18389
  WriteStream.prototype.open = WriteStream$open;
18352
18390
  }
18353
- Object.defineProperty(fs13, "ReadStream", {
18391
+ Object.defineProperty(fs14, "ReadStream", {
18354
18392
  get: /* @__PURE__ */ __name(function() {
18355
18393
  return ReadStream;
18356
18394
  }, "get"),
@@ -18360,7 +18398,7 @@ var require_graceful_fs = __commonJS({
18360
18398
  enumerable: true,
18361
18399
  configurable: true
18362
18400
  });
18363
- Object.defineProperty(fs13, "WriteStream", {
18401
+ Object.defineProperty(fs14, "WriteStream", {
18364
18402
  get: /* @__PURE__ */ __name(function() {
18365
18403
  return WriteStream;
18366
18404
  }, "get"),
@@ -18371,7 +18409,7 @@ var require_graceful_fs = __commonJS({
18371
18409
  configurable: true
18372
18410
  });
18373
18411
  var FileReadStream = ReadStream;
18374
- Object.defineProperty(fs13, "FileReadStream", {
18412
+ Object.defineProperty(fs14, "FileReadStream", {
18375
18413
  get: /* @__PURE__ */ __name(function() {
18376
18414
  return FileReadStream;
18377
18415
  }, "get"),
@@ -18382,7 +18420,7 @@ var require_graceful_fs = __commonJS({
18382
18420
  configurable: true
18383
18421
  });
18384
18422
  var FileWriteStream = WriteStream;
18385
- Object.defineProperty(fs13, "FileWriteStream", {
18423
+ Object.defineProperty(fs14, "FileWriteStream", {
18386
18424
  get: /* @__PURE__ */ __name(function() {
18387
18425
  return FileWriteStream;
18388
18426
  }, "get"),
@@ -18392,7 +18430,7 @@ var require_graceful_fs = __commonJS({
18392
18430
  enumerable: true,
18393
18431
  configurable: true
18394
18432
  });
18395
- function ReadStream(path13, options) {
18433
+ function ReadStream(path14, options) {
18396
18434
  if (this instanceof ReadStream)
18397
18435
  return fs$ReadStream.apply(this, arguments), this;
18398
18436
  else
@@ -18414,7 +18452,7 @@ var require_graceful_fs = __commonJS({
18414
18452
  });
18415
18453
  }
18416
18454
  __name(ReadStream$open, "ReadStream$open");
18417
- function WriteStream(path13, options) {
18455
+ function WriteStream(path14, options) {
18418
18456
  if (this instanceof WriteStream)
18419
18457
  return fs$WriteStream.apply(this, arguments), this;
18420
18458
  else
@@ -18434,24 +18472,24 @@ var require_graceful_fs = __commonJS({
18434
18472
  });
18435
18473
  }
18436
18474
  __name(WriteStream$open, "WriteStream$open");
18437
- function createReadStream2(path13, options) {
18438
- return new fs13.ReadStream(path13, options);
18475
+ function createReadStream2(path14, options) {
18476
+ return new fs14.ReadStream(path14, options);
18439
18477
  }
18440
18478
  __name(createReadStream2, "createReadStream");
18441
- function createWriteStream2(path13, options) {
18442
- return new fs13.WriteStream(path13, options);
18479
+ function createWriteStream2(path14, options) {
18480
+ return new fs14.WriteStream(path14, options);
18443
18481
  }
18444
18482
  __name(createWriteStream2, "createWriteStream");
18445
- var fs$open = fs13.open;
18446
- fs13.open = open;
18447
- function open(path13, flags, mode, cb) {
18483
+ var fs$open = fs14.open;
18484
+ fs14.open = open;
18485
+ function open(path14, flags, mode, cb) {
18448
18486
  if (typeof mode === "function")
18449
18487
  cb = mode, mode = null;
18450
- return go$open(path13, flags, mode, cb);
18451
- function go$open(path14, flags2, mode2, cb2, startTime) {
18452
- return fs$open(path14, flags2, mode2, function(err, fd) {
18488
+ return go$open(path14, flags, mode, cb);
18489
+ function go$open(path15, flags2, mode2, cb2, startTime) {
18490
+ return fs$open(path15, flags2, mode2, function(err, fd) {
18453
18491
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18454
- enqueue([go$open, [path14, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18492
+ enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18455
18493
  else {
18456
18494
  if (typeof cb2 === "function")
18457
18495
  cb2.apply(this, arguments);
@@ -18461,22 +18499,22 @@ var require_graceful_fs = __commonJS({
18461
18499
  __name(go$open, "go$open");
18462
18500
  }
18463
18501
  __name(open, "open");
18464
- return fs13;
18502
+ return fs14;
18465
18503
  }
18466
18504
  __name(patch, "patch");
18467
18505
  function enqueue(elem) {
18468
18506
  debug("ENQUEUE", elem[0].name, elem[1]);
18469
- fs12[gracefulQueue].push(elem);
18507
+ fs13[gracefulQueue].push(elem);
18470
18508
  retry();
18471
18509
  }
18472
18510
  __name(enqueue, "enqueue");
18473
18511
  var retryTimer;
18474
18512
  function resetQueue() {
18475
18513
  var now = Date.now();
18476
- for (var i4 = 0; i4 < fs12[gracefulQueue].length; ++i4) {
18477
- if (fs12[gracefulQueue][i4].length > 2) {
18478
- fs12[gracefulQueue][i4][3] = now;
18479
- fs12[gracefulQueue][i4][4] = now;
18514
+ for (var i4 = 0; i4 < fs13[gracefulQueue].length; ++i4) {
18515
+ if (fs13[gracefulQueue][i4].length > 2) {
18516
+ fs13[gracefulQueue][i4][3] = now;
18517
+ fs13[gracefulQueue][i4][4] = now;
18480
18518
  }
18481
18519
  }
18482
18520
  retry();
@@ -18485,9 +18523,9 @@ var require_graceful_fs = __commonJS({
18485
18523
  function retry() {
18486
18524
  clearTimeout(retryTimer);
18487
18525
  retryTimer = void 0;
18488
- if (fs12[gracefulQueue].length === 0)
18526
+ if (fs13[gracefulQueue].length === 0)
18489
18527
  return;
18490
- var elem = fs12[gracefulQueue].shift();
18528
+ var elem = fs13[gracefulQueue].shift();
18491
18529
  var fn = elem[0];
18492
18530
  var args = elem[1];
18493
18531
  var err = elem[2];
@@ -18509,7 +18547,7 @@ var require_graceful_fs = __commonJS({
18509
18547
  debug("RETRY", fn.name, args);
18510
18548
  fn.apply(null, args.concat([startTime]));
18511
18549
  } else {
18512
- fs12[gracefulQueue].push(elem);
18550
+ fs13[gracefulQueue].push(elem);
18513
18551
  }
18514
18552
  }
18515
18553
  if (retryTimer === void 0) {
@@ -18835,7 +18873,7 @@ var require_BufferList = __commonJS({
18835
18873
  this.head = this.tail = null;
18836
18874
  this.length = 0;
18837
18875
  }, "clear");
18838
- BufferList.prototype.join = /* @__PURE__ */ __name(function join9(s4) {
18876
+ BufferList.prototype.join = /* @__PURE__ */ __name(function join10(s4) {
18839
18877
  if (this.length === 0) return "";
18840
18878
  var p4 = this.head;
18841
18879
  var ret = "" + p4.data;
@@ -20671,22 +20709,22 @@ var require_lazystream = __commonJS({
20671
20709
  // ../../node_modules/normalize-path/index.js
20672
20710
  var require_normalize_path = __commonJS({
20673
20711
  "../../node_modules/normalize-path/index.js"(exports2, module2) {
20674
- module2.exports = function(path13, stripTrailing) {
20675
- if (typeof path13 !== "string") {
20712
+ module2.exports = function(path14, stripTrailing) {
20713
+ if (typeof path14 !== "string") {
20676
20714
  throw new TypeError("expected path to be a string");
20677
20715
  }
20678
- if (path13 === "\\" || path13 === "/") return "/";
20679
- var len = path13.length;
20680
- if (len <= 1) return path13;
20716
+ if (path14 === "\\" || path14 === "/") return "/";
20717
+ var len = path14.length;
20718
+ if (len <= 1) return path14;
20681
20719
  var prefix = "";
20682
- if (len > 4 && path13[3] === "\\") {
20683
- var ch = path13[2];
20684
- if ((ch === "?" || ch === ".") && path13.slice(0, 2) === "\\\\") {
20685
- path13 = path13.slice(2);
20720
+ if (len > 4 && path14[3] === "\\") {
20721
+ var ch = path14[2];
20722
+ if ((ch === "?" || ch === ".") && path14.slice(0, 2) === "\\\\") {
20723
+ path14 = path14.slice(2);
20686
20724
  prefix = "//";
20687
20725
  }
20688
20726
  }
20689
- var segs = path13.split(/[/\\]+/);
20727
+ var segs = path14.split(/[/\\]+/);
20690
20728
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
20691
20729
  segs.pop();
20692
20730
  }
@@ -29715,11 +29753,11 @@ var require_commonjs = __commonJS({
29715
29753
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
29716
29754
  }, "qmarksTestNoExtDot");
29717
29755
  var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
29718
- var path13 = {
29756
+ var path14 = {
29719
29757
  win32: { sep: "\\" },
29720
29758
  posix: { sep: "/" }
29721
29759
  };
29722
- exports2.sep = defaultPlatform4 === "win32" ? path13.win32.sep : path13.posix.sep;
29760
+ exports2.sep = defaultPlatform4 === "win32" ? path14.win32.sep : path14.posix.sep;
29723
29761
  exports2.minimatch.sep = exports2.sep;
29724
29762
  exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
29725
29763
  exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
@@ -33008,12 +33046,12 @@ var require_commonjs4 = __commonJS({
33008
33046
  /**
33009
33047
  * Get the Path object referenced by the string path, resolved from this Path
33010
33048
  */
33011
- resolve(path13) {
33012
- if (!path13) {
33049
+ resolve(path14) {
33050
+ if (!path14) {
33013
33051
  return this;
33014
33052
  }
33015
- const rootPath = this.getRootString(path13);
33016
- const dir = path13.substring(rootPath.length);
33053
+ const rootPath = this.getRootString(path14);
33054
+ const dir = path14.substring(rootPath.length);
33017
33055
  const dirParts = dir.split(this.splitSep);
33018
33056
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
33019
33057
  return result;
@@ -33769,8 +33807,8 @@ var require_commonjs4 = __commonJS({
33769
33807
  /**
33770
33808
  * @internal
33771
33809
  */
33772
- getRootString(path13) {
33773
- return node_path_1.win32.parse(path13).root;
33810
+ getRootString(path14) {
33811
+ return node_path_1.win32.parse(path14).root;
33774
33812
  }
33775
33813
  /**
33776
33814
  * @internal
@@ -33820,8 +33858,8 @@ var require_commonjs4 = __commonJS({
33820
33858
  /**
33821
33859
  * @internal
33822
33860
  */
33823
- getRootString(path13) {
33824
- return path13.startsWith("/") ? "/" : "";
33861
+ getRootString(path14) {
33862
+ return path14.startsWith("/") ? "/" : "";
33825
33863
  }
33826
33864
  /**
33827
33865
  * @internal
@@ -33874,8 +33912,8 @@ var require_commonjs4 = __commonJS({
33874
33912
  *
33875
33913
  * @internal
33876
33914
  */
33877
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS2 } = {}) {
33878
- this.#fs = fsFromOption2(fs12);
33915
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
33916
+ this.#fs = fsFromOption2(fs13);
33879
33917
  if (cwd instanceof URL || cwd.startsWith("file://")) {
33880
33918
  cwd = (0, node_url_1.fileURLToPath)(cwd);
33881
33919
  }
@@ -33914,11 +33952,11 @@ var require_commonjs4 = __commonJS({
33914
33952
  /**
33915
33953
  * Get the depth of a provided path, string, or the cwd
33916
33954
  */
33917
- depth(path13 = this.cwd) {
33918
- if (typeof path13 === "string") {
33919
- path13 = this.cwd.resolve(path13);
33955
+ depth(path14 = this.cwd) {
33956
+ if (typeof path14 === "string") {
33957
+ path14 = this.cwd.resolve(path14);
33920
33958
  }
33921
- return path13.depth();
33959
+ return path14.depth();
33922
33960
  }
33923
33961
  /**
33924
33962
  * Return the cache of child entries. Exposed so subclasses can create
@@ -34405,9 +34443,9 @@ var require_commonjs4 = __commonJS({
34405
34443
  process2();
34406
34444
  return results;
34407
34445
  }
34408
- chdir(path13 = this.cwd) {
34446
+ chdir(path14 = this.cwd) {
34409
34447
  const oldCwd = this.cwd;
34410
- this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
34448
+ this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
34411
34449
  this.cwd[setAsCwd2](oldCwd);
34412
34450
  }
34413
34451
  };
@@ -34437,8 +34475,8 @@ var require_commonjs4 = __commonJS({
34437
34475
  /**
34438
34476
  * @internal
34439
34477
  */
34440
- newRoot(fs12) {
34441
- return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34478
+ newRoot(fs13) {
34479
+ return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34442
34480
  }
34443
34481
  /**
34444
34482
  * Return true if the provided path string is an absolute path
@@ -34470,8 +34508,8 @@ var require_commonjs4 = __commonJS({
34470
34508
  /**
34471
34509
  * @internal
34472
34510
  */
34473
- newRoot(fs12) {
34474
- return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34511
+ newRoot(fs13) {
34512
+ return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34475
34513
  }
34476
34514
  /**
34477
34515
  * Return true if the provided path string is an absolute path
@@ -34816,8 +34854,8 @@ var require_processor = __commonJS({
34816
34854
  }
34817
34855
  // match, absolute, ifdir
34818
34856
  entries() {
34819
- return [...this.store.entries()].map(([path13, n4]) => [
34820
- path13,
34857
+ return [...this.store.entries()].map(([path14, n4]) => [
34858
+ path14,
34821
34859
  !!(n4 & 2),
34822
34860
  !!(n4 & 1)
34823
34861
  ]);
@@ -35044,9 +35082,9 @@ var require_walker = __commonJS({
35044
35082
  signal;
35045
35083
  maxDepth;
35046
35084
  includeChildMatches;
35047
- constructor(patterns, path13, opts) {
35085
+ constructor(patterns, path14, opts) {
35048
35086
  this.patterns = patterns;
35049
- this.path = path13;
35087
+ this.path = path14;
35050
35088
  this.opts = opts;
35051
35089
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
35052
35090
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -35065,11 +35103,11 @@ var require_walker = __commonJS({
35065
35103
  });
35066
35104
  }
35067
35105
  }
35068
- #ignored(path13) {
35069
- return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
35106
+ #ignored(path14) {
35107
+ return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
35070
35108
  }
35071
- #childrenIgnored(path13) {
35072
- return !!this.#ignore?.childrenIgnored?.(path13);
35109
+ #childrenIgnored(path14) {
35110
+ return !!this.#ignore?.childrenIgnored?.(path14);
35073
35111
  }
35074
35112
  // backpressure mechanism
35075
35113
  pause() {
@@ -35288,8 +35326,8 @@ var require_walker = __commonJS({
35288
35326
  __name(this, "GlobWalker");
35289
35327
  }
35290
35328
  matches = /* @__PURE__ */ new Set();
35291
- constructor(patterns, path13, opts) {
35292
- super(patterns, path13, opts);
35329
+ constructor(patterns, path14, opts) {
35330
+ super(patterns, path14, opts);
35293
35331
  }
35294
35332
  matchEmit(e4) {
35295
35333
  this.matches.add(e4);
@@ -35330,8 +35368,8 @@ var require_walker = __commonJS({
35330
35368
  __name(this, "GlobStream");
35331
35369
  }
35332
35370
  results;
35333
- constructor(patterns, path13, opts) {
35334
- super(patterns, path13, opts);
35371
+ constructor(patterns, path14, opts) {
35372
+ super(patterns, path14, opts);
35335
35373
  this.results = new minipass_1.Minipass({
35336
35374
  signal: this.signal,
35337
35375
  objectMode: true
@@ -35695,8 +35733,8 @@ var require_commonjs5 = __commonJS({
35695
35733
  // ../../node_modules/archiver-utils/file.js
35696
35734
  var require_file = __commonJS({
35697
35735
  "../../node_modules/archiver-utils/file.js"(exports2, module2) {
35698
- var fs12 = require_graceful_fs();
35699
- var path13 = require("path");
35736
+ var fs13 = require_graceful_fs();
35737
+ var path14 = require("path");
35700
35738
  var flatten2 = require_flatten();
35701
35739
  var difference = require_difference();
35702
35740
  var union = require_union();
@@ -35721,8 +35759,8 @@ var require_file = __commonJS({
35721
35759
  return result;
35722
35760
  }, "processPatterns");
35723
35761
  file.exists = function() {
35724
- var filepath = path13.join.apply(path13, arguments);
35725
- return fs12.existsSync(filepath);
35762
+ var filepath = path14.join.apply(path14, arguments);
35763
+ return fs13.existsSync(filepath);
35726
35764
  };
35727
35765
  file.expand = function(...args) {
35728
35766
  var options = isPlainObject(args[0]) ? args.shift() : {};
@@ -35735,12 +35773,12 @@ var require_file = __commonJS({
35735
35773
  });
35736
35774
  if (options.filter) {
35737
35775
  matches = matches.filter(function(filepath) {
35738
- filepath = path13.join(options.cwd || "", filepath);
35776
+ filepath = path14.join(options.cwd || "", filepath);
35739
35777
  try {
35740
35778
  if (typeof options.filter === "function") {
35741
35779
  return options.filter(filepath);
35742
35780
  } else {
35743
- return fs12.statSync(filepath)[options.filter]();
35781
+ return fs13.statSync(filepath)[options.filter]();
35744
35782
  }
35745
35783
  } catch (e4) {
35746
35784
  return false;
@@ -35752,7 +35790,7 @@ var require_file = __commonJS({
35752
35790
  file.expandMapping = function(patterns, destBase, options) {
35753
35791
  options = Object.assign({
35754
35792
  rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
35755
- return path13.join(destBase2 || "", destPath);
35793
+ return path14.join(destBase2 || "", destPath);
35756
35794
  }, "rename")
35757
35795
  }, options);
35758
35796
  var files = [];
@@ -35760,14 +35798,14 @@ var require_file = __commonJS({
35760
35798
  file.expand(options, patterns).forEach(function(src) {
35761
35799
  var destPath = src;
35762
35800
  if (options.flatten) {
35763
- destPath = path13.basename(destPath);
35801
+ destPath = path14.basename(destPath);
35764
35802
  }
35765
35803
  if (options.ext) {
35766
35804
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
35767
35805
  }
35768
35806
  var dest = options.rename(destBase, destPath, options);
35769
35807
  if (options.cwd) {
35770
- src = path13.join(options.cwd, src);
35808
+ src = path14.join(options.cwd, src);
35771
35809
  }
35772
35810
  dest = dest.replace(pathSeparatorRe, "/");
35773
35811
  src = src.replace(pathSeparatorRe, "/");
@@ -35848,8 +35886,8 @@ var require_file = __commonJS({
35848
35886
  // ../../node_modules/archiver-utils/index.js
35849
35887
  var require_archiver_utils = __commonJS({
35850
35888
  "../../node_modules/archiver-utils/index.js"(exports2, module2) {
35851
- var fs12 = require_graceful_fs();
35852
- var path13 = require("path");
35889
+ var fs13 = require_graceful_fs();
35890
+ var path14 = require("path");
35853
35891
  var isStream2 = require_is_stream();
35854
35892
  var lazystream = require_lazystream();
35855
35893
  var normalizePath = require_normalize_path();
@@ -35897,7 +35935,7 @@ var require_archiver_utils = __commonJS({
35897
35935
  };
35898
35936
  utils.lazyReadStream = function(filepath) {
35899
35937
  return new lazystream.Readable(function() {
35900
- return fs12.createReadStream(filepath);
35938
+ return fs13.createReadStream(filepath);
35901
35939
  });
35902
35940
  };
35903
35941
  utils.normalizeInputSource = function(source) {
@@ -35925,7 +35963,7 @@ var require_archiver_utils = __commonJS({
35925
35963
  callback = base;
35926
35964
  base = dirpath;
35927
35965
  }
35928
- fs12.readdir(dirpath, function(err, list3) {
35966
+ fs13.readdir(dirpath, function(err, list3) {
35929
35967
  var i4 = 0;
35930
35968
  var file;
35931
35969
  var filepath;
@@ -35937,11 +35975,11 @@ var require_archiver_utils = __commonJS({
35937
35975
  if (!file) {
35938
35976
  return callback(null, results);
35939
35977
  }
35940
- filepath = path13.join(dirpath, file);
35941
- fs12.stat(filepath, function(err2, stats) {
35978
+ filepath = path14.join(dirpath, file);
35979
+ fs13.stat(filepath, function(err2, stats) {
35942
35980
  results.push({
35943
35981
  path: filepath,
35944
- relative: path13.relative(base, filepath).replace(/\\/g, "/"),
35982
+ relative: path14.relative(base, filepath).replace(/\\/g, "/"),
35945
35983
  stats
35946
35984
  });
35947
35985
  if (stats && stats.isDirectory()) {
@@ -41668,10 +41706,10 @@ var require_ours2 = __commonJS({
41668
41706
  // ../../node_modules/archiver/lib/core.js
41669
41707
  var require_core = __commonJS({
41670
41708
  "../../node_modules/archiver/lib/core.js"(exports2, module2) {
41671
- var fs12 = require("fs");
41709
+ var fs13 = require("fs");
41672
41710
  var glob2 = require_readdir_glob();
41673
41711
  var async = require_async();
41674
- var path13 = require("path");
41712
+ var path14 = require("path");
41675
41713
  var util = require_archiver_utils();
41676
41714
  var inherits = require("util").inherits;
41677
41715
  var ArchiverError = require_error();
@@ -41732,7 +41770,7 @@ var require_core = __commonJS({
41732
41770
  data2.sourcePath = filepath;
41733
41771
  task.data = data2;
41734
41772
  this._entriesCount++;
41735
- if (data2.stats && data2.stats instanceof fs12.Stats) {
41773
+ if (data2.stats && data2.stats instanceof fs13.Stats) {
41736
41774
  task = this._updateQueueTaskWithStats(task, data2.stats);
41737
41775
  if (task) {
41738
41776
  if (data2.stats.size) {
@@ -41903,7 +41941,7 @@ var require_core = __commonJS({
41903
41941
  callback();
41904
41942
  return;
41905
41943
  }
41906
- fs12.lstat(task.filepath, function(err, stats) {
41944
+ fs13.lstat(task.filepath, function(err, stats) {
41907
41945
  if (this._state.aborted) {
41908
41946
  setImmediate(callback);
41909
41947
  return;
@@ -41946,10 +41984,10 @@ var require_core = __commonJS({
41946
41984
  task.data.sourceType = "buffer";
41947
41985
  task.source = Buffer.concat([]);
41948
41986
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
41949
- var linkPath = fs12.readlinkSync(task.filepath);
41950
- var dirName = path13.dirname(task.filepath);
41987
+ var linkPath = fs13.readlinkSync(task.filepath);
41988
+ var dirName = path14.dirname(task.filepath);
41951
41989
  task.data.type = "symlink";
41952
- task.data.linkname = path13.relative(dirName, path13.resolve(dirName, linkPath));
41990
+ task.data.linkname = path14.relative(dirName, path14.resolve(dirName, linkPath));
41953
41991
  task.data.sourceType = "buffer";
41954
41992
  task.source = Buffer.concat([]);
41955
41993
  } else {
@@ -57652,7 +57690,7 @@ function writeZipFile(directory, outputFile) {
57652
57690
  output.once("close", ok);
57653
57691
  archive.pipe(output);
57654
57692
  for (const file of files) {
57655
- const fullPath = path9.resolve(directory, file);
57693
+ const fullPath = path10.resolve(directory, file);
57656
57694
  const [data2, stat] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
57657
57695
  archive.append(data2, {
57658
57696
  name: file,
@@ -57687,12 +57725,12 @@ function sleep(ms) {
57687
57725
  function randomString() {
57688
57726
  return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
57689
57727
  }
57690
- var import_fs2, path9, archiver;
57728
+ var import_fs2, path10, archiver;
57691
57729
  var init_archive = __esm({
57692
57730
  "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
57693
57731
  "use strict";
57694
57732
  import_fs2 = require("fs");
57695
- path9 = __toESM(require("path"));
57733
+ path10 = __toESM(require("path"));
57696
57734
  init_esm7();
57697
57735
  archiver = require_archiver();
57698
57736
  __name(zipDirectory, "zipDirectory");
@@ -57715,12 +57753,12 @@ async function pathExists(pathName) {
57715
57753
  return false;
57716
57754
  }
57717
57755
  }
57718
- var fs8, pfs;
57756
+ var fs9, pfs;
57719
57757
  var init_fs_extra = __esm({
57720
57758
  "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
57721
57759
  "use strict";
57722
- fs8 = __toESM(require("fs"));
57723
- pfs = fs8.promises;
57760
+ fs9 = __toESM(require("fs"));
57761
+ pfs = fs9.promises;
57724
57762
  __name(pathExists, "pathExists");
57725
57763
  }
57726
57764
  });
@@ -57744,12 +57782,12 @@ async function cached(cache4, key, factory) {
57744
57782
  cache4.set(key, fresh);
57745
57783
  return fresh;
57746
57784
  }
57747
- var import_fs3, path10, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57785
+ var import_fs3, path11, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57748
57786
  var init_files = __esm({
57749
57787
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
57750
57788
  "use strict";
57751
57789
  import_fs3 = require("fs");
57752
- path10 = __toESM(require("path"));
57790
+ path11 = __toESM(require("path"));
57753
57791
  import_cloud_assembly_schema = __toESM(require_lib2());
57754
57792
  mime = __toESM(require_mime());
57755
57793
  init_client_options();
@@ -57764,7 +57802,7 @@ var init_files = __esm({
57764
57802
  this.workDir = workDir;
57765
57803
  this.asset = asset;
57766
57804
  this.host = host;
57767
- this.fileCacheRoot = path10.join(workDir, ".cache");
57805
+ this.fileCacheRoot = path11.join(workDir, ".cache");
57768
57806
  }
57769
57807
  static {
57770
57808
  __name(this, "FileAssetHandler");
@@ -57892,11 +57930,11 @@ var init_files = __esm({
57892
57930
  `'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
57893
57931
  );
57894
57932
  }
57895
- const fullPath = path10.resolve(this.workDir, source.path);
57933
+ const fullPath = path11.resolve(this.workDir, source.path);
57896
57934
  if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
57897
57935
  const contentType = "application/zip";
57898
57936
  await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
57899
- const packagedPath = path10.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57937
+ const packagedPath = path11.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57900
57938
  if (await pathExists(packagedPath)) {
57901
57939
  this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
57902
57940
  return { packagedPath, contentType };
@@ -58037,12 +58075,12 @@ function prefixTreeChars(xs, prefix = "") {
58037
58075
  }
58038
58076
  return ret;
58039
58077
  }
58040
- var fs10, path11, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58078
+ var fs11, path12, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58041
58079
  var init_asset_manifest = __esm({
58042
58080
  "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
58043
58081
  "use strict";
58044
- fs10 = __toESM(require("fs"));
58045
- path11 = __toESM(require("path"));
58082
+ fs11 = __toESM(require("fs"));
58083
+ path12 = __toESM(require("path"));
58046
58084
  import_cloud_assembly_schema2 = __toESM(require_lib2());
58047
58085
  AssetManifest = class _AssetManifest {
58048
58086
  constructor(directory, manifest) {
@@ -58064,7 +58102,7 @@ var init_asset_manifest = __esm({
58064
58102
  static fromFile(fileName) {
58065
58103
  try {
58066
58104
  const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
58067
- return new _AssetManifest(path11.dirname(fileName), obj);
58105
+ return new _AssetManifest(path12.dirname(fileName), obj);
58068
58106
  } catch (e4) {
58069
58107
  throw new Error(`Cannot read asset manifest '${fileName}': ${e4.message}`);
58070
58108
  }
@@ -58077,12 +58115,12 @@ var init_asset_manifest = __esm({
58077
58115
  static fromPath(filePath) {
58078
58116
  let st;
58079
58117
  try {
58080
- st = fs10.statSync(filePath);
58118
+ st = fs11.statSync(filePath);
58081
58119
  } catch (e4) {
58082
58120
  throw new Error(`Cannot read asset manifest at '${filePath}': ${e4.message}`);
58083
58121
  }
58084
58122
  if (st.isDirectory()) {
58085
- return _AssetManifest.fromFile(path11.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58123
+ return _AssetManifest.fromFile(path12.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58086
58124
  }
58087
58125
  return _AssetManifest.fromFile(filePath);
58088
58126
  }
@@ -59455,9 +59493,9 @@ var init_createPaginator = __esm({
59455
59493
  return await client.send(command, ...args);
59456
59494
  }, "makePagedClientRequest");
59457
59495
  __name(createPaginator, "createPaginator");
59458
- get = /* @__PURE__ */ __name((fromObject, path13) => {
59496
+ get = /* @__PURE__ */ __name((fromObject, path14) => {
59459
59497
  let cursor2 = fromObject;
59460
- const pathComponents = path13.split(".");
59498
+ const pathComponents = path14.split(".");
59461
59499
  for (const step of pathComponents) {
59462
59500
  if (!cursor2 || typeof cursor2 !== "object") {
59463
59501
  return void 0;
@@ -59982,27 +60020,76 @@ var require_createBufferedReadable = __commonJS({
59982
60020
  }
59983
60021
  });
59984
60022
 
60023
+ // ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
60024
+ var require_getAwsChunkedEncodingStream_browser = __commonJS({
60025
+ "../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js"(exports2) {
60026
+ "use strict";
60027
+ Object.defineProperty(exports2, "__esModule", { value: true });
60028
+ exports2.getAwsChunkedEncodingStream = void 0;
60029
+ var getAwsChunkedEncodingStream = /* @__PURE__ */ __name((readableStream, options) => {
60030
+ const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
60031
+ const checksumRequired = base64Encoder !== void 0 && bodyLengthChecker !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0;
60032
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0;
60033
+ const reader = readableStream.getReader();
60034
+ return new ReadableStream({
60035
+ async pull(controller) {
60036
+ const { value, done } = await reader.read();
60037
+ if (done) {
60038
+ controller.enqueue(`0\r
60039
+ `);
60040
+ if (checksumRequired) {
60041
+ const checksum = base64Encoder(await digest);
60042
+ controller.enqueue(`${checksumLocationName}:${checksum}\r
60043
+ `);
60044
+ controller.enqueue(`\r
60045
+ `);
60046
+ }
60047
+ controller.close();
60048
+ } else {
60049
+ controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r
60050
+ ${value}\r
60051
+ `);
60052
+ }
60053
+ }
60054
+ });
60055
+ }, "getAwsChunkedEncodingStream");
60056
+ exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60057
+ }
60058
+ });
60059
+
59985
60060
  // ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
59986
60061
  var require_getAwsChunkedEncodingStream = __commonJS({
59987
60062
  "../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports2) {
59988
60063
  "use strict";
59989
60064
  Object.defineProperty(exports2, "__esModule", { value: true });
59990
- exports2.getAwsChunkedEncodingStream = void 0;
59991
- var stream_1 = require("stream");
59992
- var getAwsChunkedEncodingStream = /* @__PURE__ */ __name((readableStream, options) => {
60065
+ exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60066
+ var node_stream_1 = require("node:stream");
60067
+ var getAwsChunkedEncodingStream_browser_1 = require_getAwsChunkedEncodingStream_browser();
60068
+ var stream_type_check_1 = require_stream_type_check();
60069
+ function getAwsChunkedEncodingStream(stream2, options) {
60070
+ const readable = stream2;
60071
+ const readableStream = stream2;
60072
+ if ((0, stream_type_check_1.isReadableStream)(readableStream)) {
60073
+ return (0, getAwsChunkedEncodingStream_browser_1.getAwsChunkedEncodingStream)(readableStream, options);
60074
+ }
59993
60075
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
59994
60076
  const checksumRequired = base64Encoder !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0;
59995
- const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0;
59996
- const awsChunkedEncodingStream = new stream_1.Readable({ read: /* @__PURE__ */ __name(() => {
59997
- }, "read") });
59998
- readableStream.on("data", (data2) => {
60077
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : void 0;
60078
+ const awsChunkedEncodingStream = new node_stream_1.Readable({
60079
+ read: /* @__PURE__ */ __name(() => {
60080
+ }, "read")
60081
+ });
60082
+ readable.on("data", (data2) => {
59999
60083
  const length = bodyLengthChecker(data2) || 0;
60084
+ if (length === 0) {
60085
+ return;
60086
+ }
60000
60087
  awsChunkedEncodingStream.push(`${length.toString(16)}\r
60001
60088
  `);
60002
60089
  awsChunkedEncodingStream.push(data2);
60003
60090
  awsChunkedEncodingStream.push("\r\n");
60004
60091
  });
60005
- readableStream.on("end", async () => {
60092
+ readable.on("end", async () => {
60006
60093
  awsChunkedEncodingStream.push(`0\r
60007
60094
  `);
60008
60095
  if (checksumRequired) {
@@ -60015,8 +60102,8 @@ var require_getAwsChunkedEncodingStream = __commonJS({
60015
60102
  awsChunkedEncodingStream.push(null);
60016
60103
  });
60017
60104
  return awsChunkedEncodingStream;
60018
- }, "getAwsChunkedEncodingStream");
60019
- exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60105
+ }
60106
+ __name(getAwsChunkedEncodingStream, "getAwsChunkedEncodingStream");
60020
60107
  }
60021
60108
  });
60022
60109
 
@@ -60446,12 +60533,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60446
60533
  const password = request.password ?? "";
60447
60534
  auth = `${username}:${password}`;
60448
60535
  }
60449
- let path13 = request.path;
60536
+ let path14 = request.path;
60450
60537
  if (queryString) {
60451
- path13 += `?${queryString}`;
60538
+ path14 += `?${queryString}`;
60452
60539
  }
60453
60540
  if (request.fragment) {
60454
- path13 += `#${request.fragment}`;
60541
+ path14 += `#${request.fragment}`;
60455
60542
  }
60456
60543
  let hostname = request.hostname ?? "";
60457
60544
  if (hostname[0] === "[" && hostname.endsWith("]")) {
@@ -60463,7 +60550,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60463
60550
  headers: request.headers,
60464
60551
  host: hostname,
60465
60552
  method: request.method,
60466
- path: path13,
60553
+ path: path14,
60467
60554
  port: request.port,
60468
60555
  agent,
60469
60556
  auth
@@ -60727,16 +60814,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60727
60814
  reject(err);
60728
60815
  }, "rejectWithDestroy");
60729
60816
  const queryString = querystringBuilder.buildQueryString(query || {});
60730
- let path13 = request.path;
60817
+ let path14 = request.path;
60731
60818
  if (queryString) {
60732
- path13 += `?${queryString}`;
60819
+ path14 += `?${queryString}`;
60733
60820
  }
60734
60821
  if (request.fragment) {
60735
- path13 += `#${request.fragment}`;
60822
+ path14 += `#${request.fragment}`;
60736
60823
  }
60737
60824
  const req = session.request({
60738
60825
  ...request.headers,
60739
- [http2.constants.HTTP2_HEADER_PATH]: path13,
60826
+ [http2.constants.HTTP2_HEADER_PATH]: path14,
60740
60827
  [http2.constants.HTTP2_HEADER_METHOD]: method
60741
60828
  });
60742
60829
  session.ref();
@@ -60934,13 +61021,13 @@ var require_dist_cjs15 = __commonJS({
60934
61021
  abortError.name = "AbortError";
60935
61022
  return Promise.reject(abortError);
60936
61023
  }
60937
- let path13 = request.path;
61024
+ let path14 = request.path;
60938
61025
  const queryString = querystringBuilder.buildQueryString(request.query || {});
60939
61026
  if (queryString) {
60940
- path13 += `?${queryString}`;
61027
+ path14 += `?${queryString}`;
60941
61028
  }
60942
61029
  if (request.fragment) {
60943
- path13 += `#${request.fragment}`;
61030
+ path14 += `#${request.fragment}`;
60944
61031
  }
60945
61032
  let auth = "";
60946
61033
  if (request.username != null || request.password != null) {
@@ -60949,7 +61036,7 @@ var require_dist_cjs15 = __commonJS({
60949
61036
  auth = `${username}:${password}@`;
60950
61037
  }
60951
61038
  const { port, method } = request;
60952
- const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path13}`;
61039
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path14}`;
60953
61040
  const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
60954
61041
  const requestOptions = {
60955
61042
  body,
@@ -61340,6 +61427,18 @@ var require_dist_cjs17 = __commonJS({
61340
61427
  return utilUtf8.toUtf8(this);
61341
61428
  }
61342
61429
  };
61430
+ Object.defineProperty(exports2, "isBlob", {
61431
+ enumerable: true,
61432
+ get: /* @__PURE__ */ __name(function() {
61433
+ return streamTypeCheck.isBlob;
61434
+ }, "get")
61435
+ });
61436
+ Object.defineProperty(exports2, "isReadableStream", {
61437
+ enumerable: true,
61438
+ get: /* @__PURE__ */ __name(function() {
61439
+ return streamTypeCheck.isReadableStream;
61440
+ }, "get")
61441
+ });
61343
61442
  exports2.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter2;
61344
61443
  Object.keys(ChecksumStream).forEach(function(k4) {
61345
61444
  if (k4 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k4)) Object.defineProperty(exports2, k4, {
@@ -61397,14 +61496,6 @@ var require_dist_cjs17 = __commonJS({
61397
61496
  }, "get")
61398
61497
  });
61399
61498
  });
61400
- Object.keys(streamTypeCheck).forEach(function(k4) {
61401
- if (k4 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k4)) Object.defineProperty(exports2, k4, {
61402
- enumerable: true,
61403
- get: /* @__PURE__ */ __name(function() {
61404
- return streamTypeCheck[k4];
61405
- }, "get")
61406
- });
61407
- });
61408
61499
  }
61409
61500
  });
61410
61501
 
@@ -61784,11 +61875,14 @@ function member(memberSchema, memberName) {
61784
61875
  const internalCtorAccess = NormalizedSchema;
61785
61876
  return new internalCtorAccess(memberSchema, memberName);
61786
61877
  }
61787
- var NormalizedSchema, isMemberSchema, isStaticSchema;
61878
+ var anno, NormalizedSchema, isMemberSchema, isStaticSchema;
61788
61879
  var init_NormalizedSchema = __esm({
61789
61880
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js"() {
61790
61881
  init_deref();
61791
61882
  init_translateTraits();
61883
+ anno = {
61884
+ it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it")
61885
+ };
61792
61886
  NormalizedSchema = class _NormalizedSchema {
61793
61887
  static {
61794
61888
  __name(this, "NormalizedSchema");
@@ -61870,7 +61964,7 @@ var init_NormalizedSchema = __esm({
61870
61964
  }
61871
61965
  getSchema() {
61872
61966
  const sc = this.schema;
61873
- if (sc[0] === 0) {
61967
+ if (Array.isArray(sc) && sc[0] === 0) {
61874
61968
  return sc[4];
61875
61969
  }
61876
61970
  return sc;
@@ -61896,7 +61990,18 @@ var init_NormalizedSchema = __esm({
61896
61990
  }
61897
61991
  isStructSchema() {
61898
61992
  const sc = this.getSchema();
61899
- return sc[0] === 3 || sc[0] === -3;
61993
+ if (typeof sc !== "object") {
61994
+ return false;
61995
+ }
61996
+ const id = sc[0];
61997
+ return id === 3 || id === -3 || id === 4;
61998
+ }
61999
+ isUnionSchema() {
62000
+ const sc = this.getSchema();
62001
+ if (typeof sc !== "object") {
62002
+ return false;
62003
+ }
62004
+ return sc[0] === 4;
61900
62005
  }
61901
62006
  isBlobSchema() {
61902
62007
  const sc = this.getSchema();
@@ -61932,9 +62037,7 @@ var init_NormalizedSchema = __esm({
61932
62037
  return !!streaming || this.getSchema() === 42;
61933
62038
  }
61934
62039
  isIdempotencyToken() {
61935
- const match2 = /* @__PURE__ */ __name((traits2) => (traits2 & 4) === 4 || !!traits2?.idempotencyToken, "match");
61936
- const { normalizedTraits, traits, memberTraits } = this;
61937
- return match2(normalizedTraits) || match2(traits) || match2(memberTraits);
62040
+ return !!this.getMergedTraits().idempotencyToken;
61938
62041
  }
61939
62042
  getMergedTraits() {
61940
62043
  return this.normalizedTraits ?? (this.normalizedTraits = {
@@ -62006,9 +62109,19 @@ var init_NormalizedSchema = __esm({
62006
62109
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
62007
62110
  }
62008
62111
  const struct2 = this.getSchema();
62009
- for (let i4 = 0; i4 < struct2[4].length; ++i4) {
62010
- yield [struct2[4][i4], member([struct2[5][i4], 0], struct2[4][i4])];
62112
+ const z2 = struct2[4].length;
62113
+ let it = struct2[anno.it];
62114
+ if (it && z2 === it.length) {
62115
+ yield* it;
62116
+ return;
62117
+ }
62118
+ it = Array(z2);
62119
+ for (let i4 = 0; i4 < z2; ++i4) {
62120
+ const k4 = struct2[4][i4];
62121
+ const v4 = member([struct2[5][i4], 0], k4);
62122
+ yield it[i4] = [k4, v4];
62011
62123
  }
62124
+ struct2[anno.it] = it;
62012
62125
  }
62013
62126
  };
62014
62127
  __name(member, "member");
@@ -63073,13 +63186,13 @@ function __disposeResources(env) {
63073
63186
  __name(next, "next");
63074
63187
  return next();
63075
63188
  }
63076
- function __rewriteRelativeImportExtension(path13, preserveJsx) {
63077
- if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
63078
- return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63189
+ function __rewriteRelativeImportExtension(path14, preserveJsx) {
63190
+ if (typeof path14 === "string" && /^\.\.?\//.test(path14)) {
63191
+ return path14.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63079
63192
  return tsx ? preserveJsx ? ".jsx" : ".js" : d4 && (!ext2 || !cm) ? m4 : d4 + ext2 + "." + cm.toLowerCase() + "js";
63080
63193
  });
63081
63194
  }
63082
- return path13;
63195
+ return path14;
63083
63196
  }
63084
63197
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
63085
63198
  var init_tslib_es6 = __esm({
@@ -63703,6 +63816,11 @@ var init_EventStreamSerde = __esm({
63703
63816
  [unionMember]: out
63704
63817
  };
63705
63818
  }
63819
+ if (body.byteLength === 0) {
63820
+ return {
63821
+ [unionMember]: {}
63822
+ };
63823
+ }
63706
63824
  }
63707
63825
  return {
63708
63826
  [unionMember]: await this.deserializer.read(eventStreamSchema, body)
@@ -63884,6 +64002,9 @@ var init_HttpProtocol = __esm({
63884
64002
  }
63885
64003
  }
63886
64004
  setHostPrefix(request, operationSchema, input) {
64005
+ if (this.serdeContext?.disableHostPrefix) {
64006
+ return;
64007
+ }
63887
64008
  const inputNs = NormalizedSchema.of(operationSchema.input);
63888
64009
  const opTraits = translateTraits(operationSchema.traits ?? {});
63889
64010
  if (opTraits.endpoint) {
@@ -64000,11 +64121,11 @@ var init_HttpBindingProtocol = __esm({
64000
64121
  const opTraits = translateTraits(operationSchema.traits);
64001
64122
  if (opTraits.http) {
64002
64123
  request.method = opTraits.http[0];
64003
- const [path13, search] = opTraits.http[1].split("?");
64124
+ const [path14, search] = opTraits.http[1].split("?");
64004
64125
  if (request.path == "/") {
64005
- request.path = path13;
64126
+ request.path = path14;
64006
64127
  } else {
64007
- request.path += path13;
64128
+ request.path += path14;
64008
64129
  }
64009
64130
  const traitSearchParams = new URLSearchParams(search ?? "");
64010
64131
  Object.assign(query, Object.fromEntries(traitSearchParams));
@@ -64014,6 +64135,11 @@ var init_HttpBindingProtocol = __esm({
64014
64135
  const memberTraits = memberNs.getMergedTraits() ?? {};
64015
64136
  const inputMemberValue = input[memberName];
64016
64137
  if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
64138
+ if (memberTraits.httpLabel) {
64139
+ if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
64140
+ throw new Error(`No value provided for input HTTP label: ${memberName}.`);
64141
+ }
64142
+ }
64017
64143
  continue;
64018
64144
  }
64019
64145
  if (memberTraits.httpPayload) {
@@ -64389,8 +64515,8 @@ var init_requestBuilder = __esm({
64389
64515
  return this;
64390
64516
  }
64391
64517
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
64392
- this.resolvePathStack.push((path13) => {
64393
- this.path = resolvedPath(path13, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64518
+ this.resolvePathStack.push((path14) => {
64519
+ this.path = resolvedPath(path14, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64394
64520
  });
64395
64521
  return this;
64396
64522
  }
@@ -65073,18 +65199,18 @@ var require_dist_cjs19 = __commonJS({
65073
65199
  }
65074
65200
  };
65075
65201
  var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
65076
- var getAttrPathList = /* @__PURE__ */ __name((path13) => {
65077
- const parts = path13.split(".");
65202
+ var getAttrPathList = /* @__PURE__ */ __name((path14) => {
65203
+ const parts = path14.split(".");
65078
65204
  const pathList = [];
65079
65205
  for (const part of parts) {
65080
65206
  const squareBracketIndex = part.indexOf("[");
65081
65207
  if (squareBracketIndex !== -1) {
65082
65208
  if (part.indexOf("]") !== part.length - 1) {
65083
- throw new EndpointError(`Path: '${path13}' does not end with ']'`);
65209
+ throw new EndpointError(`Path: '${path14}' does not end with ']'`);
65084
65210
  }
65085
65211
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
65086
65212
  if (Number.isNaN(parseInt(arrayIndex))) {
65087
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path13}'`);
65213
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path14}'`);
65088
65214
  }
65089
65215
  if (squareBracketIndex !== 0) {
65090
65216
  pathList.push(part.slice(0, squareBracketIndex));
@@ -65096,9 +65222,9 @@ var require_dist_cjs19 = __commonJS({
65096
65222
  }
65097
65223
  return pathList;
65098
65224
  }, "getAttrPathList");
65099
- var getAttr = /* @__PURE__ */ __name((value, path13) => getAttrPathList(path13).reduce((acc, index) => {
65225
+ var getAttr = /* @__PURE__ */ __name((value, path14) => getAttrPathList(path14).reduce((acc, index) => {
65100
65226
  if (typeof acc !== "object") {
65101
- throw new EndpointError(`Index '${index}' in '${path13}' not found in '${JSON.stringify(value)}'`);
65227
+ throw new EndpointError(`Index '${index}' in '${path14}' not found in '${JSON.stringify(value)}'`);
65102
65228
  } else if (Array.isArray(acc)) {
65103
65229
  return acc[parseInt(index)];
65104
65230
  }
@@ -65117,8 +65243,8 @@ var require_dist_cjs19 = __commonJS({
65117
65243
  return value;
65118
65244
  }
65119
65245
  if (typeof value === "object" && "hostname" in value) {
65120
- const { hostname: hostname2, port, protocol: protocol2 = "", path: path13 = "", query = {} } = value;
65121
- const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path13}`);
65246
+ const { hostname: hostname2, port, protocol: protocol2 = "", path: path14 = "", query = {} } = value;
65247
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path14}`);
65122
65248
  url.search = Object.entries(query).map(([k4, v4]) => `${k4}=${v4}`).join("&");
65123
65249
  return url;
65124
65250
  }
@@ -66662,10 +66788,10 @@ ${longDate}
66662
66788
  ${credentialScope}
66663
66789
  ${utilHexEncoding.toHex(hashedRequest)}`;
66664
66790
  }
66665
- getCanonicalPath({ path: path13 }) {
66791
+ getCanonicalPath({ path: path14 }) {
66666
66792
  if (this.uriEscapePath) {
66667
66793
  const normalizedPathSegments = [];
66668
- for (const pathSegment of path13.split("/")) {
66794
+ for (const pathSegment of path14.split("/")) {
66669
66795
  if (pathSegment?.length === 0)
66670
66796
  continue;
66671
66797
  if (pathSegment === ".")
@@ -66676,11 +66802,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
66676
66802
  normalizedPathSegments.push(pathSegment);
66677
66803
  }
66678
66804
  }
66679
- const normalizedPath = `${path13?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path13?.endsWith("/") ? "/" : ""}`;
66805
+ const normalizedPath = `${path14?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path14?.endsWith("/") ? "/" : ""}`;
66680
66806
  const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
66681
66807
  return doubleEncoded.replace(/%2F/g, "/");
66682
66808
  }
66683
- return path13;
66809
+ return path14;
66684
66810
  }
66685
66811
  validateResolvedCredentials(credentials) {
66686
66812
  if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
@@ -67768,6 +67894,7 @@ var init_CborCodec = __esm({
67768
67894
  init_protocols();
67769
67895
  init_schema4();
67770
67896
  init_serde();
67897
+ init_serde();
67771
67898
  import_util_base643 = __toESM(require_dist_cjs11());
67772
67899
  init_cbor();
67773
67900
  init_parseCborBody();
@@ -67847,10 +67974,23 @@ var init_CborCodec = __esm({
67847
67974
  newObject[key] = value;
67848
67975
  }
67849
67976
  }
67977
+ const isUnion = ns.isUnionSchema();
67978
+ if (isUnion && Array.isArray(sourceObject.$unknown)) {
67979
+ const [k4, v4] = sourceObject.$unknown;
67980
+ newObject[k4] = v4;
67981
+ } else if (typeof sourceObject.__type === "string") {
67982
+ for (const [k4, v4] of Object.entries(sourceObject)) {
67983
+ if (!(k4 in newObject)) {
67984
+ newObject[k4] = this.serialize(15, v4);
67985
+ }
67986
+ }
67987
+ }
67850
67988
  } else if (ns.isDocumentSchema()) {
67851
67989
  for (const key of Object.keys(sourceObject)) {
67852
67990
  newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
67853
67991
  }
67992
+ } else if (ns.isBigDecimalSchema()) {
67993
+ return sourceObject;
67854
67994
  }
67855
67995
  return newObject;
67856
67996
  }
@@ -67926,12 +68066,31 @@ var init_CborCodec = __esm({
67926
68066
  }
67927
68067
  }
67928
68068
  } else if (ns.isStructSchema()) {
68069
+ const isUnion = ns.isUnionSchema();
68070
+ let keys;
68071
+ if (isUnion) {
68072
+ keys = new Set(Object.keys(value).filter((k4) => k4 !== "__type"));
68073
+ }
67929
68074
  for (const [key, memberSchema] of ns.structIterator()) {
67930
- const v4 = this.readValue(memberSchema, value[key]);
67931
- if (v4 != null) {
67932
- newObject[key] = v4;
68075
+ if (isUnion) {
68076
+ keys.delete(key);
68077
+ }
68078
+ if (value[key] != null) {
68079
+ newObject[key] = this.readValue(memberSchema, value[key]);
68080
+ }
68081
+ }
68082
+ if (isUnion && keys?.size === 1 && Object.keys(newObject).length === 0) {
68083
+ const k4 = keys.values().next().value;
68084
+ newObject.$unknown = [k4, value[k4]];
68085
+ } else if (typeof value.__type === "string") {
68086
+ for (const [k4, v4] of Object.entries(value)) {
68087
+ if (!(k4 in newObject)) {
68088
+ newObject[k4] = v4;
68089
+ }
67933
68090
  }
67934
68091
  }
68092
+ } else if (value instanceof NumericValue) {
68093
+ return value;
67935
68094
  }
67936
68095
  return newObject;
67937
68096
  } else {
@@ -67988,11 +68147,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
67988
68147
  }
67989
68148
  }
67990
68149
  const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context);
67991
- const path13 = `/service/${service}/operation/${operation2}`;
68150
+ const path14 = `/service/${service}/operation/${operation2}`;
67992
68151
  if (request.path.endsWith("/")) {
67993
- request.path += path13.slice(1);
68152
+ request.path += path14.slice(1);
67994
68153
  } else {
67995
- request.path += path13;
68154
+ request.path += path14;
67996
68155
  }
67997
68156
  return request;
67998
68157
  }
@@ -68547,9 +68706,8 @@ var require_dist_cjs26 = __commonJS({
68547
68706
  }
68548
68707
  };
68549
68708
  var SENSITIVE_STRING = "***SensitiveInformation***";
68550
- var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2) => {
68551
- for (const command of Object.keys(commands4)) {
68552
- const CommandCtor = commands4[command];
68709
+ var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2, options) => {
68710
+ for (const [command, CommandCtor] of Object.entries(commands4)) {
68553
68711
  const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
68554
68712
  const command2 = new CommandCtor(args);
68555
68713
  if (typeof optionsOrCb === "function") {
@@ -68565,6 +68723,33 @@ var require_dist_cjs26 = __commonJS({
68565
68723
  const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
68566
68724
  Client2.prototype[methodName] = methodImpl;
68567
68725
  }
68726
+ const { paginators = {}, waiters = {} } = options ?? {};
68727
+ for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
68728
+ if (Client2.prototype[paginatorName] === void 0) {
68729
+ Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
68730
+ return paginatorFn({
68731
+ ...paginationConfiguration,
68732
+ client: this
68733
+ }, commandInput, ...rest);
68734
+ };
68735
+ }
68736
+ }
68737
+ for (const [waiterName, waiterFn] of Object.entries(waiters)) {
68738
+ if (Client2.prototype[waiterName] === void 0) {
68739
+ Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
68740
+ let config = waiterConfiguration;
68741
+ if (typeof waiterConfiguration === "number") {
68742
+ config = {
68743
+ maxWaitTime: waiterConfiguration
68744
+ };
68745
+ }
68746
+ return waiterFn({
68747
+ ...config,
68748
+ client: this
68749
+ }, commandInput, ...rest);
68750
+ };
68751
+ }
68752
+ }
68568
68753
  }, "createAggregatedClient");
68569
68754
  var ServiceException = class _ServiceException extends Error {
68570
68755
  static {
@@ -72470,14 +72655,14 @@ var require_readFile = __commonJS({
72470
72655
  var promises_1 = require("node:fs/promises");
72471
72656
  exports2.filePromises = {};
72472
72657
  exports2.fileIntercept = {};
72473
- var readFile = /* @__PURE__ */ __name((path13, options) => {
72474
- if (exports2.fileIntercept[path13] !== void 0) {
72475
- return exports2.fileIntercept[path13];
72658
+ var readFile = /* @__PURE__ */ __name((path14, options) => {
72659
+ if (exports2.fileIntercept[path14] !== void 0) {
72660
+ return exports2.fileIntercept[path14];
72476
72661
  }
72477
- if (!exports2.filePromises[path13] || options?.ignoreCache) {
72478
- exports2.filePromises[path13] = (0, promises_1.readFile)(path13, "utf8");
72662
+ if (!exports2.filePromises[path14] || options?.ignoreCache) {
72663
+ exports2.filePromises[path14] = (0, promises_1.readFile)(path14, "utf8");
72479
72664
  }
72480
- return exports2.filePromises[path13];
72665
+ return exports2.filePromises[path14];
72481
72666
  }, "readFile");
72482
72667
  exports2.readFile = readFile;
72483
72668
  }
@@ -72490,7 +72675,7 @@ var require_dist_cjs32 = __commonJS({
72490
72675
  var getHomeDir = require_getHomeDir();
72491
72676
  var getSSOTokenFilepath = require_getSSOTokenFilepath();
72492
72677
  var getSSOTokenFromFile = require_getSSOTokenFromFile();
72493
- var path13 = require("path");
72678
+ var path14 = require("path");
72494
72679
  var types2 = require_dist_cjs();
72495
72680
  var readFile = require_readFile();
72496
72681
  var ENV_PROFILE = "AWS_PROFILE";
@@ -72512,9 +72697,9 @@ var require_dist_cjs32 = __commonJS({
72512
72697
  ...data2.default && { default: data2.default }
72513
72698
  }), "getConfigData");
72514
72699
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
72515
- var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72700
+ var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72516
72701
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
72517
- var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72702
+ var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72518
72703
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
72519
72704
  var profileNameBlockList = ["__proto__", "profile __proto__"];
72520
72705
  var parseIni = /* @__PURE__ */ __name((iniData) => {
@@ -72569,11 +72754,11 @@ var require_dist_cjs32 = __commonJS({
72569
72754
  const relativeHomeDirPrefix = "~/";
72570
72755
  let resolvedFilepath = filepath;
72571
72756
  if (filepath.startsWith(relativeHomeDirPrefix)) {
72572
- resolvedFilepath = path13.join(homeDir, filepath.slice(2));
72757
+ resolvedFilepath = path14.join(homeDir, filepath.slice(2));
72573
72758
  }
72574
72759
  let resolvedConfigFilepath = configFilepath;
72575
72760
  if (configFilepath.startsWith(relativeHomeDirPrefix)) {
72576
- resolvedConfigFilepath = path13.join(homeDir, configFilepath.slice(2));
72761
+ resolvedConfigFilepath = path14.join(homeDir, configFilepath.slice(2));
72577
72762
  }
72578
72763
  const parsedFiles = await Promise.all([
72579
72764
  readFile.readFile(resolvedConfigFilepath, {
@@ -72612,8 +72797,8 @@ var require_dist_cjs32 = __commonJS({
72612
72797
  getFileRecord() {
72613
72798
  return readFile.fileIntercept;
72614
72799
  },
72615
- interceptFile(path14, contents) {
72616
- readFile.fileIntercept[path14] = Promise.resolve(contents);
72800
+ interceptFile(path15, contents) {
72801
+ readFile.fileIntercept[path15] = Promise.resolve(contents);
72617
72802
  },
72618
72803
  getTokenRecord() {
72619
72804
  return getSSOTokenFromFile.tokenIntercept;
@@ -72852,8 +73037,8 @@ var require_dist_cjs34 = __commonJS({
72852
73037
  return endpoint.url.href;
72853
73038
  }
72854
73039
  if ("hostname" in endpoint) {
72855
- const { protocol, hostname, port, path: path13 } = endpoint;
72856
- return `${protocol}//${hostname}${port ? ":" + port : ""}${path13}`;
73040
+ const { protocol, hostname, port, path: path14 } = endpoint;
73041
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path14}`;
72857
73042
  }
72858
73043
  }
72859
73044
  return endpoint;
@@ -73928,9 +74113,9 @@ var require_dist_cjs38 = __commonJS({
73928
74113
  }
73929
74114
  });
73930
74115
 
73931
- // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
74116
+ // ../../node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
73932
74117
  var require_dist_cjs39 = __commonJS({
73933
- "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
74118
+ "../../node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
73934
74119
  "use strict";
73935
74120
  var propertyProvider = require_dist_cjs23();
73936
74121
  var url = require("url");
@@ -74828,8 +75013,358 @@ var require_dist_cjs43 = __commonJS({
74828
75013
  }
74829
75014
  });
74830
75015
 
74831
- // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
75016
+ // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
74832
75017
  var require_dist_cjs44 = __commonJS({
75018
+ "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
75019
+ "use strict";
75020
+ var propertyProvider = require_dist_cjs23();
75021
+ var url = require("url");
75022
+ var buffer = require("buffer");
75023
+ var http = require("http");
75024
+ var nodeConfigProvider = require_dist_cjs33();
75025
+ var urlParser = require_dist_cjs21();
75026
+ function httpRequest(options) {
75027
+ return new Promise((resolve6, reject) => {
75028
+ const req = http.request({
75029
+ method: "GET",
75030
+ ...options,
75031
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
75032
+ });
75033
+ req.on("error", (err) => {
75034
+ reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
75035
+ req.destroy();
75036
+ });
75037
+ req.on("timeout", () => {
75038
+ reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
75039
+ req.destroy();
75040
+ });
75041
+ req.on("response", (res) => {
75042
+ const { statusCode = 400 } = res;
75043
+ if (statusCode < 200 || 300 <= statusCode) {
75044
+ reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
75045
+ req.destroy();
75046
+ }
75047
+ const chunks = [];
75048
+ res.on("data", (chunk) => {
75049
+ chunks.push(chunk);
75050
+ });
75051
+ res.on("end", () => {
75052
+ resolve6(buffer.Buffer.concat(chunks));
75053
+ req.destroy();
75054
+ });
75055
+ });
75056
+ req.end();
75057
+ });
75058
+ }
75059
+ __name(httpRequest, "httpRequest");
75060
+ var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
75061
+ var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
75062
+ accessKeyId: creds.AccessKeyId,
75063
+ secretAccessKey: creds.SecretAccessKey,
75064
+ sessionToken: creds.Token,
75065
+ expiration: new Date(creds.Expiration),
75066
+ ...creds.AccountId && { accountId: creds.AccountId }
75067
+ }), "fromImdsCredentials");
75068
+ var DEFAULT_TIMEOUT = 1e3;
75069
+ var DEFAULT_MAX_RETRIES = 0;
75070
+ var providerConfigFromInit = /* @__PURE__ */ __name(({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }), "providerConfigFromInit");
75071
+ var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {
75072
+ let promise = toRetry();
75073
+ for (let i4 = 0; i4 < maxRetries; i4++) {
75074
+ promise = promise.catch(toRetry);
75075
+ }
75076
+ return promise;
75077
+ }, "retry");
75078
+ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
75079
+ var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
75080
+ var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
75081
+ var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {
75082
+ const { timeout, maxRetries } = providerConfigFromInit(init);
75083
+ return () => retry(async () => {
75084
+ const requestOptions = await getCmdsUri({ logger: init.logger });
75085
+ const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
75086
+ if (!isImdsCredentials(credsResponse)) {
75087
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
75088
+ logger: init.logger
75089
+ });
75090
+ }
75091
+ return fromImdsCredentials(credsResponse);
75092
+ }, maxRetries);
75093
+ }, "fromContainerMetadata");
75094
+ var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {
75095
+ if (process.env[ENV_CMDS_AUTH_TOKEN]) {
75096
+ options.headers = {
75097
+ ...options.headers,
75098
+ Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
75099
+ };
75100
+ }
75101
+ const buffer2 = await httpRequest({
75102
+ ...options,
75103
+ timeout
75104
+ });
75105
+ return buffer2.toString();
75106
+ }, "requestFromEcsImds");
75107
+ var CMDS_IP = "169.254.170.2";
75108
+ var GREENGRASS_HOSTS = {
75109
+ localhost: true,
75110
+ "127.0.0.1": true
75111
+ };
75112
+ var GREENGRASS_PROTOCOLS = {
75113
+ "http:": true,
75114
+ "https:": true
75115
+ };
75116
+ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger: logger2 }) => {
75117
+ if (process.env[ENV_CMDS_RELATIVE_URI]) {
75118
+ return {
75119
+ hostname: CMDS_IP,
75120
+ path: process.env[ENV_CMDS_RELATIVE_URI]
75121
+ };
75122
+ }
75123
+ if (process.env[ENV_CMDS_FULL_URI]) {
75124
+ const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
75125
+ if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
75126
+ throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
75127
+ tryNextLink: false,
75128
+ logger: logger2
75129
+ });
75130
+ }
75131
+ if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
75132
+ throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
75133
+ tryNextLink: false,
75134
+ logger: logger2
75135
+ });
75136
+ }
75137
+ return {
75138
+ ...parsed,
75139
+ port: parsed.port ? parseInt(parsed.port, 10) : void 0
75140
+ };
75141
+ }
75142
+ throw new propertyProvider.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
75143
+ tryNextLink: false,
75144
+ logger: logger2
75145
+ });
75146
+ }, "getCmdsUri");
75147
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
75148
+ static {
75149
+ __name(this, "InstanceMetadataV1FallbackError");
75150
+ }
75151
+ tryNextLink;
75152
+ name = "InstanceMetadataV1FallbackError";
75153
+ constructor(message, tryNextLink = true) {
75154
+ super(message, tryNextLink);
75155
+ this.tryNextLink = tryNextLink;
75156
+ Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
75157
+ }
75158
+ };
75159
+ exports2.Endpoint = void 0;
75160
+ (function(Endpoint) {
75161
+ Endpoint["IPv4"] = "http://169.254.169.254";
75162
+ Endpoint["IPv6"] = "http://[fd00:ec2::254]";
75163
+ })(exports2.Endpoint || (exports2.Endpoint = {}));
75164
+ var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
75165
+ var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
75166
+ var ENDPOINT_CONFIG_OPTIONS = {
75167
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
75168
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
75169
+ default: void 0
75170
+ };
75171
+ var EndpointMode;
75172
+ (function(EndpointMode2) {
75173
+ EndpointMode2["IPv4"] = "IPv4";
75174
+ EndpointMode2["IPv6"] = "IPv6";
75175
+ })(EndpointMode || (EndpointMode = {}));
75176
+ var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
75177
+ var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
75178
+ var ENDPOINT_MODE_CONFIG_OPTIONS = {
75179
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
75180
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
75181
+ default: EndpointMode.IPv4
75182
+ };
75183
+ var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => urlParser.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
75184
+ var getFromEndpointConfig = /* @__PURE__ */ __name(async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
75185
+ var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {
75186
+ const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
75187
+ switch (endpointMode) {
75188
+ case EndpointMode.IPv4:
75189
+ return exports2.Endpoint.IPv4;
75190
+ case EndpointMode.IPv6:
75191
+ return exports2.Endpoint.IPv6;
75192
+ default:
75193
+ throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
75194
+ }
75195
+ }, "getFromEndpointModeConfig");
75196
+ var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
75197
+ var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
75198
+ var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
75199
+ var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger2) => {
75200
+ const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
75201
+ const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
75202
+ logger2.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
75203
+ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
75204
+ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
75205
+ return {
75206
+ ...credentials,
75207
+ ...originalExpiration ? { originalExpiration } : {},
75208
+ expiration: newExpiration
75209
+ };
75210
+ }, "getExtendedInstanceMetadataCredentials");
75211
+ var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
75212
+ const logger2 = options?.logger || console;
75213
+ let pastCredentials;
75214
+ return async () => {
75215
+ let credentials;
75216
+ try {
75217
+ credentials = await provider();
75218
+ if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
75219
+ credentials = getExtendedInstanceMetadataCredentials(credentials, logger2);
75220
+ }
75221
+ } catch (e4) {
75222
+ if (pastCredentials) {
75223
+ logger2.warn("Credential renew failed: ", e4);
75224
+ credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger2);
75225
+ } else {
75226
+ throw e4;
75227
+ }
75228
+ }
75229
+ pastCredentials = credentials;
75230
+ return credentials;
75231
+ };
75232
+ }, "staticStabilityProvider");
75233
+ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
75234
+ var IMDS_TOKEN_PATH = "/latest/api/token";
75235
+ var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
75236
+ var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
75237
+ var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
75238
+ var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
75239
+ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
75240
+ let disableFetchToken = false;
75241
+ const { logger: logger2, profile } = init;
75242
+ const { timeout, maxRetries } = providerConfigFromInit(init);
75243
+ const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
75244
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
75245
+ if (isImdsV1Fallback) {
75246
+ let fallbackBlockedFromProfile = false;
75247
+ let fallbackBlockedFromProcessEnv = false;
75248
+ const configValue = await nodeConfigProvider.loadConfig({
75249
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => {
75250
+ const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
75251
+ fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
75252
+ if (envValue === void 0) {
75253
+ throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
75254
+ }
75255
+ return fallbackBlockedFromProcessEnv;
75256
+ }, "environmentVariableSelector"),
75257
+ configFileSelector: /* @__PURE__ */ __name((profile2) => {
75258
+ const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
75259
+ fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
75260
+ return fallbackBlockedFromProfile;
75261
+ }, "configFileSelector"),
75262
+ default: false
75263
+ }, {
75264
+ profile
75265
+ })();
75266
+ if (init.ec2MetadataV1Disabled || configValue) {
75267
+ const causes = [];
75268
+ if (init.ec2MetadataV1Disabled)
75269
+ causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
75270
+ if (fallbackBlockedFromProfile)
75271
+ causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
75272
+ if (fallbackBlockedFromProcessEnv)
75273
+ causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
75274
+ throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
75275
+ }
75276
+ }
75277
+ const imdsProfile = (await retry(async () => {
75278
+ let profile2;
75279
+ try {
75280
+ profile2 = await getProfile(options);
75281
+ } catch (err) {
75282
+ if (err.statusCode === 401) {
75283
+ disableFetchToken = false;
75284
+ }
75285
+ throw err;
75286
+ }
75287
+ return profile2;
75288
+ }, maxRetries2)).trim();
75289
+ return retry(async () => {
75290
+ let creds;
75291
+ try {
75292
+ creds = await getCredentialsFromProfile(imdsProfile, options, init);
75293
+ } catch (err) {
75294
+ if (err.statusCode === 401) {
75295
+ disableFetchToken = false;
75296
+ }
75297
+ throw err;
75298
+ }
75299
+ return creds;
75300
+ }, maxRetries2);
75301
+ }, "getCredentials");
75302
+ return async () => {
75303
+ const endpoint = await getInstanceMetadataEndpoint();
75304
+ if (disableFetchToken) {
75305
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
75306
+ return getCredentials(maxRetries, { ...endpoint, timeout });
75307
+ } else {
75308
+ let token;
75309
+ try {
75310
+ token = (await getMetadataToken({ ...endpoint, timeout })).toString();
75311
+ } catch (error2) {
75312
+ if (error2?.statusCode === 400) {
75313
+ throw Object.assign(error2, {
75314
+ message: "EC2 Metadata token request returned error"
75315
+ });
75316
+ } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) {
75317
+ disableFetchToken = true;
75318
+ }
75319
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
75320
+ return getCredentials(maxRetries, { ...endpoint, timeout });
75321
+ }
75322
+ return getCredentials(maxRetries, {
75323
+ ...endpoint,
75324
+ headers: {
75325
+ [X_AWS_EC2_METADATA_TOKEN]: token
75326
+ },
75327
+ timeout
75328
+ });
75329
+ }
75330
+ };
75331
+ }, "getInstanceMetadataProvider");
75332
+ var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({
75333
+ ...options,
75334
+ path: IMDS_TOKEN_PATH,
75335
+ method: "PUT",
75336
+ headers: {
75337
+ "x-aws-ec2-metadata-token-ttl-seconds": "21600"
75338
+ }
75339
+ }), "getMetadataToken");
75340
+ var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
75341
+ var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {
75342
+ const credentialsResponse = JSON.parse((await httpRequest({
75343
+ ...options,
75344
+ path: IMDS_PATH + profile
75345
+ })).toString());
75346
+ if (!isImdsCredentials(credentialsResponse)) {
75347
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
75348
+ logger: init.logger
75349
+ });
75350
+ }
75351
+ return fromImdsCredentials(credentialsResponse);
75352
+ }, "getCredentialsFromProfile");
75353
+ exports2.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
75354
+ exports2.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
75355
+ exports2.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
75356
+ exports2.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
75357
+ exports2.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
75358
+ exports2.fromContainerMetadata = fromContainerMetadata;
75359
+ exports2.fromInstanceMetadata = fromInstanceMetadata;
75360
+ exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
75361
+ exports2.httpRequest = httpRequest;
75362
+ exports2.providerConfigFromInit = providerConfigFromInit;
75363
+ }
75364
+ });
75365
+
75366
+ // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
75367
+ var require_dist_cjs45 = __commonJS({
74833
75368
  "../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2) {
74834
75369
  "use strict";
74835
75370
  var configResolver = require_dist_cjs30();
@@ -74890,7 +75425,7 @@ var require_dist_cjs44 = __commonJS({
74890
75425
  }
74891
75426
  if (!process.env[ENV_IMDS_DISABLED]) {
74892
75427
  try {
74893
- const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
75428
+ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
74894
75429
  const endpoint = await getInstanceMetadataEndpoint();
74895
75430
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
74896
75431
  } catch (e4) {
@@ -75019,7 +75554,7 @@ var init_runtimeConfig = __esm({
75019
75554
  import_node_http_handler = __toESM(require_dist_cjs14());
75020
75555
  import_smithy_client9 = __toESM(require_dist_cjs26());
75021
75556
  import_util_body_length_node = __toESM(require_dist_cjs43());
75022
- import_util_defaults_mode_node = __toESM(require_dist_cjs44());
75557
+ import_util_defaults_mode_node = __toESM(require_dist_cjs45());
75023
75558
  import_util_retry = __toESM(require_dist_cjs36());
75024
75559
  init_runtimeConfig_shared();
75025
75560
  getRuntimeConfig2 = /* @__PURE__ */ __name((config) => {
@@ -75085,7 +75620,7 @@ var require_stsRegionDefaultResolver = __commonJS({
75085
75620
  });
75086
75621
 
75087
75622
  // ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
75088
- var require_dist_cjs45 = __commonJS({
75623
+ var require_dist_cjs46 = __commonJS({
75089
75624
  "../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
75090
75625
  "use strict";
75091
75626
  var stsRegionDefaultResolver2 = require_stsRegionDefaultResolver();
@@ -75196,7 +75731,7 @@ var init_httpAuthExtensionConfiguration = __esm({
75196
75731
  var import_region_config_resolver, import_protocol_http12, import_smithy_client10, resolveRuntimeExtensions;
75197
75732
  var init_runtimeExtensions = __esm({
75198
75733
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() {
75199
- import_region_config_resolver = __toESM(require_dist_cjs45());
75734
+ import_region_config_resolver = __toESM(require_dist_cjs46());
75200
75735
  import_protocol_http12 = __toESM(require_dist_cjs2());
75201
75736
  import_smithy_client10 = __toESM(require_dist_cjs26());
75202
75737
  init_httpAuthExtensionConfiguration();
@@ -75756,14 +76291,14 @@ var init_sso_oidc = __esm({
75756
76291
  });
75757
76292
 
75758
76293
  // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js
75759
- var require_dist_cjs46 = __commonJS({
76294
+ var require_dist_cjs47 = __commonJS({
75760
76295
  "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
75761
76296
  "use strict";
75762
76297
  var client = (init_client(), __toCommonJS(client_exports));
75763
76298
  var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
75764
76299
  var propertyProvider = require_dist_cjs23();
75765
76300
  var sharedIniFileLoader = require_dist_cjs32();
75766
- var fs12 = require("fs");
76301
+ var fs13 = require("fs");
75767
76302
  var fromEnvSigningName = /* @__PURE__ */ __name(({ logger: logger2, signingName } = {}) => async () => {
75768
76303
  logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
75769
76304
  if (!signingName) {
@@ -75809,7 +76344,7 @@ var require_dist_cjs46 = __commonJS({
75809
76344
  throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
75810
76345
  }
75811
76346
  }, "validateTokenKey");
75812
- var { writeFile } = fs12.promises;
76347
+ var { writeFile } = fs13.promises;
75813
76348
  var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
75814
76349
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
75815
76350
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -76211,7 +76746,7 @@ var require_runtimeConfig = __commonJS({
76211
76746
  var node_http_handler_1 = require_dist_cjs14();
76212
76747
  var smithy_client_1 = require_dist_cjs26();
76213
76748
  var util_body_length_node_1 = require_dist_cjs43();
76214
- var util_defaults_mode_node_1 = require_dist_cjs44();
76749
+ var util_defaults_mode_node_1 = require_dist_cjs45();
76215
76750
  var util_retry_1 = require_dist_cjs36();
76216
76751
  var runtimeConfig_shared_1 = require_runtimeConfig_shared();
76217
76752
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -76251,7 +76786,7 @@ var require_runtimeConfig = __commonJS({
76251
76786
  });
76252
76787
 
76253
76788
  // ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js
76254
- var require_dist_cjs47 = __commonJS({
76789
+ var require_dist_cjs48 = __commonJS({
76255
76790
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2) {
76256
76791
  "use strict";
76257
76792
  var middlewareHostHeader = require_dist_cjs3();
@@ -76267,7 +76802,7 @@ var require_dist_cjs47 = __commonJS({
76267
76802
  var smithyClient = require_dist_cjs26();
76268
76803
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider2();
76269
76804
  var runtimeConfig = require_runtimeConfig();
76270
- var regionConfigResolver = require_dist_cjs45();
76805
+ var regionConfigResolver = require_dist_cjs46();
76271
76806
  var protocolHttp = require_dist_cjs2();
76272
76807
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
76273
76808
  return Object.assign(options, {
@@ -76680,7 +77215,7 @@ var require_dist_cjs47 = __commonJS({
76680
77215
  var require_loadSso_CVy8iqsZ = __commonJS({
76681
77216
  "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js"(exports2) {
76682
77217
  "use strict";
76683
- var clientSso = require_dist_cjs47();
77218
+ var clientSso = require_dist_cjs48();
76684
77219
  Object.defineProperty(exports2, "GetRoleCredentialsCommand", {
76685
77220
  enumerable: true,
76686
77221
  get: /* @__PURE__ */ __name(function() {
@@ -76697,13 +77232,13 @@ var require_loadSso_CVy8iqsZ = __commonJS({
76697
77232
  });
76698
77233
 
76699
77234
  // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
76700
- var require_dist_cjs48 = __commonJS({
77235
+ var require_dist_cjs49 = __commonJS({
76701
77236
  "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2) {
76702
77237
  "use strict";
76703
77238
  var propertyProvider = require_dist_cjs23();
76704
77239
  var sharedIniFileLoader = require_dist_cjs32();
76705
77240
  var client = (init_client(), __toCommonJS(client_exports));
76706
- var tokenProviders = require_dist_cjs46();
77241
+ var tokenProviders = require_dist_cjs47();
76707
77242
  var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
76708
77243
  var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
76709
77244
  var resolveSSOCredentials = /* @__PURE__ */ __name(async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger: logger2 }) => {
@@ -77072,7 +77607,7 @@ var init_runtimeConfig2 = __esm({
77072
77607
  import_node_http_handler2 = __toESM(require_dist_cjs14());
77073
77608
  import_smithy_client16 = __toESM(require_dist_cjs26());
77074
77609
  import_util_body_length_node2 = __toESM(require_dist_cjs43());
77075
- import_util_defaults_mode_node2 = __toESM(require_dist_cjs44());
77610
+ import_util_defaults_mode_node2 = __toESM(require_dist_cjs45());
77076
77611
  import_util_retry2 = __toESM(require_dist_cjs36());
77077
77612
  init_runtimeConfig_shared2();
77078
77613
  getRuntimeConfig4 = /* @__PURE__ */ __name((config) => {
@@ -77158,7 +77693,7 @@ var init_httpAuthExtensionConfiguration2 = __esm({
77158
77693
  var import_region_config_resolver2, import_protocol_http13, import_smithy_client17, resolveRuntimeExtensions2;
77159
77694
  var init_runtimeExtensions2 = __esm({
77160
77695
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js"() {
77161
- import_region_config_resolver2 = __toESM(require_dist_cjs45());
77696
+ import_region_config_resolver2 = __toESM(require_dist_cjs46());
77162
77697
  import_protocol_http13 = __toESM(require_dist_cjs2());
77163
77698
  import_smithy_client17 = __toESM(require_dist_cjs26());
77164
77699
  init_httpAuthExtensionConfiguration2();
@@ -77541,7 +78076,7 @@ var init_signin = __esm({
77541
78076
  });
77542
78077
 
77543
78078
  // ../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
77544
- var require_dist_cjs49 = __commonJS({
78079
+ var require_dist_cjs50 = __commonJS({
77545
78080
  "../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports2) {
77546
78081
  "use strict";
77547
78082
  var client = (init_client(), __toCommonJS(client_exports));
@@ -78039,7 +78574,7 @@ var init_runtimeConfig3 = __esm({
78039
78574
  import_node_http_handler3 = __toESM(require_dist_cjs14());
78040
78575
  import_smithy_client23 = __toESM(require_dist_cjs26());
78041
78576
  import_util_body_length_node3 = __toESM(require_dist_cjs43());
78042
- import_util_defaults_mode_node3 = __toESM(require_dist_cjs44());
78577
+ import_util_defaults_mode_node3 = __toESM(require_dist_cjs45());
78043
78578
  import_util_retry3 = __toESM(require_dist_cjs36());
78044
78579
  init_runtimeConfig_shared3();
78045
78580
  getRuntimeConfig6 = /* @__PURE__ */ __name((config) => {
@@ -78137,7 +78672,7 @@ var init_httpAuthExtensionConfiguration3 = __esm({
78137
78672
  var import_region_config_resolver3, import_protocol_http14, import_smithy_client24, resolveRuntimeExtensions3;
78138
78673
  var init_runtimeExtensions3 = __esm({
78139
78674
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() {
78140
- import_region_config_resolver3 = __toESM(require_dist_cjs45());
78675
+ import_region_config_resolver3 = __toESM(require_dist_cjs46());
78141
78676
  import_protocol_http14 = __toESM(require_dist_cjs2());
78142
78677
  import_smithy_client24 = __toESM(require_dist_cjs26());
78143
78678
  init_httpAuthExtensionConfiguration3();
@@ -78601,7 +79136,7 @@ var import_region_config_resolver4, getAccountIdFromAssumedRoleUser, resolveRegi
78601
79136
  var init_defaultStsRoleAssumers = __esm({
78602
79137
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() {
78603
79138
  init_client();
78604
- import_region_config_resolver4 = __toESM(require_dist_cjs45());
79139
+ import_region_config_resolver4 = __toESM(require_dist_cjs46());
78605
79140
  init_AssumeRoleCommand();
78606
79141
  init_AssumeRoleWithWebIdentityCommand();
78607
79142
  getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => {
@@ -78789,7 +79324,7 @@ var init_sts = __esm({
78789
79324
  });
78790
79325
 
78791
79326
  // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
78792
- var require_dist_cjs50 = __commonJS({
79327
+ var require_dist_cjs51 = __commonJS({
78793
79328
  "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2) {
78794
79329
  "use strict";
78795
79330
  var sharedIniFileLoader = require_dist_cjs32();
@@ -78976,7 +79511,7 @@ var require_fromTokenFile = __commonJS({
78976
79511
  });
78977
79512
 
78978
79513
  // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
78979
- var require_dist_cjs51 = __commonJS({
79514
+ var require_dist_cjs52 = __commonJS({
78980
79515
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) {
78981
79516
  "use strict";
78982
79517
  var fromTokenFile = require_fromTokenFile();
@@ -79001,13 +79536,13 @@ var require_dist_cjs51 = __commonJS({
79001
79536
  });
79002
79537
 
79003
79538
  // ../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
79004
- var require_dist_cjs52 = __commonJS({
79539
+ var require_dist_cjs53 = __commonJS({
79005
79540
  "../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) {
79006
79541
  "use strict";
79007
79542
  var sharedIniFileLoader = require_dist_cjs32();
79008
79543
  var propertyProvider = require_dist_cjs23();
79009
79544
  var client = (init_client(), __toCommonJS(client_exports));
79010
- var credentialProviderLogin = require_dist_cjs49();
79545
+ var credentialProviderLogin = require_dist_cjs50();
79011
79546
  var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger2) => {
79012
79547
  const sourceProvidersMap = {
79013
79548
  EcsContainer: /* @__PURE__ */ __name(async (options) => {
@@ -79110,12 +79645,12 @@ var require_dist_cjs52 = __commonJS({
79110
79645
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
79111
79646
  }, "resolveLoginCredentials");
79112
79647
  var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
79113
- var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs50())).then(({ fromProcess }) => fromProcess({
79648
+ var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromProcess }) => fromProcess({
79114
79649
  ...options,
79115
79650
  profile
79116
79651
  })().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))), "resolveProcessCredentials");
79117
79652
  var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}, callerClientConfig) => {
79118
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
79653
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
79119
79654
  return fromSSO({
79120
79655
  profile,
79121
79656
  logger: options.logger,
@@ -79145,7 +79680,7 @@ var require_dist_cjs52 = __commonJS({
79145
79680
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
79146
79681
  }, "resolveStaticCredentials");
79147
79682
  var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
79148
- var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromTokenFile }) => fromTokenFile({
79683
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs52())).then(({ fromTokenFile }) => fromTokenFile({
79149
79684
  webIdentityTokenFile: profile.web_identity_token_file,
79150
79685
  roleArn: profile.role_arn,
79151
79686
  roleSessionName: profile.role_session_name,
@@ -79192,7 +79727,7 @@ var require_dist_cjs52 = __commonJS({
79192
79727
  });
79193
79728
 
79194
79729
  // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
79195
- var require_dist_cjs53 = __commonJS({
79730
+ var require_dist_cjs54 = __commonJS({
79196
79731
  "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2) {
79197
79732
  "use strict";
79198
79733
  var credentialProviderEnv = require_dist_cjs38();
@@ -79301,22 +79836,22 @@ var require_dist_cjs53 = __commonJS({
79301
79836
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
79302
79837
  throw new propertyProvider.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
79303
79838
  }
79304
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
79839
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
79305
79840
  return fromSSO(init)(awsIdentityProperties);
79306
79841
  },
79307
79842
  async (awsIdentityProperties) => {
79308
79843
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
79309
- const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
79844
+ const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs53()));
79310
79845
  return fromIni(init)(awsIdentityProperties);
79311
79846
  },
79312
79847
  async (awsIdentityProperties) => {
79313
79848
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
79314
- const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs50()));
79849
+ const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs51()));
79315
79850
  return fromProcess(init)(awsIdentityProperties);
79316
79851
  },
79317
79852
  async (awsIdentityProperties) => {
79318
79853
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
79319
- const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs51()));
79854
+ const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
79320
79855
  return fromTokenFile(init)(awsIdentityProperties);
79321
79856
  },
79322
79857
  async () => {
@@ -79467,7 +80002,7 @@ var require_runtimeConfig2 = __commonJS({
79467
80002
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
79468
80003
  var package_json_1 = tslib_1.__importDefault(require_package());
79469
80004
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
79470
- var credential_provider_node_1 = require_dist_cjs53();
80005
+ var credential_provider_node_1 = require_dist_cjs54();
79471
80006
  var util_user_agent_node_1 = require_dist_cjs41();
79472
80007
  var config_resolver_1 = require_dist_cjs30();
79473
80008
  var hash_node_1 = require_dist_cjs42();
@@ -79476,7 +80011,7 @@ var require_runtimeConfig2 = __commonJS({
79476
80011
  var node_http_handler_1 = require_dist_cjs14();
79477
80012
  var smithy_client_1 = require_dist_cjs26();
79478
80013
  var util_body_length_node_1 = require_dist_cjs43();
79479
- var util_defaults_mode_node_1 = require_dist_cjs44();
80014
+ var util_defaults_mode_node_1 = require_dist_cjs45();
79480
80015
  var util_retry_1 = require_dist_cjs36();
79481
80016
  var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
79482
80017
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -79517,7 +80052,7 @@ var require_runtimeConfig2 = __commonJS({
79517
80052
  });
79518
80053
 
79519
80054
  // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js
79520
- var require_dist_cjs54 = __commonJS({
80055
+ var require_dist_cjs55 = __commonJS({
79521
80056
  "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2) {
79522
80057
  "use strict";
79523
80058
  var getCircularReplacer = /* @__PURE__ */ __name(() => {
@@ -79688,7 +80223,7 @@ var require_dist_cjs54 = __commonJS({
79688
80223
  });
79689
80224
 
79690
80225
  // ../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js
79691
- var require_dist_cjs55 = __commonJS({
80226
+ var require_dist_cjs56 = __commonJS({
79692
80227
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js"(exports2) {
79693
80228
  "use strict";
79694
80229
  var middlewareHostHeader = require_dist_cjs3();
@@ -79704,9 +80239,9 @@ var require_dist_cjs55 = __commonJS({
79704
80239
  var smithyClient = require_dist_cjs26();
79705
80240
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider();
79706
80241
  var runtimeConfig = require_runtimeConfig2();
79707
- var regionConfigResolver = require_dist_cjs45();
80242
+ var regionConfigResolver = require_dist_cjs46();
79708
80243
  var protocolHttp = require_dist_cjs2();
79709
- var utilWaiter = require_dist_cjs54();
80244
+ var utilWaiter = require_dist_cjs55();
79710
80245
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
79711
80246
  return Object.assign(options, {
79712
80247
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -83604,7 +84139,7 @@ var require_dist_cjs55 = __commonJS({
83604
84139
  });
83605
84140
 
83606
84141
  // ../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js
83607
- var require_dist_cjs56 = __commonJS({
84142
+ var require_dist_cjs57 = __commonJS({
83608
84143
  "../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js"(exports2) {
83609
84144
  "use strict";
83610
84145
  var protocolHttp = require_dist_cjs2();
@@ -83651,7 +84186,7 @@ var require_dist_cjs56 = __commonJS({
83651
84186
  });
83652
84187
 
83653
84188
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
83654
- var require_dist_cjs57 = __commonJS({
84189
+ var require_dist_cjs58 = __commonJS({
83655
84190
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports2, module2) {
83656
84191
  var __defProp2 = Object.defineProperty;
83657
84192
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83681,7 +84216,7 @@ var require_dist_cjs57 = __commonJS({
83681
84216
  });
83682
84217
 
83683
84218
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
83684
- var require_dist_cjs58 = __commonJS({
84219
+ var require_dist_cjs59 = __commonJS({
83685
84220
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports2, module2) {
83686
84221
  var __defProp2 = Object.defineProperty;
83687
84222
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83707,7 +84242,7 @@ var require_dist_cjs58 = __commonJS({
83707
84242
  fromString: /* @__PURE__ */ __name(() => fromString, "fromString")
83708
84243
  });
83709
84244
  module2.exports = __toCommonJS2(src_exports);
83710
- var import_is_array_buffer = require_dist_cjs57();
84245
+ var import_is_array_buffer = require_dist_cjs58();
83711
84246
  var import_buffer = require("buffer");
83712
84247
  var fromArrayBuffer = /* @__PURE__ */ __name2((input, offset = 0, length = input.byteLength - offset) => {
83713
84248
  if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
@@ -83725,7 +84260,7 @@ var require_dist_cjs58 = __commonJS({
83725
84260
  });
83726
84261
 
83727
84262
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js
83728
- var require_dist_cjs59 = __commonJS({
84263
+ var require_dist_cjs60 = __commonJS({
83729
84264
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports2, module2) {
83730
84265
  var __defProp2 = Object.defineProperty;
83731
84266
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83752,7 +84287,7 @@ var require_dist_cjs59 = __commonJS({
83752
84287
  toUtf8: /* @__PURE__ */ __name(() => toUtf810, "toUtf8")
83753
84288
  });
83754
84289
  module2.exports = __toCommonJS2(src_exports);
83755
- var import_util_buffer_from = require_dist_cjs58();
84290
+ var import_util_buffer_from = require_dist_cjs59();
83756
84291
  var fromUtf87 = /* @__PURE__ */ __name2((input) => {
83757
84292
  const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
83758
84293
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
@@ -83784,7 +84319,7 @@ var require_convertToBuffer = __commonJS({
83784
84319
  "use strict";
83785
84320
  Object.defineProperty(exports2, "__esModule", { value: true });
83786
84321
  exports2.convertToBuffer = void 0;
83787
- var util_utf8_1 = require_dist_cjs59();
84322
+ var util_utf8_1 = require_dist_cjs60();
83788
84323
  var fromUtf87 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
83789
84324
  return Buffer.from(input, "utf8");
83790
84325
  } : util_utf8_1.fromUtf8;
@@ -84622,7 +85157,7 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS({
84622
85157
  });
84623
85158
 
84624
85159
  // ../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
84625
- var require_dist_cjs60 = __commonJS({
85160
+ var require_dist_cjs61 = __commonJS({
84626
85161
  "../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js"(exports2) {
84627
85162
  "use strict";
84628
85163
  var core = (init_dist_es2(), __toCommonJS(dist_es_exports2));
@@ -85018,7 +85553,7 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona
85018
85553
  });
85019
85554
 
85020
85555
  // ../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js
85021
- var require_dist_cjs61 = __commonJS({
85556
+ var require_dist_cjs62 = __commonJS({
85022
85557
  "../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js"(exports2) {
85023
85558
  "use strict";
85024
85559
  var validate = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
@@ -85049,13 +85584,13 @@ var require_dist_cjs61 = __commonJS({
85049
85584
  });
85050
85585
 
85051
85586
  // ../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
85052
- var require_dist_cjs62 = __commonJS({
85587
+ var require_dist_cjs63 = __commonJS({
85053
85588
  "../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js"(exports2) {
85054
85589
  "use strict";
85055
85590
  var protocolHttp = require_dist_cjs2();
85056
85591
  var smithyClient = require_dist_cjs26();
85057
85592
  var utilStream = require_dist_cjs17();
85058
- var utilArnParser = require_dist_cjs61();
85593
+ var utilArnParser = require_dist_cjs62();
85059
85594
  var signatureV4 = require_dist_cjs24();
85060
85595
  var utilConfigProvider = require_dist_cjs29();
85061
85596
  var core = (init_dist_es2(), __toCommonJS(dist_es_exports2));
@@ -85615,7 +86150,7 @@ var require_dist_cjs62 = __commonJS({
85615
86150
  });
85616
86151
 
85617
86152
  // ../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js
85618
- var require_dist_cjs63 = __commonJS({
86153
+ var require_dist_cjs64 = __commonJS({
85619
86154
  "../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js"(exports2) {
85620
86155
  "use strict";
85621
86156
  var resolveEventStreamSerdeConfig = /* @__PURE__ */ __name((input) => Object.assign(input, {
@@ -85626,10 +86161,10 @@ var require_dist_cjs63 = __commonJS({
85626
86161
  });
85627
86162
 
85628
86163
  // ../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
85629
- var require_dist_cjs64 = __commonJS({
86164
+ var require_dist_cjs65 = __commonJS({
85630
86165
  "../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2) {
85631
86166
  "use strict";
85632
- var middlewareSdkS3 = require_dist_cjs62();
86167
+ var middlewareSdkS3 = require_dist_cjs63();
85633
86168
  var signatureV4 = require_dist_cjs24();
85634
86169
  var signatureV4CrtContainer = {
85635
86170
  CrtSignerV4: null
@@ -85974,7 +86509,7 @@ var require_httpAuthSchemeProvider3 = __commonJS({
85974
86509
  Object.defineProperty(exports2, "__esModule", { value: true });
85975
86510
  exports2.resolveHttpAuthSchemeConfig = exports2.defaultS3HttpAuthSchemeProvider = exports2.defaultS3HttpAuthSchemeParametersProvider = void 0;
85976
86511
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
85977
- var signature_v4_multi_region_1 = require_dist_cjs64();
86512
+ var signature_v4_multi_region_1 = require_dist_cjs65();
85978
86513
  var middleware_endpoint_1 = require_dist_cjs34();
85979
86514
  var util_middleware_1 = require_dist_cjs6();
85980
86515
  var endpointResolver_1 = require_endpointResolver3();
@@ -86230,11 +86765,11 @@ var require_package3 = __commonJS({
86230
86765
  });
86231
86766
 
86232
86767
  // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
86233
- var require_dist_cjs65 = __commonJS({
86768
+ var require_dist_cjs66 = __commonJS({
86234
86769
  "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2) {
86235
86770
  "use strict";
86236
86771
  var utilConfigProvider = require_dist_cjs29();
86237
- var utilArnParser = require_dist_cjs61();
86772
+ var utilArnParser = require_dist_cjs62();
86238
86773
  var protocolHttp = require_dist_cjs2();
86239
86774
  var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
86240
86775
  var NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
@@ -86563,7 +87098,7 @@ var require_dist_cjs65 = __commonJS({
86563
87098
  });
86564
87099
 
86565
87100
  // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js
86566
- var require_dist_cjs66 = __commonJS({
87101
+ var require_dist_cjs67 = __commonJS({
86567
87102
  "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2) {
86568
87103
  "use strict";
86569
87104
  var crc32 = require_main3();
@@ -86970,10 +87505,10 @@ var require_dist_cjs66 = __commonJS({
86970
87505
  });
86971
87506
 
86972
87507
  // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js
86973
- var require_dist_cjs67 = __commonJS({
87508
+ var require_dist_cjs68 = __commonJS({
86974
87509
  "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2) {
86975
87510
  "use strict";
86976
- var eventstreamCodec = require_dist_cjs66();
87511
+ var eventstreamCodec = require_dist_cjs67();
86977
87512
  function getChunkedStream(source) {
86978
87513
  let currentMessageTotalLength = 0;
86979
87514
  let currentMessagePendingLength = 0;
@@ -87102,10 +87637,10 @@ var require_dist_cjs67 = __commonJS({
87102
87637
  });
87103
87638
 
87104
87639
  // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js
87105
- var require_dist_cjs68 = __commonJS({
87640
+ var require_dist_cjs69 = __commonJS({
87106
87641
  "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2) {
87107
87642
  "use strict";
87108
- var eventstreamSerdeUniversal = require_dist_cjs67();
87643
+ var eventstreamSerdeUniversal = require_dist_cjs68();
87109
87644
  var stream2 = require("stream");
87110
87645
  async function* readabletoIterable(readStream) {
87111
87646
  let streamEnded = false;
@@ -87160,10 +87695,10 @@ var require_dist_cjs68 = __commonJS({
87160
87695
  });
87161
87696
 
87162
87697
  // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js
87163
- var require_dist_cjs69 = __commonJS({
87698
+ var require_dist_cjs70 = __commonJS({
87164
87699
  "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
87165
87700
  "use strict";
87166
- var fs12 = require("fs");
87701
+ var fs13 = require("fs");
87167
87702
  var utilUtf8 = require_dist_cjs10();
87168
87703
  var stream2 = require("stream");
87169
87704
  var HashCalculator = class extends stream2.Writable {
@@ -87189,7 +87724,7 @@ var require_dist_cjs69 = __commonJS({
87189
87724
  reject(new Error("Unable to calculate hash for non-file streams."));
87190
87725
  return;
87191
87726
  }
87192
- const fileStreamTee = fs12.createReadStream(fileStream.path, {
87727
+ const fileStreamTee = fs13.createReadStream(fileStream.path, {
87193
87728
  start: fileStream.start,
87194
87729
  end: fileStream.end
87195
87730
  });
@@ -87237,7 +87772,7 @@ var require_runtimeConfig_shared3 = __commonJS({
87237
87772
  exports2.getRuntimeConfig = void 0;
87238
87773
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
87239
87774
  var protocols_1 = (init_protocols2(), __toCommonJS(protocols_exports2));
87240
- var signature_v4_multi_region_1 = require_dist_cjs64();
87775
+ var signature_v4_multi_region_1 = require_dist_cjs65();
87241
87776
  var smithy_client_1 = require_dist_cjs26();
87242
87777
  var url_parser_1 = require_dist_cjs21();
87243
87778
  var util_base64_1 = require_dist_cjs11();
@@ -87298,21 +87833,21 @@ var require_runtimeConfig3 = __commonJS({
87298
87833
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
87299
87834
  var package_json_1 = tslib_1.__importDefault(require_package3());
87300
87835
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
87301
- var credential_provider_node_1 = require_dist_cjs53();
87302
- var middleware_bucket_endpoint_1 = require_dist_cjs65();
87303
- var middleware_flexible_checksums_1 = require_dist_cjs60();
87304
- var middleware_sdk_s3_1 = require_dist_cjs62();
87836
+ var credential_provider_node_1 = require_dist_cjs54();
87837
+ var middleware_bucket_endpoint_1 = require_dist_cjs66();
87838
+ var middleware_flexible_checksums_1 = require_dist_cjs61();
87839
+ var middleware_sdk_s3_1 = require_dist_cjs63();
87305
87840
  var util_user_agent_node_1 = require_dist_cjs41();
87306
87841
  var config_resolver_1 = require_dist_cjs30();
87307
- var eventstream_serde_node_1 = require_dist_cjs68();
87842
+ var eventstream_serde_node_1 = require_dist_cjs69();
87308
87843
  var hash_node_1 = require_dist_cjs42();
87309
- var hash_stream_node_1 = require_dist_cjs69();
87844
+ var hash_stream_node_1 = require_dist_cjs70();
87310
87845
  var middleware_retry_1 = require_dist_cjs37();
87311
87846
  var node_config_provider_1 = require_dist_cjs33();
87312
87847
  var node_http_handler_1 = require_dist_cjs14();
87313
87848
  var smithy_client_1 = require_dist_cjs26();
87314
87849
  var util_body_length_node_1 = require_dist_cjs43();
87315
- var util_defaults_mode_node_1 = require_dist_cjs44();
87850
+ var util_defaults_mode_node_1 = require_dist_cjs45();
87316
87851
  var util_retry_1 = require_dist_cjs36();
87317
87852
  var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
87318
87853
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -87362,7 +87897,7 @@ var require_runtimeConfig3 = __commonJS({
87362
87897
  });
87363
87898
 
87364
87899
  // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js
87365
- var require_dist_cjs70 = __commonJS({
87900
+ var require_dist_cjs71 = __commonJS({
87366
87901
  "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2) {
87367
87902
  "use strict";
87368
87903
  function ssecMiddleware(options) {
@@ -87436,7 +87971,7 @@ var require_dist_cjs70 = __commonJS({
87436
87971
  });
87437
87972
 
87438
87973
  // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js
87439
- var require_dist_cjs71 = __commonJS({
87974
+ var require_dist_cjs72 = __commonJS({
87440
87975
  "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2) {
87441
87976
  "use strict";
87442
87977
  function locationConstraintMiddleware(options) {
@@ -87471,31 +88006,31 @@ var require_dist_cjs71 = __commonJS({
87471
88006
  });
87472
88007
 
87473
88008
  // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js
87474
- var require_dist_cjs72 = __commonJS({
88009
+ var require_dist_cjs73 = __commonJS({
87475
88010
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2) {
87476
88011
  "use strict";
87477
- var middlewareExpectContinue = require_dist_cjs56();
87478
- var middlewareFlexibleChecksums = require_dist_cjs60();
88012
+ var middlewareExpectContinue = require_dist_cjs57();
88013
+ var middlewareFlexibleChecksums = require_dist_cjs61();
87479
88014
  var middlewareHostHeader = require_dist_cjs3();
87480
88015
  var middlewareLogger = require_dist_cjs4();
87481
88016
  var middlewareRecursionDetection = require_dist_cjs5();
87482
- var middlewareSdkS3 = require_dist_cjs62();
88017
+ var middlewareSdkS3 = require_dist_cjs63();
87483
88018
  var middlewareUserAgent = require_dist_cjs28();
87484
88019
  var configResolver = require_dist_cjs30();
87485
88020
  var core = (init_dist_es(), __toCommonJS(dist_es_exports));
87486
88021
  var schema = (init_schema4(), __toCommonJS(schema_exports));
87487
- var eventstreamSerdeConfigResolver = require_dist_cjs63();
88022
+ var eventstreamSerdeConfigResolver = require_dist_cjs64();
87488
88023
  var middlewareContentLength = require_dist_cjs31();
87489
88024
  var middlewareEndpoint = require_dist_cjs34();
87490
88025
  var middlewareRetry = require_dist_cjs37();
87491
88026
  var smithyClient = require_dist_cjs26();
87492
88027
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider3();
87493
88028
  var runtimeConfig = require_runtimeConfig3();
87494
- var regionConfigResolver = require_dist_cjs45();
88029
+ var regionConfigResolver = require_dist_cjs46();
87495
88030
  var protocolHttp = require_dist_cjs2();
87496
- var middlewareSsec = require_dist_cjs70();
87497
- var middlewareLocationConstraint = require_dist_cjs71();
87498
- var utilWaiter = require_dist_cjs54();
88031
+ var middlewareSsec = require_dist_cjs71();
88032
+ var middlewareLocationConstraint = require_dist_cjs72();
88033
+ var utilWaiter = require_dist_cjs55();
87499
88034
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
87500
88035
  return Object.assign(options, {
87501
88036
  useFipsEndpoint: options.useFipsEndpoint ?? false,
@@ -96177,7 +96712,7 @@ var require_runtimeConfig4 = __commonJS({
96177
96712
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
96178
96713
  var package_json_1 = tslib_1.__importDefault(require_package4());
96179
96714
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
96180
- var credential_provider_node_1 = require_dist_cjs53();
96715
+ var credential_provider_node_1 = require_dist_cjs54();
96181
96716
  var util_user_agent_node_1 = require_dist_cjs41();
96182
96717
  var config_resolver_1 = require_dist_cjs30();
96183
96718
  var hash_node_1 = require_dist_cjs42();
@@ -96186,7 +96721,7 @@ var require_runtimeConfig4 = __commonJS({
96186
96721
  var node_http_handler_1 = require_dist_cjs14();
96187
96722
  var smithy_client_1 = require_dist_cjs26();
96188
96723
  var util_body_length_node_1 = require_dist_cjs43();
96189
- var util_defaults_mode_node_1 = require_dist_cjs44();
96724
+ var util_defaults_mode_node_1 = require_dist_cjs45();
96190
96725
  var util_retry_1 = require_dist_cjs36();
96191
96726
  var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
96192
96727
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -96227,7 +96762,7 @@ var require_runtimeConfig4 = __commonJS({
96227
96762
  });
96228
96763
 
96229
96764
  // ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js
96230
- var require_dist_cjs73 = __commonJS({
96765
+ var require_dist_cjs74 = __commonJS({
96231
96766
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js"(exports2) {
96232
96767
  "use strict";
96233
96768
  var middlewareHostHeader = require_dist_cjs3();
@@ -96243,7 +96778,7 @@ var require_dist_cjs73 = __commonJS({
96243
96778
  var smithyClient = require_dist_cjs26();
96244
96779
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider4();
96245
96780
  var runtimeConfig = require_runtimeConfig4();
96246
- var regionConfigResolver = require_dist_cjs45();
96781
+ var regionConfigResolver = require_dist_cjs46();
96247
96782
  var protocolHttp = require_dist_cjs2();
96248
96783
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
96249
96784
  return Object.assign(options, {
@@ -97944,7 +98479,7 @@ var require_runtimeConfig5 = __commonJS({
97944
98479
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
97945
98480
  var package_json_1 = tslib_1.__importDefault(require_package5());
97946
98481
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
97947
- var credential_provider_node_1 = require_dist_cjs53();
98482
+ var credential_provider_node_1 = require_dist_cjs54();
97948
98483
  var util_user_agent_node_1 = require_dist_cjs41();
97949
98484
  var config_resolver_1 = require_dist_cjs30();
97950
98485
  var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
@@ -97954,7 +98489,7 @@ var require_runtimeConfig5 = __commonJS({
97954
98489
  var node_http_handler_1 = require_dist_cjs14();
97955
98490
  var smithy_client_1 = require_dist_cjs26();
97956
98491
  var util_body_length_node_1 = require_dist_cjs43();
97957
- var util_defaults_mode_node_1 = require_dist_cjs44();
98492
+ var util_defaults_mode_node_1 = require_dist_cjs45();
97958
98493
  var util_retry_1 = require_dist_cjs36();
97959
98494
  var runtimeConfig_shared_1 = require_runtimeConfig_shared5();
97960
98495
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -98060,7 +98595,7 @@ var require_runtimeExtensions = __commonJS({
98060
98595
  "use strict";
98061
98596
  Object.defineProperty(exports2, "__esModule", { value: true });
98062
98597
  exports2.resolveRuntimeExtensions = void 0;
98063
- var region_config_resolver_1 = require_dist_cjs45();
98598
+ var region_config_resolver_1 = require_dist_cjs46();
98064
98599
  var protocol_http_1 = require_dist_cjs2();
98065
98600
  var smithy_client_1 = require_dist_cjs26();
98066
98601
  var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration();
@@ -98139,7 +98674,7 @@ var require_STSClient = __commonJS({
98139
98674
  });
98140
98675
 
98141
98676
  // ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js
98142
- var require_dist_cjs74 = __commonJS({
98677
+ var require_dist_cjs75 = __commonJS({
98143
98678
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2) {
98144
98679
  "use strict";
98145
98680
  var STSClient3 = require_STSClient();
@@ -98148,7 +98683,7 @@ var require_dist_cjs74 = __commonJS({
98148
98683
  var EndpointParameters = require_EndpointParameters();
98149
98684
  var schema = (init_schema4(), __toCommonJS(schema_exports));
98150
98685
  var client = (init_client(), __toCommonJS(client_exports));
98151
- var regionConfigResolver = require_dist_cjs45();
98686
+ var regionConfigResolver = require_dist_cjs46();
98152
98687
  var STSServiceException2 = class _STSServiceException extends smithyClient.ServiceException {
98153
98688
  static {
98154
98689
  __name(this, "STSServiceException");
@@ -99441,7 +99976,7 @@ var require_runtimeConfig6 = __commonJS({
99441
99976
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
99442
99977
  var package_json_1 = tslib_1.__importDefault(require_package6());
99443
99978
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
99444
- var credential_provider_node_1 = require_dist_cjs53();
99979
+ var credential_provider_node_1 = require_dist_cjs54();
99445
99980
  var util_user_agent_node_1 = require_dist_cjs41();
99446
99981
  var config_resolver_1 = require_dist_cjs30();
99447
99982
  var hash_node_1 = require_dist_cjs42();
@@ -99450,7 +99985,7 @@ var require_runtimeConfig6 = __commonJS({
99450
99985
  var node_http_handler_1 = require_dist_cjs14();
99451
99986
  var smithy_client_1 = require_dist_cjs26();
99452
99987
  var util_body_length_node_1 = require_dist_cjs43();
99453
- var util_defaults_mode_node_1 = require_dist_cjs44();
99988
+ var util_defaults_mode_node_1 = require_dist_cjs45();
99454
99989
  var util_retry_1 = require_dist_cjs36();
99455
99990
  var runtimeConfig_shared_1 = require_runtimeConfig_shared6();
99456
99991
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -99491,7 +100026,7 @@ var require_runtimeConfig6 = __commonJS({
99491
100026
  });
99492
100027
 
99493
100028
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
99494
- var require_dist_cjs75 = __commonJS({
100029
+ var require_dist_cjs76 = __commonJS({
99495
100030
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports2) {
99496
100031
  "use strict";
99497
100032
  var middlewareHostHeader = require_dist_cjs3();
@@ -99507,7 +100042,7 @@ var require_dist_cjs75 = __commonJS({
99507
100042
  var smithyClient = require_dist_cjs26();
99508
100043
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider6();
99509
100044
  var runtimeConfig = require_runtimeConfig6();
99510
- var regionConfigResolver = require_dist_cjs45();
100045
+ var regionConfigResolver = require_dist_cjs46();
99511
100046
  var protocolHttp = require_dist_cjs2();
99512
100047
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
99513
100048
  return Object.assign(options, {
@@ -100677,7 +101212,7 @@ var require_dist_cjs75 = __commonJS({
100677
101212
  var require_loadCognitoIdentity_BPNvueUJ = __commonJS({
100678
101213
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-BPNvueUJ.js"(exports2) {
100679
101214
  "use strict";
100680
- var clientCognitoIdentity = require_dist_cjs75();
101215
+ var clientCognitoIdentity = require_dist_cjs76();
100681
101216
  Object.defineProperty(exports2, "CognitoIdentityClient", {
100682
101217
  enumerable: true,
100683
101218
  get: /* @__PURE__ */ __name(function() {
@@ -100700,7 +101235,7 @@ var require_loadCognitoIdentity_BPNvueUJ = __commonJS({
100700
101235
  });
100701
101236
 
100702
101237
  // ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
100703
- var require_dist_cjs76 = __commonJS({
101238
+ var require_dist_cjs77 = __commonJS({
100704
101239
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports2) {
100705
101240
  "use strict";
100706
101241
  var propertyProvider = require_dist_cjs23();
@@ -100918,7 +101453,7 @@ var require_fromCognitoIdentity = __commonJS({
100918
101453
  "use strict";
100919
101454
  Object.defineProperty(exports2, "__esModule", { value: true });
100920
101455
  exports2.fromCognitoIdentity = void 0;
100921
- var credential_provider_cognito_identity_1 = require_dist_cjs76();
101456
+ var credential_provider_cognito_identity_1 = require_dist_cjs77();
100922
101457
  var fromCognitoIdentity = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
100923
101458
  ...options
100924
101459
  }), "fromCognitoIdentity");
@@ -100932,7 +101467,7 @@ var require_fromCognitoIdentityPool = __commonJS({
100932
101467
  "use strict";
100933
101468
  Object.defineProperty(exports2, "__esModule", { value: true });
100934
101469
  exports2.fromCognitoIdentityPool = void 0;
100935
- var credential_provider_cognito_identity_1 = require_dist_cjs76();
101470
+ var credential_provider_cognito_identity_1 = require_dist_cjs77();
100936
101471
  var fromCognitoIdentityPool = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
100937
101472
  ...options
100938
101473
  }), "fromCognitoIdentityPool");
@@ -100940,13 +101475,363 @@ var require_fromCognitoIdentityPool = __commonJS({
100940
101475
  }
100941
101476
  });
100942
101477
 
101478
+ // ../../node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
101479
+ var require_dist_cjs78 = __commonJS({
101480
+ "../../node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
101481
+ "use strict";
101482
+ var propertyProvider = require_dist_cjs23();
101483
+ var url = require("url");
101484
+ var buffer = require("buffer");
101485
+ var http = require("http");
101486
+ var nodeConfigProvider = require_dist_cjs33();
101487
+ var urlParser = require_dist_cjs21();
101488
+ function httpRequest(options) {
101489
+ return new Promise((resolve6, reject) => {
101490
+ const req = http.request({
101491
+ method: "GET",
101492
+ ...options,
101493
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
101494
+ });
101495
+ req.on("error", (err) => {
101496
+ reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
101497
+ req.destroy();
101498
+ });
101499
+ req.on("timeout", () => {
101500
+ reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
101501
+ req.destroy();
101502
+ });
101503
+ req.on("response", (res) => {
101504
+ const { statusCode = 400 } = res;
101505
+ if (statusCode < 200 || 300 <= statusCode) {
101506
+ reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
101507
+ req.destroy();
101508
+ }
101509
+ const chunks = [];
101510
+ res.on("data", (chunk) => {
101511
+ chunks.push(chunk);
101512
+ });
101513
+ res.on("end", () => {
101514
+ resolve6(buffer.Buffer.concat(chunks));
101515
+ req.destroy();
101516
+ });
101517
+ });
101518
+ req.end();
101519
+ });
101520
+ }
101521
+ __name(httpRequest, "httpRequest");
101522
+ var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
101523
+ var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
101524
+ accessKeyId: creds.AccessKeyId,
101525
+ secretAccessKey: creds.SecretAccessKey,
101526
+ sessionToken: creds.Token,
101527
+ expiration: new Date(creds.Expiration),
101528
+ ...creds.AccountId && { accountId: creds.AccountId }
101529
+ }), "fromImdsCredentials");
101530
+ var DEFAULT_TIMEOUT = 1e3;
101531
+ var DEFAULT_MAX_RETRIES = 0;
101532
+ var providerConfigFromInit = /* @__PURE__ */ __name(({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }), "providerConfigFromInit");
101533
+ var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {
101534
+ let promise = toRetry();
101535
+ for (let i4 = 0; i4 < maxRetries; i4++) {
101536
+ promise = promise.catch(toRetry);
101537
+ }
101538
+ return promise;
101539
+ }, "retry");
101540
+ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
101541
+ var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
101542
+ var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
101543
+ var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {
101544
+ const { timeout, maxRetries } = providerConfigFromInit(init);
101545
+ return () => retry(async () => {
101546
+ const requestOptions = await getCmdsUri({ logger: init.logger });
101547
+ const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
101548
+ if (!isImdsCredentials(credsResponse)) {
101549
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
101550
+ logger: init.logger
101551
+ });
101552
+ }
101553
+ return fromImdsCredentials(credsResponse);
101554
+ }, maxRetries);
101555
+ }, "fromContainerMetadata");
101556
+ var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {
101557
+ if (process.env[ENV_CMDS_AUTH_TOKEN]) {
101558
+ options.headers = {
101559
+ ...options.headers,
101560
+ Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
101561
+ };
101562
+ }
101563
+ const buffer2 = await httpRequest({
101564
+ ...options,
101565
+ timeout
101566
+ });
101567
+ return buffer2.toString();
101568
+ }, "requestFromEcsImds");
101569
+ var CMDS_IP = "169.254.170.2";
101570
+ var GREENGRASS_HOSTS = {
101571
+ localhost: true,
101572
+ "127.0.0.1": true
101573
+ };
101574
+ var GREENGRASS_PROTOCOLS = {
101575
+ "http:": true,
101576
+ "https:": true
101577
+ };
101578
+ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger: logger2 }) => {
101579
+ if (process.env[ENV_CMDS_RELATIVE_URI]) {
101580
+ return {
101581
+ hostname: CMDS_IP,
101582
+ path: process.env[ENV_CMDS_RELATIVE_URI]
101583
+ };
101584
+ }
101585
+ if (process.env[ENV_CMDS_FULL_URI]) {
101586
+ const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
101587
+ if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
101588
+ throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
101589
+ tryNextLink: false,
101590
+ logger: logger2
101591
+ });
101592
+ }
101593
+ if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
101594
+ throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
101595
+ tryNextLink: false,
101596
+ logger: logger2
101597
+ });
101598
+ }
101599
+ return {
101600
+ ...parsed,
101601
+ port: parsed.port ? parseInt(parsed.port, 10) : void 0
101602
+ };
101603
+ }
101604
+ throw new propertyProvider.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
101605
+ tryNextLink: false,
101606
+ logger: logger2
101607
+ });
101608
+ }, "getCmdsUri");
101609
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
101610
+ static {
101611
+ __name(this, "InstanceMetadataV1FallbackError");
101612
+ }
101613
+ tryNextLink;
101614
+ name = "InstanceMetadataV1FallbackError";
101615
+ constructor(message, tryNextLink = true) {
101616
+ super(message, tryNextLink);
101617
+ this.tryNextLink = tryNextLink;
101618
+ Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
101619
+ }
101620
+ };
101621
+ exports2.Endpoint = void 0;
101622
+ (function(Endpoint) {
101623
+ Endpoint["IPv4"] = "http://169.254.169.254";
101624
+ Endpoint["IPv6"] = "http://[fd00:ec2::254]";
101625
+ })(exports2.Endpoint || (exports2.Endpoint = {}));
101626
+ var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
101627
+ var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
101628
+ var ENDPOINT_CONFIG_OPTIONS = {
101629
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
101630
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
101631
+ default: void 0
101632
+ };
101633
+ var EndpointMode;
101634
+ (function(EndpointMode2) {
101635
+ EndpointMode2["IPv4"] = "IPv4";
101636
+ EndpointMode2["IPv6"] = "IPv6";
101637
+ })(EndpointMode || (EndpointMode = {}));
101638
+ var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
101639
+ var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
101640
+ var ENDPOINT_MODE_CONFIG_OPTIONS = {
101641
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
101642
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
101643
+ default: EndpointMode.IPv4
101644
+ };
101645
+ var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => urlParser.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
101646
+ var getFromEndpointConfig = /* @__PURE__ */ __name(async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
101647
+ var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {
101648
+ const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
101649
+ switch (endpointMode) {
101650
+ case EndpointMode.IPv4:
101651
+ return exports2.Endpoint.IPv4;
101652
+ case EndpointMode.IPv6:
101653
+ return exports2.Endpoint.IPv6;
101654
+ default:
101655
+ throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
101656
+ }
101657
+ }, "getFromEndpointModeConfig");
101658
+ var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
101659
+ var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
101660
+ var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
101661
+ var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger2) => {
101662
+ const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
101663
+ const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
101664
+ logger2.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
101665
+ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
101666
+ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
101667
+ return {
101668
+ ...credentials,
101669
+ ...originalExpiration ? { originalExpiration } : {},
101670
+ expiration: newExpiration
101671
+ };
101672
+ }, "getExtendedInstanceMetadataCredentials");
101673
+ var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
101674
+ const logger2 = options?.logger || console;
101675
+ let pastCredentials;
101676
+ return async () => {
101677
+ let credentials;
101678
+ try {
101679
+ credentials = await provider();
101680
+ if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
101681
+ credentials = getExtendedInstanceMetadataCredentials(credentials, logger2);
101682
+ }
101683
+ } catch (e4) {
101684
+ if (pastCredentials) {
101685
+ logger2.warn("Credential renew failed: ", e4);
101686
+ credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger2);
101687
+ } else {
101688
+ throw e4;
101689
+ }
101690
+ }
101691
+ pastCredentials = credentials;
101692
+ return credentials;
101693
+ };
101694
+ }, "staticStabilityProvider");
101695
+ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
101696
+ var IMDS_TOKEN_PATH = "/latest/api/token";
101697
+ var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
101698
+ var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
101699
+ var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
101700
+ var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
101701
+ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
101702
+ let disableFetchToken = false;
101703
+ const { logger: logger2, profile } = init;
101704
+ const { timeout, maxRetries } = providerConfigFromInit(init);
101705
+ const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
101706
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
101707
+ if (isImdsV1Fallback) {
101708
+ let fallbackBlockedFromProfile = false;
101709
+ let fallbackBlockedFromProcessEnv = false;
101710
+ const configValue = await nodeConfigProvider.loadConfig({
101711
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => {
101712
+ const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
101713
+ fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
101714
+ if (envValue === void 0) {
101715
+ throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
101716
+ }
101717
+ return fallbackBlockedFromProcessEnv;
101718
+ }, "environmentVariableSelector"),
101719
+ configFileSelector: /* @__PURE__ */ __name((profile2) => {
101720
+ const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
101721
+ fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
101722
+ return fallbackBlockedFromProfile;
101723
+ }, "configFileSelector"),
101724
+ default: false
101725
+ }, {
101726
+ profile
101727
+ })();
101728
+ if (init.ec2MetadataV1Disabled || configValue) {
101729
+ const causes = [];
101730
+ if (init.ec2MetadataV1Disabled)
101731
+ causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
101732
+ if (fallbackBlockedFromProfile)
101733
+ causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
101734
+ if (fallbackBlockedFromProcessEnv)
101735
+ causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
101736
+ throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
101737
+ }
101738
+ }
101739
+ const imdsProfile = (await retry(async () => {
101740
+ let profile2;
101741
+ try {
101742
+ profile2 = await getProfile(options);
101743
+ } catch (err) {
101744
+ if (err.statusCode === 401) {
101745
+ disableFetchToken = false;
101746
+ }
101747
+ throw err;
101748
+ }
101749
+ return profile2;
101750
+ }, maxRetries2)).trim();
101751
+ return retry(async () => {
101752
+ let creds;
101753
+ try {
101754
+ creds = await getCredentialsFromProfile(imdsProfile, options, init);
101755
+ } catch (err) {
101756
+ if (err.statusCode === 401) {
101757
+ disableFetchToken = false;
101758
+ }
101759
+ throw err;
101760
+ }
101761
+ return creds;
101762
+ }, maxRetries2);
101763
+ }, "getCredentials");
101764
+ return async () => {
101765
+ const endpoint = await getInstanceMetadataEndpoint();
101766
+ if (disableFetchToken) {
101767
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
101768
+ return getCredentials(maxRetries, { ...endpoint, timeout });
101769
+ } else {
101770
+ let token;
101771
+ try {
101772
+ token = (await getMetadataToken({ ...endpoint, timeout })).toString();
101773
+ } catch (error2) {
101774
+ if (error2?.statusCode === 400) {
101775
+ throw Object.assign(error2, {
101776
+ message: "EC2 Metadata token request returned error"
101777
+ });
101778
+ } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) {
101779
+ disableFetchToken = true;
101780
+ }
101781
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
101782
+ return getCredentials(maxRetries, { ...endpoint, timeout });
101783
+ }
101784
+ return getCredentials(maxRetries, {
101785
+ ...endpoint,
101786
+ headers: {
101787
+ [X_AWS_EC2_METADATA_TOKEN]: token
101788
+ },
101789
+ timeout
101790
+ });
101791
+ }
101792
+ };
101793
+ }, "getInstanceMetadataProvider");
101794
+ var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({
101795
+ ...options,
101796
+ path: IMDS_TOKEN_PATH,
101797
+ method: "PUT",
101798
+ headers: {
101799
+ "x-aws-ec2-metadata-token-ttl-seconds": "21600"
101800
+ }
101801
+ }), "getMetadataToken");
101802
+ var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
101803
+ var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {
101804
+ const credentialsResponse = JSON.parse((await httpRequest({
101805
+ ...options,
101806
+ path: IMDS_PATH + profile
101807
+ })).toString());
101808
+ if (!isImdsCredentials(credentialsResponse)) {
101809
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
101810
+ logger: init.logger
101811
+ });
101812
+ }
101813
+ return fromImdsCredentials(credentialsResponse);
101814
+ }, "getCredentialsFromProfile");
101815
+ exports2.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
101816
+ exports2.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
101817
+ exports2.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
101818
+ exports2.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
101819
+ exports2.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
101820
+ exports2.fromContainerMetadata = fromContainerMetadata;
101821
+ exports2.fromInstanceMetadata = fromInstanceMetadata;
101822
+ exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
101823
+ exports2.httpRequest = httpRequest;
101824
+ exports2.providerConfigFromInit = providerConfigFromInit;
101825
+ }
101826
+ });
101827
+
100943
101828
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js
100944
101829
  var require_fromContainerMetadata = __commonJS({
100945
101830
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js"(exports2) {
100946
101831
  "use strict";
100947
101832
  Object.defineProperty(exports2, "__esModule", { value: true });
100948
101833
  exports2.fromContainerMetadata = void 0;
100949
- var credential_provider_imds_1 = require_dist_cjs39();
101834
+ var credential_provider_imds_1 = require_dist_cjs78();
100950
101835
  var fromContainerMetadata = /* @__PURE__ */ __name((init) => {
100951
101836
  init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
100952
101837
  return (0, credential_provider_imds_1.fromContainerMetadata)(init);
@@ -100968,24 +101853,24 @@ var require_fromEnv = __commonJS({
100968
101853
  });
100969
101854
 
100970
101855
  // ../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
100971
- var require_dist_cjs77 = __commonJS({
101856
+ var require_dist_cjs79 = __commonJS({
100972
101857
  "../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) {
100973
101858
  "use strict";
100974
101859
  var sharedIniFileLoader = require_dist_cjs32();
100975
101860
  var propertyProvider = require_dist_cjs23();
100976
101861
  var client = (init_client(), __toCommonJS(client_exports));
100977
- var credentialProviderLogin = require_dist_cjs49();
101862
+ var credentialProviderLogin = require_dist_cjs50();
100978
101863
  var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger2) => {
100979
101864
  const sourceProvidersMap = {
100980
101865
  EcsContainer: /* @__PURE__ */ __name(async (options) => {
100981
101866
  const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs40()));
100982
- const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
101867
+ const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs78()));
100983
101868
  logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
100984
101869
  return async () => propertyProvider.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
100985
101870
  }, "EcsContainer"),
100986
101871
  Ec2InstanceMetadata: /* @__PURE__ */ __name(async (options) => {
100987
101872
  logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
100988
- const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
101873
+ const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs78()));
100989
101874
  return async () => fromInstanceMetadata(options)().then(setNamedProvider);
100990
101875
  }, "Ec2InstanceMetadata"),
100991
101876
  Environment: /* @__PURE__ */ __name(async (options) => {
@@ -101077,12 +101962,12 @@ var require_dist_cjs77 = __commonJS({
101077
101962
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
101078
101963
  }, "resolveLoginCredentials");
101079
101964
  var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
101080
- var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs50())).then(({ fromProcess }) => fromProcess({
101965
+ var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromProcess }) => fromProcess({
101081
101966
  ...options,
101082
101967
  profile
101083
101968
  })().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))), "resolveProcessCredentials");
101084
101969
  var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}, callerClientConfig) => {
101085
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
101970
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
101086
101971
  return fromSSO({
101087
101972
  profile,
101088
101973
  logger: options.logger,
@@ -101112,7 +101997,7 @@ var require_dist_cjs77 = __commonJS({
101112
101997
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
101113
101998
  }, "resolveStaticCredentials");
101114
101999
  var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
101115
- var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromTokenFile }) => fromTokenFile({
102000
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs52())).then(({ fromTokenFile }) => fromTokenFile({
101116
102001
  webIdentityTokenFile: profile.web_identity_token_file,
101117
102002
  roleArn: profile.role_arn,
101118
102003
  roleSessionName: profile.role_session_name,
@@ -101164,7 +102049,7 @@ var require_fromIni = __commonJS({
101164
102049
  "use strict";
101165
102050
  Object.defineProperty(exports2, "__esModule", { value: true });
101166
102051
  exports2.fromIni = void 0;
101167
- var credential_provider_ini_1 = require_dist_cjs77();
102052
+ var credential_provider_ini_1 = require_dist_cjs79();
101168
102053
  var fromIni = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_ini_1.fromIni)({
101169
102054
  ...init
101170
102055
  }), "fromIni");
@@ -101179,7 +102064,7 @@ var require_fromInstanceMetadata = __commonJS({
101179
102064
  Object.defineProperty(exports2, "__esModule", { value: true });
101180
102065
  exports2.fromInstanceMetadata = void 0;
101181
102066
  var client_1 = (init_client(), __toCommonJS(client_exports));
101182
- var credential_provider_imds_1 = require_dist_cjs39();
102067
+ var credential_provider_imds_1 = require_dist_cjs78();
101183
102068
  var fromInstanceMetadata = /* @__PURE__ */ __name((init) => {
101184
102069
  init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
101185
102070
  return async () => (0, credential_provider_imds_1.fromInstanceMetadata)(init)().then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_IMDS", "0"));
@@ -101194,7 +102079,7 @@ var require_fromLoginCredentials = __commonJS({
101194
102079
  "use strict";
101195
102080
  Object.defineProperty(exports2, "__esModule", { value: true });
101196
102081
  exports2.fromLoginCredentials = void 0;
101197
- var credential_provider_login_1 = require_dist_cjs49();
102082
+ var credential_provider_login_1 = require_dist_cjs50();
101198
102083
  var fromLoginCredentials = /* @__PURE__ */ __name((init) => (0, credential_provider_login_1.fromLoginCredentials)({
101199
102084
  ...init
101200
102085
  }), "fromLoginCredentials");
@@ -101208,7 +102093,7 @@ var require_fromNodeProviderChain = __commonJS({
101208
102093
  "use strict";
101209
102094
  Object.defineProperty(exports2, "__esModule", { value: true });
101210
102095
  exports2.fromNodeProviderChain = void 0;
101211
- var credential_provider_node_1 = require_dist_cjs53();
102096
+ var credential_provider_node_1 = require_dist_cjs54();
101212
102097
  var fromNodeProviderChain2 = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_node_1.defaultProvider)({
101213
102098
  ...init
101214
102099
  }), "fromNodeProviderChain");
@@ -101222,7 +102107,7 @@ var require_fromProcess = __commonJS({
101222
102107
  "use strict";
101223
102108
  Object.defineProperty(exports2, "__esModule", { value: true });
101224
102109
  exports2.fromProcess = void 0;
101225
- var credential_provider_process_1 = require_dist_cjs50();
102110
+ var credential_provider_process_1 = require_dist_cjs51();
101226
102111
  var fromProcess = /* @__PURE__ */ __name((init) => (0, credential_provider_process_1.fromProcess)(init), "fromProcess");
101227
102112
  exports2.fromProcess = fromProcess;
101228
102113
  }
@@ -101234,7 +102119,7 @@ var require_fromSSO = __commonJS({
101234
102119
  "use strict";
101235
102120
  Object.defineProperty(exports2, "__esModule", { value: true });
101236
102121
  exports2.fromSSO = void 0;
101237
- var credential_provider_sso_1 = require_dist_cjs48();
102122
+ var credential_provider_sso_1 = require_dist_cjs49();
101238
102123
  var fromSSO = /* @__PURE__ */ __name((init = {}) => {
101239
102124
  return (0, credential_provider_sso_1.fromSSO)({ ...init });
101240
102125
  }, "fromSSO");
@@ -101444,7 +102329,7 @@ var require_fromTokenFile2 = __commonJS({
101444
102329
  "use strict";
101445
102330
  Object.defineProperty(exports2, "__esModule", { value: true });
101446
102331
  exports2.fromTokenFile = void 0;
101447
- var credential_provider_web_identity_1 = require_dist_cjs51();
102332
+ var credential_provider_web_identity_1 = require_dist_cjs52();
101448
102333
  var fromTokenFile = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_web_identity_1.fromTokenFile)({
101449
102334
  ...init
101450
102335
  }), "fromTokenFile");
@@ -101458,7 +102343,7 @@ var require_fromWebToken2 = __commonJS({
101458
102343
  "use strict";
101459
102344
  Object.defineProperty(exports2, "__esModule", { value: true });
101460
102345
  exports2.fromWebToken = void 0;
101461
- var credential_provider_web_identity_1 = require_dist_cjs51();
102346
+ var credential_provider_web_identity_1 = require_dist_cjs52();
101462
102347
  var fromWebToken = /* @__PURE__ */ __name((init) => (0, credential_provider_web_identity_1.fromWebToken)({
101463
102348
  ...init
101464
102349
  }), "fromWebToken");
@@ -101467,7 +102352,7 @@ var require_fromWebToken2 = __commonJS({
101467
102352
  });
101468
102353
 
101469
102354
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
101470
- var require_dist_cjs78 = __commonJS({
102355
+ var require_dist_cjs80 = __commonJS({
101471
102356
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports2) {
101472
102357
  "use strict";
101473
102358
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -101494,9 +102379,9 @@ var require_dist_cjs78 = __commonJS({
101494
102379
  }
101495
102380
  });
101496
102381
 
101497
- // ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
101498
- var require_dist_cjs79 = __commonJS({
101499
- "../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports2) {
102382
+ // ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/abort-controller/dist-cjs/index.js
102383
+ var require_dist_cjs81 = __commonJS({
102384
+ "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports2) {
101500
102385
  "use strict";
101501
102386
  var AbortSignal = class {
101502
102387
  static {
@@ -101571,11 +102456,11 @@ var require_runtimeConfig7 = __commonJS({
101571
102456
  });
101572
102457
 
101573
102458
  // ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
101574
- var require_dist_cjs80 = __commonJS({
102459
+ var require_dist_cjs82 = __commonJS({
101575
102460
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports2) {
101576
102461
  "use strict";
101577
- var clientS3 = require_dist_cjs72();
101578
- var abortController = require_dist_cjs79();
102462
+ var clientS3 = require_dist_cjs73();
102463
+ var abortController = require_dist_cjs81();
101579
102464
  var middlewareEndpoint = require_dist_cjs34();
101580
102465
  var smithyClient = require_dist_cjs26();
101581
102466
  var events = require("events");
@@ -102081,12 +102966,12 @@ var init_aws = __esm({
102081
102966
  "../@aws-cdk/cdk-assets-lib/lib/aws.ts"() {
102082
102967
  "use strict";
102083
102968
  os4 = __toESM(require("os"));
102084
- import_client_ecr = __toESM(require_dist_cjs55());
102085
- import_client_s3 = __toESM(require_dist_cjs72());
102086
- import_client_secrets_manager = __toESM(require_dist_cjs73());
102087
- import_client_sts = __toESM(require_dist_cjs74());
102088
- import_credential_providers = __toESM(require_dist_cjs78());
102089
- import_lib_storage = __toESM(require_dist_cjs80());
102969
+ import_client_ecr = __toESM(require_dist_cjs56());
102970
+ import_client_s3 = __toESM(require_dist_cjs73());
102971
+ import_client_secrets_manager = __toESM(require_dist_cjs74());
102972
+ import_client_sts = __toESM(require_dist_cjs75());
102973
+ import_credential_providers = __toESM(require_dist_cjs80());
102974
+ import_lib_storage = __toESM(require_dist_cjs82());
102090
102975
  import_config_resolver7 = __toESM(require_dist_cjs30());
102091
102976
  import_node_config_provider4 = __toESM(require_dist_cjs33());
102092
102977
  USER_AGENT = "cdk-assets";
@@ -102224,9 +103109,9 @@ var require_lib5 = __commonJS({
102224
103109
  var require_build = __commonJS({
102225
103110
  "../../node_modules/y18n/build/index.cjs"(exports2, module2) {
102226
103111
  "use strict";
102227
- var fs12 = require("fs");
103112
+ var fs13 = require("fs");
102228
103113
  var util = require("util");
102229
- var path13 = require("path");
103114
+ var path14 = require("path");
102230
103115
  var shim;
102231
103116
  var Y18N = class {
102232
103117
  static {
@@ -102392,14 +103277,14 @@ var require_build = __commonJS({
102392
103277
  __name(y18n$1, "y18n$1");
102393
103278
  var nodePlatformShim = {
102394
103279
  fs: {
102395
- readFileSync: fs12.readFileSync,
102396
- writeFile: fs12.writeFile
103280
+ readFileSync: fs13.readFileSync,
103281
+ writeFile: fs13.writeFile
102397
103282
  },
102398
103283
  format: util.format,
102399
- resolve: path13.resolve,
103284
+ resolve: path14.resolve,
102400
103285
  exists: /* @__PURE__ */ __name((file) => {
102401
103286
  try {
102402
- return fs12.statSync(file).isFile();
103287
+ return fs13.statSync(file).isFile();
102403
103288
  } catch (err) {
102404
103289
  return false;
102405
103290
  }
@@ -102417,8 +103302,8 @@ var require_build2 = __commonJS({
102417
103302
  "../../node_modules/yargs-parser/build/index.cjs"(exports2, module2) {
102418
103303
  "use strict";
102419
103304
  var util = require("util");
102420
- var path13 = require("path");
102421
- var fs12 = require("fs");
103305
+ var path14 = require("path");
103306
+ var fs13 = require("fs");
102422
103307
  function camelCase(str) {
102423
103308
  const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
102424
103309
  if (!isCamelCase) {
@@ -103400,13 +104285,13 @@ var require_build2 = __commonJS({
103400
104285
  return env;
103401
104286
  }, "env"),
103402
104287
  format: util.format,
103403
- normalize: path13.normalize,
103404
- resolve: path13.resolve,
103405
- require: /* @__PURE__ */ __name((path14) => {
104288
+ normalize: path14.normalize,
104289
+ resolve: path14.resolve,
104290
+ require: /* @__PURE__ */ __name((path15) => {
103406
104291
  if (typeof require !== "undefined") {
103407
- return require(path14);
103408
- } else if (path14.match(/\.json$/)) {
103409
- return JSON.parse(fs12.readFileSync(path14, "utf8"));
104292
+ return require(path15);
104293
+ } else if (path15.match(/\.json$/)) {
104294
+ return JSON.parse(fs13.readFileSync(path15, "utf8"));
103410
104295
  } else {
103411
104296
  throw Error("only .json config files are supported in ESM");
103412
104297
  }
@@ -104403,15 +105288,15 @@ var require_route = __commonJS({
104403
105288
  }
104404
105289
  __name(link, "link");
104405
105290
  function wrapConversion(toModel, graph) {
104406
- const path13 = [graph[toModel].parent, toModel];
105291
+ const path14 = [graph[toModel].parent, toModel];
104407
105292
  let fn = conversions[graph[toModel].parent][toModel];
104408
105293
  let cur = graph[toModel].parent;
104409
105294
  while (graph[cur].parent) {
104410
- path13.unshift(graph[cur].parent);
105295
+ path14.unshift(graph[cur].parent);
104411
105296
  fn = link(conversions[graph[cur].parent][cur], fn);
104412
105297
  cur = graph[cur].parent;
104413
105298
  }
104414
- fn.conversion = path13;
105299
+ fn.conversion = path14;
104415
105300
  return fn;
104416
105301
  }
104417
105302
  __name(wrapConversion, "wrapConversion");
@@ -105128,8 +106013,8 @@ var require_get_caller_file = __commonJS({
105128
106013
  var require_require_directory = __commonJS({
105129
106014
  "../../node_modules/require-directory/index.js"(exports2, module2) {
105130
106015
  "use strict";
105131
- var fs12 = require("fs");
105132
- var join9 = require("path").join;
106016
+ var fs13 = require("fs");
106017
+ var join10 = require("path").join;
105133
106018
  var resolve6 = require("path").resolve;
105134
106019
  var dirname2 = require("path").dirname;
105135
106020
  var defaultOptions = {
@@ -105142,22 +106027,22 @@ var require_require_directory = __commonJS({
105142
106027
  return obj;
105143
106028
  }, "visit")
105144
106029
  };
105145
- function checkFileInclusion(path13, filename, options) {
106030
+ function checkFileInclusion(path14, filename, options) {
105146
106031
  return (
105147
106032
  // verify file has valid extension
105148
106033
  new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
105149
- !(options.include && options.include instanceof RegExp && !options.include.test(path13)) && // if options.include is a function, evaluate it and make sure the path passes
105150
- !(options.include && typeof options.include === "function" && !options.include(path13, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
105151
- !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path13)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
105152
- !(options.exclude && typeof options.exclude === "function" && options.exclude(path13, filename))
106034
+ !(options.include && options.include instanceof RegExp && !options.include.test(path14)) && // if options.include is a function, evaluate it and make sure the path passes
106035
+ !(options.include && typeof options.include === "function" && !options.include(path14, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
106036
+ !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path14)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
106037
+ !(options.exclude && typeof options.exclude === "function" && options.exclude(path14, filename))
105153
106038
  );
105154
106039
  }
105155
106040
  __name(checkFileInclusion, "checkFileInclusion");
105156
- function requireDirectory(m4, path13, options) {
106041
+ function requireDirectory(m4, path14, options) {
105157
106042
  var retval = {};
105158
- if (path13 && !options && typeof path13 !== "string") {
105159
- options = path13;
105160
- path13 = null;
106043
+ if (path14 && !options && typeof path14 !== "string") {
106044
+ options = path14;
106045
+ path14 = null;
105161
106046
  }
105162
106047
  options = options || {};
105163
106048
  for (var prop in defaultOptions) {
@@ -105165,10 +106050,10 @@ var require_require_directory = __commonJS({
105165
106050
  options[prop] = defaultOptions[prop];
105166
106051
  }
105167
106052
  }
105168
- path13 = !path13 ? dirname2(m4.filename) : resolve6(dirname2(m4.filename), path13);
105169
- fs12.readdirSync(path13).forEach(function(filename) {
105170
- var joined = join9(path13, filename), files, key, obj;
105171
- if (fs12.statSync(joined).isDirectory() && options.recurse) {
106053
+ path14 = !path14 ? dirname2(m4.filename) : resolve6(dirname2(m4.filename), path14);
106054
+ fs13.readdirSync(path14).forEach(function(filename) {
106055
+ var joined = join10(path14, filename), files, key, obj;
106056
+ if (fs13.statSync(joined).isDirectory() && options.recurse) {
105172
106057
  files = requireDirectory(m4, joined, options);
105173
106058
  if (Object.keys(files).length) {
105174
106059
  retval[options.rename(filename, joined, filename)] = files;
@@ -106937,15 +107822,15 @@ function log(level, message, stream2) {
106937
107822
  }
106938
107823
  }
106939
107824
  }
106940
- var fs11, path12, logThreshold, VERSION, LOG_LEVELS;
107825
+ var fs12, path13, logThreshold, VERSION, LOG_LEVELS;
106941
107826
  var init_logging = __esm({
106942
107827
  "bin/logging.ts"() {
106943
107828
  "use strict";
106944
- fs11 = __toESM(require("fs"));
106945
- path12 = __toESM(require("path"));
107829
+ fs12 = __toESM(require("fs"));
107830
+ path13 = __toESM(require("path"));
106946
107831
  logThreshold = "info";
106947
107832
  VERSION = JSON.parse(
106948
- fs11.readFileSync(path12.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
107833
+ fs12.readFileSync(path13.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
106949
107834
  ).version;
106950
107835
  LOG_LEVELS = {
106951
107836
  verbose: 1,