aws-cdk 2.1019.1 → 2.1019.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -3449,7 +3449,7 @@ var require_semver2 = __commonJS({
3449
3449
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
3450
3450
  var require_cli_version = __commonJS({
3451
3451
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
3452
- module2.exports = { version: "2.1019.1" };
3452
+ module2.exports = { version: "2.1019.2" };
3453
3453
  }
3454
3454
  });
3455
3455
 
@@ -11278,7 +11278,7 @@ var init_bootstrap_props = __esm({
11278
11278
  }
11279
11279
  });
11280
11280
 
11281
- // ../cdk-assets/lib/progress.ts
11281
+ // ../@aws-cdk/cdk-assets-lib/lib/progress.ts
11282
11282
  var progress_exports = {};
11283
11283
  __export(progress_exports, {
11284
11284
  EventType: () => EventType,
@@ -11305,7 +11305,7 @@ function shellEventPublisherFromEventEmitter(eventEmitter) {
11305
11305
  }
11306
11306
  var EventType;
11307
11307
  var init_progress = __esm({
11308
- "../cdk-assets/lib/progress.ts"() {
11308
+ "../@aws-cdk/cdk-assets-lib/lib/progress.ts"() {
11309
11309
  "use strict";
11310
11310
  EventType = /* @__PURE__ */ ((EventType2) => {
11311
11311
  EventType2["START"] = "start";
@@ -11326,7 +11326,7 @@ var init_progress = __esm({
11326
11326
  }
11327
11327
  });
11328
11328
 
11329
- // ../cdk-assets/lib/private/docker-credentials.ts
11329
+ // ../@aws-cdk/cdk-assets-lib/lib/private/docker-credentials.ts
11330
11330
  function cdkCredentialsConfigFile() {
11331
11331
  return process.env.CDK_DOCKER_CREDS_FILE ?? path.join(
11332
11332
  (os.userInfo().homedir ?? os.homedir()).trim() || "/",
@@ -11366,7 +11366,7 @@ async function obtainEcrCredentials(ecr, eventEmitter) {
11366
11366
  }
11367
11367
  var fs2, os, path, _cdkCredentials;
11368
11368
  var init_docker_credentials = __esm({
11369
- "../cdk-assets/lib/private/docker-credentials.ts"() {
11369
+ "../@aws-cdk/cdk-assets-lib/lib/private/docker-credentials.ts"() {
11370
11370
  "use strict";
11371
11371
  fs2 = __toESM(require("fs"));
11372
11372
  os = __toESM(require("os"));
@@ -11375,7 +11375,7 @@ var init_docker_credentials = __esm({
11375
11375
  }
11376
11376
  });
11377
11377
 
11378
- // ../cdk-assets/lib/private/shell.ts
11378
+ // ../@aws-cdk/cdk-assets-lib/lib/private/shell.ts
11379
11379
  async function shell(command2, options) {
11380
11380
  handleShellOutput(renderCommandLine(command2), options, "open");
11381
11381
  const child = child_process.spawn(command2[0], command2.slice(1), {
@@ -11464,7 +11464,7 @@ function windowsEscape(x3) {
11464
11464
  }
11465
11465
  var child_process, ProcessFailed;
11466
11466
  var init_shell = __esm({
11467
- "../cdk-assets/lib/private/shell.ts"() {
11467
+ "../@aws-cdk/cdk-assets-lib/lib/private/shell.ts"() {
11468
11468
  "use strict";
11469
11469
  child_process = __toESM(require("child_process"));
11470
11470
  ProcessFailed = class extends Error {
@@ -11478,7 +11478,7 @@ var init_shell = __esm({
11478
11478
  }
11479
11479
  });
11480
11480
 
11481
- // ../cdk-assets/lib/private/util.ts
11481
+ // ../@aws-cdk/cdk-assets-lib/lib/private/util.ts
11482
11482
  function createCriticalSection() {
11483
11483
  let lock = Promise.resolve();
11484
11484
  return async (criticalFunction) => {
@@ -11488,12 +11488,12 @@ function createCriticalSection() {
11488
11488
  };
11489
11489
  }
11490
11490
  var init_util = __esm({
11491
- "../cdk-assets/lib/private/util.ts"() {
11491
+ "../@aws-cdk/cdk-assets-lib/lib/private/util.ts"() {
11492
11492
  "use strict";
11493
11493
  }
11494
11494
  });
11495
11495
 
11496
- // ../cdk-assets/lib/private/docker.ts
11496
+ // ../@aws-cdk/cdk-assets-lib/lib/private/docker.ts
11497
11497
  function getDockerCmd() {
11498
11498
  return process.env.CDK_DOCKER ?? "docker";
11499
11499
  }
@@ -11502,7 +11502,7 @@ function flatten(x3) {
11502
11502
  }
11503
11503
  var fs3, os2, path2, Docker, DockerFactory;
11504
11504
  var init_docker = __esm({
11505
- "../cdk-assets/lib/private/docker.ts"() {
11505
+ "../@aws-cdk/cdk-assets-lib/lib/private/docker.ts"() {
11506
11506
  "use strict";
11507
11507
  fs3 = __toESM(require("fs"));
11508
11508
  os2 = __toESM(require("os"));
@@ -11700,7 +11700,7 @@ var init_docker = __esm({
11700
11700
  }
11701
11701
  });
11702
11702
 
11703
- // ../cdk-assets/lib/private/handlers/client-options.ts
11703
+ // ../@aws-cdk/cdk-assets-lib/lib/private/handlers/client-options.ts
11704
11704
  function destinationToClientOptions(destination) {
11705
11705
  return {
11706
11706
  assumeRoleArn: destination.assumeRoleArn,
@@ -11710,12 +11710,12 @@ function destinationToClientOptions(destination) {
11710
11710
  };
11711
11711
  }
11712
11712
  var init_client_options = __esm({
11713
- "../cdk-assets/lib/private/handlers/client-options.ts"() {
11713
+ "../@aws-cdk/cdk-assets-lib/lib/private/handlers/client-options.ts"() {
11714
11714
  "use strict";
11715
11715
  }
11716
11716
  });
11717
11717
 
11718
- // ../cdk-assets/lib/private/placeholders.ts
11718
+ // ../@aws-cdk/cdk-assets-lib/lib/private/placeholders.ts
11719
11719
  async function replaceAwsPlaceholders(object, aws) {
11720
11720
  let partition3 = async () => {
11721
11721
  const p3 = await aws.discoverPartition();
@@ -11741,13 +11741,13 @@ async function replaceAwsPlaceholders(object, aws) {
11741
11741
  }
11742
11742
  var import_cx_api;
11743
11743
  var init_placeholders = __esm({
11744
- "../cdk-assets/lib/private/placeholders.ts"() {
11744
+ "../@aws-cdk/cdk-assets-lib/lib/private/placeholders.ts"() {
11745
11745
  "use strict";
11746
11746
  import_cx_api = __toESM(require_lib3());
11747
11747
  }
11748
11748
  });
11749
11749
 
11750
- // ../cdk-assets/lib/private/handlers/container-images.ts
11750
+ // ../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts
11751
11751
  async function imageExists(ecr, repositoryName, imageTag) {
11752
11752
  try {
11753
11753
  await ecr.describeImages({
@@ -11777,7 +11777,7 @@ async function repositoryUri(ecr, repositoryName) {
11777
11777
  }
11778
11778
  var path3, ContainerImageAssetHandler, ContainerImageBuilder;
11779
11779
  var init_container_images = __esm({
11780
- "../cdk-assets/lib/private/handlers/container-images.ts"() {
11780
+ "../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
11781
11781
  "use strict";
11782
11782
  path3 = __toESM(require("path"));
11783
11783
  init_client_options();
@@ -21679,9 +21679,9 @@ var require_process_nextick_args = __commonJS({
21679
21679
  }
21680
21680
  });
21681
21681
 
21682
- // ../../node_modules/lazystream/node_modules/isarray/index.js
21682
+ // ../../node_modules/readable-stream/node_modules/isarray/index.js
21683
21683
  var require_isarray = __commonJS({
21684
- "../../node_modules/lazystream/node_modules/isarray/index.js"(exports2, module2) {
21684
+ "../../node_modules/readable-stream/node_modules/isarray/index.js"(exports2, module2) {
21685
21685
  var toString = {}.toString;
21686
21686
  module2.exports = Array.isArray || function(arr) {
21687
21687
  return toString.call(arr) == "[object Array]";
@@ -21689,16 +21689,16 @@ var require_isarray = __commonJS({
21689
21689
  }
21690
21690
  });
21691
21691
 
21692
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js
21692
+ // ../../node_modules/readable-stream/lib/internal/streams/stream.js
21693
21693
  var require_stream = __commonJS({
21694
- "../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
21694
+ "../../node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
21695
21695
  module2.exports = require("stream");
21696
21696
  }
21697
21697
  });
21698
21698
 
21699
- // ../../node_modules/lazystream/node_modules/safe-buffer/index.js
21699
+ // ../../node_modules/readable-stream/node_modules/safe-buffer/index.js
21700
21700
  var require_safe_buffer = __commonJS({
21701
- "../../node_modules/lazystream/node_modules/safe-buffer/index.js"(exports2, module2) {
21701
+ "../../node_modules/readable-stream/node_modules/safe-buffer/index.js"(exports2, module2) {
21702
21702
  var buffer = require("buffer");
21703
21703
  var Buffer2 = buffer.Buffer;
21704
21704
  function copyProps(src, dst) {
@@ -21869,9 +21869,9 @@ var require_inherits = __commonJS({
21869
21869
  }
21870
21870
  });
21871
21871
 
21872
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js
21872
+ // ../../node_modules/readable-stream/lib/internal/streams/BufferList.js
21873
21873
  var require_BufferList = __commonJS({
21874
- "../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports2, module2) {
21874
+ "../../node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports2, module2) {
21875
21875
  "use strict";
21876
21876
  function _classCallCheck(instance, Constructor) {
21877
21877
  if (!(instance instanceof Constructor)) {
@@ -21947,9 +21947,9 @@ var require_BufferList = __commonJS({
21947
21947
  }
21948
21948
  });
21949
21949
 
21950
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js
21950
+ // ../../node_modules/readable-stream/lib/internal/streams/destroy.js
21951
21951
  var require_destroy = __commonJS({
21952
- "../../node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
21952
+ "../../node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
21953
21953
  "use strict";
21954
21954
  var pna = require_process_nextick_args();
21955
21955
  function destroy(err, cb) {
@@ -22023,9 +22023,9 @@ var require_node = __commonJS({
22023
22023
  }
22024
22024
  });
22025
22025
 
22026
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js
22026
+ // ../../node_modules/readable-stream/lib/_stream_writable.js
22027
22027
  var require_stream_writable = __commonJS({
22028
- "../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
22028
+ "../../node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
22029
22029
  "use strict";
22030
22030
  var pna = require_process_nextick_args();
22031
22031
  module2.exports = Writable3;
@@ -22463,9 +22463,9 @@ var require_stream_writable = __commonJS({
22463
22463
  }
22464
22464
  });
22465
22465
 
22466
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js
22466
+ // ../../node_modules/readable-stream/lib/_stream_duplex.js
22467
22467
  var require_stream_duplex = __commonJS({
22468
- "../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
22468
+ "../../node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
22469
22469
  "use strict";
22470
22470
  var pna = require_process_nextick_args();
22471
22471
  var objectKeys = Object.keys || function(obj) {
@@ -22540,9 +22540,9 @@ var require_stream_duplex = __commonJS({
22540
22540
  }
22541
22541
  });
22542
22542
 
22543
- // ../../node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js
22543
+ // ../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js
22544
22544
  var require_string_decoder = __commonJS({
22545
- "../../node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
22545
+ "../../node_modules/readable-stream/node_modules/string_decoder/lib/string_decoder.js"(exports2) {
22546
22546
  "use strict";
22547
22547
  var Buffer2 = require_safe_buffer().Buffer;
22548
22548
  var isEncoding = Buffer2.isEncoding || function(encoding) {
@@ -22778,9 +22778,9 @@ var require_string_decoder = __commonJS({
22778
22778
  }
22779
22779
  });
22780
22780
 
22781
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js
22781
+ // ../../node_modules/readable-stream/lib/_stream_readable.js
22782
22782
  var require_stream_readable = __commonJS({
22783
- "../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
22783
+ "../../node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
22784
22784
  "use strict";
22785
22785
  var pna = require_process_nextick_args();
22786
22786
  module2.exports = Readable;
@@ -23464,9 +23464,9 @@ var require_stream_readable = __commonJS({
23464
23464
  }
23465
23465
  });
23466
23466
 
23467
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js
23467
+ // ../../node_modules/readable-stream/lib/_stream_transform.js
23468
23468
  var require_stream_transform = __commonJS({
23469
- "../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
23469
+ "../../node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
23470
23470
  "use strict";
23471
23471
  module2.exports = Transform;
23472
23472
  var Duplex = require_stream_duplex();
@@ -23564,9 +23564,9 @@ var require_stream_transform = __commonJS({
23564
23564
  }
23565
23565
  });
23566
23566
 
23567
- // ../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js
23567
+ // ../../node_modules/readable-stream/lib/_stream_passthrough.js
23568
23568
  var require_stream_passthrough = __commonJS({
23569
- "../../node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
23569
+ "../../node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
23570
23570
  "use strict";
23571
23571
  module2.exports = PassThrough;
23572
23572
  var Transform = require_stream_transform();
@@ -23583,9 +23583,9 @@ var require_stream_passthrough = __commonJS({
23583
23583
  }
23584
23584
  });
23585
23585
 
23586
- // ../../node_modules/lazystream/node_modules/readable-stream/readable.js
23586
+ // ../../node_modules/readable-stream/readable.js
23587
23587
  var require_readable = __commonJS({
23588
- "../../node_modules/lazystream/node_modules/readable-stream/readable.js"(exports2, module2) {
23588
+ "../../node_modules/readable-stream/readable.js"(exports2, module2) {
23589
23589
  var Stream2 = require("stream");
23590
23590
  if (process.env.READABLE_STREAM === "disable" && Stream2) {
23591
23591
  module2.exports = Stream2;
@@ -23608,9 +23608,9 @@ var require_readable = __commonJS({
23608
23608
  }
23609
23609
  });
23610
23610
 
23611
- // ../../node_modules/lazystream/node_modules/readable-stream/passthrough.js
23611
+ // ../../node_modules/readable-stream/passthrough.js
23612
23612
  var require_passthrough = __commonJS({
23613
- "../../node_modules/lazystream/node_modules/readable-stream/passthrough.js"(exports2, module2) {
23613
+ "../../node_modules/readable-stream/passthrough.js"(exports2, module2) {
23614
23614
  module2.exports = require_readable().PassThrough;
23615
23615
  }
23616
23616
  });
@@ -59395,7 +59395,7 @@ var require_archiver = __commonJS({
59395
59395
  }
59396
59396
  });
59397
59397
 
59398
- // ../cdk-assets/lib/private/archive.ts
59398
+ // ../@aws-cdk/cdk-assets-lib/lib/private/archive.ts
59399
59399
  async function zipDirectory(directory, outputFile, eventEmitter) {
59400
59400
  const temporaryOutputFile = `${outputFile}.${randomString()}._tmp`;
59401
59401
  await writeZipFile(directory, temporaryOutputFile);
@@ -59454,7 +59454,7 @@ function randomString() {
59454
59454
  }
59455
59455
  var import_fs2, path5, archiver;
59456
59456
  var init_archive = __esm({
59457
- "../cdk-assets/lib/private/archive.ts"() {
59457
+ "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
59458
59458
  "use strict";
59459
59459
  import_fs2 = require("fs");
59460
59460
  path5 = __toESM(require("path"));
@@ -59463,7 +59463,7 @@ var init_archive = __esm({
59463
59463
  }
59464
59464
  });
59465
59465
 
59466
- // ../cdk-assets/lib/private/fs-extra.ts
59466
+ // ../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts
59467
59467
  async function pathExists(pathName) {
59468
59468
  try {
59469
59469
  await pfs.stat(pathName);
@@ -59477,14 +59477,14 @@ async function pathExists(pathName) {
59477
59477
  }
59478
59478
  var fs5, pfs;
59479
59479
  var init_fs_extra = __esm({
59480
- "../cdk-assets/lib/private/fs-extra.ts"() {
59480
+ "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
59481
59481
  "use strict";
59482
59482
  fs5 = __toESM(require("fs"));
59483
59483
  pfs = fs5.promises;
59484
59484
  }
59485
59485
  });
59486
59486
 
59487
- // ../cdk-assets/lib/private/handlers/files.ts
59487
+ // ../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts
59488
59488
  async function objectExists(s3, bucket, key) {
59489
59489
  const response = await s3.listObjectsV2({
59490
59490
  Bucket: bucket,
@@ -59505,7 +59505,7 @@ async function cached(cache3, key, factory) {
59505
59505
  }
59506
59506
  var import_fs3, path6, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
59507
59507
  var init_files = __esm({
59508
- "../cdk-assets/lib/private/handlers/files.ts"() {
59508
+ "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
59509
59509
  "use strict";
59510
59510
  import_fs3 = require("fs");
59511
59511
  path6 = __toESM(require("path"));
@@ -59752,7 +59752,7 @@ var init_files = __esm({
59752
59752
  }
59753
59753
  });
59754
59754
 
59755
- // ../cdk-assets/lib/asset-manifest.ts
59755
+ // ../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts
59756
59756
  var asset_manifest_exports = {};
59757
59757
  __export(asset_manifest_exports, {
59758
59758
  AssetManifest: () => AssetManifest,
@@ -59790,7 +59790,7 @@ function prefixTreeChars(xs, prefix2 = "") {
59790
59790
  }
59791
59791
  var fs7, path7, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
59792
59792
  var init_asset_manifest = __esm({
59793
- "../cdk-assets/lib/asset-manifest.ts"() {
59793
+ "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
59794
59794
  "use strict";
59795
59795
  fs7 = __toESM(require("fs"));
59796
59796
  path7 = __toESM(require("path"));
@@ -59991,7 +59991,7 @@ var init_asset_manifest = __esm({
59991
59991
  }
59992
59992
  });
59993
59993
 
59994
- // ../cdk-assets/lib/private/handlers/index.ts
59994
+ // ../@aws-cdk/cdk-assets-lib/lib/private/handlers/index.ts
59995
59995
  function makeAssetHandler(manifest, asset, host, options) {
59996
59996
  if (asset instanceof FileManifestEntry) {
59997
59997
  return new FileAssetHandler(manifest.directory, asset, host);
@@ -60002,7 +60002,7 @@ function makeAssetHandler(manifest, asset, host, options) {
60002
60002
  throw new Error(`Unrecognized asset type: '${asset}'`);
60003
60003
  }
60004
60004
  var init_handlers = __esm({
60005
- "../cdk-assets/lib/private/handlers/index.ts"() {
60005
+ "../@aws-cdk/cdk-assets-lib/lib/private/handlers/index.ts"() {
60006
60006
  "use strict";
60007
60007
  init_container_images();
60008
60008
  init_files();
@@ -60010,7 +60010,7 @@ var init_handlers = __esm({
60010
60010
  }
60011
60011
  });
60012
60012
 
60013
- // ../cdk-assets/lib/private/p-limit.ts
60013
+ // ../@aws-cdk/cdk-assets-lib/lib/private/p-limit.ts
60014
60014
  function pLimit(concurrency) {
60015
60015
  const queue = [];
60016
60016
  let activeCount = 0;
@@ -60057,19 +60057,19 @@ function pLimit(concurrency) {
60057
60057
  return ret;
60058
60058
  }
60059
60059
  var init_p_limit = __esm({
60060
- "../cdk-assets/lib/private/p-limit.ts"() {
60060
+ "../@aws-cdk/cdk-assets-lib/lib/private/p-limit.ts"() {
60061
60061
  "use strict";
60062
60062
  }
60063
60063
  });
60064
60064
 
60065
- // ../cdk-assets/lib/publishing.ts
60065
+ // ../@aws-cdk/cdk-assets-lib/lib/publishing.ts
60066
60066
  var publishing_exports = {};
60067
60067
  __export(publishing_exports, {
60068
60068
  AssetPublishing: () => AssetPublishing
60069
60069
  });
60070
60070
  var AssetPublishing;
60071
60071
  var init_publishing = __esm({
60072
- "../cdk-assets/lib/publishing.ts"() {
60072
+ "../@aws-cdk/cdk-assets-lib/lib/publishing.ts"() {
60073
60073
  "use strict";
60074
60074
  init_docker();
60075
60075
  init_handlers();
@@ -76019,9 +76019,9 @@ var require_dist_cjs40 = __commonJS({
76019
76019
  }
76020
76020
  });
76021
76021
 
76022
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
76022
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js
76023
76023
  var require_httpAuthSchemeProvider2 = __commonJS({
76024
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
76024
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
76025
76025
  "use strict";
76026
76026
  Object.defineProperty(exports2, "__esModule", { value: true });
76027
76027
  exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOHttpAuthSchemeProvider = exports2.defaultSSOHttpAuthSchemeParametersProvider = void 0;
@@ -76092,9 +76092,9 @@ var require_httpAuthSchemeProvider2 = __commonJS({
76092
76092
  }
76093
76093
  });
76094
76094
 
76095
- // ../../node_modules/@aws-sdk/client-sso/package.json
76095
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/package.json
76096
76096
  var require_package2 = __commonJS({
76097
- "../../node_modules/@aws-sdk/client-sso/package.json"(exports2, module2) {
76097
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/package.json"(exports2, module2) {
76098
76098
  module2.exports = {
76099
76099
  name: "@aws-sdk/client-sso",
76100
76100
  description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
@@ -76395,9 +76395,9 @@ var require_dist_cjs43 = __commonJS({
76395
76395
  }
76396
76396
  });
76397
76397
 
76398
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
76398
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js
76399
76399
  var require_ruleset = __commonJS({
76400
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports2) {
76400
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports2) {
76401
76401
  "use strict";
76402
76402
  Object.defineProperty(exports2, "__esModule", { value: true });
76403
76403
  exports2.ruleSet = void 0;
@@ -76430,9 +76430,9 @@ var require_ruleset = __commonJS({
76430
76430
  }
76431
76431
  });
76432
76432
 
76433
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
76433
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js
76434
76434
  var require_endpointResolver = __commonJS({
76435
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports2) {
76435
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports2) {
76436
76436
  "use strict";
76437
76437
  Object.defineProperty(exports2, "__esModule", { value: true });
76438
76438
  exports2.defaultEndpointResolver = void 0;
@@ -76454,9 +76454,9 @@ var require_endpointResolver = __commonJS({
76454
76454
  }
76455
76455
  });
76456
76456
 
76457
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
76457
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js
76458
76458
  var require_runtimeConfig_shared = __commonJS({
76459
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports2) {
76459
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports2) {
76460
76460
  "use strict";
76461
76461
  Object.defineProperty(exports2, "__esModule", { value: true });
76462
76462
  exports2.getRuntimeConfig = void 0;
@@ -76609,9 +76609,9 @@ var require_dist_cjs44 = __commonJS({
76609
76609
  }
76610
76610
  });
76611
76611
 
76612
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
76612
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js
76613
76613
  var require_runtimeConfig = __commonJS({
76614
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports2) {
76614
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports2) {
76615
76615
  "use strict";
76616
76616
  Object.defineProperty(exports2, "__esModule", { value: true });
76617
76617
  exports2.getRuntimeConfig = void 0;
@@ -76753,9 +76753,9 @@ var require_dist_cjs45 = __commonJS({
76753
76753
  }
76754
76754
  });
76755
76755
 
76756
- // ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js
76756
+ // ../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/index.js
76757
76757
  var require_dist_cjs46 = __commonJS({
76758
- "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) {
76758
+ "../../node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2, module2) {
76759
76759
  "use strict";
76760
76760
  var __defProp2 = Object.defineProperty;
76761
76761
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -87404,9 +87404,9 @@ var require_package3 = __commonJS({
87404
87404
  }
87405
87405
  });
87406
87406
 
87407
- // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
87407
+ // ../../node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
87408
87408
  var require_dist_cjs64 = __commonJS({
87409
- "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) {
87409
+ "../../node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) {
87410
87410
  "use strict";
87411
87411
  var __defProp2 = Object.defineProperty;
87412
87412
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -106695,7 +106695,7 @@ var require_dist_cjs79 = __commonJS({
106695
106695
  }
106696
106696
  });
106697
106697
 
106698
- // ../cdk-assets/lib/aws.ts
106698
+ // ../@aws-cdk/cdk-assets-lib/lib/aws.ts
106699
106699
  var aws_exports = {};
106700
106700
  __export(aws_exports, {
106701
106701
  DefaultAwsClient: () => DefaultAwsClient
@@ -106709,7 +106709,7 @@ function safeUsername() {
106709
106709
  }
106710
106710
  var os3, import_client_ecr, import_client_s3, import_client_secrets_manager, import_client_sts, import_credential_providers, import_lib_storage, import_config_resolver5, import_node_config_provider3, USER_AGENT, DefaultAwsClient;
106711
106711
  var init_aws = __esm({
106712
- "../cdk-assets/lib/aws.ts"() {
106712
+ "../@aws-cdk/cdk-assets-lib/lib/aws.ts"() {
106713
106713
  "use strict";
106714
106714
  os3 = __toESM(require("os"));
106715
106715
  import_client_ecr = __toESM(require_dist_cjs54());
@@ -106819,9 +106819,9 @@ var init_aws = __esm({
106819
106819
  }
106820
106820
  });
106821
106821
 
106822
- // ../cdk-assets/lib/index.js
106822
+ // ../@aws-cdk/cdk-assets-lib/lib/index.js
106823
106823
  var require_lib6 = __commonJS({
106824
- "../cdk-assets/lib/index.js"(exports2) {
106824
+ "../@aws-cdk/cdk-assets-lib/lib/index.js"(exports2) {
106825
106825
  "use strict";
106826
106826
  var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) {
106827
106827
  if (k22 === void 0) k22 = k3;
@@ -108395,12 +108395,12 @@ var require_source = __commonJS({
108395
108395
  });
108396
108396
 
108397
108397
  // ../@aws-cdk/toolkit-lib/lib/api/deployments/asset-manifest-builder.ts
108398
- var cxschema, import_cdk_assets, AssetManifestBuilder;
108398
+ var import_cdk_assets_lib, cxschema, AssetManifestBuilder;
108399
108399
  var init_asset_manifest_builder = __esm({
108400
108400
  "../@aws-cdk/toolkit-lib/lib/api/deployments/asset-manifest-builder.ts"() {
108401
108401
  "use strict";
108402
+ import_cdk_assets_lib = __toESM(require_lib6());
108402
108403
  cxschema = __toESM(require_lib2());
108403
- import_cdk_assets = __toESM(require_lib6());
108404
108404
  AssetManifestBuilder = class {
108405
108405
  manifest = {
108406
108406
  version: cxschema.Manifest.version(),
@@ -108424,7 +108424,7 @@ var init_asset_manifest_builder = __esm({
108424
108424
  };
108425
108425
  }
108426
108426
  toManifest(directory) {
108427
- return new import_cdk_assets.AssetManifest(directory, this.manifest);
108427
+ return new import_cdk_assets_lib.AssetManifest(directory, this.manifest);
108428
108428
  }
108429
108429
  };
108430
108430
  }
@@ -117879,7 +117879,7 @@ async function publishAssets(manifest, sdk, targetEnv, options, ioHelper) {
117879
117879
  if (targetEnv.account === void 0 || targetEnv.account === import_cx_api2.UNKNOWN_ACCOUNT || targetEnv.region === void 0 || targetEnv.account === import_cx_api2.UNKNOWN_REGION) {
117880
117880
  throw new ToolkitError(`Asset publishing requires resolved account and region, got ${JSON.stringify(targetEnv)}`);
117881
117881
  }
117882
- const publisher = new import_cdk_assets2.AssetPublishing(manifest, {
117882
+ const publisher = new import_cdk_assets_lib2.AssetPublishing(manifest, {
117883
117883
  aws: new PublishingAws(sdk, targetEnv),
117884
117884
  progressListener: new PublishingProgressListener(ioHelper),
117885
117885
  throwOnError: false,
@@ -117893,12 +117893,12 @@ async function publishAssets(manifest, sdk, targetEnv, options, ioHelper) {
117893
117893
  throw new ToolkitError("Failed to publish one or more assets. See the error messages above for more information.");
117894
117894
  }
117895
117895
  }
117896
- var import_cx_api2, import_cdk_assets2, PublishingAws, EVENT_TO_MSG_LEVEL, BasePublishProgressListener, PublishingProgressListener;
117896
+ var import_cdk_assets_lib2, import_cx_api2, PublishingAws, EVENT_TO_MSG_LEVEL, BasePublishProgressListener, PublishingProgressListener;
117897
117897
  var init_asset_publishing = __esm({
117898
117898
  "../@aws-cdk/toolkit-lib/lib/api/deployments/asset-publishing.ts"() {
117899
117899
  "use strict";
117900
+ import_cdk_assets_lib2 = __toESM(require_lib6());
117900
117901
  import_cx_api2 = __toESM(require_lib3());
117901
- import_cdk_assets2 = __toESM(require_lib6());
117902
117902
  init_toolkit_error();
117903
117903
  init_plugin2();
117904
117904
  PublishingAws = class {
@@ -130781,6 +130781,326 @@ var init_evaluate_cloudformation_template = __esm({
130781
130781
  }
130782
130782
  });
130783
130783
 
130784
+ // ../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js
130785
+ var require_getEndpointUrlConfig2 = __commonJS({
130786
+ "../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js"(exports2) {
130787
+ "use strict";
130788
+ Object.defineProperty(exports2, "__esModule", { value: true });
130789
+ exports2.getEndpointUrlConfig = void 0;
130790
+ var shared_ini_file_loader_1 = require_dist_cjs30();
130791
+ var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
130792
+ var CONFIG_ENDPOINT_URL = "endpoint_url";
130793
+ var getEndpointUrlConfig = (serviceId) => ({
130794
+ environmentVariableSelector: (env2) => {
130795
+ const serviceSuffixParts = serviceId.split(" ").map((w3) => w3.toUpperCase());
130796
+ const serviceEndpointUrl = env2[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
130797
+ if (serviceEndpointUrl)
130798
+ return serviceEndpointUrl;
130799
+ const endpointUrl = env2[ENV_ENDPOINT_URL];
130800
+ if (endpointUrl)
130801
+ return endpointUrl;
130802
+ return void 0;
130803
+ },
130804
+ configFileSelector: (profile, config) => {
130805
+ if (config && profile.services) {
130806
+ const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
130807
+ if (servicesSection) {
130808
+ const servicePrefixParts = serviceId.split(" ").map((w3) => w3.toLowerCase());
130809
+ const endpointUrl2 = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
130810
+ if (endpointUrl2)
130811
+ return endpointUrl2;
130812
+ }
130813
+ }
130814
+ const endpointUrl = profile[CONFIG_ENDPOINT_URL];
130815
+ if (endpointUrl)
130816
+ return endpointUrl;
130817
+ return void 0;
130818
+ },
130819
+ default: void 0
130820
+ });
130821
+ exports2.getEndpointUrlConfig = getEndpointUrlConfig;
130822
+ }
130823
+ });
130824
+
130825
+ // ../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js
130826
+ var require_getEndpointFromConfig2 = __commonJS({
130827
+ "../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js"(exports2) {
130828
+ "use strict";
130829
+ Object.defineProperty(exports2, "__esModule", { value: true });
130830
+ exports2.getEndpointFromConfig = void 0;
130831
+ var node_config_provider_1 = require_dist_cjs31();
130832
+ var getEndpointUrlConfig_1 = require_getEndpointUrlConfig2();
130833
+ var getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : ""))();
130834
+ exports2.getEndpointFromConfig = getEndpointFromConfig;
130835
+ }
130836
+ });
130837
+
130838
+ // ../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
130839
+ var require_dist_cjs81 = __commonJS({
130840
+ "../@aws-cdk/toolkit-lib/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2, module2) {
130841
+ var __defProp2 = Object.defineProperty;
130842
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
130843
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
130844
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
130845
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
130846
+ var __export2 = (target, all) => {
130847
+ for (var name in all)
130848
+ __defProp2(target, name, { get: all[name], enumerable: true });
130849
+ };
130850
+ var __copyProps2 = (to, from, except, desc) => {
130851
+ if (from && typeof from === "object" || typeof from === "function") {
130852
+ for (let key of __getOwnPropNames2(from))
130853
+ if (!__hasOwnProp2.call(to, key) && key !== except)
130854
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
130855
+ }
130856
+ return to;
130857
+ };
130858
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
130859
+ var src_exports = {};
130860
+ __export2(src_exports, {
130861
+ endpointMiddleware: () => endpointMiddleware,
130862
+ endpointMiddlewareOptions: () => endpointMiddlewareOptions,
130863
+ getEndpointFromInstructions: () => getEndpointFromInstructions3,
130864
+ getEndpointPlugin: () => getEndpointPlugin4,
130865
+ resolveEndpointConfig: () => resolveEndpointConfig3,
130866
+ resolveEndpointRequiredConfig: () => resolveEndpointRequiredConfig,
130867
+ resolveParams: () => resolveParams,
130868
+ toEndpointV1: () => toEndpointV1
130869
+ });
130870
+ module2.exports = __toCommonJS2(src_exports);
130871
+ var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => {
130872
+ const bucket = endpointParams?.Bucket || "";
130873
+ if (typeof endpointParams.Bucket === "string") {
130874
+ endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?"));
130875
+ }
130876
+ if (isArnBucketName(bucket)) {
130877
+ if (endpointParams.ForcePathStyle === true) {
130878
+ throw new Error("Path-style addressing cannot be used with ARN buckets");
130879
+ }
130880
+ } else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) {
130881
+ endpointParams.ForcePathStyle = true;
130882
+ }
130883
+ if (endpointParams.DisableMultiRegionAccessPoints) {
130884
+ endpointParams.disableMultiRegionAccessPoints = true;
130885
+ endpointParams.DisableMRAP = true;
130886
+ }
130887
+ return endpointParams;
130888
+ }, "resolveParamsForS3");
130889
+ var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
130890
+ var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
130891
+ var DOTS_PATTERN = /\.\./;
130892
+ var isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName");
130893
+ var isArnBucketName = /* @__PURE__ */ __name((bucketName) => {
130894
+ const [arn, partition3, service, , , bucket] = bucketName.split(":");
130895
+ const isArn = arn === "arn" && bucketName.split(":").length >= 6;
130896
+ const isValidArn = Boolean(isArn && partition3 && service && bucket);
130897
+ if (isArn && !isValidArn) {
130898
+ throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);
130899
+ }
130900
+ return isValidArn;
130901
+ }, "isArnBucketName");
130902
+ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndpointParamKey, config) => {
130903
+ const configProvider = /* @__PURE__ */ __name(async () => {
130904
+ const configValue = config[configKey] ?? config[canonicalEndpointParamKey];
130905
+ if (typeof configValue === "function") {
130906
+ return configValue();
130907
+ }
130908
+ return configValue;
130909
+ }, "configProvider");
130910
+ if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") {
130911
+ return async () => {
130912
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
130913
+ const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;
130914
+ return configValue;
130915
+ };
130916
+ }
130917
+ if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") {
130918
+ return async () => {
130919
+ const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials;
130920
+ const configValue = credentials?.accountId ?? credentials?.AccountId;
130921
+ return configValue;
130922
+ };
130923
+ }
130924
+ if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
130925
+ return async () => {
130926
+ const endpoint = await configProvider();
130927
+ if (endpoint && typeof endpoint === "object") {
130928
+ if ("url" in endpoint) {
130929
+ return endpoint.url.href;
130930
+ }
130931
+ if ("hostname" in endpoint) {
130932
+ const { protocol, hostname, port, path: path34 } = endpoint;
130933
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path34}`;
130934
+ }
130935
+ }
130936
+ return endpoint;
130937
+ };
130938
+ }
130939
+ return configProvider;
130940
+ }, "createConfigValueProvider");
130941
+ var import_getEndpointFromConfig = require_getEndpointFromConfig2();
130942
+ var import_url_parser3 = require_dist_cjs33();
130943
+ var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
130944
+ if (typeof endpoint === "object") {
130945
+ if ("url" in endpoint) {
130946
+ return (0, import_url_parser3.parseUrl)(endpoint.url);
130947
+ }
130948
+ return endpoint;
130949
+ }
130950
+ return (0, import_url_parser3.parseUrl)(endpoint);
130951
+ }, "toEndpointV1");
130952
+ var getEndpointFromInstructions3 = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
130953
+ if (!clientConfig.endpoint) {
130954
+ let endpointFromConfig;
130955
+ if (clientConfig.serviceConfiguredEndpoint) {
130956
+ endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
130957
+ } else {
130958
+ endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId);
130959
+ }
130960
+ if (endpointFromConfig) {
130961
+ clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
130962
+ }
130963
+ }
130964
+ const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
130965
+ if (typeof clientConfig.endpointProvider !== "function") {
130966
+ throw new Error("config.endpointProvider is not set.");
130967
+ }
130968
+ const endpoint = clientConfig.endpointProvider(endpointParams, context);
130969
+ return endpoint;
130970
+ }, "getEndpointFromInstructions");
130971
+ var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => {
130972
+ const endpointParams = {};
130973
+ const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
130974
+ for (const [name, instruction] of Object.entries(instructions)) {
130975
+ switch (instruction.type) {
130976
+ case "staticContextParams":
130977
+ endpointParams[name] = instruction.value;
130978
+ break;
130979
+ case "contextParams":
130980
+ endpointParams[name] = commandInput[instruction.name];
130981
+ break;
130982
+ case "clientContextParams":
130983
+ case "builtInParams":
130984
+ endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
130985
+ break;
130986
+ case "operationContextParams":
130987
+ endpointParams[name] = instruction.get(commandInput);
130988
+ break;
130989
+ default:
130990
+ throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
130991
+ }
130992
+ }
130993
+ if (Object.keys(instructions).length === 0) {
130994
+ Object.assign(endpointParams, clientConfig);
130995
+ }
130996
+ if (String(clientConfig.serviceId).toLowerCase() === "s3") {
130997
+ await resolveParamsForS3(endpointParams);
130998
+ }
130999
+ return endpointParams;
131000
+ }, "resolveParams");
131001
+ var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports));
131002
+ var import_util_middleware7 = require_dist_cjs6();
131003
+ var endpointMiddleware = /* @__PURE__ */ __name(({
131004
+ config,
131005
+ instructions
131006
+ }) => {
131007
+ return (next, context) => async (args) => {
131008
+ if (config.endpoint) {
131009
+ (0, import_core17.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
131010
+ }
131011
+ const endpoint = await getEndpointFromInstructions3(
131012
+ args.input,
131013
+ {
131014
+ getEndpointParameterInstructions() {
131015
+ return instructions;
131016
+ }
131017
+ },
131018
+ { ...config },
131019
+ context
131020
+ );
131021
+ context.endpointV2 = endpoint;
131022
+ context.authSchemes = endpoint.properties?.authSchemes;
131023
+ const authScheme = context.authSchemes?.[0];
131024
+ if (authScheme) {
131025
+ context["signing_region"] = authScheme.signingRegion;
131026
+ context["signing_service"] = authScheme.signingName;
131027
+ const smithyContext = (0, import_util_middleware7.getSmithyContext)(context);
131028
+ const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
131029
+ if (httpAuthOption) {
131030
+ httpAuthOption.signingProperties = Object.assign(
131031
+ httpAuthOption.signingProperties || {},
131032
+ {
131033
+ signing_region: authScheme.signingRegion,
131034
+ signingRegion: authScheme.signingRegion,
131035
+ signing_service: authScheme.signingName,
131036
+ signingName: authScheme.signingName,
131037
+ signingRegionSet: authScheme.signingRegionSet
131038
+ },
131039
+ authScheme.properties
131040
+ );
131041
+ }
131042
+ }
131043
+ return next({
131044
+ ...args
131045
+ });
131046
+ };
131047
+ }, "endpointMiddleware");
131048
+ var import_middleware_serde5 = require_dist_cjs7();
131049
+ var endpointMiddlewareOptions = {
131050
+ step: "serialize",
131051
+ tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
131052
+ name: "endpointV2Middleware",
131053
+ override: true,
131054
+ relation: "before",
131055
+ toMiddleware: import_middleware_serde5.serializerMiddlewareOption.name
131056
+ };
131057
+ var getEndpointPlugin4 = /* @__PURE__ */ __name((config, instructions) => ({
131058
+ applyToStack: (clientStack) => {
131059
+ clientStack.addRelativeTo(
131060
+ endpointMiddleware({
131061
+ config,
131062
+ instructions
131063
+ }),
131064
+ endpointMiddlewareOptions
131065
+ );
131066
+ }
131067
+ }), "getEndpointPlugin");
131068
+ var import_getEndpointFromConfig2 = require_getEndpointFromConfig2();
131069
+ var resolveEndpointConfig3 = /* @__PURE__ */ __name((input) => {
131070
+ const tls = input.tls ?? true;
131071
+ const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
131072
+ const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware7.normalizeProvider)(endpoint)()) : void 0;
131073
+ const isCustomEndpoint = !!endpoint;
131074
+ const resolvedConfig = Object.assign(input, {
131075
+ endpoint: customEndpointProvider,
131076
+ tls,
131077
+ isCustomEndpoint,
131078
+ useDualstackEndpoint: (0, import_util_middleware7.normalizeProvider)(useDualstackEndpoint ?? false),
131079
+ useFipsEndpoint: (0, import_util_middleware7.normalizeProvider)(useFipsEndpoint ?? false)
131080
+ });
131081
+ let configuredEndpointPromise = void 0;
131082
+ resolvedConfig.serviceConfiguredEndpoint = async () => {
131083
+ if (input.serviceId && !configuredEndpointPromise) {
131084
+ configuredEndpointPromise = (0, import_getEndpointFromConfig2.getEndpointFromConfig)(input.serviceId);
131085
+ }
131086
+ return configuredEndpointPromise;
131087
+ };
131088
+ return resolvedConfig;
131089
+ }, "resolveEndpointConfig");
131090
+ var resolveEndpointRequiredConfig = /* @__PURE__ */ __name((input) => {
131091
+ const { endpoint } = input;
131092
+ if (endpoint === void 0) {
131093
+ input.endpoint = async () => {
131094
+ throw new Error(
131095
+ "@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint."
131096
+ );
131097
+ };
131098
+ }
131099
+ return input;
131100
+ }, "resolveEndpointRequiredConfig");
131101
+ }
131102
+ });
131103
+
130784
131104
  // ../@aws-cdk/toolkit-lib/lib/api/cloudformation/template-body-parameter.ts
130785
131105
  async function makeBodyParameter(ioHelper, stack, resolvedEnvironment, assetManifest, resources, overrideTemplate) {
130786
131106
  if (stack.stackTemplateAssetObjectUrl && !overrideTemplate) {
@@ -130861,7 +131181,7 @@ var init_template_body_parameter = __esm({
130861
131181
  util3 = __toESM(require("node:util"));
130862
131182
  import_cx_api3 = __toESM(require_lib3());
130863
131183
  import_client_s32 = __toESM(require_dist_cjs71());
130864
- import_middleware_endpoint6 = __toESM(require_dist_cjs34());
131184
+ import_middleware_endpoint6 = __toESM(require_dist_cjs81());
130865
131185
  chalk = __toESM(require_source());
130866
131186
  init_toolkit_error();
130867
131187
  init_util2();
@@ -131663,7 +131983,7 @@ async function createDiffChangeSet(ioHelper, options) {
131663
131983
  function templatesFromAssetManifestArtifact(artifact) {
131664
131984
  const assets = [];
131665
131985
  const fileName = artifact.file;
131666
- const assetManifest = import_cdk_assets3.AssetManifest.fromFile(fileName);
131986
+ const assetManifest = import_cdk_assets_lib3.AssetManifest.fromFile(fileName);
131667
131987
  assetManifest.entries.forEach((entry) => {
131668
131988
  if (entry.type === "file") {
131669
131989
  const source = entry.source;
@@ -131828,15 +132148,15 @@ async function stabilizeStack(cfn, ioHelper, stackName) {
131828
132148
  return stack;
131829
132149
  });
131830
132150
  }
131831
- var import_util10, cxapi, import_cx_api4, import_client_cloudformation2, import_cdk_assets3, TemplateParameters, ParameterValues;
132151
+ var import_util10, import_cdk_assets_lib3, cxapi, import_cx_api4, import_client_cloudformation2, TemplateParameters, ParameterValues;
131832
132152
  var init_cfn_api = __esm({
131833
132153
  "../@aws-cdk/toolkit-lib/lib/api/deployments/cfn-api.ts"() {
131834
132154
  "use strict";
131835
132155
  import_util10 = require("util");
132156
+ import_cdk_assets_lib3 = __toESM(require_lib6());
131836
132157
  cxapi = __toESM(require_lib3());
131837
132158
  import_cx_api4 = __toESM(require_lib3());
131838
132159
  import_client_cloudformation2 = __toESM(require_dist_cjs80());
131839
- import_cdk_assets3 = __toESM(require_lib6());
131840
132160
  init_asset_manifest_builder();
131841
132161
  init_toolkit_error();
131842
132162
  init_cloudformation2();
@@ -145438,7 +145758,7 @@ var init_web_data_source = __esm({
145438
145758
  url;
145439
145759
  agent;
145440
145760
  async fetch() {
145441
- const timeout = 3e3;
145761
+ const timeout = process.env.TESTING_CDK ? 3e4 : 3e3;
145442
145762
  const options = {
145443
145763
  agent: this.agent
145444
145764
  };
@@ -147952,7 +148272,7 @@ var require_runtimeConfig9 = __commonJS({
147952
148272
  });
147953
148273
 
147954
148274
  // ../../node_modules/@aws-sdk/client-appsync/dist-cjs/index.js
147955
- var require_dist_cjs81 = __commonJS({
148275
+ var require_dist_cjs82 = __commonJS({
147956
148276
  "../../node_modules/@aws-sdk/client-appsync/dist-cjs/index.js"(exports2, module2) {
147957
148277
  "use strict";
147958
148278
  var __defProp2 = Object.defineProperty;
@@ -152265,7 +152585,7 @@ var require_runtimeConfig10 = __commonJS({
152265
152585
  });
152266
152586
 
152267
152587
  // ../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/index.js
152268
- var require_dist_cjs82 = __commonJS({
152588
+ var require_dist_cjs83 = __commonJS({
152269
152589
  "../../node_modules/@aws-sdk/client-cloudcontrol/dist-cjs/index.js"(exports2, module2) {
152270
152590
  "use strict";
152271
152591
  var __defProp2 = Object.defineProperty;
@@ -154017,7 +154337,7 @@ var require_runtimeConfig11 = __commonJS({
154017
154337
  });
154018
154338
 
154019
154339
  // ../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js
154020
- var require_dist_cjs83 = __commonJS({
154340
+ var require_dist_cjs84 = __commonJS({
154021
154341
  "../../node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js"(exports2, module2) {
154022
154342
  "use strict";
154023
154343
  var __defProp2 = Object.defineProperty;
@@ -158277,7 +158597,7 @@ var require_runtimeConfig12 = __commonJS({
158277
158597
  });
158278
158598
 
158279
158599
  // ../../node_modules/@aws-sdk/client-codebuild/dist-cjs/index.js
158280
- var require_dist_cjs84 = __commonJS({
158600
+ var require_dist_cjs85 = __commonJS({
158281
158601
  "../../node_modules/@aws-sdk/client-codebuild/dist-cjs/index.js"(exports2, module2) {
158282
158602
  "use strict";
158283
158603
  var __defProp2 = Object.defineProperty;
@@ -161910,7 +162230,7 @@ var require_runtimeConfig13 = __commonJS({
161910
162230
  });
161911
162231
 
161912
162232
  // ../../node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
161913
- var require_dist_cjs85 = __commonJS({
162233
+ var require_dist_cjs86 = __commonJS({
161914
162234
  "../../node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2, module2) {
161915
162235
  "use strict";
161916
162236
  var __defProp2 = Object.defineProperty;
@@ -161970,7 +162290,7 @@ var require_dist_cjs85 = __commonJS({
161970
162290
  });
161971
162291
 
161972
162292
  // ../../node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js
161973
- var require_dist_cjs86 = __commonJS({
162293
+ var require_dist_cjs87 = __commonJS({
161974
162294
  "../../node_modules/@aws-sdk/middleware-sdk-ec2/dist-cjs/index.js"(exports2, module2) {
161975
162295
  "use strict";
161976
162296
  var __defProp2 = Object.defineProperty;
@@ -161998,7 +162318,7 @@ var require_dist_cjs86 = __commonJS({
161998
162318
  getCopySnapshotPresignedUrlPlugin: () => getCopySnapshotPresignedUrlPlugin
161999
162319
  });
162000
162320
  module2.exports = __toCommonJS2(index_exports);
162001
- var import_util_format_url = require_dist_cjs85();
162321
+ var import_util_format_url = require_dist_cjs86();
162002
162322
  var import_middleware_endpoint8 = require_dist_cjs34();
162003
162323
  var import_protocol_http15 = require_dist_cjs2();
162004
162324
  var import_signature_v42 = require_dist_cjs21();
@@ -162098,7 +162418,7 @@ var require_dist_cjs86 = __commonJS({
162098
162418
  });
162099
162419
 
162100
162420
  // ../../node_modules/@aws-sdk/client-ec2/dist-cjs/index.js
162101
- var require_dist_cjs87 = __commonJS({
162421
+ var require_dist_cjs88 = __commonJS({
162102
162422
  "../../node_modules/@aws-sdk/client-ec2/dist-cjs/index.js"(exports2, module2) {
162103
162423
  "use strict";
162104
162424
  var __defProp2 = Object.defineProperty;
@@ -230841,7 +231161,7 @@ var require_dist_cjs87 = __commonJS({
230841
231161
  __name(this, "CopyImageCommand");
230842
231162
  }
230843
231163
  };
230844
- var import_middleware_sdk_ec2 = require_dist_cjs86();
231164
+ var import_middleware_sdk_ec2 = require_dist_cjs87();
230845
231165
  var CapacityReservationDeliveryPreference = {
230846
231166
  FIXED: "fixed",
230847
231167
  INCREMENTAL: "incremental"
@@ -243120,7 +243440,7 @@ var require_runtimeConfig14 = __commonJS({
243120
243440
  });
243121
243441
 
243122
243442
  // ../../node_modules/@aws-sdk/client-ecs/dist-cjs/index.js
243123
- var require_dist_cjs88 = __commonJS({
243443
+ var require_dist_cjs89 = __commonJS({
243124
243444
  "../../node_modules/@aws-sdk/client-ecs/dist-cjs/index.js"(exports2, module2) {
243125
243445
  "use strict";
243126
243446
  var __defProp2 = Object.defineProperty;
@@ -247705,7 +248025,7 @@ var require_runtimeConfig15 = __commonJS({
247705
248025
  });
247706
248026
 
247707
248027
  // ../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/index.js
247708
- var require_dist_cjs89 = __commonJS({
248028
+ var require_dist_cjs90 = __commonJS({
247709
248029
  "../../node_modules/@aws-sdk/client-elastic-load-balancing-v2/dist-cjs/index.js"(exports2, module2) {
247710
248030
  "use strict";
247711
248031
  var __defProp2 = Object.defineProperty;
@@ -256340,7 +256660,7 @@ var require_runtimeConfig16 = __commonJS({
256340
256660
  });
256341
256661
 
256342
256662
  // ../../node_modules/@aws-sdk/client-iam/dist-cjs/index.js
256343
- var require_dist_cjs90 = __commonJS({
256663
+ var require_dist_cjs91 = __commonJS({
256344
256664
  "../../node_modules/@aws-sdk/client-iam/dist-cjs/index.js"(exports2, module2) {
256345
256665
  "use strict";
256346
256666
  var __defProp2 = Object.defineProperty;
@@ -269118,7 +269438,7 @@ var require_runtimeConfig17 = __commonJS({
269118
269438
  });
269119
269439
 
269120
269440
  // ../../node_modules/@aws-sdk/client-kms/dist-cjs/index.js
269121
- var require_dist_cjs91 = __commonJS({
269441
+ var require_dist_cjs92 = __commonJS({
269122
269442
  "../../node_modules/@aws-sdk/client-kms/dist-cjs/index.js"(exports2, module2) {
269123
269443
  "use strict";
269124
269444
  var __defProp2 = Object.defineProperty;
@@ -273512,7 +273832,7 @@ var require_runtimeConfig18 = __commonJS({
273512
273832
  });
273513
273833
 
273514
273834
  // ../../node_modules/@aws-sdk/client-lambda/dist-cjs/index.js
273515
- var require_dist_cjs92 = __commonJS({
273835
+ var require_dist_cjs93 = __commonJS({
273516
273836
  "../../node_modules/@aws-sdk/client-lambda/dist-cjs/index.js"(exports2, module2) {
273517
273837
  "use strict";
273518
273838
  var __defProp2 = Object.defineProperty;
@@ -279625,7 +279945,7 @@ var require_runtimeConfig19 = __commonJS({
279625
279945
  });
279626
279946
 
279627
279947
  // ../../node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js
279628
- var require_dist_cjs93 = __commonJS({
279948
+ var require_dist_cjs94 = __commonJS({
279629
279949
  "../../node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js"(exports2, module2) {
279630
279950
  "use strict";
279631
279951
  var __defProp2 = Object.defineProperty;
@@ -279734,7 +280054,7 @@ var require_dist_cjs93 = __commonJS({
279734
280054
  });
279735
280055
 
279736
280056
  // ../../node_modules/@aws-sdk/client-route-53/dist-cjs/index.js
279737
- var require_dist_cjs94 = __commonJS({
280057
+ var require_dist_cjs95 = __commonJS({
279738
280058
  "../../node_modules/@aws-sdk/client-route-53/dist-cjs/index.js"(exports2, module2) {
279739
280059
  "use strict";
279740
280060
  var __defProp2 = Object.defineProperty;
@@ -280055,7 +280375,7 @@ var require_dist_cjs94 = __commonJS({
280055
280375
  super.destroy();
280056
280376
  }
280057
280377
  };
280058
- var import_middleware_sdk_route53 = require_dist_cjs93();
280378
+ var import_middleware_sdk_route53 = require_dist_cjs94();
280059
280379
  var import_middleware_serde5 = require_dist_cjs7();
280060
280380
  var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
280061
280381
  var import_xml_builder2 = require_dist_cjs25();
@@ -286144,7 +286464,7 @@ var require_dist_cjs94 = __commonJS({
286144
286464
  __name(this, "ActivateKeySigningKeyCommand");
286145
286465
  }
286146
286466
  };
286147
- var import_middleware_sdk_route532 = require_dist_cjs93();
286467
+ var import_middleware_sdk_route532 = require_dist_cjs94();
286148
286468
  var AssociateVPCWithHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286149
286469
  return [
286150
286470
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286156,7 +286476,7 @@ var require_dist_cjs94 = __commonJS({
286156
286476
  __name(this, "AssociateVPCWithHostedZoneCommand");
286157
286477
  }
286158
286478
  };
286159
- var import_middleware_sdk_route533 = require_dist_cjs93();
286479
+ var import_middleware_sdk_route533 = require_dist_cjs94();
286160
286480
  var ChangeCidrCollectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286161
286481
  return [
286162
286482
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286168,7 +286488,7 @@ var require_dist_cjs94 = __commonJS({
286168
286488
  __name(this, "ChangeCidrCollectionCommand");
286169
286489
  }
286170
286490
  };
286171
- var import_middleware_sdk_route534 = require_dist_cjs93();
286491
+ var import_middleware_sdk_route534 = require_dist_cjs94();
286172
286492
  var ChangeResourceRecordSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286173
286493
  return [
286174
286494
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286211,7 +286531,7 @@ var require_dist_cjs94 = __commonJS({
286211
286531
  __name(this, "CreateHealthCheckCommand");
286212
286532
  }
286213
286533
  };
286214
- var import_middleware_sdk_route535 = require_dist_cjs93();
286534
+ var import_middleware_sdk_route535 = require_dist_cjs94();
286215
286535
  var CreateHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286216
286536
  return [
286217
286537
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286223,7 +286543,7 @@ var require_dist_cjs94 = __commonJS({
286223
286543
  __name(this, "CreateHostedZoneCommand");
286224
286544
  }
286225
286545
  };
286226
- var import_middleware_sdk_route536 = require_dist_cjs93();
286546
+ var import_middleware_sdk_route536 = require_dist_cjs94();
286227
286547
  var CreateKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286228
286548
  return [
286229
286549
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286235,7 +286555,7 @@ var require_dist_cjs94 = __commonJS({
286235
286555
  __name(this, "CreateKeySigningKeyCommand");
286236
286556
  }
286237
286557
  };
286238
- var import_middleware_sdk_route537 = require_dist_cjs93();
286558
+ var import_middleware_sdk_route537 = require_dist_cjs94();
286239
286559
  var CreateQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286240
286560
  return [
286241
286561
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286247,7 +286567,7 @@ var require_dist_cjs94 = __commonJS({
286247
286567
  __name(this, "CreateQueryLoggingConfigCommand");
286248
286568
  }
286249
286569
  };
286250
- var import_middleware_sdk_route538 = require_dist_cjs93();
286570
+ var import_middleware_sdk_route538 = require_dist_cjs94();
286251
286571
  var CreateReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286252
286572
  return [
286253
286573
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286269,7 +286589,7 @@ var require_dist_cjs94 = __commonJS({
286269
286589
  __name(this, "CreateTrafficPolicyCommand");
286270
286590
  }
286271
286591
  };
286272
- var import_middleware_sdk_route539 = require_dist_cjs93();
286592
+ var import_middleware_sdk_route539 = require_dist_cjs94();
286273
286593
  var CreateTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286274
286594
  return [
286275
286595
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286281,7 +286601,7 @@ var require_dist_cjs94 = __commonJS({
286281
286601
  __name(this, "CreateTrafficPolicyInstanceCommand");
286282
286602
  }
286283
286603
  };
286284
- var import_middleware_sdk_route5310 = require_dist_cjs93();
286604
+ var import_middleware_sdk_route5310 = require_dist_cjs94();
286285
286605
  var CreateTrafficPolicyVersionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286286
286606
  return [
286287
286607
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286293,7 +286613,7 @@ var require_dist_cjs94 = __commonJS({
286293
286613
  __name(this, "CreateTrafficPolicyVersionCommand");
286294
286614
  }
286295
286615
  };
286296
- var import_middleware_sdk_route5311 = require_dist_cjs93();
286616
+ var import_middleware_sdk_route5311 = require_dist_cjs94();
286297
286617
  var CreateVPCAssociationAuthorizationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286298
286618
  return [
286299
286619
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286305,7 +286625,7 @@ var require_dist_cjs94 = __commonJS({
286305
286625
  __name(this, "CreateVPCAssociationAuthorizationCommand");
286306
286626
  }
286307
286627
  };
286308
- var import_middleware_sdk_route5312 = require_dist_cjs93();
286628
+ var import_middleware_sdk_route5312 = require_dist_cjs94();
286309
286629
  var DeactivateKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286310
286630
  return [
286311
286631
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286317,7 +286637,7 @@ var require_dist_cjs94 = __commonJS({
286317
286637
  __name(this, "DeactivateKeySigningKeyCommand");
286318
286638
  }
286319
286639
  };
286320
- var import_middleware_sdk_route5313 = require_dist_cjs93();
286640
+ var import_middleware_sdk_route5313 = require_dist_cjs94();
286321
286641
  var DeleteCidrCollectionCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286322
286642
  return [
286323
286643
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286339,7 +286659,7 @@ var require_dist_cjs94 = __commonJS({
286339
286659
  __name(this, "DeleteHealthCheckCommand");
286340
286660
  }
286341
286661
  };
286342
- var import_middleware_sdk_route5314 = require_dist_cjs93();
286662
+ var import_middleware_sdk_route5314 = require_dist_cjs94();
286343
286663
  var DeleteHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286344
286664
  return [
286345
286665
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286351,7 +286671,7 @@ var require_dist_cjs94 = __commonJS({
286351
286671
  __name(this, "DeleteHostedZoneCommand");
286352
286672
  }
286353
286673
  };
286354
- var import_middleware_sdk_route5315 = require_dist_cjs93();
286674
+ var import_middleware_sdk_route5315 = require_dist_cjs94();
286355
286675
  var DeleteKeySigningKeyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286356
286676
  return [
286357
286677
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286363,7 +286683,7 @@ var require_dist_cjs94 = __commonJS({
286363
286683
  __name(this, "DeleteKeySigningKeyCommand");
286364
286684
  }
286365
286685
  };
286366
- var import_middleware_sdk_route5316 = require_dist_cjs93();
286686
+ var import_middleware_sdk_route5316 = require_dist_cjs94();
286367
286687
  var DeleteQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286368
286688
  return [
286369
286689
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286375,7 +286695,7 @@ var require_dist_cjs94 = __commonJS({
286375
286695
  __name(this, "DeleteQueryLoggingConfigCommand");
286376
286696
  }
286377
286697
  };
286378
- var import_middleware_sdk_route5317 = require_dist_cjs93();
286698
+ var import_middleware_sdk_route5317 = require_dist_cjs94();
286379
286699
  var DeleteReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286380
286700
  return [
286381
286701
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286387,7 +286707,7 @@ var require_dist_cjs94 = __commonJS({
286387
286707
  __name(this, "DeleteReusableDelegationSetCommand");
286388
286708
  }
286389
286709
  };
286390
- var import_middleware_sdk_route5318 = require_dist_cjs93();
286710
+ var import_middleware_sdk_route5318 = require_dist_cjs94();
286391
286711
  var DeleteTrafficPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286392
286712
  return [
286393
286713
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286399,7 +286719,7 @@ var require_dist_cjs94 = __commonJS({
286399
286719
  __name(this, "DeleteTrafficPolicyCommand");
286400
286720
  }
286401
286721
  };
286402
- var import_middleware_sdk_route5319 = require_dist_cjs93();
286722
+ var import_middleware_sdk_route5319 = require_dist_cjs94();
286403
286723
  var DeleteTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286404
286724
  return [
286405
286725
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286411,7 +286731,7 @@ var require_dist_cjs94 = __commonJS({
286411
286731
  __name(this, "DeleteTrafficPolicyInstanceCommand");
286412
286732
  }
286413
286733
  };
286414
- var import_middleware_sdk_route5320 = require_dist_cjs93();
286734
+ var import_middleware_sdk_route5320 = require_dist_cjs94();
286415
286735
  var DeleteVPCAssociationAuthorizationCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286416
286736
  return [
286417
286737
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286423,7 +286743,7 @@ var require_dist_cjs94 = __commonJS({
286423
286743
  __name(this, "DeleteVPCAssociationAuthorizationCommand");
286424
286744
  }
286425
286745
  };
286426
- var import_middleware_sdk_route5321 = require_dist_cjs93();
286746
+ var import_middleware_sdk_route5321 = require_dist_cjs94();
286427
286747
  var DisableHostedZoneDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286428
286748
  return [
286429
286749
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286435,7 +286755,7 @@ var require_dist_cjs94 = __commonJS({
286435
286755
  __name(this, "DisableHostedZoneDNSSECCommand");
286436
286756
  }
286437
286757
  };
286438
- var import_middleware_sdk_route5322 = require_dist_cjs93();
286758
+ var import_middleware_sdk_route5322 = require_dist_cjs94();
286439
286759
  var DisassociateVPCFromHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286440
286760
  return [
286441
286761
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286447,7 +286767,7 @@ var require_dist_cjs94 = __commonJS({
286447
286767
  __name(this, "DisassociateVPCFromHostedZoneCommand");
286448
286768
  }
286449
286769
  };
286450
- var import_middleware_sdk_route5323 = require_dist_cjs93();
286770
+ var import_middleware_sdk_route5323 = require_dist_cjs94();
286451
286771
  var EnableHostedZoneDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286452
286772
  return [
286453
286773
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286469,7 +286789,7 @@ var require_dist_cjs94 = __commonJS({
286469
286789
  __name(this, "GetAccountLimitCommand");
286470
286790
  }
286471
286791
  };
286472
- var import_middleware_sdk_route5324 = require_dist_cjs93();
286792
+ var import_middleware_sdk_route5324 = require_dist_cjs94();
286473
286793
  var GetChangeCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286474
286794
  return [
286475
286795
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286491,7 +286811,7 @@ var require_dist_cjs94 = __commonJS({
286491
286811
  __name(this, "GetCheckerIpRangesCommand");
286492
286812
  }
286493
286813
  };
286494
- var import_middleware_sdk_route5325 = require_dist_cjs93();
286814
+ var import_middleware_sdk_route5325 = require_dist_cjs94();
286495
286815
  var GetDNSSECCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286496
286816
  return [
286497
286817
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286553,7 +286873,7 @@ var require_dist_cjs94 = __commonJS({
286553
286873
  __name(this, "GetHealthCheckStatusCommand");
286554
286874
  }
286555
286875
  };
286556
- var import_middleware_sdk_route5326 = require_dist_cjs93();
286876
+ var import_middleware_sdk_route5326 = require_dist_cjs94();
286557
286877
  var GetHostedZoneCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286558
286878
  return [
286559
286879
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286575,7 +286895,7 @@ var require_dist_cjs94 = __commonJS({
286575
286895
  __name(this, "GetHostedZoneCountCommand");
286576
286896
  }
286577
286897
  };
286578
- var import_middleware_sdk_route5327 = require_dist_cjs93();
286898
+ var import_middleware_sdk_route5327 = require_dist_cjs94();
286579
286899
  var GetHostedZoneLimitCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286580
286900
  return [
286581
286901
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286587,7 +286907,7 @@ var require_dist_cjs94 = __commonJS({
286587
286907
  __name(this, "GetHostedZoneLimitCommand");
286588
286908
  }
286589
286909
  };
286590
- var import_middleware_sdk_route5328 = require_dist_cjs93();
286910
+ var import_middleware_sdk_route5328 = require_dist_cjs94();
286591
286911
  var GetQueryLoggingConfigCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286592
286912
  return [
286593
286913
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286599,7 +286919,7 @@ var require_dist_cjs94 = __commonJS({
286599
286919
  __name(this, "GetQueryLoggingConfigCommand");
286600
286920
  }
286601
286921
  };
286602
- var import_middleware_sdk_route5329 = require_dist_cjs93();
286922
+ var import_middleware_sdk_route5329 = require_dist_cjs94();
286603
286923
  var GetReusableDelegationSetCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286604
286924
  return [
286605
286925
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286611,7 +286931,7 @@ var require_dist_cjs94 = __commonJS({
286611
286931
  __name(this, "GetReusableDelegationSetCommand");
286612
286932
  }
286613
286933
  };
286614
- var import_middleware_sdk_route5330 = require_dist_cjs93();
286934
+ var import_middleware_sdk_route5330 = require_dist_cjs94();
286615
286935
  var GetReusableDelegationSetLimitCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286616
286936
  return [
286617
286937
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286623,7 +286943,7 @@ var require_dist_cjs94 = __commonJS({
286623
286943
  __name(this, "GetReusableDelegationSetLimitCommand");
286624
286944
  }
286625
286945
  };
286626
- var import_middleware_sdk_route5331 = require_dist_cjs93();
286946
+ var import_middleware_sdk_route5331 = require_dist_cjs94();
286627
286947
  var GetTrafficPolicyCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286628
286948
  return [
286629
286949
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286635,7 +286955,7 @@ var require_dist_cjs94 = __commonJS({
286635
286955
  __name(this, "GetTrafficPolicyCommand");
286636
286956
  }
286637
286957
  };
286638
- var import_middleware_sdk_route5332 = require_dist_cjs93();
286958
+ var import_middleware_sdk_route5332 = require_dist_cjs94();
286639
286959
  var GetTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286640
286960
  return [
286641
286961
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286707,7 +287027,7 @@ var require_dist_cjs94 = __commonJS({
286707
287027
  __name(this, "ListHealthChecksCommand");
286708
287028
  }
286709
287029
  };
286710
- var import_middleware_sdk_route5333 = require_dist_cjs93();
287030
+ var import_middleware_sdk_route5333 = require_dist_cjs94();
286711
287031
  var ListHostedZonesByNameCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286712
287032
  return [
286713
287033
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286729,7 +287049,7 @@ var require_dist_cjs94 = __commonJS({
286729
287049
  __name(this, "ListHostedZonesByVPCCommand");
286730
287050
  }
286731
287051
  };
286732
- var import_middleware_sdk_route5334 = require_dist_cjs93();
287052
+ var import_middleware_sdk_route5334 = require_dist_cjs94();
286733
287053
  var ListHostedZonesCommand2 = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286734
287054
  return [
286735
287055
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286741,7 +287061,7 @@ var require_dist_cjs94 = __commonJS({
286741
287061
  __name(this, "ListHostedZonesCommand");
286742
287062
  }
286743
287063
  };
286744
- var import_middleware_sdk_route5335 = require_dist_cjs93();
287064
+ var import_middleware_sdk_route5335 = require_dist_cjs94();
286745
287065
  var ListQueryLoggingConfigsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286746
287066
  return [
286747
287067
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286753,7 +287073,7 @@ var require_dist_cjs94 = __commonJS({
286753
287073
  __name(this, "ListQueryLoggingConfigsCommand");
286754
287074
  }
286755
287075
  };
286756
- var import_middleware_sdk_route5336 = require_dist_cjs93();
287076
+ var import_middleware_sdk_route5336 = require_dist_cjs94();
286757
287077
  var ListResourceRecordSetsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286758
287078
  return [
286759
287079
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286805,7 +287125,7 @@ var require_dist_cjs94 = __commonJS({
286805
287125
  __name(this, "ListTrafficPoliciesCommand");
286806
287126
  }
286807
287127
  };
286808
- var import_middleware_sdk_route5337 = require_dist_cjs93();
287128
+ var import_middleware_sdk_route5337 = require_dist_cjs94();
286809
287129
  var ListTrafficPolicyInstancesByHostedZoneCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286810
287130
  return [
286811
287131
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286837,7 +287157,7 @@ var require_dist_cjs94 = __commonJS({
286837
287157
  __name(this, "ListTrafficPolicyInstancesCommand");
286838
287158
  }
286839
287159
  };
286840
- var import_middleware_sdk_route5338 = require_dist_cjs93();
287160
+ var import_middleware_sdk_route5338 = require_dist_cjs94();
286841
287161
  var ListTrafficPolicyVersionsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286842
287162
  return [
286843
287163
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286849,7 +287169,7 @@ var require_dist_cjs94 = __commonJS({
286849
287169
  __name(this, "ListTrafficPolicyVersionsCommand");
286850
287170
  }
286851
287171
  };
286852
- var import_middleware_sdk_route5339 = require_dist_cjs93();
287172
+ var import_middleware_sdk_route5339 = require_dist_cjs94();
286853
287173
  var ListVPCAssociationAuthorizationsCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286854
287174
  return [
286855
287175
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286861,7 +287181,7 @@ var require_dist_cjs94 = __commonJS({
286861
287181
  __name(this, "ListVPCAssociationAuthorizationsCommand");
286862
287182
  }
286863
287183
  };
286864
- var import_middleware_sdk_route5340 = require_dist_cjs93();
287184
+ var import_middleware_sdk_route5340 = require_dist_cjs94();
286865
287185
  var TestDNSAnswerCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286866
287186
  return [
286867
287187
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286883,7 +287203,7 @@ var require_dist_cjs94 = __commonJS({
286883
287203
  __name(this, "UpdateHealthCheckCommand");
286884
287204
  }
286885
287205
  };
286886
- var import_middleware_sdk_route5341 = require_dist_cjs93();
287206
+ var import_middleware_sdk_route5341 = require_dist_cjs94();
286887
287207
  var UpdateHostedZoneCommentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286888
287208
  return [
286889
287209
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286895,7 +287215,7 @@ var require_dist_cjs94 = __commonJS({
286895
287215
  __name(this, "UpdateHostedZoneCommentCommand");
286896
287216
  }
286897
287217
  };
286898
- var import_middleware_sdk_route5342 = require_dist_cjs93();
287218
+ var import_middleware_sdk_route5342 = require_dist_cjs94();
286899
287219
  var UpdateTrafficPolicyCommentCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286900
287220
  return [
286901
287221
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -286907,7 +287227,7 @@ var require_dist_cjs94 = __commonJS({
286907
287227
  __name(this, "UpdateTrafficPolicyCommentCommand");
286908
287228
  }
286909
287229
  };
286910
- var import_middleware_sdk_route5343 = require_dist_cjs93();
287230
+ var import_middleware_sdk_route5343 = require_dist_cjs94();
286911
287231
  var UpdateTrafficPolicyInstanceCommand = class extends import_smithy_client28.Command.classBuilder().ep(commonParams3).m(function(Command2, cs, config, o3) {
286912
287232
  return [
286913
287233
  (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -287352,7 +287672,7 @@ var require_runtimeConfig20 = __commonJS({
287352
287672
  });
287353
287673
 
287354
287674
  // ../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js
287355
- var require_dist_cjs95 = __commonJS({
287675
+ var require_dist_cjs96 = __commonJS({
287356
287676
  "../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js"(exports2, module2) {
287357
287677
  "use strict";
287358
287678
  var __defProp2 = Object.defineProperty;
@@ -291030,7 +291350,7 @@ var require_runtimeConfig21 = __commonJS({
291030
291350
  });
291031
291351
 
291032
291352
  // ../../node_modules/@aws-sdk/client-ssm/dist-cjs/index.js
291033
- var require_dist_cjs96 = __commonJS({
291353
+ var require_dist_cjs97 = __commonJS({
291034
291354
  "../../node_modules/@aws-sdk/client-ssm/dist-cjs/index.js"(exports2, module2) {
291035
291355
  "use strict";
291036
291356
  var __defProp2 = Object.defineProperty;
@@ -303522,6 +303842,425 @@ var require_dist_cjs96 = __commonJS({
303522
303842
  }
303523
303843
  });
303524
303844
 
303845
+ // ../@aws-cdk/toolkit-lib/node_modules/@smithy/service-error-classification/dist-cjs/index.js
303846
+ var require_dist_cjs98 = __commonJS({
303847
+ "../@aws-cdk/toolkit-lib/node_modules/@smithy/service-error-classification/dist-cjs/index.js"(exports2, module2) {
303848
+ var __defProp2 = Object.defineProperty;
303849
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
303850
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
303851
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
303852
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
303853
+ var __export2 = (target, all) => {
303854
+ for (var name in all)
303855
+ __defProp2(target, name, { get: all[name], enumerable: true });
303856
+ };
303857
+ var __copyProps2 = (to, from, except, desc) => {
303858
+ if (from && typeof from === "object" || typeof from === "function") {
303859
+ for (let key of __getOwnPropNames2(from))
303860
+ if (!__hasOwnProp2.call(to, key) && key !== except)
303861
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
303862
+ }
303863
+ return to;
303864
+ };
303865
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
303866
+ var src_exports = {};
303867
+ __export2(src_exports, {
303868
+ isBrowserNetworkError: () => isBrowserNetworkError,
303869
+ isClockSkewCorrectedError: () => isClockSkewCorrectedError,
303870
+ isClockSkewError: () => isClockSkewError,
303871
+ isRetryableByTrait: () => isRetryableByTrait,
303872
+ isServerError: () => isServerError,
303873
+ isThrottlingError: () => isThrottlingError,
303874
+ isTransientError: () => isTransientError
303875
+ });
303876
+ module2.exports = __toCommonJS2(src_exports);
303877
+ var CLOCK_SKEW_ERROR_CODES = [
303878
+ "AuthFailure",
303879
+ "InvalidSignatureException",
303880
+ "RequestExpired",
303881
+ "RequestInTheFuture",
303882
+ "RequestTimeTooSkewed",
303883
+ "SignatureDoesNotMatch"
303884
+ ];
303885
+ var THROTTLING_ERROR_CODES = [
303886
+ "BandwidthLimitExceeded",
303887
+ "EC2ThrottledException",
303888
+ "LimitExceededException",
303889
+ "PriorRequestNotComplete",
303890
+ "ProvisionedThroughputExceededException",
303891
+ "RequestLimitExceeded",
303892
+ "RequestThrottled",
303893
+ "RequestThrottledException",
303894
+ "SlowDown",
303895
+ "ThrottledException",
303896
+ "Throttling",
303897
+ "ThrottlingException",
303898
+ "TooManyRequestsException",
303899
+ "TransactionInProgressException"
303900
+ // DynamoDB
303901
+ ];
303902
+ var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
303903
+ var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
303904
+ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
303905
+ var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
303906
+ var isRetryableByTrait = /* @__PURE__ */ __name((error5) => error5.$retryable !== void 0, "isRetryableByTrait");
303907
+ var isClockSkewError = /* @__PURE__ */ __name((error5) => CLOCK_SKEW_ERROR_CODES.includes(error5.name), "isClockSkewError");
303908
+ var isClockSkewCorrectedError = /* @__PURE__ */ __name((error5) => error5.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
303909
+ var isBrowserNetworkError = /* @__PURE__ */ __name((error5) => {
303910
+ const errorMessages = /* @__PURE__ */ new Set([
303911
+ "Failed to fetch",
303912
+ // Chrome
303913
+ "NetworkError when attempting to fetch resource",
303914
+ // Firefox
303915
+ "The Internet connection appears to be offline",
303916
+ // Safari 16
303917
+ "Load failed",
303918
+ // Safari 17+
303919
+ "Network request failed"
303920
+ // `cross-fetch`
303921
+ ]);
303922
+ const isValid = error5 && error5 instanceof TypeError;
303923
+ if (!isValid) {
303924
+ return false;
303925
+ }
303926
+ return errorMessages.has(error5.message);
303927
+ }, "isBrowserNetworkError");
303928
+ var isThrottlingError = /* @__PURE__ */ __name((error5) => error5.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error5.name) || error5.$retryable?.throttling == true, "isThrottlingError");
303929
+ var isTransientError = /* @__PURE__ */ __name((error5, depth = 0) => isClockSkewCorrectedError(error5) || TRANSIENT_ERROR_CODES.includes(error5.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error5?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error5?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error5.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error5) || error5.cause !== void 0 && depth <= 10 && isTransientError(error5.cause, depth + 1), "isTransientError");
303930
+ var isServerError = /* @__PURE__ */ __name((error5) => {
303931
+ if (error5.$metadata?.httpStatusCode !== void 0) {
303932
+ const statusCode = error5.$metadata.httpStatusCode;
303933
+ if (500 <= statusCode && statusCode <= 599 && !isTransientError(error5)) {
303934
+ return true;
303935
+ }
303936
+ return false;
303937
+ }
303938
+ return false;
303939
+ }, "isServerError");
303940
+ }
303941
+ });
303942
+
303943
+ // ../@aws-cdk/toolkit-lib/node_modules/@smithy/util-retry/dist-cjs/index.js
303944
+ var require_dist_cjs99 = __commonJS({
303945
+ "../@aws-cdk/toolkit-lib/node_modules/@smithy/util-retry/dist-cjs/index.js"(exports2, module2) {
303946
+ var __defProp2 = Object.defineProperty;
303947
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
303948
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
303949
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
303950
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
303951
+ var __export2 = (target, all) => {
303952
+ for (var name in all)
303953
+ __defProp2(target, name, { get: all[name], enumerable: true });
303954
+ };
303955
+ var __copyProps2 = (to, from, except, desc) => {
303956
+ if (from && typeof from === "object" || typeof from === "function") {
303957
+ for (let key of __getOwnPropNames2(from))
303958
+ if (!__hasOwnProp2.call(to, key) && key !== except)
303959
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
303960
+ }
303961
+ return to;
303962
+ };
303963
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
303964
+ var src_exports = {};
303965
+ __export2(src_exports, {
303966
+ AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
303967
+ ConfiguredRetryStrategy: () => ConfiguredRetryStrategy2,
303968
+ DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS,
303969
+ DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE,
303970
+ DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE3,
303971
+ DefaultRateLimiter: () => DefaultRateLimiter,
303972
+ INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS,
303973
+ INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER,
303974
+ MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY,
303975
+ NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT,
303976
+ REQUEST_HEADER: () => REQUEST_HEADER,
303977
+ RETRY_COST: () => RETRY_COST,
303978
+ RETRY_MODES: () => RETRY_MODES,
303979
+ StandardRetryStrategy: () => StandardRetryStrategy,
303980
+ THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE,
303981
+ TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST
303982
+ });
303983
+ module2.exports = __toCommonJS2(src_exports);
303984
+ var RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => {
303985
+ RETRY_MODES2["STANDARD"] = "standard";
303986
+ RETRY_MODES2["ADAPTIVE"] = "adaptive";
303987
+ return RETRY_MODES2;
303988
+ })(RETRY_MODES || {});
303989
+ var DEFAULT_MAX_ATTEMPTS = 3;
303990
+ var DEFAULT_RETRY_MODE3 = "standard";
303991
+ var import_service_error_classification = require_dist_cjs98();
303992
+ var DefaultRateLimiter = class _DefaultRateLimiter {
303993
+ constructor(options) {
303994
+ this.currentCapacity = 0;
303995
+ this.enabled = false;
303996
+ this.lastMaxRate = 0;
303997
+ this.measuredTxRate = 0;
303998
+ this.requestCount = 0;
303999
+ this.lastTimestamp = 0;
304000
+ this.timeWindow = 0;
304001
+ this.beta = options?.beta ?? 0.7;
304002
+ this.minCapacity = options?.minCapacity ?? 1;
304003
+ this.minFillRate = options?.minFillRate ?? 0.5;
304004
+ this.scaleConstant = options?.scaleConstant ?? 0.4;
304005
+ this.smooth = options?.smooth ?? 0.8;
304006
+ const currentTimeInSeconds = this.getCurrentTimeInSeconds();
304007
+ this.lastThrottleTime = currentTimeInSeconds;
304008
+ this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
304009
+ this.fillRate = this.minFillRate;
304010
+ this.maxCapacity = this.minCapacity;
304011
+ }
304012
+ static {
304013
+ __name(this, "DefaultRateLimiter");
304014
+ }
304015
+ static {
304016
+ this.setTimeoutFn = setTimeout;
304017
+ }
304018
+ getCurrentTimeInSeconds() {
304019
+ return Date.now() / 1e3;
304020
+ }
304021
+ async getSendToken() {
304022
+ return this.acquireTokenBucket(1);
304023
+ }
304024
+ async acquireTokenBucket(amount) {
304025
+ if (!this.enabled) {
304026
+ return;
304027
+ }
304028
+ this.refillTokenBucket();
304029
+ if (amount > this.currentCapacity) {
304030
+ const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
304031
+ await new Promise((resolve12) => _DefaultRateLimiter.setTimeoutFn(resolve12, delay));
304032
+ }
304033
+ this.currentCapacity = this.currentCapacity - amount;
304034
+ }
304035
+ refillTokenBucket() {
304036
+ const timestamp = this.getCurrentTimeInSeconds();
304037
+ if (!this.lastTimestamp) {
304038
+ this.lastTimestamp = timestamp;
304039
+ return;
304040
+ }
304041
+ const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
304042
+ this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount);
304043
+ this.lastTimestamp = timestamp;
304044
+ }
304045
+ updateClientSendingRate(response) {
304046
+ let calculatedRate;
304047
+ this.updateMeasuredRate();
304048
+ if ((0, import_service_error_classification.isThrottlingError)(response)) {
304049
+ const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
304050
+ this.lastMaxRate = rateToUse;
304051
+ this.calculateTimeWindow();
304052
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
304053
+ calculatedRate = this.cubicThrottle(rateToUse);
304054
+ this.enableTokenBucket();
304055
+ } else {
304056
+ this.calculateTimeWindow();
304057
+ calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
304058
+ }
304059
+ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
304060
+ this.updateTokenBucketRate(newRate);
304061
+ }
304062
+ calculateTimeWindow() {
304063
+ this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
304064
+ }
304065
+ cubicThrottle(rateToUse) {
304066
+ return this.getPrecise(rateToUse * this.beta);
304067
+ }
304068
+ cubicSuccess(timestamp) {
304069
+ return this.getPrecise(
304070
+ this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate
304071
+ );
304072
+ }
304073
+ enableTokenBucket() {
304074
+ this.enabled = true;
304075
+ }
304076
+ updateTokenBucketRate(newRate) {
304077
+ this.refillTokenBucket();
304078
+ this.fillRate = Math.max(newRate, this.minFillRate);
304079
+ this.maxCapacity = Math.max(newRate, this.minCapacity);
304080
+ this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity);
304081
+ }
304082
+ updateMeasuredRate() {
304083
+ const t3 = this.getCurrentTimeInSeconds();
304084
+ const timeBucket = Math.floor(t3 * 2) / 2;
304085
+ this.requestCount++;
304086
+ if (timeBucket > this.lastTxRateBucket) {
304087
+ const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);
304088
+ this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));
304089
+ this.requestCount = 0;
304090
+ this.lastTxRateBucket = timeBucket;
304091
+ }
304092
+ }
304093
+ getPrecise(num) {
304094
+ return parseFloat(num.toFixed(8));
304095
+ }
304096
+ };
304097
+ var DEFAULT_RETRY_DELAY_BASE = 100;
304098
+ var MAXIMUM_RETRY_DELAY = 20 * 1e3;
304099
+ var THROTTLING_RETRY_DELAY_BASE = 500;
304100
+ var INITIAL_RETRY_TOKENS = 500;
304101
+ var RETRY_COST = 5;
304102
+ var TIMEOUT_RETRY_COST = 10;
304103
+ var NO_RETRY_INCREMENT = 1;
304104
+ var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
304105
+ var REQUEST_HEADER = "amz-sdk-request";
304106
+ var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => {
304107
+ let delayBase = DEFAULT_RETRY_DELAY_BASE;
304108
+ const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => {
304109
+ return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
304110
+ }, "computeNextBackoffDelay");
304111
+ const setDelayBase = /* @__PURE__ */ __name((delay) => {
304112
+ delayBase = delay;
304113
+ }, "setDelayBase");
304114
+ return {
304115
+ computeNextBackoffDelay,
304116
+ setDelayBase
304117
+ };
304118
+ }, "getDefaultRetryBackoffStrategy");
304119
+ var createDefaultRetryToken = /* @__PURE__ */ __name(({
304120
+ retryDelay,
304121
+ retryCount,
304122
+ retryCost
304123
+ }) => {
304124
+ const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount");
304125
+ const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay");
304126
+ const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost");
304127
+ return {
304128
+ getRetryCount,
304129
+ getRetryDelay,
304130
+ getRetryCost
304131
+ };
304132
+ }, "createDefaultRetryToken");
304133
+ var StandardRetryStrategy = class {
304134
+ constructor(maxAttempts) {
304135
+ this.maxAttempts = maxAttempts;
304136
+ this.mode = "standard";
304137
+ this.capacity = INITIAL_RETRY_TOKENS;
304138
+ this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
304139
+ this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
304140
+ }
304141
+ static {
304142
+ __name(this, "StandardRetryStrategy");
304143
+ }
304144
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
304145
+ async acquireInitialRetryToken(retryTokenScope) {
304146
+ return createDefaultRetryToken({
304147
+ retryDelay: DEFAULT_RETRY_DELAY_BASE,
304148
+ retryCount: 0
304149
+ });
304150
+ }
304151
+ async refreshRetryTokenForRetry(token, errorInfo) {
304152
+ const maxAttempts = await this.getMaxAttempts();
304153
+ if (this.shouldRetry(token, errorInfo, maxAttempts)) {
304154
+ const errorType = errorInfo.errorType;
304155
+ this.retryBackoffStrategy.setDelayBase(
304156
+ errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE
304157
+ );
304158
+ const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
304159
+ const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
304160
+ const capacityCost = this.getCapacityCost(errorType);
304161
+ this.capacity -= capacityCost;
304162
+ return createDefaultRetryToken({
304163
+ retryDelay,
304164
+ retryCount: token.getRetryCount() + 1,
304165
+ retryCost: capacityCost
304166
+ });
304167
+ }
304168
+ throw new Error("No retry token available");
304169
+ }
304170
+ recordSuccess(token) {
304171
+ this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
304172
+ }
304173
+ /**
304174
+ * @returns the current available retry capacity.
304175
+ *
304176
+ * This number decreases when retries are executed and refills when requests or retries succeed.
304177
+ */
304178
+ getCapacity() {
304179
+ return this.capacity;
304180
+ }
304181
+ async getMaxAttempts() {
304182
+ try {
304183
+ return await this.maxAttemptsProvider();
304184
+ } catch (error5) {
304185
+ console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
304186
+ return DEFAULT_MAX_ATTEMPTS;
304187
+ }
304188
+ }
304189
+ shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
304190
+ const attempts = tokenToRenew.getRetryCount() + 1;
304191
+ return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
304192
+ }
304193
+ getCapacityCost(errorType) {
304194
+ return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
304195
+ }
304196
+ isRetryableError(errorType) {
304197
+ return errorType === "THROTTLING" || errorType === "TRANSIENT";
304198
+ }
304199
+ };
304200
+ var AdaptiveRetryStrategy = class {
304201
+ constructor(maxAttemptsProvider, options) {
304202
+ this.maxAttemptsProvider = maxAttemptsProvider;
304203
+ this.mode = "adaptive";
304204
+ const { rateLimiter } = options ?? {};
304205
+ this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
304206
+ this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
304207
+ }
304208
+ static {
304209
+ __name(this, "AdaptiveRetryStrategy");
304210
+ }
304211
+ async acquireInitialRetryToken(retryTokenScope) {
304212
+ await this.rateLimiter.getSendToken();
304213
+ return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
304214
+ }
304215
+ async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
304216
+ this.rateLimiter.updateClientSendingRate(errorInfo);
304217
+ return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
304218
+ }
304219
+ recordSuccess(token) {
304220
+ this.rateLimiter.updateClientSendingRate({});
304221
+ this.standardRetryStrategy.recordSuccess(token);
304222
+ }
304223
+ };
304224
+ var ConfiguredRetryStrategy2 = class extends StandardRetryStrategy {
304225
+ static {
304226
+ __name(this, "ConfiguredRetryStrategy");
304227
+ }
304228
+ /**
304229
+ * @param maxAttempts - the maximum number of retry attempts allowed.
304230
+ * e.g., if set to 3, then 4 total requests are possible.
304231
+ * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
304232
+ * and returns the delay.
304233
+ *
304234
+ * @example exponential backoff.
304235
+ * ```js
304236
+ * new Client({
304237
+ * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
304238
+ * });
304239
+ * ```
304240
+ * @example constant delay.
304241
+ * ```js
304242
+ * new Client({
304243
+ * retryStrategy: new ConfiguredRetryStrategy(3, 2000)
304244
+ * });
304245
+ * ```
304246
+ */
304247
+ constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) {
304248
+ super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
304249
+ if (typeof computeNextBackoffDelay === "number") {
304250
+ this.computeNextBackoffDelay = () => computeNextBackoffDelay;
304251
+ } else {
304252
+ this.computeNextBackoffDelay = computeNextBackoffDelay;
304253
+ }
304254
+ }
304255
+ async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
304256
+ const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
304257
+ token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
304258
+ return token;
304259
+ }
304260
+ };
304261
+ }
304262
+ });
304263
+
303525
304264
  // ../@aws-cdk/toolkit-lib/lib/api/aws-auth/account-cache.ts
303526
304265
  var path20, fs19, AccountAccessKeyCache;
303527
304266
  var init_account_cache = __esm({
@@ -303726,27 +304465,27 @@ var import_client_appsync, import_client_cloudcontrol, import_client_cloudformat
303726
304465
  var init_sdk2 = __esm({
303727
304466
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk.ts"() {
303728
304467
  "use strict";
303729
- import_client_appsync = __toESM(require_dist_cjs81());
303730
- import_client_cloudcontrol = __toESM(require_dist_cjs82());
304468
+ import_client_appsync = __toESM(require_dist_cjs82());
304469
+ import_client_cloudcontrol = __toESM(require_dist_cjs83());
303731
304470
  import_client_cloudformation3 = __toESM(require_dist_cjs80());
303732
- import_client_cloudwatch_logs = __toESM(require_dist_cjs83());
303733
- import_client_codebuild = __toESM(require_dist_cjs84());
303734
- import_client_ec2 = __toESM(require_dist_cjs87());
304471
+ import_client_cloudwatch_logs = __toESM(require_dist_cjs84());
304472
+ import_client_codebuild = __toESM(require_dist_cjs85());
304473
+ import_client_ec2 = __toESM(require_dist_cjs88());
303735
304474
  import_client_ecr2 = __toESM(require_dist_cjs54());
303736
- import_client_ecs = __toESM(require_dist_cjs88());
303737
- import_client_elastic_load_balancing_v2 = __toESM(require_dist_cjs89());
303738
- import_client_iam = __toESM(require_dist_cjs90());
303739
- import_client_kms = __toESM(require_dist_cjs91());
303740
- import_client_lambda = __toESM(require_dist_cjs92());
303741
- import_client_route_53 = __toESM(require_dist_cjs94());
304475
+ import_client_ecs = __toESM(require_dist_cjs89());
304476
+ import_client_elastic_load_balancing_v2 = __toESM(require_dist_cjs90());
304477
+ import_client_iam = __toESM(require_dist_cjs91());
304478
+ import_client_kms = __toESM(require_dist_cjs92());
304479
+ import_client_lambda = __toESM(require_dist_cjs93());
304480
+ import_client_route_53 = __toESM(require_dist_cjs95());
303742
304481
  import_client_s33 = __toESM(require_dist_cjs71());
303743
304482
  import_client_secrets_manager2 = __toESM(require_dist_cjs72());
303744
- import_client_sfn = __toESM(require_dist_cjs95());
303745
- import_client_ssm = __toESM(require_dist_cjs96());
304483
+ import_client_sfn = __toESM(require_dist_cjs96());
304484
+ import_client_ssm = __toESM(require_dist_cjs97());
303746
304485
  import_client_sts2 = __toESM(require_dist_cjs73());
303747
304486
  import_lib_storage2 = __toESM(require_dist_cjs79());
303748
- import_middleware_endpoint7 = __toESM(require_dist_cjs34());
303749
- import_util_retry3 = __toESM(require_dist_cjs36());
304487
+ import_middleware_endpoint7 = __toESM(require_dist_cjs81());
304488
+ import_util_retry3 = __toESM(require_dist_cjs99());
303750
304489
  init_account_cache();
303751
304490
  init_cached();
303752
304491
  init_tracing();
@@ -304112,7 +304851,7 @@ var init_sdk2 = __esm({
304112
304851
  });
304113
304852
 
304114
304853
  // ../../node_modules/@aws-sdk/ec2-metadata-service/dist-cjs/index.js
304115
- var require_dist_cjs97 = __commonJS({
304854
+ var require_dist_cjs100 = __commonJS({
304116
304855
  "../../node_modules/@aws-sdk/ec2-metadata-service/dist-cjs/index.js"(exports2, module2) {
304117
304856
  "use strict";
304118
304857
  var __defProp2 = Object.defineProperty;
@@ -304305,7 +305044,7 @@ var init_awscli_compatible = __esm({
304305
305044
  "use strict";
304306
305045
  import_node_util = require("node:util");
304307
305046
  import_credential_providers2 = __toESM(require_dist_cjs77());
304308
- import_ec2_metadata_service = __toESM(require_dist_cjs97());
305047
+ import_ec2_metadata_service = __toESM(require_dist_cjs100());
304309
305048
  import_shared_ini_file_loader = __toESM(require_dist_cjs30());
304310
305049
  init_provider_caching();
304311
305050
  init_toolkit_error();
@@ -305111,7 +305850,7 @@ var import_client_cloudcontrol2, CcApiContextProviderPlugin;
305111
305850
  var init_cc_api_provider = __esm({
305112
305851
  "../@aws-cdk/toolkit-lib/lib/context-providers/cc-api-provider.ts"() {
305113
305852
  "use strict";
305114
- import_client_cloudcontrol2 = __toESM(require_dist_cjs82());
305853
+ import_client_cloudcontrol2 = __toESM(require_dist_cjs83());
305115
305854
  init_private2();
305116
305855
  init_toolkit_error();
305117
305856
  init_util2();
@@ -306382,10 +307121,11 @@ var init_environment2 = __esm({
306382
307121
  });
306383
307122
 
306384
307123
  // ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/prepare-source.ts
306385
- function writeContextToEnv(env2, context) {
307124
+ function writeContextToEnv(env2, context, completeness) {
306386
307125
  let contextOverflowLocation = null;
306387
307126
  const envVariableSizeLimit = os9.platform() === "win32" ? 32760 : 131072;
306388
- const [smallContext, overflow] = splitBySize(context, spaceAvailableForContext(env2, envVariableSizeLimit));
307127
+ const completeEnv = { ...completeness === "add-process-env-later" ? process.env : {}, ...env2 };
307128
+ const [smallContext, overflow] = splitBySize(context, spaceAvailableForContext(completeEnv, envVariableSizeLimit));
306389
307129
  env2[cxapi5.CONTEXT_ENV] = JSON.stringify(smallContext);
306390
307130
  if (Object.keys(overflow ?? {}).length > 0) {
306391
307131
  const contextDir = fs22.mkdtempSync(path23.join(os9.tmpdir(), "cdk-context"));
@@ -306694,7 +307434,7 @@ var init_source_builder = __esm({
306694
307434
  // Environment variables derived from settings
306695
307435
  ...synthParams.env
306696
307436
  });
306697
- const cleanupContextTemp = writeContextToEnv(env2, fullContext);
307437
+ const cleanupContextTemp = writeContextToEnv(env2, fullContext, "env-is-complete");
306698
307438
  const _cleanupEnv = __using(_stack, props.clobberEnv ?? true ? temporarilyWriteEnv(env2) : void 0);
306699
307439
  let assembly;
306700
307440
  try {
@@ -306832,7 +307572,7 @@ var init_source_builder = __esm({
306832
307572
  // Environment variables derived from settings
306833
307573
  ...synthParams.env
306834
307574
  });
306835
- const cleanupTemp = writeContextToEnv(env2, fullContext);
307575
+ const cleanupTemp = writeContextToEnv(env2, fullContext, "env-is-complete");
306836
307576
  try {
306837
307577
  await execInChildProcess(commandLine.join(" "), {
306838
307578
  eventPublisher: async (type, line) => {
@@ -310056,12 +310796,12 @@ function stacksFromAssets(artifacts) {
310056
310796
  function onlyStacks(artifacts) {
310057
310797
  return artifacts.filter((x3) => cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(x3));
310058
310798
  }
310059
- var cxapi7, import_cdk_assets4, WorkGraphBuilder;
310799
+ var import_cdk_assets_lib4, cxapi7, WorkGraphBuilder;
310060
310800
  var init_work_graph_builder = __esm({
310061
310801
  "../@aws-cdk/toolkit-lib/lib/api/work-graph/work-graph-builder.ts"() {
310062
310802
  "use strict";
310803
+ import_cdk_assets_lib4 = __toESM(require_lib6());
310063
310804
  cxapi7 = __toESM(require_lib3());
310064
- import_cdk_assets4 = __toESM(require_lib6());
310065
310805
  init_work_graph();
310066
310806
  init_work_graph_types();
310067
310807
  init_toolkit_error();
@@ -310154,7 +310894,7 @@ var init_work_graph_builder = __esm({
310154
310894
  if (cxapi7.CloudFormationStackArtifact.isCloudFormationStackArtifact(artifact)) {
310155
310895
  this.addStack(artifact);
310156
310896
  } else if (cxapi7.AssetManifestArtifact.isAssetManifestArtifact(artifact)) {
310157
- const manifest = import_cdk_assets4.AssetManifest.fromFile(artifact.file);
310897
+ const manifest = import_cdk_assets_lib4.AssetManifest.fromFile(artifact.file);
310158
310898
  for (const entry of manifest.entries) {
310159
310899
  const parentStack = parentStacks.get(artifact);
310160
310900
  if (parentStack === void 0) {
@@ -311106,9 +311846,9 @@ var init_api = __esm({
311106
311846
  }
311107
311847
  });
311108
311848
 
311109
- // ../../node_modules/picomatch/lib/constants.js
311849
+ // ../../node_modules/readdirp/node_modules/picomatch/lib/constants.js
311110
311850
  var require_constants5 = __commonJS({
311111
- "../../node_modules/picomatch/lib/constants.js"(exports2, module2) {
311851
+ "../../node_modules/readdirp/node_modules/picomatch/lib/constants.js"(exports2, module2) {
311112
311852
  "use strict";
311113
311853
  var path34 = require("path");
311114
311854
  var WIN_SLASH = "\\\\/";
@@ -311303,9 +312043,9 @@ var require_constants5 = __commonJS({
311303
312043
  }
311304
312044
  });
311305
312045
 
311306
- // ../../node_modules/picomatch/lib/utils.js
312046
+ // ../../node_modules/readdirp/node_modules/picomatch/lib/utils.js
311307
312047
  var require_utils7 = __commonJS({
311308
- "../../node_modules/picomatch/lib/utils.js"(exports2) {
312048
+ "../../node_modules/readdirp/node_modules/picomatch/lib/utils.js"(exports2) {
311309
312049
  "use strict";
311310
312050
  var path34 = require("path");
311311
312051
  var win322 = process.platform === "win32";
@@ -311364,9 +312104,9 @@ var require_utils7 = __commonJS({
311364
312104
  }
311365
312105
  });
311366
312106
 
311367
- // ../../node_modules/picomatch/lib/scan.js
312107
+ // ../../node_modules/readdirp/node_modules/picomatch/lib/scan.js
311368
312108
  var require_scan2 = __commonJS({
311369
- "../../node_modules/picomatch/lib/scan.js"(exports2, module2) {
312109
+ "../../node_modules/readdirp/node_modules/picomatch/lib/scan.js"(exports2, module2) {
311370
312110
  "use strict";
311371
312111
  var utils = require_utils7();
311372
312112
  var {
@@ -311694,9 +312434,9 @@ var require_scan2 = __commonJS({
311694
312434
  }
311695
312435
  });
311696
312436
 
311697
- // ../../node_modules/picomatch/lib/parse.js
312437
+ // ../../node_modules/readdirp/node_modules/picomatch/lib/parse.js
311698
312438
  var require_parse4 = __commonJS({
311699
- "../../node_modules/picomatch/lib/parse.js"(exports2, module2) {
312439
+ "../../node_modules/readdirp/node_modules/picomatch/lib/parse.js"(exports2, module2) {
311700
312440
  "use strict";
311701
312441
  var constants3 = require_constants5();
311702
312442
  var utils = require_utils7();
@@ -312467,9 +313207,9 @@ var require_parse4 = __commonJS({
312467
313207
  }
312468
313208
  });
312469
313209
 
312470
- // ../../node_modules/picomatch/lib/picomatch.js
313210
+ // ../../node_modules/readdirp/node_modules/picomatch/lib/picomatch.js
312471
313211
  var require_picomatch = __commonJS({
312472
- "../../node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
313212
+ "../../node_modules/readdirp/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
312473
313213
  "use strict";
312474
313214
  var path34 = require("path");
312475
313215
  var scan = require_scan2();
@@ -312608,241 +313348,1751 @@ var require_picomatch = __commonJS({
312608
313348
  }
312609
313349
  });
312610
313350
 
312611
- // ../../node_modules/picomatch/index.js
312612
- var require_picomatch2 = __commonJS({
312613
- "../../node_modules/picomatch/index.js"(exports2, module2) {
312614
- "use strict";
312615
- module2.exports = require_picomatch();
312616
- }
312617
- });
312618
-
312619
- // ../../node_modules/readdirp/index.js
312620
- var require_readdirp = __commonJS({
312621
- "../../node_modules/readdirp/index.js"(exports2, module2) {
313351
+ // ../../node_modules/readdirp/node_modules/picomatch/index.js
313352
+ var require_picomatch2 = __commonJS({
313353
+ "../../node_modules/readdirp/node_modules/picomatch/index.js"(exports2, module2) {
313354
+ "use strict";
313355
+ module2.exports = require_picomatch();
313356
+ }
313357
+ });
313358
+
313359
+ // ../../node_modules/readdirp/index.js
313360
+ var require_readdirp = __commonJS({
313361
+ "../../node_modules/readdirp/index.js"(exports2, module2) {
313362
+ "use strict";
313363
+ var fs38 = require("fs");
313364
+ var { Readable } = require("stream");
313365
+ var sysPath = require("path");
313366
+ var { promisify: promisify2 } = require("util");
313367
+ var picomatch = require_picomatch2();
313368
+ var readdir3 = promisify2(fs38.readdir);
313369
+ var stat5 = promisify2(fs38.stat);
313370
+ var lstat2 = promisify2(fs38.lstat);
313371
+ var realpath2 = promisify2(fs38.realpath);
313372
+ var BANG = "!";
313373
+ var RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
313374
+ var NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]);
313375
+ var FILE_TYPE = "files";
313376
+ var DIR_TYPE = "directories";
313377
+ var FILE_DIR_TYPE = "files_directories";
313378
+ var EVERYTHING_TYPE = "all";
313379
+ var ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE];
313380
+ var isNormalFlowError = (error5) => NORMAL_FLOW_ERRORS.has(error5.code);
313381
+ var [maj, min] = process.versions.node.split(".").slice(0, 2).map((n3) => Number.parseInt(n3, 10));
313382
+ var wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5);
313383
+ var normalizeFilter = (filter4) => {
313384
+ if (filter4 === void 0) return;
313385
+ if (typeof filter4 === "function") return filter4;
313386
+ if (typeof filter4 === "string") {
313387
+ const glob2 = picomatch(filter4.trim());
313388
+ return (entry) => glob2(entry.basename);
313389
+ }
313390
+ if (Array.isArray(filter4)) {
313391
+ const positive = [];
313392
+ const negative = [];
313393
+ for (const item of filter4) {
313394
+ const trimmed = item.trim();
313395
+ if (trimmed.charAt(0) === BANG) {
313396
+ negative.push(picomatch(trimmed.slice(1)));
313397
+ } else {
313398
+ positive.push(picomatch(trimmed));
313399
+ }
313400
+ }
313401
+ if (negative.length > 0) {
313402
+ if (positive.length > 0) {
313403
+ return (entry) => positive.some((f3) => f3(entry.basename)) && !negative.some((f3) => f3(entry.basename));
313404
+ }
313405
+ return (entry) => !negative.some((f3) => f3(entry.basename));
313406
+ }
313407
+ return (entry) => positive.some((f3) => f3(entry.basename));
313408
+ }
313409
+ };
313410
+ var ReaddirpStream = class _ReaddirpStream extends Readable {
313411
+ static get defaultOptions() {
313412
+ return {
313413
+ root: ".",
313414
+ /* eslint-disable no-unused-vars */
313415
+ fileFilter: (path34) => true,
313416
+ directoryFilter: (path34) => true,
313417
+ /* eslint-enable no-unused-vars */
313418
+ type: FILE_TYPE,
313419
+ lstat: false,
313420
+ depth: 2147483648,
313421
+ alwaysStat: false
313422
+ };
313423
+ }
313424
+ constructor(options = {}) {
313425
+ super({
313426
+ objectMode: true,
313427
+ autoDestroy: true,
313428
+ highWaterMark: options.highWaterMark || 4096
313429
+ });
313430
+ const opts = { ..._ReaddirpStream.defaultOptions, ...options };
313431
+ const { root, type } = opts;
313432
+ this._fileFilter = normalizeFilter(opts.fileFilter);
313433
+ this._directoryFilter = normalizeFilter(opts.directoryFilter);
313434
+ const statMethod = opts.lstat ? lstat2 : stat5;
313435
+ if (wantBigintFsStats) {
313436
+ this._stat = (path34) => statMethod(path34, { bigint: true });
313437
+ } else {
313438
+ this._stat = statMethod;
313439
+ }
313440
+ this._maxDepth = opts.depth;
313441
+ this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
313442
+ this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
313443
+ this._wantsEverything = type === EVERYTHING_TYPE;
313444
+ this._root = sysPath.resolve(root);
313445
+ this._isDirent = "Dirent" in fs38 && !opts.alwaysStat;
313446
+ this._statsProp = this._isDirent ? "dirent" : "stats";
313447
+ this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
313448
+ this.parents = [this._exploreDir(root, 1)];
313449
+ this.reading = false;
313450
+ this.parent = void 0;
313451
+ }
313452
+ async _read(batch) {
313453
+ if (this.reading) return;
313454
+ this.reading = true;
313455
+ try {
313456
+ while (!this.destroyed && batch > 0) {
313457
+ const { path: path34, depth, files = [] } = this.parent || {};
313458
+ if (files.length > 0) {
313459
+ const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path34));
313460
+ for (const entry of await Promise.all(slice)) {
313461
+ if (this.destroyed) return;
313462
+ const entryType = await this._getEntryType(entry);
313463
+ if (entryType === "directory" && this._directoryFilter(entry)) {
313464
+ if (depth <= this._maxDepth) {
313465
+ this.parents.push(this._exploreDir(entry.fullPath, depth + 1));
313466
+ }
313467
+ if (this._wantsDir) {
313468
+ this.push(entry);
313469
+ batch--;
313470
+ }
313471
+ } else if ((entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry)) {
313472
+ if (this._wantsFile) {
313473
+ this.push(entry);
313474
+ batch--;
313475
+ }
313476
+ }
313477
+ }
313478
+ } else {
313479
+ const parent = this.parents.pop();
313480
+ if (!parent) {
313481
+ this.push(null);
313482
+ break;
313483
+ }
313484
+ this.parent = await parent;
313485
+ if (this.destroyed) return;
313486
+ }
313487
+ }
313488
+ } catch (error5) {
313489
+ this.destroy(error5);
313490
+ } finally {
313491
+ this.reading = false;
313492
+ }
313493
+ }
313494
+ async _exploreDir(path34, depth) {
313495
+ let files;
313496
+ try {
313497
+ files = await readdir3(path34, this._rdOptions);
313498
+ } catch (error5) {
313499
+ this._onError(error5);
313500
+ }
313501
+ return { files, depth, path: path34 };
313502
+ }
313503
+ async _formatEntry(dirent, path34) {
313504
+ let entry;
313505
+ try {
313506
+ const basename3 = this._isDirent ? dirent.name : dirent;
313507
+ const fullPath = sysPath.resolve(sysPath.join(path34, basename3));
313508
+ entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename: basename3 };
313509
+ entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
313510
+ } catch (err) {
313511
+ this._onError(err);
313512
+ }
313513
+ return entry;
313514
+ }
313515
+ _onError(err) {
313516
+ if (isNormalFlowError(err) && !this.destroyed) {
313517
+ this.emit("warn", err);
313518
+ } else {
313519
+ this.destroy(err);
313520
+ }
313521
+ }
313522
+ async _getEntryType(entry) {
313523
+ const stats = entry && entry[this._statsProp];
313524
+ if (!stats) {
313525
+ return;
313526
+ }
313527
+ if (stats.isFile()) {
313528
+ return "file";
313529
+ }
313530
+ if (stats.isDirectory()) {
313531
+ return "directory";
313532
+ }
313533
+ if (stats && stats.isSymbolicLink()) {
313534
+ const full = entry.fullPath;
313535
+ try {
313536
+ const entryRealPath = await realpath2(full);
313537
+ const entryRealPathStats = await lstat2(entryRealPath);
313538
+ if (entryRealPathStats.isFile()) {
313539
+ return "file";
313540
+ }
313541
+ if (entryRealPathStats.isDirectory()) {
313542
+ const len = entryRealPath.length;
313543
+ if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
313544
+ const recursiveError = new Error(
313545
+ `Circular symlink detected: "${full}" points to "${entryRealPath}"`
313546
+ );
313547
+ recursiveError.code = RECURSIVE_ERROR_CODE;
313548
+ return this._onError(recursiveError);
313549
+ }
313550
+ return "directory";
313551
+ }
313552
+ } catch (error5) {
313553
+ this._onError(error5);
313554
+ }
313555
+ }
313556
+ }
313557
+ _includeAsFile(entry) {
313558
+ const stats = entry && entry[this._statsProp];
313559
+ return stats && this._wantsEverything && !stats.isDirectory();
313560
+ }
313561
+ };
313562
+ var readdirp = (root, options = {}) => {
313563
+ let type = options.entryType || options.type;
313564
+ if (type === "both") type = FILE_DIR_TYPE;
313565
+ if (type) options.type = type;
313566
+ if (!root) {
313567
+ throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
313568
+ } else if (typeof root !== "string") {
313569
+ throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
313570
+ } else if (type && !ALL_TYPES.includes(type)) {
313571
+ throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
313572
+ }
313573
+ options.root = root;
313574
+ return new ReaddirpStream(options);
313575
+ };
313576
+ var readdirpPromise = (root, options = {}) => {
313577
+ return new Promise((resolve12, reject) => {
313578
+ const files = [];
313579
+ readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve12(files)).on("error", (error5) => reject(error5));
313580
+ });
313581
+ };
313582
+ readdirp.promise = readdirpPromise;
313583
+ readdirp.ReaddirpStream = ReaddirpStream;
313584
+ readdirp.default = readdirp;
313585
+ module2.exports = readdirp;
313586
+ }
313587
+ });
313588
+
313589
+ // ../../node_modules/anymatch/node_modules/picomatch/lib/constants.js
313590
+ var require_constants6 = __commonJS({
313591
+ "../../node_modules/anymatch/node_modules/picomatch/lib/constants.js"(exports2, module2) {
313592
+ "use strict";
313593
+ var path34 = require("path");
313594
+ var WIN_SLASH = "\\\\/";
313595
+ var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
313596
+ var DOT_LITERAL = "\\.";
313597
+ var PLUS_LITERAL = "\\+";
313598
+ var QMARK_LITERAL = "\\?";
313599
+ var SLASH_LITERAL = "\\/";
313600
+ var ONE_CHAR = "(?=.)";
313601
+ var QMARK = "[^/]";
313602
+ var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
313603
+ var START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
313604
+ var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
313605
+ var NO_DOT = `(?!${DOT_LITERAL})`;
313606
+ var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
313607
+ var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
313608
+ var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
313609
+ var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
313610
+ var STAR = `${QMARK}*?`;
313611
+ var POSIX_CHARS = {
313612
+ DOT_LITERAL,
313613
+ PLUS_LITERAL,
313614
+ QMARK_LITERAL,
313615
+ SLASH_LITERAL,
313616
+ ONE_CHAR,
313617
+ QMARK,
313618
+ END_ANCHOR,
313619
+ DOTS_SLASH,
313620
+ NO_DOT,
313621
+ NO_DOTS,
313622
+ NO_DOT_SLASH,
313623
+ NO_DOTS_SLASH,
313624
+ QMARK_NO_DOT,
313625
+ STAR,
313626
+ START_ANCHOR
313627
+ };
313628
+ var WINDOWS_CHARS = {
313629
+ ...POSIX_CHARS,
313630
+ SLASH_LITERAL: `[${WIN_SLASH}]`,
313631
+ QMARK: WIN_NO_SLASH,
313632
+ STAR: `${WIN_NO_SLASH}*?`,
313633
+ DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
313634
+ NO_DOT: `(?!${DOT_LITERAL})`,
313635
+ NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
313636
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
313637
+ NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
313638
+ QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
313639
+ START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
313640
+ END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
313641
+ };
313642
+ var POSIX_REGEX_SOURCE = {
313643
+ alnum: "a-zA-Z0-9",
313644
+ alpha: "a-zA-Z",
313645
+ ascii: "\\x00-\\x7F",
313646
+ blank: " \\t",
313647
+ cntrl: "\\x00-\\x1F\\x7F",
313648
+ digit: "0-9",
313649
+ graph: "\\x21-\\x7E",
313650
+ lower: "a-z",
313651
+ print: "\\x20-\\x7E ",
313652
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
313653
+ space: " \\t\\r\\n\\v\\f",
313654
+ upper: "A-Z",
313655
+ word: "A-Za-z0-9_",
313656
+ xdigit: "A-Fa-f0-9"
313657
+ };
313658
+ module2.exports = {
313659
+ MAX_LENGTH: 1024 * 64,
313660
+ POSIX_REGEX_SOURCE,
313661
+ // regular expressions
313662
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
313663
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
313664
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
313665
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
313666
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
313667
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
313668
+ // Replace globs with equivalent patterns to reduce parsing time.
313669
+ REPLACEMENTS: {
313670
+ "***": "*",
313671
+ "**/**": "**",
313672
+ "**/**/**": "**"
313673
+ },
313674
+ // Digits
313675
+ CHAR_0: 48,
313676
+ /* 0 */
313677
+ CHAR_9: 57,
313678
+ /* 9 */
313679
+ // Alphabet chars.
313680
+ CHAR_UPPERCASE_A: 65,
313681
+ /* A */
313682
+ CHAR_LOWERCASE_A: 97,
313683
+ /* a */
313684
+ CHAR_UPPERCASE_Z: 90,
313685
+ /* Z */
313686
+ CHAR_LOWERCASE_Z: 122,
313687
+ /* z */
313688
+ CHAR_LEFT_PARENTHESES: 40,
313689
+ /* ( */
313690
+ CHAR_RIGHT_PARENTHESES: 41,
313691
+ /* ) */
313692
+ CHAR_ASTERISK: 42,
313693
+ /* * */
313694
+ // Non-alphabetic chars.
313695
+ CHAR_AMPERSAND: 38,
313696
+ /* & */
313697
+ CHAR_AT: 64,
313698
+ /* @ */
313699
+ CHAR_BACKWARD_SLASH: 92,
313700
+ /* \ */
313701
+ CHAR_CARRIAGE_RETURN: 13,
313702
+ /* \r */
313703
+ CHAR_CIRCUMFLEX_ACCENT: 94,
313704
+ /* ^ */
313705
+ CHAR_COLON: 58,
313706
+ /* : */
313707
+ CHAR_COMMA: 44,
313708
+ /* , */
313709
+ CHAR_DOT: 46,
313710
+ /* . */
313711
+ CHAR_DOUBLE_QUOTE: 34,
313712
+ /* " */
313713
+ CHAR_EQUAL: 61,
313714
+ /* = */
313715
+ CHAR_EXCLAMATION_MARK: 33,
313716
+ /* ! */
313717
+ CHAR_FORM_FEED: 12,
313718
+ /* \f */
313719
+ CHAR_FORWARD_SLASH: 47,
313720
+ /* / */
313721
+ CHAR_GRAVE_ACCENT: 96,
313722
+ /* ` */
313723
+ CHAR_HASH: 35,
313724
+ /* # */
313725
+ CHAR_HYPHEN_MINUS: 45,
313726
+ /* - */
313727
+ CHAR_LEFT_ANGLE_BRACKET: 60,
313728
+ /* < */
313729
+ CHAR_LEFT_CURLY_BRACE: 123,
313730
+ /* { */
313731
+ CHAR_LEFT_SQUARE_BRACKET: 91,
313732
+ /* [ */
313733
+ CHAR_LINE_FEED: 10,
313734
+ /* \n */
313735
+ CHAR_NO_BREAK_SPACE: 160,
313736
+ /* \u00A0 */
313737
+ CHAR_PERCENT: 37,
313738
+ /* % */
313739
+ CHAR_PLUS: 43,
313740
+ /* + */
313741
+ CHAR_QUESTION_MARK: 63,
313742
+ /* ? */
313743
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
313744
+ /* > */
313745
+ CHAR_RIGHT_CURLY_BRACE: 125,
313746
+ /* } */
313747
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
313748
+ /* ] */
313749
+ CHAR_SEMICOLON: 59,
313750
+ /* ; */
313751
+ CHAR_SINGLE_QUOTE: 39,
313752
+ /* ' */
313753
+ CHAR_SPACE: 32,
313754
+ /* */
313755
+ CHAR_TAB: 9,
313756
+ /* \t */
313757
+ CHAR_UNDERSCORE: 95,
313758
+ /* _ */
313759
+ CHAR_VERTICAL_LINE: 124,
313760
+ /* | */
313761
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
313762
+ /* \uFEFF */
313763
+ SEP: path34.sep,
313764
+ /**
313765
+ * Create EXTGLOB_CHARS
313766
+ */
313767
+ extglobChars(chars) {
313768
+ return {
313769
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
313770
+ "?": { type: "qmark", open: "(?:", close: ")?" },
313771
+ "+": { type: "plus", open: "(?:", close: ")+" },
313772
+ "*": { type: "star", open: "(?:", close: ")*" },
313773
+ "@": { type: "at", open: "(?:", close: ")" }
313774
+ };
313775
+ },
313776
+ /**
313777
+ * Create GLOB_CHARS
313778
+ */
313779
+ globChars(win322) {
313780
+ return win322 === true ? WINDOWS_CHARS : POSIX_CHARS;
313781
+ }
313782
+ };
313783
+ }
313784
+ });
313785
+
313786
+ // ../../node_modules/anymatch/node_modules/picomatch/lib/utils.js
313787
+ var require_utils8 = __commonJS({
313788
+ "../../node_modules/anymatch/node_modules/picomatch/lib/utils.js"(exports2) {
313789
+ "use strict";
313790
+ var path34 = require("path");
313791
+ var win322 = process.platform === "win32";
313792
+ var {
313793
+ REGEX_BACKSLASH,
313794
+ REGEX_REMOVE_BACKSLASH,
313795
+ REGEX_SPECIAL_CHARS,
313796
+ REGEX_SPECIAL_CHARS_GLOBAL
313797
+ } = require_constants6();
313798
+ exports2.isObject = (val2) => val2 !== null && typeof val2 === "object" && !Array.isArray(val2);
313799
+ exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
313800
+ exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
313801
+ exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
313802
+ exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
313803
+ exports2.removeBackslashes = (str) => {
313804
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match4) => {
313805
+ return match4 === "\\" ? "" : match4;
313806
+ });
313807
+ };
313808
+ exports2.supportsLookbehinds = () => {
313809
+ const segs = process.version.slice(1).split(".").map(Number);
313810
+ if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) {
313811
+ return true;
313812
+ }
313813
+ return false;
313814
+ };
313815
+ exports2.isWindows = (options) => {
313816
+ if (options && typeof options.windows === "boolean") {
313817
+ return options.windows;
313818
+ }
313819
+ return win322 === true || path34.sep === "\\";
313820
+ };
313821
+ exports2.escapeLast = (input, char, lastIdx) => {
313822
+ const idx = input.lastIndexOf(char, lastIdx);
313823
+ if (idx === -1) return input;
313824
+ if (input[idx - 1] === "\\") return exports2.escapeLast(input, char, idx - 1);
313825
+ return `${input.slice(0, idx)}\\${input.slice(idx)}`;
313826
+ };
313827
+ exports2.removePrefix = (input, state2 = {}) => {
313828
+ let output = input;
313829
+ if (output.startsWith("./")) {
313830
+ output = output.slice(2);
313831
+ state2.prefix = "./";
313832
+ }
313833
+ return output;
313834
+ };
313835
+ exports2.wrapOutput = (input, state2 = {}, options = {}) => {
313836
+ const prepend = options.contains ? "" : "^";
313837
+ const append = options.contains ? "" : "$";
313838
+ let output = `${prepend}(?:${input})${append}`;
313839
+ if (state2.negated === true) {
313840
+ output = `(?:^(?!${output}).*$)`;
313841
+ }
313842
+ return output;
313843
+ };
313844
+ }
313845
+ });
313846
+
313847
+ // ../../node_modules/anymatch/node_modules/picomatch/lib/scan.js
313848
+ var require_scan3 = __commonJS({
313849
+ "../../node_modules/anymatch/node_modules/picomatch/lib/scan.js"(exports2, module2) {
313850
+ "use strict";
313851
+ var utils = require_utils8();
313852
+ var {
313853
+ CHAR_ASTERISK,
313854
+ /* * */
313855
+ CHAR_AT,
313856
+ /* @ */
313857
+ CHAR_BACKWARD_SLASH,
313858
+ /* \ */
313859
+ CHAR_COMMA,
313860
+ /* , */
313861
+ CHAR_DOT,
313862
+ /* . */
313863
+ CHAR_EXCLAMATION_MARK,
313864
+ /* ! */
313865
+ CHAR_FORWARD_SLASH,
313866
+ /* / */
313867
+ CHAR_LEFT_CURLY_BRACE,
313868
+ /* { */
313869
+ CHAR_LEFT_PARENTHESES,
313870
+ /* ( */
313871
+ CHAR_LEFT_SQUARE_BRACKET,
313872
+ /* [ */
313873
+ CHAR_PLUS,
313874
+ /* + */
313875
+ CHAR_QUESTION_MARK,
313876
+ /* ? */
313877
+ CHAR_RIGHT_CURLY_BRACE,
313878
+ /* } */
313879
+ CHAR_RIGHT_PARENTHESES,
313880
+ /* ) */
313881
+ CHAR_RIGHT_SQUARE_BRACKET
313882
+ /* ] */
313883
+ } = require_constants6();
313884
+ var isPathSeparator = (code) => {
313885
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
313886
+ };
313887
+ var depth = (token) => {
313888
+ if (token.isPrefix !== true) {
313889
+ token.depth = token.isGlobstar ? Infinity : 1;
313890
+ }
313891
+ };
313892
+ var scan = (input, options) => {
313893
+ const opts = options || {};
313894
+ const length = input.length - 1;
313895
+ const scanToEnd = opts.parts === true || opts.scanToEnd === true;
313896
+ const slashes = [];
313897
+ const tokens = [];
313898
+ const parts = [];
313899
+ let str = input;
313900
+ let index = -1;
313901
+ let start = 0;
313902
+ let lastIndex = 0;
313903
+ let isBrace = false;
313904
+ let isBracket = false;
313905
+ let isGlob = false;
313906
+ let isExtglob = false;
313907
+ let isGlobstar = false;
313908
+ let braceEscaped = false;
313909
+ let backslashes = false;
313910
+ let negated = false;
313911
+ let negatedExtglob = false;
313912
+ let finished = false;
313913
+ let braces = 0;
313914
+ let prev;
313915
+ let code;
313916
+ let token = { value: "", depth: 0, isGlob: false };
313917
+ const eos = () => index >= length;
313918
+ const peek = () => str.charCodeAt(index + 1);
313919
+ const advance = () => {
313920
+ prev = code;
313921
+ return str.charCodeAt(++index);
313922
+ };
313923
+ while (index < length) {
313924
+ code = advance();
313925
+ let next;
313926
+ if (code === CHAR_BACKWARD_SLASH) {
313927
+ backslashes = token.backslashes = true;
313928
+ code = advance();
313929
+ if (code === CHAR_LEFT_CURLY_BRACE) {
313930
+ braceEscaped = true;
313931
+ }
313932
+ continue;
313933
+ }
313934
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
313935
+ braces++;
313936
+ while (eos() !== true && (code = advance())) {
313937
+ if (code === CHAR_BACKWARD_SLASH) {
313938
+ backslashes = token.backslashes = true;
313939
+ advance();
313940
+ continue;
313941
+ }
313942
+ if (code === CHAR_LEFT_CURLY_BRACE) {
313943
+ braces++;
313944
+ continue;
313945
+ }
313946
+ if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
313947
+ isBrace = token.isBrace = true;
313948
+ isGlob = token.isGlob = true;
313949
+ finished = true;
313950
+ if (scanToEnd === true) {
313951
+ continue;
313952
+ }
313953
+ break;
313954
+ }
313955
+ if (braceEscaped !== true && code === CHAR_COMMA) {
313956
+ isBrace = token.isBrace = true;
313957
+ isGlob = token.isGlob = true;
313958
+ finished = true;
313959
+ if (scanToEnd === true) {
313960
+ continue;
313961
+ }
313962
+ break;
313963
+ }
313964
+ if (code === CHAR_RIGHT_CURLY_BRACE) {
313965
+ braces--;
313966
+ if (braces === 0) {
313967
+ braceEscaped = false;
313968
+ isBrace = token.isBrace = true;
313969
+ finished = true;
313970
+ break;
313971
+ }
313972
+ }
313973
+ }
313974
+ if (scanToEnd === true) {
313975
+ continue;
313976
+ }
313977
+ break;
313978
+ }
313979
+ if (code === CHAR_FORWARD_SLASH) {
313980
+ slashes.push(index);
313981
+ tokens.push(token);
313982
+ token = { value: "", depth: 0, isGlob: false };
313983
+ if (finished === true) continue;
313984
+ if (prev === CHAR_DOT && index === start + 1) {
313985
+ start += 2;
313986
+ continue;
313987
+ }
313988
+ lastIndex = index + 1;
313989
+ continue;
313990
+ }
313991
+ if (opts.noext !== true) {
313992
+ const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
313993
+ if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
313994
+ isGlob = token.isGlob = true;
313995
+ isExtglob = token.isExtglob = true;
313996
+ finished = true;
313997
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
313998
+ negatedExtglob = true;
313999
+ }
314000
+ if (scanToEnd === true) {
314001
+ while (eos() !== true && (code = advance())) {
314002
+ if (code === CHAR_BACKWARD_SLASH) {
314003
+ backslashes = token.backslashes = true;
314004
+ code = advance();
314005
+ continue;
314006
+ }
314007
+ if (code === CHAR_RIGHT_PARENTHESES) {
314008
+ isGlob = token.isGlob = true;
314009
+ finished = true;
314010
+ break;
314011
+ }
314012
+ }
314013
+ continue;
314014
+ }
314015
+ break;
314016
+ }
314017
+ }
314018
+ if (code === CHAR_ASTERISK) {
314019
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
314020
+ isGlob = token.isGlob = true;
314021
+ finished = true;
314022
+ if (scanToEnd === true) {
314023
+ continue;
314024
+ }
314025
+ break;
314026
+ }
314027
+ if (code === CHAR_QUESTION_MARK) {
314028
+ isGlob = token.isGlob = true;
314029
+ finished = true;
314030
+ if (scanToEnd === true) {
314031
+ continue;
314032
+ }
314033
+ break;
314034
+ }
314035
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
314036
+ while (eos() !== true && (next = advance())) {
314037
+ if (next === CHAR_BACKWARD_SLASH) {
314038
+ backslashes = token.backslashes = true;
314039
+ advance();
314040
+ continue;
314041
+ }
314042
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
314043
+ isBracket = token.isBracket = true;
314044
+ isGlob = token.isGlob = true;
314045
+ finished = true;
314046
+ break;
314047
+ }
314048
+ }
314049
+ if (scanToEnd === true) {
314050
+ continue;
314051
+ }
314052
+ break;
314053
+ }
314054
+ if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
314055
+ negated = token.negated = true;
314056
+ start++;
314057
+ continue;
314058
+ }
314059
+ if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
314060
+ isGlob = token.isGlob = true;
314061
+ if (scanToEnd === true) {
314062
+ while (eos() !== true && (code = advance())) {
314063
+ if (code === CHAR_LEFT_PARENTHESES) {
314064
+ backslashes = token.backslashes = true;
314065
+ code = advance();
314066
+ continue;
314067
+ }
314068
+ if (code === CHAR_RIGHT_PARENTHESES) {
314069
+ finished = true;
314070
+ break;
314071
+ }
314072
+ }
314073
+ continue;
314074
+ }
314075
+ break;
314076
+ }
314077
+ if (isGlob === true) {
314078
+ finished = true;
314079
+ if (scanToEnd === true) {
314080
+ continue;
314081
+ }
314082
+ break;
314083
+ }
314084
+ }
314085
+ if (opts.noext === true) {
314086
+ isExtglob = false;
314087
+ isGlob = false;
314088
+ }
314089
+ let base = str;
314090
+ let prefix2 = "";
314091
+ let glob2 = "";
314092
+ if (start > 0) {
314093
+ prefix2 = str.slice(0, start);
314094
+ str = str.slice(start);
314095
+ lastIndex -= start;
314096
+ }
314097
+ if (base && isGlob === true && lastIndex > 0) {
314098
+ base = str.slice(0, lastIndex);
314099
+ glob2 = str.slice(lastIndex);
314100
+ } else if (isGlob === true) {
314101
+ base = "";
314102
+ glob2 = str;
314103
+ } else {
314104
+ base = str;
314105
+ }
314106
+ if (base && base !== "" && base !== "/" && base !== str) {
314107
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) {
314108
+ base = base.slice(0, -1);
314109
+ }
314110
+ }
314111
+ if (opts.unescape === true) {
314112
+ if (glob2) glob2 = utils.removeBackslashes(glob2);
314113
+ if (base && backslashes === true) {
314114
+ base = utils.removeBackslashes(base);
314115
+ }
314116
+ }
314117
+ const state2 = {
314118
+ prefix: prefix2,
314119
+ input,
314120
+ start,
314121
+ base,
314122
+ glob: glob2,
314123
+ isBrace,
314124
+ isBracket,
314125
+ isGlob,
314126
+ isExtglob,
314127
+ isGlobstar,
314128
+ negated,
314129
+ negatedExtglob
314130
+ };
314131
+ if (opts.tokens === true) {
314132
+ state2.maxDepth = 0;
314133
+ if (!isPathSeparator(code)) {
314134
+ tokens.push(token);
314135
+ }
314136
+ state2.tokens = tokens;
314137
+ }
314138
+ if (opts.parts === true || opts.tokens === true) {
314139
+ let prevIndex;
314140
+ for (let idx = 0; idx < slashes.length; idx++) {
314141
+ const n3 = prevIndex ? prevIndex + 1 : start;
314142
+ const i3 = slashes[idx];
314143
+ const value = input.slice(n3, i3);
314144
+ if (opts.tokens) {
314145
+ if (idx === 0 && start !== 0) {
314146
+ tokens[idx].isPrefix = true;
314147
+ tokens[idx].value = prefix2;
314148
+ } else {
314149
+ tokens[idx].value = value;
314150
+ }
314151
+ depth(tokens[idx]);
314152
+ state2.maxDepth += tokens[idx].depth;
314153
+ }
314154
+ if (idx !== 0 || value !== "") {
314155
+ parts.push(value);
314156
+ }
314157
+ prevIndex = i3;
314158
+ }
314159
+ if (prevIndex && prevIndex + 1 < input.length) {
314160
+ const value = input.slice(prevIndex + 1);
314161
+ parts.push(value);
314162
+ if (opts.tokens) {
314163
+ tokens[tokens.length - 1].value = value;
314164
+ depth(tokens[tokens.length - 1]);
314165
+ state2.maxDepth += tokens[tokens.length - 1].depth;
314166
+ }
314167
+ }
314168
+ state2.slashes = slashes;
314169
+ state2.parts = parts;
314170
+ }
314171
+ return state2;
314172
+ };
314173
+ module2.exports = scan;
314174
+ }
314175
+ });
314176
+
314177
+ // ../../node_modules/anymatch/node_modules/picomatch/lib/parse.js
314178
+ var require_parse5 = __commonJS({
314179
+ "../../node_modules/anymatch/node_modules/picomatch/lib/parse.js"(exports2, module2) {
314180
+ "use strict";
314181
+ var constants3 = require_constants6();
314182
+ var utils = require_utils8();
314183
+ var {
314184
+ MAX_LENGTH,
314185
+ POSIX_REGEX_SOURCE,
314186
+ REGEX_NON_SPECIAL_CHARS,
314187
+ REGEX_SPECIAL_CHARS_BACKREF,
314188
+ REPLACEMENTS
314189
+ } = constants3;
314190
+ var expandRange = (args, options) => {
314191
+ if (typeof options.expandRange === "function") {
314192
+ return options.expandRange(...args, options);
314193
+ }
314194
+ args.sort();
314195
+ const value = `[${args.join("-")}]`;
314196
+ try {
314197
+ new RegExp(value);
314198
+ } catch (ex) {
314199
+ return args.map((v6) => utils.escapeRegex(v6)).join("..");
314200
+ }
314201
+ return value;
314202
+ };
314203
+ var syntaxError = (type, char) => {
314204
+ return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
314205
+ };
314206
+ var parse3 = (input, options) => {
314207
+ if (typeof input !== "string") {
314208
+ throw new TypeError("Expected a string");
314209
+ }
314210
+ input = REPLACEMENTS[input] || input;
314211
+ const opts = { ...options };
314212
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
314213
+ let len = input.length;
314214
+ if (len > max) {
314215
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
314216
+ }
314217
+ const bos = { type: "bos", value: "", output: opts.prepend || "" };
314218
+ const tokens = [bos];
314219
+ const capture = opts.capture ? "" : "?:";
314220
+ const win322 = utils.isWindows(options);
314221
+ const PLATFORM_CHARS = constants3.globChars(win322);
314222
+ const EXTGLOB_CHARS = constants3.extglobChars(PLATFORM_CHARS);
314223
+ const {
314224
+ DOT_LITERAL,
314225
+ PLUS_LITERAL,
314226
+ SLASH_LITERAL,
314227
+ ONE_CHAR,
314228
+ DOTS_SLASH,
314229
+ NO_DOT,
314230
+ NO_DOT_SLASH,
314231
+ NO_DOTS_SLASH,
314232
+ QMARK,
314233
+ QMARK_NO_DOT,
314234
+ STAR,
314235
+ START_ANCHOR
314236
+ } = PLATFORM_CHARS;
314237
+ const globstar = (opts2) => {
314238
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
314239
+ };
314240
+ const nodot = opts.dot ? "" : NO_DOT;
314241
+ const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
314242
+ let star7 = opts.bash === true ? globstar(opts) : STAR;
314243
+ if (opts.capture) {
314244
+ star7 = `(${star7})`;
314245
+ }
314246
+ if (typeof opts.noext === "boolean") {
314247
+ opts.noextglob = opts.noext;
314248
+ }
314249
+ const state2 = {
314250
+ input,
314251
+ index: -1,
314252
+ start: 0,
314253
+ dot: opts.dot === true,
314254
+ consumed: "",
314255
+ output: "",
314256
+ prefix: "",
314257
+ backtrack: false,
314258
+ negated: false,
314259
+ brackets: 0,
314260
+ braces: 0,
314261
+ parens: 0,
314262
+ quotes: 0,
314263
+ globstar: false,
314264
+ tokens
314265
+ };
314266
+ input = utils.removePrefix(input, state2);
314267
+ len = input.length;
314268
+ const extglobs = [];
314269
+ const braces = [];
314270
+ const stack = [];
314271
+ let prev = bos;
314272
+ let value;
314273
+ const eos = () => state2.index === len - 1;
314274
+ const peek = state2.peek = (n3 = 1) => input[state2.index + n3];
314275
+ const advance = state2.advance = () => input[++state2.index] || "";
314276
+ const remaining = () => input.slice(state2.index + 1);
314277
+ const consume = (value2 = "", num = 0) => {
314278
+ state2.consumed += value2;
314279
+ state2.index += num;
314280
+ };
314281
+ const append = (token) => {
314282
+ state2.output += token.output != null ? token.output : token.value;
314283
+ consume(token.value);
314284
+ };
314285
+ const negate = () => {
314286
+ let count = 1;
314287
+ while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
314288
+ advance();
314289
+ state2.start++;
314290
+ count++;
314291
+ }
314292
+ if (count % 2 === 0) {
314293
+ return false;
314294
+ }
314295
+ state2.negated = true;
314296
+ state2.start++;
314297
+ return true;
314298
+ };
314299
+ const increment = (type) => {
314300
+ state2[type]++;
314301
+ stack.push(type);
314302
+ };
314303
+ const decrement = (type) => {
314304
+ state2[type]--;
314305
+ stack.pop();
314306
+ };
314307
+ const push = (tok) => {
314308
+ if (prev.type === "globstar") {
314309
+ const isBrace = state2.braces > 0 && (tok.type === "comma" || tok.type === "brace");
314310
+ const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
314311
+ if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
314312
+ state2.output = state2.output.slice(0, -prev.output.length);
314313
+ prev.type = "star";
314314
+ prev.value = "*";
314315
+ prev.output = star7;
314316
+ state2.output += prev.output;
314317
+ }
314318
+ }
314319
+ if (extglobs.length && tok.type !== "paren") {
314320
+ extglobs[extglobs.length - 1].inner += tok.value;
314321
+ }
314322
+ if (tok.value || tok.output) append(tok);
314323
+ if (prev && prev.type === "text" && tok.type === "text") {
314324
+ prev.value += tok.value;
314325
+ prev.output = (prev.output || "") + tok.value;
314326
+ return;
314327
+ }
314328
+ tok.prev = prev;
314329
+ tokens.push(tok);
314330
+ prev = tok;
314331
+ };
314332
+ const extglobOpen = (type, value2) => {
314333
+ const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
314334
+ token.prev = prev;
314335
+ token.parens = state2.parens;
314336
+ token.output = state2.output;
314337
+ const output = (opts.capture ? "(" : "") + token.open;
314338
+ increment("parens");
314339
+ push({ type, value: value2, output: state2.output ? "" : ONE_CHAR });
314340
+ push({ type: "paren", extglob: true, value: advance(), output });
314341
+ extglobs.push(token);
314342
+ };
314343
+ const extglobClose = (token) => {
314344
+ let output = token.close + (opts.capture ? ")" : "");
314345
+ let rest;
314346
+ if (token.type === "negate") {
314347
+ let extglobStar = star7;
314348
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/")) {
314349
+ extglobStar = globstar(opts);
314350
+ }
314351
+ if (extglobStar !== star7 || eos() || /^\)+$/.test(remaining())) {
314352
+ output = token.close = `)$))${extglobStar}`;
314353
+ }
314354
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
314355
+ const expression = parse3(rest, { ...options, fastpaths: false }).output;
314356
+ output = token.close = `)${expression})${extglobStar})`;
314357
+ }
314358
+ if (token.prev.type === "bos") {
314359
+ state2.negatedExtglob = true;
314360
+ }
314361
+ }
314362
+ push({ type: "paren", extglob: true, value, output });
314363
+ decrement("parens");
314364
+ };
314365
+ if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
314366
+ let backslashes = false;
314367
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m3, esc, chars, first, rest, index) => {
314368
+ if (first === "\\") {
314369
+ backslashes = true;
314370
+ return m3;
314371
+ }
314372
+ if (first === "?") {
314373
+ if (esc) {
314374
+ return esc + first + (rest ? QMARK.repeat(rest.length) : "");
314375
+ }
314376
+ if (index === 0) {
314377
+ return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
314378
+ }
314379
+ return QMARK.repeat(chars.length);
314380
+ }
314381
+ if (first === ".") {
314382
+ return DOT_LITERAL.repeat(chars.length);
314383
+ }
314384
+ if (first === "*") {
314385
+ if (esc) {
314386
+ return esc + first + (rest ? star7 : "");
314387
+ }
314388
+ return star7;
314389
+ }
314390
+ return esc ? m3 : `\\${m3}`;
314391
+ });
314392
+ if (backslashes === true) {
314393
+ if (opts.unescape === true) {
314394
+ output = output.replace(/\\/g, "");
314395
+ } else {
314396
+ output = output.replace(/\\+/g, (m3) => {
314397
+ return m3.length % 2 === 0 ? "\\\\" : m3 ? "\\" : "";
314398
+ });
314399
+ }
314400
+ }
314401
+ if (output === input && opts.contains === true) {
314402
+ state2.output = input;
314403
+ return state2;
314404
+ }
314405
+ state2.output = utils.wrapOutput(output, state2, options);
314406
+ return state2;
314407
+ }
314408
+ while (!eos()) {
314409
+ value = advance();
314410
+ if (value === "\0") {
314411
+ continue;
314412
+ }
314413
+ if (value === "\\") {
314414
+ const next = peek();
314415
+ if (next === "/" && opts.bash !== true) {
314416
+ continue;
314417
+ }
314418
+ if (next === "." || next === ";") {
314419
+ continue;
314420
+ }
314421
+ if (!next) {
314422
+ value += "\\";
314423
+ push({ type: "text", value });
314424
+ continue;
314425
+ }
314426
+ const match4 = /^\\+/.exec(remaining());
314427
+ let slashes = 0;
314428
+ if (match4 && match4[0].length > 2) {
314429
+ slashes = match4[0].length;
314430
+ state2.index += slashes;
314431
+ if (slashes % 2 !== 0) {
314432
+ value += "\\";
314433
+ }
314434
+ }
314435
+ if (opts.unescape === true) {
314436
+ value = advance();
314437
+ } else {
314438
+ value += advance();
314439
+ }
314440
+ if (state2.brackets === 0) {
314441
+ push({ type: "text", value });
314442
+ continue;
314443
+ }
314444
+ }
314445
+ if (state2.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
314446
+ if (opts.posix !== false && value === ":") {
314447
+ const inner = prev.value.slice(1);
314448
+ if (inner.includes("[")) {
314449
+ prev.posix = true;
314450
+ if (inner.includes(":")) {
314451
+ const idx = prev.value.lastIndexOf("[");
314452
+ const pre = prev.value.slice(0, idx);
314453
+ const rest2 = prev.value.slice(idx + 2);
314454
+ const posix2 = POSIX_REGEX_SOURCE[rest2];
314455
+ if (posix2) {
314456
+ prev.value = pre + posix2;
314457
+ state2.backtrack = true;
314458
+ advance();
314459
+ if (!bos.output && tokens.indexOf(prev) === 1) {
314460
+ bos.output = ONE_CHAR;
314461
+ }
314462
+ continue;
314463
+ }
314464
+ }
314465
+ }
314466
+ }
314467
+ if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") {
314468
+ value = `\\${value}`;
314469
+ }
314470
+ if (value === "]" && (prev.value === "[" || prev.value === "[^")) {
314471
+ value = `\\${value}`;
314472
+ }
314473
+ if (opts.posix === true && value === "!" && prev.value === "[") {
314474
+ value = "^";
314475
+ }
314476
+ prev.value += value;
314477
+ append({ value });
314478
+ continue;
314479
+ }
314480
+ if (state2.quotes === 1 && value !== '"') {
314481
+ value = utils.escapeRegex(value);
314482
+ prev.value += value;
314483
+ append({ value });
314484
+ continue;
314485
+ }
314486
+ if (value === '"') {
314487
+ state2.quotes = state2.quotes === 1 ? 0 : 1;
314488
+ if (opts.keepQuotes === true) {
314489
+ push({ type: "text", value });
314490
+ }
314491
+ continue;
314492
+ }
314493
+ if (value === "(") {
314494
+ increment("parens");
314495
+ push({ type: "paren", value });
314496
+ continue;
314497
+ }
314498
+ if (value === ")") {
314499
+ if (state2.parens === 0 && opts.strictBrackets === true) {
314500
+ throw new SyntaxError(syntaxError("opening", "("));
314501
+ }
314502
+ const extglob = extglobs[extglobs.length - 1];
314503
+ if (extglob && state2.parens === extglob.parens + 1) {
314504
+ extglobClose(extglobs.pop());
314505
+ continue;
314506
+ }
314507
+ push({ type: "paren", value, output: state2.parens ? ")" : "\\)" });
314508
+ decrement("parens");
314509
+ continue;
314510
+ }
314511
+ if (value === "[") {
314512
+ if (opts.nobracket === true || !remaining().includes("]")) {
314513
+ if (opts.nobracket !== true && opts.strictBrackets === true) {
314514
+ throw new SyntaxError(syntaxError("closing", "]"));
314515
+ }
314516
+ value = `\\${value}`;
314517
+ } else {
314518
+ increment("brackets");
314519
+ }
314520
+ push({ type: "bracket", value });
314521
+ continue;
314522
+ }
314523
+ if (value === "]") {
314524
+ if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) {
314525
+ push({ type: "text", value, output: `\\${value}` });
314526
+ continue;
314527
+ }
314528
+ if (state2.brackets === 0) {
314529
+ if (opts.strictBrackets === true) {
314530
+ throw new SyntaxError(syntaxError("opening", "["));
314531
+ }
314532
+ push({ type: "text", value, output: `\\${value}` });
314533
+ continue;
314534
+ }
314535
+ decrement("brackets");
314536
+ const prevValue = prev.value.slice(1);
314537
+ if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) {
314538
+ value = `/${value}`;
314539
+ }
314540
+ prev.value += value;
314541
+ append({ value });
314542
+ if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
314543
+ continue;
314544
+ }
314545
+ const escaped = utils.escapeRegex(prev.value);
314546
+ state2.output = state2.output.slice(0, -prev.value.length);
314547
+ if (opts.literalBrackets === true) {
314548
+ state2.output += escaped;
314549
+ prev.value = escaped;
314550
+ continue;
314551
+ }
314552
+ prev.value = `(${capture}${escaped}|${prev.value})`;
314553
+ state2.output += prev.value;
314554
+ continue;
314555
+ }
314556
+ if (value === "{" && opts.nobrace !== true) {
314557
+ increment("braces");
314558
+ const open = {
314559
+ type: "brace",
314560
+ value,
314561
+ output: "(",
314562
+ outputIndex: state2.output.length,
314563
+ tokensIndex: state2.tokens.length
314564
+ };
314565
+ braces.push(open);
314566
+ push(open);
314567
+ continue;
314568
+ }
314569
+ if (value === "}") {
314570
+ const brace = braces[braces.length - 1];
314571
+ if (opts.nobrace === true || !brace) {
314572
+ push({ type: "text", value, output: value });
314573
+ continue;
314574
+ }
314575
+ let output = ")";
314576
+ if (brace.dots === true) {
314577
+ const arr = tokens.slice();
314578
+ const range2 = [];
314579
+ for (let i3 = arr.length - 1; i3 >= 0; i3--) {
314580
+ tokens.pop();
314581
+ if (arr[i3].type === "brace") {
314582
+ break;
314583
+ }
314584
+ if (arr[i3].type !== "dots") {
314585
+ range2.unshift(arr[i3].value);
314586
+ }
314587
+ }
314588
+ output = expandRange(range2, opts);
314589
+ state2.backtrack = true;
314590
+ }
314591
+ if (brace.comma !== true && brace.dots !== true) {
314592
+ const out = state2.output.slice(0, brace.outputIndex);
314593
+ const toks = state2.tokens.slice(brace.tokensIndex);
314594
+ brace.value = brace.output = "\\{";
314595
+ value = output = "\\}";
314596
+ state2.output = out;
314597
+ for (const t3 of toks) {
314598
+ state2.output += t3.output || t3.value;
314599
+ }
314600
+ }
314601
+ push({ type: "brace", value, output });
314602
+ decrement("braces");
314603
+ braces.pop();
314604
+ continue;
314605
+ }
314606
+ if (value === "|") {
314607
+ if (extglobs.length > 0) {
314608
+ extglobs[extglobs.length - 1].conditions++;
314609
+ }
314610
+ push({ type: "text", value });
314611
+ continue;
314612
+ }
314613
+ if (value === ",") {
314614
+ let output = value;
314615
+ const brace = braces[braces.length - 1];
314616
+ if (brace && stack[stack.length - 1] === "braces") {
314617
+ brace.comma = true;
314618
+ output = "|";
314619
+ }
314620
+ push({ type: "comma", value, output });
314621
+ continue;
314622
+ }
314623
+ if (value === "/") {
314624
+ if (prev.type === "dot" && state2.index === state2.start + 1) {
314625
+ state2.start = state2.index + 1;
314626
+ state2.consumed = "";
314627
+ state2.output = "";
314628
+ tokens.pop();
314629
+ prev = bos;
314630
+ continue;
314631
+ }
314632
+ push({ type: "slash", value, output: SLASH_LITERAL });
314633
+ continue;
314634
+ }
314635
+ if (value === ".") {
314636
+ if (state2.braces > 0 && prev.type === "dot") {
314637
+ if (prev.value === ".") prev.output = DOT_LITERAL;
314638
+ const brace = braces[braces.length - 1];
314639
+ prev.type = "dots";
314640
+ prev.output += value;
314641
+ prev.value += value;
314642
+ brace.dots = true;
314643
+ continue;
314644
+ }
314645
+ if (state2.braces + state2.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
314646
+ push({ type: "text", value, output: DOT_LITERAL });
314647
+ continue;
314648
+ }
314649
+ push({ type: "dot", value, output: DOT_LITERAL });
314650
+ continue;
314651
+ }
314652
+ if (value === "?") {
314653
+ const isGroup = prev && prev.value === "(";
314654
+ if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
314655
+ extglobOpen("qmark", value);
314656
+ continue;
314657
+ }
314658
+ if (prev && prev.type === "paren") {
314659
+ const next = peek();
314660
+ let output = value;
314661
+ if (next === "<" && !utils.supportsLookbehinds()) {
314662
+ throw new Error("Node.js v10 or higher is required for regex lookbehinds");
314663
+ }
314664
+ if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
314665
+ output = `\\${value}`;
314666
+ }
314667
+ push({ type: "text", value, output });
314668
+ continue;
314669
+ }
314670
+ if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
314671
+ push({ type: "qmark", value, output: QMARK_NO_DOT });
314672
+ continue;
314673
+ }
314674
+ push({ type: "qmark", value, output: QMARK });
314675
+ continue;
314676
+ }
314677
+ if (value === "!") {
314678
+ if (opts.noextglob !== true && peek() === "(") {
314679
+ if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) {
314680
+ extglobOpen("negate", value);
314681
+ continue;
314682
+ }
314683
+ }
314684
+ if (opts.nonegate !== true && state2.index === 0) {
314685
+ negate();
314686
+ continue;
314687
+ }
314688
+ }
314689
+ if (value === "+") {
314690
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
314691
+ extglobOpen("plus", value);
314692
+ continue;
314693
+ }
314694
+ if (prev && prev.value === "(" || opts.regex === false) {
314695
+ push({ type: "plus", value, output: PLUS_LITERAL });
314696
+ continue;
314697
+ }
314698
+ if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state2.parens > 0) {
314699
+ push({ type: "plus", value });
314700
+ continue;
314701
+ }
314702
+ push({ type: "plus", value: PLUS_LITERAL });
314703
+ continue;
314704
+ }
314705
+ if (value === "@") {
314706
+ if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
314707
+ push({ type: "at", extglob: true, value, output: "" });
314708
+ continue;
314709
+ }
314710
+ push({ type: "text", value });
314711
+ continue;
314712
+ }
314713
+ if (value !== "*") {
314714
+ if (value === "$" || value === "^") {
314715
+ value = `\\${value}`;
314716
+ }
314717
+ const match4 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
314718
+ if (match4) {
314719
+ value += match4[0];
314720
+ state2.index += match4[0].length;
314721
+ }
314722
+ push({ type: "text", value });
314723
+ continue;
314724
+ }
314725
+ if (prev && (prev.type === "globstar" || prev.star === true)) {
314726
+ prev.type = "star";
314727
+ prev.star = true;
314728
+ prev.value += value;
314729
+ prev.output = star7;
314730
+ state2.backtrack = true;
314731
+ state2.globstar = true;
314732
+ consume(value);
314733
+ continue;
314734
+ }
314735
+ let rest = remaining();
314736
+ if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
314737
+ extglobOpen("star", value);
314738
+ continue;
314739
+ }
314740
+ if (prev.type === "star") {
314741
+ if (opts.noglobstar === true) {
314742
+ consume(value);
314743
+ continue;
314744
+ }
314745
+ const prior = prev.prev;
314746
+ const before = prior.prev;
314747
+ const isStart = prior.type === "slash" || prior.type === "bos";
314748
+ const afterStar = before && (before.type === "star" || before.type === "globstar");
314749
+ if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
314750
+ push({ type: "star", value, output: "" });
314751
+ continue;
314752
+ }
314753
+ const isBrace = state2.braces > 0 && (prior.type === "comma" || prior.type === "brace");
314754
+ const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
314755
+ if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
314756
+ push({ type: "star", value, output: "" });
314757
+ continue;
314758
+ }
314759
+ while (rest.slice(0, 3) === "/**") {
314760
+ const after = input[state2.index + 4];
314761
+ if (after && after !== "/") {
314762
+ break;
314763
+ }
314764
+ rest = rest.slice(3);
314765
+ consume("/**", 3);
314766
+ }
314767
+ if (prior.type === "bos" && eos()) {
314768
+ prev.type = "globstar";
314769
+ prev.value += value;
314770
+ prev.output = globstar(opts);
314771
+ state2.output = prev.output;
314772
+ state2.globstar = true;
314773
+ consume(value);
314774
+ continue;
314775
+ }
314776
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
314777
+ state2.output = state2.output.slice(0, -(prior.output + prev.output).length);
314778
+ prior.output = `(?:${prior.output}`;
314779
+ prev.type = "globstar";
314780
+ prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)");
314781
+ prev.value += value;
314782
+ state2.globstar = true;
314783
+ state2.output += prior.output + prev.output;
314784
+ consume(value);
314785
+ continue;
314786
+ }
314787
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
314788
+ const end = rest[1] !== void 0 ? "|$" : "";
314789
+ state2.output = state2.output.slice(0, -(prior.output + prev.output).length);
314790
+ prior.output = `(?:${prior.output}`;
314791
+ prev.type = "globstar";
314792
+ prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
314793
+ prev.value += value;
314794
+ state2.output += prior.output + prev.output;
314795
+ state2.globstar = true;
314796
+ consume(value + advance());
314797
+ push({ type: "slash", value: "/", output: "" });
314798
+ continue;
314799
+ }
314800
+ if (prior.type === "bos" && rest[0] === "/") {
314801
+ prev.type = "globstar";
314802
+ prev.value += value;
314803
+ prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
314804
+ state2.output = prev.output;
314805
+ state2.globstar = true;
314806
+ consume(value + advance());
314807
+ push({ type: "slash", value: "/", output: "" });
314808
+ continue;
314809
+ }
314810
+ state2.output = state2.output.slice(0, -prev.output.length);
314811
+ prev.type = "globstar";
314812
+ prev.output = globstar(opts);
314813
+ prev.value += value;
314814
+ state2.output += prev.output;
314815
+ state2.globstar = true;
314816
+ consume(value);
314817
+ continue;
314818
+ }
314819
+ const token = { type: "star", value, output: star7 };
314820
+ if (opts.bash === true) {
314821
+ token.output = ".*?";
314822
+ if (prev.type === "bos" || prev.type === "slash") {
314823
+ token.output = nodot + token.output;
314824
+ }
314825
+ push(token);
314826
+ continue;
314827
+ }
314828
+ if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) {
314829
+ token.output = value;
314830
+ push(token);
314831
+ continue;
314832
+ }
314833
+ if (state2.index === state2.start || prev.type === "slash" || prev.type === "dot") {
314834
+ if (prev.type === "dot") {
314835
+ state2.output += NO_DOT_SLASH;
314836
+ prev.output += NO_DOT_SLASH;
314837
+ } else if (opts.dot === true) {
314838
+ state2.output += NO_DOTS_SLASH;
314839
+ prev.output += NO_DOTS_SLASH;
314840
+ } else {
314841
+ state2.output += nodot;
314842
+ prev.output += nodot;
314843
+ }
314844
+ if (peek() !== "*") {
314845
+ state2.output += ONE_CHAR;
314846
+ prev.output += ONE_CHAR;
314847
+ }
314848
+ }
314849
+ push(token);
314850
+ }
314851
+ while (state2.brackets > 0) {
314852
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
314853
+ state2.output = utils.escapeLast(state2.output, "[");
314854
+ decrement("brackets");
314855
+ }
314856
+ while (state2.parens > 0) {
314857
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
314858
+ state2.output = utils.escapeLast(state2.output, "(");
314859
+ decrement("parens");
314860
+ }
314861
+ while (state2.braces > 0) {
314862
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
314863
+ state2.output = utils.escapeLast(state2.output, "{");
314864
+ decrement("braces");
314865
+ }
314866
+ if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
314867
+ push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` });
314868
+ }
314869
+ if (state2.backtrack === true) {
314870
+ state2.output = "";
314871
+ for (const token of state2.tokens) {
314872
+ state2.output += token.output != null ? token.output : token.value;
314873
+ if (token.suffix) {
314874
+ state2.output += token.suffix;
314875
+ }
314876
+ }
314877
+ }
314878
+ return state2;
314879
+ };
314880
+ parse3.fastpaths = (input, options) => {
314881
+ const opts = { ...options };
314882
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
314883
+ const len = input.length;
314884
+ if (len > max) {
314885
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
314886
+ }
314887
+ input = REPLACEMENTS[input] || input;
314888
+ const win322 = utils.isWindows(options);
314889
+ const {
314890
+ DOT_LITERAL,
314891
+ SLASH_LITERAL,
314892
+ ONE_CHAR,
314893
+ DOTS_SLASH,
314894
+ NO_DOT,
314895
+ NO_DOTS,
314896
+ NO_DOTS_SLASH,
314897
+ STAR,
314898
+ START_ANCHOR
314899
+ } = constants3.globChars(win322);
314900
+ const nodot = opts.dot ? NO_DOTS : NO_DOT;
314901
+ const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
314902
+ const capture = opts.capture ? "" : "?:";
314903
+ const state2 = { negated: false, prefix: "" };
314904
+ let star7 = opts.bash === true ? ".*?" : STAR;
314905
+ if (opts.capture) {
314906
+ star7 = `(${star7})`;
314907
+ }
314908
+ const globstar = (opts2) => {
314909
+ if (opts2.noglobstar === true) return star7;
314910
+ return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
314911
+ };
314912
+ const create = (str) => {
314913
+ switch (str) {
314914
+ case "*":
314915
+ return `${nodot}${ONE_CHAR}${star7}`;
314916
+ case ".*":
314917
+ return `${DOT_LITERAL}${ONE_CHAR}${star7}`;
314918
+ case "*.*":
314919
+ return `${nodot}${star7}${DOT_LITERAL}${ONE_CHAR}${star7}`;
314920
+ case "*/*":
314921
+ return `${nodot}${star7}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star7}`;
314922
+ case "**":
314923
+ return nodot + globstar(opts);
314924
+ case "**/*":
314925
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star7}`;
314926
+ case "**/*.*":
314927
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star7}${DOT_LITERAL}${ONE_CHAR}${star7}`;
314928
+ case "**/.*":
314929
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star7}`;
314930
+ default: {
314931
+ const match4 = /^(.*?)\.(\w+)$/.exec(str);
314932
+ if (!match4) return;
314933
+ const source2 = create(match4[1]);
314934
+ if (!source2) return;
314935
+ return source2 + DOT_LITERAL + match4[2];
314936
+ }
314937
+ }
314938
+ };
314939
+ const output = utils.removePrefix(input, state2);
314940
+ let source = create(output);
314941
+ if (source && opts.strictSlashes !== true) {
314942
+ source += `${SLASH_LITERAL}?`;
314943
+ }
314944
+ return source;
314945
+ };
314946
+ module2.exports = parse3;
314947
+ }
314948
+ });
314949
+
314950
+ // ../../node_modules/anymatch/node_modules/picomatch/lib/picomatch.js
314951
+ var require_picomatch3 = __commonJS({
314952
+ "../../node_modules/anymatch/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
314953
+ "use strict";
314954
+ var path34 = require("path");
314955
+ var scan = require_scan3();
314956
+ var parse3 = require_parse5();
314957
+ var utils = require_utils8();
314958
+ var constants3 = require_constants6();
314959
+ var isObject3 = (val2) => val2 && typeof val2 === "object" && !Array.isArray(val2);
314960
+ var picomatch = (glob2, options, returnState = false) => {
314961
+ if (Array.isArray(glob2)) {
314962
+ const fns = glob2.map((input) => picomatch(input, options, returnState));
314963
+ const arrayMatcher = (str) => {
314964
+ for (const isMatch of fns) {
314965
+ const state3 = isMatch(str);
314966
+ if (state3) return state3;
314967
+ }
314968
+ return false;
314969
+ };
314970
+ return arrayMatcher;
314971
+ }
314972
+ const isState = isObject3(glob2) && glob2.tokens && glob2.input;
314973
+ if (glob2 === "" || typeof glob2 !== "string" && !isState) {
314974
+ throw new TypeError("Expected pattern to be a non-empty string");
314975
+ }
314976
+ const opts = options || {};
314977
+ const posix2 = utils.isWindows(options);
314978
+ const regex = isState ? picomatch.compileRe(glob2, options) : picomatch.makeRe(glob2, options, false, true);
314979
+ const state2 = regex.state;
314980
+ delete regex.state;
314981
+ let isIgnored = () => false;
314982
+ if (opts.ignore) {
314983
+ const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
314984
+ isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
314985
+ }
314986
+ const matcher = (input, returnObject = false) => {
314987
+ const { isMatch, match: match4, output } = picomatch.test(input, regex, options, { glob: glob2, posix: posix2 });
314988
+ const result3 = { glob: glob2, state: state2, regex, posix: posix2, input, output, match: match4, isMatch };
314989
+ if (typeof opts.onResult === "function") {
314990
+ opts.onResult(result3);
314991
+ }
314992
+ if (isMatch === false) {
314993
+ result3.isMatch = false;
314994
+ return returnObject ? result3 : false;
314995
+ }
314996
+ if (isIgnored(input)) {
314997
+ if (typeof opts.onIgnore === "function") {
314998
+ opts.onIgnore(result3);
314999
+ }
315000
+ result3.isMatch = false;
315001
+ return returnObject ? result3 : false;
315002
+ }
315003
+ if (typeof opts.onMatch === "function") {
315004
+ opts.onMatch(result3);
315005
+ }
315006
+ return returnObject ? result3 : true;
315007
+ };
315008
+ if (returnState) {
315009
+ matcher.state = state2;
315010
+ }
315011
+ return matcher;
315012
+ };
315013
+ picomatch.test = (input, regex, options, { glob: glob2, posix: posix2 } = {}) => {
315014
+ if (typeof input !== "string") {
315015
+ throw new TypeError("Expected input to be a string");
315016
+ }
315017
+ if (input === "") {
315018
+ return { isMatch: false, output: "" };
315019
+ }
315020
+ const opts = options || {};
315021
+ const format26 = opts.format || (posix2 ? utils.toPosixSlashes : null);
315022
+ let match4 = input === glob2;
315023
+ let output = match4 && format26 ? format26(input) : input;
315024
+ if (match4 === false) {
315025
+ output = format26 ? format26(input) : input;
315026
+ match4 = output === glob2;
315027
+ }
315028
+ if (match4 === false || opts.capture === true) {
315029
+ if (opts.matchBase === true || opts.basename === true) {
315030
+ match4 = picomatch.matchBase(input, regex, options, posix2);
315031
+ } else {
315032
+ match4 = regex.exec(output);
315033
+ }
315034
+ }
315035
+ return { isMatch: Boolean(match4), match: match4, output };
315036
+ };
315037
+ picomatch.matchBase = (input, glob2, options, posix2 = utils.isWindows(options)) => {
315038
+ const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
315039
+ return regex.test(path34.basename(input));
315040
+ };
315041
+ picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
315042
+ picomatch.parse = (pattern, options) => {
315043
+ if (Array.isArray(pattern)) return pattern.map((p3) => picomatch.parse(p3, options));
315044
+ return parse3(pattern, { ...options, fastpaths: false });
315045
+ };
315046
+ picomatch.scan = (input, options) => scan(input, options);
315047
+ picomatch.compileRe = (state2, options, returnOutput = false, returnState = false) => {
315048
+ if (returnOutput === true) {
315049
+ return state2.output;
315050
+ }
315051
+ const opts = options || {};
315052
+ const prepend = opts.contains ? "" : "^";
315053
+ const append = opts.contains ? "" : "$";
315054
+ let source = `${prepend}(?:${state2.output})${append}`;
315055
+ if (state2 && state2.negated === true) {
315056
+ source = `^(?!${source}).*$`;
315057
+ }
315058
+ const regex = picomatch.toRegex(source, options);
315059
+ if (returnState === true) {
315060
+ regex.state = state2;
315061
+ }
315062
+ return regex;
315063
+ };
315064
+ picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
315065
+ if (!input || typeof input !== "string") {
315066
+ throw new TypeError("Expected a non-empty string");
315067
+ }
315068
+ let parsed = { negated: false, fastpaths: true };
315069
+ if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
315070
+ parsed.output = parse3.fastpaths(input, options);
315071
+ }
315072
+ if (!parsed.output) {
315073
+ parsed = parse3(input, options);
315074
+ }
315075
+ return picomatch.compileRe(parsed, options, returnOutput, returnState);
315076
+ };
315077
+ picomatch.toRegex = (source, options) => {
315078
+ try {
315079
+ const opts = options || {};
315080
+ return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
315081
+ } catch (err) {
315082
+ if (options && options.debug === true) throw err;
315083
+ return /$^/;
315084
+ }
315085
+ };
315086
+ picomatch.constants = constants3;
315087
+ module2.exports = picomatch;
315088
+ }
315089
+ });
315090
+
315091
+ // ../../node_modules/anymatch/node_modules/picomatch/index.js
315092
+ var require_picomatch4 = __commonJS({
315093
+ "../../node_modules/anymatch/node_modules/picomatch/index.js"(exports2, module2) {
312622
315094
  "use strict";
312623
- var fs38 = require("fs");
312624
- var { Readable } = require("stream");
312625
- var sysPath = require("path");
312626
- var { promisify: promisify2 } = require("util");
312627
- var picomatch = require_picomatch2();
312628
- var readdir3 = promisify2(fs38.readdir);
312629
- var stat5 = promisify2(fs38.stat);
312630
- var lstat2 = promisify2(fs38.lstat);
312631
- var realpath2 = promisify2(fs38.realpath);
312632
- var BANG = "!";
312633
- var RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
312634
- var NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]);
312635
- var FILE_TYPE = "files";
312636
- var DIR_TYPE = "directories";
312637
- var FILE_DIR_TYPE = "files_directories";
312638
- var EVERYTHING_TYPE = "all";
312639
- var ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE];
312640
- var isNormalFlowError = (error5) => NORMAL_FLOW_ERRORS.has(error5.code);
312641
- var [maj, min] = process.versions.node.split(".").slice(0, 2).map((n3) => Number.parseInt(n3, 10));
312642
- var wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5);
312643
- var normalizeFilter = (filter4) => {
312644
- if (filter4 === void 0) return;
312645
- if (typeof filter4 === "function") return filter4;
312646
- if (typeof filter4 === "string") {
312647
- const glob2 = picomatch(filter4.trim());
312648
- return (entry) => glob2(entry.basename);
312649
- }
312650
- if (Array.isArray(filter4)) {
312651
- const positive = [];
312652
- const negative = [];
312653
- for (const item of filter4) {
312654
- const trimmed = item.trim();
312655
- if (trimmed.charAt(0) === BANG) {
312656
- negative.push(picomatch(trimmed.slice(1)));
312657
- } else {
312658
- positive.push(picomatch(trimmed));
312659
- }
312660
- }
312661
- if (negative.length > 0) {
312662
- if (positive.length > 0) {
312663
- return (entry) => positive.some((f3) => f3(entry.basename)) && !negative.some((f3) => f3(entry.basename));
312664
- }
312665
- return (entry) => !negative.some((f3) => f3(entry.basename));
312666
- }
312667
- return (entry) => positive.some((f3) => f3(entry.basename));
312668
- }
312669
- };
312670
- var ReaddirpStream = class _ReaddirpStream extends Readable {
312671
- static get defaultOptions() {
312672
- return {
312673
- root: ".",
312674
- /* eslint-disable no-unused-vars */
312675
- fileFilter: (path34) => true,
312676
- directoryFilter: (path34) => true,
312677
- /* eslint-enable no-unused-vars */
312678
- type: FILE_TYPE,
312679
- lstat: false,
312680
- depth: 2147483648,
312681
- alwaysStat: false
312682
- };
312683
- }
312684
- constructor(options = {}) {
312685
- super({
312686
- objectMode: true,
312687
- autoDestroy: true,
312688
- highWaterMark: options.highWaterMark || 4096
312689
- });
312690
- const opts = { ..._ReaddirpStream.defaultOptions, ...options };
312691
- const { root, type } = opts;
312692
- this._fileFilter = normalizeFilter(opts.fileFilter);
312693
- this._directoryFilter = normalizeFilter(opts.directoryFilter);
312694
- const statMethod = opts.lstat ? lstat2 : stat5;
312695
- if (wantBigintFsStats) {
312696
- this._stat = (path34) => statMethod(path34, { bigint: true });
312697
- } else {
312698
- this._stat = statMethod;
312699
- }
312700
- this._maxDepth = opts.depth;
312701
- this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
312702
- this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
312703
- this._wantsEverything = type === EVERYTHING_TYPE;
312704
- this._root = sysPath.resolve(root);
312705
- this._isDirent = "Dirent" in fs38 && !opts.alwaysStat;
312706
- this._statsProp = this._isDirent ? "dirent" : "stats";
312707
- this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
312708
- this.parents = [this._exploreDir(root, 1)];
312709
- this.reading = false;
312710
- this.parent = void 0;
312711
- }
312712
- async _read(batch) {
312713
- if (this.reading) return;
312714
- this.reading = true;
312715
- try {
312716
- while (!this.destroyed && batch > 0) {
312717
- const { path: path34, depth, files = [] } = this.parent || {};
312718
- if (files.length > 0) {
312719
- const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path34));
312720
- for (const entry of await Promise.all(slice)) {
312721
- if (this.destroyed) return;
312722
- const entryType = await this._getEntryType(entry);
312723
- if (entryType === "directory" && this._directoryFilter(entry)) {
312724
- if (depth <= this._maxDepth) {
312725
- this.parents.push(this._exploreDir(entry.fullPath, depth + 1));
312726
- }
312727
- if (this._wantsDir) {
312728
- this.push(entry);
312729
- batch--;
312730
- }
312731
- } else if ((entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry)) {
312732
- if (this._wantsFile) {
312733
- this.push(entry);
312734
- batch--;
312735
- }
312736
- }
312737
- }
312738
- } else {
312739
- const parent = this.parents.pop();
312740
- if (!parent) {
312741
- this.push(null);
312742
- break;
312743
- }
312744
- this.parent = await parent;
312745
- if (this.destroyed) return;
312746
- }
312747
- }
312748
- } catch (error5) {
312749
- this.destroy(error5);
312750
- } finally {
312751
- this.reading = false;
312752
- }
312753
- }
312754
- async _exploreDir(path34, depth) {
312755
- let files;
312756
- try {
312757
- files = await readdir3(path34, this._rdOptions);
312758
- } catch (error5) {
312759
- this._onError(error5);
312760
- }
312761
- return { files, depth, path: path34 };
312762
- }
312763
- async _formatEntry(dirent, path34) {
312764
- let entry;
312765
- try {
312766
- const basename3 = this._isDirent ? dirent.name : dirent;
312767
- const fullPath = sysPath.resolve(sysPath.join(path34, basename3));
312768
- entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename: basename3 };
312769
- entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
312770
- } catch (err) {
312771
- this._onError(err);
312772
- }
312773
- return entry;
312774
- }
312775
- _onError(err) {
312776
- if (isNormalFlowError(err) && !this.destroyed) {
312777
- this.emit("warn", err);
312778
- } else {
312779
- this.destroy(err);
312780
- }
312781
- }
312782
- async _getEntryType(entry) {
312783
- const stats = entry && entry[this._statsProp];
312784
- if (!stats) {
312785
- return;
312786
- }
312787
- if (stats.isFile()) {
312788
- return "file";
312789
- }
312790
- if (stats.isDirectory()) {
312791
- return "directory";
312792
- }
312793
- if (stats && stats.isSymbolicLink()) {
312794
- const full = entry.fullPath;
312795
- try {
312796
- const entryRealPath = await realpath2(full);
312797
- const entryRealPathStats = await lstat2(entryRealPath);
312798
- if (entryRealPathStats.isFile()) {
312799
- return "file";
312800
- }
312801
- if (entryRealPathStats.isDirectory()) {
312802
- const len = entryRealPath.length;
312803
- if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
312804
- const recursiveError = new Error(
312805
- `Circular symlink detected: "${full}" points to "${entryRealPath}"`
312806
- );
312807
- recursiveError.code = RECURSIVE_ERROR_CODE;
312808
- return this._onError(recursiveError);
312809
- }
312810
- return "directory";
312811
- }
312812
- } catch (error5) {
312813
- this._onError(error5);
312814
- }
312815
- }
312816
- }
312817
- _includeAsFile(entry) {
312818
- const stats = entry && entry[this._statsProp];
312819
- return stats && this._wantsEverything && !stats.isDirectory();
312820
- }
312821
- };
312822
- var readdirp = (root, options = {}) => {
312823
- let type = options.entryType || options.type;
312824
- if (type === "both") type = FILE_DIR_TYPE;
312825
- if (type) options.type = type;
312826
- if (!root) {
312827
- throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
312828
- } else if (typeof root !== "string") {
312829
- throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
312830
- } else if (type && !ALL_TYPES.includes(type)) {
312831
- throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
312832
- }
312833
- options.root = root;
312834
- return new ReaddirpStream(options);
312835
- };
312836
- var readdirpPromise = (root, options = {}) => {
312837
- return new Promise((resolve12, reject) => {
312838
- const files = [];
312839
- readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve12(files)).on("error", (error5) => reject(error5));
312840
- });
312841
- };
312842
- readdirp.promise = readdirpPromise;
312843
- readdirp.ReaddirpStream = ReaddirpStream;
312844
- readdirp.default = readdirp;
312845
- module2.exports = readdirp;
315095
+ module2.exports = require_picomatch3();
312846
315096
  }
312847
315097
  });
312848
315098
 
@@ -312851,7 +315101,7 @@ var require_anymatch = __commonJS({
312851
315101
  "../../node_modules/anymatch/index.js"(exports2, module2) {
312852
315102
  "use strict";
312853
315103
  Object.defineProperty(exports2, "__esModule", { value: true });
312854
- var picomatch = require_picomatch2();
315104
+ var picomatch = require_picomatch4();
312855
315105
  var normalizePath = require_normalize_path();
312856
315106
  var BANG = "!";
312857
315107
  var DEFAULT_OPTIONS = { returnIndex: false };
@@ -313091,7 +315341,7 @@ var require_glob_parent = __commonJS({
313091
315341
  });
313092
315342
 
313093
315343
  // ../../node_modules/braces/lib/utils.js
313094
- var require_utils8 = __commonJS({
315344
+ var require_utils9 = __commonJS({
313095
315345
  "../../node_modules/braces/lib/utils.js"(exports2) {
313096
315346
  "use strict";
313097
315347
  exports2.isInteger = (num) => {
@@ -313176,7 +315426,7 @@ var require_utils8 = __commonJS({
313176
315426
  var require_stringify = __commonJS({
313177
315427
  "../../node_modules/braces/lib/stringify.js"(exports2, module2) {
313178
315428
  "use strict";
313179
- var utils = require_utils8();
315429
+ var utils = require_utils9();
313180
315430
  module2.exports = (ast, options = {}) => {
313181
315431
  const stringify3 = (node, parent = {}) => {
313182
315432
  const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
@@ -313629,7 +315879,7 @@ var require_compile = __commonJS({
313629
315879
  "../../node_modules/braces/lib/compile.js"(exports2, module2) {
313630
315880
  "use strict";
313631
315881
  var fill = require_fill_range();
313632
- var utils = require_utils8();
315882
+ var utils = require_utils9();
313633
315883
  var compile = (ast, options = {}) => {
313634
315884
  const walk = (node, parent = {}) => {
313635
315885
  const invalidBlock = utils.isInvalidBrace(parent);
@@ -313682,7 +315932,7 @@ var require_expand = __commonJS({
313682
315932
  "use strict";
313683
315933
  var fill = require_fill_range();
313684
315934
  var stringify3 = require_stringify();
313685
- var utils = require_utils8();
315935
+ var utils = require_utils9();
313686
315936
  var append = (queue = "", stash = "", enclose = false) => {
313687
315937
  const result3 = [];
313688
315938
  queue = [].concat(queue);
@@ -313771,7 +316021,7 @@ var require_expand = __commonJS({
313771
316021
  });
313772
316022
 
313773
316023
  // ../../node_modules/braces/lib/constants.js
313774
- var require_constants6 = __commonJS({
316024
+ var require_constants7 = __commonJS({
313775
316025
  "../../node_modules/braces/lib/constants.js"(exports2, module2) {
313776
316026
  "use strict";
313777
316027
  module2.exports = {
@@ -313872,7 +316122,7 @@ var require_constants6 = __commonJS({
313872
316122
  });
313873
316123
 
313874
316124
  // ../../node_modules/braces/lib/parse.js
313875
- var require_parse5 = __commonJS({
316125
+ var require_parse6 = __commonJS({
313876
316126
  "../../node_modules/braces/lib/parse.js"(exports2, module2) {
313877
316127
  "use strict";
313878
316128
  var stringify3 = require_stringify();
@@ -313904,7 +316154,7 @@ var require_parse5 = __commonJS({
313904
316154
  /* ' */
313905
316155
  CHAR_NO_BREAK_SPACE,
313906
316156
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
313907
- } = require_constants6();
316157
+ } = require_constants7();
313908
316158
  var parse3 = (input, options = {}) => {
313909
316159
  if (typeof input !== "string") {
313910
316160
  throw new TypeError("Expected a string");
@@ -314116,7 +316366,7 @@ var require_braces = __commonJS({
314116
316366
  var stringify3 = require_stringify();
314117
316367
  var compile = require_compile();
314118
316368
  var expand2 = require_expand();
314119
- var parse3 = require_parse5();
316369
+ var parse3 = require_parse6();
314120
316370
  var braces = (input, options = {}) => {
314121
316371
  let output = [];
314122
316372
  if (Array.isArray(input)) {
@@ -314460,7 +316710,7 @@ var require_is_binary_path = __commonJS({
314460
316710
  });
314461
316711
 
314462
316712
  // ../../node_modules/chokidar/lib/constants.js
314463
- var require_constants7 = __commonJS({
316713
+ var require_constants8 = __commonJS({
314464
316714
  "../../node_modules/chokidar/lib/constants.js"(exports2) {
314465
316715
  "use strict";
314466
316716
  var { sep: sep5 } = require("path");
@@ -314548,7 +316798,7 @@ var require_nodefs_handler = __commonJS({
314548
316798
  STR_END,
314549
316799
  BRACE_START,
314550
316800
  STAR
314551
- } = require_constants7();
316801
+ } = require_constants8();
314552
316802
  var THROTTLE_MODE_WATCH = "watch";
314553
316803
  var open = promisify2(fs38.open);
314554
316804
  var stat5 = promisify2(fs38.stat);
@@ -315061,7 +317311,7 @@ var require_fsevents_handler = __commonJS({
315061
317311
  FUNCTION_TYPE,
315062
317312
  EMPTY_FN,
315063
317313
  IDENTITY_FN
315064
- } = require_constants7();
317314
+ } = require_constants8();
315065
317315
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
315066
317316
  var stat5 = promisify2(fs38.stat);
315067
317317
  var lstat2 = promisify2(fs38.lstat);
@@ -315459,7 +317709,7 @@ var require_chokidar = __commonJS({
315459
317709
  isWindows,
315460
317710
  isMacos,
315461
317711
  isIBMi
315462
- } = require_constants7();
317712
+ } = require_constants8();
315463
317713
  var stat5 = promisify2(fs38.stat);
315464
317714
  var readdir3 = promisify2(fs38.readdir);
315465
317715
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
@@ -324141,9 +326391,6 @@ async function execProgram(aws, ioHelper, config) {
324141
326391
  };
324142
326392
  await debugFn((0, import_util66.format)("context:", context));
324143
326393
  const env2 = noUndefined3({
324144
- // Need to start with full env of `writeContextToEnv` will not be able to do the size
324145
- // calculation correctly.
324146
- ...process.env,
324147
326394
  // Versioning, outdir, default account and region
324148
326395
  ...await prepareDefaultEnvironment(aws, debugFn),
324149
326396
  // Environment variables derived from settings
@@ -324181,7 +326428,7 @@ async function execProgram(aws, ioHelper, config) {
324181
326428
  env2[cxapi9.CLI_ASM_VERSION_ENV] = cxschema7.Manifest.version();
324182
326429
  env2[cxapi9.CLI_VERSION_ENV] = versionNumber2();
324183
326430
  await debugFn((0, import_util66.format)("env:", env2));
324184
- const cleanupTemp = writeContextToEnv(env2, context);
326431
+ const cleanupTemp = writeContextToEnv(env2, context, "add-process-env-later");
324185
326432
  try {
324186
326433
  await exec4(commandLine.join(" "));
324187
326434
  const assembly = createAssembly(outdir);
@@ -324564,9 +326811,9 @@ var init_init_hooks = __esm({
324564
326811
  }
324565
326812
  });
324566
326813
 
324567
- // node_modules/camelcase/index.js
326814
+ // ../../node_modules/camelcase/index.js
324568
326815
  var require_camelcase = __commonJS({
324569
- "node_modules/camelcase/index.js"(exports2, module2) {
326816
+ "../../node_modules/camelcase/index.js"(exports2, module2) {
324570
326817
  "use strict";
324571
326818
  var UPPERCASE = /[\p{Lu}]/u;
324572
326819
  var LOWERCASE = /[\p{Ll}]/u;
@@ -334941,7 +337188,7 @@ var require_dist5 = __commonJS({
334941
337188
  });
334942
337189
 
334943
337190
  // ../../node_modules/smart-buffer/build/utils.js
334944
- var require_utils9 = __commonJS({
337191
+ var require_utils10 = __commonJS({
334945
337192
  "../../node_modules/smart-buffer/build/utils.js"(exports2) {
334946
337193
  "use strict";
334947
337194
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -335014,7 +337261,7 @@ var require_smartbuffer = __commonJS({
335014
337261
  "../../node_modules/smart-buffer/build/smartbuffer.js"(exports2) {
335015
337262
  "use strict";
335016
337263
  Object.defineProperty(exports2, "__esModule", { value: true });
335017
- var utils_1 = require_utils9();
337264
+ var utils_1 = require_utils10();
335018
337265
  var DEFAULT_SMARTBUFFER_SIZE = 4096;
335019
337266
  var DEFAULT_SMARTBUFFER_ENCODING = "utf8";
335020
337267
  var SmartBuffer = class _SmartBuffer {
@@ -336168,7 +338415,7 @@ var require_smartbuffer = __commonJS({
336168
338415
  });
336169
338416
 
336170
338417
  // ../../node_modules/socks/build/common/constants.js
336171
- var require_constants8 = __commonJS({
338418
+ var require_constants9 = __commonJS({
336172
338419
  "../../node_modules/socks/build/common/constants.js"(exports2) {
336173
338420
  "use strict";
336174
338421
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -336339,7 +338586,7 @@ var require_common2 = __commonJS({
336339
338586
  });
336340
338587
 
336341
338588
  // ../../node_modules/ip-address/dist/v4/constants.js
336342
- var require_constants9 = __commonJS({
338589
+ var require_constants10 = __commonJS({
336343
338590
  "../../node_modules/ip-address/dist/v4/constants.js"(exports2) {
336344
338591
  "use strict";
336345
338592
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -337878,7 +340125,7 @@ var require_ipv4 = __commonJS({
337878
340125
  Object.defineProperty(exports2, "__esModule", { value: true });
337879
340126
  exports2.Address4 = void 0;
337880
340127
  var common = __importStar2(require_common2());
337881
- var constants3 = __importStar2(require_constants9());
340128
+ var constants3 = __importStar2(require_constants10());
337882
340129
  var address_error_1 = require_address_error();
337883
340130
  var jsbn_1 = require_jsbn();
337884
340131
  var sprintf_js_1 = require_sprintf();
@@ -338159,7 +340406,7 @@ var require_ipv4 = __commonJS({
338159
340406
  });
338160
340407
 
338161
340408
  // ../../node_modules/ip-address/dist/v6/constants.js
338162
- var require_constants10 = __commonJS({
340409
+ var require_constants11 = __commonJS({
338163
340410
  "../../node_modules/ip-address/dist/v6/constants.js"(exports2) {
338164
340411
  "use strict";
338165
340412
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -338282,7 +340529,7 @@ var require_regular_expressions = __commonJS({
338282
340529
  };
338283
340530
  Object.defineProperty(exports2, "__esModule", { value: true });
338284
340531
  exports2.possibleElisions = exports2.simpleRegularExpression = exports2.ADDRESS_BOUNDARY = exports2.padGroup = exports2.groupPossibilities = void 0;
338285
- var v6 = __importStar2(require_constants10());
340532
+ var v6 = __importStar2(require_constants11());
338286
340533
  var sprintf_js_1 = require_sprintf();
338287
340534
  function groupPossibilities(possibilities) {
338288
340535
  return (0, sprintf_js_1.sprintf)("(%s)", possibilities.join("|"));
@@ -338376,8 +340623,8 @@ var require_ipv6 = __commonJS({
338376
340623
  Object.defineProperty(exports2, "__esModule", { value: true });
338377
340624
  exports2.Address6 = void 0;
338378
340625
  var common = __importStar2(require_common2());
338379
- var constants4 = __importStar2(require_constants9());
338380
- var constants6 = __importStar2(require_constants10());
340626
+ var constants4 = __importStar2(require_constants10());
340627
+ var constants6 = __importStar2(require_constants11());
338381
340628
  var helpers = __importStar2(require_helpers3());
338382
340629
  var ipv4_1 = require_ipv4();
338383
340630
  var regular_expressions_1 = require_regular_expressions();
@@ -339309,7 +341556,7 @@ var require_helpers4 = __commonJS({
339309
341556
  Object.defineProperty(exports2, "__esModule", { value: true });
339310
341557
  exports2.ipToBuffer = exports2.int32ToIpv4 = exports2.ipv4ToInt32 = exports2.validateSocksClientChainOptions = exports2.validateSocksClientOptions = void 0;
339311
341558
  var util_1 = require_util11();
339312
- var constants_1 = require_constants8();
341559
+ var constants_1 = require_constants9();
339313
341560
  var stream3 = require("stream");
339314
341561
  var ip_address_1 = require_ip_address();
339315
341562
  var net = require("net");
@@ -339493,7 +341740,7 @@ var require_socksclient = __commonJS({
339493
341740
  var events_1 = require("events");
339494
341741
  var net = require("net");
339495
341742
  var smart_buffer_1 = require_smartbuffer();
339496
- var constants_1 = require_constants8();
341743
+ var constants_1 = require_constants9();
339497
341744
  var helpers_1 = require_helpers4();
339498
341745
  var receivebuffer_1 = require_receivebuffer();
339499
341746
  var util_1 = require_util11();
@@ -343780,7 +346027,7 @@ var require_keyword = __commonJS({
343780
346027
  });
343781
346028
 
343782
346029
  // ../../node_modules/esutils/lib/utils.js
343783
- var require_utils10 = __commonJS({
346030
+ var require_utils11 = __commonJS({
343784
346031
  "../../node_modules/esutils/lib/utils.js"(exports2) {
343785
346032
  (function() {
343786
346033
  "use strict";
@@ -345614,7 +347861,7 @@ var require_escodegen = __commonJS({
345614
347861
  "use strict";
345615
347862
  var Syntax, Precedence, BinaryPrecedence, SourceNode, estraverse, esutils, base, indent, json, renumber, hexadecimal, quotes, escapeless, newline, space, parentheses, semicolons, safeConcatenation, directive, extra, parse3, sourceMap, sourceCode, preserveBlankLines, FORMAT_MINIFY, FORMAT_DEFAULTS;
345616
347863
  estraverse = require_estraverse();
345617
- esutils = require_utils10();
347864
+ esutils = require_utils11();
345618
347865
  Syntax = estraverse.Syntax;
345619
347866
  function isExpression(node) {
345620
347867
  return CodeGenerator.Expression.hasOwnProperty(node.type);