@mavogel/cdk-vscode-server 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/.claude/hooks/file_checker.sh +0 -0
  2. package/.jsii +96 -24
  3. package/API.md +56 -0
  4. package/CLAUDE.md +84 -118
  5. package/README.md +48 -0
  6. package/assets/installer/installer.lambda/index.js +14 -2
  7. package/examples/custom-domain/main.ts +49 -0
  8. package/integ-tests/integ.al2023.ts.snapshot/IntegSetupVSCodeOnAl2023DefaultTestDeployAssert74D8F645.assets.json +7 -6
  9. package/integ-tests/integ.al2023.ts.snapshot/IntegSetupVSCodeOnAl2023DefaultTestDeployAssert74D8F645.template.json +6 -6
  10. package/integ-tests/integ.al2023.ts.snapshot/IntegTestStackAl2023.assets.json +20 -12
  11. package/integ-tests/integ.al2023.ts.snapshot/IntegTestStackAl2023.template.json +36 -152
  12. package/integ-tests/integ.al2023.ts.snapshot/{asset.23732f3d1982f7fb0da3bd6638a8107337bb767fea165b45eae12000a1dd67ce → asset.0ad50fc42afd768c3d0bfdd4701e43284fb077a25f19eea1e8c51a5ca36ebfe4}/index.js +988 -1165
  13. package/integ-tests/{integ.ubuntu.ts.snapshot/asset.a9865c9d36c7aa999e28cb7926e7a3a8e0b6d0854b25131a172024c5777442fa.lambda → integ.al2023.ts.snapshot/asset.33da23274e25bd9f43638c5d83dad26e3931cbe78d462ffd9a9f565e948b4f5f.lambda}/index.js +14 -2
  14. package/integ-tests/{integ.ubuntu.ts.snapshot/asset.f692c9f68e4daba2abc99103efd3518bced1e9d7a2a89847b9b5d5473c64f1bd.bundle → integ.al2023.ts.snapshot/asset.530055f7515b3f0a47900f5df37e729ba40ca977b2d07b952bdefa2b8f883f42.bundle}/index.js +296 -191
  15. package/integ-tests/{integ.ubuntu.ts.snapshot/asset.ce2f3595a340d6c519a65888ef97e3b9b64f053f83608e32cc28162e22d7d99a → integ.al2023.ts.snapshot/asset.9d043014be736e8162bcc7ec5590cc6d2ff24fd0d9c73a5c5d595151c5fdad00}/index.js +1 -1
  16. package/integ-tests/integ.al2023.ts.snapshot/cdk.out +1 -1
  17. package/integ-tests/integ.al2023.ts.snapshot/integ.json +4 -3
  18. package/integ-tests/integ.al2023.ts.snapshot/manifest.json +956 -7
  19. package/integ-tests/integ.al2023.ts.snapshot/tree.json +1 -3228
  20. package/integ-tests/integ.custom-domain.ts +87 -0
  21. package/integ-tests/integ.custom-domain.ts.snapshot/IntegSetupVSCodeOnCustomDomainDefaultTestDeployAssert6982D514.assets.json +33 -0
  22. package/integ-tests/integ.custom-domain.ts.snapshot/IntegSetupVSCodeOnCustomDomainDefaultTestDeployAssert6982D514.template.json +333 -0
  23. package/integ-tests/integ.custom-domain.ts.snapshot/IntegTestStackCustomDomain.assets.json +132 -0
  24. package/integ-tests/integ.custom-domain.ts.snapshot/IntegTestStackCustomDomain.template.json +2862 -0
  25. package/integ-tests/{integ.ubuntu.ts.snapshot/asset.23732f3d1982f7fb0da3bd6638a8107337bb767fea165b45eae12000a1dd67ce → integ.custom-domain.ts.snapshot/asset.0ad50fc42afd768c3d0bfdd4701e43284fb077a25f19eea1e8c51a5ca36ebfe4}/index.js +988 -1165
  26. package/integ-tests/integ.custom-domain.ts.snapshot/asset.2819175352ad1ce0dae768e83fc328fb70fb5f10b4a8ff0ccbcb791f02b0716d/index.js +1 -0
  27. package/integ-tests/{integ.al2023.ts.snapshot/asset.a9865c9d36c7aa999e28cb7926e7a3a8e0b6d0854b25131a172024c5777442fa.lambda → integ.custom-domain.ts.snapshot/asset.33da23274e25bd9f43638c5d83dad26e3931cbe78d462ffd9a9f565e948b4f5f.lambda}/index.js +14 -2
  28. package/integ-tests/{integ.al2023.ts.snapshot/asset.f692c9f68e4daba2abc99103efd3518bced1e9d7a2a89847b9b5d5473c64f1bd.bundle → integ.custom-domain.ts.snapshot/asset.530055f7515b3f0a47900f5df37e729ba40ca977b2d07b952bdefa2b8f883f42.bundle}/index.js +296 -191
  29. package/integ-tests/integ.custom-domain.ts.snapshot/asset.781ab0ab74634cdaf61539ab208ab777829ef07097ac21f95b9e15a3b1eedc1b.lambda/index.js +57 -0
  30. package/integ-tests/integ.custom-domain.ts.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/__entrypoint__.js +1 -0
  31. package/integ-tests/integ.custom-domain.ts.snapshot/asset.7fa1e366ee8a9ded01fc355f704cff92bfd179574e6f9cfee800a3541df1b200/index.js +1 -0
  32. package/integ-tests/{integ.al2023.ts.snapshot/asset.ce2f3595a340d6c519a65888ef97e3b9b64f053f83608e32cc28162e22d7d99a → integ.custom-domain.ts.snapshot/asset.9d043014be736e8162bcc7ec5590cc6d2ff24fd0d9c73a5c5d595151c5fdad00}/index.js +1 -1
  33. package/integ-tests/integ.custom-domain.ts.snapshot/asset.b073cebcf4d61fb152a30f5a5e57a94df7f980a549fdf1a79a0b18c5750522d8/index.js +1 -0
  34. package/integ-tests/integ.custom-domain.ts.snapshot/asset.bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca/cfn-response.js +1 -0
  35. package/integ-tests/integ.custom-domain.ts.snapshot/asset.bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca/consts.js +1 -0
  36. package/integ-tests/integ.custom-domain.ts.snapshot/asset.bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca/framework.js +3 -0
  37. package/integ-tests/integ.custom-domain.ts.snapshot/asset.bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca/outbound.js +1 -0
  38. package/integ-tests/integ.custom-domain.ts.snapshot/asset.bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca/util.js +1 -0
  39. package/integ-tests/integ.custom-domain.ts.snapshot/integ.json +23 -0
  40. package/integ-tests/integ.custom-domain.ts.snapshot/manifest.json +1653 -0
  41. package/integ-tests/integ.custom-domain.ts.snapshot/tree.json +1 -0
  42. package/integ-tests/integ.ubuntu.ts.snapshot/IntegSetupVSCodeOnUbuntuDefaultTestDeployAssertFF8DF2C5.assets.json +7 -6
  43. package/integ-tests/integ.ubuntu.ts.snapshot/IntegSetupVSCodeOnUbuntuDefaultTestDeployAssertFF8DF2C5.template.json +6 -6
  44. package/integ-tests/integ.ubuntu.ts.snapshot/IntegTestStackUbuntu22.assets.json +20 -12
  45. package/integ-tests/integ.ubuntu.ts.snapshot/IntegTestStackUbuntu22.template.json +36 -72
  46. package/integ-tests/integ.ubuntu.ts.snapshot/asset.0ad50fc42afd768c3d0bfdd4701e43284fb077a25f19eea1e8c51a5ca36ebfe4/index.js +5992 -0
  47. package/integ-tests/integ.ubuntu.ts.snapshot/asset.33da23274e25bd9f43638c5d83dad26e3931cbe78d462ffd9a9f565e948b4f5f.lambda/index.js +143 -0
  48. package/integ-tests/integ.ubuntu.ts.snapshot/asset.530055f7515b3f0a47900f5df37e729ba40ca977b2d07b952bdefa2b8f883f42.bundle/index.js +30676 -0
  49. package/integ-tests/integ.ubuntu.ts.snapshot/asset.9d043014be736e8162bcc7ec5590cc6d2ff24fd0d9c73a5c5d595151c5fdad00/index.js +1 -0
  50. package/integ-tests/integ.ubuntu.ts.snapshot/cdk.out +1 -1
  51. package/integ-tests/integ.ubuntu.ts.snapshot/integ.json +3 -2
  52. package/integ-tests/integ.ubuntu.ts.snapshot/manifest.json +956 -7
  53. package/integ-tests/integ.ubuntu.ts.snapshot/tree.json +1 -3070
  54. package/lib/installer/installer.d.ts +7 -0
  55. package/lib/installer/installer.js +15 -7
  56. package/lib/installer/installer.lambda.js +20 -3
  57. package/lib/vscode-server.d.ts +33 -0
  58. package/lib/vscode-server.js +165 -5
  59. package/mavogelcdkvscodeserver/go.mod +1 -1
  60. package/mavogelcdkvscodeserver/jsii/jsii.go +2 -2
  61. package/mavogelcdkvscodeserver/version +1 -1
  62. package/package.json +4 -4
