aws-local-stepfunctions 1.1.0 → 1.3.0

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.
@@ -5155,8 +5155,8 @@ function __generator(thisArg, body) {
5155
5155
  return this;
5156
5156
  }), g3;
5157
5157
  function verb(n3) {
5158
- return function(v) {
5159
- return step([n3, v]);
5158
+ return function(v3) {
5159
+ return step([n3, v3]);
5160
5160
  };
5161
5161
  }
5162
5162
  function step(op) {
@@ -5279,8 +5279,8 @@ function __spreadArrays() {
5279
5279
  r3[k3] = a3[j3];
5280
5280
  return r3;
5281
5281
  }
5282
- function __await(v) {
5283
- return this instanceof __await ? (this.v = v, this) : new __await(v);
5282
+ function __await(v3) {
5283
+ return this instanceof __await ? (this.v = v3, this) : new __await(v3);
5284
5284
  }
5285
5285
  function __asyncGenerator(thisArg, _arguments, generator) {
5286
5286
  if (!Symbol.asyncIterator)
@@ -5291,15 +5291,15 @@ function __asyncGenerator(thisArg, _arguments, generator) {
5291
5291
  }, i3;
5292
5292
  function verb(n3) {
5293
5293
  if (g3[n3])
5294
- i3[n3] = function(v) {
5294
+ i3[n3] = function(v3) {
5295
5295
  return new Promise(function(a3, b3) {
5296
- q3.push([n3, v, a3, b3]) > 1 || resume(n3, v);
5296
+ q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3);
5297
5297
  });
5298
5298
  };
5299
5299
  }
5300
- function resume(n3, v) {
5300
+ function resume(n3, v3) {
5301
5301
  try {
5302
- step(g3[n3](v));
5302
+ step(g3[n3](v3));
5303
5303
  } catch (e3) {
5304
5304
  settle(q3[0][3], e3);
5305
5305
  }
@@ -5313,8 +5313,8 @@ function __asyncGenerator(thisArg, _arguments, generator) {
5313
5313
  function reject(value) {
5314
5314
  resume("throw", value);
5315
5315
  }
5316
- function settle(f3, v) {
5317
- if (f3(v), q3.shift(), q3.length)
5316
+ function settle(f3, v3) {
5317
+ if (f3(v3), q3.shift(), q3.length)
5318
5318
  resume(q3[0][0], q3[0][1]);
5319
5319
  }
5320
5320
  }
@@ -5326,8 +5326,8 @@ function __asyncDelegator(o3) {
5326
5326
  return this;
5327
5327
  }, i3;
5328
5328
  function verb(n3, f3) {
5329
- i3[n3] = o3[n3] ? function(v) {
5330
- return (p3 = !p3) ? { value: __await(o3[n3](v)), done: n3 === "return" } : f3 ? f3(v) : v;
5329
+ i3[n3] = o3[n3] ? function(v3) {
5330
+ return (p3 = !p3) ? { value: __await(o3[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3;
5331
5331
  } : f3;
5332
5332
  }
5333
5333
  }
@@ -5339,15 +5339,15 @@ function __asyncValues(o3) {
5339
5339
  return this;
5340
5340
  }, i3);
5341
5341
  function verb(n3) {
5342
- i3[n3] = o3[n3] && function(v) {
5342
+ i3[n3] = o3[n3] && function(v3) {
5343
5343
  return new Promise(function(resolve, reject) {
5344
- v = o3[n3](v), settle(resolve, reject, v.done, v.value);
5344
+ v3 = o3[n3](v3), settle(resolve, reject, v3.done, v3.value);
5345
5345
  });
5346
5346
  };
5347
5347
  }
5348
- function settle(resolve, reject, d3, v) {
5349
- Promise.resolve(v).then(function(v2) {
5350
- resolve({ value: v2, done: d3 });
5348
+ function settle(resolve, reject, d3, v3) {
5349
+ Promise.resolve(v3).then(function(v5) {
5350
+ resolve({ value: v5, done: d3 });
5351
5351
  }, reject);
5352
5352
  }
5353
5353
  }
@@ -6042,8 +6042,8 @@ function __generator2(thisArg, body) {
6042
6042
  return this;
6043
6043
  }), g3;
6044
6044
  function verb(n3) {
6045
- return function(v) {
6046
- return step([n3, v]);
6045
+ return function(v3) {
6046
+ return step([n3, v3]);
6047
6047
  };
6048
6048
  }
6049
6049
  function step(op) {
@@ -6166,8 +6166,8 @@ function __spreadArrays2() {
6166
6166
  r3[k3] = a3[j3];
6167
6167
  return r3;
6168
6168
  }
6169
- function __await2(v) {
6170
- return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
6169
+ function __await2(v3) {
6170
+ return this instanceof __await2 ? (this.v = v3, this) : new __await2(v3);
6171
6171
  }
6172
6172
  function __asyncGenerator2(thisArg, _arguments, generator) {
6173
6173
  if (!Symbol.asyncIterator)
@@ -6178,15 +6178,15 @@ function __asyncGenerator2(thisArg, _arguments, generator) {
6178
6178
  }, i3;
6179
6179
  function verb(n3) {
6180
6180
  if (g3[n3])
6181
- i3[n3] = function(v) {
6181
+ i3[n3] = function(v3) {
6182
6182
  return new Promise(function(a3, b3) {
6183
- q3.push([n3, v, a3, b3]) > 1 || resume(n3, v);
6183
+ q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3);
6184
6184
  });
6185
6185
  };
6186
6186
  }
6187
- function resume(n3, v) {
6187
+ function resume(n3, v3) {
6188
6188
  try {
6189
- step(g3[n3](v));
6189
+ step(g3[n3](v3));
6190
6190
  } catch (e3) {
6191
6191
  settle(q3[0][3], e3);
6192
6192
  }
@@ -6200,8 +6200,8 @@ function __asyncGenerator2(thisArg, _arguments, generator) {
6200
6200
  function reject(value) {
6201
6201
  resume("throw", value);
6202
6202
  }
6203
- function settle(f3, v) {
6204
- if (f3(v), q3.shift(), q3.length)
6203
+ function settle(f3, v3) {
6204
+ if (f3(v3), q3.shift(), q3.length)
6205
6205
  resume(q3[0][0], q3[0][1]);
6206
6206
  }
6207
6207
  }
@@ -6213,8 +6213,8 @@ function __asyncDelegator2(o3) {
6213
6213
  return this;
6214
6214
  }, i3;
6215
6215
  function verb(n3, f3) {
6216
- i3[n3] = o3[n3] ? function(v) {
6217
- return (p3 = !p3) ? { value: __await2(o3[n3](v)), done: n3 === "return" } : f3 ? f3(v) : v;
6216
+ i3[n3] = o3[n3] ? function(v3) {
6217
+ return (p3 = !p3) ? { value: __await2(o3[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3;
6218
6218
  } : f3;
6219
6219
  }
6220
6220
  }
@@ -6226,15 +6226,15 @@ function __asyncValues2(o3) {
6226
6226
  return this;
6227
6227
  }, i3);
6228
6228
  function verb(n3) {
6229
- i3[n3] = o3[n3] && function(v) {
6229
+ i3[n3] = o3[n3] && function(v3) {
6230
6230
  return new Promise(function(resolve, reject) {
6231
- v = o3[n3](v), settle(resolve, reject, v.done, v.value);
6231
+ v3 = o3[n3](v3), settle(resolve, reject, v3.done, v3.value);
6232
6232
  });
6233
6233
  };
6234
6234
  }
6235
- function settle(resolve, reject, d3, v) {
6236
- Promise.resolve(v).then(function(v2) {
6237
- resolve({ value: v2, done: d3 });
6235
+ function settle(resolve, reject, d3, v3) {
6236
+ Promise.resolve(v3).then(function(v5) {
6237
+ resolve({ value: v5, done: d3 });
6238
6238
  }, reject);
6239
6239
  }
6240
6240
  }
@@ -6640,8 +6640,8 @@ function __generator3(thisArg, body) {
6640
6640
  return this;
6641
6641
  }), g3;
6642
6642
  function verb(n3) {
6643
- return function(v) {
6644
- return step([n3, v]);
6643
+ return function(v3) {
6644
+ return step([n3, v3]);
6645
6645
  };
6646
6646
  }
6647
6647
  function step(op) {
@@ -6764,8 +6764,8 @@ function __spreadArrays3() {
6764
6764
  r3[k3] = a3[j3];
6765
6765
  return r3;
6766
6766
  }
6767
- function __await3(v) {
6768
- return this instanceof __await3 ? (this.v = v, this) : new __await3(v);
6767
+ function __await3(v3) {
6768
+ return this instanceof __await3 ? (this.v = v3, this) : new __await3(v3);
6769
6769
  }
6770
6770
  function __asyncGenerator3(thisArg, _arguments, generator) {
6771
6771
  if (!Symbol.asyncIterator)
@@ -6776,15 +6776,15 @@ function __asyncGenerator3(thisArg, _arguments, generator) {
6776
6776
  }, i3;
6777
6777
  function verb(n3) {
6778
6778
  if (g3[n3])
6779
- i3[n3] = function(v) {
6779
+ i3[n3] = function(v3) {
6780
6780
  return new Promise(function(a3, b3) {
6781
- q3.push([n3, v, a3, b3]) > 1 || resume(n3, v);
6781
+ q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3);
6782
6782
  });
6783
6783
  };
6784
6784
  }
6785
- function resume(n3, v) {
6785
+ function resume(n3, v3) {
6786
6786
  try {
6787
- step(g3[n3](v));
6787
+ step(g3[n3](v3));
6788
6788
  } catch (e3) {
6789
6789
  settle(q3[0][3], e3);
6790
6790
  }
@@ -6798,8 +6798,8 @@ function __asyncGenerator3(thisArg, _arguments, generator) {
6798
6798
  function reject(value) {
6799
6799
  resume("throw", value);
6800
6800
  }
6801
- function settle(f3, v) {
6802
- if (f3(v), q3.shift(), q3.length)
6801
+ function settle(f3, v3) {
6802
+ if (f3(v3), q3.shift(), q3.length)
6803
6803
  resume(q3[0][0], q3[0][1]);
6804
6804
  }
6805
6805
  }
@@ -6811,8 +6811,8 @@ function __asyncDelegator3(o3) {
6811
6811
  return this;
6812
6812
  }, i3;
6813
6813
  function verb(n3, f3) {
6814
- i3[n3] = o3[n3] ? function(v) {
6815
- return (p3 = !p3) ? { value: __await3(o3[n3](v)), done: n3 === "return" } : f3 ? f3(v) : v;
6814
+ i3[n3] = o3[n3] ? function(v3) {
6815
+ return (p3 = !p3) ? { value: __await3(o3[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3;
6816
6816
  } : f3;
6817
6817
  }
6818
6818
  }
@@ -6824,15 +6824,15 @@ function __asyncValues3(o3) {
6824
6824
  return this;
6825
6825
  }, i3);
6826
6826
  function verb(n3) {
6827
- i3[n3] = o3[n3] && function(v) {
6827
+ i3[n3] = o3[n3] && function(v3) {
6828
6828
  return new Promise(function(resolve, reject) {
6829
- v = o3[n3](v), settle(resolve, reject, v.done, v.value);
6829
+ v3 = o3[n3](v3), settle(resolve, reject, v3.done, v3.value);
6830
6830
  });
6831
6831
  };
6832
6832
  }
6833
- function settle(resolve, reject, d3, v) {
6834
- Promise.resolve(v).then(function(v2) {
6835
- resolve({ value: v2, done: d3 });
6833
+ function settle(resolve, reject, d3, v3) {
6834
+ Promise.resolve(v3).then(function(v5) {
6835
+ resolve({ value: v5, done: d3 });
6836
6836
  }, reject);
6837
6837
  }
6838
6838
  }
@@ -7062,10 +7062,10 @@ var require_RawSha256 = __commonJS({
7062
7062
  if (i3 < 16) {
7063
7063
  this.temp[i3] = (buffer[i3 * 4] & 255) << 24 | (buffer[i3 * 4 + 1] & 255) << 16 | (buffer[i3 * 4 + 2] & 255) << 8 | buffer[i3 * 4 + 3] & 255;
7064
7064
  } else {
7065
- var u = this.temp[i3 - 2];
7066
- var t1_1 = (u >>> 17 | u << 15) ^ (u >>> 19 | u << 13) ^ u >>> 10;
7067
- u = this.temp[i3 - 15];
7068
- var t2_1 = (u >>> 7 | u << 25) ^ (u >>> 18 | u << 14) ^ u >>> 3;
7065
+ var u3 = this.temp[i3 - 2];
7066
+ var t1_1 = (u3 >>> 17 | u3 << 15) ^ (u3 >>> 19 | u3 << 13) ^ u3 >>> 10;
7067
+ u3 = this.temp[i3 - 15];
7068
+ var t2_1 = (u3 >>> 7 | u3 << 25) ^ (u3 >>> 18 | u3 << 14) ^ u3 >>> 3;
7069
7069
  this.temp[i3] = (t1_1 + this.temp[i3 - 7] | 0) + (t2_1 + this.temp[i3 - 16] | 0);
7070
7070
  }
7071
7071
  var t1 = (((state4 >>> 6 | state4 << 26) ^ (state4 >>> 11 | state4 << 21) ^ (state4 >>> 25 | state4 << 7)) + (state4 & state5 ^ ~state4 & state6) | 0) + (state7 + (constants_1.KEY[i3] + this.temp[i3] | 0) | 0) | 0;
@@ -7290,8 +7290,8 @@ function __generator4(thisArg, body) {
7290
7290
  return this;
7291
7291
  }), g3;
7292
7292
  function verb(n3) {
7293
- return function(v) {
7294
- return step([n3, v]);
7293
+ return function(v3) {
7294
+ return step([n3, v3]);
7295
7295
  };
7296
7296
  }
7297
7297
  function step(op) {
@@ -7414,8 +7414,8 @@ function __spreadArrays4() {
7414
7414
  r3[k3] = a3[j3];
7415
7415
  return r3;
7416
7416
  }
7417
- function __await4(v) {
7418
- return this instanceof __await4 ? (this.v = v, this) : new __await4(v);
7417
+ function __await4(v3) {
7418
+ return this instanceof __await4 ? (this.v = v3, this) : new __await4(v3);
7419
7419
  }
7420
7420
  function __asyncGenerator4(thisArg, _arguments, generator) {
7421
7421
  if (!Symbol.asyncIterator)
@@ -7426,15 +7426,15 @@ function __asyncGenerator4(thisArg, _arguments, generator) {
7426
7426
  }, i3;
7427
7427
  function verb(n3) {
7428
7428
  if (g3[n3])
7429
- i3[n3] = function(v) {
7429
+ i3[n3] = function(v3) {
7430
7430
  return new Promise(function(a3, b3) {
7431
- q3.push([n3, v, a3, b3]) > 1 || resume(n3, v);
7431
+ q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3);
7432
7432
  });
7433
7433
  };
7434
7434
  }
7435
- function resume(n3, v) {
7435
+ function resume(n3, v3) {
7436
7436
  try {
7437
- step(g3[n3](v));
7437
+ step(g3[n3](v3));
7438
7438
  } catch (e3) {
7439
7439
  settle(q3[0][3], e3);
7440
7440
  }
@@ -7448,8 +7448,8 @@ function __asyncGenerator4(thisArg, _arguments, generator) {
7448
7448
  function reject(value) {
7449
7449
  resume("throw", value);
7450
7450
  }
7451
- function settle(f3, v) {
7452
- if (f3(v), q3.shift(), q3.length)
7451
+ function settle(f3, v3) {
7452
+ if (f3(v3), q3.shift(), q3.length)
7453
7453
  resume(q3[0][0], q3[0][1]);
7454
7454
  }
7455
7455
  }
@@ -7461,8 +7461,8 @@ function __asyncDelegator4(o3) {
7461
7461
  return this;
7462
7462
  }, i3;
7463
7463
  function verb(n3, f3) {
7464
- i3[n3] = o3[n3] ? function(v) {
7465
- return (p3 = !p3) ? { value: __await4(o3[n3](v)), done: n3 === "return" } : f3 ? f3(v) : v;
7464
+ i3[n3] = o3[n3] ? function(v3) {
7465
+ return (p3 = !p3) ? { value: __await4(o3[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3;
7466
7466
  } : f3;
7467
7467
  }
7468
7468
  }
@@ -7474,15 +7474,15 @@ function __asyncValues4(o3) {
7474
7474
  return this;
7475
7475
  }, i3);
7476
7476
  function verb(n3) {
7477
- i3[n3] = o3[n3] && function(v) {
7477
+ i3[n3] = o3[n3] && function(v3) {
7478
7478
  return new Promise(function(resolve, reject) {
7479
- v = o3[n3](v), settle(resolve, reject, v.done, v.value);
7479
+ v3 = o3[n3](v3), settle(resolve, reject, v3.done, v3.value);
7480
7480
  });
7481
7481
  };
7482
7482
  }
7483
- function settle(resolve, reject, d3, v) {
7484
- Promise.resolve(v).then(function(v2) {
7485
- resolve({ value: v2, done: d3 });
7483
+ function settle(resolve, reject, d3, v3) {
7484
+ Promise.resolve(v3).then(function(v5) {
7485
+ resolve({ value: v5, done: d3 });
7486
7486
  }, reject);
7487
7487
  }
7488
7488
  }
@@ -7740,8 +7740,8 @@ function __generator5(thisArg, body) {
7740
7740
  return this;
7741
7741
  }), g3;
7742
7742
  function verb(n3) {
7743
- return function(v) {
7744
- return step([n3, v]);
7743
+ return function(v3) {
7744
+ return step([n3, v3]);
7745
7745
  };
7746
7746
  }
7747
7747
  function step(op) {
@@ -7864,8 +7864,8 @@ function __spreadArrays5() {
7864
7864
  r3[k3] = a3[j3];
7865
7865
  return r3;
7866
7866
  }
7867
- function __await5(v) {
7868
- return this instanceof __await5 ? (this.v = v, this) : new __await5(v);
7867
+ function __await5(v3) {
7868
+ return this instanceof __await5 ? (this.v = v3, this) : new __await5(v3);
7869
7869
  }
7870
7870
  function __asyncGenerator5(thisArg, _arguments, generator) {
7871
7871
  if (!Symbol.asyncIterator)
@@ -7876,15 +7876,15 @@ function __asyncGenerator5(thisArg, _arguments, generator) {
7876
7876
  }, i3;
7877
7877
  function verb(n3) {
7878
7878
  if (g3[n3])
7879
- i3[n3] = function(v) {
7879
+ i3[n3] = function(v3) {
7880
7880
  return new Promise(function(a3, b3) {
7881
- q3.push([n3, v, a3, b3]) > 1 || resume(n3, v);
7881
+ q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3);
7882
7882
  });
7883
7883
  };
7884
7884
  }
7885
- function resume(n3, v) {
7885
+ function resume(n3, v3) {
7886
7886
  try {
7887
- step(g3[n3](v));
7887
+ step(g3[n3](v3));
7888
7888
  } catch (e3) {
7889
7889
  settle(q3[0][3], e3);
7890
7890
  }
@@ -7898,8 +7898,8 @@ function __asyncGenerator5(thisArg, _arguments, generator) {
7898
7898
  function reject(value) {
7899
7899
  resume("throw", value);
7900
7900
  }
7901
- function settle(f3, v) {
7902
- if (f3(v), q3.shift(), q3.length)
7901
+ function settle(f3, v3) {
7902
+ if (f3(v3), q3.shift(), q3.length)
7903
7903
  resume(q3[0][0], q3[0][1]);
7904
7904
  }
7905
7905
  }
@@ -7911,8 +7911,8 @@ function __asyncDelegator5(o3) {
7911
7911
  return this;
7912
7912
  }, i3;
7913
7913
  function verb(n3, f3) {
7914
- i3[n3] = o3[n3] ? function(v) {
7915
- return (p3 = !p3) ? { value: __await5(o3[n3](v)), done: n3 === "return" } : f3 ? f3(v) : v;
7914
+ i3[n3] = o3[n3] ? function(v3) {
7915
+ return (p3 = !p3) ? { value: __await5(o3[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3;
7916
7916
  } : f3;
7917
7917
  }
7918
7918
  }
@@ -7924,15 +7924,15 @@ function __asyncValues5(o3) {
7924
7924
  return this;
7925
7925
  }, i3);
7926
7926
  function verb(n3) {
7927
- i3[n3] = o3[n3] && function(v) {
7927
+ i3[n3] = o3[n3] && function(v3) {
7928
7928
  return new Promise(function(resolve, reject) {
7929
- v = o3[n3](v), settle(resolve, reject, v.done, v.value);
7929
+ v3 = o3[n3](v3), settle(resolve, reject, v3.done, v3.value);
7930
7930
  });
7931
7931
  };
7932
7932
  }
7933
- function settle(resolve, reject, d3, v) {
7934
- Promise.resolve(v).then(function(v2) {
7935
- resolve({ value: v2, done: d3 });
7933
+ function settle(resolve, reject, d3, v3) {
7934
+ Promise.resolve(v3).then(function(v5) {
7935
+ resolve({ value: v5, done: d3 });
7936
7936
  }, reject);
7937
7937
  }
7938
7938
  }
@@ -8261,20 +8261,20 @@ var require_es5 = __commonJS({
8261
8261
  return e5.split(".").length;
8262
8262
  }, e4.compareVersions = function(t4, r4, n4) {
8263
8263
  void 0 === n4 && (n4 = false);
8264
- var i4 = e4.getVersionPrecision(t4), s3 = e4.getVersionPrecision(r4), a3 = Math.max(i4, s3), o3 = 0, u = e4.map([t4, r4], function(t5) {
8264
+ var i4 = e4.getVersionPrecision(t4), s3 = e4.getVersionPrecision(r4), a3 = Math.max(i4, s3), o3 = 0, u3 = e4.map([t4, r4], function(t5) {
8265
8265
  var r5 = a3 - e4.getVersionPrecision(t5), n5 = t5 + new Array(r5 + 1).join(".0");
8266
8266
  return e4.map(n5.split("."), function(e5) {
8267
8267
  return new Array(20 - e5.length).join("0") + e5;
8268
8268
  }).reverse();
8269
8269
  });
8270
8270
  for (n4 && (o3 = a3 - Math.min(i4, s3)), a3 -= 1; a3 >= o3; ) {
8271
- if (u[0][a3] > u[1][a3])
8271
+ if (u3[0][a3] > u3[1][a3])
8272
8272
  return 1;
8273
- if (u[0][a3] === u[1][a3]) {
8273
+ if (u3[0][a3] === u3[1][a3]) {
8274
8274
  if (a3 === o3)
8275
8275
  return 0;
8276
8276
  a3 -= 1;
8277
- } else if (u[0][a3] < u[1][a3])
8277
+ } else if (u3[0][a3] < u3[1][a3])
8278
8278
  return -1;
8279
8279
  }
8280
8280
  }, e4.map = function(e5, t4) {
@@ -8356,8 +8356,8 @@ var require_es5 = __commonJS({
8356
8356
  }, 91: function(e3, t3, r3) {
8357
8357
  "use strict";
8358
8358
  t3.__esModule = true, t3.default = void 0;
8359
- var n3 = u(r3(92)), i3 = u(r3(93)), s3 = u(r3(94)), a3 = u(r3(95)), o3 = u(r3(17));
8360
- function u(e4) {
8359
+ var n3 = u3(r3(92)), i3 = u3(r3(93)), s3 = u3(r3(94)), a3 = u3(r3(95)), o3 = u3(r3(17));
8360
+ function u3(e4) {
8361
8361
  return e4 && e4.__esModule ? e4 : { default: e4 };
8362
8362
  }
8363
8363
  var d3 = function() {
@@ -8456,11 +8456,11 @@ var require_es5 = __commonJS({
8456
8456
  var a5 = e5[t6];
8457
8457
  "string" == typeof a5 ? (i4[t6] = a5, s4 += 1) : "object" == typeof a5 && (r4[t6] = a5, n4 += 1);
8458
8458
  }), n4 > 0) {
8459
- var a4 = Object.keys(r4), u2 = o3.default.find(a4, function(e6) {
8459
+ var a4 = Object.keys(r4), u4 = o3.default.find(a4, function(e6) {
8460
8460
  return t5.isOS(e6);
8461
8461
  });
8462
- if (u2) {
8463
- var d4 = this.satisfies(r4[u2]);
8462
+ if (u4) {
8463
+ var d4 = this.satisfies(r4[u4]);
8464
8464
  if (void 0 !== d4)
8465
8465
  return d4;
8466
8466
  }
@@ -10541,13 +10541,13 @@ var require_code2 = __commonJS({
10541
10541
  exports.callValidateCode = callValidateCode;
10542
10542
  var newRegExp = (0, codegen_1._)`new RegExp`;
10543
10543
  function usePattern({ gen, it: { opts } }, pattern) {
10544
- const u = opts.unicodeRegExp ? "u" : "";
10544
+ const u3 = opts.unicodeRegExp ? "u" : "";
10545
10545
  const { regExp } = opts.code;
10546
- const rx = regExp(pattern, u);
10546
+ const rx = regExp(pattern, u3);
10547
10547
  return gen.scopeValue("pattern", {
10548
10548
  key: rx.toString(),
10549
10549
  ref: rx,
10550
- code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
10550
+ code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u3})`
10551
10551
  });
10552
10552
  }
10553
10553
  exports.usePattern = usePattern;
@@ -13077,17 +13077,17 @@ var require_core2 = __commonJS({
13077
13077
  return this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : void 0;
13078
13078
  }
13079
13079
  validate(schemaKeyRef, data) {
13080
- let v;
13080
+ let v3;
13081
13081
  if (typeof schemaKeyRef == "string") {
13082
- v = this.getSchema(schemaKeyRef);
13083
- if (!v)
13082
+ v3 = this.getSchema(schemaKeyRef);
13083
+ if (!v3)
13084
13084
  throw new Error(`no schema with key or ref "${schemaKeyRef}"`);
13085
13085
  } else {
13086
- v = this.compile(schemaKeyRef);
13086
+ v3 = this.compile(schemaKeyRef);
13087
13087
  }
13088
- const valid = v(data);
13089
- if (!("$async" in v))
13090
- this.errors = v.errors;
13088
+ const valid = v3(data);
13089
+ if (!("$async" in v3))
13090
+ this.errors = v3.errors;
13091
13091
  return valid;
13092
13092
  }
13093
13093
  compile(schema, _meta) {
@@ -13581,8 +13581,8 @@ var require_ref = __commonJS({
13581
13581
  return callRef(cxt, (0, codegen_1._)`${rootName}.validate`, root, root.$async);
13582
13582
  }
13583
13583
  function callValidate(sch) {
13584
- const v = getValidate(cxt, sch);
13585
- callRef(cxt, v, sch, sch.$async);
13584
+ const v3 = getValidate(cxt, sch);
13585
+ callRef(cxt, v3, sch, sch.$async);
13586
13586
  }
13587
13587
  function inlineRefSchema(sch) {
13588
13588
  const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });
@@ -13604,7 +13604,7 @@ var require_ref = __commonJS({
13604
13604
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
13605
13605
  }
13606
13606
  exports.getValidate = getValidate;
13607
- function callRef(cxt, v, sch, $async) {
13607
+ function callRef(cxt, v3, sch, $async) {
13608
13608
  const { gen, it } = cxt;
13609
13609
  const { allErrors, schemaEnv: env, opts } = it;
13610
13610
  const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
@@ -13617,8 +13617,8 @@ var require_ref = __commonJS({
13617
13617
  throw new Error("async schema referenced by sync schema");
13618
13618
  const valid = gen.let("valid");
13619
13619
  gen.try(() => {
13620
- gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);
13621
- addEvaluatedFrom(v);
13620
+ gen.code((0, codegen_1._)`await ${(0, code_1.callValidateCode)(cxt, v3, passCxt)}`);
13621
+ addEvaluatedFrom(v3);
13622
13622
  if (!allErrors)
13623
13623
  gen.assign(valid, true);
13624
13624
  }, (e3) => {
@@ -13630,7 +13630,7 @@ var require_ref = __commonJS({
13630
13630
  cxt.ok(valid);
13631
13631
  }
13632
13632
  function callSyncRef() {
13633
- cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));
13633
+ cxt.result((0, code_1.callValidateCode)(cxt, v3, passCxt), () => addEvaluatedFrom(v3), () => addErrorsFrom(v3));
13634
13634
  }
13635
13635
  function addErrorsFrom(source) {
13636
13636
  const errs = (0, codegen_1._)`${source}.errors`;
@@ -13827,8 +13827,8 @@ var require_pattern = __commonJS({
13827
13827
  error,
13828
13828
  code(cxt) {
13829
13829
  const { data, $data, schema, schemaCode, it } = cxt;
13830
- const u = it.opts.unicodeRegExp ? "u" : "";
13831
- const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
13830
+ const u3 = it.opts.unicodeRegExp ? "u" : "";
13831
+ const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u3}))` : (0, code_1.usePattern)(cxt, schema);
13832
13832
  cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
13833
13833
  }
13834
13834
  };
@@ -14120,7 +14120,7 @@ var require_enum = __commonJS({
14120
14120
  cxt.pass(valid);
14121
14121
  function loopEnum() {
14122
14122
  gen.assign(valid, false);
14123
- gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
14123
+ gen.forOf("v", schemaCode, (v3) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v3})`, () => gen.assign(valid, true).break()));
14124
14124
  }
14125
14125
  function equalCode(vSchema, i3) {
14126
14126
  const sch = schema[i3];
@@ -15502,7 +15502,7 @@ var require_ajv = __commonJS({
15502
15502
  var Ajv = class extends core_1.default {
15503
15503
  _addVocabularies() {
15504
15504
  super._addVocabularies();
15505
- draft7_1.default.forEach((v) => this.addVocabulary(v));
15505
+ draft7_1.default.forEach((v3) => this.addVocabulary(v3));
15506
15506
  if (this.opts.discriminator)
15507
15507
  this.addKeyword(discriminator_1.default);
15508
15508
  }
@@ -15963,8 +15963,16 @@ var require_fail = __commonJS({
15963
15963
  Cause: {
15964
15964
  type: "string"
15965
15965
  },
15966
+ CausePath: {
15967
+ $comment: "This field is a ReferencePath with limited Intrinsic Function support. Using string until custom validation is available.",
15968
+ type: "string"
15969
+ },
15966
15970
  Error: {
15967
15971
  type: "string"
15972
+ },
15973
+ ErrorPath: {
15974
+ $comment: "This field is a ReferencePath with limited Intrinsic Function support. Using string until custom validation is available.",
15975
+ type: "string"
15968
15976
  }
15969
15977
  },
15970
15978
  required: ["Type"],
@@ -16731,6 +16739,8 @@ var require_types2 = __commonJS({
16731
16739
  StateMachineErrorCode2["MapToleratedFailureError"] = "MAP_TOLERATED_FAILURE";
16732
16740
  StateMachineErrorCode2["MapMaxConcurrencyError"] = "MAP_CONCURRENCY_ERROR";
16733
16741
  StateMachineErrorCode2["MapItemReaderMaxItemsError"] = "MAP_ITEMREADER_MAXITEM";
16742
+ StateMachineErrorCode2["FailCauseProperty"] = "FAIL_CAUSE_PROPERTY";
16743
+ StateMachineErrorCode2["FailErrorProperty"] = "FAIL_ERROR_PROPERTY";
16734
16744
  })(StateMachineErrorCode || (exports.StateMachineErrorCode = StateMachineErrorCode = {}));
16735
16745
  }
16736
16746
  });
@@ -17114,14 +17124,14 @@ var require_aslPaths = __commonJS({
17114
17124
  var peg$f41 = function(path, op, minus, val) {
17115
17125
  return { path, op, val: minus === "-" ? -val : val };
17116
17126
  };
17117
- var peg$f42 = function(v) {
17118
- return v.join("");
17127
+ var peg$f42 = function(v3) {
17128
+ return v3.join("");
17119
17129
  };
17120
- var peg$f43 = function(v) {
17121
- return v.join("");
17130
+ var peg$f43 = function(v3) {
17131
+ return v3.join("");
17122
17132
  };
17123
- var peg$f44 = function(v) {
17124
- return v.join("");
17133
+ var peg$f44 = function(v3) {
17134
+ return v3.join("");
17125
17135
  };
17126
17136
  var peg$f45 = function(c3) {
17127
17137
  return c3;
@@ -19276,10 +19286,10 @@ var require_json_schema_errors = __commonJS({
19276
19286
  schemaPath: decodeURIComponent(error.schemaPath)
19277
19287
  }
19278
19288
  };
19279
- }).filter(function(v, i3, a3) {
19280
- return a3.findIndex(function(v2) {
19289
+ }).filter(function(v3, i3, a3) {
19290
+ return a3.findIndex(function(v22) {
19281
19291
  var _a, _b;
19282
- return v2.schemaError.schemaPath === ((_a = v.schemaError) === null || _a === void 0 ? void 0 : _a.schemaPath) && v2.schemaError.instancePath === ((_b = v.schemaError) === null || _b === void 0 ? void 0 : _b.instancePath);
19292
+ return v22.schemaError.schemaPath === ((_a = v3.schemaError) === null || _a === void 0 ? void 0 : _a.schemaPath) && v22.schemaError.instancePath === ((_b = v3.schemaError) === null || _b === void 0 ? void 0 : _b.instancePath);
19283
19293
  }) === i3;
19284
19294
  });
19285
19295
  };
@@ -19787,6 +19797,20 @@ var require_validator = __commonJS({
19787
19797
  path: "$.ItemBatcher",
19788
19798
  errorCode: types_1.StateMachineErrorCode.MapItemBatcherError
19789
19799
  })
19800
+ },
19801
+ {
19802
+ filter: state_checks_1.IsFail,
19803
+ checker: (0, state_checks_1.AtMostOne)({
19804
+ props: ["Cause", "CausePath"],
19805
+ errorCode: types_1.StateMachineErrorCode.FailCauseProperty
19806
+ })
19807
+ },
19808
+ {
19809
+ filter: state_checks_1.IsFail,
19810
+ checker: (0, state_checks_1.AtMostOne)({
19811
+ props: ["Error", "ErrorPath"],
19812
+ errorCode: types_1.StateMachineErrorCode.FailErrorProperty
19813
+ })
19790
19814
  }
19791
19815
  ]));
19792
19816
  }
@@ -19886,6 +19910,8 @@ function isPlainObj(value) {
19886
19910
  return !!value && Object.getPrototypeOf(value) === Object.prototype;
19887
19911
  }
19888
19912
  function sleep(ms, abortSignal) {
19913
+ if (ms === 0)
19914
+ return;
19889
19915
  return new Promise((resolve) => {
19890
19916
  if (abortSignal?.aborted) {
19891
19917
  return resolve();
@@ -19911,6 +19937,13 @@ function isRFC3339Timestamp(date) {
19911
19937
  function stringifyJSONValue(value) {
19912
19938
  return JSON.stringify(value);
19913
19939
  }
19940
+ function clamp(value, min, max) {
19941
+ if (min && value < min)
19942
+ return min;
19943
+ if (max && value > max)
19944
+ return max;
19945
+ return value;
19946
+ }
19914
19947
 
19915
19948
  // src/stateMachine/jsonPath/JsonPath.ts
19916
19949
  init_index_browser_esm();
@@ -20657,9 +20690,18 @@ function processInputPath(path, input, context) {
20657
20690
  return jsonPathQuery(path, input, context);
20658
20691
  }
20659
20692
  function processPayloadTemplate(payloadTemplate, json, context) {
20693
+ if (typeof payloadTemplate !== "object" || payloadTemplate === null) {
20694
+ return payloadTemplate;
20695
+ }
20696
+ if (Array.isArray(payloadTemplate)) {
20697
+ return payloadTemplate.map((value) => processPayloadTemplate(value, json, context));
20698
+ }
20660
20699
  const resolvedProperties = Object.entries(payloadTemplate).map(([key, value]) => {
20661
20700
  let sanitizedKey = key;
20662
20701
  let resolvedValue = value;
20702
+ if (Array.isArray(value)) {
20703
+ resolvedValue = value.map((innerValue) => processPayloadTemplate(innerValue, json, context));
20704
+ }
20663
20705
  if (isPlainObj(value)) {
20664
20706
  resolvedValue = processPayloadTemplate(value, json, context);
20665
20707
  }
@@ -21161,7 +21203,20 @@ var FailStateAction = class extends BaseStateAction {
21161
21203
  super(stateDefinition, stateName);
21162
21204
  }
21163
21205
  async execute(input, context, options) {
21164
- throw new FailStateError(this.stateDefinition.Error, this.stateDefinition.Cause);
21206
+ const state = this.stateDefinition;
21207
+ let error = state.Error;
21208
+ let cause = state.Cause;
21209
+ if (state.ErrorPath) {
21210
+ error = jsonPathQuery(state.ErrorPath, input, context, {
21211
+ constraints: [StringConstraint]
21212
+ });
21213
+ }
21214
+ if (state.CausePath) {
21215
+ cause = jsonPathQuery(state.CausePath, input, context, {
21216
+ constraints: [StringConstraint]
21217
+ });
21218
+ }
21219
+ throw new FailStateError(error, cause);
21165
21220
  }
21166
21221
  };
21167
21222
 
@@ -21176,6 +21231,31 @@ var ArrayConstraint = class extends BaseJSONPathConstraint {
21176
21231
  }
21177
21232
  };
21178
21233
 
21234
+ // src/stateMachine/jsonPath/constraints/IntegerConstraint.ts
21235
+ var IntegerConstraint = class extends BaseJSONPathConstraint {
21236
+ test(value) {
21237
+ if (!Number.isInteger(value)) {
21238
+ throw new StatesRuntimeError(
21239
+ `Path expression '${this.pathExpression}' evaluated to ${stringifyJSONValue(value)}, but expected an integer`
21240
+ );
21241
+ }
21242
+ }
21243
+ static greaterThanOrEqual(n3) {
21244
+ return class extends this {
21245
+ test(value) {
21246
+ super.test(value);
21247
+ if (value < n3) {
21248
+ throw new StatesRuntimeError(
21249
+ `Path expression '${this.pathExpression}' evaluated to ${stringifyJSONValue(
21250
+ value
21251
+ )}, but expected an integer >= ${n3}`
21252
+ );
21253
+ }
21254
+ }
21255
+ };
21256
+ }
21257
+ };
21258
+
21179
21259
  // src/stateMachine/stateActions/MapStateAction.ts
21180
21260
  var import_p_limit = __toESM(require_p_limit(), 1);
21181
21261
  var DEFAULT_MAX_CONCURRENCY = 40;
@@ -21200,8 +21280,9 @@ var MapStateAction = class extends BaseStateAction {
21200
21280
  Value: item
21201
21281
  }
21202
21282
  };
21203
- if (state.Parameters) {
21204
- paramValue = processPayloadTemplate(state.Parameters, input, context);
21283
+ if (state.Parameters || state.ItemSelector) {
21284
+ const parameters = state.ItemSelector ?? state.Parameters;
21285
+ paramValue = processPayloadTemplate(parameters, input, context);
21205
21286
  }
21206
21287
  const execution = stateMachine.run(paramValue ?? item, options.runOptions);
21207
21288
  this.executionAbortFuncs.push(execution.abort);
@@ -21219,11 +21300,19 @@ var MapStateAction = class extends BaseStateAction {
21219
21300
  if (!Array.isArray(items)) {
21220
21301
  throw new StatesRuntimeError("Input of Map state must be an array or ItemsPath property must point to an array");
21221
21302
  }
21222
- const iteratorStateMachine = new StateMachine(state.Iterator, {
21303
+ const iteratorDefinition = state.ItemProcessor ?? state.Iterator;
21304
+ const iteratorStateMachine = new StateMachine(iteratorDefinition, {
21223
21305
  ...options.stateMachineOptions,
21224
21306
  validationOptions: { noValidate: true }
21225
21307
  });
21226
- const limit = (0, import_p_limit.default)(state.MaxConcurrency || DEFAULT_MAX_CONCURRENCY);
21308
+ let maxConcurrency = state.MaxConcurrency;
21309
+ if (state.MaxConcurrencyPath) {
21310
+ maxConcurrency = jsonPathQuery(state.MaxConcurrencyPath, input, context, {
21311
+ constraints: [IntegerConstraint.greaterThanOrEqual(0)],
21312
+ ignoreDefinedValueConstraint: true
21313
+ });
21314
+ }
21315
+ const limit = (0, import_p_limit.default)(maxConcurrency || DEFAULT_MAX_CONCURRENCY);
21227
21316
  const processedItemsPromise = items.map(
21228
21317
  (item, i3) => limit(() => this.processItem(iteratorStateMachine, item, input, context, i3, options))
21229
21318
  );
@@ -21309,13 +21398,52 @@ var SucceedStateAction = class extends BaseStateAction {
21309
21398
  }
21310
21399
  };
21311
21400
 
21312
- // node_modules/@smithy/types/dist-es/auth.js
21401
+ // src/error/predefined/StatesTimeoutError.ts
21402
+ var StatesTimeoutError = class extends RuntimeError {
21403
+ constructor() {
21404
+ super("States.Timeout");
21405
+ this.name = "States.Timeout";
21406
+ }
21407
+ };
21408
+
21409
+ // node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
21410
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
21411
+ let httpHandler = runtimeConfig.httpHandler;
21412
+ return {
21413
+ setHttpHandler(handler) {
21414
+ httpHandler = handler;
21415
+ },
21416
+ httpHandler() {
21417
+ return httpHandler;
21418
+ },
21419
+ updateHttpClientConfig(key, value) {
21420
+ httpHandler.updateHttpClientConfig(key, value);
21421
+ },
21422
+ httpHandlerConfigs() {
21423
+ return httpHandler.httpHandlerConfigs();
21424
+ }
21425
+ };
21426
+ };
21427
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
21428
+ return {
21429
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
21430
+ };
21431
+ };
21432
+
21433
+ // node_modules/@smithy/types/dist-es/auth/auth.js
21313
21434
  var HttpAuthLocation;
21314
21435
  (function(HttpAuthLocation2) {
21315
21436
  HttpAuthLocation2["HEADER"] = "header";
21316
21437
  HttpAuthLocation2["QUERY"] = "query";
21317
21438
  })(HttpAuthLocation || (HttpAuthLocation = {}));
21318
21439
 
21440
+ // node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js
21441
+ var HttpApiKeyAuthLocation;
21442
+ (function(HttpApiKeyAuthLocation2) {
21443
+ HttpApiKeyAuthLocation2["HEADER"] = "header";
21444
+ HttpApiKeyAuthLocation2["QUERY"] = "query";
21445
+ })(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
21446
+
21319
21447
  // node_modules/@smithy/types/dist-es/endpoint.js
21320
21448
  var EndpointURLScheme;
21321
21449
  (function(EndpointURLScheme2) {
@@ -21340,6 +21468,17 @@ var FieldPosition;
21340
21468
  FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
21341
21469
  })(FieldPosition || (FieldPosition = {}));
21342
21470
 
21471
+ // node_modules/@smithy/types/dist-es/middleware.js
21472
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
21473
+
21474
+ // node_modules/@smithy/types/dist-es/profile.js
21475
+ var IniSectionType;
21476
+ (function(IniSectionType2) {
21477
+ IniSectionType2["PROFILE"] = "profile";
21478
+ IniSectionType2["SSO_SESSION"] = "sso-session";
21479
+ IniSectionType2["SERVICES"] = "services";
21480
+ })(IniSectionType || (IniSectionType = {}));
21481
+
21343
21482
  // node_modules/@smithy/types/dist-es/transfer.js
21344
21483
  var RequestHandlerProtocol;
21345
21484
  (function(RequestHandlerProtocol2) {
@@ -21416,7 +21555,7 @@ var hostHeaderMiddleware = (options) => (next) => async (args) => {
21416
21555
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
21417
21556
  if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
21418
21557
  delete request.headers["host"];
21419
- request.headers[":authority"] = "";
21558
+ request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
21420
21559
  } else if (!request.headers["host"]) {
21421
21560
  let host = request.hostname;
21422
21561
  if (request.port != null)
@@ -22008,6 +22147,9 @@ var SmithyMessageEncoderStream = class {
22008
22147
  }
22009
22148
  };
22010
22149
 
22150
+ // node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
22151
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
22152
+
22011
22153
  // node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
22012
22154
  var normalizeProvider = (input) => {
22013
22155
  if (typeof input === "function")
@@ -22489,13 +22631,24 @@ var awsAuthMiddleware = (options) => (next, context) => async function(args) {
22489
22631
  const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
22490
22632
  const multiRegionOverride = authScheme?.name === "sigv4a" ? authScheme?.signingRegionSet?.join(",") : void 0;
22491
22633
  const signer = await options.signer(authScheme);
22634
+ let signedRequest;
22635
+ const signingOptions = {
22636
+ signingDate: getSkewCorrectedDate(options.systemClockOffset),
22637
+ signingRegion: multiRegionOverride || context["signing_region"],
22638
+ signingService: context["signing_service"]
22639
+ };
22640
+ if (context.s3ExpressIdentity) {
22641
+ const sigV4MultiRegion = signer;
22642
+ signedRequest = await sigV4MultiRegion.signWithCredentials(args.request, context.s3ExpressIdentity, signingOptions);
22643
+ if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) {
22644
+ throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");
22645
+ }
22646
+ } else {
22647
+ signedRequest = await signer.sign(args.request, signingOptions);
22648
+ }
22492
22649
  const output = await next({
22493
22650
  ...args,
22494
- request: await signer.sign(args.request, {
22495
- signingDate: getSkewCorrectedDate(options.systemClockOffset),
22496
- signingRegion: multiRegionOverride || context["signing_region"],
22497
- signingService: context["signing_service"]
22498
- })
22651
+ request: signedRequest
22499
22652
  }).catch((error) => {
22500
22653
  const serverTime = error.ServerTime ?? getDateHeader(error.$response);
22501
22654
  if (serverTime) {
@@ -22531,379 +22684,65 @@ function resolveUserAgentConfig(input) {
22531
22684
  };
22532
22685
  }
22533
22686
 
22534
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
22535
- var partitions_default = {
22536
- partitions: [{
22537
- id: "aws",
22538
- outputs: {
22539
- dnsSuffix: "amazonaws.com",
22540
- dualStackDnsSuffix: "api.aws",
22541
- name: "aws",
22542
- supportsDualStack: true,
22543
- supportsFIPS: true
22544
- },
22545
- regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",
22546
- regions: {
22547
- "af-south-1": {
22548
- description: "Africa (Cape Town)"
22549
- },
22550
- "ap-east-1": {
22551
- description: "Asia Pacific (Hong Kong)"
22552
- },
22553
- "ap-northeast-1": {
22554
- description: "Asia Pacific (Tokyo)"
22555
- },
22556
- "ap-northeast-2": {
22557
- description: "Asia Pacific (Seoul)"
22558
- },
22559
- "ap-northeast-3": {
22560
- description: "Asia Pacific (Osaka)"
22561
- },
22562
- "ap-south-1": {
22563
- description: "Asia Pacific (Mumbai)"
22564
- },
22565
- "ap-south-2": {
22566
- description: "Asia Pacific (Hyderabad)"
22567
- },
22568
- "ap-southeast-1": {
22569
- description: "Asia Pacific (Singapore)"
22570
- },
22571
- "ap-southeast-2": {
22572
- description: "Asia Pacific (Sydney)"
22573
- },
22574
- "ap-southeast-3": {
22575
- description: "Asia Pacific (Jakarta)"
22576
- },
22577
- "ap-southeast-4": {
22578
- description: "Asia Pacific (Melbourne)"
22579
- },
22580
- "aws-global": {
22581
- description: "AWS Standard global region"
22582
- },
22583
- "ca-central-1": {
22584
- description: "Canada (Central)"
22585
- },
22586
- "eu-central-1": {
22587
- description: "Europe (Frankfurt)"
22588
- },
22589
- "eu-central-2": {
22590
- description: "Europe (Zurich)"
22591
- },
22592
- "eu-north-1": {
22593
- description: "Europe (Stockholm)"
22594
- },
22595
- "eu-south-1": {
22596
- description: "Europe (Milan)"
22597
- },
22598
- "eu-south-2": {
22599
- description: "Europe (Spain)"
22600
- },
22601
- "eu-west-1": {
22602
- description: "Europe (Ireland)"
22603
- },
22604
- "eu-west-2": {
22605
- description: "Europe (London)"
22606
- },
22607
- "eu-west-3": {
22608
- description: "Europe (Paris)"
22609
- },
22610
- "il-central-1": {
22611
- description: "Israel (Tel Aviv)"
22612
- },
22613
- "me-central-1": {
22614
- description: "Middle East (UAE)"
22615
- },
22616
- "me-south-1": {
22617
- description: "Middle East (Bahrain)"
22618
- },
22619
- "sa-east-1": {
22620
- description: "South America (Sao Paulo)"
22621
- },
22622
- "us-east-1": {
22623
- description: "US East (N. Virginia)"
22624
- },
22625
- "us-east-2": {
22626
- description: "US East (Ohio)"
22627
- },
22628
- "us-west-1": {
22629
- description: "US West (N. California)"
22630
- },
22631
- "us-west-2": {
22632
- description: "US West (Oregon)"
22633
- }
22687
+ // node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
22688
+ var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
22689
+ var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
22690
+
22691
+ // node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
22692
+ var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
22693
+ var isValidHostLabel = (value, allowSubDomains = false) => {
22694
+ if (!allowSubDomains) {
22695
+ return VALID_HOST_LABEL_REGEX.test(value);
22696
+ }
22697
+ const labels = value.split(".");
22698
+ for (const label of labels) {
22699
+ if (!isValidHostLabel(label)) {
22700
+ return false;
22634
22701
  }
22635
- }, {
22636
- id: "aws-cn",
22637
- outputs: {
22638
- dnsSuffix: "amazonaws.com.cn",
22639
- dualStackDnsSuffix: "api.amazonwebservices.com.cn",
22640
- name: "aws-cn",
22641
- supportsDualStack: true,
22642
- supportsFIPS: true
22643
- },
22644
- regionRegex: "^cn\\-\\w+\\-\\d+$",
22645
- regions: {
22646
- "aws-cn-global": {
22647
- description: "AWS China global region"
22648
- },
22649
- "cn-north-1": {
22650
- description: "China (Beijing)"
22651
- },
22652
- "cn-northwest-1": {
22653
- description: "China (Ningxia)"
22654
- }
22655
- }
22656
- }, {
22657
- id: "aws-us-gov",
22658
- outputs: {
22659
- dnsSuffix: "amazonaws.com",
22660
- dualStackDnsSuffix: "api.aws",
22661
- name: "aws-us-gov",
22662
- supportsDualStack: true,
22663
- supportsFIPS: true
22664
- },
22665
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
22666
- regions: {
22667
- "aws-us-gov-global": {
22668
- description: "AWS GovCloud (US) global region"
22669
- },
22670
- "us-gov-east-1": {
22671
- description: "AWS GovCloud (US-East)"
22672
- },
22673
- "us-gov-west-1": {
22674
- description: "AWS GovCloud (US-West)"
22675
- }
22676
- }
22677
- }, {
22678
- id: "aws-iso",
22679
- outputs: {
22680
- dnsSuffix: "c2s.ic.gov",
22681
- dualStackDnsSuffix: "c2s.ic.gov",
22682
- name: "aws-iso",
22683
- supportsDualStack: false,
22684
- supportsFIPS: true
22685
- },
22686
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
22687
- regions: {
22688
- "aws-iso-global": {
22689
- description: "AWS ISO (US) global region"
22690
- },
22691
- "us-iso-east-1": {
22692
- description: "US ISO East"
22693
- },
22694
- "us-iso-west-1": {
22695
- description: "US ISO WEST"
22696
- }
22697
- }
22698
- }, {
22699
- id: "aws-iso-b",
22700
- outputs: {
22701
- dnsSuffix: "sc2s.sgov.gov",
22702
- dualStackDnsSuffix: "sc2s.sgov.gov",
22703
- name: "aws-iso-b",
22704
- supportsDualStack: false,
22705
- supportsFIPS: true
22706
- },
22707
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
22708
- regions: {
22709
- "aws-iso-b-global": {
22710
- description: "AWS ISOB (US) global region"
22711
- },
22712
- "us-isob-east-1": {
22713
- description: "US ISOB East (Ohio)"
22714
- }
22715
- }
22716
- }, {
22717
- id: "aws-iso-e",
22718
- outputs: {
22719
- dnsSuffix: "cloud.adc-e.uk",
22720
- dualStackDnsSuffix: "cloud.adc-e.uk",
22721
- name: "aws-iso-e",
22722
- supportsDualStack: false,
22723
- supportsFIPS: true
22724
- },
22725
- regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
22726
- regions: {}
22727
- }, {
22728
- id: "aws-iso-f",
22729
- outputs: {
22730
- dnsSuffix: "csp.hci.ic.gov",
22731
- dualStackDnsSuffix: "csp.hci.ic.gov",
22732
- name: "aws-iso-f",
22733
- supportsDualStack: false,
22734
- supportsFIPS: true
22735
- },
22736
- regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
22737
- regions: {}
22738
- }],
22739
- version: "1.1"
22740
- };
22741
-
22742
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
22743
- var selectedPartitionsInfo = partitions_default;
22744
- var selectedUserAgentPrefix = "";
22745
- var partition = (value) => {
22746
- const { partitions } = selectedPartitionsInfo;
22747
- for (const partition2 of partitions) {
22748
- const { regions, outputs } = partition2;
22749
- for (const [region, regionData] of Object.entries(regions)) {
22750
- if (region === value) {
22751
- return {
22752
- ...outputs,
22753
- ...regionData
22754
- };
22755
- }
22756
- }
22757
- }
22758
- for (const partition2 of partitions) {
22759
- const { regionRegex, outputs } = partition2;
22760
- if (new RegExp(regionRegex).test(value)) {
22761
- return {
22762
- ...outputs
22763
- };
22764
- }
22765
- }
22766
- const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
22767
- if (!DEFAULT_PARTITION) {
22768
- throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
22769
- }
22770
- return {
22771
- ...DEFAULT_PARTITION.outputs
22772
- };
22773
- };
22774
- var setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => {
22775
- selectedPartitionsInfo = partitionsInfo;
22776
- selectedUserAgentPrefix = userAgentPrefix;
22777
- };
22778
- var useDefaultPartitionInfo = () => {
22779
- setPartitionInfo(partitions_default, "");
22780
- };
22781
- var getUserAgentPrefix = () => selectedUserAgentPrefix;
22782
-
22783
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js
22784
- var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
22785
- var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
22786
-
22787
- // node_modules/@aws-sdk/util-endpoints/dist-es/debug/debugId.js
22788
- var debugId = "endpoints";
22789
-
22790
- // node_modules/@aws-sdk/util-endpoints/dist-es/debug/toDebugString.js
22791
- function toDebugString(input) {
22792
- if (typeof input !== "object" || input == null) {
22793
- return input;
22794
- }
22795
- if ("ref" in input) {
22796
- return `$${toDebugString(input.ref)}`;
22797
- }
22798
- if ("fn" in input) {
22799
- return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
22800
- }
22801
- return JSON.stringify(input, null, 2);
22802
- }
22803
-
22804
- // node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js
22805
- var EndpointError = class extends Error {
22806
- constructor(message) {
22807
- super(message);
22808
- this.name = "EndpointError";
22809
- }
22810
- };
22811
-
22812
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/index.js
22813
- var lib_exports = {};
22814
- __export(lib_exports, {
22815
- aws: () => aws_exports,
22816
- booleanEquals: () => booleanEquals,
22817
- getAttr: () => getAttr,
22818
- isSet: () => isSet,
22819
- isValidHostLabel: () => isValidHostLabel,
22820
- not: () => not,
22821
- parseURL: () => parseURL,
22822
- stringEquals: () => stringEquals,
22823
- substring: () => substring,
22824
- uriEncode: () => uriEncode
22825
- });
22826
-
22827
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js
22828
- var aws_exports = {};
22829
- __export(aws_exports, {
22830
- getUserAgentPrefix: () => getUserAgentPrefix,
22831
- isVirtualHostableS3Bucket: () => isVirtualHostableS3Bucket,
22832
- parseArn: () => parseArn,
22833
- partition: () => partition,
22834
- setPartitionInfo: () => setPartitionInfo,
22835
- useDefaultPartitionInfo: () => useDefaultPartitionInfo
22836
- });
22837
-
22838
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/isValidHostLabel.js
22839
- var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
22840
- var isValidHostLabel = (value, allowSubDomains = false) => {
22841
- if (!allowSubDomains) {
22842
- return VALID_HOST_LABEL_REGEX.test(value);
22843
- }
22844
- const labels = value.split(".");
22845
- for (const label of labels) {
22846
- if (!isValidHostLabel(label)) {
22847
- return false;
22848
- }
22849
- }
22850
- return true;
22851
- };
22852
-
22853
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
22854
- var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
22855
- if (allowSubDomains) {
22856
- for (const label of value.split(".")) {
22857
- if (!isVirtualHostableS3Bucket(label)) {
22858
- return false;
22859
- }
22860
- }
22861
- return true;
22862
- }
22863
- if (!isValidHostLabel(value)) {
22864
- return false;
22865
- }
22866
- if (value.length < 3 || value.length > 63) {
22867
- return false;
22868
- }
22869
- if (value !== value.toLowerCase()) {
22870
- return false;
22871
- }
22872
- if (isIpAddress(value)) {
22873
- return false;
22874
- }
22875
- return true;
22876
- };
22877
-
22878
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
22879
- var parseArn = (value) => {
22880
- const segments = value.split(":");
22881
- if (segments.length < 6)
22882
- return null;
22883
- const [arn, partition2, service, region, accountId, ...resourceId] = segments;
22884
- if (arn !== "arn" || partition2 === "" || service === "" || resourceId[0] === "")
22885
- return null;
22886
- return {
22887
- partition: partition2,
22888
- service,
22889
- region,
22890
- accountId,
22891
- resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId
22892
- };
22893
- };
22894
-
22895
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/booleanEquals.js
22896
- var booleanEquals = (value1, value2) => value1 === value2;
22897
-
22898
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/getAttrPathList.js
22899
- var getAttrPathList = (path) => {
22900
- const parts = path.split(".");
22901
- const pathList = [];
22902
- for (const part of parts) {
22903
- const squareBracketIndex = part.indexOf("[");
22904
- if (squareBracketIndex !== -1) {
22905
- if (part.indexOf("]") !== part.length - 1) {
22906
- throw new EndpointError(`Path: '${path}' does not end with ']'`);
22702
+ }
22703
+ return true;
22704
+ };
22705
+
22706
+ // node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
22707
+ var customEndpointFunctions = {};
22708
+
22709
+ // node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
22710
+ var debugId = "endpoints";
22711
+
22712
+ // node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
22713
+ function toDebugString(input) {
22714
+ if (typeof input !== "object" || input == null) {
22715
+ return input;
22716
+ }
22717
+ if ("ref" in input) {
22718
+ return `$${toDebugString(input.ref)}`;
22719
+ }
22720
+ if ("fn" in input) {
22721
+ return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
22722
+ }
22723
+ return JSON.stringify(input, null, 2);
22724
+ }
22725
+
22726
+ // node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
22727
+ var EndpointError = class extends Error {
22728
+ constructor(message) {
22729
+ super(message);
22730
+ this.name = "EndpointError";
22731
+ }
22732
+ };
22733
+
22734
+ // node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
22735
+ var booleanEquals = (value1, value2) => value1 === value2;
22736
+
22737
+ // node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
22738
+ var getAttrPathList = (path) => {
22739
+ const parts = path.split(".");
22740
+ const pathList = [];
22741
+ for (const part of parts) {
22742
+ const squareBracketIndex = part.indexOf("[");
22743
+ if (squareBracketIndex !== -1) {
22744
+ if (part.indexOf("]") !== part.length - 1) {
22745
+ throw new EndpointError(`Path: '${path}' does not end with ']'`);
22907
22746
  }
22908
22747
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
22909
22748
  if (Number.isNaN(parseInt(arrayIndex))) {
@@ -22920,7 +22759,7 @@ var getAttrPathList = (path) => {
22920
22759
  return pathList;
22921
22760
  };
22922
22761
 
22923
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/getAttr.js
22762
+ // node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
22924
22763
  var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
22925
22764
  if (typeof acc !== "object") {
22926
22765
  throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
@@ -22930,20 +22769,13 @@ var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
22930
22769
  return acc[index];
22931
22770
  }, value);
22932
22771
 
22933
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/isSet.js
22772
+ // node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
22934
22773
  var isSet = (value) => value != null;
22935
22774
 
22936
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/not.js
22775
+ // node_modules/@smithy/util-endpoints/dist-es/lib/not.js
22937
22776
  var not = (value) => !value;
22938
22777
 
22939
- // node_modules/@aws-sdk/types/dist-es/dns.js
22940
- var HostAddressType;
22941
- (function(HostAddressType2) {
22942
- HostAddressType2["AAAA"] = "AAAA";
22943
- HostAddressType2["A"] = "A";
22944
- })(HostAddressType || (HostAddressType = {}));
22945
-
22946
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/parseURL.js
22778
+ // node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
22947
22779
  var DEFAULT_PORTS = {
22948
22780
  [EndpointURLScheme.HTTP]: 80,
22949
22781
  [EndpointURLScheme.HTTPS]: 443
@@ -22957,7 +22789,7 @@ var parseURL = (value) => {
22957
22789
  if (typeof value === "object" && "hostname" in value) {
22958
22790
  const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value;
22959
22791
  const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`);
22960
- url.search = Object.entries(query).map(([k3, v]) => `${k3}=${v}`).join("&");
22792
+ url.search = Object.entries(query).map(([k3, v3]) => `${k3}=${v3}`).join("&");
22961
22793
  return url;
22962
22794
  }
22963
22795
  return new URL(value);
@@ -22990,10 +22822,10 @@ var parseURL = (value) => {
22990
22822
  };
22991
22823
  };
22992
22824
 
22993
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/stringEquals.js
22825
+ // node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
22994
22826
  var stringEquals = (value1, value2) => value1 === value2;
22995
22827
 
22996
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/substring.js
22828
+ // node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
22997
22829
  var substring = (input, start, stop, reverse) => {
22998
22830
  if (start >= stop || input.length < stop) {
22999
22831
  return null;
@@ -23004,10 +22836,23 @@ var substring = (input, start, stop, reverse) => {
23004
22836
  return input.substring(input.length - stop, input.length - start);
23005
22837
  };
23006
22838
 
23007
- // node_modules/@aws-sdk/util-endpoints/dist-es/lib/uriEncode.js
22839
+ // node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
23008
22840
  var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`);
23009
22841
 
23010
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateTemplate.js
22842
+ // node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
22843
+ var endpointFunctions = {
22844
+ booleanEquals,
22845
+ getAttr,
22846
+ isSet,
22847
+ isValidHostLabel,
22848
+ not,
22849
+ parseURL,
22850
+ stringEquals,
22851
+ substring,
22852
+ uriEncode
22853
+ };
22854
+
22855
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
23011
22856
  var evaluateTemplate = (template, options) => {
23012
22857
  const evaluatedTemplateArr = [];
23013
22858
  const templateContext = {
@@ -23043,7 +22888,7 @@ var evaluateTemplate = (template, options) => {
23043
22888
  return evaluatedTemplateArr.join("");
23044
22889
  };
23045
22890
 
23046
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/getReferenceValue.js
22891
+ // node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
23047
22892
  var getReferenceValue = ({ ref }, options) => {
23048
22893
  const referenceRecord = {
23049
22894
  ...options.endpointParams,
@@ -23052,7 +22897,7 @@ var getReferenceValue = ({ ref }, options) => {
23052
22897
  return referenceRecord[ref];
23053
22898
  };
23054
22899
 
23055
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateExpression.js
22900
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
23056
22901
  var evaluateExpression = (obj, keyName, options) => {
23057
22902
  if (typeof obj === "string") {
23058
22903
  return evaluateTemplate(obj, options);
@@ -23064,13 +22909,17 @@ var evaluateExpression = (obj, keyName, options) => {
23064
22909
  throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
23065
22910
  };
23066
22911
 
23067
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/callFunction.js
22912
+ // node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js
23068
22913
  var callFunction = ({ fn, argv }, options) => {
23069
22914
  const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
23070
- return fn.split(".").reduce((acc, key) => acc[key], lib_exports)(...evaluatedArgs);
22915
+ const fnSegments = fn.split(".");
22916
+ if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
22917
+ return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
22918
+ }
22919
+ return endpointFunctions[fn](...evaluatedArgs);
23071
22920
  };
23072
22921
 
23073
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateCondition.js
22922
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
23074
22923
  var evaluateCondition = ({ assign, ...fnArgs }, options) => {
23075
22924
  if (assign && assign in options.referenceRecord) {
23076
22925
  throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
@@ -23083,7 +22932,7 @@ var evaluateCondition = ({ assign, ...fnArgs }, options) => {
23083
22932
  };
23084
22933
  };
23085
22934
 
23086
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateConditions.js
22935
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
23087
22936
  var evaluateConditions = (conditions = [], options) => {
23088
22937
  const conditionsReferenceRecord = {};
23089
22938
  for (const condition of conditions) {
@@ -23105,7 +22954,7 @@ var evaluateConditions = (conditions = [], options) => {
23105
22954
  return { result: true, referenceRecord: conditionsReferenceRecord };
23106
22955
  };
23107
22956
 
23108
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointHeaders.js
22957
+ // node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
23109
22958
  var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
23110
22959
  ...acc,
23111
22960
  [headerKey]: headerVal.map((headerValEntry) => {
@@ -23117,7 +22966,7 @@ var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((a
23117
22966
  })
23118
22967
  }), {});
23119
22968
 
23120
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointProperty.js
22969
+ // node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js
23121
22970
  var getEndpointProperty = (property, options) => {
23122
22971
  if (Array.isArray(property)) {
23123
22972
  return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
@@ -23137,13 +22986,13 @@ var getEndpointProperty = (property, options) => {
23137
22986
  }
23138
22987
  };
23139
22988
 
23140
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointProperties.js
22989
+ // node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
23141
22990
  var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
23142
22991
  ...acc,
23143
22992
  [propertyKey]: getEndpointProperty(propertyVal, options)
23144
22993
  }), {});
23145
22994
 
23146
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/getEndpointUrl.js
22995
+ // node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
23147
22996
  var getEndpointUrl = (endpointUrl, options) => {
23148
22997
  const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
23149
22998
  if (typeof expression === "string") {
@@ -23157,7 +23006,7 @@ var getEndpointUrl = (endpointUrl, options) => {
23157
23006
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
23158
23007
  };
23159
23008
 
23160
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateEndpointRule.js
23009
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
23161
23010
  var evaluateEndpointRule = (endpointRule, options) => {
23162
23011
  const { conditions, endpoint } = endpointRule;
23163
23012
  const { result, referenceRecord } = evaluateConditions(conditions, options);
@@ -23181,7 +23030,7 @@ var evaluateEndpointRule = (endpointRule, options) => {
23181
23030
  };
23182
23031
  };
23183
23032
 
23184
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateErrorRule.js
23033
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
23185
23034
  var evaluateErrorRule = (errorRule, options) => {
23186
23035
  const { conditions, error } = errorRule;
23187
23036
  const { result, referenceRecord } = evaluateConditions(conditions, options);
@@ -23194,7 +23043,7 @@ var evaluateErrorRule = (errorRule, options) => {
23194
23043
  }));
23195
23044
  };
23196
23045
 
23197
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateTreeRule.js
23046
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js
23198
23047
  var evaluateTreeRule = (treeRule, options) => {
23199
23048
  const { conditions, rules } = treeRule;
23200
23049
  const { result, referenceRecord } = evaluateConditions(conditions, options);
@@ -23207,7 +23056,7 @@ var evaluateTreeRule = (treeRule, options) => {
23207
23056
  });
23208
23057
  };
23209
23058
 
23210
- // node_modules/@aws-sdk/util-endpoints/dist-es/utils/evaluateRules.js
23059
+ // node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
23211
23060
  var evaluateRules = (rules, options) => {
23212
23061
  for (const rule of rules) {
23213
23062
  if (rule.type === "endpoint") {
@@ -23222,43 +23071,342 @@ var evaluateRules = (rules, options) => {
23222
23071
  if (endpointOrUndefined) {
23223
23072
  return endpointOrUndefined;
23224
23073
  }
23225
- } else {
23226
- throw new EndpointError(`Unknown endpoint rule: ${rule}`);
23227
- }
23228
- }
23229
- throw new EndpointError(`Rules evaluation failed`);
23230
- };
23231
-
23232
- // node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js
23233
- var resolveEndpoint = (ruleSetObject, options) => {
23234
- const { endpointParams, logger: logger2 } = options;
23235
- const { parameters, rules } = ruleSetObject;
23236
- options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
23237
- const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k3, v]) => [k3, v.default]);
23238
- if (paramsWithDefault.length > 0) {
23239
- for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
23240
- endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
23074
+ } else {
23075
+ throw new EndpointError(`Unknown endpoint rule: ${rule}`);
23076
+ }
23077
+ }
23078
+ throw new EndpointError(`Rules evaluation failed`);
23079
+ };
23080
+
23081
+ // node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
23082
+ var resolveEndpoint = (ruleSetObject, options) => {
23083
+ const { endpointParams, logger: logger2 } = options;
23084
+ const { parameters, rules } = ruleSetObject;
23085
+ options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
23086
+ const paramsWithDefault = Object.entries(parameters).filter(([, v3]) => v3.default != null).map(([k3, v3]) => [k3, v3.default]);
23087
+ if (paramsWithDefault.length > 0) {
23088
+ for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
23089
+ endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
23090
+ }
23091
+ }
23092
+ const requiredParams = Object.entries(parameters).filter(([, v3]) => v3.required).map(([k3]) => k3);
23093
+ for (const requiredParam of requiredParams) {
23094
+ if (endpointParams[requiredParam] == null) {
23095
+ throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
23096
+ }
23097
+ }
23098
+ const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
23099
+ if (options.endpointParams?.Endpoint) {
23100
+ try {
23101
+ const givenEndpoint = new URL(options.endpointParams.Endpoint);
23102
+ const { protocol, port } = givenEndpoint;
23103
+ endpoint.url.protocol = protocol;
23104
+ endpoint.url.port = port;
23105
+ } catch (e3) {
23106
+ }
23107
+ }
23108
+ options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
23109
+ return endpoint;
23110
+ };
23111
+
23112
+ // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
23113
+ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
23114
+ if (allowSubDomains) {
23115
+ for (const label of value.split(".")) {
23116
+ if (!isVirtualHostableS3Bucket(label)) {
23117
+ return false;
23118
+ }
23119
+ }
23120
+ return true;
23121
+ }
23122
+ if (!isValidHostLabel(value)) {
23123
+ return false;
23124
+ }
23125
+ if (value.length < 3 || value.length > 63) {
23126
+ return false;
23127
+ }
23128
+ if (value !== value.toLowerCase()) {
23129
+ return false;
23130
+ }
23131
+ if (isIpAddress(value)) {
23132
+ return false;
23133
+ }
23134
+ return true;
23135
+ };
23136
+
23137
+ // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
23138
+ var parseArn = (value) => {
23139
+ const segments = value.split(":");
23140
+ if (segments.length < 6)
23141
+ return null;
23142
+ const [arn, partition2, service, region, accountId, ...resourceId] = segments;
23143
+ if (arn !== "arn" || partition2 === "" || service === "" || resourceId[0] === "")
23144
+ return null;
23145
+ return {
23146
+ partition: partition2,
23147
+ service,
23148
+ region,
23149
+ accountId,
23150
+ resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId
23151
+ };
23152
+ };
23153
+
23154
+ // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
23155
+ var partitions_default = {
23156
+ partitions: [{
23157
+ id: "aws",
23158
+ outputs: {
23159
+ dnsSuffix: "amazonaws.com",
23160
+ dualStackDnsSuffix: "api.aws",
23161
+ implicitGlobalRegion: "us-east-1",
23162
+ name: "aws",
23163
+ supportsDualStack: true,
23164
+ supportsFIPS: true
23165
+ },
23166
+ regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",
23167
+ regions: {
23168
+ "af-south-1": {
23169
+ description: "Africa (Cape Town)"
23170
+ },
23171
+ "ap-east-1": {
23172
+ description: "Asia Pacific (Hong Kong)"
23173
+ },
23174
+ "ap-northeast-1": {
23175
+ description: "Asia Pacific (Tokyo)"
23176
+ },
23177
+ "ap-northeast-2": {
23178
+ description: "Asia Pacific (Seoul)"
23179
+ },
23180
+ "ap-northeast-3": {
23181
+ description: "Asia Pacific (Osaka)"
23182
+ },
23183
+ "ap-south-1": {
23184
+ description: "Asia Pacific (Mumbai)"
23185
+ },
23186
+ "ap-south-2": {
23187
+ description: "Asia Pacific (Hyderabad)"
23188
+ },
23189
+ "ap-southeast-1": {
23190
+ description: "Asia Pacific (Singapore)"
23191
+ },
23192
+ "ap-southeast-2": {
23193
+ description: "Asia Pacific (Sydney)"
23194
+ },
23195
+ "ap-southeast-3": {
23196
+ description: "Asia Pacific (Jakarta)"
23197
+ },
23198
+ "ap-southeast-4": {
23199
+ description: "Asia Pacific (Melbourne)"
23200
+ },
23201
+ "aws-global": {
23202
+ description: "AWS Standard global region"
23203
+ },
23204
+ "ca-central-1": {
23205
+ description: "Canada (Central)"
23206
+ },
23207
+ "eu-central-1": {
23208
+ description: "Europe (Frankfurt)"
23209
+ },
23210
+ "eu-central-2": {
23211
+ description: "Europe (Zurich)"
23212
+ },
23213
+ "eu-north-1": {
23214
+ description: "Europe (Stockholm)"
23215
+ },
23216
+ "eu-south-1": {
23217
+ description: "Europe (Milan)"
23218
+ },
23219
+ "eu-south-2": {
23220
+ description: "Europe (Spain)"
23221
+ },
23222
+ "eu-west-1": {
23223
+ description: "Europe (Ireland)"
23224
+ },
23225
+ "eu-west-2": {
23226
+ description: "Europe (London)"
23227
+ },
23228
+ "eu-west-3": {
23229
+ description: "Europe (Paris)"
23230
+ },
23231
+ "il-central-1": {
23232
+ description: "Israel (Tel Aviv)"
23233
+ },
23234
+ "me-central-1": {
23235
+ description: "Middle East (UAE)"
23236
+ },
23237
+ "me-south-1": {
23238
+ description: "Middle East (Bahrain)"
23239
+ },
23240
+ "sa-east-1": {
23241
+ description: "South America (Sao Paulo)"
23242
+ },
23243
+ "us-east-1": {
23244
+ description: "US East (N. Virginia)"
23245
+ },
23246
+ "us-east-2": {
23247
+ description: "US East (Ohio)"
23248
+ },
23249
+ "us-west-1": {
23250
+ description: "US West (N. California)"
23251
+ },
23252
+ "us-west-2": {
23253
+ description: "US West (Oregon)"
23254
+ }
23255
+ }
23256
+ }, {
23257
+ id: "aws-cn",
23258
+ outputs: {
23259
+ dnsSuffix: "amazonaws.com.cn",
23260
+ dualStackDnsSuffix: "api.amazonwebservices.com.cn",
23261
+ implicitGlobalRegion: "cn-northwest-1",
23262
+ name: "aws-cn",
23263
+ supportsDualStack: true,
23264
+ supportsFIPS: true
23265
+ },
23266
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
23267
+ regions: {
23268
+ "aws-cn-global": {
23269
+ description: "AWS China global region"
23270
+ },
23271
+ "cn-north-1": {
23272
+ description: "China (Beijing)"
23273
+ },
23274
+ "cn-northwest-1": {
23275
+ description: "China (Ningxia)"
23276
+ }
23277
+ }
23278
+ }, {
23279
+ id: "aws-us-gov",
23280
+ outputs: {
23281
+ dnsSuffix: "amazonaws.com",
23282
+ dualStackDnsSuffix: "api.aws",
23283
+ implicitGlobalRegion: "us-gov-west-1",
23284
+ name: "aws-us-gov",
23285
+ supportsDualStack: true,
23286
+ supportsFIPS: true
23287
+ },
23288
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
23289
+ regions: {
23290
+ "aws-us-gov-global": {
23291
+ description: "AWS GovCloud (US) global region"
23292
+ },
23293
+ "us-gov-east-1": {
23294
+ description: "AWS GovCloud (US-East)"
23295
+ },
23296
+ "us-gov-west-1": {
23297
+ description: "AWS GovCloud (US-West)"
23298
+ }
23299
+ }
23300
+ }, {
23301
+ id: "aws-iso",
23302
+ outputs: {
23303
+ dnsSuffix: "c2s.ic.gov",
23304
+ dualStackDnsSuffix: "c2s.ic.gov",
23305
+ implicitGlobalRegion: "us-iso-east-1",
23306
+ name: "aws-iso",
23307
+ supportsDualStack: false,
23308
+ supportsFIPS: true
23309
+ },
23310
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
23311
+ regions: {
23312
+ "aws-iso-global": {
23313
+ description: "AWS ISO (US) global region"
23314
+ },
23315
+ "us-iso-east-1": {
23316
+ description: "US ISO East"
23317
+ },
23318
+ "us-iso-west-1": {
23319
+ description: "US ISO WEST"
23320
+ }
23321
+ }
23322
+ }, {
23323
+ id: "aws-iso-b",
23324
+ outputs: {
23325
+ dnsSuffix: "sc2s.sgov.gov",
23326
+ dualStackDnsSuffix: "sc2s.sgov.gov",
23327
+ implicitGlobalRegion: "us-isob-east-1",
23328
+ name: "aws-iso-b",
23329
+ supportsDualStack: false,
23330
+ supportsFIPS: true
23331
+ },
23332
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
23333
+ regions: {
23334
+ "aws-iso-b-global": {
23335
+ description: "AWS ISOB (US) global region"
23336
+ },
23337
+ "us-isob-east-1": {
23338
+ description: "US ISOB East (Ohio)"
23339
+ }
23340
+ }
23341
+ }, {
23342
+ id: "aws-iso-e",
23343
+ outputs: {
23344
+ dnsSuffix: "cloud.adc-e.uk",
23345
+ dualStackDnsSuffix: "cloud.adc-e.uk",
23346
+ implicitGlobalRegion: "eu-isoe-west-1",
23347
+ name: "aws-iso-e",
23348
+ supportsDualStack: false,
23349
+ supportsFIPS: true
23350
+ },
23351
+ regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
23352
+ regions: {}
23353
+ }, {
23354
+ id: "aws-iso-f",
23355
+ outputs: {
23356
+ dnsSuffix: "csp.hci.ic.gov",
23357
+ dualStackDnsSuffix: "csp.hci.ic.gov",
23358
+ implicitGlobalRegion: "us-isof-south-1",
23359
+ name: "aws-iso-f",
23360
+ supportsDualStack: false,
23361
+ supportsFIPS: true
23362
+ },
23363
+ regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
23364
+ regions: {}
23365
+ }],
23366
+ version: "1.1"
23367
+ };
23368
+
23369
+ // node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
23370
+ var selectedPartitionsInfo = partitions_default;
23371
+ var selectedUserAgentPrefix = "";
23372
+ var partition = (value) => {
23373
+ const { partitions } = selectedPartitionsInfo;
23374
+ for (const partition2 of partitions) {
23375
+ const { regions, outputs } = partition2;
23376
+ for (const [region, regionData] of Object.entries(regions)) {
23377
+ if (region === value) {
23378
+ return {
23379
+ ...outputs,
23380
+ ...regionData
23381
+ };
23382
+ }
23241
23383
  }
23242
23384
  }
23243
- const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k3]) => k3);
23244
- for (const requiredParam of requiredParams) {
23245
- if (endpointParams[requiredParam] == null) {
23246
- throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
23385
+ for (const partition2 of partitions) {
23386
+ const { regionRegex, outputs } = partition2;
23387
+ if (new RegExp(regionRegex).test(value)) {
23388
+ return {
23389
+ ...outputs
23390
+ };
23247
23391
  }
23248
23392
  }
23249
- const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
23250
- if (options.endpointParams?.Endpoint) {
23251
- try {
23252
- const givenEndpoint = new URL(options.endpointParams.Endpoint);
23253
- const { protocol, port } = givenEndpoint;
23254
- endpoint.url.protocol = protocol;
23255
- endpoint.url.port = port;
23256
- } catch (e3) {
23257
- }
23393
+ const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws");
23394
+ if (!DEFAULT_PARTITION) {
23395
+ throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
23258
23396
  }
23259
- options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
23260
- return endpoint;
23397
+ return {
23398
+ ...DEFAULT_PARTITION.outputs
23399
+ };
23400
+ };
23401
+ var getUserAgentPrefix = () => selectedUserAgentPrefix;
23402
+
23403
+ // node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
23404
+ var awsEndpointFunctions = {
23405
+ isVirtualHostableS3Bucket,
23406
+ parseArn,
23407
+ partition
23261
23408
  };
23409
+ customEndpointFunctions.aws = awsEndpointFunctions;
23262
23410
 
23263
23411
  // node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
23264
23412
  var USER_AGENT = "user-agent";
@@ -23380,53 +23528,12 @@ var resolveEventStreamSerdeConfig = (input) => ({
23380
23528
  eventStreamMarshaller: input.eventStreamSerdeProvider(input)
23381
23529
  });
23382
23530
 
23383
- // node_modules/@smithy/middleware-content-length/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
23384
- var HttpRequest2 = class {
23385
- constructor(options) {
23386
- this.method = options.method || "GET";
23387
- this.hostname = options.hostname || "localhost";
23388
- this.port = options.port;
23389
- this.query = options.query || {};
23390
- this.headers = options.headers || {};
23391
- this.body = options.body;
23392
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
23393
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
23394
- this.username = options.username;
23395
- this.password = options.password;
23396
- this.fragment = options.fragment;
23397
- }
23398
- static isInstance(request) {
23399
- if (!request)
23400
- return false;
23401
- const req = request;
23402
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
23403
- }
23404
- clone() {
23405
- const cloned = new HttpRequest2({
23406
- ...this,
23407
- headers: { ...this.headers }
23408
- });
23409
- if (cloned.query)
23410
- cloned.query = cloneQuery3(cloned.query);
23411
- return cloned;
23412
- }
23413
- };
23414
- function cloneQuery3(query) {
23415
- return Object.keys(query).reduce((carry, paramName) => {
23416
- const param = query[paramName];
23417
- return {
23418
- ...carry,
23419
- [paramName]: Array.isArray(param) ? [...param] : param
23420
- };
23421
- }, {});
23422
- }
23423
-
23424
23531
  // node_modules/@smithy/middleware-content-length/dist-es/index.js
23425
23532
  var CONTENT_LENGTH_HEADER = "content-length";
23426
23533
  function contentLengthMiddleware(bodyLengthChecker) {
23427
23534
  return (next) => async (args) => {
23428
23535
  const request = args.request;
23429
- if (HttpRequest2.isInstance(request)) {
23536
+ if (HttpRequest.isInstance(request)) {
23430
23537
  const { body, headers } = request;
23431
23538
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
23432
23539
  try {
@@ -23517,42 +23624,8 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) =
23517
23624
  return configProvider;
23518
23625
  };
23519
23626
 
23520
- // node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
23521
- var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
23522
- const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
23523
- if (typeof clientConfig.endpointProvider !== "function") {
23524
- throw new Error("config.endpointProvider is not set.");
23525
- }
23526
- const endpoint = clientConfig.endpointProvider(endpointParams, context);
23527
- return endpoint;
23528
- };
23529
- var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => {
23530
- const endpointParams = {};
23531
- const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
23532
- for (const [name, instruction] of Object.entries(instructions)) {
23533
- switch (instruction.type) {
23534
- case "staticContextParams":
23535
- endpointParams[name] = instruction.value;
23536
- break;
23537
- case "contextParams":
23538
- endpointParams[name] = commandInput[instruction.name];
23539
- break;
23540
- case "clientContextParams":
23541
- case "builtInParams":
23542
- endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
23543
- break;
23544
- default:
23545
- throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
23546
- }
23547
- }
23548
- if (Object.keys(instructions).length === 0) {
23549
- Object.assign(endpointParams, clientConfig);
23550
- }
23551
- if (String(clientConfig.serviceId).toLowerCase() === "s3") {
23552
- await resolveParamsForS3(endpointParams);
23553
- }
23554
- return endpointParams;
23555
- };
23627
+ // node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js
23628
+ var getEndpointFromConfig = async (serviceId) => void 0;
23556
23629
 
23557
23630
  // node_modules/@smithy/querystring-parser/dist-es/index.js
23558
23631
  function parseQueryString(querystring) {
@@ -23607,6 +23680,49 @@ var toEndpointV1 = (endpoint) => {
23607
23680
  return parseUrl(endpoint);
23608
23681
  };
23609
23682
 
23683
+ // node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
23684
+ var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
23685
+ if (!clientConfig.endpoint) {
23686
+ const endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId || "");
23687
+ if (endpointFromConfig) {
23688
+ clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
23689
+ }
23690
+ }
23691
+ const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
23692
+ if (typeof clientConfig.endpointProvider !== "function") {
23693
+ throw new Error("config.endpointProvider is not set.");
23694
+ }
23695
+ const endpoint = clientConfig.endpointProvider(endpointParams, context);
23696
+ return endpoint;
23697
+ };
23698
+ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => {
23699
+ const endpointParams = {};
23700
+ const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};
23701
+ for (const [name, instruction] of Object.entries(instructions)) {
23702
+ switch (instruction.type) {
23703
+ case "staticContextParams":
23704
+ endpointParams[name] = instruction.value;
23705
+ break;
23706
+ case "contextParams":
23707
+ endpointParams[name] = commandInput[instruction.name];
23708
+ break;
23709
+ case "clientContextParams":
23710
+ case "builtInParams":
23711
+ endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();
23712
+ break;
23713
+ default:
23714
+ throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction));
23715
+ }
23716
+ }
23717
+ if (Object.keys(instructions).length === 0) {
23718
+ Object.assign(endpointParams, clientConfig);
23719
+ }
23720
+ if (String(clientConfig.serviceId).toLowerCase() === "s3") {
23721
+ await resolveParamsForS3(endpointParams);
23722
+ }
23723
+ return endpointParams;
23724
+ };
23725
+
23610
23726
  // node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
23611
23727
  var endpointMiddleware = ({ config, instructions }) => {
23612
23728
  return (next, context) => async (args) => {
@@ -23621,6 +23737,17 @@ var endpointMiddleware = ({ config, instructions }) => {
23621
23737
  if (authScheme) {
23622
23738
  context["signing_region"] = authScheme.signingRegion;
23623
23739
  context["signing_service"] = authScheme.signingName;
23740
+ const smithyContext = getSmithyContext(context);
23741
+ const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
23742
+ if (httpAuthOption) {
23743
+ httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
23744
+ signing_region: authScheme.signingRegion,
23745
+ signingRegion: authScheme.signingRegion,
23746
+ signing_service: authScheme.signingName,
23747
+ signingName: authScheme.signingName,
23748
+ signingRegionSet: authScheme.signingRegionSet
23749
+ }, authScheme.properties);
23750
+ }
23624
23751
  }
23625
23752
  return next({
23626
23753
  ...args
@@ -23980,63 +24107,6 @@ var AdaptiveRetryStrategy = class {
23980
24107
  }
23981
24108
  };
23982
24109
 
23983
- // node_modules/@smithy/middleware-retry/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
23984
- var HttpRequest3 = class {
23985
- constructor(options) {
23986
- this.method = options.method || "GET";
23987
- this.hostname = options.hostname || "localhost";
23988
- this.port = options.port;
23989
- this.query = options.query || {};
23990
- this.headers = options.headers || {};
23991
- this.body = options.body;
23992
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
23993
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
23994
- this.username = options.username;
23995
- this.password = options.password;
23996
- this.fragment = options.fragment;
23997
- }
23998
- static isInstance(request) {
23999
- if (!request)
24000
- return false;
24001
- const req = request;
24002
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
24003
- }
24004
- clone() {
24005
- const cloned = new HttpRequest3({
24006
- ...this,
24007
- headers: { ...this.headers }
24008
- });
24009
- if (cloned.query)
24010
- cloned.query = cloneQuery4(cloned.query);
24011
- return cloned;
24012
- }
24013
- };
24014
- function cloneQuery4(query) {
24015
- return Object.keys(query).reduce((carry, paramName) => {
24016
- const param = query[paramName];
24017
- return {
24018
- ...carry,
24019
- [paramName]: Array.isArray(param) ? [...param] : param
24020
- };
24021
- }, {});
24022
- }
24023
-
24024
- // node_modules/@smithy/middleware-retry/node_modules/@smithy/protocol-http/dist-es/httpResponse.js
24025
- var HttpResponse2 = class {
24026
- constructor(options) {
24027
- this.statusCode = options.statusCode;
24028
- this.reason = options.reason;
24029
- this.headers = options.headers || {};
24030
- this.body = options.body;
24031
- }
24032
- static isInstance(response) {
24033
- if (!response)
24034
- return false;
24035
- const resp = response;
24036
- return typeof resp.statusCode === "number" && typeof resp.headers === "object";
24037
- }
24038
- };
24039
-
24040
24110
  // node_modules/uuid/dist/esm-browser/rng.js
24041
24111
  var getRandomValues;
24042
24112
  var rnds8 = new Uint8Array(16);
@@ -24118,105 +24188,9 @@ var resolveRetryConfig = (input) => {
24118
24188
  if (retryMode === RETRY_MODES.ADAPTIVE) {
24119
24189
  return new AdaptiveRetryStrategy(maxAttempts);
24120
24190
  }
24121
- return new StandardRetryStrategy(maxAttempts);
24122
- }
24123
- };
24124
- };
24125
-
24126
- // node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
24127
- var retryMiddleware = (options) => (next, context) => async (args) => {
24128
- let retryStrategy = await options.retryStrategy();
24129
- const maxAttempts = await options.maxAttempts();
24130
- if (isRetryStrategyV2(retryStrategy)) {
24131
- retryStrategy = retryStrategy;
24132
- let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
24133
- let lastError = new Error();
24134
- let attempts = 0;
24135
- let totalRetryDelay = 0;
24136
- const { request } = args;
24137
- if (HttpRequest3.isInstance(request)) {
24138
- request.headers[INVOCATION_ID_HEADER] = v4_default();
24139
- }
24140
- while (true) {
24141
- try {
24142
- if (HttpRequest3.isInstance(request)) {
24143
- request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
24144
- }
24145
- const { response, output } = await next(args);
24146
- retryStrategy.recordSuccess(retryToken);
24147
- output.$metadata.attempts = attempts + 1;
24148
- output.$metadata.totalRetryDelay = totalRetryDelay;
24149
- return { response, output };
24150
- } catch (e3) {
24151
- const retryErrorInfo = getRetryErrorInfo(e3);
24152
- lastError = asSdkError(e3);
24153
- try {
24154
- retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
24155
- } catch (refreshError) {
24156
- if (!lastError.$metadata) {
24157
- lastError.$metadata = {};
24158
- }
24159
- lastError.$metadata.attempts = attempts + 1;
24160
- lastError.$metadata.totalRetryDelay = totalRetryDelay;
24161
- throw lastError;
24162
- }
24163
- attempts = retryToken.getRetryCount();
24164
- const delay = retryToken.getRetryDelay();
24165
- totalRetryDelay += delay;
24166
- await new Promise((resolve) => setTimeout(resolve, delay));
24167
- }
24191
+ return new StandardRetryStrategy(maxAttempts);
24168
24192
  }
24169
- } else {
24170
- retryStrategy = retryStrategy;
24171
- if (retryStrategy?.mode)
24172
- context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
24173
- return retryStrategy.retry(next, args);
24174
- }
24175
- };
24176
- var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
24177
- var getRetryErrorInfo = (error) => {
24178
- const errorInfo = {
24179
- errorType: getRetryErrorType(error)
24180
24193
  };
24181
- const retryAfterHint = getRetryAfterHint(error.$response);
24182
- if (retryAfterHint) {
24183
- errorInfo.retryAfterHint = retryAfterHint;
24184
- }
24185
- return errorInfo;
24186
- };
24187
- var getRetryErrorType = (error) => {
24188
- if (isThrottlingError(error))
24189
- return "THROTTLING";
24190
- if (isTransientError(error))
24191
- return "TRANSIENT";
24192
- if (isServerError(error))
24193
- return "SERVER_ERROR";
24194
- return "CLIENT_ERROR";
24195
- };
24196
- var retryMiddlewareOptions = {
24197
- name: "retryMiddleware",
24198
- tags: ["RETRY"],
24199
- step: "finalizeRequest",
24200
- priority: "high",
24201
- override: true
24202
- };
24203
- var getRetryPlugin = (options) => ({
24204
- applyToStack: (clientStack) => {
24205
- clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
24206
- }
24207
- });
24208
- var getRetryAfterHint = (response) => {
24209
- if (!HttpResponse2.isInstance(response))
24210
- return;
24211
- const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
24212
- if (!retryAfterHeaderName)
24213
- return;
24214
- const retryAfter = response.headers[retryAfterHeaderName];
24215
- const retryAfterSeconds = Number(retryAfter);
24216
- if (!Number.isNaN(retryAfterSeconds))
24217
- return new Date(retryAfterSeconds * 1e3);
24218
- const retryAfterDate = new Date(retryAfter);
24219
- return retryAfterDate;
24220
24194
  };
24221
24195
 
24222
24196
  // node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js
@@ -24234,17 +24208,36 @@ var NoOpLogger = class {
24234
24208
  };
24235
24209
 
24236
24210
  // node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
24211
+ var getAllAliases = (name, aliases) => {
24212
+ const _aliases = [];
24213
+ if (name) {
24214
+ _aliases.push(name);
24215
+ }
24216
+ if (aliases) {
24217
+ for (const alias of aliases) {
24218
+ _aliases.push(alias);
24219
+ }
24220
+ }
24221
+ return _aliases;
24222
+ };
24223
+ var getMiddlewareNameWithAliases = (name, aliases) => {
24224
+ return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
24225
+ };
24237
24226
  var constructStack = () => {
24238
24227
  let absoluteEntries = [];
24239
24228
  let relativeEntries = [];
24229
+ let identifyOnResolve = false;
24240
24230
  const entriesNameSet = /* @__PURE__ */ new Set();
24241
24231
  const sort = (entries) => entries.sort((a3, b3) => stepWeights[b3.step] - stepWeights[a3.step] || priorityWeights[b3.priority || "normal"] - priorityWeights[a3.priority || "normal"]);
24242
24232
  const removeByName = (toRemove) => {
24243
24233
  let isRemoved = false;
24244
24234
  const filterCb = (entry) => {
24245
- if (entry.name && entry.name === toRemove) {
24235
+ const aliases = getAllAliases(entry.name, entry.aliases);
24236
+ if (aliases.includes(toRemove)) {
24246
24237
  isRemoved = true;
24247
- entriesNameSet.delete(toRemove);
24238
+ for (const alias of aliases) {
24239
+ entriesNameSet.delete(alias);
24240
+ }
24248
24241
  return false;
24249
24242
  }
24250
24243
  return true;
@@ -24258,8 +24251,9 @@ var constructStack = () => {
24258
24251
  const filterCb = (entry) => {
24259
24252
  if (entry.middleware === toRemove) {
24260
24253
  isRemoved = true;
24261
- if (entry.name)
24262
- entriesNameSet.delete(entry.name);
24254
+ for (const alias of getAllAliases(entry.name, entry.aliases)) {
24255
+ entriesNameSet.delete(alias);
24256
+ }
24263
24257
  return false;
24264
24258
  }
24265
24259
  return true;
@@ -24275,6 +24269,7 @@ var constructStack = () => {
24275
24269
  relativeEntries.forEach((entry) => {
24276
24270
  toStack.addRelativeTo(entry.middleware, { ...entry });
24277
24271
  });
24272
+ toStack.identifyOnResolve?.(stack.identifyOnResolve());
24278
24273
  return toStack;
24279
24274
  };
24280
24275
  const expandRelativeMiddlewareList = (from) => {
@@ -24306,8 +24301,9 @@ var constructStack = () => {
24306
24301
  before: [],
24307
24302
  after: []
24308
24303
  };
24309
- if (normalizedEntry.name)
24310
- normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
24304
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
24305
+ normalizedEntriesNameMap[alias] = normalizedEntry;
24306
+ }
24311
24307
  normalizedAbsoluteEntries.push(normalizedEntry);
24312
24308
  });
24313
24309
  relativeEntries.forEach((entry) => {
@@ -24316,8 +24312,9 @@ var constructStack = () => {
24316
24312
  before: [],
24317
24313
  after: []
24318
24314
  };
24319
- if (normalizedEntry.name)
24320
- normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
24315
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
24316
+ normalizedEntriesNameMap[alias] = normalizedEntry;
24317
+ }
24321
24318
  normalizedRelativeEntries.push(normalizedEntry);
24322
24319
  });
24323
24320
  normalizedRelativeEntries.forEach((entry) => {
@@ -24327,7 +24324,7 @@ var constructStack = () => {
24327
24324
  if (debug) {
24328
24325
  return;
24329
24326
  }
24330
- throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`);
24327
+ throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
24331
24328
  }
24332
24329
  if (entry.relation === "after") {
24333
24330
  toMiddleware.after.push(entry);
@@ -24345,46 +24342,62 @@ var constructStack = () => {
24345
24342
  };
24346
24343
  const stack = {
24347
24344
  add: (middleware, options = {}) => {
24348
- const { name, override } = options;
24345
+ const { name, override, aliases: _aliases } = options;
24349
24346
  const entry = {
24350
24347
  step: "initialize",
24351
24348
  priority: "normal",
24352
24349
  middleware,
24353
24350
  ...options
24354
24351
  };
24355
- if (name) {
24356
- if (entriesNameSet.has(name)) {
24352
+ const aliases = getAllAliases(name, _aliases);
24353
+ if (aliases.length > 0) {
24354
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
24357
24355
  if (!override)
24358
- throw new Error(`Duplicate middleware name '${name}'`);
24359
- const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name);
24360
- const toOverride = absoluteEntries[toOverrideIndex];
24361
- if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
24362
- throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`);
24356
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
24357
+ for (const alias of aliases) {
24358
+ const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias));
24359
+ if (toOverrideIndex === -1) {
24360
+ continue;
24361
+ }
24362
+ const toOverride = absoluteEntries[toOverrideIndex];
24363
+ if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
24364
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`);
24365
+ }
24366
+ absoluteEntries.splice(toOverrideIndex, 1);
24363
24367
  }
24364
- absoluteEntries.splice(toOverrideIndex, 1);
24365
24368
  }
24366
- entriesNameSet.add(name);
24369
+ for (const alias of aliases) {
24370
+ entriesNameSet.add(alias);
24371
+ }
24367
24372
  }
24368
24373
  absoluteEntries.push(entry);
24369
24374
  },
24370
24375
  addRelativeTo: (middleware, options) => {
24371
- const { name, override } = options;
24376
+ const { name, override, aliases: _aliases } = options;
24372
24377
  const entry = {
24373
24378
  middleware,
24374
24379
  ...options
24375
24380
  };
24376
- if (name) {
24377
- if (entriesNameSet.has(name)) {
24381
+ const aliases = getAllAliases(name, _aliases);
24382
+ if (aliases.length > 0) {
24383
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
24378
24384
  if (!override)
24379
- throw new Error(`Duplicate middleware name '${name}'`);
24380
- const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name);
24381
- const toOverride = relativeEntries[toOverrideIndex];
24382
- if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
24383
- throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
24385
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
24386
+ for (const alias of aliases) {
24387
+ const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias));
24388
+ if (toOverrideIndex === -1) {
24389
+ continue;
24390
+ }
24391
+ const toOverride = relativeEntries[toOverrideIndex];
24392
+ if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
24393
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
24394
+ }
24395
+ relativeEntries.splice(toOverrideIndex, 1);
24384
24396
  }
24385
- relativeEntries.splice(toOverrideIndex, 1);
24386
24397
  }
24387
- entriesNameSet.add(name);
24398
+ for (const alias of aliases) {
24399
+ entriesNameSet.add(alias);
24400
+ }
24388
24401
  }
24389
24402
  relativeEntries.push(entry);
24390
24403
  },
@@ -24401,10 +24414,12 @@ var constructStack = () => {
24401
24414
  removeByTag: (toRemove) => {
24402
24415
  let isRemoved = false;
24403
24416
  const filterCb = (entry) => {
24404
- const { tags, name } = entry;
24417
+ const { tags, name, aliases: _aliases } = entry;
24405
24418
  if (tags && tags.includes(toRemove)) {
24406
- if (name)
24407
- entriesNameSet.delete(name);
24419
+ const aliases = getAllAliases(name, _aliases);
24420
+ for (const alias of aliases) {
24421
+ entriesNameSet.delete(alias);
24422
+ }
24408
24423
  isRemoved = true;
24409
24424
  return false;
24410
24425
  }
@@ -24417,18 +24432,28 @@ var constructStack = () => {
24417
24432
  concat: (from) => {
24418
24433
  const cloned = cloneTo(constructStack());
24419
24434
  cloned.use(from);
24435
+ cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
24420
24436
  return cloned;
24421
24437
  },
24422
24438
  applyToStack: cloneTo,
24423
24439
  identify: () => {
24424
24440
  return getMiddlewareList(true).map((mw) => {
24425
- return mw.name + ": " + (mw.tags || []).join(",");
24441
+ const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
24442
+ return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
24426
24443
  });
24427
24444
  },
24445
+ identifyOnResolve(toggle) {
24446
+ if (typeof toggle === "boolean")
24447
+ identifyOnResolve = toggle;
24448
+ return identifyOnResolve;
24449
+ },
24428
24450
  resolve: (handler, context) => {
24429
24451
  for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
24430
24452
  handler = middleware(handler, context);
24431
24453
  }
24454
+ if (identifyOnResolve) {
24455
+ console.log(stack.identify());
24456
+ }
24432
24457
  return handler;
24433
24458
  }
24434
24459
  };
@@ -24588,22 +24613,6 @@ var Uint8ArrayBlobAdapter = class extends Uint8Array {
24588
24613
  }
24589
24614
  };
24590
24615
 
24591
- // node_modules/@smithy/fetch-http-handler/node_modules/@smithy/protocol-http/dist-es/httpResponse.js
24592
- var HttpResponse3 = class {
24593
- constructor(options) {
24594
- this.statusCode = options.statusCode;
24595
- this.reason = options.reason;
24596
- this.headers = options.headers || {};
24597
- this.body = options.body;
24598
- }
24599
- static isInstance(response) {
24600
- if (!response)
24601
- return false;
24602
- const resp = response;
24603
- return typeof resp.statusCode === "number" && typeof resp.headers === "object";
24604
- }
24605
- };
24606
-
24607
24616
  // node_modules/@smithy/querystring-builder/dist-es/index.js
24608
24617
  function buildQueryString(query) {
24609
24618
  const parts = [];
@@ -24639,7 +24648,16 @@ function requestTimeout(timeoutInMs = 0) {
24639
24648
  }
24640
24649
 
24641
24650
  // node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js
24651
+ var keepAliveSupport = {
24652
+ supported: Boolean(typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]"))
24653
+ };
24642
24654
  var FetchHttpHandler = class {
24655
+ static create(instanceOrOptions) {
24656
+ if (typeof instanceOrOptions?.handle === "function") {
24657
+ return instanceOrOptions;
24658
+ }
24659
+ return new FetchHttpHandler(instanceOrOptions);
24660
+ }
24643
24661
  constructor(options) {
24644
24662
  if (typeof options === "function") {
24645
24663
  this.configProvider = options().then((opts) => opts || {});
@@ -24655,6 +24673,7 @@ var FetchHttpHandler = class {
24655
24673
  this.config = await this.configProvider;
24656
24674
  }
24657
24675
  const requestTimeoutInMs = this.config.requestTimeout;
24676
+ const keepAlive = this.config.keepAlive === true;
24658
24677
  if (abortSignal?.aborted) {
24659
24678
  const abortError = new Error("Request aborted");
24660
24679
  abortError.name = "AbortError";
@@ -24677,14 +24696,13 @@ var FetchHttpHandler = class {
24677
24696
  const { port, method } = request;
24678
24697
  const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path}`;
24679
24698
  const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
24680
- const requestOptions = {
24681
- body,
24682
- headers: new Headers(request.headers),
24683
- method
24684
- };
24699
+ const requestOptions = { body, headers: new Headers(request.headers), method };
24685
24700
  if (typeof AbortController !== "undefined") {
24686
24701
  requestOptions["signal"] = abortSignal;
24687
24702
  }
24703
+ if (keepAliveSupport.supported) {
24704
+ requestOptions["keepalive"] = keepAlive;
24705
+ }
24688
24706
  const fetchRequest = new Request(url, requestOptions);
24689
24707
  const raceOfPromises = [
24690
24708
  fetch(fetchRequest).then((response) => {
@@ -24696,7 +24714,7 @@ var FetchHttpHandler = class {
24696
24714
  const hasReadableStream = response.body != void 0;
24697
24715
  if (!hasReadableStream) {
24698
24716
  return response.blob().then((body2) => ({
24699
- response: new HttpResponse3({
24717
+ response: new HttpResponse({
24700
24718
  headers: transformedHeaders,
24701
24719
  reason: response.statusText,
24702
24720
  statusCode: response.status,
@@ -24705,7 +24723,7 @@ var FetchHttpHandler = class {
24705
24723
  }));
24706
24724
  }
24707
24725
  return {
24708
- response: new HttpResponse3({
24726
+ response: new HttpResponse({
24709
24727
  headers: transformedHeaders,
24710
24728
  reason: response.statusText,
24711
24729
  statusCode: response.status,
@@ -24905,9 +24923,9 @@ var ServiceException = class extends Error {
24905
24923
  }
24906
24924
  };
24907
24925
  var decorateServiceException = (exception, additions = {}) => {
24908
- Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k3, v]) => {
24926
+ Object.entries(additions).filter(([, v3]) => v3 !== void 0).forEach(([k3, v3]) => {
24909
24927
  if (exception[k3] == void 0 || exception[k3] === "") {
24910
- exception[k3] = v;
24928
+ exception[k3] = v3;
24911
24929
  }
24912
24930
  });
24913
24931
  const message = exception.message || exception.Message || "UnknownError";
@@ -25156,7 +25174,7 @@ var _json = (obj) => {
25156
25174
  return {};
25157
25175
  }
25158
25176
  if (Array.isArray(obj)) {
25159
- return obj.filter((_) => _ != null);
25177
+ return obj.filter((_) => _ != null).map(_json);
25160
25178
  }
25161
25179
  if (typeof obj === "object") {
25162
25180
  const target = {};
@@ -25171,6 +25189,110 @@ var _json = (obj) => {
25171
25189
  return obj;
25172
25190
  };
25173
25191
 
25192
+ // node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.browser.js
25193
+ var isStreamingPayload = (request) => request?.body instanceof ReadableStream;
25194
+
25195
+ // node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
25196
+ var retryMiddleware = (options) => (next, context) => async (args) => {
25197
+ let retryStrategy = await options.retryStrategy();
25198
+ const maxAttempts = await options.maxAttempts();
25199
+ if (isRetryStrategyV2(retryStrategy)) {
25200
+ retryStrategy = retryStrategy;
25201
+ let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
25202
+ let lastError = new Error();
25203
+ let attempts = 0;
25204
+ let totalRetryDelay = 0;
25205
+ const { request } = args;
25206
+ const isRequest = HttpRequest.isInstance(request);
25207
+ if (isRequest) {
25208
+ request.headers[INVOCATION_ID_HEADER] = v4_default();
25209
+ }
25210
+ while (true) {
25211
+ try {
25212
+ if (isRequest) {
25213
+ request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
25214
+ }
25215
+ const { response, output } = await next(args);
25216
+ retryStrategy.recordSuccess(retryToken);
25217
+ output.$metadata.attempts = attempts + 1;
25218
+ output.$metadata.totalRetryDelay = totalRetryDelay;
25219
+ return { response, output };
25220
+ } catch (e3) {
25221
+ const retryErrorInfo = getRetryErrorInfo(e3);
25222
+ lastError = asSdkError(e3);
25223
+ if (isRequest && isStreamingPayload(request)) {
25224
+ (context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
25225
+ throw lastError;
25226
+ }
25227
+ try {
25228
+ retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
25229
+ } catch (refreshError) {
25230
+ if (!lastError.$metadata) {
25231
+ lastError.$metadata = {};
25232
+ }
25233
+ lastError.$metadata.attempts = attempts + 1;
25234
+ lastError.$metadata.totalRetryDelay = totalRetryDelay;
25235
+ throw lastError;
25236
+ }
25237
+ attempts = retryToken.getRetryCount();
25238
+ const delay = retryToken.getRetryDelay();
25239
+ totalRetryDelay += delay;
25240
+ await new Promise((resolve) => setTimeout(resolve, delay));
25241
+ }
25242
+ }
25243
+ } else {
25244
+ retryStrategy = retryStrategy;
25245
+ if (retryStrategy?.mode)
25246
+ context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
25247
+ return retryStrategy.retry(next, args);
25248
+ }
25249
+ };
25250
+ var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
25251
+ var getRetryErrorInfo = (error) => {
25252
+ const errorInfo = {
25253
+ errorType: getRetryErrorType(error)
25254
+ };
25255
+ const retryAfterHint = getRetryAfterHint(error.$response);
25256
+ if (retryAfterHint) {
25257
+ errorInfo.retryAfterHint = retryAfterHint;
25258
+ }
25259
+ return errorInfo;
25260
+ };
25261
+ var getRetryErrorType = (error) => {
25262
+ if (isThrottlingError(error))
25263
+ return "THROTTLING";
25264
+ if (isTransientError(error))
25265
+ return "TRANSIENT";
25266
+ if (isServerError(error))
25267
+ return "SERVER_ERROR";
25268
+ return "CLIENT_ERROR";
25269
+ };
25270
+ var retryMiddlewareOptions = {
25271
+ name: "retryMiddleware",
25272
+ tags: ["RETRY"],
25273
+ step: "finalizeRequest",
25274
+ priority: "high",
25275
+ override: true
25276
+ };
25277
+ var getRetryPlugin = (options) => ({
25278
+ applyToStack: (clientStack) => {
25279
+ clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
25280
+ }
25281
+ });
25282
+ var getRetryAfterHint = (response) => {
25283
+ if (!HttpResponse.isInstance(response))
25284
+ return;
25285
+ const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
25286
+ if (!retryAfterHeaderName)
25287
+ return;
25288
+ const retryAfter = response.headers[retryAfterHeaderName];
25289
+ const retryAfterSeconds = Number(retryAfter);
25290
+ if (!Number.isNaN(retryAfterSeconds))
25291
+ return new Date(retryAfterSeconds * 1e3);
25292
+ const retryAfterDate = new Date(retryAfter);
25293
+ return retryAfterDate;
25294
+ };
25295
+
25174
25296
  // node_modules/@aws-sdk/client-lambda/dist-es/endpoint/EndpointParameters.js
25175
25297
  var resolveClientEndpointParameters = (options) => {
25176
25298
  return {
@@ -25185,11 +25307,10 @@ var resolveClientEndpointParameters = (options) => {
25185
25307
  var package_default = {
25186
25308
  name: "@aws-sdk/client-lambda",
25187
25309
  description: "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
25188
- version: "3.409.0",
25310
+ version: "3.470.0",
25189
25311
  scripts: {
25190
25312
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
25191
25313
  "build:cjs": "tsc -p tsconfig.cjs.json",
25192
- "build:docs": "typedoc",
25193
25314
  "build:es": "tsc -p tsconfig.es.json",
25194
25315
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
25195
25316
  "build:types": "tsc -p tsconfig.types.json",
@@ -25205,44 +25326,47 @@ var package_default = {
25205
25326
  dependencies: {
25206
25327
  "@aws-crypto/sha256-browser": "3.0.0",
25207
25328
  "@aws-crypto/sha256-js": "3.0.0",
25208
- "@aws-sdk/client-sts": "3.409.0",
25209
- "@aws-sdk/credential-provider-node": "3.409.0",
25210
- "@aws-sdk/middleware-host-header": "3.408.0",
25211
- "@aws-sdk/middleware-logger": "3.408.0",
25212
- "@aws-sdk/middleware-recursion-detection": "3.408.0",
25213
- "@aws-sdk/middleware-signing": "3.408.0",
25214
- "@aws-sdk/middleware-user-agent": "3.408.0",
25215
- "@aws-sdk/types": "3.408.0",
25216
- "@aws-sdk/util-endpoints": "3.408.0",
25217
- "@aws-sdk/util-user-agent-browser": "3.408.0",
25218
- "@aws-sdk/util-user-agent-node": "3.408.0",
25219
- "@smithy/config-resolver": "^2.0.5",
25220
- "@smithy/eventstream-serde-browser": "^2.0.5",
25221
- "@smithy/eventstream-serde-config-resolver": "^2.0.5",
25222
- "@smithy/eventstream-serde-node": "^2.0.5",
25223
- "@smithy/fetch-http-handler": "^2.0.5",
25224
- "@smithy/hash-node": "^2.0.5",
25225
- "@smithy/invalid-dependency": "^2.0.5",
25226
- "@smithy/middleware-content-length": "^2.0.5",
25227
- "@smithy/middleware-endpoint": "^2.0.5",
25228
- "@smithy/middleware-retry": "^2.0.5",
25229
- "@smithy/middleware-serde": "^2.0.5",
25230
- "@smithy/middleware-stack": "^2.0.0",
25231
- "@smithy/node-config-provider": "^2.0.6",
25232
- "@smithy/node-http-handler": "^2.0.5",
25233
- "@smithy/protocol-http": "^2.0.5",
25234
- "@smithy/smithy-client": "^2.0.5",
25235
- "@smithy/types": "^2.2.2",
25236
- "@smithy/url-parser": "^2.0.5",
25237
- "@smithy/util-base64": "^2.0.0",
25238
- "@smithy/util-body-length-browser": "^2.0.0",
25329
+ "@aws-sdk/client-sts": "3.470.0",
25330
+ "@aws-sdk/core": "3.468.0",
25331
+ "@aws-sdk/credential-provider-node": "3.470.0",
25332
+ "@aws-sdk/middleware-host-header": "3.468.0",
25333
+ "@aws-sdk/middleware-logger": "3.468.0",
25334
+ "@aws-sdk/middleware-recursion-detection": "3.468.0",
25335
+ "@aws-sdk/middleware-signing": "3.468.0",
25336
+ "@aws-sdk/middleware-user-agent": "3.470.0",
25337
+ "@aws-sdk/region-config-resolver": "3.470.0",
25338
+ "@aws-sdk/types": "3.468.0",
25339
+ "@aws-sdk/util-endpoints": "3.470.0",
25340
+ "@aws-sdk/util-user-agent-browser": "3.468.0",
25341
+ "@aws-sdk/util-user-agent-node": "3.470.0",
25342
+ "@smithy/config-resolver": "^2.0.21",
25343
+ "@smithy/eventstream-serde-browser": "^2.0.15",
25344
+ "@smithy/eventstream-serde-config-resolver": "^2.0.15",
25345
+ "@smithy/eventstream-serde-node": "^2.0.15",
25346
+ "@smithy/fetch-http-handler": "^2.3.1",
25347
+ "@smithy/hash-node": "^2.0.17",
25348
+ "@smithy/invalid-dependency": "^2.0.15",
25349
+ "@smithy/middleware-content-length": "^2.0.17",
25350
+ "@smithy/middleware-endpoint": "^2.2.3",
25351
+ "@smithy/middleware-retry": "^2.0.24",
25352
+ "@smithy/middleware-serde": "^2.0.15",
25353
+ "@smithy/middleware-stack": "^2.0.9",
25354
+ "@smithy/node-config-provider": "^2.1.8",
25355
+ "@smithy/node-http-handler": "^2.2.1",
25356
+ "@smithy/protocol-http": "^3.0.11",
25357
+ "@smithy/smithy-client": "^2.1.18",
25358
+ "@smithy/types": "^2.7.0",
25359
+ "@smithy/url-parser": "^2.0.15",
25360
+ "@smithy/util-base64": "^2.0.1",
25361
+ "@smithy/util-body-length-browser": "^2.0.1",
25239
25362
  "@smithy/util-body-length-node": "^2.1.0",
25240
- "@smithy/util-defaults-mode-browser": "^2.0.6",
25241
- "@smithy/util-defaults-mode-node": "^2.0.6",
25242
- "@smithy/util-retry": "^2.0.0",
25243
- "@smithy/util-stream": "^2.0.5",
25244
- "@smithy/util-utf8": "^2.0.0",
25245
- "@smithy/util-waiter": "^2.0.5",
25363
+ "@smithy/util-defaults-mode-browser": "^2.0.22",
25364
+ "@smithy/util-defaults-mode-node": "^2.0.29",
25365
+ "@smithy/util-endpoints": "^1.0.7",
25366
+ "@smithy/util-retry": "^2.0.8",
25367
+ "@smithy/util-stream": "^2.0.23",
25368
+ "@smithy/util-utf8": "^2.0.2",
25369
+ "@smithy/util-waiter": "^2.0.15",
25246
25370
  tslib: "^2.5.0"
25247
25371
  },
25248
25372
  devDependencies: {
@@ -25252,7 +25376,6 @@ var package_default = {
25252
25376
  concurrently: "7.0.0",
25253
25377
  "downlevel-dts": "0.10.1",
25254
25378
  rimraf: "3.0.2",
25255
- typedoc: "0.23.23",
25256
25379
  typescript: "~4.9.5"
25257
25380
  },
25258
25381
  engines: {
@@ -25482,8 +25605,12 @@ var eventStreamSerdeProvider = (options) => new EventStreamMarshaller2(options);
25482
25605
  var invalidProvider = (message) => () => Promise.reject(message);
25483
25606
 
25484
25607
  // node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js
25608
+ var TEXT_ENCODER = typeof TextEncoder == "function" ? new TextEncoder() : null;
25485
25609
  var calculateBodyLength = (body) => {
25486
25610
  if (typeof body === "string") {
25611
+ if (TEXT_ENCODER) {
25612
+ return TEXT_ENCODER.encode(body).byteLength;
25613
+ }
25487
25614
  let len = body.length;
25488
25615
  for (let i3 = len - 1; i3 >= 0; i3--) {
25489
25616
  const code = body.charCodeAt(i3);
@@ -25504,27 +25631,29 @@ var calculateBodyLength = (body) => {
25504
25631
  };
25505
25632
 
25506
25633
  // node_modules/@aws-sdk/client-lambda/dist-es/endpoint/ruleset.js
25507
- var q = "required";
25508
- var r = "fn";
25509
- var s = "argv";
25510
- var t = "ref";
25511
- var a = "isSet";
25512
- var b = "tree";
25513
- var c = "error";
25514
- var d = "endpoint";
25515
- var e = "PartitionResult";
25516
- var f = { [q]: false, "type": "String" };
25517
- var g = { [q]: true, "default": false, "type": "Boolean" };
25518
- var h = { [t]: "Endpoint" };
25519
- var i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] };
25520
- var j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] };
25521
- var k = {};
25522
- var l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] };
25523
- var m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] };
25524
- var n = [i];
25525
- var o = [j];
25526
- var p = [{ [t]: "Region" }];
25527
- var _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
25634
+ var s = "required";
25635
+ var t = "fn";
25636
+ var u = "argv";
25637
+ var v = "ref";
25638
+ var a = true;
25639
+ var b = "isSet";
25640
+ var c = "booleanEquals";
25641
+ var d = "error";
25642
+ var e = "endpoint";
25643
+ var f = "tree";
25644
+ var g = "PartitionResult";
25645
+ var h = { [s]: false, "type": "String" };
25646
+ var i = { [s]: true, "default": false, "type": "Boolean" };
25647
+ var j = { [v]: "Endpoint" };
25648
+ var k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] };
25649
+ var l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] };
25650
+ var m = {};
25651
+ var n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] };
25652
+ var o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] };
25653
+ var p = [k];
25654
+ var q = [l];
25655
+ var r = [{ [v]: "Region" }];
25656
+ var _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
25528
25657
  var ruleSet = _data;
25529
25658
 
25530
25659
  // node_modules/@aws-sdk/client-lambda/dist-es/endpoint/endpointResolver.js
@@ -25536,19 +25665,21 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
25536
25665
  };
25537
25666
 
25538
25667
  // node_modules/@aws-sdk/client-lambda/dist-es/runtimeConfig.shared.js
25539
- var getRuntimeConfig = (config) => ({
25540
- apiVersion: "2015-03-31",
25541
- base64Decoder: config?.base64Decoder ?? fromBase64,
25542
- base64Encoder: config?.base64Encoder ?? toBase64,
25543
- disableHostPrefix: config?.disableHostPrefix ?? false,
25544
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
25545
- extensions: config?.extensions ?? [],
25546
- logger: config?.logger ?? new NoOpLogger(),
25547
- serviceId: config?.serviceId ?? "Lambda",
25548
- urlParser: config?.urlParser ?? parseUrl,
25549
- utf8Decoder: config?.utf8Decoder ?? fromUtf84,
25550
- utf8Encoder: config?.utf8Encoder ?? toUtf84
25551
- });
25668
+ var getRuntimeConfig = (config) => {
25669
+ return {
25670
+ apiVersion: "2015-03-31",
25671
+ base64Decoder: config?.base64Decoder ?? fromBase64,
25672
+ base64Encoder: config?.base64Encoder ?? toBase64,
25673
+ disableHostPrefix: config?.disableHostPrefix ?? false,
25674
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
25675
+ extensions: config?.extensions ?? [],
25676
+ logger: config?.logger ?? new NoOpLogger(),
25677
+ serviceId: config?.serviceId ?? "Lambda",
25678
+ urlParser: config?.urlParser ?? parseUrl,
25679
+ utf8Decoder: config?.utf8Decoder ?? fromUtf84,
25680
+ utf8Encoder: config?.utf8Encoder ?? toUtf84
25681
+ };
25682
+ };
25552
25683
 
25553
25684
  // node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js
25554
25685
  var import_bowser2 = __toESM(require_es5());
@@ -25605,16 +25736,47 @@ var getRuntimeConfig2 = (config) => {
25605
25736
  };
25606
25737
  };
25607
25738
 
25739
+ // node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
25740
+ var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
25741
+ let runtimeConfigRegion = async () => {
25742
+ if (runtimeConfig.region === void 0) {
25743
+ throw new Error("Region is missing from runtimeConfig");
25744
+ }
25745
+ const region = runtimeConfig.region;
25746
+ if (typeof region === "string") {
25747
+ return region;
25748
+ }
25749
+ return region();
25750
+ };
25751
+ return {
25752
+ setRegion(region) {
25753
+ runtimeConfigRegion = region;
25754
+ },
25755
+ region() {
25756
+ return runtimeConfigRegion;
25757
+ }
25758
+ };
25759
+ };
25760
+ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => {
25761
+ return {
25762
+ region: awsRegionExtensionConfiguration.region()
25763
+ };
25764
+ };
25765
+
25608
25766
  // node_modules/@aws-sdk/client-lambda/dist-es/runtimeExtensions.js
25609
25767
  var asPartial = (t3) => t3;
25610
25768
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
25611
25769
  const extensionConfiguration = {
25612
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig))
25770
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
25771
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
25772
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig))
25613
25773
  };
25614
25774
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
25615
25775
  return {
25616
25776
  ...runtimeConfig,
25617
- ...resolveDefaultRuntimeConfig(extensionConfiguration)
25777
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
25778
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
25779
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration)
25618
25780
  };
25619
25781
  };
25620
25782
 
@@ -26742,7 +26904,11 @@ var InvokeCommand = class extends Command {
26742
26904
  clientName,
26743
26905
  commandName,
26744
26906
  inputFilterSensitiveLog: InvocationRequestFilterSensitiveLog,
26745
- outputFilterSensitiveLog: InvocationResponseFilterSensitiveLog
26907
+ outputFilterSensitiveLog: InvocationResponseFilterSensitiveLog,
26908
+ [SMITHY_CONTEXT_KEY]: {
26909
+ service: "AWSGirApiService",
26910
+ operation: "Invoke"
26911
+ }
26746
26912
  };
26747
26913
  const { requestHandler } = configuration;
26748
26914
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -26769,11 +26935,10 @@ var resolveClientEndpointParameters2 = (options) => {
26769
26935
  var package_default2 = {
26770
26936
  name: "@aws-sdk/client-cognito-identity",
26771
26937
  description: "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
26772
- version: "3.409.0",
26938
+ version: "3.470.0",
26773
26939
  scripts: {
26774
26940
  build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
26775
26941
  "build:cjs": "tsc -p tsconfig.cjs.json",
26776
- "build:docs": "typedoc",
26777
26942
  "build:es": "tsc -p tsconfig.es.json",
26778
26943
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
26779
26944
  "build:types": "tsc -p tsconfig.types.json",
@@ -26790,43 +26955,46 @@ var package_default2 = {
26790
26955
  dependencies: {
26791
26956
  "@aws-crypto/sha256-browser": "3.0.0",
26792
26957
  "@aws-crypto/sha256-js": "3.0.0",
26793
- "@aws-sdk/client-sts": "3.409.0",
26794
- "@aws-sdk/credential-provider-node": "3.409.0",
26795
- "@aws-sdk/middleware-host-header": "3.408.0",
26796
- "@aws-sdk/middleware-logger": "3.408.0",
26797
- "@aws-sdk/middleware-recursion-detection": "3.408.0",
26798
- "@aws-sdk/middleware-signing": "3.408.0",
26799
- "@aws-sdk/middleware-user-agent": "3.408.0",
26800
- "@aws-sdk/types": "3.408.0",
26801
- "@aws-sdk/util-endpoints": "3.408.0",
26802
- "@aws-sdk/util-user-agent-browser": "3.408.0",
26803
- "@aws-sdk/util-user-agent-node": "3.408.0",
26804
- "@smithy/config-resolver": "^2.0.5",
26805
- "@smithy/fetch-http-handler": "^2.0.5",
26806
- "@smithy/hash-node": "^2.0.5",
26807
- "@smithy/invalid-dependency": "^2.0.5",
26808
- "@smithy/middleware-content-length": "^2.0.5",
26809
- "@smithy/middleware-endpoint": "^2.0.5",
26810
- "@smithy/middleware-retry": "^2.0.5",
26811
- "@smithy/middleware-serde": "^2.0.5",
26812
- "@smithy/middleware-stack": "^2.0.0",
26813
- "@smithy/node-config-provider": "^2.0.6",
26814
- "@smithy/node-http-handler": "^2.0.5",
26815
- "@smithy/protocol-http": "^2.0.5",
26816
- "@smithy/smithy-client": "^2.0.5",
26817
- "@smithy/types": "^2.2.2",
26818
- "@smithy/url-parser": "^2.0.5",
26819
- "@smithy/util-base64": "^2.0.0",
26820
- "@smithy/util-body-length-browser": "^2.0.0",
26958
+ "@aws-sdk/client-sts": "3.470.0",
26959
+ "@aws-sdk/core": "3.468.0",
26960
+ "@aws-sdk/credential-provider-node": "3.470.0",
26961
+ "@aws-sdk/middleware-host-header": "3.468.0",
26962
+ "@aws-sdk/middleware-logger": "3.468.0",
26963
+ "@aws-sdk/middleware-recursion-detection": "3.468.0",
26964
+ "@aws-sdk/middleware-signing": "3.468.0",
26965
+ "@aws-sdk/middleware-user-agent": "3.470.0",
26966
+ "@aws-sdk/region-config-resolver": "3.470.0",
26967
+ "@aws-sdk/types": "3.468.0",
26968
+ "@aws-sdk/util-endpoints": "3.470.0",
26969
+ "@aws-sdk/util-user-agent-browser": "3.468.0",
26970
+ "@aws-sdk/util-user-agent-node": "3.470.0",
26971
+ "@smithy/config-resolver": "^2.0.21",
26972
+ "@smithy/fetch-http-handler": "^2.3.1",
26973
+ "@smithy/hash-node": "^2.0.17",
26974
+ "@smithy/invalid-dependency": "^2.0.15",
26975
+ "@smithy/middleware-content-length": "^2.0.17",
26976
+ "@smithy/middleware-endpoint": "^2.2.3",
26977
+ "@smithy/middleware-retry": "^2.0.24",
26978
+ "@smithy/middleware-serde": "^2.0.15",
26979
+ "@smithy/middleware-stack": "^2.0.9",
26980
+ "@smithy/node-config-provider": "^2.1.8",
26981
+ "@smithy/node-http-handler": "^2.2.1",
26982
+ "@smithy/protocol-http": "^3.0.11",
26983
+ "@smithy/smithy-client": "^2.1.18",
26984
+ "@smithy/types": "^2.7.0",
26985
+ "@smithy/url-parser": "^2.0.15",
26986
+ "@smithy/util-base64": "^2.0.1",
26987
+ "@smithy/util-body-length-browser": "^2.0.1",
26821
26988
  "@smithy/util-body-length-node": "^2.1.0",
26822
- "@smithy/util-defaults-mode-browser": "^2.0.6",
26823
- "@smithy/util-defaults-mode-node": "^2.0.6",
26824
- "@smithy/util-retry": "^2.0.0",
26825
- "@smithy/util-utf8": "^2.0.0",
26989
+ "@smithy/util-defaults-mode-browser": "^2.0.22",
26990
+ "@smithy/util-defaults-mode-node": "^2.0.29",
26991
+ "@smithy/util-endpoints": "^1.0.7",
26992
+ "@smithy/util-retry": "^2.0.8",
26993
+ "@smithy/util-utf8": "^2.0.2",
26826
26994
  tslib: "^2.5.0"
26827
26995
  },
26828
26996
  devDependencies: {
26829
- "@aws-sdk/client-iam": "3.409.0",
26997
+ "@aws-sdk/client-iam": "3.470.0",
26830
26998
  "@smithy/service-client-documentation-generator": "^2.0.0",
26831
26999
  "@tsconfig/node14": "1.0.3",
26832
27000
  "@types/chai": "^4.2.11",
@@ -26835,7 +27003,6 @@ var package_default2 = {
26835
27003
  concurrently: "7.0.0",
26836
27004
  "downlevel-dts": "0.10.1",
26837
27005
  rimraf: "3.0.2",
26838
- typedoc: "0.23.23",
26839
27006
  typescript: "~4.9.5"
26840
27007
  },
26841
27008
  engines: {
@@ -26874,27 +27041,29 @@ var package_default2 = {
26874
27041
  var import_sha256_browser2 = __toESM(require_build6());
26875
27042
 
26876
27043
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoint/ruleset.js
26877
- var q2 = "required";
26878
- var r2 = "fn";
26879
- var s2 = "argv";
26880
- var t2 = "ref";
26881
- var a2 = "isSet";
26882
- var b2 = "tree";
26883
- var c2 = "error";
26884
- var d2 = "endpoint";
26885
- var e2 = "PartitionResult";
26886
- var f2 = { [q2]: false, "type": "String" };
26887
- var g2 = { [q2]: true, "default": false, "type": "Boolean" };
26888
- var h2 = { [t2]: "Endpoint" };
26889
- var i2 = { [r2]: "booleanEquals", [s2]: [{ [t2]: "UseFIPS" }, true] };
26890
- var j2 = { [r2]: "booleanEquals", [s2]: [{ [t2]: "UseDualStack" }, true] };
26891
- var k2 = {};
26892
- var l2 = { [r2]: "booleanEquals", [s2]: [true, { [r2]: "getAttr", [s2]: [{ [t2]: e2 }, "supportsFIPS"] }] };
26893
- var m2 = { [r2]: "booleanEquals", [s2]: [true, { [r2]: "getAttr", [s2]: [{ [t2]: e2 }, "supportsDualStack"] }] };
26894
- var n2 = [i2];
26895
- var o2 = [j2];
26896
- var p2 = [{ [t2]: "Region" }];
26897
- var _data2 = { version: "1.0", parameters: { Region: f2, UseDualStack: g2, UseFIPS: g2, Endpoint: f2 }, rules: [{ conditions: [{ [r2]: a2, [s2]: [h2] }], type: b2, rules: [{ conditions: n2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c2 }, { conditions: o2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c2 }, { endpoint: { url: h2, properties: k2, headers: k2 }, type: d2 }] }, { conditions: [{ [r2]: a2, [s2]: p2 }], type: b2, rules: [{ conditions: [{ [r2]: "aws.partition", [s2]: p2, assign: e2 }], type: b2, rules: [{ conditions: [i2, j2], type: b2, rules: [{ conditions: [l2, m2], type: b2, rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k2, headers: k2 }, type: d2 }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c2 }] }, { conditions: n2, type: b2, rules: [{ conditions: [l2], type: b2, rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k2, headers: k2 }, type: d2 }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c2 }] }, { conditions: o2, type: b2, rules: [{ conditions: [m2], type: b2, rules: [{ endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k2, headers: k2 }, type: d2 }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c2 }] }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", properties: k2, headers: k2 }, type: d2 }] }] }, { error: "Invalid Configuration: Missing Region", type: c2 }] };
27044
+ var s2 = "required";
27045
+ var t2 = "fn";
27046
+ var u2 = "argv";
27047
+ var v2 = "ref";
27048
+ var a2 = true;
27049
+ var b2 = "isSet";
27050
+ var c2 = "booleanEquals";
27051
+ var d2 = "error";
27052
+ var e2 = "endpoint";
27053
+ var f2 = "tree";
27054
+ var g2 = "PartitionResult";
27055
+ var h2 = { [s2]: false, "type": "String" };
27056
+ var i2 = { [s2]: true, "default": false, "type": "Boolean" };
27057
+ var j2 = { [v2]: "Endpoint" };
27058
+ var k2 = { [t2]: c2, [u2]: [{ [v2]: "UseFIPS" }, true] };
27059
+ var l2 = { [t2]: c2, [u2]: [{ [v2]: "UseDualStack" }, true] };
27060
+ var m2 = {};
27061
+ var n2 = { [t2]: "getAttr", [u2]: [{ [v2]: g2 }, "supportsFIPS"] };
27062
+ var o2 = { [t2]: c2, [u2]: [true, { [t2]: "getAttr", [u2]: [{ [v2]: g2 }, "supportsDualStack"] }] };
27063
+ var p2 = [k2];
27064
+ var q2 = [l2];
27065
+ var r2 = [{ [v2]: "Region" }];
27066
+ var _data2 = { version: "1.0", parameters: { Region: h2, UseDualStack: i2, UseFIPS: i2, Endpoint: h2 }, rules: [{ conditions: [{ [t2]: b2, [u2]: [j2] }], rules: [{ conditions: p2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d2 }, { conditions: q2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d2 }, { endpoint: { url: j2, properties: m2, headers: m2 }, type: e2 }], type: f2 }, { conditions: [{ [t2]: b2, [u2]: r2 }], rules: [{ conditions: [{ [t2]: "aws.partition", [u2]: r2, assign: g2 }], rules: [{ conditions: [k2, l2], rules: [{ conditions: [{ [t2]: c2, [u2]: [a2, n2] }, o2], rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f2 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d2 }], type: f2 }, { conditions: p2, rules: [{ conditions: [{ [t2]: c2, [u2]: [n2, a2] }], rules: [{ endpoint: { url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f2 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d2 }], type: f2 }, { conditions: q2, rules: [{ conditions: [o2], rules: [{ endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f2 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d2 }], type: f2 }, { endpoint: { url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", properties: m2, headers: m2 }, type: e2 }], type: f2 }], type: f2 }, { error: "Invalid Configuration: Missing Region", type: d2 }] };
26898
27067
  var ruleSet2 = _data2;
26899
27068
 
26900
27069
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoint/endpointResolver.js
@@ -26906,19 +27075,21 @@ var defaultEndpointResolver2 = (endpointParams, context = {}) => {
26906
27075
  };
26907
27076
 
26908
27077
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.shared.js
26909
- var getRuntimeConfig3 = (config) => ({
26910
- apiVersion: "2014-06-30",
26911
- base64Decoder: config?.base64Decoder ?? fromBase64,
26912
- base64Encoder: config?.base64Encoder ?? toBase64,
26913
- disableHostPrefix: config?.disableHostPrefix ?? false,
26914
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver2,
26915
- extensions: config?.extensions ?? [],
26916
- logger: config?.logger ?? new NoOpLogger(),
26917
- serviceId: config?.serviceId ?? "Cognito Identity",
26918
- urlParser: config?.urlParser ?? parseUrl,
26919
- utf8Decoder: config?.utf8Decoder ?? fromUtf84,
26920
- utf8Encoder: config?.utf8Encoder ?? toUtf84
26921
- });
27078
+ var getRuntimeConfig3 = (config) => {
27079
+ return {
27080
+ apiVersion: "2014-06-30",
27081
+ base64Decoder: config?.base64Decoder ?? fromBase64,
27082
+ base64Encoder: config?.base64Encoder ?? toBase64,
27083
+ disableHostPrefix: config?.disableHostPrefix ?? false,
27084
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver2,
27085
+ extensions: config?.extensions ?? [],
27086
+ logger: config?.logger ?? new NoOpLogger(),
27087
+ serviceId: config?.serviceId ?? "Cognito Identity",
27088
+ urlParser: config?.urlParser ?? parseUrl,
27089
+ utf8Decoder: config?.utf8Decoder ?? fromUtf84,
27090
+ utf8Encoder: config?.utf8Encoder ?? toUtf84
27091
+ };
27092
+ };
26922
27093
 
26923
27094
  // node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.browser.js
26924
27095
  var getRuntimeConfig4 = (config) => {
@@ -26948,12 +27119,16 @@ var getRuntimeConfig4 = (config) => {
26948
27119
  var asPartial2 = (t3) => t3;
26949
27120
  var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
26950
27121
  const extensionConfiguration = {
26951
- ...asPartial2(getDefaultExtensionConfiguration(runtimeConfig))
27122
+ ...asPartial2(getAwsRegionExtensionConfiguration(runtimeConfig)),
27123
+ ...asPartial2(getDefaultExtensionConfiguration(runtimeConfig)),
27124
+ ...asPartial2(getHttpHandlerExtensionConfiguration(runtimeConfig))
26952
27125
  };
26953
27126
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
26954
27127
  return {
26955
27128
  ...runtimeConfig,
26956
- ...resolveDefaultRuntimeConfig(extensionConfiguration)
27129
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
27130
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
27131
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration)
26957
27132
  };
26958
27133
  };
26959
27134
 
@@ -27414,7 +27589,11 @@ var GetCredentialsForIdentityCommand = class extends Command {
27414
27589
  clientName,
27415
27590
  commandName,
27416
27591
  inputFilterSensitiveLog: (_) => _,
27417
- outputFilterSensitiveLog: (_) => _
27592
+ outputFilterSensitiveLog: (_) => _,
27593
+ [SMITHY_CONTEXT_KEY]: {
27594
+ service: "AWSCognitoIdentityService",
27595
+ operation: "GetCredentialsForIdentity"
27596
+ }
27418
27597
  };
27419
27598
  const { requestHandler } = configuration;
27420
27599
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -27453,7 +27632,11 @@ var GetIdCommand = class extends Command {
27453
27632
  clientName,
27454
27633
  commandName,
27455
27634
  inputFilterSensitiveLog: (_) => _,
27456
- outputFilterSensitiveLog: (_) => _
27635
+ outputFilterSensitiveLog: (_) => _,
27636
+ [SMITHY_CONTEXT_KEY]: {
27637
+ service: "AWSCognitoIdentityService",
27638
+ operation: "GetId"
27639
+ }
27457
27640
  };
27458
27641
  const { requestHandler } = configuration;
27459
27642
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -27731,41 +27914,47 @@ var LambdaClient2 = class {
27731
27914
  var TaskStateAction = class extends BaseStateAction {
27732
27915
  constructor(stateDefinition, stateName) {
27733
27916
  super(stateDefinition, stateName);
27917
+ this.timeoutAbortController = new AbortController();
27918
+ }
27919
+ createTimeoutPromise(input, context) {
27920
+ const state = this.stateDefinition;
27921
+ if (!state.TimeoutSeconds && !state.TimeoutSecondsPath)
27922
+ return;
27923
+ let timeout;
27924
+ if (state.TimeoutSeconds) {
27925
+ timeout = state.TimeoutSeconds;
27926
+ } else if (state.TimeoutSecondsPath) {
27927
+ timeout = jsonPathQuery(state.TimeoutSecondsPath, input, context, {
27928
+ constraints: [IntegerConstraint.greaterThanOrEqual(1)]
27929
+ });
27930
+ }
27931
+ return new Promise((_, reject) => {
27932
+ const handleTimeoutAbort = () => clearTimeout(timeoutId);
27933
+ const timeoutId = setTimeout(() => {
27934
+ this.timeoutAbortController.signal.removeEventListener("abort", handleTimeoutAbort);
27935
+ reject(new StatesTimeoutError());
27936
+ }, timeout * 1e3);
27937
+ this.timeoutAbortController.signal.addEventListener("abort", handleTimeoutAbort, { once: true });
27938
+ });
27734
27939
  }
27735
27940
  async execute(input, context, options) {
27736
27941
  const state = this.stateDefinition;
27942
+ const racingPromises = [];
27943
+ const timeoutPromise = this.createTimeoutPromise(input, context);
27737
27944
  if (options.overrideFn) {
27738
- const result2 = await options.overrideFn(input);
27739
- return this.buildExecutionResult(result2);
27945
+ const resultPromise = options.overrideFn(input);
27946
+ racingPromises.push(resultPromise);
27947
+ } else {
27948
+ const lambdaClient = new LambdaClient2(options.awsConfig);
27949
+ const resultPromise = lambdaClient.invokeFunction(state.Resource, input);
27950
+ racingPromises.push(resultPromise);
27740
27951
  }
27741
- const lambdaClient = new LambdaClient2(options.awsConfig);
27742
- const result = await lambdaClient.invokeFunction(state.Resource, input);
27743
- return this.buildExecutionResult(result);
27744
- }
27745
- };
27746
-
27747
- // src/stateMachine/jsonPath/constraints/IntegerConstraint.ts
27748
- var IntegerConstraint = class extends BaseJSONPathConstraint {
27749
- test(value) {
27750
- if (!Number.isInteger(value)) {
27751
- throw new StatesRuntimeError(
27752
- `Path expression '${this.pathExpression}' evaluated to ${stringifyJSONValue(value)}, but expected an integer`
27753
- );
27952
+ if (timeoutPromise) {
27953
+ racingPromises.push(timeoutPromise);
27754
27954
  }
27755
- }
27756
- static greaterThanOrEqual(n3) {
27757
- return class extends this {
27758
- test(value) {
27759
- super.test(value);
27760
- if (value < n3) {
27761
- throw new StatesRuntimeError(
27762
- `Path expression '${this.pathExpression}' evaluated to ${stringifyJSONValue(
27763
- value
27764
- )}, but expected an integer >= ${n3}`
27765
- );
27766
- }
27767
- }
27768
- };
27955
+ const result = await Promise.race(racingPromises);
27956
+ this.timeoutAbortController.abort();
27957
+ return this.buildExecutionResult(result);
27769
27958
  }
27770
27959
  };
27771
27960
 
@@ -27805,19 +27994,12 @@ var WaitStateAction = class extends BaseStateAction {
27805
27994
  }
27806
27995
  };
27807
27996
 
27808
- // src/error/predefined/StatesTimeoutError.ts
27809
- var StatesTimeoutError = class extends RuntimeError {
27810
- constructor() {
27811
- super("States.Timeout");
27812
- this.name = "States.Timeout";
27813
- }
27814
- };
27815
-
27816
27997
  // src/stateMachine/StateExecutor.ts
27817
27998
  var import_cloneDeep2 = __toESM(require_cloneDeep(), 1);
27818
27999
  var DEFAULT_MAX_ATTEMPTS2 = 3;
27819
28000
  var DEFAULT_INTERVAL_SECONDS = 1;
27820
28001
  var DEFAULT_BACKOFF_RATE = 2;
28002
+ var DEFAULT_JITTER_STRATEGY = "NONE";
27821
28003
  var WILDCARD_ERROR = "States.ALL";
27822
28004
  var TASK_STATE_WILDCARD_ERROR = "States.TaskFailed";
27823
28005
  var StateExecutor = class {
@@ -27865,7 +28047,10 @@ var StateExecutor = class {
27865
28047
  input,
27866
28048
  error
27867
28049
  );
27868
- const { shouldRetry, waitTimeBeforeRetry, retrierIndex } = this.shouldRetry(error);
28050
+ const { shouldRetry, waitTimeBeforeRetry, retrierIndex } = this.shouldRetry(
28051
+ error,
28052
+ options.runOptions?.overrides?.retryIntervalOverrides
28053
+ );
27869
28054
  if (shouldRetry) {
27870
28055
  const stateDefinition = this.stateDefinition;
27871
28056
  await sleep(waitTimeBeforeRetry, options.abortSignal);
@@ -27924,17 +28109,31 @@ var StateExecutor = class {
27924
28109
  /**
27925
28110
  * Decide whether this state should be retried, according to the `Retry` field.
27926
28111
  */
27927
- shouldRetry(error) {
28112
+ shouldRetry(error, retryIntervalOverrides) {
27928
28113
  if (!("Retry" in this.stateDefinition)) {
27929
28114
  return { shouldRetry: false };
27930
28115
  }
27931
28116
  for (let i3 = 0; i3 < this.stateDefinition.Retry.length; i3++) {
27932
28117
  const retrier = this.stateDefinition.Retry[i3];
28118
+ let intervalOverride = null;
28119
+ if (retryIntervalOverrides?.[this.stateName] !== void 0) {
28120
+ const override = retryIntervalOverrides[this.stateName];
28121
+ if (typeof override === "number") {
28122
+ intervalOverride = override / 1e3;
28123
+ } else if (override[i3] !== void 0 && override[i3] >= 0) {
28124
+ intervalOverride = override[i3] / 1e3;
28125
+ }
28126
+ }
28127
+ const jitterStrategy = retrier.JitterStrategy ?? DEFAULT_JITTER_STRATEGY;
27933
28128
  const maxAttempts = retrier.MaxAttempts ?? DEFAULT_MAX_ATTEMPTS2;
27934
28129
  const intervalSeconds = retrier.IntervalSeconds ?? DEFAULT_INTERVAL_SECONDS;
27935
28130
  const backoffRate = retrier.BackoffRate ?? DEFAULT_BACKOFF_RATE;
27936
- const waitTimeBeforeRetry = intervalSeconds * Math.pow(backoffRate, this.retrierAttempts[i3]) * 1e3;
28131
+ const waitInterval = intervalOverride ?? intervalSeconds * Math.pow(backoffRate, this.retrierAttempts[i3]);
27937
28132
  const retryable = error.isRetryable ?? true;
28133
+ let waitTimeBeforeRetry = clamp(waitInterval, 0, retrier.MaxDelaySeconds) * 1e3;
28134
+ if (jitterStrategy === "FULL" && intervalOverride === null) {
28135
+ waitTimeBeforeRetry = getRandomNumber(0, waitTimeBeforeRetry);
28136
+ }
27938
28137
  for (const retrierError of retrier.ErrorEquals) {
27939
28138
  const isErrorMatch = retrierError === error.name;
27940
28139
  const isErrorWildcard = retrierError === WILDCARD_ERROR;
@@ -28405,7 +28604,14 @@ var StateMachine = class {
28405
28604
  */
28406
28605
  async execute(input, options, cleanupFn) {
28407
28606
  options.eventLogger.dispatchExecutionStartedEvent(input);
28408
- const context = options.runOptions?.context ?? {};
28607
+ const context = {
28608
+ ...options.runOptions?.context,
28609
+ Execution: {
28610
+ ...options.runOptions?.context?.Execution,
28611
+ Input: input,
28612
+ StartTime: (/* @__PURE__ */ new Date()).toISOString()
28613
+ }
28614
+ };
28409
28615
  let currState = this.definition.States[this.definition.StartAt];
28410
28616
  let currStateName = this.definition.StartAt;
28411
28617
  let currInput = (0, import_cloneDeep3.default)(input);