@@ -316,6 +316,34 @@ ${indents.join("")}`));
316
316
  }
317
317
  });
318
318
 
319
+ // ../../aws-cdk-lib/assertions/lib/private/error.ts
320
+ var ASSERTION_ERROR_SYMBOL, AssertionError;
321
+ var init_error = __esm({
322
+ "../../aws-cdk-lib/assertions/lib/private/error.ts"() {
323
+ "use strict";
324
+ ASSERTION_ERROR_SYMBOL = Symbol.for("@aws-cdk/assertions.AssertionError");
325
+ AssertionError = class _AssertionError extends Error {
326
+ #time;
327
+ /**
328
+ * The time the error was thrown.
329
+ */
330
+ get time() {
331
+ return this.#time;
332
+ }
333
+ get type() {
334
+ return "assertion";
335
+ }
336
+ constructor(msg) {
337
+ super(msg);
338
+ Object.setPrototypeOf(this, _AssertionError.prototype);
339
+ Object.defineProperty(this, ASSERTION_ERROR_SYMBOL, { value: true });
340
+ this.name = new.target.name;
341
+ this.#time = (/* @__PURE__ */ new Date()).toISOString();
342
+ }
343
+ };
344
+ }
345
+ });
346
+
319
347
  // ../../aws-cdk-lib/assertions/lib/private/matchers/absent.ts
320
348
  var AbsentMatch;
321
349
  var init_absent = __esm({
@@ -416,6 +444,7 @@ var init_match = __esm({
416
444
  "../../aws-cdk-lib/assertions/lib/match.ts"() {
417
445
  "use strict";
418
446
  init_matcher();
447
+ init_error();
419
448
  init_absent();
420
449
  init_sorting();
421
450
  init_sparse_matrix();
@@ -500,7 +529,7 @@ var init_match = __esm({
500
529
  this.pattern = pattern;
501
530
  this.partialObjects = options.partialObjects ?? false;
502
531
  if (Matcher.isMatcher(this.pattern)) {
503
- throw new Error("LiteralMatch cannot directly contain another matcher. Remove the top-level matcher or nest it more deeply.");
532
+ throw new AssertionError("LiteralMatch cannot directly contain another matcher. Remove the top-level matcher or nest it more deeply.");
504
533
  }
505
534
  }
506
535
  test(actual) {
@@ -582,7 +611,7 @@ var init_match = __esm({
582
611
  const matcher = Matcher.isMatcher(patternElement) ? patternElement : new LiteralMatch(this.name, patternElement, { partialObjects: this.partialObjects });
583
612
  const matcherName = matcher.name;
584
613
  if (matcherName == "absent" || matcherName == "anyValue") {
585
- throw new Error(`The Matcher ${matcherName}() cannot be nested within arrayWith()`);
614
+ throw new AssertionError(`The Matcher ${matcherName}() cannot be nested within arrayWith()`);
586
615
  }
587
616
  const innerResult = matcher.test(actual[actualIdx]);
588
617
  matches.set(patternIdx, actualIdx, innerResult);
@@ -3302,13 +3331,17 @@ var require_dist_cjs19 = __commonJS({
3302
3331
  }
3303
3332
  return transformedHeaders;
3304
3333
  }, "getTransformedHeaders");
3334
+ var timing = {
3335
+ setTimeout: (cb, ms) => setTimeout(cb, ms),
3336
+ clearTimeout: (timeoutId) => clearTimeout(timeoutId)
3337
+ };
3305
3338
  var DEFER_EVENT_LISTENER_TIME = 1e3;
3306
3339
  var setConnectionTimeout = /* @__PURE__ */ __name((request2, reject, timeoutInMs = 0) => {
3307
3340
  if (!timeoutInMs) {
3308
3341
  return -1;
3309
3342
  }
3310
3343
  const registerTimeout = /* @__PURE__ */ __name((offset) => {
3311
- const timeoutId = setTimeout(() => {
3344
+ const timeoutId = timing.setTimeout(() => {
3312
3345
  request2.destroy();
3313
3346
  reject(
3314
3347
  Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), {
@@ -3319,10 +3352,10 @@ var require_dist_cjs19 = __commonJS({
3319
3352
  const doWithSocket = /* @__PURE__ */ __name((socket) => {
3320
3353
  if (socket == null ? void 0 : socket.connecting) {
3321
3354
  socket.on("connect", () => {
3322
- clearTimeout(timeoutId);
3355
+ timing.clearTimeout(timeoutId);
3323
3356
  });
3324
3357
  } else {
3325
- clearTimeout(timeoutId);
3358
+ timing.clearTimeout(timeoutId);
3326
3359
  }
3327
3360
  }, "doWithSocket");
3328
3361
  if (request2.socket) {
@@ -3335,7 +3368,7 @@ var require_dist_cjs19 = __commonJS({
3335
3368
  registerTimeout(0);
3336
3369
  return 0;
3337
3370
  }
3338
- return setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
3371
+ return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
3339
3372
  }, "setConnectionTimeout");
3340
3373
  var DEFER_EVENT_LISTENER_TIME2 = 3e3;
3341
3374
  var setSocketKeepAlive = /* @__PURE__ */ __name((request2, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {
@@ -3355,21 +3388,27 @@ var require_dist_cjs19 = __commonJS({
3355
3388
  registerListener();
3356
3389
  return 0;
3357
3390
  }
3358
- return setTimeout(registerListener, deferTimeMs);
3391
+ return timing.setTimeout(registerListener, deferTimeMs);
3359
3392
  }, "setSocketKeepAlive");
3360
3393
  var DEFER_EVENT_LISTENER_TIME3 = 3e3;
3361
3394
  var setSocketTimeout = /* @__PURE__ */ __name((request2, reject, timeoutInMs = 0) => {
3362
3395
  const registerTimeout = /* @__PURE__ */ __name((offset) => {
3363
- request2.setTimeout(timeoutInMs - offset, () => {
3396
+ const timeout = timeoutInMs - offset;
3397
+ const onTimeout2 = /* @__PURE__ */ __name(() => {
3364
3398
  request2.destroy();
3365
3399
  reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" }));
3366
- });
3400
+ }, "onTimeout");
3401
+ if (request2.socket) {
3402
+ request2.socket.setTimeout(timeout, onTimeout2);
3403
+ } else {
3404
+ request2.setTimeout(timeout, onTimeout2);
3405
+ }
3367
3406
  }, "registerTimeout");
3368
3407
  if (0 < timeoutInMs && timeoutInMs < 6e3) {
3369
3408
  registerTimeout(0);
3370
3409
  return 0;
3371
3410
  }
3372
- return setTimeout(
3411
+ return timing.setTimeout(
3373
3412
  registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3),
3374
3413
  DEFER_EVENT_LISTENER_TIME3
3375
3414
  );
@@ -3380,26 +3419,29 @@ var require_dist_cjs19 = __commonJS({
3380
3419
  const headers = request2.headers ?? {};
3381
3420
  const expect = headers["Expect"] || headers["expect"];
3382
3421
  let timeoutId = -1;
3383
- let hasError = false;
3422
+ let sendBody = true;
3384
3423
  if (expect === "100-continue") {
3385
- await Promise.race([
3424
+ sendBody = await Promise.race([
3386
3425
  new Promise((resolve) => {
3387
- timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
3426
+ timeoutId = Number(timing.setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
3388
3427
  }),
3389
3428
  new Promise((resolve) => {
3390
3429
  httpRequest.on("continue", () => {
3391
- clearTimeout(timeoutId);
3392
- resolve();
3430
+ timing.clearTimeout(timeoutId);
3431
+ resolve(true);
3432
+ });
3433
+ httpRequest.on("response", () => {
3434
+ timing.clearTimeout(timeoutId);
3435
+ resolve(false);
3393
3436
  });
3394
3437
  httpRequest.on("error", () => {
3395
- hasError = true;
3396
- clearTimeout(timeoutId);
3397
- resolve();
3438
+ timing.clearTimeout(timeoutId);
3439
+ resolve(false);
3398
3440
  });
3399
3441
  })
3400
3442
  ]);
3401
3443
  }
3402
- if (!hasError) {
3444
+ if (sendBody) {
3403
3445
  writeBody(httpRequest, request2.body);
3404
3446
  }
3405
3447
  }
@@ -3521,12 +3563,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
3521
3563
  const timeouts = [];
3522
3564
  const resolve = /* @__PURE__ */ __name(async (arg) => {
3523
3565
  await writeRequestBodyPromise;
3524
- timeouts.forEach(clearTimeout);
3566
+ timeouts.forEach(timing.clearTimeout);
3525
3567
  _resolve(arg);
3526
3568
  }, "resolve");
3527
3569
  const reject = /* @__PURE__ */ __name(async (arg) => {
3528
3570
  await writeRequestBodyPromise;
3529
- timeouts.forEach(clearTimeout);
3571
+ timeouts.forEach(timing.clearTimeout);
3530
3572
  _reject(arg);
3531
3573
  }, "reject");
3532
3574
  if (!this.config) {
@@ -3541,7 +3583,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
3541
3583
  const isSSL = request2.protocol === "https:";
3542
3584
  const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
3543
3585
  timeouts.push(
3544
- setTimeout(
3586
+ timing.setTimeout(
3545
3587
  () => {
3546
3588
  this.socketWarningTimestamp = _NodeHttpHandler2.checkSocketUsage(
3547
3589
  agent,
@@ -3627,7 +3669,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
3627
3669
  );
3628
3670
  }
3629
3671
  writeRequestBodyPromise = writeRequestBody(req, request2, this.config.requestTimeout).catch((e) => {
3630
- timeouts.forEach(clearTimeout);
3672
+ timeouts.forEach(timing.clearTimeout);
3631
3673
  return _reject(e);
3632
3674
  });
3633
3675
  });
@@ -3760,7 +3802,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
3760
3802
  }
3761
3803
  }
3762
3804
  setMaxConcurrentStreams(maxConcurrentStreams) {
3763
- if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
3805
+ if (maxConcurrentStreams && maxConcurrentStreams <= 0) {
3764
3806
  throw new RangeError("maxConcurrentStreams must be greater than zero.");
3765
3807
  }
3766
3808
  this.config.maxConcurrency = maxConcurrentStreams;
@@ -4030,6 +4072,10 @@ var require_dist_cjs20 = __commonJS({
4030
4072
  module2.exports = __toCommonJS2(src_exports);
4031
4073
  var import_protocol_http8 = require_dist_cjs2();
4032
4074
  var import_querystring_builder = require_dist_cjs18();
4075
+ function createRequest(url2, requestOptions) {
4076
+ return new Request(url2, requestOptions);
4077
+ }
4078
+ __name(createRequest, "createRequest");
4033
4079
  function requestTimeout(timeoutInMs = 0) {
4034
4080
  return new Promise((resolve, reject) => {
4035
4081
  if (timeoutInMs) {
@@ -4065,7 +4111,7 @@ var require_dist_cjs20 = __commonJS({
4065
4111
  }
4066
4112
  if (keepAliveSupport.supported === void 0) {
4067
4113
  keepAliveSupport.supported = Boolean(
4068
- typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]")
4114
+ typeof Request !== "undefined" && "keepalive" in createRequest("https://[::1]")
4069
4115
  );
4070
4116
  }
4071
4117
  }
@@ -4124,7 +4170,7 @@ var require_dist_cjs20 = __commonJS({
4124
4170
  }
4125
4171
  let removeSignalEventListener = /* @__PURE__ */ __name(() => {
4126
4172
  }, "removeSignalEventListener");
4127
- const fetchRequest = new Request(url2, requestOptions);
4173
+ const fetchRequest = createRequest(url2, requestOptions);
4128
4174
  const raceOfPromises = [
4129
4175
  fetch(fetchRequest).then((response) => {
4130
4176
  const fetchHeaders = response.headers;
@@ -4187,12 +4233,23 @@ var require_dist_cjs20 = __commonJS({
4187
4233
  };
4188
4234
  __name(_FetchHttpHandler, "FetchHttpHandler");
4189
4235
  var FetchHttpHandler = _FetchHttpHandler;
4236
+ var import_util_base64 = require_dist_cjs16();
4190
4237
  var streamCollector = /* @__PURE__ */ __name(async (stream) => {
4191
- if (typeof Blob === "function" && stream instanceof Blob) {
4192
- return new Uint8Array(await stream.arrayBuffer());
4238
+ var _a;
4239
+ if (typeof Blob === "function" && stream instanceof Blob || ((_a = stream.constructor) == null ? void 0 : _a.name) === "Blob") {
4240
+ if (Blob.prototype.arrayBuffer !== void 0) {
4241
+ return new Uint8Array(await stream.arrayBuffer());
4242
+ }
4243
+ return collectBlob(stream);
4193
4244
  }
4194
4245
  return collectStream(stream);
4195
4246
  }, "streamCollector");
4247
+ async function collectBlob(blob) {
4248
+ const base64 = await readToBase64(blob);
4249
+ const arrayBuffer = (0, import_util_base64.fromBase64)(base64);
4250
+ return new Uint8Array(arrayBuffer);
4251
+ }
4252
+ __name(collectBlob, "collectBlob");
4196
4253
  async function collectStream(stream) {
4197
4254
  const chunks = [];
4198
4255
  const reader = stream.getReader();
@@ -4215,6 +4272,24 @@ var require_dist_cjs20 = __commonJS({
4215
4272
  return collected;
4216
4273
  }
4217
4274
  __name(collectStream, "collectStream");
4275
+ function readToBase64(blob) {
4276
+ return new Promise((resolve, reject) => {
4277
+ const reader = new FileReader();
4278
+ reader.onloadend = () => {
4279
+ if (reader.readyState !== 2) {
4280
+ return reject(new Error("Reader aborted too early"));
4281
+ }
4282
+ const result = reader.result ?? "";
4283
+ const commaIndex = result.indexOf(",");
4284
+ const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
4285
+ resolve(result.substring(dataOffset));
4286
+ };
4287
+ reader.onabort = () => reject(new Error("Read aborted"));
4288
+ reader.onerror = () => reject(reader.error);
4289
+ reader.readAsDataURL(blob);
4290
+ });
4291
+ }
4292
+ __name(readToBase64, "readToBase64");
4218
4293
  }
4219
4294
  });
4220
4295
 
@@ -4287,12 +4362,17 @@ var require_stream_type_check = __commonJS({
4287
4362
  "../../../node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js"(exports2) {
4288
4363
  "use strict";
4289
4364
  Object.defineProperty(exports2, "__esModule", { value: true });
4290
- exports2.isReadableStream = void 0;
4365
+ exports2.isBlob = exports2.isReadableStream = void 0;
4291
4366
  var isReadableStream2 = (stream) => {
4292
4367
  var _a;
4293
4368
  return typeof ReadableStream === "function" && (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream);
4294
4369
  };
4295
4370
  exports2.isReadableStream = isReadableStream2;
4371
+ var isBlob2 = (blob) => {
4372
+ var _a;
4373
+ return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob);
4374
+ };
4375
+ exports2.isBlob = isBlob2;
4296
4376
  }
4297
4377
  });
4298
4378
 
@@ -4373,7 +4453,6 @@ var require_sdk_stream_mixin = __commonJS({
4373
4453
  var node_http_handler_1 = require_dist_cjs19();
4374
4454
  var util_buffer_from_1 = require_dist_cjs14();
4375
4455
  var stream_1 = require("stream");
4376
- var util_1 = require("util");
4377
4456
  var sdk_stream_mixin_browser_1 = require_sdk_stream_mixin_browser();
4378
4457
  var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
4379
4458
  var sdkStreamMixin2 = (stream) => {
@@ -4401,7 +4480,7 @@ var require_sdk_stream_mixin = __commonJS({
4401
4480
  if (encoding === void 0 || Buffer.isEncoding(encoding)) {
4402
4481
  return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
4403
4482
  } else {
4404
- const decoder2 = new util_1.TextDecoder(encoding);
4483
+ const decoder2 = new TextDecoder(encoding);
4405
4484
  return decoder2.decode(buf);
4406
4485
  }
4407
4486
  },
@@ -4451,7 +4530,7 @@ var require_splitStream = __commonJS({
4451
4530
  var splitStream_browser_1 = require_splitStream_browser();
4452
4531
  var stream_type_check_1 = require_stream_type_check();
4453
4532
  async function splitStream2(stream) {
4454
- if ((0, stream_type_check_1.isReadableStream)(stream)) {
4533
+ if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {
4455
4534
  return (0, splitStream_browser_1.splitStream)(stream);
4456
4535
  }
4457
4536
  const stream1 = new stream_1.PassThrough();
@@ -4800,6 +4879,26 @@ var init_extended_encode_uri_component = __esm({
4800
4879
  }
4801
4880
  });
4802
4881
 
4882
+ // ../../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js
4883
+ var resolvedPath2;
4884
+ var init_resolve_path = __esm({
4885
+ "../../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() {
4886
+ init_extended_encode_uri_component();
4887
+ resolvedPath2 = (resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
4888
+ if (input != null && input[memberName] !== void 0) {
4889
+ const labelValue = labelValueProvider();
4890
+ if (labelValue.length <= 0) {
4891
+ throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
4892
+ }
4893
+ resolvedPath3 = resolvedPath3.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue));
4894
+ } else {
4895
+ throw new Error("No value provided for input HTTP label: " + memberName + ".");
4896
+ }
4897
+ return resolvedPath3;
4898
+ };
4899
+ }
4900
+ });
4901
+
4803
4902
  // ../../../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js
4804
4903
  function requestBuilder(input, context) {
4805
4904
  return new RequestBuilder(input, context);
@@ -4807,8 +4906,8 @@ function requestBuilder(input, context) {
4807
4906
  var import_protocol_http2, RequestBuilder;
4808
4907
  var init_requestBuilder = __esm({
4809
4908
  "../../../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js"() {
4810
- init_protocols();
4811
4909
  import_protocol_http2 = __toESM(require_dist_cjs2());
4910
+ init_resolve_path();
4812
4911
  RequestBuilder = class {
4813
4912
  constructor(input, context) {
4814
4913
  this.input = input;
@@ -4874,26 +4973,6 @@ var init_requestBuilder = __esm({
4874
4973
  }
4875
4974
  });
4876
4975
 
4877
- // ../../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js
4878
- var resolvedPath2;
4879
- var init_resolve_path = __esm({
4880
- "../../../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() {
4881
- init_extended_encode_uri_component();
4882
- resolvedPath2 = (resolvedPath3, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
4883
- if (input != null && input[memberName] !== void 0) {
4884
- const labelValue = labelValueProvider();
4885
- if (labelValue.length <= 0) {
4886
- throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
4887
- }
4888
- resolvedPath3 = resolvedPath3.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent2(segment)).join("/") : extendedEncodeURIComponent2(labelValue));
4889
- } else {
4890
- throw new Error("No value provided for input HTTP label: " + memberName + ".");
4891
- }
4892
- return resolvedPath3;
4893
- };
4894
- }
4895
- });
4896
-
4897
4976
  // ../../../node_modules/@smithy/core/dist-es/submodules/protocols/index.js
4898
4977
  var protocols_exports = {};
4899
4978
  __export(protocols_exports, {
@@ -5989,6 +6068,9 @@ var require_dist_cjs29 = __commonJS({
5989
6068
  case "builtInParams":
5990
6069
  endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
5991
6070
  break;
6071
+ case "operationContextParams":
6072
+ endpointParams[name] = instruction.get(commandInput);
6073
+ break;
5992
6074
  default:
5993
6075
  throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
5994
6076
  }
@@ -6516,9 +6598,9 @@ var require_dist_cjs30 = __commonJS({
6516
6598
  var _a, _b;
6517
6599
  return ((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) == null ? void 0 : _b.throttling) == true;
6518
6600
  }, "isThrottlingError");
6519
- var isTransientError = /* @__PURE__ */ __name((error) => {
6601
+ var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => {
6520
6602
  var _a;
6521
- return isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0);
6603
+ return isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
6522
6604
  }, "isTransientError");
6523
6605
  var isServerError = /* @__PURE__ */ __name((error) => {
6524
6606
  var _a;
@@ -6583,7 +6665,7 @@ var require_dist_cjs31 = __commonJS({
6583
6665
  var DEFAULT_MAX_ATTEMPTS = 3;
6584
6666
  var DEFAULT_RETRY_MODE = "standard";
6585
6667
  var import_service_error_classification = require_dist_cjs30();
6586
- var _DefaultRateLimiter = class _DefaultRateLimiter {
6668
+ var _DefaultRateLimiter = class _DefaultRateLimiter2 {
6587
6669
  constructor(options) {
6588
6670
  this.currentCapacity = 0;
6589
6671
  this.enabled = false;
@@ -6616,7 +6698,7 @@ var require_dist_cjs31 = __commonJS({
6616
6698
  this.refillTokenBucket();
6617
6699
  if (amount > this.currentCapacity) {
6618
6700
  const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
6619
- await new Promise((resolve) => setTimeout(resolve, delay));
6701
+ await new Promise((resolve) => _DefaultRateLimiter2.setTimeoutFn(resolve, delay));
6620
6702
  }
6621
6703
  this.currentCapacity = this.currentCapacity - amount;
6622
6704
  }
@@ -6683,6 +6765,7 @@ var require_dist_cjs31 = __commonJS({
6683
6765
  }
6684
6766
  };
6685
6767
  __name(_DefaultRateLimiter, "DefaultRateLimiter");
6768
+ _DefaultRateLimiter.setTimeoutFn = setTimeout;
6686
6769
  var DefaultRateLimiter = _DefaultRateLimiter;
6687
6770
  var DEFAULT_RETRY_DELAY_BASE = 100;
6688
6771
  var MAXIMUM_RETRY_DELAY = 20 * 1e3;
@@ -7194,9 +7277,8 @@ var require_dist_cjs33 = __commonJS({
7194
7277
  NoOpLogger: () => NoOpLogger,
7195
7278
  SENSITIVE_STRING: () => SENSITIVE_STRING,
7196
7279
  ServiceException: () => ServiceException,
7197
- StringWrapper: () => StringWrapper,
7198
7280
  _json: () => _json,
7199
- collectBody: () => import_protocols3.collectBody,
7281
+ collectBody: () => import_protocols2.collectBody,
7200
7282
  convertMap: () => convertMap,
7201
7283
  createAggregatedClient: () => createAggregatedClient,
7202
7284
  dateToUtcString: () => dateToUtcString,
@@ -7214,7 +7296,7 @@ var require_dist_cjs33 = __commonJS({
7214
7296
  expectShort: () => expectShort,
7215
7297
  expectString: () => expectString,
7216
7298
  expectUnion: () => expectUnion2,
7217
- extendedEncodeURIComponent: () => import_protocols3.extendedEncodeURIComponent,
7299
+ extendedEncodeURIComponent: () => import_protocols2.extendedEncodeURIComponent,
7218
7300
  getArrayIfSingleItem: () => getArrayIfSingleItem,
7219
7301
  getDefaultClientConfiguration: () => getDefaultClientConfiguration,
7220
7302
  getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,
@@ -7234,7 +7316,7 @@ var require_dist_cjs33 = __commonJS({
7234
7316
  parseRfc7231DateTime: () => parseRfc7231DateTime,
7235
7317
  quoteHeader: () => quoteHeader,
7236
7318
  resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
7237
- resolvedPath: () => import_protocols3.resolvedPath,
7319
+ resolvedPath: () => import_protocols2.resolvedPath,
7238
7320
  serializeDateTime: () => serializeDateTime,
7239
7321
  serializeFloat: () => serializeFloat,
7240
7322
  splitEvery: () => splitEvery,
@@ -7300,7 +7382,7 @@ var require_dist_cjs33 = __commonJS({
7300
7382
  };
7301
7383
  __name(_Client, "Client");
7302
7384
  var Client = _Client;
7303
- var import_protocols3 = (init_protocols(), __toCommonJS(protocols_exports));
7385
+ var import_protocols2 = (init_protocols(), __toCommonJS(protocols_exports));
7304
7386
  var import_types5 = require_dist_cjs();
7305
7387
  var _Command = class _Command {
7306
7388
  constructor() {
@@ -7957,6 +8039,15 @@ var require_dist_cjs33 = __commonJS({
7957
8039
  this.$fault = options.$fault;
7958
8040
  this.$metadata = options.$metadata;
7959
8041
  }
8042
+ /**
8043
+ * Checks if a value is an instance of ServiceException (duck typed)
8044
+ */
8045
+ static isInstance(value) {
8046
+ if (!value)
8047
+ return false;
8048
+ const candidate = value;
8049
+ return Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
8050
+ }
7960
8051
  };
7961
8052
  __name(_ServiceException, "ServiceException");
7962
8053
  var ServiceException = _ServiceException;
@@ -8097,40 +8188,29 @@ var require_dist_cjs33 = __commonJS({
8097
8188
  var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {
8098
8189
  return value != null;
8099
8190
  }, "isSerializableHeaderValue");
8100
- var StringWrapper = /* @__PURE__ */ __name(function() {
8101
- const Class = Object.getPrototypeOf(this).constructor;
8102
- const Constructor = Function.bind.apply(String, [null, ...arguments]);
8103
- const instance = new Constructor();
8104
- Object.setPrototypeOf(instance, Class.prototype);
8105
- return instance;
8106
- }, "StringWrapper");
8107
- StringWrapper.prototype = Object.create(String.prototype, {
8108
- constructor: {
8109
- value: StringWrapper,
8110
- enumerable: false,
8111
- writable: true,
8112
- configurable: true
8113
- }
8114
- });
8115
- Object.setPrototypeOf(StringWrapper, String);
8116
- var _LazyJsonString = class _LazyJsonString2 extends StringWrapper {
8117
- deserializeJSON() {
8118
- return JSON.parse(super.toString());
8119
- }
8120
- toJSON() {
8121
- return super.toString();
8122
- }
8123
- static fromObject(object) {
8124
- if (object instanceof _LazyJsonString2) {
8125
- return object;
8126
- } else if (object instanceof String || typeof object === "string") {
8127
- return new _LazyJsonString2(object);
8191
+ var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val2) {
8192
+ const str = Object.assign(new String(val2), {
8193
+ deserializeJSON() {
8194
+ return JSON.parse(String(val2));
8195
+ },
8196
+ toString() {
8197
+ return String(val2);
8198
+ },
8199
+ toJSON() {
8200
+ return String(val2);
8128
8201
  }
8129
- return new _LazyJsonString2(JSON.stringify(object));
8202
+ });
8203
+ return str;
8204
+ }, "LazyJsonString");
8205
+ LazyJsonString.from = (object) => {
8206
+ if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
8207
+ return object;
8208
+ } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
8209
+ return LazyJsonString(String(object));
8130
8210
  }
8211
+ return LazyJsonString(JSON.stringify(object));
8131
8212
  };
8132
- __name(_LazyJsonString, "LazyJsonString");
8133
- var LazyJsonString = _LazyJsonString;
8213
+ LazyJsonString.fromObject = LazyJsonString.from;
8134
8214
  var _NoOpLogger = class _NoOpLogger {
8135
8215
  trace() {
8136
8216
  }
@@ -10299,15 +10379,10 @@ var require_DocTypeReader = __commonJS({
10299
10379
  var require_strnum = __commonJS({
10300
10380
  "../../../node_modules/strnum/strnum.js"(exports2, module2) {
10301
10381
  var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
10302
- var numRegex = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
10303
- if (!Number.parseInt && window.parseInt) {
10304
- Number.parseInt = window.parseInt;
10305
- }
10306
- if (!Number.parseFloat && window.parseFloat) {
10307
- Number.parseFloat = window.parseFloat;
10308
- }
10382
+ var numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
10309
10383
  var consider = {
10310
10384
  hex: true,
10385
+ // oct: false,
10311
10386
  leadingZeros: true,
10312
10387
  decimalPoint: ".",
10313
10388
  eNotation: true
@@ -10318,26 +10393,39 @@ var require_strnum = __commonJS({
10318
10393
  if (!str || typeof str !== "string") return str;
10319
10394
  let trimmedStr = str.trim();
10320
10395
  if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;
10396
+ else if (str === "0") return 0;
10321
10397
  else if (options.hex && hexRegex.test(trimmedStr)) {
10322
- return Number.parseInt(trimmedStr, 16);
10398
+ return parse_int(trimmedStr, 16);
10399
+ } else if (trimmedStr.search(/[eE]/) !== -1) {
10400
+ const notation = trimmedStr.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
10401
+ if (notation) {
10402
+ if (options.leadingZeros) {
10403
+ trimmedStr = (notation[1] || "") + notation[3];
10404
+ } else {
10405
+ if (notation[2] === "0" && notation[3][0] === ".") {
10406
+ } else {
10407
+ return str;
10408
+ }
10409
+ }
10410
+ return options.eNotation ? Number(trimmedStr) : str;
10411
+ } else {
10412
+ return str;
10413
+ }
10323
10414
  } else {
10324
10415
  const match = numRegex.exec(trimmedStr);
10325
10416
  if (match) {
10326
10417
  const sign = match[1];
10327
10418
  const leadingZeros = match[2];
10328
10419
  let numTrimmedByZeros = trimZeros(match[3]);
10329
- const eNotation = match[4] || match[6];
10330
10420
  if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== ".") return str;
10331
10421
  else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== ".") return str;
10422
+ else if (options.leadingZeros && leadingZeros === str) return 0;
10332
10423
  else {
10333
10424
  const num = Number(trimmedStr);
10334
10425
  const numStr = "" + num;
10335
10426
  if (numStr.search(/[eE]/) !== -1) {
10336
10427
  if (options.eNotation) return num;
10337
10428
  else return str;
10338
- } else if (eNotation) {
10339
- if (options.eNotation) return num;
10340
- else return str;
10341
10429
  } else if (trimmedStr.indexOf(".") !== -1) {
10342
10430
  if (numStr === "0" && numTrimmedByZeros === "") return num;
10343
10431
  else if (numStr === numTrimmedByZeros) return num;
@@ -10345,13 +10433,10 @@ var require_strnum = __commonJS({
10345
10433
  else return str;
10346
10434
  }
10347
10435
  if (leadingZeros) {
10348
- if (numTrimmedByZeros === numStr) return num;
10349
- else if (sign + numTrimmedByZeros === numStr) return num;
10350
- else return str;
10436
+ return numTrimmedByZeros === numStr || sign + numTrimmedByZeros === numStr ? num : str;
10437
+ } else {
10438
+ return trimmedStr === numStr || trimmedStr === sign + numStr ? num : str;
10351
10439
  }
10352
- if (trimmedStr === numStr) return num;
10353
- else if (trimmedStr === sign + numStr) return num;
10354
- return str;
10355
10440
  }
10356
10441
  } else {
10357
10442
  return str;
@@ -10368,6 +10453,12 @@ var require_strnum = __commonJS({
10368
10453
  }
10369
10454
  return numStr;
10370
10455
  }
10456
+ function parse_int(numStr, base) {
10457
+ if (parseInt) return parseInt(numStr, base);
10458
+ else if (Number.parseInt) return Number.parseInt(numStr, base);
10459
+ else if (window && window.parseInt) return window.parseInt(numStr, base);
10460
+ else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
10461
+ }
10371
10462
  module2.exports = toNumber;
10372
10463
  }
10373
10464
  });
@@ -11897,7 +11988,7 @@ function __importStar(mod) {
11897
11988
  if (mod && mod.__esModule) return mod;
11898
11989
  var result = {};
11899
11990
  if (mod != null) {
11900
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
11991
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
11901
11992
  }
11902
11993
  __setModuleDefault(result, mod);
11903
11994
  return result;
@@ -11981,7 +12072,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
11981
12072
  }
11982
12073
  return path;
11983
12074
  }
11984
- var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default;
12075
+ var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
11985
12076
  var init_tslib_es6 = __esm({
11986
12077
  "../../../node_modules/tslib/tslib.es6.mjs"() {
11987
12078
  extendStatics = function(d, b) {
@@ -12020,6 +12111,14 @@ var init_tslib_es6 = __esm({
12020
12111
  } : function(o, v) {
12021
12112
  o["default"] = v;
12022
12113
  };
12114
+ ownKeys = function(o) {
12115
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
12116
+ var ar = [];
12117
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
12118
+ return ar;
12119
+ };
12120
+ return ownKeys(o);
12121
+ };
12023
12122
  _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
12024
12123
  var e = new Error(message);
12025
12124
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
@@ -23572,9 +23671,9 @@ var require_safer = __commonJS({
23572
23671
  }
23573
23672
  });
23574
23673
 
23575
- // ../../../node_modules/encoding/node_modules/iconv-lite/lib/bom-handling.js
23674
+ // ../../../node_modules/iconv-lite/lib/bom-handling.js
23576
23675
  var require_bom_handling = __commonJS({
23577
- "../../../node_modules/encoding/node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
23676
+ "../../../node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
23578
23677
  "use strict";
23579
23678
  var BOMChar = "\uFEFF";
23580
23679
  exports2.PrependBOM = PrependBOMWrapper;
@@ -23616,9 +23715,9 @@ var require_bom_handling = __commonJS({
23616
23715
  }
23617
23716
  });
23618
23717
 
23619
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/internal.js
23718
+ // ../../../node_modules/iconv-lite/encodings/internal.js
23620
23719
  var require_internal = __commonJS({
23621
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
23720
+ "../../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
23622
23721
  "use strict";
23623
23722
  var Buffer2 = require_safer().Buffer;
23624
23723
  module2.exports = {
@@ -23768,9 +23867,9 @@ var require_internal = __commonJS({
23768
23867
  }
23769
23868
  });
23770
23869
 
23771
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf32.js
23870
+ // ../../../node_modules/iconv-lite/encodings/utf32.js
23772
23871
  var require_utf32 = __commonJS({
23773
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf32.js"(exports2) {
23872
+ "../../../node_modules/iconv-lite/encodings/utf32.js"(exports2) {
23774
23873
  "use strict";
23775
23874
  var Buffer2 = require_safer().Buffer;
23776
23875
  exports2._utf32 = Utf32Codec;
@@ -23987,9 +24086,9 @@ var require_utf32 = __commonJS({
23987
24086
  }
23988
24087
  });
23989
24088
 
23990
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf16.js
24089
+ // ../../../node_modules/iconv-lite/encodings/utf16.js
23991
24090
  var require_utf16 = __commonJS({
23992
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf16.js"(exports2) {
24091
+ "../../../node_modules/iconv-lite/encodings/utf16.js"(exports2) {
23993
24092
  "use strict";
23994
24093
  var Buffer2 = require_safer().Buffer;
23995
24094
  exports2.utf16be = Utf16BECodec;
@@ -24121,9 +24220,9 @@ var require_utf16 = __commonJS({
24121
24220
  }
24122
24221
  });
24123
24222
 
24124
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf7.js
24223
+ // ../../../node_modules/iconv-lite/encodings/utf7.js
24125
24224
  var require_utf7 = __commonJS({
24126
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/utf7.js"(exports2) {
24225
+ "../../../node_modules/iconv-lite/encodings/utf7.js"(exports2) {
24127
24226
  "use strict";
24128
24227
  var Buffer2 = require_safer().Buffer;
24129
24228
  exports2.utf7 = Utf7Codec;
@@ -24322,9 +24421,9 @@ var require_utf7 = __commonJS({
24322
24421
  }
24323
24422
  });
24324
24423
 
24325
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-codec.js
24424
+ // ../../../node_modules/iconv-lite/encodings/sbcs-codec.js
24326
24425
  var require_sbcs_codec = __commonJS({
24327
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
24426
+ "../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
24328
24427
  "use strict";
24329
24428
  var Buffer2 = require_safer().Buffer;
24330
24429
  exports2._sbcs = SBCSCodec;
@@ -24378,9 +24477,9 @@ var require_sbcs_codec = __commonJS({
24378
24477
  }
24379
24478
  });
24380
24479
 
24381
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-data.js
24480
+ // ../../../node_modules/iconv-lite/encodings/sbcs-data.js
24382
24481
  var require_sbcs_data = __commonJS({
24383
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
24482
+ "../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
24384
24483
  "use strict";
24385
24484
  module2.exports = {
24386
24485
  // Not supported by iconv, not sure why.
@@ -24531,9 +24630,9 @@ var require_sbcs_data = __commonJS({
24531
24630
  }
24532
24631
  });
24533
24632
 
24534
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js
24633
+ // ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
24535
24634
  var require_sbcs_data_generated = __commonJS({
24536
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
24635
+ "../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
24537
24636
  "use strict";
24538
24637
  module2.exports = {
24539
24638
  "437": "cp437",
@@ -24986,9 +25085,9 @@ var require_sbcs_data_generated = __commonJS({
24986
25085
  }
24987
25086
  });
24988
25087
 
24989
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/dbcs-codec.js
25088
+ // ../../../node_modules/iconv-lite/encodings/dbcs-codec.js
24990
25089
  var require_dbcs_codec = __commonJS({
24991
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
25090
+ "../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
24992
25091
  "use strict";
24993
25092
  var Buffer2 = require_safer().Buffer;
24994
25093
  exports2._dbcs = DBCSCodec;
@@ -25403,9 +25502,9 @@ var require_dbcs_codec = __commonJS({
25403
25502
  }
25404
25503
  });
25405
25504
 
25406
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json
25505
+ // ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json
25407
25506
  var require_shiftjis = __commonJS({
25408
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
25507
+ "../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
25409
25508
  module2.exports = [
25410
25509
  ["0", "\0", 128],
25411
25510
  ["a1", "\uFF61", 62],
@@ -25534,9 +25633,9 @@ var require_shiftjis = __commonJS({
25534
25633
  }
25535
25634
  });
25536
25635
 
25537
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/eucjp.json
25636
+ // ../../../node_modules/iconv-lite/encodings/tables/eucjp.json
25538
25637
  var require_eucjp = __commonJS({
25539
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
25638
+ "../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
25540
25639
  module2.exports = [
25541
25640
  ["0", "\0", 127],
25542
25641
  ["8ea1", "\uFF61", 62],
@@ -25722,9 +25821,9 @@ var require_eucjp = __commonJS({
25722
25821
  }
25723
25822
  });
25724
25823
 
25725
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp936.json
25824
+ // ../../../node_modules/iconv-lite/encodings/tables/cp936.json
25726
25825
  var require_cp936 = __commonJS({
25727
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
25826
+ "../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
25728
25827
  module2.exports = [
25729
25828
  ["0", "\0", 127, "\u20AC"],
25730
25829
  ["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
@@ -25992,9 +26091,9 @@ var require_cp936 = __commonJS({
25992
26091
  }
25993
26092
  });
25994
26093
 
25995
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json
26094
+ // ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json
25996
26095
  var require_gbk_added = __commonJS({
25997
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
26096
+ "../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
25998
26097
  module2.exports = [
25999
26098
  ["a140", "\uE4C6", 62],
26000
26099
  ["a180", "\uE505", 32],
@@ -26054,16 +26153,16 @@ var require_gbk_added = __commonJS({
26054
26153
  }
26055
26154
  });
26056
26155
 
26057
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
26156
+ // ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
26058
26157
  var require_gb18030_ranges = __commonJS({
26059
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
26158
+ "../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
26060
26159
  module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
26061
26160
  }
26062
26161
  });
26063
26162
 
26064
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp949.json
26163
+ // ../../../node_modules/iconv-lite/encodings/tables/cp949.json
26065
26164
  var require_cp949 = __commonJS({
26066
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
26165
+ "../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
26067
26166
  module2.exports = [
26068
26167
  ["0", "\0", 127],
26069
26168
  ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
@@ -26340,9 +26439,9 @@ var require_cp949 = __commonJS({
26340
26439
  }
26341
26440
  });
26342
26441
 
26343
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp950.json
26442
+ // ../../../node_modules/iconv-lite/encodings/tables/cp950.json
26344
26443
  var require_cp950 = __commonJS({
26345
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
26444
+ "../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
26346
26445
  module2.exports = [
26347
26446
  ["0", "\0", 127],
26348
26447
  ["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
@@ -26523,9 +26622,9 @@ var require_cp950 = __commonJS({
26523
26622
  }
26524
26623
  });
26525
26624
 
26526
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/big5-added.json
26625
+ // ../../../node_modules/iconv-lite/encodings/tables/big5-added.json
26527
26626
  var require_big5_added = __commonJS({
26528
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
26627
+ "../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
26529
26628
  module2.exports = [
26530
26629
  ["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
26531
26630
  ["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
@@ -26651,9 +26750,9 @@ var require_big5_added = __commonJS({
26651
26750
  }
26652
26751
  });
26653
26752
 
26654
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/dbcs-data.js
26753
+ // ../../../node_modules/iconv-lite/encodings/dbcs-data.js
26655
26754
  var require_dbcs_data = __commonJS({
26656
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
26755
+ "../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
26657
26756
  "use strict";
26658
26757
  module2.exports = {
26659
26758
  // == Japanese/ShiftJIS ====================================================
@@ -26898,9 +26997,9 @@ var require_dbcs_data = __commonJS({
26898
26997
  }
26899
26998
  });
26900
26999
 
26901
- // ../../../node_modules/encoding/node_modules/iconv-lite/encodings/index.js
27000
+ // ../../../node_modules/iconv-lite/encodings/index.js
26902
27001
  var require_encodings = __commonJS({
26903
- "../../../node_modules/encoding/node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
27002
+ "../../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
26904
27003
  "use strict";
26905
27004
  var modules = [
26906
27005
  require_internal(),
@@ -26925,9 +27024,9 @@ var require_encodings = __commonJS({
26925
27024
  }
26926
27025
  });
26927
27026
 
26928
- // ../../../node_modules/encoding/node_modules/iconv-lite/lib/streams.js
27027
+ // ../../../node_modules/iconv-lite/lib/streams.js
26929
27028
  var require_streams = __commonJS({
26930
- "../../../node_modules/encoding/node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
27029
+ "../../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
26931
27030
  "use strict";
26932
27031
  var Buffer2 = require_safer().Buffer;
26933
27032
  module2.exports = function(stream_module) {
@@ -27020,9 +27119,9 @@ var require_streams = __commonJS({
27020
27119
  }
27021
27120
  });
27022
27121
 
27023
- // ../../../node_modules/encoding/node_modules/iconv-lite/lib/index.js
27122
+ // ../../../node_modules/iconv-lite/lib/index.js
27024
27123
  var require_lib2 = __commonJS({
27025
- "../../../node_modules/encoding/node_modules/iconv-lite/lib/index.js"(exports2, module2) {
27124
+ "../../../node_modules/iconv-lite/lib/index.js"(exports2, module2) {
27026
27125
  "use strict";
27027
27126
  var Buffer2 = require_safer().Buffer;
27028
27127
  var bomHandling = require_bom_handling();
@@ -27188,9 +27287,9 @@ var require_encoding = __commonJS({
27188
27287
  }
27189
27288
  });
27190
27289
 
27191
- // ../../../node_modules/node-fetch/lib/index.js
27290
+ // node_modules/node-fetch/lib/index.js
27192
27291
  var require_lib3 = __commonJS({
27193
- "../../../node_modules/node-fetch/lib/index.js"(exports2, module2) {
27292
+ "node_modules/node-fetch/lib/index.js"(exports2, module2) {
27194
27293
  "use strict";
27195
27294
  Object.defineProperty(exports2, "__esModule", { value: true });
27196
27295
  function _interopDefault(ex) {
@@ -27331,7 +27430,7 @@ var require_lib3 = __commonJS({
27331
27430
  body = null;
27332
27431
  } else if (isURLSearchParams(body)) {
27333
27432
  body = Buffer.from(body.toString());
27334
- } else if (isBlob(body)) ;
27433
+ } else if (isBlob2(body)) ;
27335
27434
  else if (Buffer.isBuffer(body)) ;
27336
27435
  else if (Object.prototype.toString.call(body) === "[object ArrayBuffer]") {
27337
27436
  body = Buffer.from(body);
@@ -27466,7 +27565,7 @@ var require_lib3 = __commonJS({
27466
27565
  if (body === null) {
27467
27566
  return Body.Promise.resolve(Buffer.alloc(0));
27468
27567
  }
27469
- if (isBlob(body)) {
27568
+ if (isBlob2(body)) {
27470
27569
  body = body.stream();
27471
27570
  }
27472
27571
  if (Buffer.isBuffer(body)) {
@@ -27562,7 +27661,7 @@ var require_lib3 = __commonJS({
27562
27661
  }
27563
27662
  return obj.constructor.name === "URLSearchParams" || Object.prototype.toString.call(obj) === "[object URLSearchParams]" || typeof obj.sort === "function";
27564
27663
  }
27565
- function isBlob(obj) {
27664
+ function isBlob2(obj) {
27566
27665
  return typeof obj === "object" && typeof obj.arrayBuffer === "function" && typeof obj.type === "string" && typeof obj.stream === "function" && typeof obj.constructor === "function" && typeof obj.constructor.name === "string" && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
27567
27666
  }
27568
27667
  function clone(instance) {
@@ -27588,7 +27687,7 @@ var require_lib3 = __commonJS({
27588
27687
  return "text/plain;charset=UTF-8";
27589
27688
  } else if (isURLSearchParams(body)) {
27590
27689
  return "application/x-www-form-urlencoded;charset=UTF-8";
27591
- } else if (isBlob(body)) {
27690
+ } else if (isBlob2(body)) {
27592
27691
  return body.type || null;
27593
27692
  } else if (Buffer.isBuffer(body)) {
27594
27693
  return null;
@@ -27608,7 +27707,7 @@ var require_lib3 = __commonJS({
27608
27707
  const body = instance.body;
27609
27708
  if (body === null) {
27610
27709
  return 0;
27611
- } else if (isBlob(body)) {
27710
+ } else if (isBlob2(body)) {
27612
27711
  return body.size;
27613
27712
  } else if (Buffer.isBuffer(body)) {
27614
27713
  return body.length;
@@ -27626,7 +27725,7 @@ var require_lib3 = __commonJS({
27626
27725
  const body = instance.body;
27627
27726
  if (body === null) {
27628
27727
  dest.end();
27629
- } else if (isBlob(body)) {
27728
+ } else if (isBlob2(body)) {
27630
27729
  body.stream().pipe(dest);
27631
27730
  } else if (Buffer.isBuffer(body)) {
27632
27731
  dest.write(body);
@@ -28907,7 +29006,7 @@ var require_sdk_v3_metadata = __commonJS({
28907
29006
  iamPrefix: "logs"
28908
29007
  },
28909
29008
  cloudwatch: {
28910
- iamPrefix: "monitoring"
29009
+ iamPrefix: "cloudwatch"
28911
29010
  },
28912
29011
  codeartifact: {
28913
29012
  iamPrefix: "codeartifact"
@@ -30056,13 +30155,13 @@ var require_lib4 = __commonJS({
30056
30155
  });
30057
30156
 
30058
30157
  // lib/assertions/providers/lambda-handler/index.ts
30059
- var lambda_handler_exports = {};
30060
- __export(lambda_handler_exports, {
30158
+ var index_exports = {};
30159
+ __export(index_exports, {
30061
30160
  handler: () => handler,
30062
30161
  isComplete: () => isComplete,
30063
30162
  onTimeout: () => onTimeout
30064
30163
  });
30065
- module.exports = __toCommonJS(lambda_handler_exports);
30164
+ module.exports = __toCommonJS(index_exports);
30066
30165
 
30067
30166
  // lib/assertions/providers/lambda-handler/assertion.ts
30068
30167
  var import_helpers_internal = __toESM(require_helpers_internal());
@@ -30327,28 +30426,6 @@ function decodeCall(call) {
30327
30426
 
30328
30427
  // lib/assertions/providers/lambda-handler/http.ts
30329
30428
  var import_node_fetch = __toESM(require_lib3());
30330
- var HttpHandler = class extends CustomResourceHandler {
30331
- async processEvent(request2) {
30332
- console.log("request", request2);
30333
- const response = await (0, import_node_fetch.default)(request2.parameters.url, request2.parameters.fetchOptions);
30334
- const result = {
30335
- ok: response.ok,
30336
- status: response.status,
30337
- statusText: response.statusText,
30338
- headers: response.headers.raw()
30339
- };
30340
- result.body = await response.text();
30341
- try {
30342
- result.body = JSON.parse(result.body);
30343
- } catch (e) {
30344
- }
30345
- return {
30346
- apiCallResponse: result
30347
- };
30348
- }
30349
- };
30350
-
30351
- // lib/assertions/providers/lambda-handler/sdk.ts
30352
30429
  var import_aws_custom_resource_sdk_adapter = __toESM(require_lib4());
30353
30430
 
30354
30431
  // lib/assertions/providers/lambda-handler/utils.ts
@@ -30395,10 +30472,38 @@ function decodeValue(value) {
30395
30472
  return JSON.parse(value);
30396
30473
  }
30397
30474
 
30475
+ // lib/assertions/providers/lambda-handler/http.ts
30476
+ var HttpHandler = class extends CustomResourceHandler {
30477
+ async processEvent(request2) {
30478
+ console.log("request", request2);
30479
+ const response = await (0, import_node_fetch.default)(request2.parameters.url, request2.parameters.fetchOptions);
30480
+ const result = {
30481
+ ok: response.ok,
30482
+ status: response.status,
30483
+ statusText: response.statusText,
30484
+ headers: response.headers.raw()
30485
+ };
30486
+ result.body = await response.text();
30487
+ try {
30488
+ result.body = JSON.parse(result.body);
30489
+ } catch (e) {
30490
+ }
30491
+ let resp;
30492
+ if (request2.flattenResponse === "true") {
30493
+ resp = (0, import_aws_custom_resource_sdk_adapter.flatten)(deepParseJson({ apiCallResponse: result }));
30494
+ } else {
30495
+ resp = { apiCallResponse: result };
30496
+ }
30497
+ console.log(`Returning result ${JSON.stringify(resp)}`);
30498
+ return resp;
30499
+ }
30500
+ };
30501
+
30398
30502
  // lib/assertions/providers/lambda-handler/sdk.ts
30503
+ var import_aws_custom_resource_sdk_adapter2 = __toESM(require_lib4());
30399
30504
  var AwsApiCallHandler = class extends CustomResourceHandler {
30400
30505
  async processEvent(request2) {
30401
- const apiCall = new import_aws_custom_resource_sdk_adapter.ApiCall(request2.service, request2.api);
30506
+ const apiCall = new import_aws_custom_resource_sdk_adapter2.ApiCall(request2.service, request2.api);
30402
30507
  const parameters = request2.parameters ? decodeParameters(request2.parameters) : {};
30403
30508
  console.log(`SDK request to ${apiCall.service}.${apiCall.action} with parameters ${JSON.stringify(parameters)}`);
30404
30509
  const response = await apiCall.invoke({ parameters });
@@ -30406,7 +30511,7 @@ var AwsApiCallHandler = class extends CustomResourceHandler {
30406
30511
  delete response.$metadata;
30407
30512
  let resp;
30408
30513
  if (request2.outputPaths || request2.flattenResponse === "true") {
30409
- const flattened = (0, import_aws_custom_resource_sdk_adapter.flatten)(deepParseJson({ apiCallResponse: response }));
30514
+ const flattened = (0, import_aws_custom_resource_sdk_adapter2.flatten)(deepParseJson({ apiCallResponse: response }));
30410
30515
  resp = request2.outputPaths ? filterKeys(flattened, request2.outputPaths) : flattened;
30411
30516
  } else {
30412
30517
  resp = { apiCallResponse: response };