diff --git a/dist/136.index.js b/dist/136.index.js
index 80da7cb..22d63bd 100644
--- a/dist/136.index.js
+++ b/dist/136.index.js
@@ -240,8 +240,146 @@ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunct
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ruleSet = void 0;
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
-const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, "default": false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
-const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
+const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, default: false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = {
+ url: "https://sts.amazonaws.com",
+ properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
+ headers: {},
+}, v = {}, w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
+const _data = {
+ version: "1.0",
+ parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
+ rules: [
+ {
+ conditions: [
+ { [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
+ { [H]: "not", [I]: C },
+ p,
+ r,
+ { [H]: c, [I]: [s, a] },
+ { [H]: c, [I]: [t, a] },
+ ],
+ rules: [
+ { conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
+ w,
+ { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
+ { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
+ {
+ endpoint: {
+ url: i,
+ properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
+ headers: v,
+ },
+ [G]: h,
+ },
+ ],
+ [G]: j,
+ },
+ {
+ conditions: C,
+ rules: [
+ { conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
+ { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
+ { endpoint: { url: o, properties: v, headers: v }, [G]: h },
+ ],
+ [G]: j,
+ },
+ {
+ conditions: [p],
+ rules: [
+ {
+ conditions: [r],
+ rules: [
+ {
+ conditions: [x, y],
+ rules: [
+ {
+ conditions: [{ [H]: c, [I]: [b, z] }, B],
+ rules: [
+ {
+ endpoint: {
+ url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: v,
+ headers: v,
+ },
+ [G]: h,
+ },
+ ],
+ [G]: j,
+ },
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
+ ],
+ [G]: j,
+ },
+ {
+ conditions: D,
+ rules: [
+ {
+ conditions: [{ [H]: c, [I]: [z, b] }],
+ rules: [
+ {
+ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
+ endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
+ [G]: h,
+ },
+ {
+ endpoint: {
+ url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
+ properties: v,
+ headers: v,
+ },
+ [G]: h,
+ },
+ ],
+ [G]: j,
+ },
+ { error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
+ ],
+ [G]: j,
+ },
+ {
+ conditions: E,
+ rules: [
+ {
+ conditions: [B],
+ rules: [
+ {
+ endpoint: {
+ url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: v,
+ headers: v,
+ },
+ [G]: h,
+ },
+ ],
+ [G]: j,
+ },
+ { error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
+ ],
+ [G]: j,
+ },
+ w,
+ { endpoint: { url: i, properties: v, headers: v }, [G]: h },
+ ],
+ [G]: j,
+ },
+ ],
+ [G]: j,
+ },
+ { error: "Invalid Configuration: Missing Region", [G]: k },
+ ],
+};
exports.ruleSet = _data;
@@ -256,287 +394,11 @@ var STSClient = __webpack_require__(3723);
var smithyClient = __webpack_require__(1411);
var middlewareEndpoint = __webpack_require__(99);
var EndpointParameters = __webpack_require__(6811);
-var schema = __webpack_require__(6890);
+var schemas_0 = __webpack_require__(1684);
+var errors = __webpack_require__(1688);
var client = __webpack_require__(5152);
var regionConfigResolver = __webpack_require__(6463);
-
-class STSServiceException extends smithyClient.ServiceException {
- constructor(options) {
- super(options);
- Object.setPrototypeOf(this, STSServiceException.prototype);
- }
-}
-
-class ExpiredTokenException extends STSServiceException {
- name = "ExpiredTokenException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "ExpiredTokenException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
- }
-}
-class MalformedPolicyDocumentException extends STSServiceException {
- name = "MalformedPolicyDocumentException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "MalformedPolicyDocumentException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
- }
-}
-class PackedPolicyTooLargeException extends STSServiceException {
- name = "PackedPolicyTooLargeException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "PackedPolicyTooLargeException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
- }
-}
-class RegionDisabledException extends STSServiceException {
- name = "RegionDisabledException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "RegionDisabledException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, RegionDisabledException.prototype);
- }
-}
-class IDPRejectedClaimException extends STSServiceException {
- name = "IDPRejectedClaimException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "IDPRejectedClaimException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
- }
-}
-class InvalidIdentityTokenException extends STSServiceException {
- name = "InvalidIdentityTokenException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "InvalidIdentityTokenException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
- }
-}
-class IDPCommunicationErrorException extends STSServiceException {
- name = "IDPCommunicationErrorException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "IDPCommunicationErrorException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
- }
-}
-
-const _A = "Arn";
-const _AKI = "AccessKeyId";
-const _AR = "AssumeRole";
-const _ARI = "AssumedRoleId";
-const _ARR = "AssumeRoleRequest";
-const _ARRs = "AssumeRoleResponse";
-const _ARU = "AssumedRoleUser";
-const _ARWWI = "AssumeRoleWithWebIdentity";
-const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
-const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
-const _Au = "Audience";
-const _C = "Credentials";
-const _CA = "ContextAssertion";
-const _DS = "DurationSeconds";
-const _E = "Expiration";
-const _EI = "ExternalId";
-const _ETE = "ExpiredTokenException";
-const _IDPCEE = "IDPCommunicationErrorException";
-const _IDPRCE = "IDPRejectedClaimException";
-const _IITE = "InvalidIdentityTokenException";
-const _K = "Key";
-const _MPDE = "MalformedPolicyDocumentException";
-const _P = "Policy";
-const _PA = "PolicyArns";
-const _PAr = "ProviderArn";
-const _PC = "ProvidedContexts";
-const _PCLT = "ProvidedContextsListType";
-const _PCr = "ProvidedContext";
-const _PDT = "PolicyDescriptorType";
-const _PI = "ProviderId";
-const _PPS = "PackedPolicySize";
-const _PPTLE = "PackedPolicyTooLargeException";
-const _Pr = "Provider";
-const _RA = "RoleArn";
-const _RDE = "RegionDisabledException";
-const _RSN = "RoleSessionName";
-const _SAK = "SecretAccessKey";
-const _SFWIT = "SubjectFromWebIdentityToken";
-const _SI = "SourceIdentity";
-const _SN = "SerialNumber";
-const _ST = "SessionToken";
-const _T = "Tags";
-const _TC = "TokenCode";
-const _TTK = "TransitiveTagKeys";
-const _Ta = "Tag";
-const _V = "Value";
-const _WIT = "WebIdentityToken";
-const _a = "arn";
-const _aKST = "accessKeySecretType";
-const _aQE = "awsQueryError";
-const _c = "client";
-const _cTT = "clientTokenType";
-const _e = "error";
-const _hE = "httpError";
-const _m = "message";
-const _pDLT = "policyDescriptorListType";
-const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
-const _tLT = "tagListType";
-const n0 = "com.amazonaws.sts";
-var accessKeySecretType = [0, n0, _aKST, 8, 0];
-var clientTokenType = [0, n0, _cTT, 8, 0];
-var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
-var AssumeRoleRequest$ = [
- 3,
- n0,
- _ARR,
- 0,
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
- 2,
-];
-var AssumeRoleResponse$ = [
- 3,
- n0,
- _ARRs,
- 0,
- [_C, _ARU, _PPS, _SI],
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],
-];
-var AssumeRoleWithWebIdentityRequest$ = [
- 3,
- n0,
- _ARWWIR,
- 0,
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
- 3,
-];
-var AssumeRoleWithWebIdentityResponse$ = [
- 3,
- n0,
- _ARWWIRs,
- 0,
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],
-];
-var Credentials$ = [
- 3,
- n0,
- _C,
- 0,
- [_AKI, _SAK, _ST, _E],
- [0, [() => accessKeySecretType, 0], 0, 4],
- 4,
-];
-var ExpiredTokenException$ = [
- -3,
- n0,
- _ETE,
- { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
-var IDPCommunicationErrorException$ = [
- -3,
- n0,
- _IDPCEE,
- { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
-var IDPRejectedClaimException$ = [
- -3,
- n0,
- _IDPRCE,
- { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
-var InvalidIdentityTokenException$ = [
- -3,
- n0,
- _IITE,
- { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
-var MalformedPolicyDocumentException$ = [
- -3,
- n0,
- _MPDE,
- { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
-var PackedPolicyTooLargeException$ = [
- -3,
- n0,
- _PPTLE,
- { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
-var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
-var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
-var RegionDisabledException$ = [
- -3,
- n0,
- _RDE,
- { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);
-var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
-var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
-schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);
-var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
-var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
-var tagListType = [1, n0, _tLT, 0, () => Tag$];
-var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
-var AssumeRoleWithWebIdentity$ = [
- 9,
- n0,
- _ARWWI,
- 0,
- () => AssumeRoleWithWebIdentityRequest$,
- () => AssumeRoleWithWebIdentityResponse$,
-];
+var STSServiceException = __webpack_require__(7171);
class AssumeRoleCommand extends smithyClient.Command
.classBuilder()
@@ -546,7 +408,7 @@ class AssumeRoleCommand extends smithyClient.Command
})
.s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
.n("STSClient", "AssumeRoleCommand")
- .sc(AssumeRole$)
+ .sc(schemas_0.AssumeRole$)
.build() {
}
@@ -558,7 +420,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command
})
.s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
.n("STSClient", "AssumeRoleWithWebIdentityCommand")
- .sc(AssumeRoleWithWebIdentity$)
+ .sc(schemas_0.AssumeRoleWithWebIdentity$)
.build() {
}
@@ -690,49 +552,165 @@ const decorateDefaultCredentialProvider = (provider) => (input) => provider({
...input,
});
-Object.defineProperty(exports, "$Command", ({
- enumerable: true,
- get: function () { return smithyClient.Command; }
-}));
-exports.AssumeRole$ = AssumeRole$;
+exports.$Command = smithyClient.Command;
+exports.STSServiceException = STSServiceException.STSServiceException;
exports.AssumeRoleCommand = AssumeRoleCommand;
-exports.AssumeRoleRequest$ = AssumeRoleRequest$;
-exports.AssumeRoleResponse$ = AssumeRoleResponse$;
-exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
-exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
-exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
-exports.AssumedRoleUser$ = AssumedRoleUser$;
-exports.Credentials$ = Credentials$;
-exports.ExpiredTokenException = ExpiredTokenException;
-exports.ExpiredTokenException$ = ExpiredTokenException$;
-exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
-exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
-exports.IDPRejectedClaimException = IDPRejectedClaimException;
-exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
-exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
-exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
-exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
-exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
-exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
-exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
-exports.PolicyDescriptorType$ = PolicyDescriptorType$;
-exports.ProvidedContext$ = ProvidedContext$;
-exports.RegionDisabledException = RegionDisabledException;
-exports.RegionDisabledException$ = RegionDisabledException$;
exports.STS = STS;
-exports.STSServiceException = STSServiceException;
-exports.STSServiceException$ = STSServiceException$;
-exports.Tag$ = Tag$;
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
-Object.keys(STSClient).forEach(function (k) {
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
+Object.prototype.hasOwnProperty.call(STSClient, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
enumerable: true,
- get: function () { return STSClient[k]; }
+ value: STSClient['__proto__']
});
+
+Object.keys(STSClient).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = STSClient[k];
});
+Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: schemas_0['__proto__']
+ });
+
+Object.keys(schemas_0).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
+});
+Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: errors['__proto__']
+ });
+
+Object.keys(errors).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
+});
+
+
+/***/ }),
+
+/***/ 7171:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.STSServiceException = exports.__ServiceException = void 0;
+const smithy_client_1 = __webpack_require__(1411);
+Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
+class STSServiceException extends smithy_client_1.ServiceException {
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, STSServiceException.prototype);
+ }
+}
+exports.STSServiceException = STSServiceException;
+
+
+/***/ }),
+
+/***/ 1688:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0;
+const STSServiceException_1 = __webpack_require__(7171);
+class ExpiredTokenException extends STSServiceException_1.STSServiceException {
+ name = "ExpiredTokenException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "ExpiredTokenException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
+ }
+}
+exports.ExpiredTokenException = ExpiredTokenException;
+class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {
+ name = "MalformedPolicyDocumentException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "MalformedPolicyDocumentException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
+ }
+}
+exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
+class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {
+ name = "PackedPolicyTooLargeException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "PackedPolicyTooLargeException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
+ }
+}
+exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
+class RegionDisabledException extends STSServiceException_1.STSServiceException {
+ name = "RegionDisabledException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "RegionDisabledException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, RegionDisabledException.prototype);
+ }
+}
+exports.RegionDisabledException = RegionDisabledException;
+class IDPRejectedClaimException extends STSServiceException_1.STSServiceException {
+ name = "IDPRejectedClaimException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "IDPRejectedClaimException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
+ }
+}
+exports.IDPRejectedClaimException = IDPRejectedClaimException;
+class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {
+ name = "InvalidIdentityTokenException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "InvalidIdentityTokenException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
+ }
+}
+exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
+class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
+ name = "IDPCommunicationErrorException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "IDPCommunicationErrorException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
+ }
+}
+exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
/***/ }),
@@ -826,6 +804,7 @@ const util_base64_1 = __webpack_require__(8385);
const util_utf8_1 = __webpack_require__(1577);
const httpAuthSchemeProvider_1 = __webpack_require__(7851);
const endpointResolver_1 = __webpack_require__(9765);
+const schemas_0_1 = __webpack_require__(1684);
const getRuntimeConfig = (config) => {
return {
apiVersion: "2011-06-15",
@@ -851,6 +830,7 @@ const getRuntimeConfig = (config) => {
protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.sts",
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
version: "2011-06-15",
serviceTarget: "AWSSecurityTokenServiceV20110615",
@@ -884,12 +864,214 @@ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
+/***/ }),
+
+/***/ 1684:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.AssumeRoleWithWebIdentity$ = exports.AssumeRole$ = exports.Tag$ = exports.ProvidedContext$ = exports.PolicyDescriptorType$ = exports.Credentials$ = exports.AssumeRoleWithWebIdentityResponse$ = exports.AssumeRoleWithWebIdentityRequest$ = exports.AssumeRoleResponse$ = exports.AssumeRoleRequest$ = exports.AssumedRoleUser$ = exports.errorTypeRegistries = exports.RegionDisabledException$ = exports.PackedPolicyTooLargeException$ = exports.MalformedPolicyDocumentException$ = exports.InvalidIdentityTokenException$ = exports.IDPRejectedClaimException$ = exports.IDPCommunicationErrorException$ = exports.ExpiredTokenException$ = exports.STSServiceException$ = void 0;
+const _A = "Arn";
+const _AKI = "AccessKeyId";
+const _AR = "AssumeRole";
+const _ARI = "AssumedRoleId";
+const _ARR = "AssumeRoleRequest";
+const _ARRs = "AssumeRoleResponse";
+const _ARU = "AssumedRoleUser";
+const _ARWWI = "AssumeRoleWithWebIdentity";
+const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
+const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
+const _Au = "Audience";
+const _C = "Credentials";
+const _CA = "ContextAssertion";
+const _DS = "DurationSeconds";
+const _E = "Expiration";
+const _EI = "ExternalId";
+const _ETE = "ExpiredTokenException";
+const _IDPCEE = "IDPCommunicationErrorException";
+const _IDPRCE = "IDPRejectedClaimException";
+const _IITE = "InvalidIdentityTokenException";
+const _K = "Key";
+const _MPDE = "MalformedPolicyDocumentException";
+const _P = "Policy";
+const _PA = "PolicyArns";
+const _PAr = "ProviderArn";
+const _PC = "ProvidedContexts";
+const _PCLT = "ProvidedContextsListType";
+const _PCr = "ProvidedContext";
+const _PDT = "PolicyDescriptorType";
+const _PI = "ProviderId";
+const _PPS = "PackedPolicySize";
+const _PPTLE = "PackedPolicyTooLargeException";
+const _Pr = "Provider";
+const _RA = "RoleArn";
+const _RDE = "RegionDisabledException";
+const _RSN = "RoleSessionName";
+const _SAK = "SecretAccessKey";
+const _SFWIT = "SubjectFromWebIdentityToken";
+const _SI = "SourceIdentity";
+const _SN = "SerialNumber";
+const _ST = "SessionToken";
+const _T = "Tags";
+const _TC = "TokenCode";
+const _TTK = "TransitiveTagKeys";
+const _Ta = "Tag";
+const _V = "Value";
+const _WIT = "WebIdentityToken";
+const _a = "arn";
+const _aKST = "accessKeySecretType";
+const _aQE = "awsQueryError";
+const _c = "client";
+const _cTT = "clientTokenType";
+const _e = "error";
+const _hE = "httpError";
+const _m = "message";
+const _pDLT = "policyDescriptorListType";
+const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
+const _tLT = "tagListType";
+const n0 = "com.amazonaws.sts";
+const schema_1 = __webpack_require__(6890);
+const errors_1 = __webpack_require__(1688);
+const STSServiceException_1 = __webpack_require__(7171);
+const _s_registry = schema_1.TypeRegistry.for(_s);
+exports.STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
+_s_registry.registerError(exports.STSServiceException$, STSServiceException_1.STSServiceException);
+const n0_registry = schema_1.TypeRegistry.for(n0);
+exports.ExpiredTokenException$ = [
+ -3,
+ n0,
+ _ETE,
+ { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
+exports.IDPCommunicationErrorException$ = [
+ -3,
+ n0,
+ _IDPCEE,
+ { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.IDPCommunicationErrorException$, errors_1.IDPCommunicationErrorException);
+exports.IDPRejectedClaimException$ = [
+ -3,
+ n0,
+ _IDPRCE,
+ { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.IDPRejectedClaimException$, errors_1.IDPRejectedClaimException);
+exports.InvalidIdentityTokenException$ = [
+ -3,
+ n0,
+ _IITE,
+ { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.InvalidIdentityTokenException$, errors_1.InvalidIdentityTokenException);
+exports.MalformedPolicyDocumentException$ = [
+ -3,
+ n0,
+ _MPDE,
+ { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.MalformedPolicyDocumentException$, errors_1.MalformedPolicyDocumentException);
+exports.PackedPolicyTooLargeException$ = [
+ -3,
+ n0,
+ _PPTLE,
+ { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.PackedPolicyTooLargeException$, errors_1.PackedPolicyTooLargeException);
+exports.RegionDisabledException$ = [
+ -3,
+ n0,
+ _RDE,
+ { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
+ [_m],
+ [0],
+];
+n0_registry.registerError(exports.RegionDisabledException$, errors_1.RegionDisabledException);
+exports.errorTypeRegistries = [_s_registry, n0_registry];
+var accessKeySecretType = [0, n0, _aKST, 8, 0];
+var clientTokenType = [0, n0, _cTT, 8, 0];
+exports.AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
+exports.AssumeRoleRequest$ = [
+ 3,
+ n0,
+ _ARR,
+ 0,
+ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
+ [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
+ 2,
+];
+exports.AssumeRoleResponse$ = [
+ 3,
+ n0,
+ _ARRs,
+ 0,
+ [_C, _ARU, _PPS, _SI],
+ [[() => exports.Credentials$, 0], () => exports.AssumedRoleUser$, 1, 0],
+];
+exports.AssumeRoleWithWebIdentityRequest$ = [
+ 3,
+ n0,
+ _ARWWIR,
+ 0,
+ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
+ [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
+ 3,
+];
+exports.AssumeRoleWithWebIdentityResponse$ = [
+ 3,
+ n0,
+ _ARWWIRs,
+ 0,
+ [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
+ [[() => exports.Credentials$, 0], 0, () => exports.AssumedRoleUser$, 1, 0, 0, 0],
+];
+exports.Credentials$ = [
+ 3,
+ n0,
+ _C,
+ 0,
+ [_AKI, _SAK, _ST, _E],
+ [0, [() => accessKeySecretType, 0], 0, 4],
+ 4,
+];
+exports.PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
+exports.ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
+exports.Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
+var policyDescriptorListType = [1, n0, _pDLT, 0, () => exports.PolicyDescriptorType$];
+var ProvidedContextsListType = [1, n0, _PCLT, 0, () => exports.ProvidedContext$];
+var tagKeyListType = (/* unused pure expression or super */ null && (64 | 0));
+var tagListType = [1, n0, _tLT, 0, () => exports.Tag$];
+exports.AssumeRole$ = [9, n0, _AR, 0, () => exports.AssumeRoleRequest$, () => exports.AssumeRoleResponse$];
+exports.AssumeRoleWithWebIdentity$ = [
+ 9,
+ n0,
+ _ARWWI,
+ 0,
+ () => exports.AssumeRoleWithWebIdentityRequest$,
+ () => exports.AssumeRoleWithWebIdentityResponse$,
+];
+
+
/***/ }),
/***/ 9955:
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
+module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.3","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.15","@aws-sdk/middleware-host-header":"^3.972.6","@aws-sdk/middleware-logger":"^3.972.6","@aws-sdk/middleware-recursion-detection":"^3.972.6","@aws-sdk/middleware-user-agent":"^3.972.15","@aws-sdk/region-config-resolver":"^3.972.6","@aws-sdk/types":"^3.973.4","@aws-sdk/util-endpoints":"^3.996.3","@aws-sdk/util-user-agent-browser":"^3.972.6","@aws-sdk/util-user-agent-node":"^3.973.0","@smithy/config-resolver":"^4.4.9","@smithy/core":"^3.23.6","@smithy/fetch-http-handler":"^5.3.11","@smithy/hash-node":"^4.2.10","@smithy/invalid-dependency":"^4.2.10","@smithy/middleware-content-length":"^4.2.10","@smithy/middleware-endpoint":"^4.4.20","@smithy/middleware-retry":"^4.4.37","@smithy/middleware-serde":"^4.2.11","@smithy/middleware-stack":"^4.2.10","@smithy/node-config-provider":"^4.3.10","@smithy/node-http-handler":"^4.4.12","@smithy/protocol-http":"^5.3.10","@smithy/smithy-client":"^4.12.0","@smithy/types":"^4.13.0","@smithy/url-parser":"^4.2.10","@smithy/util-base64":"^4.3.1","@smithy/util-body-length-browser":"^4.2.1","@smithy/util-body-length-node":"^4.2.2","@smithy/util-defaults-mode-browser":"^4.3.36","@smithy/util-defaults-mode-node":"^4.2.39","@smithy/util-endpoints":"^3.3.1","@smithy/util-middleware":"^4.2.10","@smithy/util-retry":"^4.2.10","@smithy/util-utf8":"^4.2.1","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
/***/ })
diff --git a/dist/136.index.js.map b/dist/136.index.js.map
index 8735576..0f690a5 100644
--- a/dist/136.index.js.map
+++ b/dist/136.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"136.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACleA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.STSClient = exports.__Client = void 0;\nconst middleware_host_header_1 = require(\"@aws-sdk/middleware-host-header\");\nconst middleware_logger_1 = require(\"@aws-sdk/middleware-logger\");\nconst middleware_recursion_detection_1 = require(\"@aws-sdk/middleware-recursion-detection\");\nconst middleware_user_agent_1 = require(\"@aws-sdk/middleware-user-agent\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_1 = require(\"@smithy/core\");\nconst schema_1 = require(\"@smithy/core/schema\");\nconst middleware_content_length_1 = require(\"@smithy/middleware-content-length\");\nconst middleware_endpoint_1 = require(\"@smithy/middleware-endpoint\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__Client\", { enumerable: true, get: function () { return smithy_client_1.Client; } });\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst EndpointParameters_1 = require(\"./endpoint/EndpointParameters\");\nconst runtimeConfig_1 = require(\"./runtimeConfig\");\nconst runtimeExtensions_1 = require(\"./runtimeExtensions\");\nclass STSClient extends smithy_client_1.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);\n const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);\n const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);\n const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);\n const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);\n const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);\n const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);\n const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));\n this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));\n this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));\n this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));\n this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));\n this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));\n this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));\n this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\nexports.STSClient = STSClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nexports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\nexports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst STSClient_1 = require(\"../STSClient\");\nconst defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sts\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSTSHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"AssumeRoleWithWebIdentity\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;\nconst resolveStsAuthConfig = (input) => Object.assign(input, {\n stsClientCtor: STSClient_1.STSClient,\n});\nexports.resolveStsAuthConfig = resolveStsAuthConfig;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, exports.resolveStsAuthConfig)(config);\n const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);\n return Object.assign(config_1, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.commonParams = exports.resolveClientEndpointParameters = void 0;\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n useGlobalEndpoint: options.useGlobalEndpoint ?? false,\n defaultSigningName: \"sts\",\n });\n};\nexports.resolveClientEndpointParameters = resolveClientEndpointParameters;\nexports.commonParams = {\n UseGlobalEndpoint: { type: \"builtInParams\", name: \"useGlobalEndpoint\" },\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\", \"UseGlobalEndpoint\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst F = \"required\", G = \"type\", H = \"fn\", I = \"argv\", J = \"ref\";\nconst a = false, b = true, c = \"booleanEquals\", d = \"stringEquals\", e = \"sigv4\", f = \"sts\", g = \"us-east-1\", h = \"endpoint\", i = \"https://sts.{Region}.{PartitionResult#dnsSuffix}\", j = \"tree\", k = \"error\", l = \"getAttr\", m = { [F]: false, [G]: \"string\" }, n = { [F]: true, \"default\": false, [G]: \"boolean\" }, o = { [J]: \"Endpoint\" }, p = { [H]: \"isSet\", [I]: [{ [J]: \"Region\" }] }, q = { [J]: \"Region\" }, r = { [H]: \"aws.partition\", [I]: [q], \"assign\": \"PartitionResult\" }, s = { [J]: \"UseFIPS\" }, t = { [J]: \"UseDualStack\" }, u = { \"url\": \"https://sts.amazonaws.com\", \"properties\": { \"authSchemes\": [{ \"name\": e, \"signingName\": f, \"signingRegion\": g }] }, \"headers\": {} }, v = {}, w = { \"conditions\": [{ [H]: d, [I]: [q, \"aws-global\"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: \"PartitionResult\" }, \"supportsFIPS\"] }, A = { [J]: \"PartitionResult\" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, \"supportsDualStack\"] }] }, C = [{ [H]: \"isSet\", [I]: [o] }], D = [x], E = [y];\nconst _data = { version: \"1.0\", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: \"UseGlobalEndpoint\" }, b] }, { [H]: \"not\", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, \"ap-northeast-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-south-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-2\"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, \"ca-central-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-central-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-north-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-2\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-3\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"sa-east-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-east-2\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-west-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-west-2\"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: \"{Region}\" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", [G]: k }, { conditions: E, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: \"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, \"name\"] }, \"aws-us-gov\"] }], endpoint: { url: \"https://sts.{Region}.amazonaws.com\", properties: v, headers: v }, [G]: h }, { endpoint: { url: \"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"FIPS is enabled but this partition does not support FIPS\", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: \"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"DualStack is enabled but this partition does not support DualStack\", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: \"Invalid Configuration: Missing Region\", [G]: k }] };\nexports.ruleSet = _data;\n","'use strict';\n\nvar STSClient = require('./STSClient');\nvar smithyClient = require('@smithy/smithy-client');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar EndpointParameters = require('./endpoint/EndpointParameters');\nvar schema = require('@smithy/core/schema');\nvar client = require('@aws-sdk/core/client');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\n\nclass STSServiceException extends smithyClient.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, STSServiceException.prototype);\n }\n}\n\nclass ExpiredTokenException extends STSServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n }\n}\nclass MalformedPolicyDocumentException extends STSServiceException {\n name = \"MalformedPolicyDocumentException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MalformedPolicyDocumentException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);\n }\n}\nclass PackedPolicyTooLargeException extends STSServiceException {\n name = \"PackedPolicyTooLargeException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"PackedPolicyTooLargeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);\n }\n}\nclass RegionDisabledException extends STSServiceException {\n name = \"RegionDisabledException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"RegionDisabledException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, RegionDisabledException.prototype);\n }\n}\nclass IDPRejectedClaimException extends STSServiceException {\n name = \"IDPRejectedClaimException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPRejectedClaimException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);\n }\n}\nclass InvalidIdentityTokenException extends STSServiceException {\n name = \"InvalidIdentityTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidIdentityTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);\n }\n}\nclass IDPCommunicationErrorException extends STSServiceException {\n name = \"IDPCommunicationErrorException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPCommunicationErrorException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);\n }\n}\n\nconst _A = \"Arn\";\nconst _AKI = \"AccessKeyId\";\nconst _AR = \"AssumeRole\";\nconst _ARI = \"AssumedRoleId\";\nconst _ARR = \"AssumeRoleRequest\";\nconst _ARRs = \"AssumeRoleResponse\";\nconst _ARU = \"AssumedRoleUser\";\nconst _ARWWI = \"AssumeRoleWithWebIdentity\";\nconst _ARWWIR = \"AssumeRoleWithWebIdentityRequest\";\nconst _ARWWIRs = \"AssumeRoleWithWebIdentityResponse\";\nconst _Au = \"Audience\";\nconst _C = \"Credentials\";\nconst _CA = \"ContextAssertion\";\nconst _DS = \"DurationSeconds\";\nconst _E = \"Expiration\";\nconst _EI = \"ExternalId\";\nconst _ETE = \"ExpiredTokenException\";\nconst _IDPCEE = \"IDPCommunicationErrorException\";\nconst _IDPRCE = \"IDPRejectedClaimException\";\nconst _IITE = \"InvalidIdentityTokenException\";\nconst _K = \"Key\";\nconst _MPDE = \"MalformedPolicyDocumentException\";\nconst _P = \"Policy\";\nconst _PA = \"PolicyArns\";\nconst _PAr = \"ProviderArn\";\nconst _PC = \"ProvidedContexts\";\nconst _PCLT = \"ProvidedContextsListType\";\nconst _PCr = \"ProvidedContext\";\nconst _PDT = \"PolicyDescriptorType\";\nconst _PI = \"ProviderId\";\nconst _PPS = \"PackedPolicySize\";\nconst _PPTLE = \"PackedPolicyTooLargeException\";\nconst _Pr = \"Provider\";\nconst _RA = \"RoleArn\";\nconst _RDE = \"RegionDisabledException\";\nconst _RSN = \"RoleSessionName\";\nconst _SAK = \"SecretAccessKey\";\nconst _SFWIT = \"SubjectFromWebIdentityToken\";\nconst _SI = \"SourceIdentity\";\nconst _SN = \"SerialNumber\";\nconst _ST = \"SessionToken\";\nconst _T = \"Tags\";\nconst _TC = \"TokenCode\";\nconst _TTK = \"TransitiveTagKeys\";\nconst _Ta = \"Tag\";\nconst _V = \"Value\";\nconst _WIT = \"WebIdentityToken\";\nconst _a = \"arn\";\nconst _aKST = \"accessKeySecretType\";\nconst _aQE = \"awsQueryError\";\nconst _c = \"client\";\nconst _cTT = \"clientTokenType\";\nconst _e = \"error\";\nconst _hE = \"httpError\";\nconst _m = \"message\";\nconst _pDLT = \"policyDescriptorListType\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sts\";\nconst _tLT = \"tagListType\";\nconst n0 = \"com.amazonaws.sts\";\nvar accessKeySecretType = [0, n0, _aKST, 8, 0];\nvar clientTokenType = [0, n0, _cTT, 8, 0];\nvar AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];\nvar AssumeRoleRequest$ = [\n 3,\n n0,\n _ARR,\n 0,\n [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],\n [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],\n 2,\n];\nvar AssumeRoleResponse$ = [\n 3,\n n0,\n _ARRs,\n 0,\n [_C, _ARU, _PPS, _SI],\n [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],\n];\nvar AssumeRoleWithWebIdentityRequest$ = [\n 3,\n n0,\n _ARWWIR,\n 0,\n [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],\n [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],\n 3,\n];\nvar AssumeRoleWithWebIdentityResponse$ = [\n 3,\n n0,\n _ARWWIRs,\n 0,\n [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],\n [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],\n];\nvar Credentials$ = [\n 3,\n n0,\n _C,\n 0,\n [_AKI, _SAK, _ST, _E],\n [0, [() => accessKeySecretType, 0], 0, 4],\n 4,\n];\nvar ExpiredTokenException$ = [\n -3,\n n0,\n _ETE,\n { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);\nvar IDPCommunicationErrorException$ = [\n -3,\n n0,\n _IDPCEE,\n { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);\nvar IDPRejectedClaimException$ = [\n -3,\n n0,\n _IDPRCE,\n { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);\nvar InvalidIdentityTokenException$ = [\n -3,\n n0,\n _IITE,\n { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);\nvar MalformedPolicyDocumentException$ = [\n -3,\n n0,\n _MPDE,\n { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);\nvar PackedPolicyTooLargeException$ = [\n -3,\n n0,\n _PPTLE,\n { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);\nvar PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];\nvar ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];\nvar RegionDisabledException$ = [\n -3,\n n0,\n _RDE,\n { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);\nvar Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];\nvar STSServiceException$ = [-3, _s, \"STSServiceException\", 0, [], []];\nschema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);\nvar policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];\nvar ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];\nvar tagListType = [1, n0, _tLT, 0, () => Tag$];\nvar AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];\nvar AssumeRoleWithWebIdentity$ = [\n 9,\n n0,\n _ARWWI,\n 0,\n () => AssumeRoleWithWebIdentityRequest$,\n () => AssumeRoleWithWebIdentityResponse$,\n];\n\nclass AssumeRoleCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRole\", {})\n .n(\"STSClient\", \"AssumeRoleCommand\")\n .sc(AssumeRole$)\n .build() {\n}\n\nclass AssumeRoleWithWebIdentityCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRoleWithWebIdentity\", {})\n .n(\"STSClient\", \"AssumeRoleWithWebIdentityCommand\")\n .sc(AssumeRoleWithWebIdentity$)\n .build() {\n}\n\nconst commands = {\n AssumeRoleCommand,\n AssumeRoleWithWebIdentityCommand,\n};\nclass STS extends STSClient.STSClient {\n}\nsmithyClient.createAggregatedClient(commands, STS);\n\nconst getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {\n if (typeof assumedRoleUser?.Arn === \"string\") {\n const arnComponents = assumedRoleUser.Arn.split(\":\");\n if (arnComponents.length > 4 && arnComponents[4] !== \"\") {\n return arnComponents[4];\n }\n }\n return undefined;\n};\nconst resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {\n const region = typeof _region === \"function\" ? await _region() : _region;\n const parentRegion = typeof _parentRegion === \"function\" ? await _parentRegion() : _parentRegion;\n let stsDefaultRegion = \"\";\n const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());\n credentialProviderLogger?.debug?.(\"@aws-sdk/client-sts::resolveRegion\", \"accepting first of:\", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);\n return resolvedRegion;\n};\nconst getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {\n let stsClient;\n let closureSourceCreds;\n return async (sourceCreds, params) => {\n closureSourceCreds = sourceCreds;\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n credentialDefaultProvider: () => async () => closureSourceCreds,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE\", \"i\");\n return credentials;\n };\n};\nconst getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {\n let stsClient;\n return async (params) => {\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n if (accountId) {\n client.setCredentialFeature(credentials, \"RESOLVED_ACCOUNT_ID\", \"T\");\n }\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID\", \"k\");\n return credentials;\n };\n};\nconst isH2 = (requestHandler) => {\n return requestHandler?.metadata?.handlerProtocol === \"h2\";\n};\n\nconst getCustomizableStsClientCtor = (baseCtor, customizations) => {\n if (!customizations)\n return baseCtor;\n else\n return class CustomizableSTSClient extends baseCtor {\n constructor(config) {\n super(config);\n for (const customization of customizations) {\n this.middlewareStack.use(customization);\n }\n }\n };\n};\nconst getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst decorateDefaultCredentialProvider = (provider) => (input) => provider({\n roleAssumer: getDefaultRoleAssumer(input),\n roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),\n ...input,\n});\n\nObject.defineProperty(exports, \"$Command\", {\n enumerable: true,\n get: function () { return smithyClient.Command; }\n});\nexports.AssumeRole$ = AssumeRole$;\nexports.AssumeRoleCommand = AssumeRoleCommand;\nexports.AssumeRoleRequest$ = AssumeRoleRequest$;\nexports.AssumeRoleResponse$ = AssumeRoleResponse$;\nexports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;\nexports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;\nexports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;\nexports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;\nexports.AssumedRoleUser$ = AssumedRoleUser$;\nexports.Credentials$ = Credentials$;\nexports.ExpiredTokenException = ExpiredTokenException;\nexports.ExpiredTokenException$ = ExpiredTokenException$;\nexports.IDPCommunicationErrorException = IDPCommunicationErrorException;\nexports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;\nexports.IDPRejectedClaimException = IDPRejectedClaimException;\nexports.IDPRejectedClaimException$ = IDPRejectedClaimException$;\nexports.InvalidIdentityTokenException = InvalidIdentityTokenException;\nexports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;\nexports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;\nexports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;\nexports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;\nexports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;\nexports.PolicyDescriptorType$ = PolicyDescriptorType$;\nexports.ProvidedContext$ = ProvidedContext$;\nexports.RegionDisabledException = RegionDisabledException;\nexports.RegionDisabledException$ = RegionDisabledException$;\nexports.STS = STS;\nexports.STSServiceException = STSServiceException;\nexports.STSServiceException$ = STSServiceException$;\nexports.Tag$ = Tag$;\nexports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;\nexports.getDefaultRoleAssumer = getDefaultRoleAssumer;\nexports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;\nObject.keys(STSClient).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {\n enumerable: true,\n get: function () { return STSClient[k]; }\n });\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_2 = require(\"@smithy/core\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\") ||\n (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2011-06-15\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sts\",\n xmlNamespace: \"https://sts.amazonaws.com/doc/2011-06-15/\",\n version: \"2011-06-15\",\n serviceTarget: \"AWSSecurityTokenServiceV20110615\",\n },\n serviceId: config?.serviceId ?? \"STS\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveRuntimeExtensions = void 0;\nconst region_config_resolver_1 = require(\"@aws-sdk/region-config-resolver\");\nconst protocol_http_1 = require(\"@smithy/protocol-http\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst httpAuthExtensionConfiguration_1 = require(\"./auth/httpAuthExtensionConfiguration\");\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));\n};\nexports.resolveRuntimeExtensions = resolveRuntimeExtensions;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"136.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.STSClient = exports.__Client = void 0;\nconst middleware_host_header_1 = require(\"@aws-sdk/middleware-host-header\");\nconst middleware_logger_1 = require(\"@aws-sdk/middleware-logger\");\nconst middleware_recursion_detection_1 = require(\"@aws-sdk/middleware-recursion-detection\");\nconst middleware_user_agent_1 = require(\"@aws-sdk/middleware-user-agent\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_1 = require(\"@smithy/core\");\nconst schema_1 = require(\"@smithy/core/schema\");\nconst middleware_content_length_1 = require(\"@smithy/middleware-content-length\");\nconst middleware_endpoint_1 = require(\"@smithy/middleware-endpoint\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__Client\", { enumerable: true, get: function () { return smithy_client_1.Client; } });\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst EndpointParameters_1 = require(\"./endpoint/EndpointParameters\");\nconst runtimeConfig_1 = require(\"./runtimeConfig\");\nconst runtimeExtensions_1 = require(\"./runtimeExtensions\");\nclass STSClient extends smithy_client_1.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);\n const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);\n const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);\n const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);\n const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);\n const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);\n const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);\n const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));\n this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));\n this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));\n this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));\n this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));\n this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));\n this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));\n this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\nexports.STSClient = STSClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nexports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\nexports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst STSClient_1 = require(\"../STSClient\");\nconst defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sts\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSTSHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"AssumeRoleWithWebIdentity\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;\nconst resolveStsAuthConfig = (input) => Object.assign(input, {\n stsClientCtor: STSClient_1.STSClient,\n});\nexports.resolveStsAuthConfig = resolveStsAuthConfig;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, exports.resolveStsAuthConfig)(config);\n const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);\n return Object.assign(config_1, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.commonParams = exports.resolveClientEndpointParameters = void 0;\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n useGlobalEndpoint: options.useGlobalEndpoint ?? false,\n defaultSigningName: \"sts\",\n });\n};\nexports.resolveClientEndpointParameters = resolveClientEndpointParameters;\nexports.commonParams = {\n UseGlobalEndpoint: { type: \"builtInParams\", name: \"useGlobalEndpoint\" },\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\", \"UseGlobalEndpoint\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst F = \"required\", G = \"type\", H = \"fn\", I = \"argv\", J = \"ref\";\nconst a = false, b = true, c = \"booleanEquals\", d = \"stringEquals\", e = \"sigv4\", f = \"sts\", g = \"us-east-1\", h = \"endpoint\", i = \"https://sts.{Region}.{PartitionResult#dnsSuffix}\", j = \"tree\", k = \"error\", l = \"getAttr\", m = { [F]: false, [G]: \"string\" }, n = { [F]: true, default: false, [G]: \"boolean\" }, o = { [J]: \"Endpoint\" }, p = { [H]: \"isSet\", [I]: [{ [J]: \"Region\" }] }, q = { [J]: \"Region\" }, r = { [H]: \"aws.partition\", [I]: [q], assign: \"PartitionResult\" }, s = { [J]: \"UseFIPS\" }, t = { [J]: \"UseDualStack\" }, u = {\n url: \"https://sts.amazonaws.com\",\n properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },\n headers: {},\n}, v = {}, w = { conditions: [{ [H]: d, [I]: [q, \"aws-global\"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: \"PartitionResult\" }, \"supportsFIPS\"] }, A = { [J]: \"PartitionResult\" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, \"supportsDualStack\"] }] }, C = [{ [H]: \"isSet\", [I]: [o] }], D = [x], E = [y];\nconst _data = {\n version: \"1.0\",\n parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },\n rules: [\n {\n conditions: [\n { [H]: c, [I]: [{ [J]: \"UseGlobalEndpoint\" }, b] },\n { [H]: \"not\", [I]: C },\n p,\n r,\n { [H]: c, [I]: [s, a] },\n { [H]: c, [I]: [t, a] },\n ],\n rules: [\n { conditions: [{ [H]: d, [I]: [q, \"ap-northeast-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"ap-south-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-2\"] }], endpoint: u, [G]: h },\n w,\n { conditions: [{ [H]: d, [I]: [q, \"ca-central-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"eu-central-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"eu-north-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"eu-west-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"eu-west-2\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"eu-west-3\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"sa-east-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"us-east-2\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"us-west-1\"] }], endpoint: u, [G]: h },\n { conditions: [{ [H]: d, [I]: [q, \"us-west-2\"] }], endpoint: u, [G]: h },\n {\n endpoint: {\n url: i,\n properties: { authSchemes: [{ name: e, signingName: f, signingRegion: \"{Region}\" }] },\n headers: v,\n },\n [G]: h,\n },\n ],\n [G]: j,\n },\n {\n conditions: C,\n rules: [\n { conditions: D, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", [G]: k },\n { conditions: E, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", [G]: k },\n { endpoint: { url: o, properties: v, headers: v }, [G]: h },\n ],\n [G]: j,\n },\n {\n conditions: [p],\n rules: [\n {\n conditions: [r],\n rules: [\n {\n conditions: [x, y],\n rules: [\n {\n conditions: [{ [H]: c, [I]: [b, z] }, B],\n rules: [\n {\n endpoint: {\n url: \"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: v,\n headers: v,\n },\n [G]: h,\n },\n ],\n [G]: j,\n },\n { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", [G]: k },\n ],\n [G]: j,\n },\n {\n conditions: D,\n rules: [\n {\n conditions: [{ [H]: c, [I]: [z, b] }],\n rules: [\n {\n conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, \"name\"] }, \"aws-us-gov\"] }],\n endpoint: { url: \"https://sts.{Region}.amazonaws.com\", properties: v, headers: v },\n [G]: h,\n },\n {\n endpoint: {\n url: \"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}\",\n properties: v,\n headers: v,\n },\n [G]: h,\n },\n ],\n [G]: j,\n },\n { error: \"FIPS is enabled but this partition does not support FIPS\", [G]: k },\n ],\n [G]: j,\n },\n {\n conditions: E,\n rules: [\n {\n conditions: [B],\n rules: [\n {\n endpoint: {\n url: \"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: v,\n headers: v,\n },\n [G]: h,\n },\n ],\n [G]: j,\n },\n { error: \"DualStack is enabled but this partition does not support DualStack\", [G]: k },\n ],\n [G]: j,\n },\n w,\n { endpoint: { url: i, properties: v, headers: v }, [G]: h },\n ],\n [G]: j,\n },\n ],\n [G]: j,\n },\n { error: \"Invalid Configuration: Missing Region\", [G]: k },\n ],\n};\nexports.ruleSet = _data;\n","'use strict';\n\nvar STSClient = require('./STSClient');\nvar smithyClient = require('@smithy/smithy-client');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar EndpointParameters = require('./endpoint/EndpointParameters');\nvar schemas_0 = require('./schemas/schemas_0');\nvar errors = require('./models/errors');\nvar client = require('@aws-sdk/core/client');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar STSServiceException = require('./models/STSServiceException');\n\nclass AssumeRoleCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRole\", {})\n .n(\"STSClient\", \"AssumeRoleCommand\")\n .sc(schemas_0.AssumeRole$)\n .build() {\n}\n\nclass AssumeRoleWithWebIdentityCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRoleWithWebIdentity\", {})\n .n(\"STSClient\", \"AssumeRoleWithWebIdentityCommand\")\n .sc(schemas_0.AssumeRoleWithWebIdentity$)\n .build() {\n}\n\nconst commands = {\n AssumeRoleCommand,\n AssumeRoleWithWebIdentityCommand,\n};\nclass STS extends STSClient.STSClient {\n}\nsmithyClient.createAggregatedClient(commands, STS);\n\nconst getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {\n if (typeof assumedRoleUser?.Arn === \"string\") {\n const arnComponents = assumedRoleUser.Arn.split(\":\");\n if (arnComponents.length > 4 && arnComponents[4] !== \"\") {\n return arnComponents[4];\n }\n }\n return undefined;\n};\nconst resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {\n const region = typeof _region === \"function\" ? await _region() : _region;\n const parentRegion = typeof _parentRegion === \"function\" ? await _parentRegion() : _parentRegion;\n let stsDefaultRegion = \"\";\n const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());\n credentialProviderLogger?.debug?.(\"@aws-sdk/client-sts::resolveRegion\", \"accepting first of:\", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);\n return resolvedRegion;\n};\nconst getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {\n let stsClient;\n let closureSourceCreds;\n return async (sourceCreds, params) => {\n closureSourceCreds = sourceCreds;\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n credentialDefaultProvider: () => async () => closureSourceCreds,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE\", \"i\");\n return credentials;\n };\n};\nconst getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {\n let stsClient;\n return async (params) => {\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n if (accountId) {\n client.setCredentialFeature(credentials, \"RESOLVED_ACCOUNT_ID\", \"T\");\n }\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID\", \"k\");\n return credentials;\n };\n};\nconst isH2 = (requestHandler) => {\n return requestHandler?.metadata?.handlerProtocol === \"h2\";\n};\n\nconst getCustomizableStsClientCtor = (baseCtor, customizations) => {\n if (!customizations)\n return baseCtor;\n else\n return class CustomizableSTSClient extends baseCtor {\n constructor(config) {\n super(config);\n for (const customization of customizations) {\n this.middlewareStack.use(customization);\n }\n }\n };\n};\nconst getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst decorateDefaultCredentialProvider = (provider) => (input) => provider({\n roleAssumer: getDefaultRoleAssumer(input),\n roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),\n ...input,\n});\n\nexports.$Command = smithyClient.Command;\nexports.STSServiceException = STSServiceException.STSServiceException;\nexports.AssumeRoleCommand = AssumeRoleCommand;\nexports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;\nexports.STS = STS;\nexports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;\nexports.getDefaultRoleAssumer = getDefaultRoleAssumer;\nexports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;\nObject.prototype.hasOwnProperty.call(STSClient, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: STSClient['__proto__']\n });\n\nObject.keys(STSClient).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = STSClient[k];\n});\nObject.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: schemas_0['__proto__']\n });\n\nObject.keys(schemas_0).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];\n});\nObject.prototype.hasOwnProperty.call(errors, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: errors['__proto__']\n });\n\nObject.keys(errors).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.STSServiceException = exports.__ServiceException = void 0;\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__ServiceException\", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });\nclass STSServiceException extends smithy_client_1.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, STSServiceException.prototype);\n }\n}\nexports.STSServiceException = STSServiceException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0;\nconst STSServiceException_1 = require(\"./STSServiceException\");\nclass ExpiredTokenException extends STSServiceException_1.STSServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n }\n}\nexports.ExpiredTokenException = ExpiredTokenException;\nclass MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {\n name = \"MalformedPolicyDocumentException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MalformedPolicyDocumentException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);\n }\n}\nexports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;\nclass PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {\n name = \"PackedPolicyTooLargeException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"PackedPolicyTooLargeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);\n }\n}\nexports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;\nclass RegionDisabledException extends STSServiceException_1.STSServiceException {\n name = \"RegionDisabledException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"RegionDisabledException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, RegionDisabledException.prototype);\n }\n}\nexports.RegionDisabledException = RegionDisabledException;\nclass IDPRejectedClaimException extends STSServiceException_1.STSServiceException {\n name = \"IDPRejectedClaimException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPRejectedClaimException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);\n }\n}\nexports.IDPRejectedClaimException = IDPRejectedClaimException;\nclass InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {\n name = \"InvalidIdentityTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidIdentityTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);\n }\n}\nexports.InvalidIdentityTokenException = InvalidIdentityTokenException;\nclass IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {\n name = \"IDPCommunicationErrorException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPCommunicationErrorException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);\n }\n}\nexports.IDPCommunicationErrorException = IDPCommunicationErrorException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_2 = require(\"@smithy/core\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\") ||\n (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst schemas_0_1 = require(\"./schemas/schemas_0\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2011-06-15\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sts\",\n errorTypeRegistries: schemas_0_1.errorTypeRegistries,\n xmlNamespace: \"https://sts.amazonaws.com/doc/2011-06-15/\",\n version: \"2011-06-15\",\n serviceTarget: \"AWSSecurityTokenServiceV20110615\",\n },\n serviceId: config?.serviceId ?? \"STS\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveRuntimeExtensions = void 0;\nconst region_config_resolver_1 = require(\"@aws-sdk/region-config-resolver\");\nconst protocol_http_1 = require(\"@smithy/protocol-http\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst httpAuthExtensionConfiguration_1 = require(\"./auth/httpAuthExtensionConfiguration\");\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));\n};\nexports.resolveRuntimeExtensions = resolveRuntimeExtensions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AssumeRoleWithWebIdentity$ = exports.AssumeRole$ = exports.Tag$ = exports.ProvidedContext$ = exports.PolicyDescriptorType$ = exports.Credentials$ = exports.AssumeRoleWithWebIdentityResponse$ = exports.AssumeRoleWithWebIdentityRequest$ = exports.AssumeRoleResponse$ = exports.AssumeRoleRequest$ = exports.AssumedRoleUser$ = exports.errorTypeRegistries = exports.RegionDisabledException$ = exports.PackedPolicyTooLargeException$ = exports.MalformedPolicyDocumentException$ = exports.InvalidIdentityTokenException$ = exports.IDPRejectedClaimException$ = exports.IDPCommunicationErrorException$ = exports.ExpiredTokenException$ = exports.STSServiceException$ = void 0;\nconst _A = \"Arn\";\nconst _AKI = \"AccessKeyId\";\nconst _AR = \"AssumeRole\";\nconst _ARI = \"AssumedRoleId\";\nconst _ARR = \"AssumeRoleRequest\";\nconst _ARRs = \"AssumeRoleResponse\";\nconst _ARU = \"AssumedRoleUser\";\nconst _ARWWI = \"AssumeRoleWithWebIdentity\";\nconst _ARWWIR = \"AssumeRoleWithWebIdentityRequest\";\nconst _ARWWIRs = \"AssumeRoleWithWebIdentityResponse\";\nconst _Au = \"Audience\";\nconst _C = \"Credentials\";\nconst _CA = \"ContextAssertion\";\nconst _DS = \"DurationSeconds\";\nconst _E = \"Expiration\";\nconst _EI = \"ExternalId\";\nconst _ETE = \"ExpiredTokenException\";\nconst _IDPCEE = \"IDPCommunicationErrorException\";\nconst _IDPRCE = \"IDPRejectedClaimException\";\nconst _IITE = \"InvalidIdentityTokenException\";\nconst _K = \"Key\";\nconst _MPDE = \"MalformedPolicyDocumentException\";\nconst _P = \"Policy\";\nconst _PA = \"PolicyArns\";\nconst _PAr = \"ProviderArn\";\nconst _PC = \"ProvidedContexts\";\nconst _PCLT = \"ProvidedContextsListType\";\nconst _PCr = \"ProvidedContext\";\nconst _PDT = \"PolicyDescriptorType\";\nconst _PI = \"ProviderId\";\nconst _PPS = \"PackedPolicySize\";\nconst _PPTLE = \"PackedPolicyTooLargeException\";\nconst _Pr = \"Provider\";\nconst _RA = \"RoleArn\";\nconst _RDE = \"RegionDisabledException\";\nconst _RSN = \"RoleSessionName\";\nconst _SAK = \"SecretAccessKey\";\nconst _SFWIT = \"SubjectFromWebIdentityToken\";\nconst _SI = \"SourceIdentity\";\nconst _SN = \"SerialNumber\";\nconst _ST = \"SessionToken\";\nconst _T = \"Tags\";\nconst _TC = \"TokenCode\";\nconst _TTK = \"TransitiveTagKeys\";\nconst _Ta = \"Tag\";\nconst _V = \"Value\";\nconst _WIT = \"WebIdentityToken\";\nconst _a = \"arn\";\nconst _aKST = \"accessKeySecretType\";\nconst _aQE = \"awsQueryError\";\nconst _c = \"client\";\nconst _cTT = \"clientTokenType\";\nconst _e = \"error\";\nconst _hE = \"httpError\";\nconst _m = \"message\";\nconst _pDLT = \"policyDescriptorListType\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sts\";\nconst _tLT = \"tagListType\";\nconst n0 = \"com.amazonaws.sts\";\nconst schema_1 = require(\"@smithy/core/schema\");\nconst errors_1 = require(\"../models/errors\");\nconst STSServiceException_1 = require(\"../models/STSServiceException\");\nconst _s_registry = schema_1.TypeRegistry.for(_s);\nexports.STSServiceException$ = [-3, _s, \"STSServiceException\", 0, [], []];\n_s_registry.registerError(exports.STSServiceException$, STSServiceException_1.STSServiceException);\nconst n0_registry = schema_1.TypeRegistry.for(n0);\nexports.ExpiredTokenException$ = [\n -3,\n n0,\n _ETE,\n { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);\nexports.IDPCommunicationErrorException$ = [\n -3,\n n0,\n _IDPCEE,\n { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.IDPCommunicationErrorException$, errors_1.IDPCommunicationErrorException);\nexports.IDPRejectedClaimException$ = [\n -3,\n n0,\n _IDPRCE,\n { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.IDPRejectedClaimException$, errors_1.IDPRejectedClaimException);\nexports.InvalidIdentityTokenException$ = [\n -3,\n n0,\n _IITE,\n { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.InvalidIdentityTokenException$, errors_1.InvalidIdentityTokenException);\nexports.MalformedPolicyDocumentException$ = [\n -3,\n n0,\n _MPDE,\n { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.MalformedPolicyDocumentException$, errors_1.MalformedPolicyDocumentException);\nexports.PackedPolicyTooLargeException$ = [\n -3,\n n0,\n _PPTLE,\n { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.PackedPolicyTooLargeException$, errors_1.PackedPolicyTooLargeException);\nexports.RegionDisabledException$ = [\n -3,\n n0,\n _RDE,\n { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nn0_registry.registerError(exports.RegionDisabledException$, errors_1.RegionDisabledException);\nexports.errorTypeRegistries = [_s_registry, n0_registry];\nvar accessKeySecretType = [0, n0, _aKST, 8, 0];\nvar clientTokenType = [0, n0, _cTT, 8, 0];\nexports.AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];\nexports.AssumeRoleRequest$ = [\n 3,\n n0,\n _ARR,\n 0,\n [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],\n [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],\n 2,\n];\nexports.AssumeRoleResponse$ = [\n 3,\n n0,\n _ARRs,\n 0,\n [_C, _ARU, _PPS, _SI],\n [[() => exports.Credentials$, 0], () => exports.AssumedRoleUser$, 1, 0],\n];\nexports.AssumeRoleWithWebIdentityRequest$ = [\n 3,\n n0,\n _ARWWIR,\n 0,\n [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],\n [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],\n 3,\n];\nexports.AssumeRoleWithWebIdentityResponse$ = [\n 3,\n n0,\n _ARWWIRs,\n 0,\n [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],\n [[() => exports.Credentials$, 0], 0, () => exports.AssumedRoleUser$, 1, 0, 0, 0],\n];\nexports.Credentials$ = [\n 3,\n n0,\n _C,\n 0,\n [_AKI, _SAK, _ST, _E],\n [0, [() => accessKeySecretType, 0], 0, 4],\n 4,\n];\nexports.PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];\nexports.ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];\nexports.Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];\nvar policyDescriptorListType = [1, n0, _pDLT, 0, () => exports.PolicyDescriptorType$];\nvar ProvidedContextsListType = [1, n0, _PCLT, 0, () => exports.ProvidedContext$];\nvar tagKeyListType = 64 | 0;\nvar tagListType = [1, n0, _tLT, 0, () => exports.Tag$];\nexports.AssumeRole$ = [9, n0, _AR, 0, () => exports.AssumeRoleRequest$, () => exports.AssumeRoleResponse$];\nexports.AssumeRoleWithWebIdentity$ = [\n 9,\n n0,\n _ARWWI,\n 0,\n () => exports.AssumeRoleWithWebIdentityRequest$,\n () => exports.AssumeRoleWithWebIdentityResponse$,\n];\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/360.index.js b/dist/360.index.js
index ccd37ae..5972e5f 100644
--- a/dist/360.index.js
+++ b/dist/360.index.js
@@ -9,8 +9,8 @@ export const modules = {
var sharedIniFileLoader = __webpack_require__(4964);
var propertyProvider = __webpack_require__(8857);
-var child_process = __webpack_require__(5317);
-var util = __webpack_require__(9023);
+var node_child_process = __webpack_require__(1421);
+var node_util = __webpack_require__(7975);
var client = __webpack_require__(5152);
const getValidatedProcessCredentials = (profileName, data, profiles) => {
@@ -48,7 +48,7 @@ const resolveProcessCredentials = async (profileName, profiles, logger) => {
if (profiles[profileName]) {
const credentialProcess = profile["credential_process"];
if (credentialProcess !== undefined) {
- const execPromise = util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? child_process.exec);
+ const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
try {
const { stdout } = await execPromise(credentialProcess);
let data;
diff --git a/dist/360.index.js.map b/dist/360.index.js.map
index 1c4a6fd..7314706 100644
--- a/dist/360.index.js.map
+++ b/dist/360.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"360.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar propertyProvider = require('@smithy/property-provider');\nvar child_process = require('child_process');\nvar util = require('util');\nvar client = require('@aws-sdk/core/client');\n\nconst getValidatedProcessCredentials = (profileName, data, profiles) => {\n if (data.Version !== 1) {\n throw Error(`Profile ${profileName} credential_process did not return Version 1.`);\n }\n if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {\n throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);\n }\n if (data.Expiration) {\n const currentTime = new Date();\n const expireTime = new Date(data.Expiration);\n if (expireTime < currentTime) {\n throw Error(`Profile ${profileName} credential_process returned expired credentials.`);\n }\n }\n let accountId = data.AccountId;\n if (!accountId && profiles?.[profileName]?.aws_account_id) {\n accountId = profiles[profileName].aws_account_id;\n }\n const credentials = {\n accessKeyId: data.AccessKeyId,\n secretAccessKey: data.SecretAccessKey,\n ...(data.SessionToken && { sessionToken: data.SessionToken }),\n ...(data.Expiration && { expiration: new Date(data.Expiration) }),\n ...(data.CredentialScope && { credentialScope: data.CredentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_PROCESS\", \"w\");\n return credentials;\n};\n\nconst resolveProcessCredentials = async (profileName, profiles, logger) => {\n const profile = profiles[profileName];\n if (profiles[profileName]) {\n const credentialProcess = profile[\"credential_process\"];\n if (credentialProcess !== undefined) {\n const execPromise = util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? child_process.exec);\n try {\n const { stdout } = await execPromise(credentialProcess);\n let data;\n try {\n data = JSON.parse(stdout.trim());\n }\n catch {\n throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);\n }\n return getValidatedProcessCredentials(profileName, data, profiles);\n }\n catch (error) {\n throw new propertyProvider.CredentialsProviderError(error.message, { logger });\n }\n }\n else {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });\n }\n }\n else {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {\n logger,\n });\n }\n};\n\nconst fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-process - fromProcess\");\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n return resolveProcessCredentials(sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n }), profiles, init.logger);\n};\n\nexports.fromProcess = fromProcess;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"360.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar propertyProvider = require('@smithy/property-provider');\nvar node_child_process = require('node:child_process');\nvar node_util = require('node:util');\nvar client = require('@aws-sdk/core/client');\n\nconst getValidatedProcessCredentials = (profileName, data, profiles) => {\n if (data.Version !== 1) {\n throw Error(`Profile ${profileName} credential_process did not return Version 1.`);\n }\n if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {\n throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);\n }\n if (data.Expiration) {\n const currentTime = new Date();\n const expireTime = new Date(data.Expiration);\n if (expireTime < currentTime) {\n throw Error(`Profile ${profileName} credential_process returned expired credentials.`);\n }\n }\n let accountId = data.AccountId;\n if (!accountId && profiles?.[profileName]?.aws_account_id) {\n accountId = profiles[profileName].aws_account_id;\n }\n const credentials = {\n accessKeyId: data.AccessKeyId,\n secretAccessKey: data.SecretAccessKey,\n ...(data.SessionToken && { sessionToken: data.SessionToken }),\n ...(data.Expiration && { expiration: new Date(data.Expiration) }),\n ...(data.CredentialScope && { credentialScope: data.CredentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_PROCESS\", \"w\");\n return credentials;\n};\n\nconst resolveProcessCredentials = async (profileName, profiles, logger) => {\n const profile = profiles[profileName];\n if (profiles[profileName]) {\n const credentialProcess = profile[\"credential_process\"];\n if (credentialProcess !== undefined) {\n const execPromise = node_util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);\n try {\n const { stdout } = await execPromise(credentialProcess);\n let data;\n try {\n data = JSON.parse(stdout.trim());\n }\n catch {\n throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);\n }\n return getValidatedProcessCredentials(profileName, data, profiles);\n }\n catch (error) {\n throw new propertyProvider.CredentialsProviderError(error.message, { logger });\n }\n }\n else {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });\n }\n }\n else {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {\n logger,\n });\n }\n};\n\nconst fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-process - fromProcess\");\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n return resolveProcessCredentials(sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n }), profiles, init.logger);\n};\n\nexports.fromProcess = fromProcess;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/443.index.js b/dist/443.index.js
index b831cac..04f8243 100644
--- a/dist/443.index.js
+++ b/dist/443.index.js
@@ -97,8 +97,107 @@ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunct
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ruleSet = void 0;
const u = "required", v = "fn", w = "argv", x = "ref";
-const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
-const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "string" }, j = { [u]: true, default: false, type: "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
+const _data = {
+ version: "1.0",
+ parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
+ rules: [
+ {
+ conditions: [{ [v]: b, [w]: [k] }],
+ rules: [
+ { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
+ { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
+ { endpoint: { url: k, properties: n, headers: n }, type: e },
+ ],
+ type: f,
+ },
+ {
+ conditions: [{ [v]: b, [w]: t }],
+ rules: [
+ {
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
+ rules: [
+ {
+ conditions: [l, m],
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [a, o] }, q],
+ rules: [
+ {
+ endpoint: {
+ url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
+ ],
+ type: f,
+ },
+ {
+ conditions: r,
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [o, a] }],
+ rules: [
+ {
+ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
+ endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
+ type: e,
+ },
+ {
+ endpoint: {
+ url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d },
+ ],
+ type: f,
+ },
+ {
+ conditions: s,
+ rules: [
+ {
+ conditions: [q],
+ rules: [
+ {
+ endpoint: {
+ url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d },
+ ],
+ type: f,
+ },
+ {
+ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ ],
+ type: f,
+ },
+ { error: "Invalid Configuration: Missing Region", type: d },
+ ],
+};
exports.ruleSet = _data;
@@ -107,7 +206,6 @@ exports.ruleSet = _data;
/***/ 9443:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-var __webpack_unused_export__;
var middlewareHostHeader = __webpack_require__(2590);
@@ -125,6 +223,9 @@ var httpAuthSchemeProvider = __webpack_require__(8396);
var runtimeConfig = __webpack_require__(6901);
var regionConfigResolver = __webpack_require__(6463);
var protocolHttp = __webpack_require__(2356);
+var schemas_0 = __webpack_require__(7143);
+var errors = __webpack_require__(5843);
+var SSOOIDCServiceException = __webpack_require__(3952);
const resolveClientEndpointParameters = (options) => {
return Object.assign(options, {
@@ -220,325 +321,6 @@ class SSOOIDCClient extends smithyClient.Client {
}
}
-class SSOOIDCServiceException extends smithyClient.ServiceException {
- constructor(options) {
- super(options);
- Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
- }
-}
-
-class AccessDeniedException extends SSOOIDCServiceException {
- name = "AccessDeniedException";
- $fault = "client";
- error;
- reason;
- error_description;
- constructor(opts) {
- super({
- name: "AccessDeniedException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
- this.error = opts.error;
- this.reason = opts.reason;
- this.error_description = opts.error_description;
- }
-}
-class AuthorizationPendingException extends SSOOIDCServiceException {
- name = "AuthorizationPendingException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "AuthorizationPendingException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class ExpiredTokenException extends SSOOIDCServiceException {
- name = "ExpiredTokenException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "ExpiredTokenException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class InternalServerException extends SSOOIDCServiceException {
- name = "InternalServerException";
- $fault = "server";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "InternalServerException",
- $fault: "server",
- ...opts,
- });
- Object.setPrototypeOf(this, InternalServerException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class InvalidClientException extends SSOOIDCServiceException {
- name = "InvalidClientException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "InvalidClientException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidClientException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class InvalidGrantException extends SSOOIDCServiceException {
- name = "InvalidGrantException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "InvalidGrantException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidGrantException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class InvalidRequestException extends SSOOIDCServiceException {
- name = "InvalidRequestException";
- $fault = "client";
- error;
- reason;
- error_description;
- constructor(opts) {
- super({
- name: "InvalidRequestException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
- this.error = opts.error;
- this.reason = opts.reason;
- this.error_description = opts.error_description;
- }
-}
-class InvalidScopeException extends SSOOIDCServiceException {
- name = "InvalidScopeException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "InvalidScopeException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidScopeException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class SlowDownException extends SSOOIDCServiceException {
- name = "SlowDownException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "SlowDownException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, SlowDownException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class UnauthorizedClientException extends SSOOIDCServiceException {
- name = "UnauthorizedClientException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "UnauthorizedClientException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-class UnsupportedGrantTypeException extends SSOOIDCServiceException {
- name = "UnsupportedGrantTypeException";
- $fault = "client";
- error;
- error_description;
- constructor(opts) {
- super({
- name: "UnsupportedGrantTypeException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
- this.error = opts.error;
- this.error_description = opts.error_description;
- }
-}
-
-const _ADE = "AccessDeniedException";
-const _APE = "AuthorizationPendingException";
-const _AT = "AccessToken";
-const _CS = "ClientSecret";
-const _CT = "CreateToken";
-const _CTR = "CreateTokenRequest";
-const _CTRr = "CreateTokenResponse";
-const _CV = "CodeVerifier";
-const _ETE = "ExpiredTokenException";
-const _ICE = "InvalidClientException";
-const _IGE = "InvalidGrantException";
-const _IRE = "InvalidRequestException";
-const _ISE = "InternalServerException";
-const _ISEn = "InvalidScopeException";
-const _IT = "IdToken";
-const _RT = "RefreshToken";
-const _SDE = "SlowDownException";
-const _UCE = "UnauthorizedClientException";
-const _UGTE = "UnsupportedGrantTypeException";
-const _aT = "accessToken";
-const _c = "client";
-const _cI = "clientId";
-const _cS = "clientSecret";
-const _cV = "codeVerifier";
-const _co = "code";
-const _dC = "deviceCode";
-const _e = "error";
-const _eI = "expiresIn";
-const _ed = "error_description";
-const _gT = "grantType";
-const _h = "http";
-const _hE = "httpError";
-const _iT = "idToken";
-const _r = "reason";
-const _rT = "refreshToken";
-const _rU = "redirectUri";
-const _s = "scope";
-const _se = "server";
-const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
-const _tT = "tokenType";
-const n0 = "com.amazonaws.ssooidc";
-var AccessToken = [0, n0, _AT, 8, 0];
-var ClientSecret = [0, n0, _CS, 8, 0];
-var CodeVerifier = [0, n0, _CV, 8, 0];
-var IdToken = [0, n0, _IT, 8, 0];
-var RefreshToken = [0, n0, _RT, 8, 0];
-var AccessDeniedException$ = [
- -3,
- n0,
- _ADE,
- { [_e]: _c, [_hE]: 400 },
- [_e, _r, _ed],
- [0, 0, 0],
-];
-schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
-var AuthorizationPendingException$ = [
- -3,
- n0,
- _APE,
- { [_e]: _c, [_hE]: 400 },
- [_e, _ed],
- [0, 0],
-];
-schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
-var CreateTokenRequest$ = [
- 3,
- n0,
- _CTR,
- 0,
- [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
- [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
- 3,
-];
-var CreateTokenResponse$ = [
- 3,
- n0,
- _CTRr,
- 0,
- [_aT, _tT, _eI, _rT, _iT],
- [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
-];
-var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
-var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
-var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
-var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
-var InvalidRequestException$ = [
- -3,
- n0,
- _IRE,
- { [_e]: _c, [_hE]: 400 },
- [_e, _r, _ed],
- [0, 0, 0],
-];
-schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
-var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
-var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
-schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
-var UnauthorizedClientException$ = [
- -3,
- n0,
- _UCE,
- { [_e]: _c, [_hE]: 400 },
- [_e, _ed],
- [0, 0],
-];
-schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
-var UnsupportedGrantTypeException$ = [
- -3,
- n0,
- _UGTE,
- { [_e]: _c, [_hE]: 400 },
- [_e, _ed],
- [0, 0],
-];
-schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
-var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
-schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
-var CreateToken$ = [
- 9,
- n0,
- _CT,
- { [_h]: ["POST", "/token", 200] },
- () => CreateTokenRequest$,
- () => CreateTokenResponse$,
-];
-
class CreateTokenCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
@@ -547,7 +329,7 @@ class CreateTokenCommand extends smithyClient.Command
})
.s("AWSSSOOIDCService", "CreateToken", {})
.n("SSOOIDCClient", "CreateTokenCommand")
- .sc(CreateToken$)
+ .sc(schemas_0.CreateToken$)
.build() {
}
@@ -568,46 +350,255 @@ const InvalidRequestExceptionReason = {
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
};
-__webpack_unused_export__ = ({
- enumerable: true,
- get: function () { return smithyClient.Command; }
-});
-__webpack_unused_export__ = ({
- enumerable: true,
- get: function () { return smithyClient.Client; }
-});
-__webpack_unused_export__ = AccessDeniedException;
-__webpack_unused_export__ = AccessDeniedException$;
-__webpack_unused_export__ = AccessDeniedExceptionReason;
-__webpack_unused_export__ = AuthorizationPendingException;
-__webpack_unused_export__ = AuthorizationPendingException$;
-__webpack_unused_export__ = CreateToken$;
+exports.$Command = smithyClient.Command;
+exports.__Client = smithyClient.Client;
+exports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;
+exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
exports.CreateTokenCommand = CreateTokenCommand;
-__webpack_unused_export__ = CreateTokenRequest$;
-__webpack_unused_export__ = CreateTokenResponse$;
-__webpack_unused_export__ = ExpiredTokenException;
-__webpack_unused_export__ = ExpiredTokenException$;
-__webpack_unused_export__ = InternalServerException;
-__webpack_unused_export__ = InternalServerException$;
-__webpack_unused_export__ = InvalidClientException;
-__webpack_unused_export__ = InvalidClientException$;
-__webpack_unused_export__ = InvalidGrantException;
-__webpack_unused_export__ = InvalidGrantException$;
-__webpack_unused_export__ = InvalidRequestException;
-__webpack_unused_export__ = InvalidRequestException$;
-__webpack_unused_export__ = InvalidRequestExceptionReason;
-__webpack_unused_export__ = InvalidScopeException;
-__webpack_unused_export__ = InvalidScopeException$;
-__webpack_unused_export__ = SSOOIDC;
+exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
+exports.SSOOIDC = SSOOIDC;
exports.SSOOIDCClient = SSOOIDCClient;
-__webpack_unused_export__ = SSOOIDCServiceException;
-__webpack_unused_export__ = SSOOIDCServiceException$;
-__webpack_unused_export__ = SlowDownException;
-__webpack_unused_export__ = SlowDownException$;
-__webpack_unused_export__ = UnauthorizedClientException;
-__webpack_unused_export__ = UnauthorizedClientException$;
-__webpack_unused_export__ = UnsupportedGrantTypeException;
-__webpack_unused_export__ = UnsupportedGrantTypeException$;
+Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: schemas_0['__proto__']
+ });
+
+Object.keys(schemas_0).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
+});
+Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: errors['__proto__']
+ });
+
+Object.keys(errors).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
+});
+
+
+/***/ }),
+
+/***/ 3952:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
+const smithy_client_1 = __webpack_require__(1411);
+Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
+class SSOOIDCServiceException extends smithy_client_1.ServiceException {
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
+ }
+}
+exports.SSOOIDCServiceException = SSOOIDCServiceException;
+
+
+/***/ }),
+
+/***/ 5843:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
+const SSOOIDCServiceException_1 = __webpack_require__(3952);
+class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "AccessDeniedException";
+ $fault = "client";
+ error;
+ reason;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
+ this.error = opts.error;
+ this.reason = opts.reason;
+ this.error_description = opts.error_description;
+ }
+}
+exports.AccessDeniedException = AccessDeniedException;
+class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "AuthorizationPendingException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "AuthorizationPendingException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.AuthorizationPendingException = AuthorizationPendingException;
+class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "ExpiredTokenException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "ExpiredTokenException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.ExpiredTokenException = ExpiredTokenException;
+class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "InternalServerException";
+ $fault = "server";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "InternalServerException",
+ $fault: "server",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InternalServerException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.InternalServerException = InternalServerException;
+class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "InvalidClientException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "InvalidClientException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.InvalidClientException = InvalidClientException;
+class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "InvalidGrantException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "InvalidGrantException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.InvalidGrantException = InvalidGrantException;
+class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "InvalidRequestException";
+ $fault = "client";
+ error;
+ reason;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "InvalidRequestException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
+ this.error = opts.error;
+ this.reason = opts.reason;
+ this.error_description = opts.error_description;
+ }
+}
+exports.InvalidRequestException = InvalidRequestException;
+class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "InvalidScopeException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "InvalidScopeException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.InvalidScopeException = InvalidScopeException;
+class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "SlowDownException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "SlowDownException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, SlowDownException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.SlowDownException = SlowDownException;
+class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "UnauthorizedClientException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "UnauthorizedClientException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.UnauthorizedClientException = UnauthorizedClientException;
+class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
+ name = "UnsupportedGrantTypeException";
+ $fault = "client";
+ error;
+ error_description;
+ constructor(opts) {
+ super({
+ name: "UnsupportedGrantTypeException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
+ this.error = opts.error;
+ this.error_description = opts.error_description;
+ }
+}
+exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
/***/ }),
@@ -687,6 +678,7 @@ const util_base64_1 = __webpack_require__(8385);
const util_utf8_1 = __webpack_require__(1577);
const httpAuthSchemeProvider_1 = __webpack_require__(8396);
const endpointResolver_1 = __webpack_require__(546);
+const schemas_0_1 = __webpack_require__(7143);
const getRuntimeConfig = (config) => {
return {
apiVersion: "2019-06-10",
@@ -712,6 +704,7 @@ const getRuntimeConfig = (config) => {
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.ssooidc",
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
version: "2019-06-10",
serviceTarget: "AWSSSOOIDCService",
},
@@ -726,10 +719,150 @@ exports.getRuntimeConfig = getRuntimeConfig;
/***/ }),
-/***/ 9955:
-/***/ ((module) => {
+/***/ 7143:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
+const _ADE = "AccessDeniedException";
+const _APE = "AuthorizationPendingException";
+const _AT = "AccessToken";
+const _CS = "ClientSecret";
+const _CT = "CreateToken";
+const _CTR = "CreateTokenRequest";
+const _CTRr = "CreateTokenResponse";
+const _CV = "CodeVerifier";
+const _ETE = "ExpiredTokenException";
+const _ICE = "InvalidClientException";
+const _IGE = "InvalidGrantException";
+const _IRE = "InvalidRequestException";
+const _ISE = "InternalServerException";
+const _ISEn = "InvalidScopeException";
+const _IT = "IdToken";
+const _RT = "RefreshToken";
+const _SDE = "SlowDownException";
+const _UCE = "UnauthorizedClientException";
+const _UGTE = "UnsupportedGrantTypeException";
+const _aT = "accessToken";
+const _c = "client";
+const _cI = "clientId";
+const _cS = "clientSecret";
+const _cV = "codeVerifier";
+const _co = "code";
+const _dC = "deviceCode";
+const _e = "error";
+const _eI = "expiresIn";
+const _ed = "error_description";
+const _gT = "grantType";
+const _h = "http";
+const _hE = "httpError";
+const _iT = "idToken";
+const _r = "reason";
+const _rT = "refreshToken";
+const _rU = "redirectUri";
+const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
+const _sc = "scope";
+const _se = "server";
+const _tT = "tokenType";
+const n0 = "com.amazonaws.ssooidc";
+const schema_1 = __webpack_require__(6890);
+const errors_1 = __webpack_require__(5843);
+const SSOOIDCServiceException_1 = __webpack_require__(3952);
+const _s_registry = schema_1.TypeRegistry.for(_s);
+exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
+_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
+const n0_registry = schema_1.TypeRegistry.for(n0);
+exports.AccessDeniedException$ = [
+ -3,
+ n0,
+ _ADE,
+ { [_e]: _c, [_hE]: 400 },
+ [_e, _r, _ed],
+ [0, 0, 0],
+];
+n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
+exports.AuthorizationPendingException$ = [
+ -3,
+ n0,
+ _APE,
+ { [_e]: _c, [_hE]: 400 },
+ [_e, _ed],
+ [0, 0],
+];
+n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
+exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
+exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
+exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
+exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
+exports.InvalidRequestException$ = [
+ -3,
+ n0,
+ _IRE,
+ { [_e]: _c, [_hE]: 400 },
+ [_e, _r, _ed],
+ [0, 0, 0],
+];
+n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
+exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
+exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
+n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
+exports.UnauthorizedClientException$ = [
+ -3,
+ n0,
+ _UCE,
+ { [_e]: _c, [_hE]: 400 },
+ [_e, _ed],
+ [0, 0],
+];
+n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
+exports.UnsupportedGrantTypeException$ = [
+ -3,
+ n0,
+ _UGTE,
+ { [_e]: _c, [_hE]: 400 },
+ [_e, _ed],
+ [0, 0],
+];
+n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
+exports.errorTypeRegistries = [_s_registry, n0_registry];
+var AccessToken = [0, n0, _AT, 8, 0];
+var ClientSecret = [0, n0, _CS, 8, 0];
+var CodeVerifier = [0, n0, _CV, 8, 0];
+var IdToken = [0, n0, _IT, 8, 0];
+var RefreshToken = [0, n0, _RT, 8, 0];
+exports.CreateTokenRequest$ = [
+ 3,
+ n0,
+ _CTR,
+ 0,
+ [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
+ 3,
+];
+exports.CreateTokenResponse$ = [
+ 3,
+ n0,
+ _CTRr,
+ 0,
+ [_aT, _tT, _eI, _rT, _iT],
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
+];
+var Scopes = (/* unused pure expression or super */ null && (64 | 0));
+exports.CreateToken$ = [
+ 9,
+ n0,
+ _CT,
+ { [_h]: ["POST", "/token", 200] },
+ () => exports.CreateTokenRequest$,
+ () => exports.CreateTokenResponse$,
+];
-module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
/***/ })
diff --git a/dist/443.index.js.map b/dist/443.index.js.map
index a1701d2..55f9d82 100644
--- a/dist/443.index.js.map
+++ b/dist/443.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"443.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sso-oauth\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"CreateToken\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, \"type\": \"string\" }, j = { [u]: true, \"default\": false, \"type\": \"boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = { version: \"1.0\", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d }, { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: \"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }], endpoint: { url: \"https://oidc.{Region}.amazonaws.com\", properties: n, headers: n }, type: e }, { endpoint: { url: \"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS is enabled but this partition does not support FIPS\", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: \"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"DualStack is enabled but this partition does not support DualStack\", type: d }], type: f }, { endpoint: { url: \"https://oidc.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: \"Invalid Configuration: Missing Region\", type: d }] };\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"sso-oauth\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SSOOIDCClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass SSOOIDCServiceException extends smithyClient.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);\n }\n}\n\nclass AccessDeniedException extends SSOOIDCServiceException {\n name = \"AccessDeniedException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AccessDeniedException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nclass AuthorizationPendingException extends SSOOIDCServiceException {\n name = \"AuthorizationPendingException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"AuthorizationPendingException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AuthorizationPendingException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass ExpiredTokenException extends SSOOIDCServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InternalServerException extends SSOOIDCServiceException {\n name = \"InternalServerException\";\n $fault = \"server\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalServerException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidClientException extends SSOOIDCServiceException {\n name = \"InvalidClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidGrantException extends SSOOIDCServiceException {\n name = \"InvalidGrantException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidGrantException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidGrantException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidRequestException extends SSOOIDCServiceException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidScopeException extends SSOOIDCServiceException {\n name = \"InvalidScopeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidScopeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidScopeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass SlowDownException extends SSOOIDCServiceException {\n name = \"SlowDownException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"SlowDownException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, SlowDownException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass UnauthorizedClientException extends SSOOIDCServiceException {\n name = \"UnauthorizedClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnauthorizedClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass UnsupportedGrantTypeException extends SSOOIDCServiceException {\n name = \"UnsupportedGrantTypeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnsupportedGrantTypeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\n\nconst _ADE = \"AccessDeniedException\";\nconst _APE = \"AuthorizationPendingException\";\nconst _AT = \"AccessToken\";\nconst _CS = \"ClientSecret\";\nconst _CT = \"CreateToken\";\nconst _CTR = \"CreateTokenRequest\";\nconst _CTRr = \"CreateTokenResponse\";\nconst _CV = \"CodeVerifier\";\nconst _ETE = \"ExpiredTokenException\";\nconst _ICE = \"InvalidClientException\";\nconst _IGE = \"InvalidGrantException\";\nconst _IRE = \"InvalidRequestException\";\nconst _ISE = \"InternalServerException\";\nconst _ISEn = \"InvalidScopeException\";\nconst _IT = \"IdToken\";\nconst _RT = \"RefreshToken\";\nconst _SDE = \"SlowDownException\";\nconst _UCE = \"UnauthorizedClientException\";\nconst _UGTE = \"UnsupportedGrantTypeException\";\nconst _aT = \"accessToken\";\nconst _c = \"client\";\nconst _cI = \"clientId\";\nconst _cS = \"clientSecret\";\nconst _cV = \"codeVerifier\";\nconst _co = \"code\";\nconst _dC = \"deviceCode\";\nconst _e = \"error\";\nconst _eI = \"expiresIn\";\nconst _ed = \"error_description\";\nconst _gT = \"grantType\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _iT = \"idToken\";\nconst _r = \"reason\";\nconst _rT = \"refreshToken\";\nconst _rU = \"redirectUri\";\nconst _s = \"scope\";\nconst _se = \"server\";\nconst _sm = \"smithy.ts.sdk.synthetic.com.amazonaws.ssooidc\";\nconst _tT = \"tokenType\";\nconst n0 = \"com.amazonaws.ssooidc\";\nvar AccessToken = [0, n0, _AT, 8, 0];\nvar ClientSecret = [0, n0, _CS, 8, 0];\nvar CodeVerifier = [0, n0, _CV, 8, 0];\nvar IdToken = [0, n0, _IT, 8, 0];\nvar RefreshToken = [0, n0, _RT, 8, 0];\nvar AccessDeniedException$ = [\n -3,\n n0,\n _ADE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nschema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);\nvar AuthorizationPendingException$ = [\n -3,\n n0,\n _APE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nschema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);\nvar CreateTokenRequest$ = [\n 3,\n n0,\n _CTR,\n 0,\n [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],\n [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],\n 3,\n];\nvar CreateTokenResponse$ = [\n 3,\n n0,\n _CTRr,\n 0,\n [_aT, _tT, _eI, _rT, _iT],\n [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],\n];\nvar ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);\nvar InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);\nvar InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);\nvar InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);\nvar InvalidRequestException$ = [\n -3,\n n0,\n _IRE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nschema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);\nvar InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);\nvar SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nschema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);\nvar UnauthorizedClientException$ = [\n -3,\n n0,\n _UCE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nschema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);\nvar UnsupportedGrantTypeException$ = [\n -3,\n n0,\n _UGTE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nschema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);\nvar SSOOIDCServiceException$ = [-3, _sm, \"SSOOIDCServiceException\", 0, [], []];\nschema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);\nvar CreateToken$ = [\n 9,\n n0,\n _CT,\n { [_h]: [\"POST\", \"/token\", 200] },\n () => CreateTokenRequest$,\n () => CreateTokenResponse$,\n];\n\nclass CreateTokenCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSSOOIDCService\", \"CreateToken\", {})\n .n(\"SSOOIDCClient\", \"CreateTokenCommand\")\n .sc(CreateToken$)\n .build() {\n}\n\nconst commands = {\n CreateTokenCommand,\n};\nclass SSOOIDC extends SSOOIDCClient {\n}\nsmithyClient.createAggregatedClient(commands, SSOOIDC);\n\nconst AccessDeniedExceptionReason = {\n KMS_ACCESS_DENIED: \"KMS_AccessDeniedException\",\n};\nconst InvalidRequestExceptionReason = {\n KMS_DISABLED_KEY: \"KMS_DisabledException\",\n KMS_INVALID_KEY_USAGE: \"KMS_InvalidKeyUsageException\",\n KMS_INVALID_STATE: \"KMS_InvalidStateException\",\n KMS_KEY_NOT_FOUND: \"KMS_NotFoundException\",\n};\n\nObject.defineProperty(exports, \"$Command\", {\n enumerable: true,\n get: function () { return smithyClient.Command; }\n});\nObject.defineProperty(exports, \"__Client\", {\n enumerable: true,\n get: function () { return smithyClient.Client; }\n});\nexports.AccessDeniedException = AccessDeniedException;\nexports.AccessDeniedException$ = AccessDeniedException$;\nexports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;\nexports.AuthorizationPendingException = AuthorizationPendingException;\nexports.AuthorizationPendingException$ = AuthorizationPendingException$;\nexports.CreateToken$ = CreateToken$;\nexports.CreateTokenCommand = CreateTokenCommand;\nexports.CreateTokenRequest$ = CreateTokenRequest$;\nexports.CreateTokenResponse$ = CreateTokenResponse$;\nexports.ExpiredTokenException = ExpiredTokenException;\nexports.ExpiredTokenException$ = ExpiredTokenException$;\nexports.InternalServerException = InternalServerException;\nexports.InternalServerException$ = InternalServerException$;\nexports.InvalidClientException = InvalidClientException;\nexports.InvalidClientException$ = InvalidClientException$;\nexports.InvalidGrantException = InvalidGrantException;\nexports.InvalidGrantException$ = InvalidGrantException$;\nexports.InvalidRequestException = InvalidRequestException;\nexports.InvalidRequestException$ = InvalidRequestException$;\nexports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;\nexports.InvalidScopeException = InvalidScopeException;\nexports.InvalidScopeException$ = InvalidScopeException$;\nexports.SSOOIDC = SSOOIDC;\nexports.SSOOIDCClient = SSOOIDCClient;\nexports.SSOOIDCServiceException = SSOOIDCServiceException;\nexports.SSOOIDCServiceException$ = SSOOIDCServiceException$;\nexports.SlowDownException = SlowDownException;\nexports.SlowDownException$ = SlowDownException$;\nexports.UnauthorizedClientException = UnauthorizedClientException;\nexports.UnauthorizedClientException$ = UnauthorizedClientException$;\nexports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;\nexports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.ssooidc\",\n version: \"2019-06-10\",\n serviceTarget: \"AWSSSOOIDCService\",\n },\n serviceId: config?.serviceId ?? \"SSO OIDC\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"443.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sso-oauth\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"CreateToken\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, type: \"string\" }, j = { [u]: true, default: false, type: \"boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = {\n version: \"1.0\",\n parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },\n rules: [\n {\n conditions: [{ [v]: b, [w]: [k] }],\n rules: [\n { conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d },\n { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d },\n { endpoint: { url: k, properties: n, headers: n }, type: e },\n ],\n type: f,\n },\n {\n conditions: [{ [v]: b, [w]: t }],\n rules: [\n {\n conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }],\n rules: [\n {\n conditions: [l, m],\n rules: [\n {\n conditions: [{ [v]: c, [w]: [a, o] }, q],\n rules: [\n {\n endpoint: {\n url: \"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d },\n ],\n type: f,\n },\n {\n conditions: r,\n rules: [\n {\n conditions: [{ [v]: c, [w]: [o, a] }],\n rules: [\n {\n conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }],\n endpoint: { url: \"https://oidc.{Region}.amazonaws.com\", properties: n, headers: n },\n type: e,\n },\n {\n endpoint: {\n url: \"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS is enabled but this partition does not support FIPS\", type: d },\n ],\n type: f,\n },\n {\n conditions: s,\n rules: [\n {\n conditions: [q],\n rules: [\n {\n endpoint: {\n url: \"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"DualStack is enabled but this partition does not support DualStack\", type: d },\n ],\n type: f,\n },\n {\n endpoint: { url: \"https://oidc.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n },\n type: e,\n },\n ],\n type: f,\n },\n ],\n type: f,\n },\n { error: \"Invalid Configuration: Missing Region\", type: d },\n ],\n};\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\nvar schemas_0 = require('./schemas/schemas_0');\nvar errors = require('./models/errors');\nvar SSOOIDCServiceException = require('./models/SSOOIDCServiceException');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"sso-oauth\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SSOOIDCClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass CreateTokenCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSSOOIDCService\", \"CreateToken\", {})\n .n(\"SSOOIDCClient\", \"CreateTokenCommand\")\n .sc(schemas_0.CreateToken$)\n .build() {\n}\n\nconst commands = {\n CreateTokenCommand,\n};\nclass SSOOIDC extends SSOOIDCClient {\n}\nsmithyClient.createAggregatedClient(commands, SSOOIDC);\n\nconst AccessDeniedExceptionReason = {\n KMS_ACCESS_DENIED: \"KMS_AccessDeniedException\",\n};\nconst InvalidRequestExceptionReason = {\n KMS_DISABLED_KEY: \"KMS_DisabledException\",\n KMS_INVALID_KEY_USAGE: \"KMS_InvalidKeyUsageException\",\n KMS_INVALID_STATE: \"KMS_InvalidStateException\",\n KMS_KEY_NOT_FOUND: \"KMS_NotFoundException\",\n};\n\nexports.$Command = smithyClient.Command;\nexports.__Client = smithyClient.Client;\nexports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;\nexports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;\nexports.CreateTokenCommand = CreateTokenCommand;\nexports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;\nexports.SSOOIDC = SSOOIDC;\nexports.SSOOIDCClient = SSOOIDCClient;\nObject.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: schemas_0['__proto__']\n });\n\nObject.keys(schemas_0).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];\n});\nObject.prototype.hasOwnProperty.call(errors, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: errors['__proto__']\n });\n\nObject.keys(errors).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SSOOIDCServiceException = exports.__ServiceException = void 0;\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__ServiceException\", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });\nclass SSOOIDCServiceException extends smithy_client_1.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);\n }\n}\nexports.SSOOIDCServiceException = SSOOIDCServiceException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;\nconst SSOOIDCServiceException_1 = require(\"./SSOOIDCServiceException\");\nclass AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"AccessDeniedException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AccessDeniedException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nexports.AccessDeniedException = AccessDeniedException;\nclass AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"AuthorizationPendingException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"AuthorizationPendingException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AuthorizationPendingException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.AuthorizationPendingException = AuthorizationPendingException;\nclass ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.ExpiredTokenException = ExpiredTokenException;\nclass InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"InternalServerException\";\n $fault = \"server\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalServerException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.InternalServerException = InternalServerException;\nclass InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"InvalidClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.InvalidClientException = InvalidClientException;\nclass InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"InvalidGrantException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidGrantException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidGrantException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.InvalidGrantException = InvalidGrantException;\nclass InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nexports.InvalidRequestException = InvalidRequestException;\nclass InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"InvalidScopeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidScopeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidScopeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.InvalidScopeException = InvalidScopeException;\nclass SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"SlowDownException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"SlowDownException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, SlowDownException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.SlowDownException = SlowDownException;\nclass UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"UnauthorizedClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnauthorizedClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.UnauthorizedClientException = UnauthorizedClientException;\nclass UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {\n name = \"UnsupportedGrantTypeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnsupportedGrantTypeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nexports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst schemas_0_1 = require(\"./schemas/schemas_0\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.ssooidc\",\n errorTypeRegistries: schemas_0_1.errorTypeRegistries,\n version: \"2019-06-10\",\n serviceTarget: \"AWSSSOOIDCService\",\n },\n serviceId: config?.serviceId ?? \"SSO OIDC\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;\nconst _ADE = \"AccessDeniedException\";\nconst _APE = \"AuthorizationPendingException\";\nconst _AT = \"AccessToken\";\nconst _CS = \"ClientSecret\";\nconst _CT = \"CreateToken\";\nconst _CTR = \"CreateTokenRequest\";\nconst _CTRr = \"CreateTokenResponse\";\nconst _CV = \"CodeVerifier\";\nconst _ETE = \"ExpiredTokenException\";\nconst _ICE = \"InvalidClientException\";\nconst _IGE = \"InvalidGrantException\";\nconst _IRE = \"InvalidRequestException\";\nconst _ISE = \"InternalServerException\";\nconst _ISEn = \"InvalidScopeException\";\nconst _IT = \"IdToken\";\nconst _RT = \"RefreshToken\";\nconst _SDE = \"SlowDownException\";\nconst _UCE = \"UnauthorizedClientException\";\nconst _UGTE = \"UnsupportedGrantTypeException\";\nconst _aT = \"accessToken\";\nconst _c = \"client\";\nconst _cI = \"clientId\";\nconst _cS = \"clientSecret\";\nconst _cV = \"codeVerifier\";\nconst _co = \"code\";\nconst _dC = \"deviceCode\";\nconst _e = \"error\";\nconst _eI = \"expiresIn\";\nconst _ed = \"error_description\";\nconst _gT = \"grantType\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _iT = \"idToken\";\nconst _r = \"reason\";\nconst _rT = \"refreshToken\";\nconst _rU = \"redirectUri\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.ssooidc\";\nconst _sc = \"scope\";\nconst _se = \"server\";\nconst _tT = \"tokenType\";\nconst n0 = \"com.amazonaws.ssooidc\";\nconst schema_1 = require(\"@smithy/core/schema\");\nconst errors_1 = require(\"../models/errors\");\nconst SSOOIDCServiceException_1 = require(\"../models/SSOOIDCServiceException\");\nconst _s_registry = schema_1.TypeRegistry.for(_s);\nexports.SSOOIDCServiceException$ = [-3, _s, \"SSOOIDCServiceException\", 0, [], []];\n_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);\nconst n0_registry = schema_1.TypeRegistry.for(n0);\nexports.AccessDeniedException$ = [\n -3,\n n0,\n _ADE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nn0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);\nexports.AuthorizationPendingException$ = [\n -3,\n n0,\n _APE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);\nexports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);\nexports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);\nexports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);\nexports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);\nexports.InvalidRequestException$ = [\n -3,\n n0,\n _IRE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nn0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);\nexports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);\nexports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);\nexports.UnauthorizedClientException$ = [\n -3,\n n0,\n _UCE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);\nexports.UnsupportedGrantTypeException$ = [\n -3,\n n0,\n _UGTE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);\nexports.errorTypeRegistries = [_s_registry, n0_registry];\nvar AccessToken = [0, n0, _AT, 8, 0];\nvar ClientSecret = [0, n0, _CS, 8, 0];\nvar CodeVerifier = [0, n0, _CV, 8, 0];\nvar IdToken = [0, n0, _IT, 8, 0];\nvar RefreshToken = [0, n0, _RT, 8, 0];\nexports.CreateTokenRequest$ = [\n 3,\n n0,\n _CTR,\n 0,\n [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],\n [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],\n 3,\n];\nexports.CreateTokenResponse$ = [\n 3,\n n0,\n _CTRr,\n 0,\n [_aT, _tT, _eI, _rT, _iT],\n [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],\n];\nvar Scopes = 64 | 0;\nexports.CreateToken$ = [\n 9,\n n0,\n _CT,\n { [_h]: [\"POST\", \"/token\", 200] },\n () => exports.CreateTokenRequest$,\n () => exports.CreateTokenResponse$,\n];\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/579.index.js b/dist/579.index.js
index 29d3ada..0148d54 100644
--- a/dist/579.index.js
+++ b/dist/579.index.js
@@ -243,6 +243,9 @@ class EventStreamSerde {
serializer.write(eventSchema, event[unionMember]);
}
}
+ else if (eventSchema.isUnitSchema()) {
+ serializer.write(eventSchema, {});
+ }
else {
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
}
diff --git a/dist/579.index.js.map b/dist/579.index.js.map
index 867844f..3c0a105 100644
--- a/dist/579.index.js.map
+++ b/dist/579.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"579.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js"],"sourcesContent":["'use strict';\n\nvar utilUtf8 = require('@smithy/util-utf8');\n\nclass EventStreamSerde {\n marshaller;\n serializer;\n deserializer;\n serdeContext;\n defaultContentType;\n constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {\n this.marshaller = marshaller;\n this.serializer = serializer;\n this.deserializer = deserializer;\n this.serdeContext = serdeContext;\n this.defaultContentType = defaultContentType;\n }\n async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {\n const marshaller = this.marshaller;\n const eventStreamMember = requestSchema.getEventStreamMember();\n const unionSchema = requestSchema.getMemberSchema(eventStreamMember);\n const serializer = this.serializer;\n const defaultContentType = this.defaultContentType;\n const initialRequestMarker = Symbol(\"initialRequestMarker\");\n const eventStreamIterable = {\n async *[Symbol.asyncIterator]() {\n if (initialRequest) {\n const headers = {\n \":event-type\": { type: \"string\", value: \"initial-request\" },\n \":message-type\": { type: \"string\", value: \"event\" },\n \":content-type\": { type: \"string\", value: defaultContentType },\n };\n serializer.write(requestSchema, initialRequest);\n const body = serializer.flush();\n yield {\n [initialRequestMarker]: true,\n headers,\n body,\n };\n }\n for await (const page of eventStream) {\n yield page;\n }\n },\n };\n return marshaller.serialize(eventStreamIterable, (event) => {\n if (event[initialRequestMarker]) {\n return {\n headers: event.headers,\n body: event.body,\n };\n }\n const unionMember = Object.keys(event).find((key) => {\n return key !== \"__type\";\n }) ?? \"\";\n const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);\n const headers = {\n \":event-type\": { type: \"string\", value: eventType },\n \":message-type\": { type: \"string\", value: \"event\" },\n \":content-type\": { type: \"string\", value: explicitPayloadContentType ?? defaultContentType },\n ...additionalHeaders,\n };\n return {\n headers,\n body,\n };\n });\n }\n async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {\n const marshaller = this.marshaller;\n const eventStreamMember = responseSchema.getEventStreamMember();\n const unionSchema = responseSchema.getMemberSchema(eventStreamMember);\n const memberSchemas = unionSchema.getMemberSchemas();\n const initialResponseMarker = Symbol(\"initialResponseMarker\");\n const asyncIterable = marshaller.deserialize(response.body, async (event) => {\n const unionMember = Object.keys(event).find((key) => {\n return key !== \"__type\";\n }) ?? \"\";\n const body = event[unionMember].body;\n if (unionMember === \"initial-response\") {\n const dataObject = await this.deserializer.read(responseSchema, body);\n delete dataObject[eventStreamMember];\n return {\n [initialResponseMarker]: true,\n ...dataObject,\n };\n }\n else if (unionMember in memberSchemas) {\n const eventStreamSchema = memberSchemas[unionMember];\n if (eventStreamSchema.isStructSchema()) {\n const out = {};\n let hasBindings = false;\n for (const [name, member] of eventStreamSchema.structIterator()) {\n const { eventHeader, eventPayload } = member.getMergedTraits();\n hasBindings = hasBindings || Boolean(eventHeader || eventPayload);\n if (eventPayload) {\n if (member.isBlobSchema()) {\n out[name] = body;\n }\n else if (member.isStringSchema()) {\n out[name] = (this.serdeContext?.utf8Encoder ?? utilUtf8.toUtf8)(body);\n }\n else if (member.isStructSchema()) {\n out[name] = await this.deserializer.read(member, body);\n }\n }\n else if (eventHeader) {\n const value = event[unionMember].headers[name]?.value;\n if (value != null) {\n if (member.isNumericSchema()) {\n if (value && typeof value === \"object\" && \"bytes\" in value) {\n out[name] = BigInt(value.toString());\n }\n else {\n out[name] = Number(value);\n }\n }\n else {\n out[name] = value;\n }\n }\n }\n }\n if (hasBindings) {\n return {\n [unionMember]: out,\n };\n }\n if (body.byteLength === 0) {\n return {\n [unionMember]: {},\n };\n }\n }\n return {\n [unionMember]: await this.deserializer.read(eventStreamSchema, body),\n };\n }\n else {\n return {\n $unknown: event,\n };\n }\n });\n const asyncIterator = asyncIterable[Symbol.asyncIterator]();\n const firstEvent = await asyncIterator.next();\n if (firstEvent.done) {\n return asyncIterable;\n }\n if (firstEvent.value?.[initialResponseMarker]) {\n if (!responseSchema) {\n throw new Error(\"@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.\");\n }\n for (const [key, value] of Object.entries(firstEvent.value)) {\n initialResponseContainer[key] = value;\n }\n }\n return {\n async *[Symbol.asyncIterator]() {\n if (!firstEvent?.value?.[initialResponseMarker]) {\n yield firstEvent.value;\n }\n while (true) {\n const { done, value } = await asyncIterator.next();\n if (done) {\n break;\n }\n yield value;\n }\n },\n };\n }\n writeEventBody(unionMember, unionSchema, event) {\n const serializer = this.serializer;\n let eventType = unionMember;\n let explicitPayloadMember = null;\n let explicitPayloadContentType;\n const isKnownSchema = (() => {\n const struct = unionSchema.getSchema();\n return struct[4].includes(unionMember);\n })();\n const additionalHeaders = {};\n if (!isKnownSchema) {\n const [type, value] = event[unionMember];\n eventType = type;\n serializer.write(15, value);\n }\n else {\n const eventSchema = unionSchema.getMemberSchema(unionMember);\n if (eventSchema.isStructSchema()) {\n for (const [memberName, memberSchema] of eventSchema.structIterator()) {\n const { eventHeader, eventPayload } = memberSchema.getMergedTraits();\n if (eventPayload) {\n explicitPayloadMember = memberName;\n }\n else if (eventHeader) {\n const value = event[unionMember][memberName];\n let type = \"binary\";\n if (memberSchema.isNumericSchema()) {\n if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {\n type = \"integer\";\n }\n else {\n type = \"long\";\n }\n }\n else if (memberSchema.isTimestampSchema()) {\n type = \"timestamp\";\n }\n else if (memberSchema.isStringSchema()) {\n type = \"string\";\n }\n else if (memberSchema.isBooleanSchema()) {\n type = \"boolean\";\n }\n if (value != null) {\n additionalHeaders[memberName] = {\n type,\n value,\n };\n delete event[unionMember][memberName];\n }\n }\n }\n if (explicitPayloadMember !== null) {\n const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);\n if (payloadSchema.isBlobSchema()) {\n explicitPayloadContentType = \"application/octet-stream\";\n }\n else if (payloadSchema.isStringSchema()) {\n explicitPayloadContentType = \"text/plain\";\n }\n serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);\n }\n else {\n serializer.write(eventSchema, event[unionMember]);\n }\n }\n else {\n throw new Error(\"@smithy/core/event-streams - non-struct member not supported in event stream union.\");\n }\n }\n const messageSerialization = serializer.flush();\n const body = typeof messageSerialization === \"string\"\n ? (this.serdeContext?.utf8Decoder ?? utilUtf8.fromUtf8)(messageSerialization)\n : messageSerialization;\n return {\n body,\n eventType,\n explicitPayloadContentType,\n additionalHeaders,\n };\n }\n}\n\nexports.EventStreamSerde = EventStreamSerde;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"579.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js"],"sourcesContent":["'use strict';\n\nvar utilUtf8 = require('@smithy/util-utf8');\n\nclass EventStreamSerde {\n marshaller;\n serializer;\n deserializer;\n serdeContext;\n defaultContentType;\n constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {\n this.marshaller = marshaller;\n this.serializer = serializer;\n this.deserializer = deserializer;\n this.serdeContext = serdeContext;\n this.defaultContentType = defaultContentType;\n }\n async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {\n const marshaller = this.marshaller;\n const eventStreamMember = requestSchema.getEventStreamMember();\n const unionSchema = requestSchema.getMemberSchema(eventStreamMember);\n const serializer = this.serializer;\n const defaultContentType = this.defaultContentType;\n const initialRequestMarker = Symbol(\"initialRequestMarker\");\n const eventStreamIterable = {\n async *[Symbol.asyncIterator]() {\n if (initialRequest) {\n const headers = {\n \":event-type\": { type: \"string\", value: \"initial-request\" },\n \":message-type\": { type: \"string\", value: \"event\" },\n \":content-type\": { type: \"string\", value: defaultContentType },\n };\n serializer.write(requestSchema, initialRequest);\n const body = serializer.flush();\n yield {\n [initialRequestMarker]: true,\n headers,\n body,\n };\n }\n for await (const page of eventStream) {\n yield page;\n }\n },\n };\n return marshaller.serialize(eventStreamIterable, (event) => {\n if (event[initialRequestMarker]) {\n return {\n headers: event.headers,\n body: event.body,\n };\n }\n const unionMember = Object.keys(event).find((key) => {\n return key !== \"__type\";\n }) ?? \"\";\n const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);\n const headers = {\n \":event-type\": { type: \"string\", value: eventType },\n \":message-type\": { type: \"string\", value: \"event\" },\n \":content-type\": { type: \"string\", value: explicitPayloadContentType ?? defaultContentType },\n ...additionalHeaders,\n };\n return {\n headers,\n body,\n };\n });\n }\n async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {\n const marshaller = this.marshaller;\n const eventStreamMember = responseSchema.getEventStreamMember();\n const unionSchema = responseSchema.getMemberSchema(eventStreamMember);\n const memberSchemas = unionSchema.getMemberSchemas();\n const initialResponseMarker = Symbol(\"initialResponseMarker\");\n const asyncIterable = marshaller.deserialize(response.body, async (event) => {\n const unionMember = Object.keys(event).find((key) => {\n return key !== \"__type\";\n }) ?? \"\";\n const body = event[unionMember].body;\n if (unionMember === \"initial-response\") {\n const dataObject = await this.deserializer.read(responseSchema, body);\n delete dataObject[eventStreamMember];\n return {\n [initialResponseMarker]: true,\n ...dataObject,\n };\n }\n else if (unionMember in memberSchemas) {\n const eventStreamSchema = memberSchemas[unionMember];\n if (eventStreamSchema.isStructSchema()) {\n const out = {};\n let hasBindings = false;\n for (const [name, member] of eventStreamSchema.structIterator()) {\n const { eventHeader, eventPayload } = member.getMergedTraits();\n hasBindings = hasBindings || Boolean(eventHeader || eventPayload);\n if (eventPayload) {\n if (member.isBlobSchema()) {\n out[name] = body;\n }\n else if (member.isStringSchema()) {\n out[name] = (this.serdeContext?.utf8Encoder ?? utilUtf8.toUtf8)(body);\n }\n else if (member.isStructSchema()) {\n out[name] = await this.deserializer.read(member, body);\n }\n }\n else if (eventHeader) {\n const value = event[unionMember].headers[name]?.value;\n if (value != null) {\n if (member.isNumericSchema()) {\n if (value && typeof value === \"object\" && \"bytes\" in value) {\n out[name] = BigInt(value.toString());\n }\n else {\n out[name] = Number(value);\n }\n }\n else {\n out[name] = value;\n }\n }\n }\n }\n if (hasBindings) {\n return {\n [unionMember]: out,\n };\n }\n if (body.byteLength === 0) {\n return {\n [unionMember]: {},\n };\n }\n }\n return {\n [unionMember]: await this.deserializer.read(eventStreamSchema, body),\n };\n }\n else {\n return {\n $unknown: event,\n };\n }\n });\n const asyncIterator = asyncIterable[Symbol.asyncIterator]();\n const firstEvent = await asyncIterator.next();\n if (firstEvent.done) {\n return asyncIterable;\n }\n if (firstEvent.value?.[initialResponseMarker]) {\n if (!responseSchema) {\n throw new Error(\"@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.\");\n }\n for (const [key, value] of Object.entries(firstEvent.value)) {\n initialResponseContainer[key] = value;\n }\n }\n return {\n async *[Symbol.asyncIterator]() {\n if (!firstEvent?.value?.[initialResponseMarker]) {\n yield firstEvent.value;\n }\n while (true) {\n const { done, value } = await asyncIterator.next();\n if (done) {\n break;\n }\n yield value;\n }\n },\n };\n }\n writeEventBody(unionMember, unionSchema, event) {\n const serializer = this.serializer;\n let eventType = unionMember;\n let explicitPayloadMember = null;\n let explicitPayloadContentType;\n const isKnownSchema = (() => {\n const struct = unionSchema.getSchema();\n return struct[4].includes(unionMember);\n })();\n const additionalHeaders = {};\n if (!isKnownSchema) {\n const [type, value] = event[unionMember];\n eventType = type;\n serializer.write(15, value);\n }\n else {\n const eventSchema = unionSchema.getMemberSchema(unionMember);\n if (eventSchema.isStructSchema()) {\n for (const [memberName, memberSchema] of eventSchema.structIterator()) {\n const { eventHeader, eventPayload } = memberSchema.getMergedTraits();\n if (eventPayload) {\n explicitPayloadMember = memberName;\n }\n else if (eventHeader) {\n const value = event[unionMember][memberName];\n let type = \"binary\";\n if (memberSchema.isNumericSchema()) {\n if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {\n type = \"integer\";\n }\n else {\n type = \"long\";\n }\n }\n else if (memberSchema.isTimestampSchema()) {\n type = \"timestamp\";\n }\n else if (memberSchema.isStringSchema()) {\n type = \"string\";\n }\n else if (memberSchema.isBooleanSchema()) {\n type = \"boolean\";\n }\n if (value != null) {\n additionalHeaders[memberName] = {\n type,\n value,\n };\n delete event[unionMember][memberName];\n }\n }\n }\n if (explicitPayloadMember !== null) {\n const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);\n if (payloadSchema.isBlobSchema()) {\n explicitPayloadContentType = \"application/octet-stream\";\n }\n else if (payloadSchema.isStringSchema()) {\n explicitPayloadContentType = \"text/plain\";\n }\n serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);\n }\n else {\n serializer.write(eventSchema, event[unionMember]);\n }\n }\n else if (eventSchema.isUnitSchema()) {\n serializer.write(eventSchema, {});\n }\n else {\n throw new Error(\"@smithy/core/event-streams - non-struct member not supported in event stream union.\");\n }\n }\n const messageSerialization = serializer.flush();\n const body = typeof messageSerialization === \"string\"\n ? (this.serdeContext?.utf8Decoder ?? utilUtf8.fromUtf8)(messageSerialization)\n : messageSerialization;\n return {\n body,\n eventType,\n explicitPayloadContentType,\n additionalHeaders,\n };\n }\n}\n\nexports.EventStreamSerde = EventStreamSerde;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/605.index.js b/dist/605.index.js
index a8a54e3..1b7bbf3 100644
--- a/dist/605.index.js
+++ b/dist/605.index.js
@@ -65,7 +65,7 @@ const tslib_1 = __webpack_require__(1860);
const client_1 = __webpack_require__(5152);
const node_http_handler_1 = __webpack_require__(1279);
const property_provider_1 = __webpack_require__(8857);
-const promises_1 = tslib_1.__importDefault(__webpack_require__(1943));
+const promises_1 = tslib_1.__importDefault(__webpack_require__(1455));
const checkUrl_1 = __webpack_require__(1509);
const requestHelpers_1 = __webpack_require__(6533);
const retry_wrapper_1 = __webpack_require__(1122);
diff --git a/dist/605.index.js.map b/dist/605.index.js.map
index 887c689..ce92ab2 100644
--- a/dist/605.index.js.map
+++ b/dist/605.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"605.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkUrl = void 0;\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst LOOPBACK_CIDR_IPv4 = \"127.0.0.0/8\";\nconst LOOPBACK_CIDR_IPv6 = \"::1/128\";\nconst ECS_CONTAINER_HOST = \"169.254.170.2\";\nconst EKS_CONTAINER_HOST_IPv4 = \"169.254.170.23\";\nconst EKS_CONTAINER_HOST_IPv6 = \"[fd00:ec2::23]\";\nconst checkUrl = (url, logger) => {\n if (url.protocol === \"https:\") {\n return;\n }\n if (url.hostname === ECS_CONTAINER_HOST ||\n url.hostname === EKS_CONTAINER_HOST_IPv4 ||\n url.hostname === EKS_CONTAINER_HOST_IPv6) {\n return;\n }\n if (url.hostname.includes(\"[\")) {\n if (url.hostname === \"[::1]\" || url.hostname === \"[0000:0000:0000:0000:0000:0000:0000:0001]\") {\n return;\n }\n }\n else {\n if (url.hostname === \"localhost\") {\n return;\n }\n const ipComponents = url.hostname.split(\".\");\n const inRange = (component) => {\n const num = parseInt(component, 10);\n return 0 <= num && num <= 255;\n };\n if (ipComponents[0] === \"127\" &&\n inRange(ipComponents[1]) &&\n inRange(ipComponents[2]) &&\n inRange(ipComponents[3]) &&\n ipComponents.length === 4) {\n return;\n }\n }\n throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });\n};\nexports.checkUrl = checkUrl;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromHttp = void 0;\nconst tslib_1 = require(\"tslib\");\nconst client_1 = require(\"@aws-sdk/core/client\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst promises_1 = tslib_1.__importDefault(require(\"fs/promises\"));\nconst checkUrl_1 = require(\"./checkUrl\");\nconst requestHelpers_1 = require(\"./requestHelpers\");\nconst retry_wrapper_1 = require(\"./retry-wrapper\");\nconst AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = \"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\";\nconst DEFAULT_LINK_LOCAL_HOST = \"http://169.254.170.2\";\nconst AWS_CONTAINER_CREDENTIALS_FULL_URI = \"AWS_CONTAINER_CREDENTIALS_FULL_URI\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = \"AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN = \"AWS_CONTAINER_AUTHORIZATION_TOKEN\";\nconst fromHttp = (options = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-http - fromHttp\");\n let host;\n const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];\n const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];\n const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];\n const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];\n const warn = options.logger?.constructor?.name === \"NoOpLogger\" || !options.logger?.warn\n ? console.warn\n : options.logger.warn.bind(options.logger);\n if (relative && full) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.\");\n warn(\"awsContainerCredentialsFullUri will take precedence.\");\n }\n if (token && tokenFile) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.\");\n warn(\"awsContainerAuthorizationToken will take precedence.\");\n }\n if (full) {\n host = full;\n }\n else if (relative) {\n host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;\n }\n else {\n throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });\n }\n const url = new URL(host);\n (0, checkUrl_1.checkUrl)(url, options.logger);\n const requestHandler = node_http_handler_1.NodeHttpHandler.create({\n requestTimeout: options.timeout ?? 1000,\n connectionTimeout: options.timeout ?? 1000,\n });\n return (0, retry_wrapper_1.retryWrapper)(async () => {\n const request = (0, requestHelpers_1.createGetRequest)(url);\n if (token) {\n request.headers.Authorization = token;\n }\n else if (tokenFile) {\n request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();\n }\n try {\n const result = await requestHandler.handle(request);\n return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, \"CREDENTIALS_HTTP\", \"z\"));\n }\n catch (e) {\n throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger });\n }\n }, options.maxRetries ?? 3, options.timeout ?? 1000);\n};\nexports.fromHttp = fromHttp;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createGetRequest = createGetRequest;\nexports.getCredentials = getCredentials;\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst protocol_http_1 = require(\"@smithy/protocol-http\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_stream_1 = require(\"@smithy/util-stream\");\nfunction createGetRequest(url) {\n return new protocol_http_1.HttpRequest({\n protocol: url.protocol,\n hostname: url.hostname,\n port: Number(url.port),\n path: url.pathname,\n query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {\n acc[k] = v;\n return acc;\n }, {}),\n fragment: url.hash,\n });\n}\nasync function getCredentials(response, logger) {\n const stream = (0, util_stream_1.sdkStreamMixin)(response.body);\n const str = await stream.transformToString();\n if (response.statusCode === 200) {\n const parsed = JSON.parse(str);\n if (typeof parsed.AccessKeyId !== \"string\" ||\n typeof parsed.SecretAccessKey !== \"string\" ||\n typeof parsed.Token !== \"string\" ||\n typeof parsed.Expiration !== \"string\") {\n throw new property_provider_1.CredentialsProviderError(\"HTTP credential provider response not of the required format, an object matching: \" +\n \"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }\", { logger });\n }\n return {\n accessKeyId: parsed.AccessKeyId,\n secretAccessKey: parsed.SecretAccessKey,\n sessionToken: parsed.Token,\n expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration),\n };\n }\n if (response.statusCode >= 400 && response.statusCode < 500) {\n let parsedBody = {};\n try {\n parsedBody = JSON.parse(str);\n }\n catch (e) { }\n throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {\n Code: parsedBody.Code,\n Message: parsedBody.Message,\n });\n }\n throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryWrapper = void 0;\nconst retryWrapper = (toRetry, maxRetries, delayMs) => {\n return async () => {\n for (let i = 0; i < maxRetries; ++i) {\n try {\n return await toRetry();\n }\n catch (e) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n }\n return await toRetry();\n };\n};\nexports.retryWrapper = retryWrapper;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromHttp = void 0;\nvar fromHttp_1 = require(\"./fromHttp/fromHttp\");\nObject.defineProperty(exports, \"fromHttp\", { enumerable: true, get: function () { return fromHttp_1.fromHttp; } });\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"605.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js",".././node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkUrl = void 0;\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst LOOPBACK_CIDR_IPv4 = \"127.0.0.0/8\";\nconst LOOPBACK_CIDR_IPv6 = \"::1/128\";\nconst ECS_CONTAINER_HOST = \"169.254.170.2\";\nconst EKS_CONTAINER_HOST_IPv4 = \"169.254.170.23\";\nconst EKS_CONTAINER_HOST_IPv6 = \"[fd00:ec2::23]\";\nconst checkUrl = (url, logger) => {\n if (url.protocol === \"https:\") {\n return;\n }\n if (url.hostname === ECS_CONTAINER_HOST ||\n url.hostname === EKS_CONTAINER_HOST_IPv4 ||\n url.hostname === EKS_CONTAINER_HOST_IPv6) {\n return;\n }\n if (url.hostname.includes(\"[\")) {\n if (url.hostname === \"[::1]\" || url.hostname === \"[0000:0000:0000:0000:0000:0000:0000:0001]\") {\n return;\n }\n }\n else {\n if (url.hostname === \"localhost\") {\n return;\n }\n const ipComponents = url.hostname.split(\".\");\n const inRange = (component) => {\n const num = parseInt(component, 10);\n return 0 <= num && num <= 255;\n };\n if (ipComponents[0] === \"127\" &&\n inRange(ipComponents[1]) &&\n inRange(ipComponents[2]) &&\n inRange(ipComponents[3]) &&\n ipComponents.length === 4) {\n return;\n }\n }\n throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:\n - loopback CIDR 127.0.0.0/8 or [::1/128]\n - ECS container host 169.254.170.2\n - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });\n};\nexports.checkUrl = checkUrl;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromHttp = void 0;\nconst tslib_1 = require(\"tslib\");\nconst client_1 = require(\"@aws-sdk/core/client\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst promises_1 = tslib_1.__importDefault(require(\"node:fs/promises\"));\nconst checkUrl_1 = require(\"./checkUrl\");\nconst requestHelpers_1 = require(\"./requestHelpers\");\nconst retry_wrapper_1 = require(\"./retry-wrapper\");\nconst AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = \"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\";\nconst DEFAULT_LINK_LOCAL_HOST = \"http://169.254.170.2\";\nconst AWS_CONTAINER_CREDENTIALS_FULL_URI = \"AWS_CONTAINER_CREDENTIALS_FULL_URI\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = \"AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE\";\nconst AWS_CONTAINER_AUTHORIZATION_TOKEN = \"AWS_CONTAINER_AUTHORIZATION_TOKEN\";\nconst fromHttp = (options = {}) => {\n options.logger?.debug(\"@aws-sdk/credential-provider-http - fromHttp\");\n let host;\n const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];\n const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];\n const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];\n const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];\n const warn = options.logger?.constructor?.name === \"NoOpLogger\" || !options.logger?.warn\n ? console.warn\n : options.logger.warn.bind(options.logger);\n if (relative && full) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.\");\n warn(\"awsContainerCredentialsFullUri will take precedence.\");\n }\n if (token && tokenFile) {\n warn(\"@aws-sdk/credential-provider-http: \" +\n \"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.\");\n warn(\"awsContainerAuthorizationToken will take precedence.\");\n }\n if (full) {\n host = full;\n }\n else if (relative) {\n host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;\n }\n else {\n throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });\n }\n const url = new URL(host);\n (0, checkUrl_1.checkUrl)(url, options.logger);\n const requestHandler = node_http_handler_1.NodeHttpHandler.create({\n requestTimeout: options.timeout ?? 1000,\n connectionTimeout: options.timeout ?? 1000,\n });\n return (0, retry_wrapper_1.retryWrapper)(async () => {\n const request = (0, requestHelpers_1.createGetRequest)(url);\n if (token) {\n request.headers.Authorization = token;\n }\n else if (tokenFile) {\n request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();\n }\n try {\n const result = await requestHandler.handle(request);\n return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, \"CREDENTIALS_HTTP\", \"z\"));\n }\n catch (e) {\n throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger });\n }\n }, options.maxRetries ?? 3, options.timeout ?? 1000);\n};\nexports.fromHttp = fromHttp;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createGetRequest = createGetRequest;\nexports.getCredentials = getCredentials;\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst protocol_http_1 = require(\"@smithy/protocol-http\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_stream_1 = require(\"@smithy/util-stream\");\nfunction createGetRequest(url) {\n return new protocol_http_1.HttpRequest({\n protocol: url.protocol,\n hostname: url.hostname,\n port: Number(url.port),\n path: url.pathname,\n query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {\n acc[k] = v;\n return acc;\n }, {}),\n fragment: url.hash,\n });\n}\nasync function getCredentials(response, logger) {\n const stream = (0, util_stream_1.sdkStreamMixin)(response.body);\n const str = await stream.transformToString();\n if (response.statusCode === 200) {\n const parsed = JSON.parse(str);\n if (typeof parsed.AccessKeyId !== \"string\" ||\n typeof parsed.SecretAccessKey !== \"string\" ||\n typeof parsed.Token !== \"string\" ||\n typeof parsed.Expiration !== \"string\") {\n throw new property_provider_1.CredentialsProviderError(\"HTTP credential provider response not of the required format, an object matching: \" +\n \"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }\", { logger });\n }\n return {\n accessKeyId: parsed.AccessKeyId,\n secretAccessKey: parsed.SecretAccessKey,\n sessionToken: parsed.Token,\n expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration),\n };\n }\n if (response.statusCode >= 400 && response.statusCode < 500) {\n let parsedBody = {};\n try {\n parsedBody = JSON.parse(str);\n }\n catch (e) { }\n throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {\n Code: parsedBody.Code,\n Message: parsedBody.Message,\n });\n }\n throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryWrapper = void 0;\nconst retryWrapper = (toRetry, maxRetries, delayMs) => {\n return async () => {\n for (let i = 0; i < maxRetries; ++i) {\n try {\n return await toRetry();\n }\n catch (e) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n }\n return await toRetry();\n };\n};\nexports.retryWrapper = retryWrapper;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromHttp = void 0;\nvar fromHttp_1 = require(\"./fromHttp/fromHttp\");\nObject.defineProperty(exports, \"fromHttp\", { enumerable: true, get: function () { return fromHttp_1.fromHttp; } });\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/762.index.js b/dist/762.index.js
index f21775c..1a0d923 100644
--- a/dist/762.index.js
+++ b/dist/762.index.js
@@ -97,8 +97,134 @@ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunct
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ruleSet = void 0;
const u = "required", v = "fn", w = "argv", x = "ref";
-const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, "default": false, "type": "boolean" }, j = { [u]: false, "type": "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
-const _data = { version: "1.0", parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [m], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q], endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q], endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q], endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n }, type: e }, { conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, r] }, s], rules: [{ endpoint: { url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [l, q], rules: [{ conditions: [{ [v]: c, [w]: [r, a] }], rules: [{ endpoint: { url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [p, m], rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, default: false, type: "boolean" }, j = { [u]: false, type: "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
+const _data = {
+ version: "1.0",
+ parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },
+ rules: [
+ {
+ conditions: [{ [v]: b, [w]: [k] }],
+ rules: [
+ { conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
+ {
+ rules: [
+ {
+ conditions: [m],
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
+ type: d,
+ },
+ { endpoint: { url: k, properties: n, headers: n }, type: e },
+ ],
+ type: f,
+ },
+ ],
+ type: f,
+ },
+ {
+ rules: [
+ {
+ conditions: [{ [v]: b, [w]: t }],
+ rules: [
+ {
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
+ rules: [
+ {
+ conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q],
+ endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n },
+ type: e,
+ },
+ {
+ conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q],
+ endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n },
+ type: e,
+ },
+ {
+ conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q],
+ endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n },
+ type: e,
+ },
+ {
+ conditions: [l, m],
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [a, r] }, s],
+ rules: [
+ {
+ endpoint: {
+ url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ {
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
+ type: d,
+ },
+ ],
+ type: f,
+ },
+ {
+ conditions: [l, q],
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [r, a] }],
+ rules: [
+ {
+ endpoint: {
+ url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d },
+ ],
+ type: f,
+ },
+ {
+ conditions: [p, m],
+ rules: [
+ {
+ conditions: [s],
+ rules: [
+ {
+ endpoint: {
+ url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d },
+ ],
+ type: f,
+ },
+ {
+ endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ ],
+ type: f,
+ },
+ { error: "Invalid Configuration: Missing Region", type: d },
+ ],
+ type: f,
+ },
+ ],
+};
exports.ruleSet = _data;
@@ -107,7 +233,6 @@ exports.ruleSet = _data;
/***/ 9762:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-var __webpack_unused_export__;
var middlewareHostHeader = __webpack_require__(2590);
@@ -125,6 +250,9 @@ var httpAuthSchemeProvider = __webpack_require__(7709);
var runtimeConfig = __webpack_require__(2836);
var regionConfigResolver = __webpack_require__(6463);
var protocolHttp = __webpack_require__(2356);
+var schemas_0 = __webpack_require__(890);
+var errors = __webpack_require__(7214);
+var SigninServiceException = __webpack_require__(2831);
const resolveClientEndpointParameters = (options) => {
return Object.assign(options, {
@@ -220,187 +348,6 @@ class SigninClient extends smithyClient.Client {
}
}
-class SigninServiceException extends smithyClient.ServiceException {
- constructor(options) {
- super(options);
- Object.setPrototypeOf(this, SigninServiceException.prototype);
- }
-}
-
-class AccessDeniedException extends SigninServiceException {
- name = "AccessDeniedException";
- $fault = "client";
- error;
- constructor(opts) {
- super({
- name: "AccessDeniedException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
- this.error = opts.error;
- }
-}
-class InternalServerException extends SigninServiceException {
- name = "InternalServerException";
- $fault = "server";
- error;
- constructor(opts) {
- super({
- name: "InternalServerException",
- $fault: "server",
- ...opts,
- });
- Object.setPrototypeOf(this, InternalServerException.prototype);
- this.error = opts.error;
- }
-}
-class TooManyRequestsError extends SigninServiceException {
- name = "TooManyRequestsError";
- $fault = "client";
- error;
- constructor(opts) {
- super({
- name: "TooManyRequestsError",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, TooManyRequestsError.prototype);
- this.error = opts.error;
- }
-}
-class ValidationException extends SigninServiceException {
- name = "ValidationException";
- $fault = "client";
- error;
- constructor(opts) {
- super({
- name: "ValidationException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, ValidationException.prototype);
- this.error = opts.error;
- }
-}
-
-const _ADE = "AccessDeniedException";
-const _AT = "AccessToken";
-const _COAT = "CreateOAuth2Token";
-const _COATR = "CreateOAuth2TokenRequest";
-const _COATRB = "CreateOAuth2TokenRequestBody";
-const _COATRBr = "CreateOAuth2TokenResponseBody";
-const _COATRr = "CreateOAuth2TokenResponse";
-const _ISE = "InternalServerException";
-const _RT = "RefreshToken";
-const _TMRE = "TooManyRequestsError";
-const _VE = "ValidationException";
-const _aKI = "accessKeyId";
-const _aT = "accessToken";
-const _c = "client";
-const _cI = "clientId";
-const _cV = "codeVerifier";
-const _co = "code";
-const _e = "error";
-const _eI = "expiresIn";
-const _gT = "grantType";
-const _h = "http";
-const _hE = "httpError";
-const _iT = "idToken";
-const _jN = "jsonName";
-const _m = "message";
-const _rT = "refreshToken";
-const _rU = "redirectUri";
-const _s = "server";
-const _sAK = "secretAccessKey";
-const _sT = "sessionToken";
-const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
-const _tI = "tokenInput";
-const _tO = "tokenOutput";
-const _tT = "tokenType";
-const n0 = "com.amazonaws.signin";
-var RefreshToken = [0, n0, _RT, 8, 0];
-var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
-schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
-var AccessToken$ = [
- 3,
- n0,
- _AT,
- 8,
- [_aKI, _sAK, _sT],
- [
- [0, { [_jN]: _aKI }],
- [0, { [_jN]: _sAK }],
- [0, { [_jN]: _sT }],
- ],
- 3,
-];
-var CreateOAuth2TokenRequest$ = [
- 3,
- n0,
- _COATR,
- 0,
- [_tI],
- [[() => CreateOAuth2TokenRequestBody$, 16]],
- 1,
-];
-var CreateOAuth2TokenRequestBody$ = [
- 3,
- n0,
- _COATRB,
- 0,
- [_cI, _gT, _co, _rU, _cV, _rT],
- [
- [0, { [_jN]: _cI }],
- [0, { [_jN]: _gT }],
- 0,
- [0, { [_jN]: _rU }],
- [0, { [_jN]: _cV }],
- [() => RefreshToken, { [_jN]: _rT }],
- ],
- 2,
-];
-var CreateOAuth2TokenResponse$ = [
- 3,
- n0,
- _COATRr,
- 0,
- [_tO],
- [[() => CreateOAuth2TokenResponseBody$, 16]],
- 1,
-];
-var CreateOAuth2TokenResponseBody$ = [
- 3,
- n0,
- _COATRBr,
- 0,
- [_aT, _tT, _eI, _rT, _iT],
- [
- [() => AccessToken$, { [_jN]: _aT }],
- [0, { [_jN]: _tT }],
- [1, { [_jN]: _eI }],
- [() => RefreshToken, { [_jN]: _rT }],
- [0, { [_jN]: _iT }],
- ],
- 4,
-];
-var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0], 2];
-schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
-var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
-schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
-var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
-schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
-var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
-schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
-var CreateOAuth2Token$ = [
- 9,
- n0,
- _COAT,
- { [_h]: ["POST", "/v1/token", 200] },
- () => CreateOAuth2TokenRequest$,
- () => CreateOAuth2TokenResponse$,
-];
-
class CreateOAuth2TokenCommand extends smithyClient.Command
.classBuilder()
.ep(commonParams)
@@ -409,7 +356,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command
})
.s("Signin", "CreateOAuth2Token", {})
.n("SigninClient", "CreateOAuth2TokenCommand")
- .sc(CreateOAuth2Token$)
+ .sc(schemas_0.CreateOAuth2Token$)
.build() {
}
@@ -429,34 +376,123 @@ const OAuth2ErrorCode = {
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
};
-__webpack_unused_export__ = ({
- enumerable: true,
- get: function () { return smithyClient.Command; }
-});
-__webpack_unused_export__ = ({
- enumerable: true,
- get: function () { return smithyClient.Client; }
-});
-__webpack_unused_export__ = AccessDeniedException;
-__webpack_unused_export__ = AccessDeniedException$;
-__webpack_unused_export__ = AccessToken$;
-__webpack_unused_export__ = CreateOAuth2Token$;
+exports.$Command = smithyClient.Command;
+exports.__Client = smithyClient.Client;
+exports.SigninServiceException = SigninServiceException.SigninServiceException;
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
-__webpack_unused_export__ = CreateOAuth2TokenRequest$;
-__webpack_unused_export__ = CreateOAuth2TokenRequestBody$;
-__webpack_unused_export__ = CreateOAuth2TokenResponse$;
-__webpack_unused_export__ = CreateOAuth2TokenResponseBody$;
-__webpack_unused_export__ = InternalServerException;
-__webpack_unused_export__ = InternalServerException$;
-__webpack_unused_export__ = OAuth2ErrorCode;
-__webpack_unused_export__ = Signin;
+exports.OAuth2ErrorCode = OAuth2ErrorCode;
+exports.Signin = Signin;
exports.SigninClient = SigninClient;
-__webpack_unused_export__ = SigninServiceException;
-__webpack_unused_export__ = SigninServiceException$;
-__webpack_unused_export__ = TooManyRequestsError;
-__webpack_unused_export__ = TooManyRequestsError$;
-__webpack_unused_export__ = ValidationException;
-__webpack_unused_export__ = ValidationException$;
+Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: schemas_0['__proto__']
+ });
+
+Object.keys(schemas_0).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
+});
+Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: errors['__proto__']
+ });
+
+Object.keys(errors).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
+});
+
+
+/***/ }),
+
+/***/ 2831:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SigninServiceException = exports.__ServiceException = void 0;
+const smithy_client_1 = __webpack_require__(1411);
+Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
+class SigninServiceException extends smithy_client_1.ServiceException {
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, SigninServiceException.prototype);
+ }
+}
+exports.SigninServiceException = SigninServiceException;
+
+
+/***/ }),
+
+/***/ 7214:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;
+const SigninServiceException_1 = __webpack_require__(2831);
+class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
+ name = "AccessDeniedException";
+ $fault = "client";
+ error;
+ constructor(opts) {
+ super({
+ name: "AccessDeniedException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
+ this.error = opts.error;
+ }
+}
+exports.AccessDeniedException = AccessDeniedException;
+class InternalServerException extends SigninServiceException_1.SigninServiceException {
+ name = "InternalServerException";
+ $fault = "server";
+ error;
+ constructor(opts) {
+ super({
+ name: "InternalServerException",
+ $fault: "server",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InternalServerException.prototype);
+ this.error = opts.error;
+ }
+}
+exports.InternalServerException = InternalServerException;
+class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
+ name = "TooManyRequestsError";
+ $fault = "client";
+ error;
+ constructor(opts) {
+ super({
+ name: "TooManyRequestsError",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
+ this.error = opts.error;
+ }
+}
+exports.TooManyRequestsError = TooManyRequestsError;
+class ValidationException extends SigninServiceException_1.SigninServiceException {
+ name = "ValidationException";
+ $fault = "client";
+ error;
+ constructor(opts) {
+ super({
+ name: "ValidationException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ValidationException.prototype);
+ this.error = opts.error;
+ }
+}
+exports.ValidationException = ValidationException;
/***/ }),
@@ -536,6 +572,7 @@ const util_base64_1 = __webpack_require__(8385);
const util_utf8_1 = __webpack_require__(1577);
const httpAuthSchemeProvider_1 = __webpack_require__(7709);
const endpointResolver_1 = __webpack_require__(2547);
+const schemas_0_1 = __webpack_require__(890);
const getRuntimeConfig = (config) => {
return {
apiVersion: "2023-01-01",
@@ -561,6 +598,7 @@ const getRuntimeConfig = (config) => {
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
protocolSettings: config?.protocolSettings ?? {
defaultNamespace: "com.amazonaws.signin",
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
version: "2023-01-01",
serviceTarget: "Signin",
},
@@ -573,12 +611,144 @@ const getRuntimeConfig = (config) => {
exports.getRuntimeConfig = getRuntimeConfig;
+/***/ }),
+
+/***/ 890:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
+const _ADE = "AccessDeniedException";
+const _AT = "AccessToken";
+const _COAT = "CreateOAuth2Token";
+const _COATR = "CreateOAuth2TokenRequest";
+const _COATRB = "CreateOAuth2TokenRequestBody";
+const _COATRBr = "CreateOAuth2TokenResponseBody";
+const _COATRr = "CreateOAuth2TokenResponse";
+const _ISE = "InternalServerException";
+const _RT = "RefreshToken";
+const _TMRE = "TooManyRequestsError";
+const _VE = "ValidationException";
+const _aKI = "accessKeyId";
+const _aT = "accessToken";
+const _c = "client";
+const _cI = "clientId";
+const _cV = "codeVerifier";
+const _co = "code";
+const _e = "error";
+const _eI = "expiresIn";
+const _gT = "grantType";
+const _h = "http";
+const _hE = "httpError";
+const _iT = "idToken";
+const _jN = "jsonName";
+const _m = "message";
+const _rT = "refreshToken";
+const _rU = "redirectUri";
+const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
+const _sAK = "secretAccessKey";
+const _sT = "sessionToken";
+const _se = "server";
+const _tI = "tokenInput";
+const _tO = "tokenOutput";
+const _tT = "tokenType";
+const n0 = "com.amazonaws.signin";
+const schema_1 = __webpack_require__(6890);
+const errors_1 = __webpack_require__(7214);
+const SigninServiceException_1 = __webpack_require__(2831);
+const _s_registry = schema_1.TypeRegistry.for(_s);
+exports.SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
+_s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);
+const n0_registry = schema_1.TypeRegistry.for(n0);
+exports.AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
+n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
+exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
+n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
+exports.TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
+n0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);
+exports.ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
+n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
+exports.errorTypeRegistries = [_s_registry, n0_registry];
+var RefreshToken = [0, n0, _RT, 8, 0];
+exports.AccessToken$ = [
+ 3,
+ n0,
+ _AT,
+ 8,
+ [_aKI, _sAK, _sT],
+ [
+ [0, { [_jN]: _aKI }],
+ [0, { [_jN]: _sAK }],
+ [0, { [_jN]: _sT }],
+ ],
+ 3,
+];
+exports.CreateOAuth2TokenRequest$ = [
+ 3,
+ n0,
+ _COATR,
+ 0,
+ [_tI],
+ [[() => exports.CreateOAuth2TokenRequestBody$, 16]],
+ 1,
+];
+exports.CreateOAuth2TokenRequestBody$ = [
+ 3,
+ n0,
+ _COATRB,
+ 0,
+ [_cI, _gT, _co, _rU, _cV, _rT],
+ [
+ [0, { [_jN]: _cI }],
+ [0, { [_jN]: _gT }],
+ 0,
+ [0, { [_jN]: _rU }],
+ [0, { [_jN]: _cV }],
+ [() => RefreshToken, { [_jN]: _rT }],
+ ],
+ 2,
+];
+exports.CreateOAuth2TokenResponse$ = [
+ 3,
+ n0,
+ _COATRr,
+ 0,
+ [_tO],
+ [[() => exports.CreateOAuth2TokenResponseBody$, 16]],
+ 1,
+];
+exports.CreateOAuth2TokenResponseBody$ = [
+ 3,
+ n0,
+ _COATRBr,
+ 0,
+ [_aT, _tT, _eI, _rT, _iT],
+ [
+ [() => exports.AccessToken$, { [_jN]: _aT }],
+ [0, { [_jN]: _tT }],
+ [1, { [_jN]: _eI }],
+ [() => RefreshToken, { [_jN]: _rT }],
+ [0, { [_jN]: _iT }],
+ ],
+ 4,
+];
+exports.CreateOAuth2Token$ = [
+ 9,
+ n0,
+ _COAT,
+ { [_h]: ["POST", "/v1/token", 200] },
+ () => exports.CreateOAuth2TokenRequest$,
+ () => exports.CreateOAuth2TokenResponse$,
+];
+
+
/***/ }),
/***/ 9955:
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
+module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.3","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.15","@aws-sdk/middleware-host-header":"^3.972.6","@aws-sdk/middleware-logger":"^3.972.6","@aws-sdk/middleware-recursion-detection":"^3.972.6","@aws-sdk/middleware-user-agent":"^3.972.15","@aws-sdk/region-config-resolver":"^3.972.6","@aws-sdk/types":"^3.973.4","@aws-sdk/util-endpoints":"^3.996.3","@aws-sdk/util-user-agent-browser":"^3.972.6","@aws-sdk/util-user-agent-node":"^3.973.0","@smithy/config-resolver":"^4.4.9","@smithy/core":"^3.23.6","@smithy/fetch-http-handler":"^5.3.11","@smithy/hash-node":"^4.2.10","@smithy/invalid-dependency":"^4.2.10","@smithy/middleware-content-length":"^4.2.10","@smithy/middleware-endpoint":"^4.4.20","@smithy/middleware-retry":"^4.4.37","@smithy/middleware-serde":"^4.2.11","@smithy/middleware-stack":"^4.2.10","@smithy/node-config-provider":"^4.3.10","@smithy/node-http-handler":"^4.4.12","@smithy/protocol-http":"^5.3.10","@smithy/smithy-client":"^4.12.0","@smithy/types":"^4.13.0","@smithy/url-parser":"^4.2.10","@smithy/util-base64":"^4.3.1","@smithy/util-body-length-browser":"^4.2.1","@smithy/util-body-length-node":"^4.2.2","@smithy/util-defaults-mode-browser":"^4.3.36","@smithy/util-defaults-mode-node":"^4.2.39","@smithy/util-endpoints":"^3.3.1","@smithy/util-middleware":"^4.2.10","@smithy/util-retry":"^4.2.10","@smithy/util-utf8":"^4.2.1","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
/***/ })
diff --git a/dist/762.index.js.map b/dist/762.index.js.map
index 2d4db43..f9c2a1e 100644
--- a/dist/762.index.js.map
+++ b/dist/762.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"762.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"signin\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSigninHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"CreateOAuth2Token\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"stringEquals\", i = { [u]: true, \"default\": false, \"type\": \"boolean\" }, j = { [u]: false, \"type\": \"string\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: \"getAttr\", [w]: [{ [x]: g }, \"name\"] }, p = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, false] }, q = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, false] }, r = { [v]: \"getAttr\", [w]: [{ [x]: g }, \"supportsFIPS\"] }, s = { [v]: c, [w]: [true, { [v]: \"getAttr\", [w]: [{ [x]: g }, \"supportsDualStack\"] }] }, t = [{ [x]: \"Region\" }];\nconst _data = { version: \"1.0\", parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: [l], error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d }, { rules: [{ conditions: [m], error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }], rules: [{ conditions: [{ [v]: h, [w]: [o, \"aws\"] }, p, q], endpoint: { url: \"https://{Region}.signin.aws.amazon.com\", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, \"aws-cn\"] }, p, q], endpoint: { url: \"https://{Region}.signin.amazonaws.cn\", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, \"aws-us-gov\"] }, p, q], endpoint: { url: \"https://{Region}.signin.amazonaws-us-gov.com\", properties: n, headers: n }, type: e }, { conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, r] }, s], rules: [{ endpoint: { url: \"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d }], type: f }, { conditions: [l, q], rules: [{ conditions: [{ [v]: c, [w]: [r, a] }], rules: [{ endpoint: { url: \"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS is enabled but this partition does not support FIPS\", type: d }], type: f }, { conditions: [p, m], rules: [{ conditions: [s], rules: [{ endpoint: { url: \"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"DualStack is enabled but this partition does not support DualStack\", type: d }], type: f }, { endpoint: { url: \"https://signin.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: \"Invalid Configuration: Missing Region\", type: d }], type: f }] };\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"signin\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SigninClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSigninHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass SigninServiceException extends smithyClient.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SigninServiceException.prototype);\n }\n}\n\nclass AccessDeniedException extends SigninServiceException {\n name = \"AccessDeniedException\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AccessDeniedException.prototype);\n this.error = opts.error;\n }\n}\nclass InternalServerException extends SigninServiceException {\n name = \"InternalServerException\";\n $fault = \"server\";\n error;\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalServerException.prototype);\n this.error = opts.error;\n }\n}\nclass TooManyRequestsError extends SigninServiceException {\n name = \"TooManyRequestsError\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"TooManyRequestsError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsError.prototype);\n this.error = opts.error;\n }\n}\nclass ValidationException extends SigninServiceException {\n name = \"ValidationException\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"ValidationException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ValidationException.prototype);\n this.error = opts.error;\n }\n}\n\nconst _ADE = \"AccessDeniedException\";\nconst _AT = \"AccessToken\";\nconst _COAT = \"CreateOAuth2Token\";\nconst _COATR = \"CreateOAuth2TokenRequest\";\nconst _COATRB = \"CreateOAuth2TokenRequestBody\";\nconst _COATRBr = \"CreateOAuth2TokenResponseBody\";\nconst _COATRr = \"CreateOAuth2TokenResponse\";\nconst _ISE = \"InternalServerException\";\nconst _RT = \"RefreshToken\";\nconst _TMRE = \"TooManyRequestsError\";\nconst _VE = \"ValidationException\";\nconst _aKI = \"accessKeyId\";\nconst _aT = \"accessToken\";\nconst _c = \"client\";\nconst _cI = \"clientId\";\nconst _cV = \"codeVerifier\";\nconst _co = \"code\";\nconst _e = \"error\";\nconst _eI = \"expiresIn\";\nconst _gT = \"grantType\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _iT = \"idToken\";\nconst _jN = \"jsonName\";\nconst _m = \"message\";\nconst _rT = \"refreshToken\";\nconst _rU = \"redirectUri\";\nconst _s = \"server\";\nconst _sAK = \"secretAccessKey\";\nconst _sT = \"sessionToken\";\nconst _sm = \"smithy.ts.sdk.synthetic.com.amazonaws.signin\";\nconst _tI = \"tokenInput\";\nconst _tO = \"tokenOutput\";\nconst _tT = \"tokenType\";\nconst n0 = \"com.amazonaws.signin\";\nvar RefreshToken = [0, n0, _RT, 8, 0];\nvar AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];\nschema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);\nvar AccessToken$ = [\n 3,\n n0,\n _AT,\n 8,\n [_aKI, _sAK, _sT],\n [\n [0, { [_jN]: _aKI }],\n [0, { [_jN]: _sAK }],\n [0, { [_jN]: _sT }],\n ],\n 3,\n];\nvar CreateOAuth2TokenRequest$ = [\n 3,\n n0,\n _COATR,\n 0,\n [_tI],\n [[() => CreateOAuth2TokenRequestBody$, 16]],\n 1,\n];\nvar CreateOAuth2TokenRequestBody$ = [\n 3,\n n0,\n _COATRB,\n 0,\n [_cI, _gT, _co, _rU, _cV, _rT],\n [\n [0, { [_jN]: _cI }],\n [0, { [_jN]: _gT }],\n 0,\n [0, { [_jN]: _rU }],\n [0, { [_jN]: _cV }],\n [() => RefreshToken, { [_jN]: _rT }],\n ],\n 2,\n];\nvar CreateOAuth2TokenResponse$ = [\n 3,\n n0,\n _COATRr,\n 0,\n [_tO],\n [[() => CreateOAuth2TokenResponseBody$, 16]],\n 1,\n];\nvar CreateOAuth2TokenResponseBody$ = [\n 3,\n n0,\n _COATRBr,\n 0,\n [_aT, _tT, _eI, _rT, _iT],\n [\n [() => AccessToken$, { [_jN]: _aT }],\n [0, { [_jN]: _tT }],\n [1, { [_jN]: _eI }],\n [() => RefreshToken, { [_jN]: _rT }],\n [0, { [_jN]: _iT }],\n ],\n 4,\n];\nvar InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0], 2];\nschema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);\nvar TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];\nschema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);\nvar ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];\nschema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);\nvar SigninServiceException$ = [-3, _sm, \"SigninServiceException\", 0, [], []];\nschema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);\nvar CreateOAuth2Token$ = [\n 9,\n n0,\n _COAT,\n { [_h]: [\"POST\", \"/v1/token\", 200] },\n () => CreateOAuth2TokenRequest$,\n () => CreateOAuth2TokenResponse$,\n];\n\nclass CreateOAuth2TokenCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"Signin\", \"CreateOAuth2Token\", {})\n .n(\"SigninClient\", \"CreateOAuth2TokenCommand\")\n .sc(CreateOAuth2Token$)\n .build() {\n}\n\nconst commands = {\n CreateOAuth2TokenCommand,\n};\nclass Signin extends SigninClient {\n}\nsmithyClient.createAggregatedClient(commands, Signin);\n\nconst OAuth2ErrorCode = {\n AUTHCODE_EXPIRED: \"AUTHCODE_EXPIRED\",\n INSUFFICIENT_PERMISSIONS: \"INSUFFICIENT_PERMISSIONS\",\n INVALID_REQUEST: \"INVALID_REQUEST\",\n SERVER_ERROR: \"server_error\",\n TOKEN_EXPIRED: \"TOKEN_EXPIRED\",\n USER_CREDENTIALS_CHANGED: \"USER_CREDENTIALS_CHANGED\",\n};\n\nObject.defineProperty(exports, \"$Command\", {\n enumerable: true,\n get: function () { return smithyClient.Command; }\n});\nObject.defineProperty(exports, \"__Client\", {\n enumerable: true,\n get: function () { return smithyClient.Client; }\n});\nexports.AccessDeniedException = AccessDeniedException;\nexports.AccessDeniedException$ = AccessDeniedException$;\nexports.AccessToken$ = AccessToken$;\nexports.CreateOAuth2Token$ = CreateOAuth2Token$;\nexports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;\nexports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;\nexports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;\nexports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;\nexports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;\nexports.InternalServerException = InternalServerException;\nexports.InternalServerException$ = InternalServerException$;\nexports.OAuth2ErrorCode = OAuth2ErrorCode;\nexports.Signin = Signin;\nexports.SigninClient = SigninClient;\nexports.SigninServiceException = SigninServiceException;\nexports.SigninServiceException$ = SigninServiceException$;\nexports.TooManyRequestsError = TooManyRequestsError;\nexports.TooManyRequestsError$ = TooManyRequestsError$;\nexports.ValidationException = ValidationException;\nexports.ValidationException$ = ValidationException$;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2023-01-01\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSigninHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.signin\",\n version: \"2023-01-01\",\n serviceTarget: \"Signin\",\n },\n serviceId: config?.serviceId ?? \"Signin\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"762.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"signin\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSigninHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"CreateOAuth2Token\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"stringEquals\", i = { [u]: true, default: false, type: \"boolean\" }, j = { [u]: false, type: \"string\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: \"getAttr\", [w]: [{ [x]: g }, \"name\"] }, p = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, false] }, q = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, false] }, r = { [v]: \"getAttr\", [w]: [{ [x]: g }, \"supportsFIPS\"] }, s = { [v]: c, [w]: [true, { [v]: \"getAttr\", [w]: [{ [x]: g }, \"supportsDualStack\"] }] }, t = [{ [x]: \"Region\" }];\nconst _data = {\n version: \"1.0\",\n parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },\n rules: [\n {\n conditions: [{ [v]: b, [w]: [k] }],\n rules: [\n { conditions: [l], error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d },\n {\n rules: [\n {\n conditions: [m],\n error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\",\n type: d,\n },\n { endpoint: { url: k, properties: n, headers: n }, type: e },\n ],\n type: f,\n },\n ],\n type: f,\n },\n {\n rules: [\n {\n conditions: [{ [v]: b, [w]: t }],\n rules: [\n {\n conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }],\n rules: [\n {\n conditions: [{ [v]: h, [w]: [o, \"aws\"] }, p, q],\n endpoint: { url: \"https://{Region}.signin.aws.amazon.com\", properties: n, headers: n },\n type: e,\n },\n {\n conditions: [{ [v]: h, [w]: [o, \"aws-cn\"] }, p, q],\n endpoint: { url: \"https://{Region}.signin.amazonaws.cn\", properties: n, headers: n },\n type: e,\n },\n {\n conditions: [{ [v]: h, [w]: [o, \"aws-us-gov\"] }, p, q],\n endpoint: { url: \"https://{Region}.signin.amazonaws-us-gov.com\", properties: n, headers: n },\n type: e,\n },\n {\n conditions: [l, m],\n rules: [\n {\n conditions: [{ [v]: c, [w]: [a, r] }, s],\n rules: [\n {\n endpoint: {\n url: \"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n {\n error: \"FIPS and DualStack are enabled, but this partition does not support one or both\",\n type: d,\n },\n ],\n type: f,\n },\n {\n conditions: [l, q],\n rules: [\n {\n conditions: [{ [v]: c, [w]: [r, a] }],\n rules: [\n {\n endpoint: {\n url: \"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS is enabled but this partition does not support FIPS\", type: d },\n ],\n type: f,\n },\n {\n conditions: [p, m],\n rules: [\n {\n conditions: [s],\n rules: [\n {\n endpoint: {\n url: \"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"DualStack is enabled but this partition does not support DualStack\", type: d },\n ],\n type: f,\n },\n {\n endpoint: { url: \"https://signin.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n },\n type: e,\n },\n ],\n type: f,\n },\n ],\n type: f,\n },\n { error: \"Invalid Configuration: Missing Region\", type: d },\n ],\n type: f,\n },\n ],\n};\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\nvar schemas_0 = require('./schemas/schemas_0');\nvar errors = require('./models/errors');\nvar SigninServiceException = require('./models/SigninServiceException');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"signin\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SigninClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSigninHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass CreateOAuth2TokenCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"Signin\", \"CreateOAuth2Token\", {})\n .n(\"SigninClient\", \"CreateOAuth2TokenCommand\")\n .sc(schemas_0.CreateOAuth2Token$)\n .build() {\n}\n\nconst commands = {\n CreateOAuth2TokenCommand,\n};\nclass Signin extends SigninClient {\n}\nsmithyClient.createAggregatedClient(commands, Signin);\n\nconst OAuth2ErrorCode = {\n AUTHCODE_EXPIRED: \"AUTHCODE_EXPIRED\",\n INSUFFICIENT_PERMISSIONS: \"INSUFFICIENT_PERMISSIONS\",\n INVALID_REQUEST: \"INVALID_REQUEST\",\n SERVER_ERROR: \"server_error\",\n TOKEN_EXPIRED: \"TOKEN_EXPIRED\",\n USER_CREDENTIALS_CHANGED: \"USER_CREDENTIALS_CHANGED\",\n};\n\nexports.$Command = smithyClient.Command;\nexports.__Client = smithyClient.Client;\nexports.SigninServiceException = SigninServiceException.SigninServiceException;\nexports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;\nexports.OAuth2ErrorCode = OAuth2ErrorCode;\nexports.Signin = Signin;\nexports.SigninClient = SigninClient;\nObject.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: schemas_0['__proto__']\n });\n\nObject.keys(schemas_0).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];\n});\nObject.prototype.hasOwnProperty.call(errors, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: errors['__proto__']\n });\n\nObject.keys(errors).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SigninServiceException = exports.__ServiceException = void 0;\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__ServiceException\", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });\nclass SigninServiceException extends smithy_client_1.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SigninServiceException.prototype);\n }\n}\nexports.SigninServiceException = SigninServiceException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;\nconst SigninServiceException_1 = require(\"./SigninServiceException\");\nclass AccessDeniedException extends SigninServiceException_1.SigninServiceException {\n name = \"AccessDeniedException\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AccessDeniedException.prototype);\n this.error = opts.error;\n }\n}\nexports.AccessDeniedException = AccessDeniedException;\nclass InternalServerException extends SigninServiceException_1.SigninServiceException {\n name = \"InternalServerException\";\n $fault = \"server\";\n error;\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalServerException.prototype);\n this.error = opts.error;\n }\n}\nexports.InternalServerException = InternalServerException;\nclass TooManyRequestsError extends SigninServiceException_1.SigninServiceException {\n name = \"TooManyRequestsError\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"TooManyRequestsError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsError.prototype);\n this.error = opts.error;\n }\n}\nexports.TooManyRequestsError = TooManyRequestsError;\nclass ValidationException extends SigninServiceException_1.SigninServiceException {\n name = \"ValidationException\";\n $fault = \"client\";\n error;\n constructor(opts) {\n super({\n name: \"ValidationException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ValidationException.prototype);\n this.error = opts.error;\n }\n}\nexports.ValidationException = ValidationException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst schemas_0_1 = require(\"./schemas/schemas_0\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2023-01-01\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSigninHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.signin\",\n errorTypeRegistries: schemas_0_1.errorTypeRegistries,\n version: \"2023-01-01\",\n serviceTarget: \"Signin\",\n },\n serviceId: config?.serviceId ?? \"Signin\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;\nconst _ADE = \"AccessDeniedException\";\nconst _AT = \"AccessToken\";\nconst _COAT = \"CreateOAuth2Token\";\nconst _COATR = \"CreateOAuth2TokenRequest\";\nconst _COATRB = \"CreateOAuth2TokenRequestBody\";\nconst _COATRBr = \"CreateOAuth2TokenResponseBody\";\nconst _COATRr = \"CreateOAuth2TokenResponse\";\nconst _ISE = \"InternalServerException\";\nconst _RT = \"RefreshToken\";\nconst _TMRE = \"TooManyRequestsError\";\nconst _VE = \"ValidationException\";\nconst _aKI = \"accessKeyId\";\nconst _aT = \"accessToken\";\nconst _c = \"client\";\nconst _cI = \"clientId\";\nconst _cV = \"codeVerifier\";\nconst _co = \"code\";\nconst _e = \"error\";\nconst _eI = \"expiresIn\";\nconst _gT = \"grantType\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _iT = \"idToken\";\nconst _jN = \"jsonName\";\nconst _m = \"message\";\nconst _rT = \"refreshToken\";\nconst _rU = \"redirectUri\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.signin\";\nconst _sAK = \"secretAccessKey\";\nconst _sT = \"sessionToken\";\nconst _se = \"server\";\nconst _tI = \"tokenInput\";\nconst _tO = \"tokenOutput\";\nconst _tT = \"tokenType\";\nconst n0 = \"com.amazonaws.signin\";\nconst schema_1 = require(\"@smithy/core/schema\");\nconst errors_1 = require(\"../models/errors\");\nconst SigninServiceException_1 = require(\"../models/SigninServiceException\");\nconst _s_registry = schema_1.TypeRegistry.for(_s);\nexports.SigninServiceException$ = [-3, _s, \"SigninServiceException\", 0, [], []];\n_s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);\nconst n0_registry = schema_1.TypeRegistry.for(n0);\nexports.AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];\nn0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);\nexports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];\nn0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);\nexports.TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];\nn0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);\nexports.ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];\nn0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);\nexports.errorTypeRegistries = [_s_registry, n0_registry];\nvar RefreshToken = [0, n0, _RT, 8, 0];\nexports.AccessToken$ = [\n 3,\n n0,\n _AT,\n 8,\n [_aKI, _sAK, _sT],\n [\n [0, { [_jN]: _aKI }],\n [0, { [_jN]: _sAK }],\n [0, { [_jN]: _sT }],\n ],\n 3,\n];\nexports.CreateOAuth2TokenRequest$ = [\n 3,\n n0,\n _COATR,\n 0,\n [_tI],\n [[() => exports.CreateOAuth2TokenRequestBody$, 16]],\n 1,\n];\nexports.CreateOAuth2TokenRequestBody$ = [\n 3,\n n0,\n _COATRB,\n 0,\n [_cI, _gT, _co, _rU, _cV, _rT],\n [\n [0, { [_jN]: _cI }],\n [0, { [_jN]: _gT }],\n 0,\n [0, { [_jN]: _rU }],\n [0, { [_jN]: _cV }],\n [() => RefreshToken, { [_jN]: _rT }],\n ],\n 2,\n];\nexports.CreateOAuth2TokenResponse$ = [\n 3,\n n0,\n _COATRr,\n 0,\n [_tO],\n [[() => exports.CreateOAuth2TokenResponseBody$, 16]],\n 1,\n];\nexports.CreateOAuth2TokenResponseBody$ = [\n 3,\n n0,\n _COATRBr,\n 0,\n [_aT, _tT, _eI, _rT, _iT],\n [\n [() => exports.AccessToken$, { [_jN]: _aT }],\n [0, { [_jN]: _tT }],\n [1, { [_jN]: _eI }],\n [() => RefreshToken, { [_jN]: _rT }],\n [0, { [_jN]: _iT }],\n ],\n 4,\n];\nexports.CreateOAuth2Token$ = [\n 9,\n n0,\n _COAT,\n { [_h]: [\"POST\", \"/v1/token\", 200] },\n () => exports.CreateOAuth2TokenRequest$,\n () => exports.CreateOAuth2TokenResponse$,\n];\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/869.index.js b/dist/869.index.js
index 424dffc..161ea05 100644
--- a/dist/869.index.js
+++ b/dist/869.index.js
@@ -183,7 +183,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
typeof arg.web_identity_token_file === "string" &&
typeof arg.role_arn === "string" &&
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
-const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => __webpack_require__.e(/* import() */ 956).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
+const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => Promise.all(/* import() */[__webpack_require__.e(136), __webpack_require__.e(956)]).then(__webpack_require__.t.bind(__webpack_require__, 9956, 23)).then(({ fromTokenFile }) => fromTokenFile({
webIdentityTokenFile: profile.web_identity_token_file,
roleArn: profile.role_arn,
roleSessionName: profile.role_session_name,
@@ -284,7 +284,7 @@ class LoginCredentialsFetcher {
return this.profileData.login_session;
}
async refresh(token) {
- const { SigninClient, CreateOAuth2TokenCommand } = await __webpack_require__.e(/* import() */ 762).then(__webpack_require__.t.bind(__webpack_require__, 9762, 19));
+ const { SigninClient, CreateOAuth2TokenCommand } = await __webpack_require__.e(/* import() */ 762).then(__webpack_require__.t.bind(__webpack_require__, 9762, 23));
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
const isH2 = (requestHandler) => {
return requestHandler?.metadata?.handlerProtocol === "h2";
diff --git a/dist/956.index.js b/dist/956.index.js
index d9232ac..9c514a1 100644
--- a/dist/956.index.js
+++ b/dist/956.index.js
@@ -1,5 +1,5 @@
export const id = 956;
-export const ids = [956,136];
+export const ids = [956];
export const modules = {
/***/ 8079:
@@ -11,7 +11,7 @@ exports.fromTokenFile = void 0;
const client_1 = __webpack_require__(5152);
const property_provider_1 = __webpack_require__(8857);
const shared_ini_file_loader_1 = __webpack_require__(4964);
-const fs_1 = __webpack_require__(9896);
+const node_fs_1 = __webpack_require__(3024);
const fromWebToken_1 = __webpack_require__(4453);
const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
const ENV_ROLE_ARN = "AWS_ROLE_ARN";
@@ -29,7 +29,7 @@ const fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
const credentials = await (0, fromWebToken_1.fromWebToken)({
...init,
webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
- (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
+ (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
roleArn,
roleSessionName,
})(awsIdentityProperties);
@@ -122,911 +122,28 @@ var fromWebToken = __webpack_require__(4453);
+Object.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: fromTokenFile['__proto__']
+ });
+
Object.keys(fromTokenFile).forEach(function (k) {
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
- enumerable: true,
- get: function () { return fromTokenFile[k]; }
- });
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];
});
+Object.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: fromWebToken['__proto__']
+ });
+
Object.keys(fromWebToken).forEach(function (k) {
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
- enumerable: true,
- get: function () { return fromWebToken[k]; }
- });
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];
});
-/***/ }),
-
-/***/ 3723:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.STSClient = exports.__Client = void 0;
-const middleware_host_header_1 = __webpack_require__(2590);
-const middleware_logger_1 = __webpack_require__(5242);
-const middleware_recursion_detection_1 = __webpack_require__(1568);
-const middleware_user_agent_1 = __webpack_require__(2959);
-const config_resolver_1 = __webpack_require__(9316);
-const core_1 = __webpack_require__(402);
-const schema_1 = __webpack_require__(6890);
-const middleware_content_length_1 = __webpack_require__(7212);
-const middleware_endpoint_1 = __webpack_require__(99);
-const middleware_retry_1 = __webpack_require__(9618);
-const smithy_client_1 = __webpack_require__(1411);
-Object.defineProperty(exports, "__Client", ({ enumerable: true, get: function () { return smithy_client_1.Client; } }));
-const httpAuthSchemeProvider_1 = __webpack_require__(7851);
-const EndpointParameters_1 = __webpack_require__(6811);
-const runtimeConfig_1 = __webpack_require__(6578);
-const runtimeExtensions_1 = __webpack_require__(7742);
-class STSClient extends smithy_client_1.Client {
- config;
- constructor(...[configuration]) {
- const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
- super(_config_0);
- this.initConfig = _config_0;
- const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
- const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
- const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
- const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
- const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
- const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
- const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
- const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
- this.config = _config_8;
- this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
- this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
- this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
- this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
- this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
- this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
- this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
- this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
- identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
- "aws.auth#sigv4": config.credentials,
- }),
- }));
- this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
- }
- destroy() {
- super.destroy();
- }
-}
-exports.STSClient = STSClient;
-
-
-/***/ }),
-
-/***/ 4532:
-/***/ ((__unused_webpack_module, exports) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
-const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
- let _credentials = runtimeConfig.credentials;
- return {
- setHttpAuthScheme(httpAuthScheme) {
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
- if (index === -1) {
- _httpAuthSchemes.push(httpAuthScheme);
- }
- else {
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
- }
- },
- httpAuthSchemes() {
- return _httpAuthSchemes;
- },
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
- },
- httpAuthSchemeProvider() {
- return _httpAuthSchemeProvider;
- },
- setCredentials(credentials) {
- _credentials = credentials;
- },
- credentials() {
- return _credentials;
- },
- };
-};
-exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
-const resolveHttpAuthRuntimeConfig = (config) => {
- return {
- httpAuthSchemes: config.httpAuthSchemes(),
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
- credentials: config.credentials(),
- };
-};
-exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
-
-
-/***/ }),
-
-/***/ 7851:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
-const core_1 = __webpack_require__(8704);
-const util_middleware_1 = __webpack_require__(6324);
-const STSClient_1 = __webpack_require__(3723);
-const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
- return {
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
- (() => {
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
- })(),
- };
-};
-exports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;
-function createAwsAuthSigv4HttpAuthOption(authParameters) {
- return {
- schemeId: "aws.auth#sigv4",
- signingProperties: {
- name: "sts",
- region: authParameters.region,
- },
- propertiesExtractor: (config, context) => ({
- signingProperties: {
- config,
- context,
- },
- }),
- };
-}
-function createSmithyApiNoAuthHttpAuthOption(authParameters) {
- return {
- schemeId: "smithy.api#noAuth",
- };
-}
-const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
- const options = [];
- switch (authParameters.operation) {
- case "AssumeRoleWithWebIdentity": {
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
- break;
- }
- default: {
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
- }
- }
- return options;
-};
-exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
-const resolveStsAuthConfig = (input) => Object.assign(input, {
- stsClientCtor: STSClient_1.STSClient,
-});
-exports.resolveStsAuthConfig = resolveStsAuthConfig;
-const resolveHttpAuthSchemeConfig = (config) => {
- const config_0 = (0, exports.resolveStsAuthConfig)(config);
- const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
- return Object.assign(config_1, {
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
- });
-};
-exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
-
-
-/***/ }),
-
-/***/ 6811:
-/***/ ((__unused_webpack_module, exports) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.commonParams = exports.resolveClientEndpointParameters = void 0;
-const resolveClientEndpointParameters = (options) => {
- return Object.assign(options, {
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
- useFipsEndpoint: options.useFipsEndpoint ?? false,
- useGlobalEndpoint: options.useGlobalEndpoint ?? false,
- defaultSigningName: "sts",
- });
-};
-exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
-exports.commonParams = {
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
-};
-
-
-/***/ }),
-
-/***/ 9765:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.defaultEndpointResolver = void 0;
-const util_endpoints_1 = __webpack_require__(3068);
-const util_endpoints_2 = __webpack_require__(9674);
-const ruleset_1 = __webpack_require__(1670);
-const cache = new util_endpoints_2.EndpointCache({
- size: 50,
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
-});
-const defaultEndpointResolver = (endpointParams, context = {}) => {
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
- endpointParams: endpointParams,
- logger: context.logger,
- }));
-};
-exports.defaultEndpointResolver = defaultEndpointResolver;
-util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
-
-
-/***/ }),
-
-/***/ 1670:
-/***/ ((__unused_webpack_module, exports) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ruleSet = void 0;
-const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
-const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, "default": false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
-const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
-exports.ruleSet = _data;
-
-
-/***/ }),
-
-/***/ 1136:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-
-var STSClient = __webpack_require__(3723);
-var smithyClient = __webpack_require__(1411);
-var middlewareEndpoint = __webpack_require__(99);
-var EndpointParameters = __webpack_require__(6811);
-var schema = __webpack_require__(6890);
-var client = __webpack_require__(5152);
-var regionConfigResolver = __webpack_require__(6463);
-
-class STSServiceException extends smithyClient.ServiceException {
- constructor(options) {
- super(options);
- Object.setPrototypeOf(this, STSServiceException.prototype);
- }
-}
-
-class ExpiredTokenException extends STSServiceException {
- name = "ExpiredTokenException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "ExpiredTokenException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
- }
-}
-class MalformedPolicyDocumentException extends STSServiceException {
- name = "MalformedPolicyDocumentException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "MalformedPolicyDocumentException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
- }
-}
-class PackedPolicyTooLargeException extends STSServiceException {
- name = "PackedPolicyTooLargeException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "PackedPolicyTooLargeException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
- }
-}
-class RegionDisabledException extends STSServiceException {
- name = "RegionDisabledException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "RegionDisabledException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, RegionDisabledException.prototype);
- }
-}
-class IDPRejectedClaimException extends STSServiceException {
- name = "IDPRejectedClaimException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "IDPRejectedClaimException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
- }
-}
-class InvalidIdentityTokenException extends STSServiceException {
- name = "InvalidIdentityTokenException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "InvalidIdentityTokenException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
- }
-}
-class IDPCommunicationErrorException extends STSServiceException {
- name = "IDPCommunicationErrorException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "IDPCommunicationErrorException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
- }
-}
-
-const _A = "Arn";
-const _AKI = "AccessKeyId";
-const _AR = "AssumeRole";
-const _ARI = "AssumedRoleId";
-const _ARR = "AssumeRoleRequest";
-const _ARRs = "AssumeRoleResponse";
-const _ARU = "AssumedRoleUser";
-const _ARWWI = "AssumeRoleWithWebIdentity";
-const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
-const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
-const _Au = "Audience";
-const _C = "Credentials";
-const _CA = "ContextAssertion";
-const _DS = "DurationSeconds";
-const _E = "Expiration";
-const _EI = "ExternalId";
-const _ETE = "ExpiredTokenException";
-const _IDPCEE = "IDPCommunicationErrorException";
-const _IDPRCE = "IDPRejectedClaimException";
-const _IITE = "InvalidIdentityTokenException";
-const _K = "Key";
-const _MPDE = "MalformedPolicyDocumentException";
-const _P = "Policy";
-const _PA = "PolicyArns";
-const _PAr = "ProviderArn";
-const _PC = "ProvidedContexts";
-const _PCLT = "ProvidedContextsListType";
-const _PCr = "ProvidedContext";
-const _PDT = "PolicyDescriptorType";
-const _PI = "ProviderId";
-const _PPS = "PackedPolicySize";
-const _PPTLE = "PackedPolicyTooLargeException";
-const _Pr = "Provider";
-const _RA = "RoleArn";
-const _RDE = "RegionDisabledException";
-const _RSN = "RoleSessionName";
-const _SAK = "SecretAccessKey";
-const _SFWIT = "SubjectFromWebIdentityToken";
-const _SI = "SourceIdentity";
-const _SN = "SerialNumber";
-const _ST = "SessionToken";
-const _T = "Tags";
-const _TC = "TokenCode";
-const _TTK = "TransitiveTagKeys";
-const _Ta = "Tag";
-const _V = "Value";
-const _WIT = "WebIdentityToken";
-const _a = "arn";
-const _aKST = "accessKeySecretType";
-const _aQE = "awsQueryError";
-const _c = "client";
-const _cTT = "clientTokenType";
-const _e = "error";
-const _hE = "httpError";
-const _m = "message";
-const _pDLT = "policyDescriptorListType";
-const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
-const _tLT = "tagListType";
-const n0 = "com.amazonaws.sts";
-var accessKeySecretType = [0, n0, _aKST, 8, 0];
-var clientTokenType = [0, n0, _cTT, 8, 0];
-var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
-var AssumeRoleRequest$ = [
- 3,
- n0,
- _ARR,
- 0,
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
- 2,
-];
-var AssumeRoleResponse$ = [
- 3,
- n0,
- _ARRs,
- 0,
- [_C, _ARU, _PPS, _SI],
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],
-];
-var AssumeRoleWithWebIdentityRequest$ = [
- 3,
- n0,
- _ARWWIR,
- 0,
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
- 3,
-];
-var AssumeRoleWithWebIdentityResponse$ = [
- 3,
- n0,
- _ARWWIRs,
- 0,
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],
-];
-var Credentials$ = [
- 3,
- n0,
- _C,
- 0,
- [_AKI, _SAK, _ST, _E],
- [0, [() => accessKeySecretType, 0], 0, 4],
- 4,
-];
-var ExpiredTokenException$ = [
- -3,
- n0,
- _ETE,
- { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
-var IDPCommunicationErrorException$ = [
- -3,
- n0,
- _IDPCEE,
- { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
-var IDPRejectedClaimException$ = [
- -3,
- n0,
- _IDPRCE,
- { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
-var InvalidIdentityTokenException$ = [
- -3,
- n0,
- _IITE,
- { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
-var MalformedPolicyDocumentException$ = [
- -3,
- n0,
- _MPDE,
- { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
-var PackedPolicyTooLargeException$ = [
- -3,
- n0,
- _PPTLE,
- { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
-var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
-var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
-var RegionDisabledException$ = [
- -3,
- n0,
- _RDE,
- { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
- [_m],
- [0],
-];
-schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);
-var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
-var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
-schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);
-var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
-var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
-var tagListType = [1, n0, _tLT, 0, () => Tag$];
-var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
-var AssumeRoleWithWebIdentity$ = [
- 9,
- n0,
- _ARWWI,
- 0,
- () => AssumeRoleWithWebIdentityRequest$,
- () => AssumeRoleWithWebIdentityResponse$,
-];
-
-class AssumeRoleCommand extends smithyClient.Command
- .classBuilder()
- .ep(EndpointParameters.commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
- .n("STSClient", "AssumeRoleCommand")
- .sc(AssumeRole$)
- .build() {
-}
-
-class AssumeRoleWithWebIdentityCommand extends smithyClient.Command
- .classBuilder()
- .ep(EndpointParameters.commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
- .n("STSClient", "AssumeRoleWithWebIdentityCommand")
- .sc(AssumeRoleWithWebIdentity$)
- .build() {
-}
-
-const commands = {
- AssumeRoleCommand,
- AssumeRoleWithWebIdentityCommand,
-};
-class STS extends STSClient.STSClient {
-}
-smithyClient.createAggregatedClient(commands, STS);
-
-const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
- if (typeof assumedRoleUser?.Arn === "string") {
- const arnComponents = assumedRoleUser.Arn.split(":");
- if (arnComponents.length > 4 && arnComponents[4] !== "") {
- return arnComponents[4];
- }
- }
- return undefined;
-};
-const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
- const region = typeof _region === "function" ? await _region() : _region;
- const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
- let stsDefaultRegion = "";
- const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());
- credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
- return resolvedRegion;
-};
-const getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
- let stsClient;
- let closureSourceCreds;
- return async (sourceCreds, params) => {
- closureSourceCreds = sourceCreds;
- if (!stsClient) {
- const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
- logger,
- profile,
- });
- const isCompatibleRequestHandler = !isH2(requestHandler);
- stsClient = new STSClient({
- ...stsOptions,
- userAgentAppId,
- profile,
- credentialDefaultProvider: () => async () => closureSourceCreds,
- region: resolvedRegion,
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
- logger: logger,
- });
- }
- const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
- if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
- throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
- }
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
- const credentials = {
- accessKeyId: Credentials.AccessKeyId,
- secretAccessKey: Credentials.SecretAccessKey,
- sessionToken: Credentials.SessionToken,
- expiration: Credentials.Expiration,
- ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
- ...(accountId && { accountId }),
- };
- client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
- return credentials;
- };
-};
-const getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
- let stsClient;
- return async (params) => {
- if (!stsClient) {
- const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;
- const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
- logger,
- profile,
- });
- const isCompatibleRequestHandler = !isH2(requestHandler);
- stsClient = new STSClient({
- ...stsOptions,
- userAgentAppId,
- profile,
- region: resolvedRegion,
- requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
- logger: logger,
- });
- }
- const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
- if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
- throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
- }
- const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
- const credentials = {
- accessKeyId: Credentials.AccessKeyId,
- secretAccessKey: Credentials.SecretAccessKey,
- sessionToken: Credentials.SessionToken,
- expiration: Credentials.Expiration,
- ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),
- ...(accountId && { accountId }),
- };
- if (accountId) {
- client.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
- }
- client.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
- return credentials;
- };
-};
-const isH2 = (requestHandler) => {
- return requestHandler?.metadata?.handlerProtocol === "h2";
-};
-
-const getCustomizableStsClientCtor = (baseCtor, customizations) => {
- if (!customizations)
- return baseCtor;
- else
- return class CustomizableSTSClient extends baseCtor {
- constructor(config) {
- super(config);
- for (const customization of customizations) {
- this.middlewareStack.use(customization);
- }
- }
- };
-};
-const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
-const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));
-const decorateDefaultCredentialProvider = (provider) => (input) => provider({
- roleAssumer: getDefaultRoleAssumer(input),
- roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
- ...input,
-});
-
-Object.defineProperty(exports, "$Command", ({
- enumerable: true,
- get: function () { return smithyClient.Command; }
-}));
-exports.AssumeRole$ = AssumeRole$;
-exports.AssumeRoleCommand = AssumeRoleCommand;
-exports.AssumeRoleRequest$ = AssumeRoleRequest$;
-exports.AssumeRoleResponse$ = AssumeRoleResponse$;
-exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
-exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
-exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
-exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
-exports.AssumedRoleUser$ = AssumedRoleUser$;
-exports.Credentials$ = Credentials$;
-exports.ExpiredTokenException = ExpiredTokenException;
-exports.ExpiredTokenException$ = ExpiredTokenException$;
-exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
-exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
-exports.IDPRejectedClaimException = IDPRejectedClaimException;
-exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
-exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
-exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
-exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
-exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
-exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
-exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
-exports.PolicyDescriptorType$ = PolicyDescriptorType$;
-exports.ProvidedContext$ = ProvidedContext$;
-exports.RegionDisabledException = RegionDisabledException;
-exports.RegionDisabledException$ = RegionDisabledException$;
-exports.STS = STS;
-exports.STSServiceException = STSServiceException;
-exports.STSServiceException$ = STSServiceException$;
-exports.Tag$ = Tag$;
-exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
-exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
-exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
-Object.keys(STSClient).forEach(function (k) {
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
- enumerable: true,
- get: function () { return STSClient[k]; }
- });
-});
-
-
-/***/ }),
-
-/***/ 6578:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getRuntimeConfig = void 0;
-const tslib_1 = __webpack_require__(1860);
-const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
-const core_1 = __webpack_require__(8704);
-const util_user_agent_node_1 = __webpack_require__(1656);
-const config_resolver_1 = __webpack_require__(9316);
-const core_2 = __webpack_require__(402);
-const hash_node_1 = __webpack_require__(2711);
-const middleware_retry_1 = __webpack_require__(9618);
-const node_config_provider_1 = __webpack_require__(5704);
-const node_http_handler_1 = __webpack_require__(1279);
-const smithy_client_1 = __webpack_require__(1411);
-const util_body_length_node_1 = __webpack_require__(3638);
-const util_defaults_mode_node_1 = __webpack_require__(673);
-const util_retry_1 = __webpack_require__(5518);
-const runtimeConfig_shared_1 = __webpack_require__(4443);
-const getRuntimeConfig = (config) => {
- (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
- const loaderConfig = {
- profile: config?.profile,
- logger: clientSharedValues.logger,
- };
- return {
- ...clientSharedValues,
- ...config,
- runtime: "node",
- defaultsMode,
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
- httpAuthSchemes: config?.httpAuthSchemes ?? [
- {
- schemeId: "aws.auth#sigv4",
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
- (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
- signer: new core_1.AwsSdkSigV4Signer(),
- },
- {
- schemeId: "smithy.api#noAuth",
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
- signer: new core_2.NoAuthSigner(),
- },
- ],
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
- region: config?.region ??
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
- retryMode: config?.retryMode ??
- (0, node_config_provider_1.loadConfig)({
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
- }, config),
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
- };
-};
-exports.getRuntimeConfig = getRuntimeConfig;
-
-
-/***/ }),
-
-/***/ 4443:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getRuntimeConfig = void 0;
-const core_1 = __webpack_require__(8704);
-const protocols_1 = __webpack_require__(7288);
-const core_2 = __webpack_require__(402);
-const smithy_client_1 = __webpack_require__(1411);
-const url_parser_1 = __webpack_require__(4494);
-const util_base64_1 = __webpack_require__(8385);
-const util_utf8_1 = __webpack_require__(1577);
-const httpAuthSchemeProvider_1 = __webpack_require__(7851);
-const endpointResolver_1 = __webpack_require__(9765);
-const getRuntimeConfig = (config) => {
- return {
- apiVersion: "2011-06-15",
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
- disableHostPrefix: config?.disableHostPrefix ?? false,
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
- extensions: config?.extensions ?? [],
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
- httpAuthSchemes: config?.httpAuthSchemes ?? [
- {
- schemeId: "aws.auth#sigv4",
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
- signer: new core_1.AwsSdkSigV4Signer(),
- },
- {
- schemeId: "smithy.api#noAuth",
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
- signer: new core_2.NoAuthSigner(),
- },
- ],
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
- protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
- protocolSettings: config?.protocolSettings ?? {
- defaultNamespace: "com.amazonaws.sts",
- xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
- version: "2011-06-15",
- serviceTarget: "AWSSecurityTokenServiceV20110615",
- },
- serviceId: config?.serviceId ?? "STS",
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
- };
-};
-exports.getRuntimeConfig = getRuntimeConfig;
-
-
-/***/ }),
-
-/***/ 7742:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.resolveRuntimeExtensions = void 0;
-const region_config_resolver_1 = __webpack_require__(6463);
-const protocol_http_1 = __webpack_require__(2356);
-const smithy_client_1 = __webpack_require__(1411);
-const httpAuthExtensionConfiguration_1 = __webpack_require__(4532);
-const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
-};
-exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
-
-
-/***/ }),
-
-/***/ 9955:
-/***/ ((module) => {
-
-module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.975.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
-
/***/ })
};
diff --git a/dist/956.index.js.map b/dist/956.index.js.map
index c41b044..dc3d9e2 100644
--- a/dist/956.index.js.map
+++ b/dist/956.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"956.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACleA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js",".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js",".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromTokenFile = void 0;\nconst client_1 = require(\"@aws-sdk/core/client\");\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst shared_ini_file_loader_1 = require(\"@smithy/shared-ini-file-loader\");\nconst fs_1 = require(\"fs\");\nconst fromWebToken_1 = require(\"./fromWebToken\");\nconst ENV_TOKEN_FILE = \"AWS_WEB_IDENTITY_TOKEN_FILE\";\nconst ENV_ROLE_ARN = \"AWS_ROLE_ARN\";\nconst ENV_ROLE_SESSION_NAME = \"AWS_ROLE_SESSION_NAME\";\nconst fromTokenFile = (init = {}) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromTokenFile\");\n const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];\n const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];\n const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];\n if (!webIdentityTokenFile || !roleArn) {\n throw new property_provider_1.CredentialsProviderError(\"Web identity configuration not specified\", {\n logger: init.logger,\n });\n }\n const credentials = await (0, fromWebToken_1.fromWebToken)({\n ...init,\n webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??\n (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: \"ascii\" }),\n roleArn,\n roleSessionName,\n })(awsIdentityProperties);\n if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {\n (0, client_1.setCredentialFeature)(credentials, \"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN\", \"h\");\n }\n return credentials;\n};\nexports.fromTokenFile = fromTokenFile;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromWebToken = void 0;\nconst fromWebToken = (init) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromWebToken\");\n const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;\n let { roleAssumerWithWebIdentity } = init;\n if (!roleAssumerWithWebIdentity) {\n const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(require(\"@aws-sdk/nested-clients/sts\")));\n roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({\n ...init.clientConfig,\n credentialProviderLogger: init.logger,\n parentClientConfig: {\n ...awsIdentityProperties?.callerClientConfig,\n ...init.parentClientConfig,\n },\n }, init.clientPlugins);\n }\n return roleAssumerWithWebIdentity({\n RoleArn: roleArn,\n RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,\n WebIdentityToken: webIdentityToken,\n ProviderId: providerId,\n PolicyArns: policyArns,\n Policy: policy,\n DurationSeconds: durationSeconds,\n });\n};\nexports.fromWebToken = fromWebToken;\n","'use strict';\n\nvar fromTokenFile = require('./fromTokenFile');\nvar fromWebToken = require('./fromWebToken');\n\n\n\nObject.keys(fromTokenFile).forEach(function (k) {\n\tif (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {\n\t\tenumerable: true,\n\t\tget: function () { return fromTokenFile[k]; }\n\t});\n});\nObject.keys(fromWebToken).forEach(function (k) {\n\tif (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {\n\t\tenumerable: true,\n\t\tget: function () { return fromWebToken[k]; }\n\t});\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.STSClient = exports.__Client = void 0;\nconst middleware_host_header_1 = require(\"@aws-sdk/middleware-host-header\");\nconst middleware_logger_1 = require(\"@aws-sdk/middleware-logger\");\nconst middleware_recursion_detection_1 = require(\"@aws-sdk/middleware-recursion-detection\");\nconst middleware_user_agent_1 = require(\"@aws-sdk/middleware-user-agent\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_1 = require(\"@smithy/core\");\nconst schema_1 = require(\"@smithy/core/schema\");\nconst middleware_content_length_1 = require(\"@smithy/middleware-content-length\");\nconst middleware_endpoint_1 = require(\"@smithy/middleware-endpoint\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__Client\", { enumerable: true, get: function () { return smithy_client_1.Client; } });\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst EndpointParameters_1 = require(\"./endpoint/EndpointParameters\");\nconst runtimeConfig_1 = require(\"./runtimeConfig\");\nconst runtimeExtensions_1 = require(\"./runtimeExtensions\");\nclass STSClient extends smithy_client_1.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);\n const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);\n const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);\n const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);\n const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);\n const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);\n const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);\n const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));\n this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));\n this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));\n this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));\n this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));\n this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));\n this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));\n this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\nexports.STSClient = STSClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nexports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\nexports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst STSClient_1 = require(\"../STSClient\");\nconst defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSTSHttpAuthSchemeParametersProvider = defaultSTSHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sts\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSTSHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"AssumeRoleWithWebIdentity\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;\nconst resolveStsAuthConfig = (input) => Object.assign(input, {\n stsClientCtor: STSClient_1.STSClient,\n});\nexports.resolveStsAuthConfig = resolveStsAuthConfig;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, exports.resolveStsAuthConfig)(config);\n const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);\n return Object.assign(config_1, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.commonParams = exports.resolveClientEndpointParameters = void 0;\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n useGlobalEndpoint: options.useGlobalEndpoint ?? false,\n defaultSigningName: \"sts\",\n });\n};\nexports.resolveClientEndpointParameters = resolveClientEndpointParameters;\nexports.commonParams = {\n UseGlobalEndpoint: { type: \"builtInParams\", name: \"useGlobalEndpoint\" },\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\", \"UseGlobalEndpoint\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst F = \"required\", G = \"type\", H = \"fn\", I = \"argv\", J = \"ref\";\nconst a = false, b = true, c = \"booleanEquals\", d = \"stringEquals\", e = \"sigv4\", f = \"sts\", g = \"us-east-1\", h = \"endpoint\", i = \"https://sts.{Region}.{PartitionResult#dnsSuffix}\", j = \"tree\", k = \"error\", l = \"getAttr\", m = { [F]: false, [G]: \"string\" }, n = { [F]: true, \"default\": false, [G]: \"boolean\" }, o = { [J]: \"Endpoint\" }, p = { [H]: \"isSet\", [I]: [{ [J]: \"Region\" }] }, q = { [J]: \"Region\" }, r = { [H]: \"aws.partition\", [I]: [q], \"assign\": \"PartitionResult\" }, s = { [J]: \"UseFIPS\" }, t = { [J]: \"UseDualStack\" }, u = { \"url\": \"https://sts.amazonaws.com\", \"properties\": { \"authSchemes\": [{ \"name\": e, \"signingName\": f, \"signingRegion\": g }] }, \"headers\": {} }, v = {}, w = { \"conditions\": [{ [H]: d, [I]: [q, \"aws-global\"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: \"PartitionResult\" }, \"supportsFIPS\"] }, A = { [J]: \"PartitionResult\" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, \"supportsDualStack\"] }] }, C = [{ [H]: \"isSet\", [I]: [o] }], D = [x], E = [y];\nconst _data = { version: \"1.0\", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: \"UseGlobalEndpoint\" }, b] }, { [H]: \"not\", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, \"ap-northeast-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-south-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"ap-southeast-2\"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, \"ca-central-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-central-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-north-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-2\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"eu-west-3\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"sa-east-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-east-2\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-west-1\"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, \"us-west-2\"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: \"{Region}\" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", [G]: k }, { conditions: E, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: \"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, \"name\"] }, \"aws-us-gov\"] }], endpoint: { url: \"https://sts.{Region}.amazonaws.com\", properties: v, headers: v }, [G]: h }, { endpoint: { url: \"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"FIPS is enabled but this partition does not support FIPS\", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: \"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: v, headers: v }, [G]: h }], [G]: j }, { error: \"DualStack is enabled but this partition does not support DualStack\", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: \"Invalid Configuration: Missing Region\", [G]: k }] };\nexports.ruleSet = _data;\n","'use strict';\n\nvar STSClient = require('./STSClient');\nvar smithyClient = require('@smithy/smithy-client');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar EndpointParameters = require('./endpoint/EndpointParameters');\nvar schema = require('@smithy/core/schema');\nvar client = require('@aws-sdk/core/client');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\n\nclass STSServiceException extends smithyClient.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, STSServiceException.prototype);\n }\n}\n\nclass ExpiredTokenException extends STSServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n }\n}\nclass MalformedPolicyDocumentException extends STSServiceException {\n name = \"MalformedPolicyDocumentException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"MalformedPolicyDocumentException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);\n }\n}\nclass PackedPolicyTooLargeException extends STSServiceException {\n name = \"PackedPolicyTooLargeException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"PackedPolicyTooLargeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);\n }\n}\nclass RegionDisabledException extends STSServiceException {\n name = \"RegionDisabledException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"RegionDisabledException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, RegionDisabledException.prototype);\n }\n}\nclass IDPRejectedClaimException extends STSServiceException {\n name = \"IDPRejectedClaimException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPRejectedClaimException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);\n }\n}\nclass InvalidIdentityTokenException extends STSServiceException {\n name = \"InvalidIdentityTokenException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidIdentityTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);\n }\n}\nclass IDPCommunicationErrorException extends STSServiceException {\n name = \"IDPCommunicationErrorException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"IDPCommunicationErrorException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);\n }\n}\n\nconst _A = \"Arn\";\nconst _AKI = \"AccessKeyId\";\nconst _AR = \"AssumeRole\";\nconst _ARI = \"AssumedRoleId\";\nconst _ARR = \"AssumeRoleRequest\";\nconst _ARRs = \"AssumeRoleResponse\";\nconst _ARU = \"AssumedRoleUser\";\nconst _ARWWI = \"AssumeRoleWithWebIdentity\";\nconst _ARWWIR = \"AssumeRoleWithWebIdentityRequest\";\nconst _ARWWIRs = \"AssumeRoleWithWebIdentityResponse\";\nconst _Au = \"Audience\";\nconst _C = \"Credentials\";\nconst _CA = \"ContextAssertion\";\nconst _DS = \"DurationSeconds\";\nconst _E = \"Expiration\";\nconst _EI = \"ExternalId\";\nconst _ETE = \"ExpiredTokenException\";\nconst _IDPCEE = \"IDPCommunicationErrorException\";\nconst _IDPRCE = \"IDPRejectedClaimException\";\nconst _IITE = \"InvalidIdentityTokenException\";\nconst _K = \"Key\";\nconst _MPDE = \"MalformedPolicyDocumentException\";\nconst _P = \"Policy\";\nconst _PA = \"PolicyArns\";\nconst _PAr = \"ProviderArn\";\nconst _PC = \"ProvidedContexts\";\nconst _PCLT = \"ProvidedContextsListType\";\nconst _PCr = \"ProvidedContext\";\nconst _PDT = \"PolicyDescriptorType\";\nconst _PI = \"ProviderId\";\nconst _PPS = \"PackedPolicySize\";\nconst _PPTLE = \"PackedPolicyTooLargeException\";\nconst _Pr = \"Provider\";\nconst _RA = \"RoleArn\";\nconst _RDE = \"RegionDisabledException\";\nconst _RSN = \"RoleSessionName\";\nconst _SAK = \"SecretAccessKey\";\nconst _SFWIT = \"SubjectFromWebIdentityToken\";\nconst _SI = \"SourceIdentity\";\nconst _SN = \"SerialNumber\";\nconst _ST = \"SessionToken\";\nconst _T = \"Tags\";\nconst _TC = \"TokenCode\";\nconst _TTK = \"TransitiveTagKeys\";\nconst _Ta = \"Tag\";\nconst _V = \"Value\";\nconst _WIT = \"WebIdentityToken\";\nconst _a = \"arn\";\nconst _aKST = \"accessKeySecretType\";\nconst _aQE = \"awsQueryError\";\nconst _c = \"client\";\nconst _cTT = \"clientTokenType\";\nconst _e = \"error\";\nconst _hE = \"httpError\";\nconst _m = \"message\";\nconst _pDLT = \"policyDescriptorListType\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sts\";\nconst _tLT = \"tagListType\";\nconst n0 = \"com.amazonaws.sts\";\nvar accessKeySecretType = [0, n0, _aKST, 8, 0];\nvar clientTokenType = [0, n0, _cTT, 8, 0];\nvar AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];\nvar AssumeRoleRequest$ = [\n 3,\n n0,\n _ARR,\n 0,\n [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],\n [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],\n 2,\n];\nvar AssumeRoleResponse$ = [\n 3,\n n0,\n _ARRs,\n 0,\n [_C, _ARU, _PPS, _SI],\n [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],\n];\nvar AssumeRoleWithWebIdentityRequest$ = [\n 3,\n n0,\n _ARWWIR,\n 0,\n [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],\n [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],\n 3,\n];\nvar AssumeRoleWithWebIdentityResponse$ = [\n 3,\n n0,\n _ARWWIRs,\n 0,\n [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],\n [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],\n];\nvar Credentials$ = [\n 3,\n n0,\n _C,\n 0,\n [_AKI, _SAK, _ST, _E],\n [0, [() => accessKeySecretType, 0], 0, 4],\n 4,\n];\nvar ExpiredTokenException$ = [\n -3,\n n0,\n _ETE,\n { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);\nvar IDPCommunicationErrorException$ = [\n -3,\n n0,\n _IDPCEE,\n { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);\nvar IDPRejectedClaimException$ = [\n -3,\n n0,\n _IDPRCE,\n { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);\nvar InvalidIdentityTokenException$ = [\n -3,\n n0,\n _IITE,\n { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);\nvar MalformedPolicyDocumentException$ = [\n -3,\n n0,\n _MPDE,\n { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);\nvar PackedPolicyTooLargeException$ = [\n -3,\n n0,\n _PPTLE,\n { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);\nvar PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];\nvar ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];\nvar RegionDisabledException$ = [\n -3,\n n0,\n _RDE,\n { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },\n [_m],\n [0],\n];\nschema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);\nvar Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];\nvar STSServiceException$ = [-3, _s, \"STSServiceException\", 0, [], []];\nschema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);\nvar policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];\nvar ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];\nvar tagListType = [1, n0, _tLT, 0, () => Tag$];\nvar AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];\nvar AssumeRoleWithWebIdentity$ = [\n 9,\n n0,\n _ARWWI,\n 0,\n () => AssumeRoleWithWebIdentityRequest$,\n () => AssumeRoleWithWebIdentityResponse$,\n];\n\nclass AssumeRoleCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRole\", {})\n .n(\"STSClient\", \"AssumeRoleCommand\")\n .sc(AssumeRole$)\n .build() {\n}\n\nclass AssumeRoleWithWebIdentityCommand extends smithyClient.Command\n .classBuilder()\n .ep(EndpointParameters.commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSecurityTokenServiceV20110615\", \"AssumeRoleWithWebIdentity\", {})\n .n(\"STSClient\", \"AssumeRoleWithWebIdentityCommand\")\n .sc(AssumeRoleWithWebIdentity$)\n .build() {\n}\n\nconst commands = {\n AssumeRoleCommand,\n AssumeRoleWithWebIdentityCommand,\n};\nclass STS extends STSClient.STSClient {\n}\nsmithyClient.createAggregatedClient(commands, STS);\n\nconst getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {\n if (typeof assumedRoleUser?.Arn === \"string\") {\n const arnComponents = assumedRoleUser.Arn.split(\":\");\n if (arnComponents.length > 4 && arnComponents[4] !== \"\") {\n return arnComponents[4];\n }\n }\n return undefined;\n};\nconst resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {\n const region = typeof _region === \"function\" ? await _region() : _region;\n const parentRegion = typeof _parentRegion === \"function\" ? await _parentRegion() : _parentRegion;\n let stsDefaultRegion = \"\";\n const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await regionConfigResolver.stsRegionDefaultResolver(loaderConfig)());\n credentialProviderLogger?.debug?.(\"@aws-sdk/client-sts::resolveRegion\", \"accepting first of:\", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);\n return resolvedRegion;\n};\nconst getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {\n let stsClient;\n let closureSourceCreds;\n return async (sourceCreds, params) => {\n closureSourceCreds = sourceCreds;\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n credentialDefaultProvider: () => async () => closureSourceCreds,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE\", \"i\");\n return credentials;\n };\n};\nconst getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {\n let stsClient;\n return async (params) => {\n if (!stsClient) {\n const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions;\n const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {\n logger,\n profile,\n });\n const isCompatibleRequestHandler = !isH2(requestHandler);\n stsClient = new STSClient({\n ...stsOptions,\n userAgentAppId,\n profile,\n region: resolvedRegion,\n requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,\n logger: logger,\n });\n }\n const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));\n if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {\n throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);\n }\n const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);\n const credentials = {\n accessKeyId: Credentials.AccessKeyId,\n secretAccessKey: Credentials.SecretAccessKey,\n sessionToken: Credentials.SessionToken,\n expiration: Credentials.Expiration,\n ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }),\n ...(accountId && { accountId }),\n };\n if (accountId) {\n client.setCredentialFeature(credentials, \"RESOLVED_ACCOUNT_ID\", \"T\");\n }\n client.setCredentialFeature(credentials, \"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID\", \"k\");\n return credentials;\n };\n};\nconst isH2 = (requestHandler) => {\n return requestHandler?.metadata?.handlerProtocol === \"h2\";\n};\n\nconst getCustomizableStsClientCtor = (baseCtor, customizations) => {\n if (!customizations)\n return baseCtor;\n else\n return class CustomizableSTSClient extends baseCtor {\n constructor(config) {\n super(config);\n for (const customization of customizations) {\n this.middlewareStack.use(customization);\n }\n }\n };\n};\nconst getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient.STSClient, stsPlugins));\nconst decorateDefaultCredentialProvider = (provider) => (input) => provider({\n roleAssumer: getDefaultRoleAssumer(input),\n roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),\n ...input,\n});\n\nObject.defineProperty(exports, \"$Command\", {\n enumerable: true,\n get: function () { return smithyClient.Command; }\n});\nexports.AssumeRole$ = AssumeRole$;\nexports.AssumeRoleCommand = AssumeRoleCommand;\nexports.AssumeRoleRequest$ = AssumeRoleRequest$;\nexports.AssumeRoleResponse$ = AssumeRoleResponse$;\nexports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;\nexports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;\nexports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;\nexports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;\nexports.AssumedRoleUser$ = AssumedRoleUser$;\nexports.Credentials$ = Credentials$;\nexports.ExpiredTokenException = ExpiredTokenException;\nexports.ExpiredTokenException$ = ExpiredTokenException$;\nexports.IDPCommunicationErrorException = IDPCommunicationErrorException;\nexports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;\nexports.IDPRejectedClaimException = IDPRejectedClaimException;\nexports.IDPRejectedClaimException$ = IDPRejectedClaimException$;\nexports.InvalidIdentityTokenException = InvalidIdentityTokenException;\nexports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;\nexports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;\nexports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;\nexports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;\nexports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;\nexports.PolicyDescriptorType$ = PolicyDescriptorType$;\nexports.ProvidedContext$ = ProvidedContext$;\nexports.RegionDisabledException = RegionDisabledException;\nexports.RegionDisabledException$ = RegionDisabledException$;\nexports.STS = STS;\nexports.STSServiceException = STSServiceException;\nexports.STSServiceException$ = STSServiceException$;\nexports.Tag$ = Tag$;\nexports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;\nexports.getDefaultRoleAssumer = getDefaultRoleAssumer;\nexports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;\nObject.keys(STSClient).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {\n enumerable: true,\n get: function () { return STSClient[k]; }\n });\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst core_2 = require(\"@smithy/core\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\") ||\n (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2011-06-15\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sts\",\n xmlNamespace: \"https://sts.amazonaws.com/doc/2011-06-15/\",\n version: \"2011-06-15\",\n serviceTarget: \"AWSSecurityTokenServiceV20110615\",\n },\n serviceId: config?.serviceId ?? \"STS\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveRuntimeExtensions = void 0;\nconst region_config_resolver_1 = require(\"@aws-sdk/region-config-resolver\");\nconst protocol_http_1 = require(\"@smithy/protocol-http\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst httpAuthExtensionConfiguration_1 = require(\"./auth/httpAuthExtensionConfiguration\");\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));\n};\nexports.resolveRuntimeExtensions = resolveRuntimeExtensions;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"956.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js",".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js",".././node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromTokenFile = void 0;\nconst client_1 = require(\"@aws-sdk/core/client\");\nconst property_provider_1 = require(\"@smithy/property-provider\");\nconst shared_ini_file_loader_1 = require(\"@smithy/shared-ini-file-loader\");\nconst node_fs_1 = require(\"node:fs\");\nconst fromWebToken_1 = require(\"./fromWebToken\");\nconst ENV_TOKEN_FILE = \"AWS_WEB_IDENTITY_TOKEN_FILE\";\nconst ENV_ROLE_ARN = \"AWS_ROLE_ARN\";\nconst ENV_ROLE_SESSION_NAME = \"AWS_ROLE_SESSION_NAME\";\nconst fromTokenFile = (init = {}) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromTokenFile\");\n const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];\n const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];\n const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];\n if (!webIdentityTokenFile || !roleArn) {\n throw new property_provider_1.CredentialsProviderError(\"Web identity configuration not specified\", {\n logger: init.logger,\n });\n }\n const credentials = await (0, fromWebToken_1.fromWebToken)({\n ...init,\n webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??\n (0, node_fs_1.readFileSync)(webIdentityTokenFile, { encoding: \"ascii\" }),\n roleArn,\n roleSessionName,\n })(awsIdentityProperties);\n if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {\n (0, client_1.setCredentialFeature)(credentials, \"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN\", \"h\");\n }\n return credentials;\n};\nexports.fromTokenFile = fromTokenFile;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromWebToken = void 0;\nconst fromWebToken = (init) => async (awsIdentityProperties) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-web-identity - fromWebToken\");\n const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;\n let { roleAssumerWithWebIdentity } = init;\n if (!roleAssumerWithWebIdentity) {\n const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(require(\"@aws-sdk/nested-clients/sts\")));\n roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({\n ...init.clientConfig,\n credentialProviderLogger: init.logger,\n parentClientConfig: {\n ...awsIdentityProperties?.callerClientConfig,\n ...init.parentClientConfig,\n },\n }, init.clientPlugins);\n }\n return roleAssumerWithWebIdentity({\n RoleArn: roleArn,\n RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,\n WebIdentityToken: webIdentityToken,\n ProviderId: providerId,\n PolicyArns: policyArns,\n Policy: policy,\n DurationSeconds: durationSeconds,\n });\n};\nexports.fromWebToken = fromWebToken;\n","'use strict';\n\nvar fromTokenFile = require('./fromTokenFile');\nvar fromWebToken = require('./fromWebToken');\n\n\n\nObject.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&\n\t!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n\tObject.defineProperty(exports, '__proto__', {\n\t\tenumerable: true,\n\t\tvalue: fromTokenFile['__proto__']\n\t});\n\nObject.keys(fromTokenFile).forEach(function (k) {\n\tif (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];\n});\nObject.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&\n\t!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n\tObject.defineProperty(exports, '__proto__', {\n\t\tenumerable: true,\n\t\tvalue: fromWebToken['__proto__']\n\t});\n\nObject.keys(fromWebToken).forEach(function (k) {\n\tif (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];\n});\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/998.index.js b/dist/998.index.js
index 68eba90..1c10846 100644
--- a/dist/998.index.js
+++ b/dist/998.index.js
@@ -2,666 +2,6 @@ export const id = 998;
export const ids = [998];
export const modules = {
-/***/ 2041:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
-const core_1 = __webpack_require__(8704);
-const util_middleware_1 = __webpack_require__(6324);
-const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
- return {
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
- })(),
- };
-};
-exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
-function createAwsAuthSigv4HttpAuthOption(authParameters) {
- return {
- schemeId: "aws.auth#sigv4",
- signingProperties: {
- name: "awsssoportal",
- region: authParameters.region,
- },
- propertiesExtractor: (config, context) => ({
- signingProperties: {
- config,
- context,
- },
- }),
- };
-}
-function createSmithyApiNoAuthHttpAuthOption(authParameters) {
- return {
- schemeId: "smithy.api#noAuth",
- };
-}
-const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
- const options = [];
- switch (authParameters.operation) {
- case "GetRoleCredentials":
- {
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
- break;
- }
- ;
- case "ListAccountRoles":
- {
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
- break;
- }
- ;
- case "ListAccounts":
- {
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
- break;
- }
- ;
- case "Logout":
- {
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
- break;
- }
- ;
- default: {
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
- }
- }
- return options;
-};
-exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
-const resolveHttpAuthSchemeConfig = (config) => {
- const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
- return Object.assign(config_0, {
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
- });
-};
-exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
-
-
-/***/ }),
-
-/***/ 3903:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.defaultEndpointResolver = void 0;
-const util_endpoints_1 = __webpack_require__(3068);
-const util_endpoints_2 = __webpack_require__(9674);
-const ruleset_1 = __webpack_require__(1308);
-const cache = new util_endpoints_2.EndpointCache({
- size: 50,
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
-});
-const defaultEndpointResolver = (endpointParams, context = {}) => {
- return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
- endpointParams: endpointParams,
- logger: context.logger,
- }));
-};
-exports.defaultEndpointResolver = defaultEndpointResolver;
-util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
-
-
-/***/ }),
-
-/***/ 1308:
-/***/ ((__unused_webpack_module, exports) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.ruleSet = void 0;
-const u = "required", v = "fn", w = "argv", x = "ref";
-const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
-const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
-exports.ruleSet = _data;
-
-
-/***/ }),
-
-/***/ 2054:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-
-var middlewareHostHeader = __webpack_require__(2590);
-var middlewareLogger = __webpack_require__(5242);
-var middlewareRecursionDetection = __webpack_require__(1568);
-var middlewareUserAgent = __webpack_require__(2959);
-var configResolver = __webpack_require__(9316);
-var core = __webpack_require__(402);
-var schema = __webpack_require__(6890);
-var middlewareContentLength = __webpack_require__(7212);
-var middlewareEndpoint = __webpack_require__(99);
-var middlewareRetry = __webpack_require__(9618);
-var smithyClient = __webpack_require__(1411);
-var httpAuthSchemeProvider = __webpack_require__(2041);
-var runtimeConfig = __webpack_require__(2696);
-var regionConfigResolver = __webpack_require__(6463);
-var protocolHttp = __webpack_require__(2356);
-
-const resolveClientEndpointParameters = (options) => {
- return Object.assign(options, {
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
- useFipsEndpoint: options.useFipsEndpoint ?? false,
- defaultSigningName: "awsssoportal",
- });
-};
-const commonParams = {
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
- Endpoint: { type: "builtInParams", name: "endpoint" },
- Region: { type: "builtInParams", name: "region" },
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
-};
-
-const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
- let _credentials = runtimeConfig.credentials;
- return {
- setHttpAuthScheme(httpAuthScheme) {
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
- if (index === -1) {
- _httpAuthSchemes.push(httpAuthScheme);
- }
- else {
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
- }
- },
- httpAuthSchemes() {
- return _httpAuthSchemes;
- },
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
- },
- httpAuthSchemeProvider() {
- return _httpAuthSchemeProvider;
- },
- setCredentials(credentials) {
- _credentials = credentials;
- },
- credentials() {
- return _credentials;
- },
- };
-};
-const resolveHttpAuthRuntimeConfig = (config) => {
- return {
- httpAuthSchemes: config.httpAuthSchemes(),
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
- credentials: config.credentials(),
- };
-};
-
-const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
-};
-
-class SSOClient extends smithyClient.Client {
- config;
- constructor(...[configuration]) {
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
- super(_config_0);
- this.initConfig = _config_0;
- const _config_1 = resolveClientEndpointParameters(_config_0);
- const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
- const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
- this.config = _config_8;
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
- this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
- this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
- this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
- this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider,
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
- "aws.auth#sigv4": config.credentials,
- }),
- }));
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
- }
- destroy() {
- super.destroy();
- }
-}
-
-class SSOServiceException extends smithyClient.ServiceException {
- constructor(options) {
- super(options);
- Object.setPrototypeOf(this, SSOServiceException.prototype);
- }
-}
-
-class InvalidRequestException extends SSOServiceException {
- name = "InvalidRequestException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "InvalidRequestException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
- }
-}
-class ResourceNotFoundException extends SSOServiceException {
- name = "ResourceNotFoundException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "ResourceNotFoundException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
- }
-}
-class TooManyRequestsException extends SSOServiceException {
- name = "TooManyRequestsException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "TooManyRequestsException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
- }
-}
-class UnauthorizedException extends SSOServiceException {
- name = "UnauthorizedException";
- $fault = "client";
- constructor(opts) {
- super({
- name: "UnauthorizedException",
- $fault: "client",
- ...opts,
- });
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
- }
-}
-
-const _AI = "AccountInfo";
-const _ALT = "AccountListType";
-const _ATT = "AccessTokenType";
-const _GRC = "GetRoleCredentials";
-const _GRCR = "GetRoleCredentialsRequest";
-const _GRCRe = "GetRoleCredentialsResponse";
-const _IRE = "InvalidRequestException";
-const _L = "Logout";
-const _LA = "ListAccounts";
-const _LAR = "ListAccountsRequest";
-const _LARR = "ListAccountRolesRequest";
-const _LARRi = "ListAccountRolesResponse";
-const _LARi = "ListAccountsResponse";
-const _LARis = "ListAccountRoles";
-const _LR = "LogoutRequest";
-const _RC = "RoleCredentials";
-const _RI = "RoleInfo";
-const _RLT = "RoleListType";
-const _RNFE = "ResourceNotFoundException";
-const _SAKT = "SecretAccessKeyType";
-const _STT = "SessionTokenType";
-const _TMRE = "TooManyRequestsException";
-const _UE = "UnauthorizedException";
-const _aI = "accountId";
-const _aKI = "accessKeyId";
-const _aL = "accountList";
-const _aN = "accountName";
-const _aT = "accessToken";
-const _ai = "account_id";
-const _c = "client";
-const _e = "error";
-const _eA = "emailAddress";
-const _ex = "expiration";
-const _h = "http";
-const _hE = "httpError";
-const _hH = "httpHeader";
-const _hQ = "httpQuery";
-const _m = "message";
-const _mR = "maxResults";
-const _mr = "max_result";
-const _nT = "nextToken";
-const _nt = "next_token";
-const _rC = "roleCredentials";
-const _rL = "roleList";
-const _rN = "roleName";
-const _rn = "role_name";
-const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
-const _sAK = "secretAccessKey";
-const _sT = "sessionToken";
-const _xasbt = "x-amz-sso_bearer_token";
-const n0 = "com.amazonaws.sso";
-var AccessTokenType = [0, n0, _ATT, 8, 0];
-var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
-var SessionTokenType = [0, n0, _STT, 8, 0];
-var AccountInfo$ = [3, n0, _AI,
- 0,
- [_aI, _aN, _eA],
- [0, 0, 0]
-];
-var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
- 0,
- [_rN, _aI, _aT],
- [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
-];
-var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
- 0,
- [_rC],
- [[() => RoleCredentials$, 0]]
-];
-var InvalidRequestException$ = [-3, n0, _IRE,
- { [_e]: _c, [_hE]: 400 },
- [_m],
- [0]
-];
-schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
-var ListAccountRolesRequest$ = [3, n0, _LARR,
- 0,
- [_aT, _aI, _nT, _mR],
- [[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
-];
-var ListAccountRolesResponse$ = [3, n0, _LARRi,
- 0,
- [_nT, _rL],
- [0, () => RoleListType]
-];
-var ListAccountsRequest$ = [3, n0, _LAR,
- 0,
- [_aT, _nT, _mR],
- [[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
-];
-var ListAccountsResponse$ = [3, n0, _LARi,
- 0,
- [_nT, _aL],
- [0, () => AccountListType]
-];
-var LogoutRequest$ = [3, n0, _LR,
- 0,
- [_aT],
- [[() => AccessTokenType, { [_hH]: _xasbt }]], 1
-];
-var ResourceNotFoundException$ = [-3, n0, _RNFE,
- { [_e]: _c, [_hE]: 404 },
- [_m],
- [0]
-];
-schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
-var RoleCredentials$ = [3, n0, _RC,
- 0,
- [_aKI, _sAK, _sT, _ex],
- [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
-];
-var RoleInfo$ = [3, n0, _RI,
- 0,
- [_rN, _aI],
- [0, 0]
-];
-var TooManyRequestsException$ = [-3, n0, _TMRE,
- { [_e]: _c, [_hE]: 429 },
- [_m],
- [0]
-];
-schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
-var UnauthorizedException$ = [-3, n0, _UE,
- { [_e]: _c, [_hE]: 401 },
- [_m],
- [0]
-];
-schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
-var __Unit = "unit";
-var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
-schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
-var AccountListType = [1, n0, _ALT,
- 0, () => AccountInfo$
-];
-var RoleListType = [1, n0, _RLT,
- 0, () => RoleInfo$
-];
-var GetRoleCredentials$ = [9, n0, _GRC,
- { [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
-];
-var ListAccountRoles$ = [9, n0, _LARis,
- { [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
-];
-var ListAccounts$ = [9, n0, _LA,
- { [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
-];
-var Logout$ = [9, n0, _L,
- { [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
-];
-
-class GetRoleCredentialsCommand extends smithyClient.Command
- .classBuilder()
- .ep(commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("SWBPortalService", "GetRoleCredentials", {})
- .n("SSOClient", "GetRoleCredentialsCommand")
- .sc(GetRoleCredentials$)
- .build() {
-}
-
-class ListAccountRolesCommand extends smithyClient.Command
- .classBuilder()
- .ep(commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("SWBPortalService", "ListAccountRoles", {})
- .n("SSOClient", "ListAccountRolesCommand")
- .sc(ListAccountRoles$)
- .build() {
-}
-
-class ListAccountsCommand extends smithyClient.Command
- .classBuilder()
- .ep(commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("SWBPortalService", "ListAccounts", {})
- .n("SSOClient", "ListAccountsCommand")
- .sc(ListAccounts$)
- .build() {
-}
-
-class LogoutCommand extends smithyClient.Command
- .classBuilder()
- .ep(commonParams)
- .m(function (Command, cs, config, o) {
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
-})
- .s("SWBPortalService", "Logout", {})
- .n("SSOClient", "LogoutCommand")
- .sc(Logout$)
- .build() {
-}
-
-const commands = {
- GetRoleCredentialsCommand,
- ListAccountRolesCommand,
- ListAccountsCommand,
- LogoutCommand,
-};
-class SSO extends SSOClient {
-}
-smithyClient.createAggregatedClient(commands, SSO);
-
-const paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
-
-const paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
-
-Object.defineProperty(exports, "$Command", ({
- enumerable: true,
- get: function () { return smithyClient.Command; }
-}));
-Object.defineProperty(exports, "__Client", ({
- enumerable: true,
- get: function () { return smithyClient.Client; }
-}));
-exports.AccountInfo$ = AccountInfo$;
-exports.GetRoleCredentials$ = GetRoleCredentials$;
-exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
-exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
-exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
-exports.InvalidRequestException = InvalidRequestException;
-exports.InvalidRequestException$ = InvalidRequestException$;
-exports.ListAccountRoles$ = ListAccountRoles$;
-exports.ListAccountRolesCommand = ListAccountRolesCommand;
-exports.ListAccountRolesRequest$ = ListAccountRolesRequest$;
-exports.ListAccountRolesResponse$ = ListAccountRolesResponse$;
-exports.ListAccounts$ = ListAccounts$;
-exports.ListAccountsCommand = ListAccountsCommand;
-exports.ListAccountsRequest$ = ListAccountsRequest$;
-exports.ListAccountsResponse$ = ListAccountsResponse$;
-exports.Logout$ = Logout$;
-exports.LogoutCommand = LogoutCommand;
-exports.LogoutRequest$ = LogoutRequest$;
-exports.ResourceNotFoundException = ResourceNotFoundException;
-exports.ResourceNotFoundException$ = ResourceNotFoundException$;
-exports.RoleCredentials$ = RoleCredentials$;
-exports.RoleInfo$ = RoleInfo$;
-exports.SSO = SSO;
-exports.SSOClient = SSOClient;
-exports.SSOServiceException = SSOServiceException;
-exports.SSOServiceException$ = SSOServiceException$;
-exports.TooManyRequestsException = TooManyRequestsException;
-exports.TooManyRequestsException$ = TooManyRequestsException$;
-exports.UnauthorizedException = UnauthorizedException;
-exports.UnauthorizedException$ = UnauthorizedException$;
-exports.paginateListAccountRoles = paginateListAccountRoles;
-exports.paginateListAccounts = paginateListAccounts;
-
-
-/***/ }),
-
-/***/ 2696:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getRuntimeConfig = void 0;
-const tslib_1 = __webpack_require__(1860);
-const package_json_1 = tslib_1.__importDefault(__webpack_require__(2807));
-const core_1 = __webpack_require__(8704);
-const util_user_agent_node_1 = __webpack_require__(1656);
-const config_resolver_1 = __webpack_require__(9316);
-const hash_node_1 = __webpack_require__(2711);
-const middleware_retry_1 = __webpack_require__(9618);
-const node_config_provider_1 = __webpack_require__(5704);
-const node_http_handler_1 = __webpack_require__(1279);
-const smithy_client_1 = __webpack_require__(1411);
-const util_body_length_node_1 = __webpack_require__(3638);
-const util_defaults_mode_node_1 = __webpack_require__(673);
-const util_retry_1 = __webpack_require__(5518);
-const runtimeConfig_shared_1 = __webpack_require__(8073);
-const getRuntimeConfig = (config) => {
- (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
- const loaderConfig = {
- profile: config?.profile,
- logger: clientSharedValues.logger,
- };
- return {
- ...clientSharedValues,
- ...config,
- runtime: "node",
- defaultsMode,
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
- retryMode: config?.retryMode ??
- (0, node_config_provider_1.loadConfig)({
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
- }, config),
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
- };
-};
-exports.getRuntimeConfig = getRuntimeConfig;
-
-
-/***/ }),
-
-/***/ 8073:
-/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
-
-Object.defineProperty(exports, "__esModule", ({ value: true }));
-exports.getRuntimeConfig = void 0;
-const core_1 = __webpack_require__(8704);
-const protocols_1 = __webpack_require__(7288);
-const core_2 = __webpack_require__(402);
-const smithy_client_1 = __webpack_require__(1411);
-const url_parser_1 = __webpack_require__(4494);
-const util_base64_1 = __webpack_require__(8385);
-const util_utf8_1 = __webpack_require__(1577);
-const httpAuthSchemeProvider_1 = __webpack_require__(2041);
-const endpointResolver_1 = __webpack_require__(3903);
-const getRuntimeConfig = (config) => {
- return {
- apiVersion: "2019-06-10",
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
- disableHostPrefix: config?.disableHostPrefix ?? false,
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
- extensions: config?.extensions ?? [],
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
- httpAuthSchemes: config?.httpAuthSchemes ?? [
- {
- schemeId: "aws.auth#sigv4",
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
- signer: new core_1.AwsSdkSigV4Signer(),
- },
- {
- schemeId: "smithy.api#noAuth",
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
- signer: new core_2.NoAuthSigner(),
- },
- ],
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
- protocolSettings: config?.protocolSettings ?? {
- defaultNamespace: "com.amazonaws.sso",
- version: "2019-06-10",
- serviceTarget: "SWBPortalService",
- },
- serviceId: config?.serviceId ?? "SSO",
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
- };
-};
-exports.getRuntimeConfig = getRuntimeConfig;
-
-
-/***/ }),
-
/***/ 7523:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
@@ -1036,7 +376,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
});
}
const { accessToken } = token;
- const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return __webpack_require__(6553); });
+ const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return __webpack_require__(1853); });
const sso = ssoClient ||
new SSOClient(Object.assign({}, clientConfig ?? {}, {
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
@@ -1176,23 +516,680 @@ __webpack_unused_export__ = validateSsoProfile;
/***/ }),
-/***/ 6553:
+/***/ 1853:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-var clientSso = __webpack_require__(2054);
+var sso = __webpack_require__(2579);
-Object.defineProperty(exports, "GetRoleCredentialsCommand", ({
- enumerable: true,
- get: function () { return clientSso.GetRoleCredentialsCommand; }
-}));
-Object.defineProperty(exports, "SSOClient", ({
- enumerable: true,
- get: function () { return clientSso.SSOClient; }
-}));
+exports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;
+exports.SSOClient = sso.SSOClient;
+
+
+/***/ }),
+
+/***/ 7452:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
+const core_1 = __webpack_require__(8704);
+const util_middleware_1 = __webpack_require__(6324);
+const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
+ return {
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
+ (() => {
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
+ })(),
+ };
+};
+exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
+function createAwsAuthSigv4HttpAuthOption(authParameters) {
+ return {
+ schemeId: "aws.auth#sigv4",
+ signingProperties: {
+ name: "awsssoportal",
+ region: authParameters.region,
+ },
+ propertiesExtractor: (config, context) => ({
+ signingProperties: {
+ config,
+ context,
+ },
+ }),
+ };
+}
+function createSmithyApiNoAuthHttpAuthOption(authParameters) {
+ return {
+ schemeId: "smithy.api#noAuth",
+ };
+}
+const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
+ const options = [];
+ switch (authParameters.operation) {
+ case "GetRoleCredentials": {
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
+ break;
+ }
+ default: {
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
+ }
+ }
+ return options;
+};
+exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
+const resolveHttpAuthSchemeConfig = (config) => {
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
+ return Object.assign(config_0, {
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
+ });
+};
+exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
+
+
+/***/ }),
+
+/***/ 5074:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.defaultEndpointResolver = void 0;
+const util_endpoints_1 = __webpack_require__(3068);
+const util_endpoints_2 = __webpack_require__(9674);
+const ruleset_1 = __webpack_require__(203);
+const cache = new util_endpoints_2.EndpointCache({
+ size: 50,
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
+});
+const defaultEndpointResolver = (endpointParams, context = {}) => {
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
+ endpointParams: endpointParams,
+ logger: context.logger,
+ }));
+};
+exports.defaultEndpointResolver = defaultEndpointResolver;
+util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
+
+
+/***/ }),
+
+/***/ 203:
+/***/ ((__unused_webpack_module, exports) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.ruleSet = void 0;
+const u = "required", v = "fn", w = "argv", x = "ref";
+const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "string" }, j = { [u]: true, default: false, type: "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
+const _data = {
+ version: "1.0",
+ parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
+ rules: [
+ {
+ conditions: [{ [v]: b, [w]: [k] }],
+ rules: [
+ { conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
+ { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
+ { endpoint: { url: k, properties: n, headers: n }, type: e },
+ ],
+ type: f,
+ },
+ {
+ conditions: [{ [v]: b, [w]: t }],
+ rules: [
+ {
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
+ rules: [
+ {
+ conditions: [l, m],
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [a, o] }, q],
+ rules: [
+ {
+ endpoint: {
+ url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
+ ],
+ type: f,
+ },
+ {
+ conditions: r,
+ rules: [
+ {
+ conditions: [{ [v]: c, [w]: [o, a] }],
+ rules: [
+ {
+ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
+ endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
+ type: e,
+ },
+ {
+ endpoint: {
+ url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d },
+ ],
+ type: f,
+ },
+ {
+ conditions: s,
+ rules: [
+ {
+ conditions: [q],
+ rules: [
+ {
+ endpoint: {
+ url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ properties: n,
+ headers: n,
+ },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d },
+ ],
+ type: f,
+ },
+ {
+ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
+ type: e,
+ },
+ ],
+ type: f,
+ },
+ ],
+ type: f,
+ },
+ { error: "Invalid Configuration: Missing Region", type: d },
+ ],
+};
+exports.ruleSet = _data;
+
+
+/***/ }),
+
+/***/ 2579:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+
+var middlewareHostHeader = __webpack_require__(2590);
+var middlewareLogger = __webpack_require__(5242);
+var middlewareRecursionDetection = __webpack_require__(1568);
+var middlewareUserAgent = __webpack_require__(2959);
+var configResolver = __webpack_require__(9316);
+var core = __webpack_require__(402);
+var schema = __webpack_require__(6890);
+var middlewareContentLength = __webpack_require__(7212);
+var middlewareEndpoint = __webpack_require__(99);
+var middlewareRetry = __webpack_require__(9618);
+var smithyClient = __webpack_require__(1411);
+var httpAuthSchemeProvider = __webpack_require__(7452);
+var runtimeConfig = __webpack_require__(5541);
+var regionConfigResolver = __webpack_require__(6463);
+var protocolHttp = __webpack_require__(2356);
+var schemas_0 = __webpack_require__(2167);
+var errors = __webpack_require__(4483);
+var SSOServiceException = __webpack_require__(9849);
+
+const resolveClientEndpointParameters = (options) => {
+ return Object.assign(options, {
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
+ defaultSigningName: "awsssoportal",
+ });
+};
+const commonParams = {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+};
+
+const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
+ let _credentials = runtimeConfig.credentials;
+ return {
+ setHttpAuthScheme(httpAuthScheme) {
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
+ if (index === -1) {
+ _httpAuthSchemes.push(httpAuthScheme);
+ }
+ else {
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
+ }
+ },
+ httpAuthSchemes() {
+ return _httpAuthSchemes;
+ },
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
+ },
+ httpAuthSchemeProvider() {
+ return _httpAuthSchemeProvider;
+ },
+ setCredentials(credentials) {
+ _credentials = credentials;
+ },
+ credentials() {
+ return _credentials;
+ },
+ };
+};
+const resolveHttpAuthRuntimeConfig = (config) => {
+ return {
+ httpAuthSchemes: config.httpAuthSchemes(),
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
+ credentials: config.credentials(),
+ };
+};
+
+const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
+};
+
+class SSOClient extends smithyClient.Client {
+ config;
+ constructor(...[configuration]) {
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
+ super(_config_0);
+ this.initConfig = _config_0;
+ const _config_1 = resolveClientEndpointParameters(_config_0);
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
+ this.config = _config_8;
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider,
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
+ "aws.auth#sigv4": config.credentials,
+ }),
+ }));
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
+ }
+ destroy() {
+ super.destroy();
+ }
+}
+
+class GetRoleCredentialsCommand extends smithyClient.Command
+ .classBuilder()
+ .ep(commonParams)
+ .m(function (Command, cs, config, o) {
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
+})
+ .s("SWBPortalService", "GetRoleCredentials", {})
+ .n("SSOClient", "GetRoleCredentialsCommand")
+ .sc(schemas_0.GetRoleCredentials$)
+ .build() {
+}
+
+const commands = {
+ GetRoleCredentialsCommand,
+};
+class SSO extends SSOClient {
+}
+smithyClient.createAggregatedClient(commands, SSO);
+
+exports.$Command = smithyClient.Command;
+exports.__Client = smithyClient.Client;
+exports.SSOServiceException = SSOServiceException.SSOServiceException;
+exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
+exports.SSO = SSO;
+exports.SSOClient = SSOClient;
+Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: schemas_0['__proto__']
+ });
+
+Object.keys(schemas_0).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
+});
+Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
+ Object.defineProperty(exports, '__proto__', {
+ enumerable: true,
+ value: errors['__proto__']
+ });
+
+Object.keys(errors).forEach(function (k) {
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
+});
+
+
+/***/ }),
+
+/***/ 9849:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.SSOServiceException = exports.__ServiceException = void 0;
+const smithy_client_1 = __webpack_require__(1411);
+Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
+class SSOServiceException extends smithy_client_1.ServiceException {
+ constructor(options) {
+ super(options);
+ Object.setPrototypeOf(this, SSOServiceException.prototype);
+ }
+}
+exports.SSOServiceException = SSOServiceException;
+
+
+/***/ }),
+
+/***/ 4483:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0;
+const SSOServiceException_1 = __webpack_require__(9849);
+class InvalidRequestException extends SSOServiceException_1.SSOServiceException {
+ name = "InvalidRequestException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "InvalidRequestException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
+ }
+}
+exports.InvalidRequestException = InvalidRequestException;
+class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException {
+ name = "ResourceNotFoundException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "ResourceNotFoundException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
+ }
+}
+exports.ResourceNotFoundException = ResourceNotFoundException;
+class TooManyRequestsException extends SSOServiceException_1.SSOServiceException {
+ name = "TooManyRequestsException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "TooManyRequestsException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
+ }
+}
+exports.TooManyRequestsException = TooManyRequestsException;
+class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
+ name = "UnauthorizedException";
+ $fault = "client";
+ constructor(opts) {
+ super({
+ name: "UnauthorizedException",
+ $fault: "client",
+ ...opts,
+ });
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
+ }
+}
+exports.UnauthorizedException = UnauthorizedException;
+
+
+/***/ }),
+
+/***/ 5541:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const tslib_1 = __webpack_require__(1860);
+const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
+const core_1 = __webpack_require__(8704);
+const util_user_agent_node_1 = __webpack_require__(1656);
+const config_resolver_1 = __webpack_require__(9316);
+const hash_node_1 = __webpack_require__(2711);
+const middleware_retry_1 = __webpack_require__(9618);
+const node_config_provider_1 = __webpack_require__(5704);
+const node_http_handler_1 = __webpack_require__(1279);
+const smithy_client_1 = __webpack_require__(1411);
+const util_body_length_node_1 = __webpack_require__(3638);
+const util_defaults_mode_node_1 = __webpack_require__(673);
+const util_retry_1 = __webpack_require__(5518);
+const runtimeConfig_shared_1 = __webpack_require__(3082);
+const getRuntimeConfig = (config) => {
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
+ const loaderConfig = {
+ profile: config?.profile,
+ logger: clientSharedValues.logger,
+ };
+ return {
+ ...clientSharedValues,
+ ...config,
+ runtime: "node",
+ defaultsMode,
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
+ region: config?.region ??
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
+ retryMode: config?.retryMode ??
+ (0, node_config_provider_1.loadConfig)({
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
+ }, config),
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 3082:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.getRuntimeConfig = void 0;
+const core_1 = __webpack_require__(8704);
+const protocols_1 = __webpack_require__(7288);
+const core_2 = __webpack_require__(402);
+const smithy_client_1 = __webpack_require__(1411);
+const url_parser_1 = __webpack_require__(4494);
+const util_base64_1 = __webpack_require__(8385);
+const util_utf8_1 = __webpack_require__(1577);
+const httpAuthSchemeProvider_1 = __webpack_require__(7452);
+const endpointResolver_1 = __webpack_require__(5074);
+const schemas_0_1 = __webpack_require__(2167);
+const getRuntimeConfig = (config) => {
+ return {
+ apiVersion: "2019-06-10",
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
+ disableHostPrefix: config?.disableHostPrefix ?? false,
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
+ extensions: config?.extensions ?? [],
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
+ {
+ schemeId: "aws.auth#sigv4",
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
+ signer: new core_1.AwsSdkSigV4Signer(),
+ },
+ {
+ schemeId: "smithy.api#noAuth",
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
+ signer: new core_2.NoAuthSigner(),
+ },
+ ],
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
+ protocolSettings: config?.protocolSettings ?? {
+ defaultNamespace: "com.amazonaws.sso",
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
+ version: "2019-06-10",
+ serviceTarget: "SWBPortalService",
+ },
+ serviceId: config?.serviceId ?? "SSO",
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
+ };
+};
+exports.getRuntimeConfig = getRuntimeConfig;
+
+
+/***/ }),
+
+/***/ 2167:
+/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
+
+
+Object.defineProperty(exports, "__esModule", ({ value: true }));
+exports.GetRoleCredentials$ = exports.RoleCredentials$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = void 0;
+const _ATT = "AccessTokenType";
+const _GRC = "GetRoleCredentials";
+const _GRCR = "GetRoleCredentialsRequest";
+const _GRCRe = "GetRoleCredentialsResponse";
+const _IRE = "InvalidRequestException";
+const _RC = "RoleCredentials";
+const _RNFE = "ResourceNotFoundException";
+const _SAKT = "SecretAccessKeyType";
+const _STT = "SessionTokenType";
+const _TMRE = "TooManyRequestsException";
+const _UE = "UnauthorizedException";
+const _aI = "accountId";
+const _aKI = "accessKeyId";
+const _aT = "accessToken";
+const _ai = "account_id";
+const _c = "client";
+const _e = "error";
+const _ex = "expiration";
+const _h = "http";
+const _hE = "httpError";
+const _hH = "httpHeader";
+const _hQ = "httpQuery";
+const _m = "message";
+const _rC = "roleCredentials";
+const _rN = "roleName";
+const _rn = "role_name";
+const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
+const _sAK = "secretAccessKey";
+const _sT = "sessionToken";
+const _xasbt = "x-amz-sso_bearer_token";
+const n0 = "com.amazonaws.sso";
+const schema_1 = __webpack_require__(6890);
+const errors_1 = __webpack_require__(4483);
+const SSOServiceException_1 = __webpack_require__(9849);
+const _s_registry = schema_1.TypeRegistry.for(_s);
+exports.SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
+_s_registry.registerError(exports.SSOServiceException$, SSOServiceException_1.SSOServiceException);
+const n0_registry = schema_1.TypeRegistry.for(n0);
+exports.InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
+n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
+exports.ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
+n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
+exports.TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
+n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
+exports.UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
+n0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException);
+exports.errorTypeRegistries = [_s_registry, n0_registry];
+var AccessTokenType = [0, n0, _ATT, 8, 0];
+var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
+var SessionTokenType = [0, n0, _STT, 8, 0];
+exports.GetRoleCredentialsRequest$ = [
+ 3,
+ n0,
+ _GRCR,
+ 0,
+ [_rN, _aI, _aT],
+ [
+ [0, { [_hQ]: _rn }],
+ [0, { [_hQ]: _ai }],
+ [() => AccessTokenType, { [_hH]: _xasbt }],
+ ],
+ 3,
+];
+exports.GetRoleCredentialsResponse$ = [
+ 3,
+ n0,
+ _GRCRe,
+ 0,
+ [_rC],
+ [[() => exports.RoleCredentials$, 0]],
+];
+exports.RoleCredentials$ = [
+ 3,
+ n0,
+ _RC,
+ 0,
+ [_aKI, _sAK, _sT, _ex],
+ [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
+];
+exports.GetRoleCredentials$ = [
+ 9,
+ n0,
+ _GRC,
+ { [_h]: ["GET", "/federation/credentials", 200] },
+ () => exports.GetRoleCredentialsRequest$,
+ () => exports.GetRoleCredentialsResponse$,
+];
/***/ }),
@@ -1206,7 +1203,7 @@ var client = __webpack_require__(5152);
var httpAuthSchemes = __webpack_require__(7523);
var propertyProvider = __webpack_require__(8857);
var sharedIniFileLoader = __webpack_require__(4964);
-var fs = __webpack_require__(9896);
+var node_fs = __webpack_require__(3024);
const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
@@ -1226,7 +1223,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
- const { SSOOIDCClient } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 9443, 19));
+ const { SSOOIDCClient } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 9443, 23));
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
region: ssoRegion ?? init.clientConfig?.region,
@@ -1237,7 +1234,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
};
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
- const { CreateTokenCommand } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 9443, 19));
+ const { CreateTokenCommand } = await __webpack_require__.e(/* import() */ 443).then(__webpack_require__.t.bind(__webpack_require__, 9443, 23));
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
return ssoOidcClient.send(new CreateTokenCommand({
clientId: ssoToken.clientId,
@@ -1259,7 +1256,7 @@ const validateTokenKey = (key, value, forRefresh = false) => {
}
};
-const { writeFile } = fs.promises;
+const { writeFile } = node_fs.promises;
const writeSSOTokenToFile = (id, ssoToken) => {
const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -1361,10 +1358,10 @@ exports.nodeProvider = nodeProvider;
/***/ }),
-/***/ 2807:
+/***/ 9955:
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.975.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.2","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.1","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.11","@smithy/middleware-retry":"^4.4.27","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.12","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.26","@smithy/util-defaults-mode-node":"^4.2.29","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
+module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.3","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.15","@aws-sdk/middleware-host-header":"^3.972.6","@aws-sdk/middleware-logger":"^3.972.6","@aws-sdk/middleware-recursion-detection":"^3.972.6","@aws-sdk/middleware-user-agent":"^3.972.15","@aws-sdk/region-config-resolver":"^3.972.6","@aws-sdk/types":"^3.973.4","@aws-sdk/util-endpoints":"^3.996.3","@aws-sdk/util-user-agent-browser":"^3.972.6","@aws-sdk/util-user-agent-node":"^3.973.0","@smithy/config-resolver":"^4.4.9","@smithy/core":"^3.23.6","@smithy/fetch-http-handler":"^5.3.11","@smithy/hash-node":"^4.2.10","@smithy/invalid-dependency":"^4.2.10","@smithy/middleware-content-length":"^4.2.10","@smithy/middleware-endpoint":"^4.4.20","@smithy/middleware-retry":"^4.4.37","@smithy/middleware-serde":"^4.2.11","@smithy/middleware-stack":"^4.2.10","@smithy/node-config-provider":"^4.3.10","@smithy/node-http-handler":"^4.4.12","@smithy/protocol-http":"^5.3.10","@smithy/smithy-client":"^4.12.0","@smithy/types":"^4.13.0","@smithy/url-parser":"^4.2.10","@smithy/util-base64":"^4.3.1","@smithy/util-body-length-browser":"^4.2.1","@smithy/util-body-length-node":"^4.2.2","@smithy/util-defaults-mode-browser":"^4.3.36","@smithy/util-defaults-mode-node":"^4.2.39","@smithy/util-endpoints":"^3.3.1","@smithy/util-middleware":"^4.2.10","@smithy/util-retry":"^4.2.10","@smithy/util-utf8":"^4.2.1","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
/***/ })
diff --git a/dist/998.index.js.map b/dist/998.index.js.map
index f87c04c..bd4319a 100644
--- a/dist/998.index.js.map
+++ b/dist/998.index.js.map
@@ -1 +1 @@
-{"version":3,"file":"998.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js",".././node_modules/@aws-sdk/client-sso/dist-cjs/index.js",".././node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js",".././node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js",".././node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js",".././node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js",".././node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js",".././node_modules/@aws-sdk/token-providers/dist-cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"awsssoportal\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSSOHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"GetRoleCredentials\":\n {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n ;\n case \"ListAccountRoles\":\n {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n ;\n case \"ListAccounts\":\n {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n ;\n case \"Logout\":\n {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n ;\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, \"type\": \"string\" }, j = { [u]: true, \"default\": false, \"type\": \"boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = { version: \"1.0\", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d }, { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: \"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }], endpoint: { url: \"https://portal.sso.{Region}.amazonaws.com\", properties: n, headers: n }, type: e }, { endpoint: { url: \"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS is enabled but this partition does not support FIPS\", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"DualStack is enabled but this partition does not support DualStack\", type: d }], type: f }, { endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: \"Invalid Configuration: Missing Region\", type: d }] };\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"awsssoportal\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SSOClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass SSOServiceException extends smithyClient.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOServiceException.prototype);\n }\n}\n\nclass InvalidRequestException extends SSOServiceException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n }\n}\nclass ResourceNotFoundException extends SSOServiceException {\n name = \"ResourceNotFoundException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ResourceNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ResourceNotFoundException.prototype);\n }\n}\nclass TooManyRequestsException extends SSOServiceException {\n name = \"TooManyRequestsException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"TooManyRequestsException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsException.prototype);\n }\n}\nclass UnauthorizedException extends SSOServiceException {\n name = \"UnauthorizedException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"UnauthorizedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedException.prototype);\n }\n}\n\nconst _AI = \"AccountInfo\";\nconst _ALT = \"AccountListType\";\nconst _ATT = \"AccessTokenType\";\nconst _GRC = \"GetRoleCredentials\";\nconst _GRCR = \"GetRoleCredentialsRequest\";\nconst _GRCRe = \"GetRoleCredentialsResponse\";\nconst _IRE = \"InvalidRequestException\";\nconst _L = \"Logout\";\nconst _LA = \"ListAccounts\";\nconst _LAR = \"ListAccountsRequest\";\nconst _LARR = \"ListAccountRolesRequest\";\nconst _LARRi = \"ListAccountRolesResponse\";\nconst _LARi = \"ListAccountsResponse\";\nconst _LARis = \"ListAccountRoles\";\nconst _LR = \"LogoutRequest\";\nconst _RC = \"RoleCredentials\";\nconst _RI = \"RoleInfo\";\nconst _RLT = \"RoleListType\";\nconst _RNFE = \"ResourceNotFoundException\";\nconst _SAKT = \"SecretAccessKeyType\";\nconst _STT = \"SessionTokenType\";\nconst _TMRE = \"TooManyRequestsException\";\nconst _UE = \"UnauthorizedException\";\nconst _aI = \"accountId\";\nconst _aKI = \"accessKeyId\";\nconst _aL = \"accountList\";\nconst _aN = \"accountName\";\nconst _aT = \"accessToken\";\nconst _ai = \"account_id\";\nconst _c = \"client\";\nconst _e = \"error\";\nconst _eA = \"emailAddress\";\nconst _ex = \"expiration\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _hH = \"httpHeader\";\nconst _hQ = \"httpQuery\";\nconst _m = \"message\";\nconst _mR = \"maxResults\";\nconst _mr = \"max_result\";\nconst _nT = \"nextToken\";\nconst _nt = \"next_token\";\nconst _rC = \"roleCredentials\";\nconst _rL = \"roleList\";\nconst _rN = \"roleName\";\nconst _rn = \"role_name\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sso\";\nconst _sAK = \"secretAccessKey\";\nconst _sT = \"sessionToken\";\nconst _xasbt = \"x-amz-sso_bearer_token\";\nconst n0 = \"com.amazonaws.sso\";\nvar AccessTokenType = [0, n0, _ATT, 8, 0];\nvar SecretAccessKeyType = [0, n0, _SAKT, 8, 0];\nvar SessionTokenType = [0, n0, _STT, 8, 0];\nvar AccountInfo$ = [3, n0, _AI,\n 0,\n [_aI, _aN, _eA],\n [0, 0, 0]\n];\nvar GetRoleCredentialsRequest$ = [3, n0, _GRCR,\n 0,\n [_rN, _aI, _aT],\n [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3\n];\nvar GetRoleCredentialsResponse$ = [3, n0, _GRCRe,\n 0,\n [_rC],\n [[() => RoleCredentials$, 0]]\n];\nvar InvalidRequestException$ = [-3, n0, _IRE,\n { [_e]: _c, [_hE]: 400 },\n [_m],\n [0]\n];\nschema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);\nvar ListAccountRolesRequest$ = [3, n0, _LARR,\n 0,\n [_aT, _aI, _nT, _mR],\n [[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2\n];\nvar ListAccountRolesResponse$ = [3, n0, _LARRi,\n 0,\n [_nT, _rL],\n [0, () => RoleListType]\n];\nvar ListAccountsRequest$ = [3, n0, _LAR,\n 0,\n [_aT, _nT, _mR],\n [[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1\n];\nvar ListAccountsResponse$ = [3, n0, _LARi,\n 0,\n [_nT, _aL],\n [0, () => AccountListType]\n];\nvar LogoutRequest$ = [3, n0, _LR,\n 0,\n [_aT],\n [[() => AccessTokenType, { [_hH]: _xasbt }]], 1\n];\nvar ResourceNotFoundException$ = [-3, n0, _RNFE,\n { [_e]: _c, [_hE]: 404 },\n [_m],\n [0]\n];\nschema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);\nvar RoleCredentials$ = [3, n0, _RC,\n 0,\n [_aKI, _sAK, _sT, _ex],\n [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]\n];\nvar RoleInfo$ = [3, n0, _RI,\n 0,\n [_rN, _aI],\n [0, 0]\n];\nvar TooManyRequestsException$ = [-3, n0, _TMRE,\n { [_e]: _c, [_hE]: 429 },\n [_m],\n [0]\n];\nschema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);\nvar UnauthorizedException$ = [-3, n0, _UE,\n { [_e]: _c, [_hE]: 401 },\n [_m],\n [0]\n];\nschema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);\nvar __Unit = \"unit\";\nvar SSOServiceException$ = [-3, _s, \"SSOServiceException\", 0, [], []];\nschema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);\nvar AccountListType = [1, n0, _ALT,\n 0, () => AccountInfo$\n];\nvar RoleListType = [1, n0, _RLT,\n 0, () => RoleInfo$\n];\nvar GetRoleCredentials$ = [9, n0, _GRC,\n { [_h]: [\"GET\", \"/federation/credentials\", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$\n];\nvar ListAccountRoles$ = [9, n0, _LARis,\n { [_h]: [\"GET\", \"/assignment/roles\", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$\n];\nvar ListAccounts$ = [9, n0, _LA,\n { [_h]: [\"GET\", \"/assignment/accounts\", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$\n];\nvar Logout$ = [9, n0, _L,\n { [_h]: [\"POST\", \"/logout\", 200] }, () => LogoutRequest$, () => __Unit\n];\n\nclass GetRoleCredentialsCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"GetRoleCredentials\", {})\n .n(\"SSOClient\", \"GetRoleCredentialsCommand\")\n .sc(GetRoleCredentials$)\n .build() {\n}\n\nclass ListAccountRolesCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"ListAccountRoles\", {})\n .n(\"SSOClient\", \"ListAccountRolesCommand\")\n .sc(ListAccountRoles$)\n .build() {\n}\n\nclass ListAccountsCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"ListAccounts\", {})\n .n(\"SSOClient\", \"ListAccountsCommand\")\n .sc(ListAccounts$)\n .build() {\n}\n\nclass LogoutCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"Logout\", {})\n .n(\"SSOClient\", \"LogoutCommand\")\n .sc(Logout$)\n .build() {\n}\n\nconst commands = {\n GetRoleCredentialsCommand,\n ListAccountRolesCommand,\n ListAccountsCommand,\n LogoutCommand,\n};\nclass SSO extends SSOClient {\n}\nsmithyClient.createAggregatedClient(commands, SSO);\n\nconst paginateListAccountRoles = core.createPaginator(SSOClient, ListAccountRolesCommand, \"nextToken\", \"nextToken\", \"maxResults\");\n\nconst paginateListAccounts = core.createPaginator(SSOClient, ListAccountsCommand, \"nextToken\", \"nextToken\", \"maxResults\");\n\nObject.defineProperty(exports, \"$Command\", {\n enumerable: true,\n get: function () { return smithyClient.Command; }\n});\nObject.defineProperty(exports, \"__Client\", {\n enumerable: true,\n get: function () { return smithyClient.Client; }\n});\nexports.AccountInfo$ = AccountInfo$;\nexports.GetRoleCredentials$ = GetRoleCredentials$;\nexports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;\nexports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;\nexports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;\nexports.InvalidRequestException = InvalidRequestException;\nexports.InvalidRequestException$ = InvalidRequestException$;\nexports.ListAccountRoles$ = ListAccountRoles$;\nexports.ListAccountRolesCommand = ListAccountRolesCommand;\nexports.ListAccountRolesRequest$ = ListAccountRolesRequest$;\nexports.ListAccountRolesResponse$ = ListAccountRolesResponse$;\nexports.ListAccounts$ = ListAccounts$;\nexports.ListAccountsCommand = ListAccountsCommand;\nexports.ListAccountsRequest$ = ListAccountsRequest$;\nexports.ListAccountsResponse$ = ListAccountsResponse$;\nexports.Logout$ = Logout$;\nexports.LogoutCommand = LogoutCommand;\nexports.LogoutRequest$ = LogoutRequest$;\nexports.ResourceNotFoundException = ResourceNotFoundException;\nexports.ResourceNotFoundException$ = ResourceNotFoundException$;\nexports.RoleCredentials$ = RoleCredentials$;\nexports.RoleInfo$ = RoleInfo$;\nexports.SSO = SSO;\nexports.SSOClient = SSOClient;\nexports.SSOServiceException = SSOServiceException;\nexports.SSOServiceException$ = SSOServiceException$;\nexports.TooManyRequestsException = TooManyRequestsException;\nexports.TooManyRequestsException$ = TooManyRequestsException$;\nexports.UnauthorizedException = UnauthorizedException;\nexports.UnauthorizedException$ = UnauthorizedException$;\nexports.paginateListAccountRoles = paginateListAccountRoles;\nexports.paginateListAccounts = paginateListAccounts;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sso\",\n version: \"2019-06-10\",\n serviceTarget: \"SWBPortalService\",\n },\n serviceId: config?.serviceId ?? \"SSO\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","'use strict';\n\nvar protocolHttp = require('@smithy/protocol-http');\nvar core = require('@smithy/core');\nvar propertyProvider = require('@smithy/property-provider');\nvar client = require('@aws-sdk/core/client');\nvar signatureV4 = require('@smithy/signature-v4');\n\nconst getDateHeader = (response) => protocolHttp.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;\n\nconst getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);\n\nconst isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;\n\nconst getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {\n const clockTimeInMs = Date.parse(clockTime);\n if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {\n return clockTimeInMs - Date.now();\n }\n return currentSystemClockOffset;\n};\n\nconst throwSigningPropertyError = (name, property) => {\n if (!property) {\n throw new Error(`Property \\`${name}\\` is not resolved for AWS SDK SigV4Auth`);\n }\n return property;\n};\nconst validateSigningProperties = async (signingProperties) => {\n const context = throwSigningPropertyError(\"context\", signingProperties.context);\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n const authScheme = context.endpointV2?.properties?.authSchemes?.[0];\n const signerFunction = throwSigningPropertyError(\"signer\", config.signer);\n const signer = await signerFunction(authScheme);\n const signingRegion = signingProperties?.signingRegion;\n const signingRegionSet = signingProperties?.signingRegionSet;\n const signingName = signingProperties?.signingName;\n return {\n config,\n signer,\n signingRegion,\n signingRegionSet,\n signingName,\n };\n};\nclass AwsSdkSigV4Signer {\n async sign(httpRequest, identity, signingProperties) {\n if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {\n throw new Error(\"The request is not an instance of `HttpRequest` and cannot be signed\");\n }\n const validatedProps = await validateSigningProperties(signingProperties);\n const { config, signer } = validatedProps;\n let { signingRegion, signingName } = validatedProps;\n const handlerExecutionContext = signingProperties.context;\n if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {\n const [first, second] = handlerExecutionContext.authSchemes;\n if (first?.name === \"sigv4a\" && second?.name === \"sigv4\") {\n signingRegion = second?.signingRegion ?? signingRegion;\n signingName = second?.signingName ?? signingName;\n }\n }\n const signedRequest = await signer.sign(httpRequest, {\n signingDate: getSkewCorrectedDate(config.systemClockOffset),\n signingRegion: signingRegion,\n signingService: signingName,\n });\n return signedRequest;\n }\n errorHandler(signingProperties) {\n return (error) => {\n const serverTime = error.ServerTime ?? getDateHeader(error.$response);\n if (serverTime) {\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n const initialSystemClockOffset = config.systemClockOffset;\n config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);\n const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;\n if (clockSkewCorrected && error.$metadata) {\n error.$metadata.clockSkewCorrected = true;\n }\n }\n throw error;\n };\n }\n successHandler(httpResponse, signingProperties) {\n const dateHeader = getDateHeader(httpResponse);\n if (dateHeader) {\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);\n }\n }\n}\nconst AWSSDKSigV4Signer = AwsSdkSigV4Signer;\n\nclass AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {\n async sign(httpRequest, identity, signingProperties) {\n if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {\n throw new Error(\"The request is not an instance of `HttpRequest` and cannot be signed\");\n }\n const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);\n const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();\n const multiRegionOverride = (configResolvedSigningRegionSet ??\n signingRegionSet ?? [signingRegion]).join(\",\");\n const signedRequest = await signer.sign(httpRequest, {\n signingDate: getSkewCorrectedDate(config.systemClockOffset),\n signingRegion: multiRegionOverride,\n signingService: signingName,\n });\n return signedRequest;\n }\n}\n\nconst getArrayForCommaSeparatedString = (str) => typeof str === \"string\" && str.length > 0 ? str.split(\",\").map((item) => item.trim()) : [];\n\nconst getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\\s-]/g, \"_\").toUpperCase()}`;\n\nconst NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = \"AWS_AUTH_SCHEME_PREFERENCE\";\nconst NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = \"auth_scheme_preference\";\nconst NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {\n environmentVariableSelector: (env, options) => {\n if (options?.signingName) {\n const bearerTokenKey = getBearerTokenEnvKey(options.signingName);\n if (bearerTokenKey in env)\n return [\"httpBearerAuth\"];\n }\n if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))\n return undefined;\n return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);\n },\n configFileSelector: (profile) => {\n if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))\n return undefined;\n return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);\n },\n default: [],\n};\n\nconst resolveAwsSdkSigV4AConfig = (config) => {\n config.sigv4aSigningRegionSet = core.normalizeProvider(config.sigv4aSigningRegionSet);\n return config;\n};\nconst NODE_SIGV4A_CONFIG_OPTIONS = {\n environmentVariableSelector(env) {\n if (env.AWS_SIGV4A_SIGNING_REGION_SET) {\n return env.AWS_SIGV4A_SIGNING_REGION_SET.split(\",\").map((_) => _.trim());\n }\n throw new propertyProvider.ProviderError(\"AWS_SIGV4A_SIGNING_REGION_SET not set in env.\", {\n tryNextLink: true,\n });\n },\n configFileSelector(profile) {\n if (profile.sigv4a_signing_region_set) {\n return (profile.sigv4a_signing_region_set ?? \"\").split(\",\").map((_) => _.trim());\n }\n throw new propertyProvider.ProviderError(\"sigv4a_signing_region_set not set in profile.\", {\n tryNextLink: true,\n });\n },\n default: undefined,\n};\n\nconst resolveAwsSdkSigV4Config = (config) => {\n let inputCredentials = config.credentials;\n let isUserSupplied = !!config.credentials;\n let resolvedCredentials = undefined;\n Object.defineProperty(config, \"credentials\", {\n set(credentials) {\n if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {\n isUserSupplied = true;\n }\n inputCredentials = credentials;\n const memoizedProvider = normalizeCredentialProvider(config, {\n credentials: inputCredentials,\n credentialDefaultProvider: config.credentialDefaultProvider,\n });\n const boundProvider = bindCallerConfig(config, memoizedProvider);\n if (isUserSupplied && !boundProvider.attributed) {\n const isCredentialObject = typeof inputCredentials === \"object\" && inputCredentials !== null;\n resolvedCredentials = async (options) => {\n const creds = await boundProvider(options);\n const attributedCreds = creds;\n if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {\n return client.setCredentialFeature(attributedCreds, \"CREDENTIALS_CODE\", \"e\");\n }\n return attributedCreds;\n };\n resolvedCredentials.memoized = boundProvider.memoized;\n resolvedCredentials.configBound = boundProvider.configBound;\n resolvedCredentials.attributed = true;\n }\n else {\n resolvedCredentials = boundProvider;\n }\n },\n get() {\n return resolvedCredentials;\n },\n enumerable: true,\n configurable: true,\n });\n config.credentials = inputCredentials;\n const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;\n let signer;\n if (config.signer) {\n signer = core.normalizeProvider(config.signer);\n }\n else if (config.regionInfoProvider) {\n signer = () => core.normalizeProvider(config.region)()\n .then(async (region) => [\n (await config.regionInfoProvider(region, {\n useFipsEndpoint: await config.useFipsEndpoint(),\n useDualstackEndpoint: await config.useDualstackEndpoint(),\n })) || {},\n region,\n ])\n .then(([regionInfo, region]) => {\n const { signingRegion, signingService } = regionInfo;\n config.signingRegion = config.signingRegion || signingRegion || region;\n config.signingName = config.signingName || signingService || config.serviceId;\n const params = {\n ...config,\n credentials: config.credentials,\n region: config.signingRegion,\n service: config.signingName,\n sha256,\n uriEscapePath: signingEscapePath,\n };\n const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;\n return new SignerCtor(params);\n });\n }\n else {\n signer = async (authScheme) => {\n authScheme = Object.assign({}, {\n name: \"sigv4\",\n signingName: config.signingName || config.defaultSigningName,\n signingRegion: await core.normalizeProvider(config.region)(),\n properties: {},\n }, authScheme);\n const signingRegion = authScheme.signingRegion;\n const signingService = authScheme.signingName;\n config.signingRegion = config.signingRegion || signingRegion;\n config.signingName = config.signingName || signingService || config.serviceId;\n const params = {\n ...config,\n credentials: config.credentials,\n region: config.signingRegion,\n service: config.signingName,\n sha256,\n uriEscapePath: signingEscapePath,\n };\n const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;\n return new SignerCtor(params);\n };\n }\n const resolvedConfig = Object.assign(config, {\n systemClockOffset,\n signingEscapePath,\n signer,\n });\n return resolvedConfig;\n};\nconst resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;\nfunction normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {\n let credentialsProvider;\n if (credentials) {\n if (!credentials?.memoized) {\n credentialsProvider = core.memoizeIdentityProvider(credentials, core.isIdentityExpired, core.doesIdentityRequireRefresh);\n }\n else {\n credentialsProvider = credentials;\n }\n }\n else {\n if (credentialDefaultProvider) {\n credentialsProvider = core.normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {\n parentClientConfig: config,\n })));\n }\n else {\n credentialsProvider = async () => {\n throw new Error(\"@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.\");\n };\n }\n }\n credentialsProvider.memoized = true;\n return credentialsProvider;\n}\nfunction bindCallerConfig(config, credentialsProvider) {\n if (credentialsProvider.configBound) {\n return credentialsProvider;\n }\n const fn = async (options) => credentialsProvider({ ...options, callerClientConfig: config });\n fn.memoized = credentialsProvider.memoized;\n fn.configBound = true;\n return fn;\n}\n\nexports.AWSSDKSigV4Signer = AWSSDKSigV4Signer;\nexports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner;\nexports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;\nexports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;\nexports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS;\nexports.getBearerTokenEnvKey = getBearerTokenEnvKey;\nexports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config;\nexports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig;\nexports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;\nexports.validateSigningProperties = validateSigningProperties;\n","'use strict';\n\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar client = require('@aws-sdk/core/client');\nvar tokenProviders = require('@aws-sdk/token-providers');\n\nconst isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n\nconst SHOULD_FAIL_CREDENTIAL_CHAIN = false;\nconst resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {\n let token;\n const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;\n if (ssoSession) {\n try {\n const _token = await tokenProviders.fromSso({\n profile,\n filepath,\n configFilepath,\n ignoreCache,\n })();\n token = {\n accessToken: _token.token,\n expiresAt: new Date(_token.expiration).toISOString(),\n };\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n else {\n try {\n token = await sharedIniFileLoader.getSSOTokenFromFile(ssoStartUrl);\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { accessToken } = token;\n const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return require('./loadSso-CVy8iqsZ.js'); });\n const sso = ssoClient ||\n new SSOClient(Object.assign({}, clientConfig ?? {}, {\n logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,\n region: clientConfig?.region ?? ssoRegion,\n userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,\n }));\n let ssoResp;\n try {\n ssoResp = await sso.send(new GetRoleCredentialsCommand({\n accountId: ssoAccountId,\n roleName: ssoRoleName,\n accessToken,\n }));\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;\n if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {\n throw new propertyProvider.CredentialsProviderError(\"SSO returns an invalid temporary credential.\", {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const credentials = {\n accessKeyId,\n secretAccessKey,\n sessionToken,\n expiration: new Date(expiration),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n if (ssoSession) {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO\", \"s\");\n }\n else {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO_LEGACY\", \"u\");\n }\n return credentials;\n};\n\nconst validateSsoProfile = (profile, logger) => {\n const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;\n if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {\n throw new propertyProvider.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters \"sso_account_id\", ` +\n `\"sso_region\", \"sso_role_name\", \"sso_start_url\". Got ${Object.keys(profile).join(\", \")}\\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });\n }\n return profile;\n};\n\nconst fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-sso - fromSSO\");\n const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;\n const { ssoClient } = init;\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });\n }\n if (!isSsoProfile(profile)) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {\n logger: init.logger,\n });\n }\n if (profile?.sso_session) {\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const session = ssoSessions[profile.sso_session];\n const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;\n if (ssoRegion && ssoRegion !== session.sso_region) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n profile.sso_region = session.sso_region;\n profile.sso_start_url = session.sso_start_url;\n }\n const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);\n return resolveSSOCredentials({\n ssoStartUrl: sso_start_url,\n ssoSession: sso_session,\n ssoAccountId: sso_account_id,\n ssoRegion: sso_region,\n ssoRoleName: sso_role_name,\n ssoClient: ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {\n throw new propertyProvider.CredentialsProviderError(\"Incomplete configuration. The fromSSO() argument hash must include \" +\n '\"ssoStartUrl\", \"ssoAccountId\", \"ssoRegion\", \"ssoRoleName\"', { tryNextLink: false, logger: init.logger });\n }\n else {\n return resolveSSOCredentials({\n ssoStartUrl,\n ssoSession,\n ssoAccountId,\n ssoRegion,\n ssoRoleName,\n ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n};\n\nexports.fromSSO = fromSSO;\nexports.isSsoProfile = isSsoProfile;\nexports.validateSsoProfile = validateSsoProfile;\n","'use strict';\n\nvar clientSso = require('@aws-sdk/client-sso');\n\n\n\nObject.defineProperty(exports, \"GetRoleCredentialsCommand\", {\n\tenumerable: true,\n\tget: function () { return clientSso.GetRoleCredentialsCommand; }\n});\nObject.defineProperty(exports, \"SSOClient\", {\n\tenumerable: true,\n\tget: function () { return clientSso.SSOClient; }\n});\n","'use strict';\n\nvar client = require('@aws-sdk/core/client');\nvar httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar fs = require('fs');\n\nconst fromEnvSigningName = ({ logger, signingName } = {}) => async () => {\n logger?.debug?.(\"@aws-sdk/token-providers - fromEnvSigningName\");\n if (!signingName) {\n throw new propertyProvider.TokenProviderError(\"Please pass 'signingName' to compute environment variable key\", { logger });\n }\n const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);\n if (!(bearerTokenKey in process.env)) {\n throw new propertyProvider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });\n }\n const token = { token: process.env[bearerTokenKey] };\n client.setTokenFeature(token, \"BEARER_SERVICE_ENV_VARS\", \"3\");\n return token;\n};\n\nconst EXPIRE_WINDOW_MS = 5 * 60 * 1000;\nconst REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;\n\nconst getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {\n const { SSOOIDCClient } = await import('@aws-sdk/nested-clients/sso-oidc');\n const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];\n const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {\n region: ssoRegion ?? init.clientConfig?.region,\n logger: coalesce(\"logger\"),\n userAgentAppId: coalesce(\"userAgentAppId\"),\n }));\n return ssoOidcClient;\n};\n\nconst getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {\n const { CreateTokenCommand } = await import('@aws-sdk/nested-clients/sso-oidc');\n const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);\n return ssoOidcClient.send(new CreateTokenCommand({\n clientId: ssoToken.clientId,\n clientSecret: ssoToken.clientSecret,\n refreshToken: ssoToken.refreshToken,\n grantType: \"refresh_token\",\n }));\n};\n\nconst validateTokenExpiry = (token) => {\n if (token.expiration && token.expiration.getTime() < Date.now()) {\n throw new propertyProvider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst validateTokenKey = (key, value, forRefresh = false) => {\n if (typeof value === \"undefined\") {\n throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? \". Cannot refresh\" : \"\"}. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst { writeFile } = fs.promises;\nconst writeSSOTokenToFile = (id, ssoToken) => {\n const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);\n const tokenString = JSON.stringify(ssoToken, null, 2);\n return writeFile(tokenFilepath, tokenString);\n};\n\nconst lastRefreshAttemptTime = new Date(0);\nconst fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/token-providers - fromSso\");\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);\n }\n else if (!profile[\"sso_session\"]) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);\n }\n const ssoSessionName = profile[\"sso_session\"];\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const ssoSession = ssoSessions[ssoSessionName];\n if (!ssoSession) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);\n }\n for (const ssoSessionRequiredKey of [\"sso_start_url\", \"sso_region\"]) {\n if (!ssoSession[ssoSessionRequiredKey]) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);\n }\n }\n ssoSession[\"sso_start_url\"];\n const ssoRegion = ssoSession[\"sso_region\"];\n let ssoToken;\n try {\n ssoToken = await sharedIniFileLoader.getSSOTokenFromFile(ssoSessionName);\n }\n catch (e) {\n throw new propertyProvider.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);\n }\n validateTokenKey(\"accessToken\", ssoToken.accessToken);\n validateTokenKey(\"expiresAt\", ssoToken.expiresAt);\n const { accessToken, expiresAt } = ssoToken;\n const existingToken = { token: accessToken, expiration: new Date(expiresAt) };\n if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {\n return existingToken;\n }\n if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n validateTokenKey(\"clientId\", ssoToken.clientId, true);\n validateTokenKey(\"clientSecret\", ssoToken.clientSecret, true);\n validateTokenKey(\"refreshToken\", ssoToken.refreshToken, true);\n try {\n lastRefreshAttemptTime.setTime(Date.now());\n const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);\n validateTokenKey(\"accessToken\", newSsoOidcToken.accessToken);\n validateTokenKey(\"expiresIn\", newSsoOidcToken.expiresIn);\n const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);\n try {\n await writeSSOTokenToFile(ssoSessionName, {\n ...ssoToken,\n accessToken: newSsoOidcToken.accessToken,\n expiresAt: newTokenExpiration.toISOString(),\n refreshToken: newSsoOidcToken.refreshToken,\n });\n }\n catch (error) {\n }\n return {\n token: newSsoOidcToken.accessToken,\n expiration: newTokenExpiration,\n };\n }\n catch (error) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n};\n\nconst fromStatic = ({ token, logger }) => async () => {\n logger?.debug(\"@aws-sdk/token-providers - fromStatic\");\n if (!token || !token.token) {\n throw new propertyProvider.TokenProviderError(`Please pass a valid token to fromStatic`, false);\n }\n return token;\n};\n\nconst nodeProvider = (init = {}) => propertyProvider.memoize(propertyProvider.chain(fromSso(init), async () => {\n throw new propertyProvider.TokenProviderError(\"Could not load token from any providers\", false);\n}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);\n\nexports.fromEnvSigningName = fromEnvSigningName;\nexports.fromSso = fromSso;\nexports.fromStatic = fromStatic;\nexports.nodeProvider = nodeProvider;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"998.index.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js",".././node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js",".././node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js",".././node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js",".././node_modules/@aws-sdk/token-providers/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar protocolHttp = require('@smithy/protocol-http');\nvar core = require('@smithy/core');\nvar propertyProvider = require('@smithy/property-provider');\nvar client = require('@aws-sdk/core/client');\nvar signatureV4 = require('@smithy/signature-v4');\n\nconst getDateHeader = (response) => protocolHttp.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;\n\nconst getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);\n\nconst isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;\n\nconst getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {\n const clockTimeInMs = Date.parse(clockTime);\n if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {\n return clockTimeInMs - Date.now();\n }\n return currentSystemClockOffset;\n};\n\nconst throwSigningPropertyError = (name, property) => {\n if (!property) {\n throw new Error(`Property \\`${name}\\` is not resolved for AWS SDK SigV4Auth`);\n }\n return property;\n};\nconst validateSigningProperties = async (signingProperties) => {\n const context = throwSigningPropertyError(\"context\", signingProperties.context);\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n const authScheme = context.endpointV2?.properties?.authSchemes?.[0];\n const signerFunction = throwSigningPropertyError(\"signer\", config.signer);\n const signer = await signerFunction(authScheme);\n const signingRegion = signingProperties?.signingRegion;\n const signingRegionSet = signingProperties?.signingRegionSet;\n const signingName = signingProperties?.signingName;\n return {\n config,\n signer,\n signingRegion,\n signingRegionSet,\n signingName,\n };\n};\nclass AwsSdkSigV4Signer {\n async sign(httpRequest, identity, signingProperties) {\n if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {\n throw new Error(\"The request is not an instance of `HttpRequest` and cannot be signed\");\n }\n const validatedProps = await validateSigningProperties(signingProperties);\n const { config, signer } = validatedProps;\n let { signingRegion, signingName } = validatedProps;\n const handlerExecutionContext = signingProperties.context;\n if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {\n const [first, second] = handlerExecutionContext.authSchemes;\n if (first?.name === \"sigv4a\" && second?.name === \"sigv4\") {\n signingRegion = second?.signingRegion ?? signingRegion;\n signingName = second?.signingName ?? signingName;\n }\n }\n const signedRequest = await signer.sign(httpRequest, {\n signingDate: getSkewCorrectedDate(config.systemClockOffset),\n signingRegion: signingRegion,\n signingService: signingName,\n });\n return signedRequest;\n }\n errorHandler(signingProperties) {\n return (error) => {\n const serverTime = error.ServerTime ?? getDateHeader(error.$response);\n if (serverTime) {\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n const initialSystemClockOffset = config.systemClockOffset;\n config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);\n const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;\n if (clockSkewCorrected && error.$metadata) {\n error.$metadata.clockSkewCorrected = true;\n }\n }\n throw error;\n };\n }\n successHandler(httpResponse, signingProperties) {\n const dateHeader = getDateHeader(httpResponse);\n if (dateHeader) {\n const config = throwSigningPropertyError(\"config\", signingProperties.config);\n config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);\n }\n }\n}\nconst AWSSDKSigV4Signer = AwsSdkSigV4Signer;\n\nclass AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {\n async sign(httpRequest, identity, signingProperties) {\n if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {\n throw new Error(\"The request is not an instance of `HttpRequest` and cannot be signed\");\n }\n const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);\n const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();\n const multiRegionOverride = (configResolvedSigningRegionSet ??\n signingRegionSet ?? [signingRegion]).join(\",\");\n const signedRequest = await signer.sign(httpRequest, {\n signingDate: getSkewCorrectedDate(config.systemClockOffset),\n signingRegion: multiRegionOverride,\n signingService: signingName,\n });\n return signedRequest;\n }\n}\n\nconst getArrayForCommaSeparatedString = (str) => typeof str === \"string\" && str.length > 0 ? str.split(\",\").map((item) => item.trim()) : [];\n\nconst getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\\s-]/g, \"_\").toUpperCase()}`;\n\nconst NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = \"AWS_AUTH_SCHEME_PREFERENCE\";\nconst NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = \"auth_scheme_preference\";\nconst NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {\n environmentVariableSelector: (env, options) => {\n if (options?.signingName) {\n const bearerTokenKey = getBearerTokenEnvKey(options.signingName);\n if (bearerTokenKey in env)\n return [\"httpBearerAuth\"];\n }\n if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))\n return undefined;\n return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);\n },\n configFileSelector: (profile) => {\n if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))\n return undefined;\n return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);\n },\n default: [],\n};\n\nconst resolveAwsSdkSigV4AConfig = (config) => {\n config.sigv4aSigningRegionSet = core.normalizeProvider(config.sigv4aSigningRegionSet);\n return config;\n};\nconst NODE_SIGV4A_CONFIG_OPTIONS = {\n environmentVariableSelector(env) {\n if (env.AWS_SIGV4A_SIGNING_REGION_SET) {\n return env.AWS_SIGV4A_SIGNING_REGION_SET.split(\",\").map((_) => _.trim());\n }\n throw new propertyProvider.ProviderError(\"AWS_SIGV4A_SIGNING_REGION_SET not set in env.\", {\n tryNextLink: true,\n });\n },\n configFileSelector(profile) {\n if (profile.sigv4a_signing_region_set) {\n return (profile.sigv4a_signing_region_set ?? \"\").split(\",\").map((_) => _.trim());\n }\n throw new propertyProvider.ProviderError(\"sigv4a_signing_region_set not set in profile.\", {\n tryNextLink: true,\n });\n },\n default: undefined,\n};\n\nconst resolveAwsSdkSigV4Config = (config) => {\n let inputCredentials = config.credentials;\n let isUserSupplied = !!config.credentials;\n let resolvedCredentials = undefined;\n Object.defineProperty(config, \"credentials\", {\n set(credentials) {\n if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {\n isUserSupplied = true;\n }\n inputCredentials = credentials;\n const memoizedProvider = normalizeCredentialProvider(config, {\n credentials: inputCredentials,\n credentialDefaultProvider: config.credentialDefaultProvider,\n });\n const boundProvider = bindCallerConfig(config, memoizedProvider);\n if (isUserSupplied && !boundProvider.attributed) {\n const isCredentialObject = typeof inputCredentials === \"object\" && inputCredentials !== null;\n resolvedCredentials = async (options) => {\n const creds = await boundProvider(options);\n const attributedCreds = creds;\n if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {\n return client.setCredentialFeature(attributedCreds, \"CREDENTIALS_CODE\", \"e\");\n }\n return attributedCreds;\n };\n resolvedCredentials.memoized = boundProvider.memoized;\n resolvedCredentials.configBound = boundProvider.configBound;\n resolvedCredentials.attributed = true;\n }\n else {\n resolvedCredentials = boundProvider;\n }\n },\n get() {\n return resolvedCredentials;\n },\n enumerable: true,\n configurable: true,\n });\n config.credentials = inputCredentials;\n const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;\n let signer;\n if (config.signer) {\n signer = core.normalizeProvider(config.signer);\n }\n else if (config.regionInfoProvider) {\n signer = () => core.normalizeProvider(config.region)()\n .then(async (region) => [\n (await config.regionInfoProvider(region, {\n useFipsEndpoint: await config.useFipsEndpoint(),\n useDualstackEndpoint: await config.useDualstackEndpoint(),\n })) || {},\n region,\n ])\n .then(([regionInfo, region]) => {\n const { signingRegion, signingService } = regionInfo;\n config.signingRegion = config.signingRegion || signingRegion || region;\n config.signingName = config.signingName || signingService || config.serviceId;\n const params = {\n ...config,\n credentials: config.credentials,\n region: config.signingRegion,\n service: config.signingName,\n sha256,\n uriEscapePath: signingEscapePath,\n };\n const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;\n return new SignerCtor(params);\n });\n }\n else {\n signer = async (authScheme) => {\n authScheme = Object.assign({}, {\n name: \"sigv4\",\n signingName: config.signingName || config.defaultSigningName,\n signingRegion: await core.normalizeProvider(config.region)(),\n properties: {},\n }, authScheme);\n const signingRegion = authScheme.signingRegion;\n const signingService = authScheme.signingName;\n config.signingRegion = config.signingRegion || signingRegion;\n config.signingName = config.signingName || signingService || config.serviceId;\n const params = {\n ...config,\n credentials: config.credentials,\n region: config.signingRegion,\n service: config.signingName,\n sha256,\n uriEscapePath: signingEscapePath,\n };\n const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;\n return new SignerCtor(params);\n };\n }\n const resolvedConfig = Object.assign(config, {\n systemClockOffset,\n signingEscapePath,\n signer,\n });\n return resolvedConfig;\n};\nconst resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;\nfunction normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {\n let credentialsProvider;\n if (credentials) {\n if (!credentials?.memoized) {\n credentialsProvider = core.memoizeIdentityProvider(credentials, core.isIdentityExpired, core.doesIdentityRequireRefresh);\n }\n else {\n credentialsProvider = credentials;\n }\n }\n else {\n if (credentialDefaultProvider) {\n credentialsProvider = core.normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {\n parentClientConfig: config,\n })));\n }\n else {\n credentialsProvider = async () => {\n throw new Error(\"@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.\");\n };\n }\n }\n credentialsProvider.memoized = true;\n return credentialsProvider;\n}\nfunction bindCallerConfig(config, credentialsProvider) {\n if (credentialsProvider.configBound) {\n return credentialsProvider;\n }\n const fn = async (options) => credentialsProvider({ ...options, callerClientConfig: config });\n fn.memoized = credentialsProvider.memoized;\n fn.configBound = true;\n return fn;\n}\n\nexports.AWSSDKSigV4Signer = AWSSDKSigV4Signer;\nexports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner;\nexports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;\nexports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;\nexports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS;\nexports.getBearerTokenEnvKey = getBearerTokenEnvKey;\nexports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config;\nexports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig;\nexports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;\nexports.validateSigningProperties = validateSigningProperties;\n","'use strict';\n\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar client = require('@aws-sdk/core/client');\nvar tokenProviders = require('@aws-sdk/token-providers');\n\nconst isSsoProfile = (arg) => arg &&\n (typeof arg.sso_start_url === \"string\" ||\n typeof arg.sso_account_id === \"string\" ||\n typeof arg.sso_session === \"string\" ||\n typeof arg.sso_region === \"string\" ||\n typeof arg.sso_role_name === \"string\");\n\nconst SHOULD_FAIL_CREDENTIAL_CHAIN = false;\nconst resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => {\n let token;\n const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;\n if (ssoSession) {\n try {\n const _token = await tokenProviders.fromSso({\n profile,\n filepath,\n configFilepath,\n ignoreCache,\n })();\n token = {\n accessToken: _token.token,\n expiresAt: new Date(_token.expiration).toISOString(),\n };\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n else {\n try {\n token = await sharedIniFileLoader.getSSOTokenFromFile(ssoStartUrl);\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n }\n if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {\n throw new propertyProvider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { accessToken } = token;\n const { SSOClient, GetRoleCredentialsCommand } = await Promise.resolve().then(function () { return require('./loadSso-BKDNrsal.js'); });\n const sso = ssoClient ||\n new SSOClient(Object.assign({}, clientConfig ?? {}, {\n logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,\n region: clientConfig?.region ?? ssoRegion,\n userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId,\n }));\n let ssoResp;\n try {\n ssoResp = await sso.send(new GetRoleCredentialsCommand({\n accountId: ssoAccountId,\n roleName: ssoRoleName,\n accessToken,\n }));\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e, {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp;\n if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {\n throw new propertyProvider.CredentialsProviderError(\"SSO returns an invalid temporary credential.\", {\n tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,\n logger,\n });\n }\n const credentials = {\n accessKeyId,\n secretAccessKey,\n sessionToken,\n expiration: new Date(expiration),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n if (ssoSession) {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO\", \"s\");\n }\n else {\n client.setCredentialFeature(credentials, \"CREDENTIALS_SSO_LEGACY\", \"u\");\n }\n return credentials;\n};\n\nconst validateSsoProfile = (profile, logger) => {\n const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;\n if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {\n throw new propertyProvider.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters \"sso_account_id\", ` +\n `\"sso_region\", \"sso_role_name\", \"sso_start_url\". Got ${Object.keys(profile).join(\", \")}\\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });\n }\n return profile;\n};\n\nconst fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/credential-provider-sso - fromSSO\");\n const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;\n const { ssoClient } = init;\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });\n }\n if (!isSsoProfile(profile)) {\n throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {\n logger: init.logger,\n });\n }\n if (profile?.sso_session) {\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const session = ssoSessions[profile.sso_session];\n const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;\n if (ssoRegion && ssoRegion !== session.sso_region) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {\n throw new propertyProvider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {\n tryNextLink: false,\n logger: init.logger,\n });\n }\n profile.sso_region = session.sso_region;\n profile.sso_start_url = session.sso_start_url;\n }\n const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);\n return resolveSSOCredentials({\n ssoStartUrl: sso_start_url,\n ssoSession: sso_session,\n ssoAccountId: sso_account_id,\n ssoRegion: sso_region,\n ssoRoleName: sso_role_name,\n ssoClient: ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {\n throw new propertyProvider.CredentialsProviderError(\"Incomplete configuration. The fromSSO() argument hash must include \" +\n '\"ssoStartUrl\", \"ssoAccountId\", \"ssoRegion\", \"ssoRoleName\"', { tryNextLink: false, logger: init.logger });\n }\n else {\n return resolveSSOCredentials({\n ssoStartUrl,\n ssoSession,\n ssoAccountId,\n ssoRegion,\n ssoRoleName,\n ssoClient,\n clientConfig: init.clientConfig,\n parentClientConfig: init.parentClientConfig,\n callerClientConfig: init.callerClientConfig,\n profile: profileName,\n filepath: init.filepath,\n configFilepath: init.configFilepath,\n ignoreCache: init.ignoreCache,\n logger: init.logger,\n });\n }\n};\n\nexports.fromSSO = fromSSO;\nexports.isSsoProfile = isSsoProfile;\nexports.validateSsoProfile = validateSsoProfile;\n","'use strict';\n\nvar sso = require('@aws-sdk/nested-clients/sso');\n\n\n\nexports.GetRoleCredentialsCommand = sso.GetRoleCredentialsCommand;\nexports.SSOClient = sso.SSOClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_middleware_1 = require(\"@smithy/util-middleware\");\nconst defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: (0, util_middleware_1.getSmithyContext)(context).operation,\n region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nexports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"awsssoportal\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSSOHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"GetRoleCredentials\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);\n return Object.assign(config_0, {\n authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),\n });\n};\nexports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultEndpointResolver = void 0;\nconst util_endpoints_1 = require(\"@aws-sdk/util-endpoints\");\nconst util_endpoints_2 = require(\"@smithy/util-endpoints\");\nconst ruleset_1 = require(\"./ruleset\");\nconst cache = new util_endpoints_2.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nexports.defaultEndpointResolver = defaultEndpointResolver;\nutil_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ruleSet = void 0;\nconst u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, type: \"string\" }, j = { [u]: true, default: false, type: \"boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = {\n version: \"1.0\",\n parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },\n rules: [\n {\n conditions: [{ [v]: b, [w]: [k] }],\n rules: [\n { conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d },\n { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d },\n { endpoint: { url: k, properties: n, headers: n }, type: e },\n ],\n type: f,\n },\n {\n conditions: [{ [v]: b, [w]: t }],\n rules: [\n {\n conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }],\n rules: [\n {\n conditions: [l, m],\n rules: [\n {\n conditions: [{ [v]: c, [w]: [a, o] }, q],\n rules: [\n {\n endpoint: {\n url: \"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d },\n ],\n type: f,\n },\n {\n conditions: r,\n rules: [\n {\n conditions: [{ [v]: c, [w]: [o, a] }],\n rules: [\n {\n conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }],\n endpoint: { url: \"https://portal.sso.{Region}.amazonaws.com\", properties: n, headers: n },\n type: e,\n },\n {\n endpoint: {\n url: \"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"FIPS is enabled but this partition does not support FIPS\", type: d },\n ],\n type: f,\n },\n {\n conditions: s,\n rules: [\n {\n conditions: [q],\n rules: [\n {\n endpoint: {\n url: \"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}\",\n properties: n,\n headers: n,\n },\n type: e,\n },\n ],\n type: f,\n },\n { error: \"DualStack is enabled but this partition does not support DualStack\", type: d },\n ],\n type: f,\n },\n {\n endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n },\n type: e,\n },\n ],\n type: f,\n },\n ],\n type: f,\n },\n { error: \"Invalid Configuration: Missing Region\", type: d },\n ],\n};\nexports.ruleSet = _data;\n","'use strict';\n\nvar middlewareHostHeader = require('@aws-sdk/middleware-host-header');\nvar middlewareLogger = require('@aws-sdk/middleware-logger');\nvar middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');\nvar middlewareUserAgent = require('@aws-sdk/middleware-user-agent');\nvar configResolver = require('@smithy/config-resolver');\nvar core = require('@smithy/core');\nvar schema = require('@smithy/core/schema');\nvar middlewareContentLength = require('@smithy/middleware-content-length');\nvar middlewareEndpoint = require('@smithy/middleware-endpoint');\nvar middlewareRetry = require('@smithy/middleware-retry');\nvar smithyClient = require('@smithy/smithy-client');\nvar httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');\nvar runtimeConfig = require('./runtimeConfig');\nvar regionConfigResolver = require('@aws-sdk/region-config-resolver');\nvar protocolHttp = require('@smithy/protocol-http');\nvar schemas_0 = require('./schemas/schemas_0');\nvar errors = require('./models/errors');\nvar SSOServiceException = require('./models/SSOServiceException');\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"awsssoportal\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SSOClient extends smithyClient.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);\n const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);\n const _config_4 = configResolver.resolveRegionConfig(_config_3);\n const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);\n const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);\n const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));\n this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));\n this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));\n this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));\n this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass GetRoleCredentialsCommand extends smithyClient.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"SWBPortalService\", \"GetRoleCredentials\", {})\n .n(\"SSOClient\", \"GetRoleCredentialsCommand\")\n .sc(schemas_0.GetRoleCredentials$)\n .build() {\n}\n\nconst commands = {\n GetRoleCredentialsCommand,\n};\nclass SSO extends SSOClient {\n}\nsmithyClient.createAggregatedClient(commands, SSO);\n\nexports.$Command = smithyClient.Command;\nexports.__Client = smithyClient.Client;\nexports.SSOServiceException = SSOServiceException.SSOServiceException;\nexports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;\nexports.SSO = SSO;\nexports.SSOClient = SSOClient;\nObject.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: schemas_0['__proto__']\n });\n\nObject.keys(schemas_0).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];\n});\nObject.prototype.hasOwnProperty.call(errors, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: errors['__proto__']\n });\n\nObject.keys(errors).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SSOServiceException = exports.__ServiceException = void 0;\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nObject.defineProperty(exports, \"__ServiceException\", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });\nclass SSOServiceException extends smithy_client_1.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOServiceException.prototype);\n }\n}\nexports.SSOServiceException = SSOServiceException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0;\nconst SSOServiceException_1 = require(\"./SSOServiceException\");\nclass InvalidRequestException extends SSOServiceException_1.SSOServiceException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n }\n}\nexports.InvalidRequestException = InvalidRequestException;\nclass ResourceNotFoundException extends SSOServiceException_1.SSOServiceException {\n name = \"ResourceNotFoundException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"ResourceNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ResourceNotFoundException.prototype);\n }\n}\nexports.ResourceNotFoundException = ResourceNotFoundException;\nclass TooManyRequestsException extends SSOServiceException_1.SSOServiceException {\n name = \"TooManyRequestsException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"TooManyRequestsException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsException.prototype);\n }\n}\nexports.TooManyRequestsException = TooManyRequestsException;\nclass UnauthorizedException extends SSOServiceException_1.SSOServiceException {\n name = \"UnauthorizedException\";\n $fault = \"client\";\n constructor(opts) {\n super({\n name: \"UnauthorizedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedException.prototype);\n }\n}\nexports.UnauthorizedException = UnauthorizedException;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst tslib_1 = require(\"tslib\");\nconst package_json_1 = tslib_1.__importDefault(require(\"../../../package.json\"));\nconst core_1 = require(\"@aws-sdk/core\");\nconst util_user_agent_node_1 = require(\"@aws-sdk/util-user-agent-node\");\nconst config_resolver_1 = require(\"@smithy/config-resolver\");\nconst hash_node_1 = require(\"@smithy/hash-node\");\nconst middleware_retry_1 = require(\"@smithy/middleware-retry\");\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst util_body_length_node_1 = require(\"@smithy/util-body-length-node\");\nconst util_defaults_mode_node_1 = require(\"@smithy/util-defaults-mode-node\");\nconst util_retry_1 = require(\"@smithy/util-retry\");\nconst runtimeConfig_shared_1 = require(\"./runtimeConfig.shared\");\nconst getRuntimeConfig = (config) => {\n (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);\n const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);\n const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);\n const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);\n (0, core_1.emitWarningIfUnsupportedVersion)(process.version);\n const loaderConfig = {\n profile: config?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),\n maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),\n region: config?.region ??\n (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n (0, node_config_provider_1.loadConfig)({\n ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,\n }, config),\n sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRuntimeConfig = void 0;\nconst core_1 = require(\"@aws-sdk/core\");\nconst protocols_1 = require(\"@aws-sdk/core/protocols\");\nconst core_2 = require(\"@smithy/core\");\nconst smithy_client_1 = require(\"@smithy/smithy-client\");\nconst url_parser_1 = require(\"@smithy/url-parser\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst httpAuthSchemeProvider_1 = require(\"./auth/httpAuthSchemeProvider\");\nconst endpointResolver_1 = require(\"./endpoint/endpointResolver\");\nconst schemas_0_1 = require(\"./schemas/schemas_0\");\nconst getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,\n base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new core_1.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core_2.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new smithy_client_1.NoOpLogger(),\n protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.sso\",\n errorTypeRegistries: schemas_0_1.errorTypeRegistries,\n version: \"2019-06-10\",\n serviceTarget: \"SWBPortalService\",\n },\n serviceId: config?.serviceId ?? \"SSO\",\n urlParser: config?.urlParser ?? url_parser_1.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,\n };\n};\nexports.getRuntimeConfig = getRuntimeConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GetRoleCredentials$ = exports.RoleCredentials$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = void 0;\nconst _ATT = \"AccessTokenType\";\nconst _GRC = \"GetRoleCredentials\";\nconst _GRCR = \"GetRoleCredentialsRequest\";\nconst _GRCRe = \"GetRoleCredentialsResponse\";\nconst _IRE = \"InvalidRequestException\";\nconst _RC = \"RoleCredentials\";\nconst _RNFE = \"ResourceNotFoundException\";\nconst _SAKT = \"SecretAccessKeyType\";\nconst _STT = \"SessionTokenType\";\nconst _TMRE = \"TooManyRequestsException\";\nconst _UE = \"UnauthorizedException\";\nconst _aI = \"accountId\";\nconst _aKI = \"accessKeyId\";\nconst _aT = \"accessToken\";\nconst _ai = \"account_id\";\nconst _c = \"client\";\nconst _e = \"error\";\nconst _ex = \"expiration\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _hH = \"httpHeader\";\nconst _hQ = \"httpQuery\";\nconst _m = \"message\";\nconst _rC = \"roleCredentials\";\nconst _rN = \"roleName\";\nconst _rn = \"role_name\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.sso\";\nconst _sAK = \"secretAccessKey\";\nconst _sT = \"sessionToken\";\nconst _xasbt = \"x-amz-sso_bearer_token\";\nconst n0 = \"com.amazonaws.sso\";\nconst schema_1 = require(\"@smithy/core/schema\");\nconst errors_1 = require(\"../models/errors\");\nconst SSOServiceException_1 = require(\"../models/SSOServiceException\");\nconst _s_registry = schema_1.TypeRegistry.for(_s);\nexports.SSOServiceException$ = [-3, _s, \"SSOServiceException\", 0, [], []];\n_s_registry.registerError(exports.SSOServiceException$, SSOServiceException_1.SSOServiceException);\nconst n0_registry = schema_1.TypeRegistry.for(n0);\nexports.InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];\nn0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);\nexports.ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];\nn0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);\nexports.TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];\nn0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);\nexports.UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];\nn0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException);\nexports.errorTypeRegistries = [_s_registry, n0_registry];\nvar AccessTokenType = [0, n0, _ATT, 8, 0];\nvar SecretAccessKeyType = [0, n0, _SAKT, 8, 0];\nvar SessionTokenType = [0, n0, _STT, 8, 0];\nexports.GetRoleCredentialsRequest$ = [\n 3,\n n0,\n _GRCR,\n 0,\n [_rN, _aI, _aT],\n [\n [0, { [_hQ]: _rn }],\n [0, { [_hQ]: _ai }],\n [() => AccessTokenType, { [_hH]: _xasbt }],\n ],\n 3,\n];\nexports.GetRoleCredentialsResponse$ = [\n 3,\n n0,\n _GRCRe,\n 0,\n [_rC],\n [[() => exports.RoleCredentials$, 0]],\n];\nexports.RoleCredentials$ = [\n 3,\n n0,\n _RC,\n 0,\n [_aKI, _sAK, _sT, _ex],\n [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],\n];\nexports.GetRoleCredentials$ = [\n 9,\n n0,\n _GRC,\n { [_h]: [\"GET\", \"/federation/credentials\", 200] },\n () => exports.GetRoleCredentialsRequest$,\n () => exports.GetRoleCredentialsResponse$,\n];\n","'use strict';\n\nvar client = require('@aws-sdk/core/client');\nvar httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\nvar node_fs = require('node:fs');\n\nconst fromEnvSigningName = ({ logger, signingName } = {}) => async () => {\n logger?.debug?.(\"@aws-sdk/token-providers - fromEnvSigningName\");\n if (!signingName) {\n throw new propertyProvider.TokenProviderError(\"Please pass 'signingName' to compute environment variable key\", { logger });\n }\n const bearerTokenKey = httpAuthSchemes.getBearerTokenEnvKey(signingName);\n if (!(bearerTokenKey in process.env)) {\n throw new propertyProvider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger });\n }\n const token = { token: process.env[bearerTokenKey] };\n client.setTokenFeature(token, \"BEARER_SERVICE_ENV_VARS\", \"3\");\n return token;\n};\n\nconst EXPIRE_WINDOW_MS = 5 * 60 * 1000;\nconst REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;\n\nconst getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {\n const { SSOOIDCClient } = await import('@aws-sdk/nested-clients/sso-oidc');\n const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];\n const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {\n region: ssoRegion ?? init.clientConfig?.region,\n logger: coalesce(\"logger\"),\n userAgentAppId: coalesce(\"userAgentAppId\"),\n }));\n return ssoOidcClient;\n};\n\nconst getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {\n const { CreateTokenCommand } = await import('@aws-sdk/nested-clients/sso-oidc');\n const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);\n return ssoOidcClient.send(new CreateTokenCommand({\n clientId: ssoToken.clientId,\n clientSecret: ssoToken.clientSecret,\n refreshToken: ssoToken.refreshToken,\n grantType: \"refresh_token\",\n }));\n};\n\nconst validateTokenExpiry = (token) => {\n if (token.expiration && token.expiration.getTime() < Date.now()) {\n throw new propertyProvider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst validateTokenKey = (key, value, forRefresh = false) => {\n if (typeof value === \"undefined\") {\n throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? \". Cannot refresh\" : \"\"}. ${REFRESH_MESSAGE}`, false);\n }\n};\n\nconst { writeFile } = node_fs.promises;\nconst writeSSOTokenToFile = (id, ssoToken) => {\n const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);\n const tokenString = JSON.stringify(ssoToken, null, 2);\n return writeFile(tokenFilepath, tokenString);\n};\n\nconst lastRefreshAttemptTime = new Date(0);\nconst fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {\n init.logger?.debug(\"@aws-sdk/token-providers - fromSso\");\n const profiles = await sharedIniFileLoader.parseKnownFiles(init);\n const profileName = sharedIniFileLoader.getProfileName({\n profile: init.profile ?? callerClientConfig?.profile,\n });\n const profile = profiles[profileName];\n if (!profile) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);\n }\n else if (!profile[\"sso_session\"]) {\n throw new propertyProvider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);\n }\n const ssoSessionName = profile[\"sso_session\"];\n const ssoSessions = await sharedIniFileLoader.loadSsoSessionData(init);\n const ssoSession = ssoSessions[ssoSessionName];\n if (!ssoSession) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);\n }\n for (const ssoSessionRequiredKey of [\"sso_start_url\", \"sso_region\"]) {\n if (!ssoSession[ssoSessionRequiredKey]) {\n throw new propertyProvider.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);\n }\n }\n ssoSession[\"sso_start_url\"];\n const ssoRegion = ssoSession[\"sso_region\"];\n let ssoToken;\n try {\n ssoToken = await sharedIniFileLoader.getSSOTokenFromFile(ssoSessionName);\n }\n catch (e) {\n throw new propertyProvider.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);\n }\n validateTokenKey(\"accessToken\", ssoToken.accessToken);\n validateTokenKey(\"expiresAt\", ssoToken.expiresAt);\n const { accessToken, expiresAt } = ssoToken;\n const existingToken = { token: accessToken, expiration: new Date(expiresAt) };\n if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {\n return existingToken;\n }\n if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n validateTokenKey(\"clientId\", ssoToken.clientId, true);\n validateTokenKey(\"clientSecret\", ssoToken.clientSecret, true);\n validateTokenKey(\"refreshToken\", ssoToken.refreshToken, true);\n try {\n lastRefreshAttemptTime.setTime(Date.now());\n const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);\n validateTokenKey(\"accessToken\", newSsoOidcToken.accessToken);\n validateTokenKey(\"expiresIn\", newSsoOidcToken.expiresIn);\n const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);\n try {\n await writeSSOTokenToFile(ssoSessionName, {\n ...ssoToken,\n accessToken: newSsoOidcToken.accessToken,\n expiresAt: newTokenExpiration.toISOString(),\n refreshToken: newSsoOidcToken.refreshToken,\n });\n }\n catch (error) {\n }\n return {\n token: newSsoOidcToken.accessToken,\n expiration: newTokenExpiration,\n };\n }\n catch (error) {\n validateTokenExpiry(existingToken);\n return existingToken;\n }\n};\n\nconst fromStatic = ({ token, logger }) => async () => {\n logger?.debug(\"@aws-sdk/token-providers - fromStatic\");\n if (!token || !token.token) {\n throw new propertyProvider.TokenProviderError(`Please pass a valid token to fromStatic`, false);\n }\n return token;\n};\n\nconst nodeProvider = (init = {}) => propertyProvider.memoize(propertyProvider.chain(fromSso(init), async () => {\n throw new propertyProvider.TokenProviderError(\"Could not load token from any providers\", false);\n}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);\n\nexports.fromEnvSigningName = fromEnvSigningName;\nexports.fromSso = fromSso;\nexports.fromStatic = fromStatic;\nexports.nodeProvider = nodeProvider;\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/index.js b/dist/index.js
index 7d8a533..7810479 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,18 +1,18 @@
-import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,n)=>{var o;o={value:true};var i=n(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var d=n(3402);o={enumerable:true,get:function(){return d.readMethodOptions}};o={enumerable:true,get:function(){return d.readMethodOption}};o={enumerable:true,get:function(){return d.readServiceOption}};var p=n(422);o={enumerable:true,get:function(){return p.RpcError}};var f=n(3474);o={enumerable:true,get:function(){return f.mergeRpcOptions}};var y=n(6407);o={enumerable:true,get:function(){return y.RpcOutputStreamController}};var v=n(5435);o={enumerable:true,get:function(){return v.TestTransport}};var D=n(9499);o={enumerable:true,get:function(){return D.Deferred}};o={enumerable:true,get:function(){return D.DeferredState}};var M=n(800);o={enumerable:true,get:function(){return M.DuplexStreamingCall}};var U=n(3311);o={enumerable:true,get:function(){return U.ClientStreamingCall}};var V=n(2715);o={enumerable:true,get:function(){return V.ServerStreamingCall}};var j=n(738);o={enumerable:true,get:function(){return j.UnaryCall}};var K=n(4359);o={enumerable:true,get:function(){return K.stackIntercept}};o={enumerable:true,get:function(){return K.stackDuplexStreamingInterceptors}};o={enumerable:true,get:function(){return K.stackClientStreamingInterceptors}};o={enumerable:true,get:function(){return K.stackServerStreamingInterceptors}};o={enumerable:true,get:function(){return K.stackUnaryInterceptors}};var ee=n(4626);o={enumerable:true,get:function(){return ee.ServerCallContextController}}},3402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(8372);function normalizeMethodInfo(e,t){var n,i,d;let p=e;p.service=t;p.localName=(n=p.localName)!==null&&n!==void 0?n:o.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(i=p.options)!==null&&i!==void 0?i:{};p.idempotency=(d=p.idempotency)!==null&&d!==void 0?d:undefined;return p}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},422:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},4359:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(8372);function stackIntercept(e,t,n,i,d){var p,f,y,v;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((p=i.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,d,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((f=i.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,d,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=i.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((v=i.interceptors)!==null&&v!==void 0?v:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},3474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(8372);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let d=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(d):d.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},6407:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(9499);const i=n(8372);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},4626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},2715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},2554:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(3402);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},5435:function(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(422);const d=n(8372);const p=n(6407);const f=n(3474);const y=n(738);const v=n(2715);const D=n(3311);const M=n(800);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){d.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}d.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){d.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){d.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return f.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=d.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),f=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),v=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(f,v);this.lastInput={single:t};return new y.UnaryCall(e,i,t,d,p,f,v)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),f=new p.RpcOutputStreamController,y=d.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,f,n.abort))).then(delay(this.afterResponseDelay,n.abort)),D=y.then((()=>this.promiseStatus())),M=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(D,M);this.lastInput={single:t};return new v.ServerStreamingCall(e,i,t,d,f,D,M)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,t.abort);return new D.ClientStreamingCall(e,o,this.lastInput,i,d,p,f)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=new p.RpcOutputStreamController,f=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,d,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=f.then((()=>this.promiseStatus())),v=f.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,v);this.lastInput=new TestInputStream(this.data,t.abort);return new M.DuplexStreamingCall(e,o,this.lastInput,i,d,y,v)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,d)=>{if(t===null||t===void 0?void 0:t.aborted){d(new i.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(p);d(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},738:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},6468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,d=2147483647,p=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>d||e
i||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e>4;f=p;d=2;break;case 2:n[i++]=(f&15)<<4|(p&60)>>2;f=p;d=3;break;case 3:n[i++]=(f&3)<<6|p;d=0;break}}if(d==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,d=0;for(let p=0;p>2];d=(i&3)<<4;o=1;break;case 1:t+=n[d|i>>4];d=(i&15)<<2;o=2;break;case 2:t+=n[d|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[d];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},6690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,d)=>{let p=is(n)?n[e.symbol]:n[e.symbol]=[];p.push({no:o,wireType:i,data:d})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:d}of e.list(n))o.tag(t,i).raw(d)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},8887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(6690);const i=n(5579);const d=n(365);const p={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=d.varint64read;this.uint32=d.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},4839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(5579);const i=n(365);const d=n(6468);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){d.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){d.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){d.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){d.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){d.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){d.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,d=t.lo<<1^n,p=(t.hi<<1|t.lo>>>31)^n;i.varint64write(d,p,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},6959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},365:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<>>o;const d=!(i>>>7==0&&t==0);const p=(d?i|128:i)&255;n.push(p);if(!d){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const d=(i?o|128:o)&255;n.push(d);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let d=0;function add1e6digit(t,p){const f=Number(e.slice(t,p));d*=o;i=i*o+f;if(i>=n){d=d+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,d]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let d=t>>16&65535;let p=o+i*6777216+d*6710656;let f=i+d*8147497;let y=d*2;let v=1e7;if(p>=v){f+=Math.floor(p/v);p%=v}if(f>=v){y+=Math.floor(f/v);f%=v}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(f,y)+decimalFrom1e7(p,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(8369);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(6689);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var d=n(5424);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return d.utf8read}});var p=n(6690);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var f=n(8887);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return f.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return f.binaryReadOptions}});var y=n(4839);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var v=n(5579);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return v.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return v.PbULong}});var D=n(3389);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return D.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return D.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return D.mergeJsonOptions}});var M=n(1371);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return M.MESSAGE_TYPE}});var U=n(4172);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return U.MessageType}});var V=n(528);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return V.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return V.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return V.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return V.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return V.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return V.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return V.readMessageOption}});var j=n(5649);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return j.ReflectionTypeCheck}});var K=n(868);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return K.reflectionCreate}});var ee=n(412);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(8674);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(8197);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(2161);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var se=n(5325);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return se.ReflectionBinaryWriter}});var oe=n(5240);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return oe.ReflectionJsonReader}});var ie=n(5572);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return ie.ReflectionJsonWriter}});var ae=n(5556);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var ce=n(4857);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return ce.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return ce.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return ce.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return ce.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return ce.getSelectedOneofValue}});var le=n(6959);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return le.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return le.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return le.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return le.isEnumObject}});var ue=n(4959);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return ue.lowerCamelCase}});var de=n(6468);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return de.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return de.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return de.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return de.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return de.assertFloat32}})},3389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},8369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},4172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(1371);const i=n(528);const d=n(5649);const p=n(5240);const f=n(5572);const y=n(2161);const v=n(5325);const D=n(868);const M=n(8674);const U=n(8369);const V=n(3389);const j=n(8197);const K=n(4839);const ee=n(8887);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new d.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new f.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new v.ReflectionBinaryWriter(this)}create(e){let t=D.reflectionCreate(this);if(e!==undefined){M.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();M.reflectionMergePartial(this,t,e);return t}equals(e,t){return j.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){M.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,V.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,V.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=K.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${U.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},4857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},5579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(365);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const d=/^-?[0-9]+$/;const p=4294967296;const f=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/p)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>f||i==f&&n!=0)throw new Error("signed long too small")}else if(i>=f)throw new Error("signed long too large");let y=new PbLong(n,i);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/p):new PbLong(-e,-e/p).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&f)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},5424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,d;let p=e.length;while(t191&&d<224)o[i++]=(d&31)<<6|e[t++]&63;else if(d>239&&d<365){d=((d&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(d>>10);o[i++]=56320+(d&1023)}else o[i++]=(d&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},2161:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(6690);const i=n(528);const d=n(2344);const p=n(412);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,d){this.prepare();const p=d===undefined?e.len:e.pos+d;while(e.pos
{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(6690);const i=n(528);const d=n(6468);const p=n(5579);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let p,f,y=o.repeat,v=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==v)continue;p=t[v];f=true}else{p=e[v];f=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(y){d.assert(Array.isArray(p));if(y==i.RepeatType.PACKED)this.packed(t,e,o.no,p);else for(const n of p)this.scalar(t,e,o.no,n,true)}else if(p===undefined)d.assert(o.opt);else this.scalar(t,e,o.no,p,f||o.opt);break;case"message":if(y){d.assert(Array.isArray(p));for(const e of p)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,p)}break;case"map":d.assert(typeof p=="object"&&p!==null);for(const[e,i]of Object.entries(p))this.mapEntry(t,n,o,e,i);break}}let p=n.writeUnknownFields;if(p!==false)(p===true?o.UnknownFieldHandler.onWrite:p)(this.info.typeName,e,t)}mapEntry(e,t,n,p,f){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let y=p;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:y=Number.parseInt(p);break;case i.ScalarType.BOOL:d.assert(p=="true"||p=="false");y=p=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,f,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,f,true);break;case"message":this.message(e,t,n.V.T(),2,f);break}e.join()}message(e,t,n,i,d){if(d===undefined)return;n.internalBinaryWrite(d,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[d,p,f]=this.scalarInfo(t,o);if(!f||i){e.tag(n,d);e[p](o)}}packed(e,t,n,p){if(!p.length)return;d.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,f]=this.scalarInfo(t);for(let t=0;t
{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(1371);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},868:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(412);const i=n(1371);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},8197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(528);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let d of e.fields){let e=d.localName;let p=d.oneof?t[d.oneof][e]:t[e];let f=d.oneof?n[d.oneof][e]:n[e];switch(d.kind){case"enum":case"scalar":let e=d.kind=="enum"?o.ScalarType.INT32:d.T;if(!(d.repeat?repeatedPrimitiveEq(e,p,f):primitiveEq(e,p,f)))return false;break;case"map":if(!(d.V.kind=="message"?repeatedMsgEq(d.V.T(),i(p),i(f)):repeatedPrimitiveEq(d.V.kind=="enum"?o.ScalarType.INT32:d.V.T,i(p),i(f))))return false;break;case"message":let t=d.T();if(!(d.repeat?repeatedMsgEq(t,p,f):t.equals(p,f)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let d=n;if(i.length!==d.length)return false;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4959);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var d;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(d=t.LongType||(t.LongType={}));var p;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(p=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,d;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:p.NO;e.opt=(d=e.opt)!==null&&d!==void 0?d:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},5240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(8369);const i=n(6689);const d=n(528);const p=n(5579);const f=n(6468);const y=n(2344);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[p,f]of Object.entries(e)){const e=this.fMap[p];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const y=e.localName;let v;if(e.oneof){if(f===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);v=t[e.oneof]={oneofKind:y}}else{v=t}if(e.kind=="map"){if(f===null){continue}this.assert(o.isJsonObject(f),e.name,f);const t=v[y];for(const[o,i]of Object.entries(f)){this.assert(i!==null,e.name+" map value",null);let p;switch(e.V.kind){case"message":p=e.V.T().internalJsonRead(i,n);break;case"enum":p=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(p!==undefined,e.name+" map value",i);let f=o;if(e.K==d.ScalarType.BOOL)f=f=="true"?true:f=="false"?false:f;f=this.scalar(f,e.K,d.LongType.STRING,e.name).toString();t[f]=p}}else if(e.repeat){if(f===null)continue;this.assert(Array.isArray(f),e.name,f);const t=v[y];for(const o of f){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,f);t.push(i)}}else{switch(e.kind){case"message":if(f===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}v[y]=e.T().internalJsonRead(f,n,v[y]);break;case"enum":if(f===null)continue;let t=this.enum(e.T(),f,e.name,n.ignoreUnknownFields);if(t===false)continue;v[y]=t;break;case"scalar":if(f===null)continue;v[y]=this.scalar(f,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")f.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":f.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let d=e[1][i];if(typeof d==="undefined"&&o){return false}f.assert(typeof d=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return d}f.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let v;try{switch(t){case d.ScalarType.DOUBLE:case d.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){v="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){v="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){v="not a number";break}if(!Number.isFinite(o)){v="too large or small";break}if(t==d.ScalarType.FLOAT)f.assertFloat32(o);return o;case d.ScalarType.INT32:case d.ScalarType.FIXED32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:case d.ScalarType.UINT32:if(e===null)return 0;let D;if(typeof e=="number")D=e;else if(e==="")v="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)v="extra whitespace";else D=Number(e)}if(D===undefined)break;if(t==d.ScalarType.UINT32)f.assertUInt32(D);else f.assertInt32(D);return D;case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(p.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbLong.from(e),n);case d.ScalarType.FIXED64:case d.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(p.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbULong.from(e),n);case d.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case d.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){v="extra whitespace";break}try{encodeURIComponent(e)}catch(v){v="invalid UTF8";break}return e;case d.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){v=e.message}this.assert(false,o+(v?" - "+v:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},5572:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(6689);const i=n(5579);const d=n(528);const p=n(6468);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const d=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let f=this.field(e,i[e.localName],d);p.assert(f!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=f}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){p.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);p.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[d,f]of Object.entries(t)){const t=this.message(o,f,e.name,n);p.assert(t!==undefined);i[d.toString()]=t}break;case"enum":const d=e.V.T();for(const[o,f]of Object.entries(t)){p.assert(f===undefined||typeof f=="number");const t=this.enum(d,f,e.name,false,true,n.enumAsInteger);p.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){p.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,d){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){p.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;p.assert(typeof t=="number");p.assert(Number.isInteger(t));if(d||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,f,y){if(t===undefined){p.assert(f);return undefined}const v=y||f;switch(e){case d.ScalarType.INT32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:if(t===0)return v?0:undefined;p.assertInt32(t);return t;case d.ScalarType.FIXED32:case d.ScalarType.UINT32:if(t===0)return v?0:undefined;p.assertUInt32(t);return t;case d.ScalarType.FLOAT:p.assertFloat32(t);case d.ScalarType.DOUBLE:if(t===0)return v?0:undefined;p.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case d.ScalarType.STRING:if(t==="")return v?"":undefined;p.assert(typeof t=="string");return t;case d.ScalarType.BOOL:if(t===false)return v?false:undefined;p.assert(typeof t=="boolean");return t;case d.ScalarType.UINT64:case d.ScalarType.FIXED64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!v)return undefined;return e.toString();case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!v)return undefined;return n.toString();case d.ScalarType.BYTES:p.assert(t instanceof Uint8Array);if(!t.byteLength)return v?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},2344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(528);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8674:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,d;for(let n of e.fields){let e=n.localName;if(n.oneof){const p=i[n.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}o=p[e];d=t[n.oneof];d.oneofKind=p.oneofKind;if(o==undefined){delete d[e];continue}}else{o=i[e];d=t;if(o==undefined){continue}}if(n.repeat)d[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(528);const i=n(2344);const d=n(5579);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(d.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(d.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(528);const i=n(4857);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),d=this.data;if(o.length!o.includes(e))))return false;if(!n){if(o.some((e=>!d.known.includes(e))))return false}if(t<1){return true}for(const o of d.oneofs){const d=e[o];if(!i.isOneofGroup(d))return false;if(d.oneofKind===undefined)continue;const p=this.fields.find((e=>e.localName===d.oneofKind));if(!p)return false;if(!this.field(d[d.oneofKind],p,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let d=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(d)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(d)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(d)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},9659:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),d=0;dp(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return p(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return p(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return p(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return p(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return p(this,arguments,void 0,(function*(e,t={}){t[V.Accept]=this._getExistingOrDefaultHeader(t,V.Accept,j.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return p(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,j.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return p(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,j.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return p(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,j.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let d=this._prepareRequest(e,i,o);const p=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let f=0;let y;do{y=yield this.requestRaw(d,n);if(y&&y.message&&y.message.statusCode===U.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,d,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&K.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const p=y.message.headers["location"];if(!p){break}const f=new URL(p);if(i.protocol==="https:"&&i.protocol!==f.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield y.readBody();if(f.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}d=this._prepareRequest(e,f,o);y=yield this.requestRaw(d,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}f+=1;if(f{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let d;i.on("socket",(e=>{d=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=v.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?y:f;const d=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):d;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[V.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[V.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=v.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let d=100;if(this.requestOptions){d=this.requestOptions.maxSockets||f.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:d,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const p=n.protocol==="https:";if(i){o=p?D.httpsOverHttps:D.httpsOverHttp}else{o=p?D.httpOverHttps:D.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=i?new y.Agent(e):new f.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new M.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return p(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return p(this,void 0,void 0,(function*(){return new Promise(((n,o)=>p(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const d={statusCode:i,result:null,headers:{}};if(i===U.NotFound){n(d)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let p;let f;try{f=yield e.readBody();if(f&&f.length>0){if(t&&t.deserializeDates){p=JSON.parse(f,dateTimeDeserializer)}else{p=JSON.parse(f)}d.result=p}d.headers=e.message.headers}catch(e){}if(i>299){let e;if(p&&p.message){e=p.message}else if(f&&f.length>0){e=f}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=d.result;o(t)}else{n(d)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},3335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getProxyUrl=getProxyUrl;t.checkBypass=checkBypass;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},3182:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRPUBLICHttpAuthSchemeProvider=t.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRPUBLICHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRPUBLICHttpAuthSchemeParametersProvider=defaultECRPUBLICHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRPUBLICHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRPUBLICHttpAuthSchemeProvider=defaultECRPUBLICHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const d=n(1829);const p=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>p.get(e,(()=>(0,i.resolveEndpoint)(d.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},1829:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",d="ref";const p=true,f="isSet",y="booleanEquals",v="error",D="endpoint",M="tree",U="PartitionResult",V="getAttr",j={[n]:false,type:"string"},K={[n]:true,default:false,type:"boolean"},ee={[d]:"Endpoint"},te={[o]:y,[i]:[{[d]:"UseFIPS"},true]},re={[o]:y,[i]:[{[d]:"UseDualStack"},true]},ne={},se={[o]:V,[i]:[{[d]:U},"supportsFIPS"]},oe={[d]:U},ie={[o]:y,[i]:[true,{[o]:V,[i]:[oe,"supportsDualStack"]}]},ae=[te],ce=[re],le=[{[d]:"Region"}];const ue={version:"1.0",parameters:{Region:j,UseDualStack:K,UseFIPS:K,Endpoint:j},rules:[{conditions:[{[o]:f,[i]:[ee]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:v},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:v},{endpoint:{url:ee,properties:ne,headers:ne},type:D}],type:M},{conditions:[{[o]:f,[i]:le}],rules:[{conditions:[{[o]:"aws.partition",[i]:le,assign:U}],rules:[{conditions:[te,re],rules:[{conditions:[{[o]:y,[i]:[p,se]},ie],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:D}],type:M},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:v}],type:M},{conditions:ae,rules:[{conditions:[{[o]:y,[i]:[se,p]}],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:D}],type:M},{error:"FIPS is enabled but this partition does not support FIPS",type:v}],type:M},{conditions:ce,rules:[{conditions:[ie],rules:[{conditions:[{[o]:"stringEquals",[i]:["aws",{[o]:V,[i]:[oe,"name"]}]}],endpoint:{url:"https://ecr-public.{Region}.api.aws",properties:ne,headers:ne},type:D},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:D}],type:M},{error:"DualStack is enabled but this partition does not support DualStack",type:v}],type:M},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:D}],type:M}],type:M},{error:"Invalid Configuration: Missing Region",type:v}]};t.ruleSet=ue},9821:(e,t,n)=>{var o;var i=n(2590);var d=n(5242);var p=n(1568);var f=n(2959);var y=n(9316);var v=n(402);var D=n(6890);var M=n(7212);var U=n(99);var V=n(9618);var j=n(1411);var K=n(3182);var ee=n(8199);var te=n(6463);var re=n(2356);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});const ne={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(te.getAwsRegionExtensionConfiguration(e),j.getDefaultExtensionConfiguration(e),re.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,te.resolveAwsRegionExtensionConfiguration(n),j.resolveDefaultRuntimeConfig(n),re.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRPUBLICClient extends j.Client{config;constructor(...[e]){const t=ee.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const o=f.resolveUserAgentConfig(n);const j=V.resolveRetryConfig(o);const te=y.resolveRegionConfig(j);const re=i.resolveHostHeaderConfig(te);const ne=U.resolveEndpointConfig(re);const se=K.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(D.getSchemaSerdePlugin(this.config));this.middlewareStack.use(f.getUserAgentPlugin(this.config));this.middlewareStack.use(V.getRetryPlugin(this.config));this.middlewareStack.use(M.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(d.getLoggerPlugin(this.config));this.middlewareStack.use(p.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(v.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:K.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new v.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(v.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class ECRPUBLICServiceException extends j.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}class InvalidParameterException extends ECRPUBLICServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}class RegistryNotFoundException extends ECRPUBLICServiceException{name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}class RepositoryNotFoundException extends ECRPUBLICServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}class ServerException extends ECRPUBLICServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}class UnsupportedCommandException extends ECRPUBLICServiceException{name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}class EmptyUploadException extends ECRPUBLICServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}class InvalidLayerException extends ECRPUBLICServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}class LayerAlreadyExistsException extends ECRPUBLICServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}class LayerPartTooSmallException extends ECRPUBLICServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}class UploadNotFoundException extends ECRPUBLICServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}class InvalidTagParameterException extends ECRPUBLICServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}class LimitExceededException extends ECRPUBLICServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}class RepositoryAlreadyExistsException extends ECRPUBLICServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}class TooManyTagsException extends ECRPUBLICServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}class RepositoryNotEmptyException extends ECRPUBLICServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}class RepositoryPolicyNotFoundException extends ECRPUBLICServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}class ImageNotFoundException extends ECRPUBLICServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}class RepositoryCatalogDataNotFoundException extends ECRPUBLICServiceException{name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}class ImageAlreadyExistsException extends ECRPUBLICServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}class ImageDigestDoesNotMatchException extends ECRPUBLICServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}class ImageTagAlreadyExistsException extends ECRPUBLICServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}class InvalidLayerPartException extends ECRPUBLICServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}class LayersNotFoundException extends ECRPUBLICServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}class ReferencedImagesNotFoundException extends ECRPUBLICServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}const se="AuthorizationData";const oe="BatchCheckLayerAvailability";const ie="BatchCheckLayerAvailabilityRequest";const ae="BatchCheckLayerAvailabilityResponse";const ce="BatchDeleteImage";const le="BatchDeleteImageRequest";const ue="BatchDeleteImageResponse";const de="CompleteLayerUpload";const Ae="CompleteLayerUploadRequest";const pe="CompleteLayerUploadResponse";const me="CreateRepository";const ge="CreateRepositoryRequest";const fe="CreateRepositoryResponse";const he="DescribeImages";const ye="DescribeImagesRequest";const Ee="DescribeImagesResponse";const Ce="DescribeImageTags";const Ie="DescribeImageTagsRequest";const be="DescribeImageTagsResponse";const Se="DeleteRepository";const Be="DeleteRepositoryPolicy";const we="DeleteRepositoryPolicyRequest";const Re="DeleteRepositoryPolicyResponse";const Qe="DeleteRepositoryRequest";const Ne="DeleteRepositoryResponse";const xe="DescribeRegistriesRequest";const Te="DescribeRegistriesResponse";const ve="DescribeRepositoriesRequest";const Pe="DescribeRepositoriesResponse";const De="DescribeRegistries";const ke="DescribeRepositories";const _e="EmptyUploadException";const Oe="GetAuthorizationToken";const Le="GetAuthorizationTokenRequest";const Fe="GetAuthorizationTokenResponse";const Me="GetRegistryCatalogData";const Ue="GetRegistryCatalogDataRequest";const He="GetRegistryCatalogDataResponse";const Ge="GetRepositoryCatalogDataRequest";const ze="GetRepositoryCatalogDataResponse";const qe="GetRepositoryCatalogData";const Ve="GetRepositoryPolicy";const $e="GetRepositoryPolicyRequest";const je="GetRepositoryPolicyResponse";const Ye="Image";const Je="ImageAlreadyExistsException";const We="ImageDetail";const Ke="ImageDigestDoesNotMatchException";const Xe="ImageDetailList";const Ze="ImageFailure";const dt="ImageFailureList";const At="ImageIdentifier";const mt="ImageIdentifierList";const yt="InvalidLayerException";const Et="InvalidLayerPartException";const Ct="InitiateLayerUpload";const It="InitiateLayerUploadRequest";const bt="InitiateLayerUploadResponse";const St="ImageNotFoundException";const Bt="InvalidParameterException";const wt="ImageTagAlreadyExistsException";const Rt="ImageTagDetail";const Qt="ImageTagDetailList";const Nt="InvalidTagParameterException";const xt="Key";const Tt="Layer";const vt="LayerAlreadyExistsException";const Pt="LimitExceededException";const Dt="LayerFailure";const kt="LayerFailureList";const _t="LayerList";const Ot="LayersNotFoundException";const Lt="LayerPartTooSmallException";const Ft="ListTagsForResource";const Mt="ListTagsForResourceRequest";const Ut="ListTagsForResourceResponse";const Ht="PutImage";const Gt="PutImageRequest";const zt="PutImageResponse";const qt="PutRegistryCatalogData";const Vt="PutRegistryCatalogDataRequest";const $t="PutRegistryCatalogDataResponse";const jt="PutRepositoryCatalogDataRequest";const Yt="PutRepositoryCatalogDataResponse";const Jt="PutRepositoryCatalogData";const Wt="Registry";const Kt="RegistryAlias";const Xt="RepositoryAlreadyExistsException";const Zt="RegistryAliasList";const er="RegistryCatalogData";const tr="RepositoryCatalogDataInput";const rr="RepositoryCatalogDataNotFoundException";const nr="RepositoryCatalogData";const sr="ReferencedImageDetail";const or="ReferencedImagesNotFoundException";const ir="RegistryList";const ar="RepositoryList";const cr="RepositoryNotEmptyException";const lr="RegistryNotFoundException";const ur="RepositoryNotFoundException";const dr="RepositoryPolicyNotFoundException";const Ar="Repository";const pr="ServerException";const mr="SetRepositoryPolicy";const gr="SetRepositoryPolicyRequest";const fr="SetRepositoryPolicyResponse";const hr="Tag";const yr="TagList";const Er="TooManyTagsException";const Cr="TagResource";const Ir="TagResourceRequest";const br="TagResourceResponse";const Sr="UnsupportedCommandException";const Br="UploadLayerPart";const wr="UploadLayerPartRequest";const Rr="UploadLayerPartResponse";const Qr="UploadNotFoundException";const Nr="UntagResource";const xr="UntagResourceRequest";const Tr="UntagResourceResponse";const vr="Value";const Pr="aliases";const Dr="authorizationData";const kr="artifactMediaType";const _r="authorizationToken";const Or="aboutText";const Lr="architectures";const Fr="client";const Mr="createdAt";const Ur="catalogData";const Hr="description";const Gr="displayName";const zr="defaultRegistryAlias";const qr="error";const Vr="expiresAt";const $r="failures";const jr="failureCode";const Yr="failureReason";const Jr="force";const Wr="image";const Kr="imageDetails";const Xr="imageDigest";const Zr="imageDetail";const en="imageIds";const tn="imageId";const rn="imageManifest";const nn="imageManifestMediaType";const sn="imagePushedAt";const on="imageSizeInBytes";const an="imageTags";const cn="imageTagDetails";const ln="imageTag";const un="layers";const dn="layerAvailability";const An="lastByteReceived";const pn="layerDigests";const mn="layerDigest";const gn="logoImageBlob";const hn="layerPartBlob";const yn="layerSize";const En="logoUrl";const Cn="lastValidByteReceived";const In="message";const bn="marketplaceCertified";const Sn="maxResults";const Bn="mediaType";const wn="name";const Rn="nextToken";const Qn="operatingSystems";const Nn="partFirstByte";const xn="partLastByte";const Tn="primaryRegistryAlias";const vn="partSize";const Pn="policyText";const Dn="repository";const kn="resourceArn";const _n="registryArn";const On="repositoryArn";const Ln="registryCatalogData";const Fn="registryId";const Mn="repositoryName";const Un="repositoryNames";const Hn="registryUri";const Gn="repositoryUri";const zn="registries";const qn="repositories";const Vn="status";const $n="server";const jn="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic";const Yn="tags";const Jn="tagKeys";const Wn="uploadId";const Kn="usageText";const Xn="verified";const Zn="com.amazonaws.ecrpublic";var es=[3,Zn,se,0,[_r,Vr],[0,4]];var ts=[3,Zn,ie,0,[Mn,pn,Fn],[0,64|0,0],2];var rs=[3,Zn,ae,0,[un,$r],[()=>Uo,()=>Mo]];var ns=[3,Zn,le,0,[Mn,en,Fn],[0,()=>Lo,0],2];var ss=[3,Zn,ue,0,[en,$r],[()=>Lo,()=>Oo]];var os=[3,Zn,Ae,0,[Mn,Wn,pn,Fn],[0,0,64|0,0],3];var as=[3,Zn,pe,0,[Fn,Mn,Wn,mn],[0,0,0,0]];var cs=[3,Zn,ge,0,[Mn,Ur,Yn],[0,()=>fo,()=>qo],1];var ls=[3,Zn,fe,0,[Dn,Ur],[()=>po,()=>go]];var us=[3,Zn,we,0,[Mn,Fn],[0,0],1];var ds=[3,Zn,Re,0,[Fn,Mn,Pn],[0,0,0]];var As=[3,Zn,Qe,0,[Mn,Fn,Jr],[0,0,2],1];var ps=[3,Zn,Ne,0,[Dn],[()=>po]];var ms=[3,Zn,ye,0,[Mn,Fn,en,Rn,Sn],[0,0,()=>Lo,0,1],1];var gs=[3,Zn,Ee,0,[Kr,Rn],[()=>_o,0]];var fs=[3,Zn,Ie,0,[Mn,Fn,Rn,Sn],[0,0,0,1],1];var hs=[3,Zn,be,0,[cn,Rn],[()=>Fo,0]];var ys=[3,Zn,xe,0,[Rn,Sn],[0,1]];var Es=[3,Zn,Te,0,[zn,Rn],[()=>Go,0],1];var Cs=[3,Zn,ve,0,[Fn,Un,Rn,Sn],[0,64|0,0,1]];var Is=[3,Zn,Pe,0,[qn,Rn],[()=>zo,0]];var bs=[-3,Zn,_e,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(bs,EmptyUploadException);var Ss=[3,Zn,Le,0,[],[]];var Bs=[3,Zn,Fe,0,[Dr],[()=>es]];var ws=[3,Zn,Ue,0,[],[]];var Rs=[3,Zn,He,0,[Ln],[()=>uo],1];var Qs=[3,Zn,Ge,0,[Mn,Fn],[0,0],1];var Ns=[3,Zn,ze,0,[Ur],[()=>go]];var xs=[3,Zn,$e,0,[Mn,Fn],[0,0],1];var Ts=[3,Zn,je,0,[Fn,Mn,Pn],[0,0,0]];var vs=[3,Zn,Ye,0,[Fn,Mn,tn,rn,nn],[0,0,()=>Os,0,0]];var Ps=[-3,Zn,Je,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Ps,ImageAlreadyExistsException);var Ds=[3,Zn,We,0,[Fn,Mn,Xr,an,on,sn,nn,kr],[0,0,0,64|0,1,4,0,0]];var ks=[-3,Zn,Ke,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(ks,ImageDigestDoesNotMatchException);var _s=[3,Zn,Ze,0,[tn,jr,Yr],[()=>Os,0,0]];var Os=[3,Zn,At,0,[Xr,ln],[0,0]];var Ls=[-3,Zn,St,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Ls,ImageNotFoundException);var Fs=[-3,Zn,wt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Fs,ImageTagAlreadyExistsException);var Ms=[3,Zn,Rt,0,[ln,Mr,Zr],[0,4,()=>io]];var Us=[3,Zn,It,0,[Mn,Fn],[0,0],1];var Hs=[3,Zn,bt,0,[Wn,vn],[0,1]];var Gs=[-3,Zn,yt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Gs,InvalidLayerException);var zs=[-3,Zn,Et,{[qr]:Fr},[Fn,Mn,Wn,Cn,In],[0,0,0,1,0]];D.TypeRegistry.for(Zn).registerError(zs,InvalidLayerPartException);var qs=[-3,Zn,Bt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(qs,InvalidParameterException);var Vs=[-3,Zn,Nt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Vs,InvalidTagParameterException);var $s=[3,Zn,Tt,0,[mn,dn,yn,Bn],[0,0,1,0]];var js=[-3,Zn,vt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(js,LayerAlreadyExistsException);var Ys=[3,Zn,Dt,0,[mn,jr,Yr],[0,0,0]];var Js=[-3,Zn,Lt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Js,LayerPartTooSmallException);var Ws=[-3,Zn,Ot,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Ws,LayersNotFoundException);var Ks=[-3,Zn,Pt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Ks,LimitExceededException);var Xs=[3,Zn,Mt,0,[kn],[0],1];var Zs=[3,Zn,Ut,0,[Yn],[()=>qo]];var eo=[3,Zn,Gt,0,[Mn,rn,Fn,nn,ln,Xr],[0,0,0,0,0,0],2];var to=[3,Zn,zt,0,[Wr],[()=>vs]];var ro=[3,Zn,Vt,0,[Gr],[0]];var no=[3,Zn,$t,0,[Ln],[()=>uo],1];var so=[3,Zn,jt,0,[Mn,Ur,Fn],[0,()=>fo,0],2];var oo=[3,Zn,Yt,0,[Ur],[()=>go]];var io=[3,Zn,sr,0,[Xr,on,sn,nn,kr],[0,1,4,0,0]];var ao=[-3,Zn,or,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(ao,ReferencedImagesNotFoundException);var co=[3,Zn,Wt,0,[Fn,_n,Hn,Xn,Pr],[0,0,0,2,()=>Ho],5];var lo=[3,Zn,Kt,0,[wn,Vn,Tn,zr],[0,0,2,2],4];var uo=[3,Zn,er,0,[Gr],[0]];var Ao=[-3,Zn,lr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Ao,RegistryNotFoundException);var po=[3,Zn,Ar,0,[On,Fn,Mn,Gn,Mr],[0,0,0,0,4]];var mo=[-3,Zn,Xt,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(mo,RepositoryAlreadyExistsException);var go=[3,Zn,nr,0,[Hr,Lr,Qn,En,Or,Kn,bn],[0,64|0,64|0,0,0,0,2]];var fo=[3,Zn,tr,0,[Hr,Lr,Qn,gn,Or,Kn],[0,64|0,64|0,21,0,0]];var ho=[-3,Zn,rr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(ho,RepositoryCatalogDataNotFoundException);var yo=[-3,Zn,cr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(yo,RepositoryNotEmptyException);var Eo=[-3,Zn,ur,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Eo,RepositoryNotFoundException);var Co=[-3,Zn,dr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Co,RepositoryPolicyNotFoundException);var Io=[-3,Zn,pr,{[qr]:$n},[In],[0]];D.TypeRegistry.for(Zn).registerError(Io,ServerException);var bo=[3,Zn,gr,0,[Mn,Pn,Fn,Jr],[0,0,0,2],2];var So=[3,Zn,fr,0,[Fn,Mn,Pn],[0,0,0]];var Bo=[3,Zn,hr,0,[xt,vr],[0,0]];var wo=[3,Zn,Ir,0,[kn,Yn],[0,()=>qo],2];var Ro=[3,Zn,br,0,[],[]];var Qo=[-3,Zn,Er,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Qo,TooManyTagsException);var No=[-3,Zn,Sr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(No,UnsupportedCommandException);var xo=[3,Zn,xr,0,[kn,Jn],[0,64|0],2];var To=[3,Zn,Tr,0,[],[]];var vo=[3,Zn,wr,0,[Mn,Wn,Nn,xn,hn,Fn],[0,0,1,1,21,0],5];var Po=[3,Zn,Rr,0,[Fn,Mn,Wn,An],[0,0,0,1]];var Do=[-3,Zn,Qr,{[qr]:Fr},[In],[0]];D.TypeRegistry.for(Zn).registerError(Do,UploadNotFoundException);var ko=[-3,jn,"ECRPUBLICServiceException",0,[],[]];D.TypeRegistry.for(jn).registerError(ko,ECRPUBLICServiceException);var _o=[1,Zn,Xe,0,()=>Ds];var Oo=[1,Zn,dt,0,()=>_s];var Lo=[1,Zn,mt,0,()=>Os];var Fo=[1,Zn,Qt,0,()=>Ms];var Mo=[1,Zn,kt,0,()=>Ys];var Uo=[1,Zn,_t,0,()=>$s];var Ho=[1,Zn,Zt,0,()=>lo];var Go=[1,Zn,ir,0,()=>co];var zo=[1,Zn,ar,0,()=>po];var qo=[1,Zn,yr,0,()=>Bo];var Vo=[9,Zn,oe,0,()=>ts,()=>rs];var $o=[9,Zn,ce,0,()=>ns,()=>ss];var jo=[9,Zn,de,0,()=>os,()=>as];var Yo=[9,Zn,me,0,()=>cs,()=>ls];var Jo=[9,Zn,Se,0,()=>As,()=>ps];var Wo=[9,Zn,Be,0,()=>us,()=>ds];var Ko=[9,Zn,he,0,()=>ms,()=>gs];var Xo=[9,Zn,Ce,0,()=>fs,()=>hs];var Zo=[9,Zn,De,0,()=>ys,()=>Es];var ei=[9,Zn,ke,0,()=>Cs,()=>Is];var ti=[9,Zn,Oe,0,()=>Ss,()=>Bs];var ri=[9,Zn,Me,0,()=>ws,()=>Rs];var ni=[9,Zn,qe,0,()=>Qs,()=>Ns];var si=[9,Zn,Ve,0,()=>xs,()=>Ts];var oi=[9,Zn,Ct,0,()=>Us,()=>Hs];var ii=[9,Zn,Ft,0,()=>Xs,()=>Zs];var ai=[9,Zn,Ht,0,()=>eo,()=>to];var ci=[9,Zn,qt,0,()=>ro,()=>no];var li=[9,Zn,Jt,0,()=>so,()=>oo];var ui=[9,Zn,mr,0,()=>bo,()=>So];var di=[9,Zn,Cr,0,()=>wo,()=>Ro];var Ai=[9,Zn,Nr,0,()=>xo,()=>To];var pi=[9,Zn,Br,0,()=>vo,()=>Po];class BatchCheckLayerAvailabilityCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc(Vo).build()){}class BatchDeleteImageCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc($o).build()){}class CompleteLayerUploadCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc(jo).build()){}class CreateRepositoryCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc(Yo).build()){}class DeleteRepositoryCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc(Jo).build()){}class DeleteRepositoryPolicyCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc(Wo).build()){}class DescribeImagesCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc(Ko).build()){}class DescribeImageTagsCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc(Xo).build()){}class DescribeRegistriesCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc(Zo).build()){}class DescribeRepositoriesCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc(ei).build()){}class GetAuthorizationTokenCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc(ti).build()){}class GetRegistryCatalogDataCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc(ri).build()){}class GetRepositoryCatalogDataCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc(ni).build()){}class GetRepositoryPolicyCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc(si).build()){}class InitiateLayerUploadCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc(oi).build()){}class ListTagsForResourceCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc(ii).build()){}class PutImageCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc(ai).build()){}class PutRegistryCatalogDataCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc(ci).build()){}class PutRepositoryCatalogDataCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc(li).build()){}class SetRepositoryPolicyCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc(ui).build()){}class TagResourceCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc(di).build()){}class UntagResourceCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc(Ai).build()){}class UploadLayerPartCommand extends(j.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc(pi).build()){}const mi=v.createPaginator(ECRPUBLICClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const gi=v.createPaginator(ECRPUBLICClient,DescribeImageTagsCommand,"nextToken","nextToken","maxResults");const fi=v.createPaginator(ECRPUBLICClient,DescribeRegistriesCommand,"nextToken","nextToken","maxResults");const hi=v.createPaginator(ECRPUBLICClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const yi={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreateRepositoryCommand:CreateRepositoryCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageTagsCommand:DescribeImageTagsCommand,DescribeRegistriesCommand:DescribeRegistriesCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutImageCommand:PutImageCommand,PutRegistryCatalogDataCommand:PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UploadLayerPartCommand:UploadLayerPartCommand};const Ei={paginateDescribeImages:mi,paginateDescribeImageTags:gi,paginateDescribeRegistries:fi,paginateDescribeRepositories:hi};class ECRPUBLIC extends ECRPUBLICClient{}j.createAggregatedClient(yi,ECRPUBLIC,{paginators:Ei});const Ci={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const Ii={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const bi={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};const Si={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};o={enumerable:true,get:function(){return j.Command}};o={enumerable:true,get:function(){return j.Client}};o=es;o=Vo;o=BatchCheckLayerAvailabilityCommand;o=ts;o=rs;o=$o;o=BatchDeleteImageCommand;o=ns;o=ss;o=jo;o=CompleteLayerUploadCommand;o=os;o=as;o=Yo;o=CreateRepositoryCommand;o=cs;o=ls;o=Jo;o=DeleteRepositoryCommand;o=Wo;o=DeleteRepositoryPolicyCommand;o=us;o=ds;o=As;o=ps;o=Xo;o=DescribeImageTagsCommand;o=fs;o=hs;o=Ko;o=DescribeImagesCommand;o=ms;o=gs;o=Zo;o=DescribeRegistriesCommand;o=ys;o=Es;o=ei;o=DescribeRepositoriesCommand;o=Cs;o=Is;t.Uz=ECRPUBLIC;o=ECRPUBLICClient;o=ECRPUBLICServiceException;o=ko;o=EmptyUploadException;o=bs;o=ti;o=GetAuthorizationTokenCommand;o=Ss;o=Bs;o=ri;o=GetRegistryCatalogDataCommand;o=ws;o=Rs;o=ni;o=GetRepositoryCatalogDataCommand;o=Qs;o=Ns;o=si;o=GetRepositoryPolicyCommand;o=xs;o=Ts;o=vs;o=ImageAlreadyExistsException;o=Ps;o=Ds;o=ImageDigestDoesNotMatchException;o=ks;o=_s;o=bi;o=Os;o=ImageNotFoundException;o=Ls;o=ImageTagAlreadyExistsException;o=Fs;o=Ms;o=oi;o=InitiateLayerUploadCommand;o=Us;o=Hs;o=InvalidLayerException;o=Gs;o=InvalidLayerPartException;o=zs;o=InvalidParameterException;o=qs;o=InvalidTagParameterException;o=Vs;o=$s;o=LayerAlreadyExistsException;o=js;o=Ii;o=Ys;o=Ci;o=LayerPartTooSmallException;o=Js;o=LayersNotFoundException;o=Ws;o=LimitExceededException;o=Ks;o=ii;o=ListTagsForResourceCommand;o=Xs;o=Zs;o=ai;o=PutImageCommand;o=eo;o=to;o=ci;o=PutRegistryCatalogDataCommand;o=ro;o=no;o=li;o=PutRepositoryCatalogDataCommand;o=so;o=oo;o=io;o=ReferencedImagesNotFoundException;o=ao;o=co;o=lo;o=Si;o=uo;o=RegistryNotFoundException;o=Ao;o=po;o=RepositoryAlreadyExistsException;o=mo;o=go;o=fo;o=RepositoryCatalogDataNotFoundException;o=ho;o=RepositoryNotEmptyException;o=yo;o=RepositoryNotFoundException;o=Eo;o=RepositoryPolicyNotFoundException;o=Co;o=ServerException;o=Io;o=ui;o=SetRepositoryPolicyCommand;o=bo;o=So;o=Bo;o=di;o=TagResourceCommand;o=wo;o=Ro;o=TooManyTagsException;o=Qo;o=UnsupportedCommandException;o=No;o=Ai;o=UntagResourceCommand;o=xo;o=To;o=pi;o=UploadLayerPartCommand;o=vo;o=Po;o=UploadNotFoundException;o=Do;o=gi;o=mi;o=fi;o=hi},8199:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(7643));const d=n(8704);const p=n(5861);const f=n(1656);const y=n(9316);const v=n(2711);const D=n(9618);const M=n(5704);const U=n(1279);const V=n(1411);const j=n(3638);const K=n(673);const ee=n(5518);const te=n(2180);const getRuntimeConfig=e=>{(0,V.emitWarningIfUnsupportedVersion)(process.version);const t=(0,K.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(V.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,d.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,M.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??j.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??p.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,M.loadConfig)(D.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,M.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:U.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,M.loadConfig)({...D.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??v.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??U.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,M.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,M.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,M.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},2180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const d=n(1411);const p=n(4494);const f=n(8385);const y=n(1577);const v=n(3182);const D=n(6072);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??f.fromBase64,base64Encoder:e?.base64Encoder??f.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??D.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??v.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new d.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??p.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},3218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRHttpAuthSchemeProvider=t.defaultECRHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRHttpAuthSchemeParametersProvider=defaultECRHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRHttpAuthSchemeProvider=defaultECRHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3628:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const d=n(4193);const p=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>p.get(e,(()=>(0,i.resolveEndpoint)(d.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},4193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",d="ref",p="url",f="properties",y="headers";const v=true,D="isSet",M="booleanEquals",U="error",V="endpoint",j="tree",K="PartitionResult",ee={[n]:true,default:false,type:"boolean"},te={[n]:false,type:"string"},re={[d]:"Endpoint"},ne={[o]:M,[i]:[{[d]:"UseFIPS"},true]},se={[o]:M,[i]:[{[d]:"UseDualStack"},true]},oe={},ie={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws"]},ae={[o]:M,[i]:[{[d]:"UseFIPS"},false]},ce={[o]:M,[i]:[{[d]:"UseDualStack"},false]},le={[p]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[f]:{},[y]:{}},ue={[p]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[f]:{},[y]:{}},de={[p]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[f]:{},[y]:{}},Ae={[p]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[f]:{},[y]:{}},pe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-us-gov"]},me={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-cn"]},ge={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-iso"]},fe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-iso-b"]},he={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-iso-e"]},ye={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-iso-f"]},Ee={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[d]:K},"name"]},"aws-eusc"]},Ce={[o]:"getAttr",[i]:[{[d]:K},"supportsFIPS"]},Ie={[o]:M,[i]:[true,{[o]:"getAttr",[i]:[{[d]:K},"supportsDualStack"]}]},be=[{[d]:"Region"}];const Se={version:"1.0",parameters:{UseDualStack:ee,UseFIPS:ee,Endpoint:te,Region:te},rules:[{conditions:[{[o]:D,[i]:[re]}],rules:[{conditions:[ne],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:U},{rules:[{conditions:[se],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:U},{endpoint:{[p]:re,[f]:oe,[y]:oe},type:V}],type:j}],type:j},{rules:[{conditions:[{[o]:D,[i]:be}],rules:[{conditions:[{[o]:"aws.partition",[i]:be,assign:K}],rules:[{conditions:[ie,ae,ce],endpoint:le,type:V},{conditions:[ie,ae,se],endpoint:ue,type:V},{conditions:[ie,ne,ce],endpoint:de,type:V},{conditions:[ie,ne,se],endpoint:Ae,type:V},{conditions:[pe,ae,ce],endpoint:le,type:V},{conditions:[pe,ae,se],endpoint:ue,type:V},{conditions:[pe,ne,ce],endpoint:de,type:V},{conditions:[pe,ne,se],endpoint:Ae,type:V},{conditions:[me,ae,ce],endpoint:le,type:V},{conditions:[me,ae,se],endpoint:ue,type:V},{conditions:[me,ne,ce],endpoint:de,type:V},{conditions:[me,ne,se],endpoint:Ae,type:V},{conditions:[ge,ae,ce],endpoint:le,type:V},{conditions:[ge,ae,se],endpoint:ue,type:V},{conditions:[ge,ne,ce],endpoint:de,type:V},{conditions:[ge,ne,se],endpoint:Ae,type:V},{conditions:[fe,ae,ce],endpoint:le,type:V},{conditions:[fe,ae,se],endpoint:ue,type:V},{conditions:[fe,ne,ce],endpoint:de,type:V},{conditions:[fe,ne,se],endpoint:Ae,type:V},{conditions:[he,ae,ce],endpoint:le,type:V},{conditions:[he,ae,se],endpoint:ue,type:V},{conditions:[he,ne,ce],endpoint:de,type:V},{conditions:[he,ne,se],endpoint:Ae,type:V},{conditions:[ye,ae,ce],endpoint:le,type:V},{conditions:[ye,ae,se],endpoint:ue,type:V},{conditions:[ye,ne,ce],endpoint:de,type:V},{conditions:[ye,ne,se],endpoint:Ae,type:V},{conditions:[Ee,ae,ce],endpoint:le,type:V},{conditions:[Ee,ae,se],endpoint:ue,type:V},{conditions:[Ee,ne,ce],endpoint:de,type:V},{conditions:[Ee,ne,se],endpoint:Ae,type:V},{conditions:[ne,se],rules:[{conditions:[{[o]:M,[i]:[v,Ce]},Ie],rules:[{endpoint:{[p]:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[f]:oe,[y]:oe},type:V}],type:j},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:U}],type:j},{conditions:[ne,ce],rules:[{conditions:[{[o]:M,[i]:[Ce,v]}],rules:[{endpoint:de,type:V}],type:j},{error:"FIPS is enabled but this partition does not support FIPS",type:U}],type:j},{conditions:[ae,se],rules:[{conditions:[Ie],rules:[{endpoint:{[p]:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[f]:oe,[y]:oe},type:V}],type:j},{error:"DualStack is enabled but this partition does not support DualStack",type:U}],type:j},{endpoint:le,type:V}],type:j}],type:j},{error:"Invalid Configuration: Missing Region",type:U}],type:j}]};t.ruleSet=Se},8249:(e,t,n)=>{var o;var i=n(2590);var d=n(5242);var p=n(1568);var f=n(2959);var y=n(9316);var v=n(402);var D=n(6890);var M=n(7212);var U=n(99);var V=n(9618);var j=n(1411);var K=n(3218);var ee=n(3107);var te=n(6463);var re=n(2356);var ne=n(5290);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});const se={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(te.getAwsRegionExtensionConfiguration(e),j.getDefaultExtensionConfiguration(e),re.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,te.resolveAwsRegionExtensionConfiguration(n),j.resolveDefaultRuntimeConfig(n),re.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRClient extends j.Client{config;constructor(...[e]){const t=ee.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const o=f.resolveUserAgentConfig(n);const j=V.resolveRetryConfig(o);const te=y.resolveRegionConfig(j);const re=i.resolveHostHeaderConfig(te);const ne=U.resolveEndpointConfig(re);const se=K.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(D.getSchemaSerdePlugin(this.config));this.middlewareStack.use(f.getUserAgentPlugin(this.config));this.middlewareStack.use(V.getRetryPlugin(this.config));this.middlewareStack.use(M.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(d.getLoggerPlugin(this.config));this.middlewareStack.use(p.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(v.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:K.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new v.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(v.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class ECRServiceException extends j.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}class InvalidParameterException extends ECRServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}class RepositoryNotFoundException extends ECRServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}class ServerException extends ECRServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}class LimitExceededException extends ECRServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}class UnableToGetUpstreamImageException extends ECRServiceException{name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamImageException.prototype)}}class ValidationException extends ECRServiceException{name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype)}}class EmptyUploadException extends ECRServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}class InvalidLayerException extends ECRServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}class KmsException extends ECRServiceException{name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e});Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}class LayerAlreadyExistsException extends ECRServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}class LayerPartTooSmallException extends ECRServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}class UploadNotFoundException extends ECRServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}class PullThroughCacheRuleAlreadyExistsException extends ECRServiceException{name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}class SecretNotFoundException extends ECRServiceException{name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SecretNotFoundException.prototype)}}class UnableToAccessSecretException extends ECRServiceException{name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToAccessSecretException.prototype)}}class UnableToDecryptSecretValueException extends ECRServiceException{name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToDecryptSecretValueException.prototype)}}class UnsupportedUpstreamRegistryException extends ECRServiceException{name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}class InvalidTagParameterException extends ECRServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}class RepositoryAlreadyExistsException extends ECRServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}class TooManyTagsException extends ECRServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}class TemplateAlreadyExistsException extends ECRServiceException{name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateAlreadyExistsException.prototype)}}class LifecyclePolicyNotFoundException extends ECRServiceException{name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}class PullThroughCacheRuleNotFoundException extends ECRServiceException{name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}class RegistryPolicyNotFoundException extends ECRServiceException{name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}class RepositoryNotEmptyException extends ECRServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}class TemplateNotFoundException extends ECRServiceException{name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateNotFoundException.prototype)}}class RepositoryPolicyNotFoundException extends ECRServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}class SigningConfigurationNotFoundException extends ECRServiceException{name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SigningConfigurationNotFoundException.prototype)}}class ExclusionNotFoundException extends ECRServiceException{name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionNotFoundException.prototype)}}class ImageNotFoundException extends ECRServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}class ScanNotFoundException extends ECRServiceException{name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}class LayerInaccessibleException extends ECRServiceException{name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}class LayersNotFoundException extends ECRServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}class UnableToGetUpstreamLayerException extends ECRServiceException{name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamLayerException.prototype)}}class LifecyclePolicyPreviewNotFoundException extends ECRServiceException{name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}class ImageAlreadyExistsException extends ECRServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}class ImageDigestDoesNotMatchException extends ECRServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}class ImageTagAlreadyExistsException extends ECRServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}class ReferencedImagesNotFoundException extends ECRServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}class BlockedByOrganizationPolicyException extends ECRServiceException{name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e});Object.setPrototypeOf(this,BlockedByOrganizationPolicyException.prototype)}}class ExclusionAlreadyExistsException extends ECRServiceException{name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionAlreadyExistsException.prototype)}}class ImageArchivedException extends ECRServiceException{name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageArchivedException.prototype)}}class UnsupportedImageTypeException extends ECRServiceException{name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}class LifecyclePolicyPreviewInProgressException extends ECRServiceException{name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}class ImageStorageClassUpdateNotSupportedException extends ECRServiceException{name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageStorageClassUpdateNotSupportedException.prototype)}}class InvalidLayerPartException extends ECRServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}const oe="Attribute";const ie="AuthorizationData";const ae="AuthorizationDataList";const ce="AwsEcrContainerImageDetails";const le="AttributeList";const ue="BlockedByOrganizationPolicyException";const de="BatchCheckLayerAvailability";const Ae="BatchCheckLayerAvailabilityRequest";const pe="BatchCheckLayerAvailabilityResponse";const me="BatchDeleteImage";const ge="BatchDeleteImageRequest";const fe="BatchDeleteImageResponse";const he="BatchGetImage";const ye="BatchGetImageRequest";const Ee="BatchGetImageResponse";const Ce="BatchGetRepositoryScanningConfiguration";const Ie="BatchGetRepositoryScanningConfigurationRequest";const be="BatchGetRepositoryScanningConfigurationResponse";const Se="CompleteLayerUpload";const Be="CompleteLayerUploadRequest";const we="CompleteLayerUploadResponse";const Re="CreatePullThroughCacheRule";const Qe="CreatePullThroughCacheRuleRequest";const Ne="CreatePullThroughCacheRuleResponse";const xe="CreateRepository";const Te="CreateRepositoryCreationTemplate";const ve="CreateRepositoryCreationTemplateRequest";const Pe="CreateRepositoryCreationTemplateResponse";const De="CreateRepositoryRequest";const ke="CreateRepositoryResponse";const _e="CvssScore";const Oe="CvssScoreAdjustment";const Le="CvssScoreAdjustmentList";const Fe="CvssScoreDetails";const Me="CvssScoreList";const Ue="DescribeImages";const He="DescribeImagesFilter";const Ge="DescribeImagesRequest";const ze="DescribeImageReplicationStatus";const qe="DescribeImageReplicationStatusRequest";const Ve="DescribeImageReplicationStatusResponse";const $e="DescribeImagesResponse";const je="DescribeImageScanFindings";const Ye="DescribeImageScanFindingsRequest";const Je="DescribeImageScanFindingsResponse";const We="DescribeImageSigningStatus";const Ke="DescribeImageSigningStatusRequest";const Xe="DescribeImageSigningStatusResponse";const Ze="DeleteLifecyclePolicy";const dt="DeleteLifecyclePolicyRequest";const At="DeleteLifecyclePolicyResponse";const mt="DeletePullThroughCacheRule";const yt="DeletePullThroughCacheRuleRequest";const Et="DeletePullThroughCacheRuleResponse";const Ct="DescribePullThroughCacheRulesRequest";const It="DescribePullThroughCacheRulesResponse";const bt="DescribePullThroughCacheRules";const St="DeregisterPullTimeUpdateExclusion";const Bt="DeregisterPullTimeUpdateExclusionRequest";const wt="DeregisterPullTimeUpdateExclusionResponse";const Rt="DeleteRepository";const Qt="DeleteRepositoryCreationTemplate";const Nt="DeleteRepositoryCreationTemplateRequest";const xt="DeleteRepositoryCreationTemplateResponse";const Tt="DescribeRepositoryCreationTemplatesRequest";const vt="DescribeRepositoryCreationTemplatesResponse";const Pt="DescribeRepositoryCreationTemplates";const Dt="DeleteRegistryPolicy";const kt="DeleteRegistryPolicyRequest";const _t="DeleteRegistryPolicyResponse";const Ot="DeleteRepositoryPolicyRequest";const Lt="DeleteRepositoryPolicyResponse";const Ft="DeleteRepositoryPolicy";const Mt="DeleteRepositoryRequest";const Ut="DeleteRepositoryResponse";const Ht="DescribeRegistryRequest";const Gt="DescribeRegistryResponse";const zt="DescribeRepositoriesRequest";const qt="DescribeRepositoriesResponse";const Vt="DescribeRegistry";const $t="DescribeRepositories";const jt="DeleteSigningConfiguration";const Yt="DeleteSigningConfigurationRequest";const Jt="DeleteSigningConfigurationResponse";const Wt="ExclusionAlreadyExistsException";const Kt="EncryptionConfiguration";const Xt="EncryptionConfigurationForRepositoryCreationTemplate";const Zt="EnhancedImageScanFinding";const er="EnhancedImageScanFindingList";const tr="ExclusionNotFoundException";const rr="EmptyUploadException";const nr="GetAccountSetting";const sr="GetAccountSettingRequest";const or="GetAccountSettingResponse";const ir="GetAuthorizationToken";const ar="GetAuthorizationTokenRequest";const cr="GetAuthorizationTokenResponse";const lr="GetDownloadUrlForLayer";const ur="GetDownloadUrlForLayerRequest";const dr="GetDownloadUrlForLayerResponse";const Ar="GetLifecyclePolicy";const pr="GetLifecyclePolicyPreview";const mr="GetLifecyclePolicyPreviewRequest";const gr="GetLifecyclePolicyPreviewResponse";const fr="GetLifecyclePolicyRequest";const hr="GetLifecyclePolicyResponse";const yr="GetRegistryPolicy";const Er="GetRegistryPolicyRequest";const Cr="GetRegistryPolicyResponse";const Ir="GetRepositoryPolicyRequest";const br="GetRepositoryPolicyResponse";const Sr="GetRepositoryPolicy";const Br="GetRegistryScanningConfiguration";const wr="GetRegistryScanningConfigurationRequest";const Rr="GetRegistryScanningConfigurationResponse";const Qr="GetSigningConfiguration";const Nr="GetSigningConfigurationRequest";const xr="GetSigningConfigurationResponse";const Tr="Image";const vr="ImageArchivedException";const Pr="ImageAlreadyExistsException";const Dr="ImageDetail";const kr="ImageDigestDoesNotMatchException";const _r="ImageDetailList";const Or="ImageFailure";const Lr="ImageFailureList";const Fr="ImageIdentifier";const Mr="ImageIdentifierList";const Ur="ImageList";const Hr="InvalidLayerException";const Gr="InvalidLayerPartException";const zr="InitiateLayerUpload";const qr="InitiateLayerUploadRequest";const Vr="InitiateLayerUploadResponse";const $r="ImageNotFoundException";const jr="InvalidParameterException";const Yr="ImageReferrer";const Jr="ImageReferrerList";const Wr="ImageReplicationStatus";const Kr="ImageReplicationStatusList";const Xr="ImageScanningConfiguration";const Zr="ImageStorageClassUpdateNotSupportedException";const en="ImageScanFinding";const tn="ImageScanFindingList";const rn="ImageScanFindingsSummary";const nn="ImageScanFindings";const sn="ImageScanStatus";const on="ImageSigningStatusList";const an="ImageSigningStatus";const cn="ImageTagAlreadyExistsException";const ln="ImageTagMutabilityExclusionFilter";const un="ImageTagMutabilityExclusionFilters";const dn="InvalidTagParameterException";const An="Key";const pn="KmsException";const mn="Layer";const gn="LayerAlreadyExistsException";const hn="LimitExceededException";const yn="LayerFailure";const En="LayerFailureList";const Cn="ListImages";const In="LayerInaccessibleException";const bn="ListImagesFilter";const Sn="ListImagesRequest";const Bn="ListImageReferrersFilter";const wn="ListImageReferrersRequest";const Rn="ListImageReferrersResponse";const Qn="ListImagesResponse";const Nn="ListImageReferrers";const xn="LayerList";const Tn="LayersNotFoundException";const vn="LifecyclePolicyNotFoundException";const Pn="LifecyclePolicyPreviewFilter";const Dn="LifecyclePolicyPreviewInProgressException";const kn="LifecyclePolicyPreviewNotFoundException";const _n="LifecyclePolicyPreviewResult";const On="LifecyclePolicyPreviewResultList";const Ln="LifecyclePolicyPreviewSummary";const Fn="LifecyclePolicyRuleAction";const Mn="LayerPartTooSmallException";const Un="ListPullTimeUpdateExclusions";const Hn="ListPullTimeUpdateExclusionsRequest";const Gn="ListPullTimeUpdateExclusionsResponse";const zn="ListTagsForResource";const qn="ListTagsForResourceRequest";const Vn="ListTagsForResourceResponse";const $n="PutAccountSetting";const jn="PutAccountSettingRequest";const Yn="PutAccountSettingResponse";const Jn="PutImage";const Wn="PutImageRequest";const Kn="PutImageResponse";const Xn="PutImageScanningConfiguration";const Zn="PutImageScanningConfigurationRequest";const es="PutImageScanningConfigurationResponse";const ts="PutImageTagMutability";const rs="PutImageTagMutabilityRequest";const ns="PutImageTagMutabilityResponse";const ss="PutLifecyclePolicy";const os="PutLifecyclePolicyRequest";const as="PutLifecyclePolicyResponse";const cs="PutReplicationConfiguration";const ls="PutReplicationConfigurationRequest";const us="PutReplicationConfigurationResponse";const ds="PutRegistryPolicy";const As="PutRegistryPolicyRequest";const ps="PutRegistryPolicyResponse";const ms="PutRegistryScanningConfiguration";const gs="PutRegistryScanningConfigurationRequest";const fs="PutRegistryScanningConfigurationResponse";const hs="PutSigningConfiguration";const ys="PutSigningConfigurationRequest";const Es="PutSigningConfigurationResponse";const Cs="PullThroughCacheRule";const Is="PullThroughCacheRuleAlreadyExistsException";const bs="PullThroughCacheRuleList";const Ss="PullThroughCacheRuleNotFoundException";const Bs="PackageVulnerabilityDetails";const ws="Recommendation";const Rs="RepositoryAlreadyExistsException";const Qs="ReplicationConfiguration";const Ns="RepositoryCreationTemplate";const xs="RepositoryCreationTemplateList";const Ts="ReplicationDestination";const vs="ReplicationDestinationList";const Ps="ResourceDetails";const Ds="RepositoryFilter";const ks="RepositoryFilterList";const _s="ReferencedImagesNotFoundException";const Os="RepositoryList";const Ls="ResourceList";const Fs="RepositoryNotEmptyException";const Ms="RepositoryNotFoundException";const Us="RegistryPolicyNotFoundException";const Hs="RepositoryPolicyNotFoundException";const Gs="RegisterPullTimeUpdateExclusion";const zs="RegisterPullTimeUpdateExclusionRequest";const qs="RegisterPullTimeUpdateExclusionResponse";const Vs="ReplicationRule";const $s="ReplicationRuleList";const js="RegistryScanningConfiguration";const Ys="RepositoryScanningConfigurationFailure";const Js="RepositoryScanningConfigurationFailureList";const Ws="RepositoryScanningConfigurationList";const Ks="RepositoryScanningConfiguration";const Xs="RegistryScanningRule";const Zs="RegistryScanningRuleList";const eo="Remediation";const to="Repository";const ro="Resource";const no="SigningConfiguration";const so="SigningConfigurationNotFoundException";const oo="ScoreDetails";const io="ServerException";const ao="SubjectIdentifier";const co="StartImageScan";const lo="StartImageScanRequest";const uo="StartImageScanResponse";const Ao="StartLifecyclePolicyPreview";const po="StartLifecyclePolicyPreviewRequest";const mo="StartLifecyclePolicyPreviewResponse";const go="ScanNotFoundException";const fo="SecretNotFoundException";const ho="SigningRule";const yo="ScanningRepositoryFilter";const Eo="ScanningRepositoryFilterList";const Co="SigningRepositoryFilterList";const Io="SigningRepositoryFilter";const bo="SigningRuleList";const So="SetRepositoryPolicy";const Bo="SetRepositoryPolicyRequest";const wo="SetRepositoryPolicyResponse";const Ro="Tag";const Qo="TemplateAlreadyExistsException";const No="TransitioningImageTotalCount";const xo="TransitioningImageTotalCounts";const To="TagList";const vo="TooManyTagsException";const Po="TemplateNotFoundException";const Do="TagResource";const ko="TagResourceRequest";const _o="TagResourceResponse";const Oo="UpdateImageStorageClass";const Lo="UpdateImageStorageClassRequest";const Fo="UpdateImageStorageClassResponse";const Mo="UnsupportedImageTypeException";const Uo="UploadLayerPart";const Ho="UploadLayerPartRequest";const Go="UploadLayerPartResponse";const zo="UploadNotFoundException";const qo="UpdatePullThroughCacheRule";const Vo="UpdatePullThroughCacheRuleRequest";const $o="UpdatePullThroughCacheRuleResponse";const jo="UntagResource";const Yo="UpdateRepositoryCreationTemplate";const Jo="UpdateRepositoryCreationTemplateRequest";const Wo="UpdateRepositoryCreationTemplateResponse";const Ko="UntagResourceRequest";const Xo="UntagResourceResponse";const Zo="UnableToAccessSecretException";const ei="UnableToDecryptSecretValueException";const ti="UnableToGetUpstreamImageException";const ri="UnableToGetUpstreamLayerException";const ni="UnsupportedUpstreamRegistryException";const si="Value";const oi="ValidationException";const ii="VulnerablePackage";const ai="VulnerablePackagesList";const ci="ValidatePullThroughCacheRule";const li="ValidatePullThroughCacheRuleRequest";const ui="ValidatePullThroughCacheRuleResponse";const di="architecture";const Ai="awsAccountId";const pi="authorizationData";const mi="awsEcrContainerImage";const gi="appliedFor";const fi="acceptedMediaTypes";const hi="artifactMediaType";const yi="appliedRulePriority";const Ei="artifactStatus";const Ci="appliedScanFilters";const Ii="authorizationToken";const bi="artifactType";const Si="artifactTypes";const Bi="action";const wi="adjustments";const Ri="annotations";const Qi="arch";const Ni="attributes";const xi="author";const Ti="baseScore";const vi="client";const Pi="credentialArn";const Di="createdAt";const ki="customRoleArn";const _i="cvss";const Oi="description";const Li="downloadUrl";const Fi="destinations";const Mi="details";const Ui="digest";const Hi="error";const Gi="expiresAt";const zi="exploitAvailable";const qi="encryptionConfiguration";const Vi="enhancedFindings";const $i="expiringImageTotalCount";const ji="ecrRepositoryPrefix";const Yi="ecrRepositoryPrefixes";const Ji="encryptionType";const Wi="epoch";const Ki="failures";const Xi="findingArn";const Zi="fixAvailable";const ea="failureCode";const ta="fixedInVersion";const ra="firstObservedAt";const na="filePath";const sa="failureReason";const oa="findingSeverityCounts";const ia="filterType";const aa="failure";const ca="filter";const la="findings";const ua="force";const da="httpError";const Aa="images";const pa="imageDetails";const ma="imageDigest";const ga="imageHash";const fa="imageIds";const ha="imageId";const ya="imageManifest";const Ea="imageManifestMediaType";const Ca="imagePushedAt";const Ia="imageStatus";const ba="imageScanningConfiguration";const Sa="imageScanCompletedAt";const Ba="imageScanFindings";const wa="imageScanFindingsSummary";const Ra="imageSizeInBytes";const Qa="imageScanStatus";const Na="imageTags";const xa="imageTotalCount";const Ta="imageTagMutability";const va="imageTagMutabilityExclusionFilters";const Pa="imageTag";const Da="inUseCount";const ka="isValid";const _a="id";const Oa="image";const La="key";const Fa="kmsError";const Ma="kmsKey";const Ua="layers";const Ha="layerAvailability";const Ga="lastArchivedAt";const za="lastActivatedAt";const qa="lastByteReceived";const Va="layerDigests";const $a="layerDigest";const ja="lastEvaluatedAt";const Ya="lastInUseAt";const Ja="lastObservedAt";const Wa="lifecyclePolicy";const Ka="layerPartBlob";const Xa="lifecyclePolicyText";const Za="lastRecordedPullTime";const ec="layerSize";const tc="lastValidByteReceived";const rc="message";const nc="maxResults";const sc="mediaType";const oc="metric";const ic="name";const ac="nextToken";const cc="platform";const lc="pushedAt";const uc="principalArn";const dc="proxyEndpoint";const Ac="partFirstByte";const pc="partLastByte";const mc="packageManager";const gc="previewResults";const fc="partSize";const hc="policyText";const yc="pullThroughCacheRules";const Ec="pullTimeUpdateExclusions";const Cc="packageVulnerabilityDetails";const Ic="prefix";const bc="prefixes";const Sc="registry";const Bc="resourceArn";const wc="repositoryArn";const Rc="replicationConfiguration";const Qc="repositoryCreationTemplate";const Nc="repositoryCreationTemplates";const xc="repositoryFilters";const Tc="registryId";const vc="registryIds";const Pc="repositoryName";const Dc="repositoryNames";const kc="repositoryPolicy";const _c="replicationStatuses";const Oc="registryScanningConfiguration";const Lc="resourceTags";const Fc="referenceUrls";const Mc="repositoryUri";const Uc="relatedVulnerabilities";const Hc="repository";const Gc="reason";const zc="recommendation";const qc="referrers";const Vc="region";const $c="release";const jc="remediation";const Yc="repositories";const Jc="resources";const Wc="rules";const Kc="source";const Xc="scanningConfigurations";const Zc="scanningConfiguration";const el="signingConfiguration";const tl="storageClass";const rl="scoreDetails";const nl="scanFrequency";const sl="subjectId";const ol="sourceLayerHash";const il="subjectManifestDigest";const al="scanOnPush";const cl="signingProfileArn";const ll="scoreSource";const ul="signingStatuses";const dl="scanType";const Al="sourceUrl";const pl="scoringVector";const ml="score";const gl="severity";const fl="server";const hl="size";const yl="smithy.ts.sdk.synthetic.com.amazonaws.ecr";const El="status";const Cl="summary";const Il="tags";const bl="transitioningImageTotalCounts";const Sl="tagKeys";const Bl="tagStatus";const wl="targetStorageClass";const Rl="text";const Ql="title";const Nl="type";const xl="uri";const Tl="updatedAt";const vl="uploadId";const Pl="upstreamRegistry";const Dl="upstreamRepositoryPrefix";const kl="upstreamRegistryUrl";const _l="url";const Ol="value";const Ll="vendorCreatedAt";const Fl="vulnerabilityId";const Ml="vulnerablePackages";const Ul="vendorSeverity";const Hl="vulnerabilitySourceUpdatedAt";const Gl="vendorUpdatedAt";const zl="version";const ql="com.amazonaws.ecr";var Vl=[3,ql,oe,0,[La,Ol],[0,0],1];var $l=[3,ql,ie,0,[Ii,Gi,dc],[0,4,0]];var jl=[3,ql,ce,0,[di,xi,ga,Na,cc,lc,Ya,Da,Sc,Pc],[0,0,0,64|0,0,4,4,1,0,0]];var Yl=[3,ql,Ae,0,[Pc,Va,Tc],[0,64|0,0],2];var Jl=[3,ql,pe,0,[Ua,Ki],[()=>um,()=>lm]];var Wl=[3,ql,ge,0,[Pc,fa,Tc],[0,()=>rm,0],2];var Kl=[3,ql,fe,0,[fa,Ki],[()=>rm,()=>tm]];var Xl=[3,ql,ye,0,[Pc,fa,Tc,fi],[0,()=>rm,0,64|0],2];var Zl=[3,ql,Ee,0,[Aa,Ki],[()=>nm,()=>tm]];var eu=[3,ql,Ie,0,[Dc],[64|0],1];var tu=[3,ql,be,0,[Xc,Ki],[()=>Cm,()=>Em]];var ru=[-3,ql,ue,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(ru,BlockedByOrganizationPolicyException);var nu=[3,ql,Be,0,[Pc,vl,Va,Tc],[0,0,64|0,0],3];var su=[3,ql,we,0,[Tc,Pc,vl,$a],[0,0,0,0]];var ou=[3,ql,Qe,0,[ji,kl,Tc,Pl,Pi,ki,Dl],[0,0,0,0,0,0,0],2];var iu=[3,ql,Ne,0,[ji,kl,Di,Tc,Pl,Pi,ki,Dl],[0,0,4,0,0,0,0,0]];var au=[3,ql,ve,0,[Ic,gi,Oi,qi,Lc,Ta,va,kc,Wa,ki],[0,64|0,0,()=>Ju,()=>wm,0,()=>cm,0,0,0],2];var cu=[3,ql,Pe,0,[Tc,Qc],[0,()=>YA]];var lu=[3,ql,De,0,[Pc,Tc,Il,Ta,va,ba,qi],[0,0,()=>wm,0,()=>cm,()=>Td,()=>Yu],1];var uu=[3,ql,ke,0,[Hc],[()=>$A]];var du=[3,ql,_e,0,[Ti,pl,Kc,zl],[1,0,0,0]];var Au=[3,ql,Oe,0,[oc,Gc],[0,0]];var pu=[3,ql,Fe,0,[wi,ml,ll,pl,zl],[()=>Kp,1,0,0,0]];var mu=[3,ql,dt,0,[Pc,Tc],[0,0],1];var gu=[3,ql,At,0,[Tc,Pc,Xa,ja],[0,0,0,4]];var fu=[3,ql,yt,0,[ji,Tc],[0,0],1];var hu=[3,ql,Et,0,[ji,kl,Di,Tc,Pi,ki,Dl],[0,0,4,0,0,0,0]];var yu=[3,ql,kt,0,[],[]];var Eu=[3,ql,_t,0,[Tc,hc],[0,0]];var Cu=[3,ql,Nt,0,[Ic],[0],1];var Iu=[3,ql,xt,0,[Tc,Qc],[0,()=>YA]];var bu=[3,ql,Ot,0,[Pc,Tc],[0,0],1];var Su=[3,ql,Lt,0,[Tc,Pc,hc],[0,0,0]];var Bu=[3,ql,Mt,0,[Pc,Tc,ua],[0,0,2],1];var wu=[3,ql,Ut,0,[Hc],[()=>$A]];var Ru=[3,ql,Yt,0,[],[]];var Qu=[3,ql,Jt,0,[Tc,el],[0,()=>dp]];var Nu=[3,ql,Bt,0,[uc],[0],1];var xu=[3,ql,wt,0,[uc],[0]];var Tu=[3,ql,qe,0,[Pc,ha,Tc],[0,()=>Sd,0],2];var vu=[3,ql,Ve,0,[Pc,ha,_c],[0,()=>Sd,()=>om]];var Pu=[3,ql,Ye,0,[Pc,ha,Tc,ac,nc],[0,()=>Sd,0,0,1],2];var Du=[3,ql,Je,0,[Tc,Pc,ha,Qa,Ba,ac],[0,0,()=>Sd,()=>vd,()=>Nd,0]];var ku=[3,ql,He,0,[Bl,Ia],[0,0]];var _u=[3,ql,Ke,0,[Pc,ha,Tc],[0,()=>Sd,0],2];var Ou=[3,ql,Xe,0,[Pc,ha,Tc,ul],[0,()=>Sd,0,()=>am]];var Lu=[3,ql,Ge,0,[Pc,Tc,fa,ac,nc,ca],[0,0,()=>rm,0,1,()=>ku],1];var Fu=[3,ql,$e,0,[pa,ac],[()=>em,0]];var Mu=[3,ql,Ct,0,[Tc,Yi,ac,nc],[0,64|0,0,1]];var Uu=[3,ql,It,0,[yc,ac],[()=>Am,0]];var Hu=[3,ql,Ht,0,[],[]];var Gu=[3,ql,Gt,0,[Tc,Rc],[0,()=>zA]];var zu=[3,ql,zt,0,[Tc,Dc,ac,nc],[0,64|0,0,1]];var qu=[3,ql,qt,0,[Yc,ac],[()=>ym,0]];var Vu=[3,ql,Tt,0,[bc,ac,nc],[64|0,0,1]];var $u=[3,ql,vt,0,[Tc,Nc,ac],[0,()=>fm,0]];var ju=[-3,ql,rr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(ju,EmptyUploadException);var Yu=[3,ql,Kt,0,[Ji,Ma],[0,0],1];var Ju=[3,ql,Xt,0,[Ji,Ma],[0,0],1];var Wu=[3,ql,Zt,0,[Ai,Oi,Xi,ra,Ja,Cc,jc,Jc,ml,rl,gl,El,Ql,Nl,Tl,Zi,zi],[0,0,0,4,4,()=>pA,()=>GA,()=>Im,1,()=>ip,0,0,0,0,4,0,0]];var Ku=[-3,ql,Wt,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Ku,ExclusionAlreadyExistsException);var Xu=[-3,ql,tr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Xu,ExclusionNotFoundException);var Zu=[3,ql,sr,0,[ic],[0],1];var ed=[3,ql,or,0,[ic,Ol],[0,0]];var td=[3,ql,ar,0,[vc],[64|0]];var rd=[3,ql,cr,0,[pi],[()=>Wp]];var nd=[3,ql,ur,0,[Pc,$a,Tc],[0,0,0],2];var sd=[3,ql,dr,0,[Li,$a],[0,0]];var od=[3,ql,mr,0,[Pc,Tc,fa,ac,nc,ca],[0,0,()=>rm,0,1,()=>Wd],1];var id=[3,ql,gr,0,[Tc,Pc,Xa,El,ac,gc,Cl],[0,0,0,0,0,()=>dm,()=>eA]];var ad=[3,ql,fr,0,[Pc,Tc],[0,0],1];var cd=[3,ql,hr,0,[Tc,Pc,Xa,ja],[0,0,0,4]];var ld=[3,ql,Er,0,[],[]];var ud=[3,ql,Cr,0,[Tc,hc],[0,0]];var dd=[3,ql,wr,0,[],[]];var Ad=[3,ql,Rr,0,[Tc,Zc],[0,()=>UA]];var pd=[3,ql,Ir,0,[Pc,Tc],[0,0],1];var md=[3,ql,br,0,[Tc,Pc,hc],[0,0,0]];var gd=[3,ql,Nr,0,[],[]];var fd=[3,ql,xr,0,[Tc,el],[0,()=>dp]];var hd=[3,ql,Tr,0,[Tc,Pc,ha,ya,Ea],[0,0,()=>Sd,0,0]];var yd=[-3,ql,Pr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(yd,ImageAlreadyExistsException);var Ed=[-3,ql,vr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Ed,ImageArchivedException);var Cd=[3,ql,Dr,0,[Tc,Pc,ma,Na,Ra,Ca,Qa,wa,Ea,hi,Za,il,Ia,Ga,za],[0,0,0,64|0,1,4,()=>vd,()=>xd,0,0,4,0,0,4,4]];var Id=[-3,ql,kr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Id,ImageDigestDoesNotMatchException);var bd=[3,ql,Or,0,[ha,ea,sa],[()=>Sd,0,0]];var Sd=[3,ql,Fr,0,[ma,Pa],[0,0]];var Bd=[-3,ql,$r,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Bd,ImageNotFoundException);var wd=[3,ql,Yr,0,[Ui,sc,hl,bi,Ri,Ei],[0,0,1,0,128|0,0],3];var Rd=[3,ql,Wr,0,[Vc,Tc,El,ea],[0,0,0,0]];var Qd=[3,ql,en,0,[ic,Oi,xl,gl,Ni],[0,0,0,0,()=>Jp]];var Nd=[3,ql,nn,0,[Sa,Hl,oa,la,Vi],[4,4,128|1,()=>im,()=>Zp]];var xd=[3,ql,rn,0,[Sa,Hl,oa],[4,4,128|1]];var Td=[3,ql,Xr,0,[al],[2]];var vd=[3,ql,sn,0,[El,Oi],[0,0]];var Pd=[3,ql,an,0,[cl,ea,sa,El],[0,0,0,0]];var Dd=[-3,ql,Zr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Dd,ImageStorageClassUpdateNotSupportedException);var kd=[-3,ql,cn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(kd,ImageTagAlreadyExistsException);var _d=[3,ql,ln,0,[ia,ca],[0,0],2];var Od=[3,ql,qr,0,[Pc,Tc],[0,0],1];var Ld=[3,ql,Vr,0,[vl,fc],[0,1]];var Fd=[-3,ql,Hr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Fd,InvalidLayerException);var Md=[-3,ql,Gr,{[Hi]:vi},[Tc,Pc,vl,tc,rc],[0,0,0,1,0]];D.TypeRegistry.for(ql).registerError(Md,InvalidLayerPartException);var Ud=[-3,ql,jr,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Ud,InvalidParameterException);var Hd=[-3,ql,dn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Hd,InvalidTagParameterException);var Gd=[-3,ql,pn,{[Hi]:vi},[rc,Fa],[0,0]];D.TypeRegistry.for(ql).registerError(Gd,KmsException);var zd=[3,ql,mn,0,[$a,Ha,ec,sc],[0,0,1,0]];var qd=[-3,ql,gn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(qd,LayerAlreadyExistsException);var Vd=[3,ql,yn,0,[$a,ea,sa],[0,0,0]];var $d=[-3,ql,In,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError($d,LayerInaccessibleException);var jd=[-3,ql,Mn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(jd,LayerPartTooSmallException);var Yd=[-3,ql,Tn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Yd,LayersNotFoundException);var Jd=[-3,ql,vn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Jd,LifecyclePolicyNotFoundException);var Wd=[3,ql,Pn,0,[Bl],[0]];var Kd=[-3,ql,Dn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Kd,LifecyclePolicyPreviewInProgressException);var Xd=[-3,ql,kn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Xd,LifecyclePolicyPreviewNotFoundException);var Zd=[3,ql,_n,0,[Na,ma,Ca,Bi,yi,tl],[64|0,0,4,()=>tA,1,0]];var eA=[3,ql,Ln,0,[$i,bl],[1,()=>Rm]];var tA=[3,ql,Fn,0,[Nl,wl],[0,0]];var rA=[-3,ql,hn,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(rA,LimitExceededException);var nA=[3,ql,Bn,0,[Si,Ei],[64|0,0]];var sA=[3,ql,wn,0,[Pc,sl,Tc,ca,ac,nc],[0,()=>Ep,0,()=>nA,0,1],2];var oA=[3,ql,Rn,0,[qc,ac],[()=>sm,0]];var iA=[3,ql,bn,0,[Bl,Ia],[0,0]];var aA=[3,ql,Sn,0,[Pc,Tc,ac,nc,ca],[0,0,0,1,()=>iA],1];var cA=[3,ql,Qn,0,[fa,ac],[()=>rm,0]];var lA=[3,ql,Hn,0,[nc,ac],[1,0]];var uA=[3,ql,Gn,0,[Ec,ac],[64|0,0]];var dA=[3,ql,qn,0,[Bc],[0],1];var AA=[3,ql,Vn,0,[Il],[()=>wm]];var pA=[3,ql,Bs,0,[_i,Fc,Uc,Kc,Al,Ll,Ul,Gl,Fl,Ml],[()=>Xp,64|0,64|0,0,0,4,0,4,0,()=>Qm]];var mA=[3,ql,Cs,0,[ji,kl,Di,Tc,Pi,ki,Dl,Pl,Tl],[0,0,4,0,0,0,0,0,4]];var gA=[-3,ql,Is,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(gA,PullThroughCacheRuleAlreadyExistsException);var fA=[-3,ql,Ss,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(fA,PullThroughCacheRuleNotFoundException);var hA=[3,ql,jn,0,[ic,Ol],[0,0],2];var yA=[3,ql,Yn,0,[ic,Ol],[0,0]];var EA=[3,ql,Wn,0,[Pc,ya,Tc,Ea,Pa,ma],[0,0,0,0,0,0],2];var CA=[3,ql,Kn,0,[Oa],[()=>hd]];var IA=[3,ql,Zn,0,[Pc,ba,Tc],[0,()=>Td,0],2];var bA=[3,ql,es,0,[Tc,Pc,ba],[0,0,()=>Td]];var SA=[3,ql,rs,0,[Pc,Ta,Tc,va],[0,0,0,()=>cm],2];var BA=[3,ql,ns,0,[Tc,Pc,Ta,va],[0,0,0,()=>cm]];var wA=[3,ql,os,0,[Pc,Xa,Tc],[0,0,0],2];var RA=[3,ql,as,0,[Tc,Pc,Xa],[0,0,0]];var QA=[3,ql,As,0,[hc],[0],1];var NA=[3,ql,ps,0,[Tc,hc],[0,0]];var xA=[3,ql,gs,0,[dl,Wc],[0,()=>pm]];var TA=[3,ql,fs,0,[Oc],[()=>UA]];var vA=[3,ql,ls,0,[Rc],[()=>zA],1];var PA=[3,ql,us,0,[Rc],[()=>zA]];var DA=[3,ql,ys,0,[el],[()=>dp],1];var kA=[3,ql,Es,0,[el],[()=>dp]];var _A=[3,ql,ws,0,[_l,Rl],[0,0]];var OA=[-3,ql,_s,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(OA,ReferencedImagesNotFoundException);var LA=[3,ql,zs,0,[uc],[0],1];var FA=[3,ql,qs,0,[uc,Di],[0,4]];var MA=[-3,ql,Us,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(MA,RegistryPolicyNotFoundException);var UA=[3,ql,js,0,[dl,Wc],[0,()=>pm]];var HA=[3,ql,Xs,0,[nl,xc],[0,()=>bm],2];var GA=[3,ql,eo,0,[zc],[()=>_A]];var zA=[3,ql,Qs,0,[Wc],[()=>gm],1];var qA=[3,ql,Ts,0,[Vc,Tc],[0,0],2];var VA=[3,ql,Vs,0,[Fi,xc],[()=>mm,()=>hm],1];var $A=[3,ql,to,0,[wc,Tc,Pc,Mc,Di,Ta,va,ba,qi],[0,0,0,0,4,0,()=>cm,()=>Td,()=>Yu]];var jA=[-3,ql,Rs,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(jA,RepositoryAlreadyExistsException);var YA=[3,ql,Ns,0,[Ic,Oi,qi,Lc,Ta,va,kc,Wa,gi,ki,Di,Tl],[0,0,()=>Ju,()=>wm,0,()=>cm,0,0,64|0,0,4,4]];var JA=[3,ql,Ds,0,[ca,ia],[0,0],2];var WA=[-3,ql,Fs,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(WA,RepositoryNotEmptyException);var KA=[-3,ql,Ms,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(KA,RepositoryNotFoundException);var XA=[-3,ql,Hs,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(XA,RepositoryPolicyNotFoundException);var ZA=[3,ql,Ks,0,[wc,Pc,al,nl,Ci],[0,0,2,0,()=>bm]];var ep=[3,ql,Ys,0,[Pc,ea,sa],[0,0,0]];var tp=[3,ql,ro,0,[Mi,_a,Il,Nl],[()=>rp,0,128|0,0]];var rp=[3,ql,Ps,0,[mi],[()=>jl]];var np=[3,ql,yo,0,[ca,ia],[0,0],2];var sp=[-3,ql,go,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(sp,ScanNotFoundException);var ip=[3,ql,oo,0,[_i],[()=>pu]];var ap=[-3,ql,fo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(ap,SecretNotFoundException);var cp=[-3,ql,io,{[Hi]:fl},[rc],[0]];D.TypeRegistry.for(ql).registerError(cp,ServerException);var lp=[3,ql,Bo,0,[Pc,hc,Tc,ua],[0,0,0,2],2];var up=[3,ql,wo,0,[Tc,Pc,hc],[0,0,0]];var dp=[3,ql,no,0,[Wc],[()=>Bm],1];var Ap=[-3,ql,so,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Ap,SigningConfigurationNotFoundException);var pp=[3,ql,Io,0,[ca,ia],[0,0],2];var mp=[3,ql,ho,0,[cl,xc],[0,()=>Sm],1];var gp=[3,ql,lo,0,[Pc,ha,Tc],[0,()=>Sd,0],2];var fp=[3,ql,uo,0,[Tc,Pc,ha,Qa],[0,0,()=>Sd,()=>vd]];var hp=[3,ql,po,0,[Pc,Tc,Xa],[0,0,0],1];var yp=[3,ql,mo,0,[Tc,Pc,Xa,El],[0,0,0,0]];var Ep=[3,ql,ao,0,[ma],[0],1];var Cp=[3,ql,Ro,0,[An,si],[0,0],2];var Ip=[3,ql,ko,0,[Bc,Il],[0,()=>wm],2];var bp=[3,ql,_o,0,[],[]];var Sp=[-3,ql,Qo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Sp,TemplateAlreadyExistsException);var Bp=[-3,ql,Po,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Bp,TemplateNotFoundException);var wp=[-3,ql,vo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(wp,TooManyTagsException);var Rp=[3,ql,No,0,[wl,xa],[0,1]];var Qp=[-3,ql,Zo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Qp,UnableToAccessSecretException);var Np=[-3,ql,ei,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Np,UnableToDecryptSecretValueException);var xp=[-3,ql,ti,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(xp,UnableToGetUpstreamImageException);var Tp=[-3,ql,ri,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Tp,UnableToGetUpstreamLayerException);var vp=[-3,ql,Mo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(vp,UnsupportedImageTypeException);var Pp=[-3,ql,ni,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(Pp,UnsupportedUpstreamRegistryException);var Dp=[3,ql,Ko,0,[Bc,Sl],[0,64|0],2];var kp=[3,ql,Xo,0,[],[]];var _p=[3,ql,Lo,0,[Pc,ha,wl,Tc],[0,()=>Sd,0,0],3];var Op=[3,ql,Fo,0,[Tc,Pc,ha,Ia],[0,0,()=>Sd,0]];var Lp=[3,ql,Vo,0,[ji,Tc,Pi,ki],[0,0,0,0],1];var Fp=[3,ql,$o,0,[ji,Tc,Tl,Pi,ki,Dl],[0,0,4,0,0,0]];var Mp=[3,ql,Jo,0,[Ic,Oi,qi,Lc,Ta,va,kc,Wa,gi,ki],[0,0,()=>Ju,()=>wm,0,()=>cm,0,0,64|0,0],1];var Up=[3,ql,Wo,0,[Tc,Qc],[0,()=>YA]];var Hp=[3,ql,Ho,0,[Pc,vl,Ac,pc,Ka,Tc],[0,0,1,1,21,0],5];var Gp=[3,ql,Go,0,[Tc,Pc,vl,qa],[0,0,0,1]];var zp=[-3,ql,zo,{[Hi]:vi},[rc],[0]];D.TypeRegistry.for(ql).registerError(zp,UploadNotFoundException);var qp=[3,ql,li,0,[ji,Tc],[0,0],1];var Vp=[3,ql,ui,0,[ji,Tc,kl,Pi,ki,Dl,ka,aa],[0,0,0,0,0,0,2,0]];var $p=[-3,ql,oi,{[Hi]:vi,[da]:400},[rc],[0]];D.TypeRegistry.for(ql).registerError($p,ValidationException);var jp=[3,ql,ii,0,[Qi,Wi,na,ic,mc,$c,ol,zl,ta],[0,1,0,0,0,0,0,0,0]];var Yp=[-3,yl,"ECRServiceException",0,[],[]];D.TypeRegistry.for(yl).registerError(Yp,ECRServiceException);var Jp=[1,ql,le,0,()=>Vl];var Wp=[1,ql,ae,0,()=>$l];var Kp=[1,ql,Le,0,()=>Au];var Xp=[1,ql,Me,0,()=>du];var Zp=[1,ql,er,0,()=>Wu];var em=[1,ql,_r,0,()=>Cd];var tm=[1,ql,Lr,0,()=>bd];var rm=[1,ql,Mr,0,()=>Sd];var nm=[1,ql,Ur,0,()=>hd];var sm=[1,ql,Jr,0,()=>wd];var om=[1,ql,Kr,0,()=>Rd];var im=[1,ql,tn,0,()=>Qd];var am=[1,ql,on,0,()=>Pd];var cm=[1,ql,un,0,()=>_d];var lm=[1,ql,En,0,()=>Vd];var um=[1,ql,xn,0,()=>zd];var dm=[1,ql,On,0,()=>Zd];var Am=[1,ql,bs,0,()=>mA];var pm=[1,ql,Zs,0,()=>HA];var mm=[1,ql,vs,0,()=>qA];var gm=[1,ql,$s,0,()=>VA];var fm=[1,ql,xs,0,()=>YA];var hm=[1,ql,ks,0,()=>JA];var ym=[1,ql,Os,0,()=>$A];var Em=[1,ql,Js,0,()=>ep];var Cm=[1,ql,Ws,0,()=>ZA];var Im=[1,ql,Ls,0,()=>tp];var bm=[1,ql,Eo,0,()=>np];var Sm=[1,ql,Co,0,()=>pp];var Bm=[1,ql,bo,0,()=>mp];var wm=[1,ql,To,0,()=>Cp];var Rm=[1,ql,xo,0,()=>Rp];var Qm=[1,ql,ai,0,()=>jp];var Nm=[9,ql,de,0,()=>Yl,()=>Jl];var xm=[9,ql,me,0,()=>Wl,()=>Kl];var Tm=[9,ql,he,0,()=>Xl,()=>Zl];var vm=[9,ql,Ce,0,()=>eu,()=>tu];var Pm=[9,ql,Se,0,()=>nu,()=>su];var Dm=[9,ql,Re,0,()=>ou,()=>iu];var km=[9,ql,xe,0,()=>lu,()=>uu];var _m=[9,ql,Te,0,()=>au,()=>cu];var Om=[9,ql,Ze,0,()=>mu,()=>gu];var Lm=[9,ql,mt,0,()=>fu,()=>hu];var Fm=[9,ql,Dt,0,()=>yu,()=>Eu];var Mm=[9,ql,Rt,0,()=>Bu,()=>wu];var Um=[9,ql,Qt,0,()=>Cu,()=>Iu];var Hm=[9,ql,Ft,0,()=>bu,()=>Su];var Gm=[9,ql,jt,0,()=>Ru,()=>Qu];var zm=[9,ql,St,0,()=>Nu,()=>xu];var qm=[9,ql,ze,0,()=>Tu,()=>vu];var Vm=[9,ql,Ue,0,()=>Lu,()=>Fu];var $m=[9,ql,je,0,()=>Pu,()=>Du];var jm=[9,ql,We,0,()=>_u,()=>Ou];var Ym=[9,ql,bt,0,()=>Mu,()=>Uu];var Jm=[9,ql,Vt,0,()=>Hu,()=>Gu];var Wm=[9,ql,$t,0,()=>zu,()=>qu];var Km=[9,ql,Pt,0,()=>Vu,()=>$u];var Xm=[9,ql,nr,0,()=>Zu,()=>ed];var Zm=[9,ql,ir,0,()=>td,()=>rd];var eg=[9,ql,lr,0,()=>nd,()=>sd];var tg=[9,ql,Ar,0,()=>ad,()=>cd];var rg=[9,ql,pr,0,()=>od,()=>id];var ng=[9,ql,yr,0,()=>ld,()=>ud];var sg=[9,ql,Br,0,()=>dd,()=>Ad];var og=[9,ql,Sr,0,()=>pd,()=>md];var ig=[9,ql,Qr,0,()=>gd,()=>fd];var ag=[9,ql,zr,0,()=>Od,()=>Ld];var cg=[9,ql,Nn,0,()=>sA,()=>oA];var lg=[9,ql,Cn,0,()=>aA,()=>cA];var ug=[9,ql,Un,0,()=>lA,()=>uA];var dg=[9,ql,zn,0,()=>dA,()=>AA];var Ag=[9,ql,$n,0,()=>hA,()=>yA];var pg=[9,ql,Jn,0,()=>EA,()=>CA];var mg=[9,ql,Xn,0,()=>IA,()=>bA];var gg=[9,ql,ts,0,()=>SA,()=>BA];var fg=[9,ql,ss,0,()=>wA,()=>RA];var hg=[9,ql,ds,0,()=>QA,()=>NA];var yg=[9,ql,ms,0,()=>xA,()=>TA];var Eg=[9,ql,cs,0,()=>vA,()=>PA];var Cg=[9,ql,hs,0,()=>DA,()=>kA];var Ig=[9,ql,Gs,0,()=>LA,()=>FA];var bg=[9,ql,So,0,()=>lp,()=>up];var Sg=[9,ql,co,0,()=>gp,()=>fp];var Bg=[9,ql,Ao,0,()=>hp,()=>yp];var wg=[9,ql,Do,0,()=>Ip,()=>bp];var Rg=[9,ql,jo,0,()=>Dp,()=>kp];var Qg=[9,ql,Oo,0,()=>_p,()=>Op];var Ng=[9,ql,qo,0,()=>Lp,()=>Fp];var xg=[9,ql,Yo,0,()=>Mp,()=>Up];var Tg=[9,ql,Uo,0,()=>Hp,()=>Gp];var vg=[9,ql,ci,0,()=>qp,()=>Vp];class BatchCheckLayerAvailabilityCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(Nm).build()){}class BatchDeleteImageCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(xm).build()){}class BatchGetImageCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(Tm).build()){}class BatchGetRepositoryScanningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(vm).build()){}class CompleteLayerUploadCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(Pm).build()){}class CreatePullThroughCacheRuleCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(Dm).build()){}class CreateRepositoryCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(km).build()){}class CreateRepositoryCreationTemplateCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(_m).build()){}class DeleteLifecyclePolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(Om).build()){}class DeletePullThroughCacheRuleCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(Lm).build()){}class DeleteRegistryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(Fm).build()){}class DeleteRepositoryCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(Mm).build()){}class DeleteRepositoryCreationTemplateCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(Um).build()){}class DeleteRepositoryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(Hm).build()){}class DeleteSigningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(Gm).build()){}class DeregisterPullTimeUpdateExclusionCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(zm).build()){}class DescribeImageReplicationStatusCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(qm).build()){}class DescribeImageScanFindingsCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc($m).build()){}class DescribeImagesCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(Vm).build()){}class DescribeImageSigningStatusCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(jm).build()){}class DescribePullThroughCacheRulesCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(Ym).build()){}class DescribeRegistryCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(Jm).build()){}class DescribeRepositoriesCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(Wm).build()){}class DescribeRepositoryCreationTemplatesCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(Km).build()){}class GetAccountSettingCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(Xm).build()){}class GetAuthorizationTokenCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(Zm).build()){}class GetDownloadUrlForLayerCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(eg).build()){}class GetLifecyclePolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(tg).build()){}class GetLifecyclePolicyPreviewCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(rg).build()){}class GetRegistryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(ng).build()){}class GetRegistryScanningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(sg).build()){}class GetRepositoryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(og).build()){}class GetSigningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(ig).build()){}class InitiateLayerUploadCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(ag).build()){}class ListImageReferrersCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(cg).build()){}class ListImagesCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(lg).build()){}class ListPullTimeUpdateExclusionsCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(ug).build()){}class ListTagsForResourceCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(dg).build()){}class PutAccountSettingCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(Ag).build()){}class PutImageCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(pg).build()){}class PutImageScanningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(mg).build()){}class PutImageTagMutabilityCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(gg).build()){}class PutLifecyclePolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(fg).build()){}class PutRegistryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(hg).build()){}class PutRegistryScanningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(yg).build()){}class PutReplicationConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(Eg).build()){}class PutSigningConfigurationCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(Cg).build()){}class RegisterPullTimeUpdateExclusionCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(Ig).build()){}class SetRepositoryPolicyCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(bg).build()){}class StartImageScanCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(Sg).build()){}class StartLifecyclePolicyPreviewCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(Bg).build()){}class TagResourceCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(wg).build()){}class UntagResourceCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(Rg).build()){}class UpdateImageStorageClassCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(Qg).build()){}class UpdatePullThroughCacheRuleCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(Ng).build()){}class UpdateRepositoryCreationTemplateCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(xg).build()){}class UploadLayerPartCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(Tg).build()){}class ValidatePullThroughCacheRuleCommand extends(j.Command.classBuilder().ep(se).m((function(e,t,n,o){return[U.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(vg).build()){}const Pg=v.createPaginator(ECRClient,DescribeImageScanFindingsCommand,"nextToken","nextToken","maxResults");const Dg=v.createPaginator(ECRClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const kg=v.createPaginator(ECRClient,DescribePullThroughCacheRulesCommand,"nextToken","nextToken","maxResults");const _g=v.createPaginator(ECRClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const Og=v.createPaginator(ECRClient,DescribeRepositoryCreationTemplatesCommand,"nextToken","nextToken","maxResults");const Lg=v.createPaginator(ECRClient,GetLifecyclePolicyPreviewCommand,"nextToken","nextToken","maxResults");const Fg=v.createPaginator(ECRClient,ListImagesCommand,"nextToken","nextToken","maxResults");const checkState$1=async(e,t)=>{let n;try{let o=await e.send(new DescribeImageScanFindingsCommand(t));n=o;try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState$1)};const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState$1);return ne.checkExceptions(o)};const checkState=async(e,t)=>{let n;try{let o=await e.send(new GetLifecyclePolicyPreviewCommand(t));n=o;try{const returnComparator=()=>o.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState)};const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState);return ne.checkExceptions(o)};const Mg={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,BatchGetImageCommand:BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:CreateRepositoryCommand,CreateRepositoryCreationTemplateCommand:CreateRepositoryCreationTemplateCommand,DeleteLifecyclePolicyCommand:DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:DeleteRegistryPolicyCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryCreationTemplateCommand:DeleteRepositoryCreationTemplateCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DeleteSigningConfigurationCommand:DeleteSigningConfigurationCommand,DeregisterPullTimeUpdateExclusionCommand:DeregisterPullTimeUpdateExclusionCommand,DescribeImageReplicationStatusCommand:DescribeImageReplicationStatusCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageScanFindingsCommand:DescribeImageScanFindingsCommand,DescribeImageSigningStatusCommand:DescribeImageSigningStatusCommand,DescribePullThroughCacheRulesCommand:DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:DescribeRegistryCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,DescribeRepositoryCreationTemplatesCommand:DescribeRepositoryCreationTemplatesCommand,GetAccountSettingCommand:GetAccountSettingCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,GetSigningConfigurationCommand:GetSigningConfigurationCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListImageReferrersCommand:ListImageReferrersCommand,ListImagesCommand:ListImagesCommand,ListPullTimeUpdateExclusionsCommand:ListPullTimeUpdateExclusionsCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutAccountSettingCommand:PutAccountSettingCommand,PutImageCommand:PutImageCommand,PutImageScanningConfigurationCommand:PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:PutLifecyclePolicyCommand,PutRegistryPolicyCommand:PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:PutReplicationConfigurationCommand,PutSigningConfigurationCommand:PutSigningConfigurationCommand,RegisterPullTimeUpdateExclusionCommand:RegisterPullTimeUpdateExclusionCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,StartImageScanCommand:StartImageScanCommand,StartLifecyclePolicyPreviewCommand:StartLifecyclePolicyPreviewCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateImageStorageClassCommand:UpdateImageStorageClassCommand,UpdatePullThroughCacheRuleCommand:UpdatePullThroughCacheRuleCommand,UpdateRepositoryCreationTemplateCommand:UpdateRepositoryCreationTemplateCommand,UploadLayerPartCommand:UploadLayerPartCommand,ValidatePullThroughCacheRuleCommand:ValidatePullThroughCacheRuleCommand};const Ug={paginateDescribeImages:Dg,paginateDescribeImageScanFindings:Pg,paginateDescribePullThroughCacheRules:kg,paginateDescribeRepositories:_g,paginateDescribeRepositoryCreationTemplates:Og,paginateGetLifecyclePolicyPreview:Lg,paginateListImages:Fg};const Hg={waitUntilImageScanComplete:waitUntilImageScanComplete,waitUntilLifecyclePolicyPreviewComplete:waitUntilLifecyclePolicyPreviewComplete};class ECR extends ECRClient{}j.createAggregatedClient(Mg,ECR,{paginators:Ug,waiters:Hg});const Gg={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const zg={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const qg={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};const Vg={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};const $g={WILDCARD:"WILDCARD"};const jg={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};const Yg={AzureContainerRegistry:"azure-container-registry",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};const Jg={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};const Wg={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"};const Kg={WILDCARD:"WILDCARD"};const Xg={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};const Zg={WILDCARD_MATCH:"WILDCARD_MATCH"};const ef={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const tf={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const rf={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};const nf={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};const sf={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};const of={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const af={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const cf={PREFIX_MATCH:"PREFIX_MATCH"};const lf={ARCHIVE:"ARCHIVE"};const uf={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"};const df={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};const Af={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const pf={BASIC:"BASIC",ENHANCED:"ENHANCED"};const mf={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const gf={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const ff={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};o={enumerable:true,get:function(){return j.Command}};o={enumerable:true,get:function(){return j.Client}};o=gf;o=mf;o=Vl;o=$l;o=jl;o=Nm;o=BatchCheckLayerAvailabilityCommand;o=Yl;o=Jl;o=xm;o=BatchDeleteImageCommand;o=Wl;o=Kl;o=Tm;o=BatchGetImageCommand;o=Xl;o=Zl;o=vm;o=BatchGetRepositoryScanningConfigurationCommand;o=eu;o=tu;o=BlockedByOrganizationPolicyException;o=ru;o=Pm;o=CompleteLayerUploadCommand;o=nu;o=su;o=Dm;o=CreatePullThroughCacheRuleCommand;o=ou;o=iu;o=km;o=CreateRepositoryCommand;o=_m;o=CreateRepositoryCreationTemplateCommand;o=au;o=cu;o=lu;o=uu;o=du;o=Au;o=pu;o=Om;o=DeleteLifecyclePolicyCommand;o=mu;o=gu;o=Lm;o=DeletePullThroughCacheRuleCommand;o=fu;o=hu;o=Fm;o=DeleteRegistryPolicyCommand;o=yu;o=Eu;o=Mm;o=DeleteRepositoryCommand;o=Um;o=DeleteRepositoryCreationTemplateCommand;o=Cu;o=Iu;o=Hm;o=DeleteRepositoryPolicyCommand;o=bu;o=Su;o=Bu;o=wu;o=Gm;o=DeleteSigningConfigurationCommand;o=Ru;o=Qu;o=zm;o=DeregisterPullTimeUpdateExclusionCommand;o=Nu;o=xu;o=qm;o=DescribeImageReplicationStatusCommand;o=Tu;o=vu;o=$m;o=DescribeImageScanFindingsCommand;o=Pu;o=Du;o=jm;o=DescribeImageSigningStatusCommand;o=_u;o=Ou;o=Vm;o=DescribeImagesCommand;o=ku;o=Lu;o=Fu;o=Ym;o=DescribePullThroughCacheRulesCommand;o=Mu;o=Uu;o=Jm;o=DescribeRegistryCommand;o=Hu;o=Gu;o=Wm;o=DescribeRepositoriesCommand;o=zu;o=qu;o=Km;o=DescribeRepositoryCreationTemplatesCommand;o=Vu;o=$u;t.Tjd=ECR;o=ECRClient;o=ECRServiceException;o=Yp;o=EmptyUploadException;o=ju;o=Yu;o=Ju;o=Jg;o=Wu;o=ExclusionAlreadyExistsException;o=Ku;o=ExclusionNotFoundException;o=Xu;o=nf;o=Xm;o=GetAccountSettingCommand;o=Zu;o=ed;o=Zm;o=GetAuthorizationTokenCommand;o=td;o=rd;o=eg;o=GetDownloadUrlForLayerCommand;o=nd;o=sd;o=tg;o=GetLifecyclePolicyCommand;o=rg;o=GetLifecyclePolicyPreviewCommand;o=od;o=id;o=ad;o=cd;o=ng;o=GetRegistryPolicyCommand;o=ld;o=ud;o=sg;o=GetRegistryScanningConfigurationCommand;o=dd;o=Ad;o=og;o=GetRepositoryPolicyCommand;o=pd;o=md;o=ig;o=GetSigningConfigurationCommand;o=gd;o=fd;o=hd;o=uf;o=ImageAlreadyExistsException;o=yd;o=ImageArchivedException;o=Ed;o=Cd;o=ImageDigestDoesNotMatchException;o=Id;o=bd;o=qg;o=Sd;o=ImageNotFoundException;o=Bd;o=wd;o=Rd;o=Qd;o=Nd;o=xd;o=vd;o=Td;o=Pd;o=of;o=tf;o=ImageStorageClassUpdateNotSupportedException;o=Dd;o=ImageTagAlreadyExistsException;o=kd;o=Wg;o=_d;o=Kg;o=ag;o=InitiateLayerUploadCommand;o=Od;o=Ld;o=InvalidLayerException;o=Fd;o=InvalidLayerPartException;o=Md;o=InvalidParameterException;o=Ud;o=InvalidTagParameterException;o=Hd;o=KmsException;o=Gd;o=zd;o=LayerAlreadyExistsException;o=qd;o=zg;o=Vd;o=Gg;o=LayerInaccessibleException;o=$d;o=LayerPartTooSmallException;o=jd;o=LayersNotFoundException;o=Yd;o=LifecyclePolicyNotFoundException;o=Jd;o=Wd;o=LifecyclePolicyPreviewInProgressException;o=Kd;o=LifecyclePolicyPreviewNotFoundException;o=Xd;o=Zd;o=Af;o=eA;o=tA;o=df;o=lf;o=LimitExceededException;o=rA;o=cg;o=ListImageReferrersCommand;o=nA;o=sA;o=oA;o=lg;o=ListImagesCommand;o=iA;o=aA;o=cA;o=ug;o=ListPullTimeUpdateExclusionsCommand;o=lA;o=uA;o=dg;o=ListTagsForResourceCommand;o=dA;o=AA;o=pA;o=mA;o=PullThroughCacheRuleAlreadyExistsException;o=gA;o=PullThroughCacheRuleNotFoundException;o=fA;o=Ag;o=PutAccountSettingCommand;o=hA;o=yA;o=pg;o=PutImageCommand;o=EA;o=CA;o=mg;o=PutImageScanningConfigurationCommand;o=IA;o=bA;o=gg;o=PutImageTagMutabilityCommand;o=SA;o=BA;o=fg;o=PutLifecyclePolicyCommand;o=wA;o=RA;o=hg;o=PutRegistryPolicyCommand;o=QA;o=NA;o=yg;o=PutRegistryScanningConfigurationCommand;o=xA;o=TA;o=Eg;o=PutReplicationConfigurationCommand;o=vA;o=PA;o=Cg;o=PutSigningConfigurationCommand;o=DA;o=kA;o=Xg;o=_A;o=ReferencedImagesNotFoundException;o=OA;o=Ig;o=RegisterPullTimeUpdateExclusionCommand;o=LA;o=FA;o=RegistryPolicyNotFoundException;o=MA;o=UA;o=HA;o=GA;o=zA;o=qA;o=VA;o=ef;o=$A;o=RepositoryAlreadyExistsException;o=jA;o=YA;o=JA;o=cf;o=RepositoryNotEmptyException;o=WA;o=RepositoryNotFoundException;o=KA;o=RepositoryPolicyNotFoundException;o=XA;o=ZA;o=ep;o=tp;o=rp;o=jg;o=ScanNotFoundException;o=sp;o=sf;o=pf;o=Vg;o=np;o=$g;o=ip;o=SecretNotFoundException;o=ap;o=ServerException;o=cp;o=bg;o=SetRepositoryPolicyCommand;o=lp;o=up;o=dp;o=SigningConfigurationNotFoundException;o=Ap;o=pp;o=Zg;o=mp;o=af;o=Sg;o=StartImageScanCommand;o=gp;o=fp;o=Bg;o=StartLifecyclePolicyPreviewCommand;o=hp;o=yp;o=Ep;o=Cp;o=wg;o=TagResourceCommand;o=Ip;o=bp;o=rf;o=ff;o=TemplateAlreadyExistsException;o=Sp;o=TemplateNotFoundException;o=Bp;o=TooManyTagsException;o=wp;o=Rp;o=UnableToAccessSecretException;o=Qp;o=UnableToDecryptSecretValueException;o=Np;o=UnableToGetUpstreamImageException;o=xp;o=UnableToGetUpstreamLayerException;o=Tp;o=UnsupportedImageTypeException;o=vp;o=UnsupportedUpstreamRegistryException;o=Pp;o=Rg;o=UntagResourceCommand;o=Dp;o=kp;o=Qg;o=UpdateImageStorageClassCommand;o=_p;o=Op;o=Ng;o=UpdatePullThroughCacheRuleCommand;o=Lp;o=Fp;o=xg;o=UpdateRepositoryCreationTemplateCommand;o=Mp;o=Up;o=Tg;o=UploadLayerPartCommand;o=Hp;o=Gp;o=UploadNotFoundException;o=zp;o=Yg;o=vg;o=ValidatePullThroughCacheRuleCommand;o=qp;o=Vp;o=ValidationException;o=$p;o=jp;o=Pg;o=Dg;o=kg;o=_g;o=Og;o=Lg;o=Fg;o=waitForImageScanComplete;o=waitForLifecyclePolicyPreviewComplete;o=waitUntilImageScanComplete;o=waitUntilLifecyclePolicyPreviewComplete},3107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(121));const d=n(8704);const p=n(5861);const f=n(1656);const y=n(9316);const v=n(2711);const D=n(9618);const M=n(5704);const U=n(1279);const V=n(1411);const j=n(3638);const K=n(673);const ee=n(5518);const te=n(9344);const getRuntimeConfig=e=>{(0,V.emitWarningIfUnsupportedVersion)(process.version);const t=(0,K.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(V.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,d.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,M.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??j.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??p.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,f.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,M.loadConfig)(D.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,M.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:U.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,M.loadConfig)({...D.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??v.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??U.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,M.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,M.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,M.loadConfig)(f.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const d=n(1411);const p=n(4494);const f=n(8385);const y=n(1577);const v=n(3218);const D=n(3628);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??f.fromBase64,base64Encoder:e?.base64Encoder??f.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??D.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??v.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new d.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??p.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},8704:(e,t,n)=>{var o=n(2356);var i=n(402);var d=n(8857);var p=n(5152);var f=n(5118);var y=n(4645);var v=n(6890);var D=n(1411);var M=n(3422);var U=n(2430);var V=n(8385);var j=n(1577);var K=n(4274);const ee={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!ee.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){ee.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const d=await i(o);const p=e?.signingRegion;const f=e?.signingRegionSet;const y=e?.signingName;return{config:n,signer:d,signingRegion:p,signingRegionSet:f,signingName:y}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:d,signer:p}=i;let{signingRegion:f,signingName:y}=i;const v=n.context;if(v?.authSchemes?.length??0>1){const[e,t]=v.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){f=t?.signingRegion??f;y=t?.signingName??y}}const D=await p.sign(e,{signingDate:getSkewCorrectedDate(d.systemClockOffset),signingRegion:f,signingService:y});return D}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const d=o.systemClockOffset!==i;if(d&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const te=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:d,signingRegion:p,signingRegionSet:f,signingName:y}=await validateSigningProperties(n);const v=await(i.sigv4aSigningRegionSet?.());const D=(v??f??[p]).join(",");const M=await d.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:D,signingService:y});return M}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const re="AWS_AUTH_SCHEME_PREFERENCE";const ne="auth_scheme_preference";const se={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(re in e))return undefined;return getArrayForCommaSeparatedString(e[re])},configFileSelector:e=>{if(!(ne in e))return undefined;return getArrayForCommaSeparatedString(e[ne])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const oe={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new d.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new d.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const d=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const f=bindCallerConfig(e,d);if(n&&!f.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await f(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return p.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=f.memoized;o.configBound=f.configBound;o.attributed=true}else{o=f}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:d=true,systemClockOffset:y=e.systemClockOffset||0,sha256:v}=e;let D;if(e.signer){D=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){D=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const p={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:v,uriEscapePath:d};const y=e.signerConstructor||f.SignatureV4;return new y(p)}))}else{D=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const p={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:v,uriEscapePath:d};const y=e.signerConstructor||f.SignatureV4;return new y(p)}}const M=Object.assign(e,{systemClockOffset:y,signingEscapePath:d,signer:D});return M};const ie=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:d}=e.getMergedTraits();const p=d===void 0;return!t&&!n&&!o&&!i&&p}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,d){let p=t;let f=e;if(e.includes("#")){[p,f]=e.split("#")}const y={$metadata:i,$fault:n.statusCode<500?"client":"server"};const D=v.TypeRegistry.for(p);try{const t=d?.(D,f)??D.getSchema(e);return{errorSchema:t,errorMetadata:y}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=v.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:f}),y),o)}throw this.decorateServiceException(Object.assign(new Error(f),y),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=D.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error.Type,Code:o.Error.Code,Message:o.Error.message??o.Error.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return D.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const d={Code:t,Type:o};Object.assign(e,d);for(const[e,t]of i){d[e==="message"?"Message":e]=t}delete d.__type;e.Error=d}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>v.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends y.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return y.loadSmithyRpcV2CborErrorCode(n,o)??"Unknown"})();const{errorSchema:p,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const D=v.NormalizedSchema.of(p);const M=o.message??o.Message??"Unknown";const U=v.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const V=new U(M);const j={};for(const[e,t]of D.structIterator()){if(o[e]!=null){j[e]=this.deserializer.readValue(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,j)}throw this.mixin.decorateServiceException(Object.assign(V,f,{$fault:D.getMergedTraits().error,message:M},j),o)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||tD.collectBody(e,t).then((e=>(t?.utf8Encoder??j.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=v.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let d=void 0;const{jsonName:p}=this.settings;if(p){d={}}let f;if(n){f=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(p){o=y.getMergedTraits().jsonName??o;d[o]=t}if(n){f.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){f.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=p?d[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,d]of Object.entries(t)){if(i||d!=null){n[o]=this._read(e,d)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return V.fromBase64(t)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&i){const e=i==="application/json"||i.endsWith("+json");if(e){return U.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=M.determineTimestampFormat(o,this.settings);switch(e){case 5:return U.parseRfc3339DateTimeWithOffset(t);case 6:return U.parseRfc7231DateTime(t);case 7:return U.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof U.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new U.NumericValue(e.string,e.type)}return new U.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof U.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const ae=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof U.NumericValue){const e=`${ae+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${ae+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=v.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=v.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const i=v.NormalizedSchema.of(e);if(o){if(i.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let d=void 0;if(o){d={}}for(const[t,p]of i.structIterator()){const f=this._write(p,e[t],i);if(f!==undefined){let e=t;if(o){e=p.getMergedTraits().jsonName??t;d[t]=e}n[e]=f}}if(i.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,i]of Object.entries(e)){const e=o?d[t]??t:t;if(!(e in n)){n[e]=this._write(15,i)}}}return n}if(Array.isArray(t)&&i.isListSchema()){const e=i.getValueSchema();const n=[];const o=!!i.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(i.isMapSchema()){const e=i.getValueSchema();const n={};const o=!!i.getMergedTraits().sparse;for(const[i,d]of Object.entries(t)){if(o||d!=null){n[i]=this._write(e,d)}}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema())){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??V.toBase64)(t)}if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema())){const e=M.determineTimestampFormat(i,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return U.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof U.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(i.isStringSchema()){if(typeof t==="undefined"&&i.isIdempotencyToken()){return U.generateIdempotencyToken()}const e=i.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return U.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&i.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&i.isBlobSchema()){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??V.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(i.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof U.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(i,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends M.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(v.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const y=v.NormalizedSchema.of(p);const D=o.message??o.Message??"Unknown";const M=v.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const U=new M(D);const V={};for(const[e,t]of y.structIterator()){if(o[e]!=null){V[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,V)}throw this.mixin.decorateServiceException(Object.assign(U,f,{$fault:y.getMergedTraits().error,message:D},V),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends M.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new M.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new M.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=v.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const i=v.NormalizedSchema.of(e.output);for(const[e,t]of i.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,i){const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,i);const y=v.NormalizedSchema.of(p);const D=o.message??o.Message??"Unknown";const M=v.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const U=new M(D);await this.deserializeHttpMessage(p,t,n,o);const V={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().jsonName??e;V[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(U,f,{$fault:y.getMergedTraits().error,message:D},V),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return D.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new M.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=v.NormalizedSchema.of(e);const i=o.getMemberSchemas();const d=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(i).find((e=>!!e.getMemberTraits().eventPayload));if(d){const e={};const n=Object.keys(i)[0];const o=i[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(i[n],t)}return e}const p=(this.serdeContext?.utf8Encoder??j.toUtf8)(t);const f=this.parseXml(p);return this.readSchema(e,n?f[n]:f)}readSchema(e,t){const n=v.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const d=[];const p=o.getMergedTraits().xmlName??"member";const f=i?t:(t[0]??t)[p];const y=Array.isArray(f)?f:[f];for(const t of y){if(t!=null||e){d.push(this.readSchema(o,t))}}return d}const d={};if(n.isMapSchema()){const o=n.getKeySchema();const p=n.getValueSchema();let f;if(i){f=Array.isArray(t)?t:[t]}else{f=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const v=p.getMergedTraits().xmlName??"value";for(const t of f){const n=t[y];const o=t[v];if(o!=null||e){d[n]=this.readSchema(p,o)}}return d}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,d)}for(const[i,p]of n.structIterator()){const n=p.getMergedTraits();const f=!n.httpPayload?p.getMemberTraits().xmlName??i:n.xmlName??p.getName();if(e){o.mark(f)}if(t[f]!=null){d[i]=this.readSchema(p,t[f])}}if(e){o.writeUnknown()}return d}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=K.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return D.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=v.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??V.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(U.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof U.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=M.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(D.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let d=1;for(const o of t){if(o==null){continue}const t=this.getKey("member",e.getMergedTraits().xmlName);const p=i?`${n}${d}`:`${n}${t}.${d}`;this.write(e,o,p);++d}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const d=o.getMergedTraits().xmlFlattened;let p=1;for(const[o,f]of Object.entries(t)){if(f==null){continue}const t=this.getKey("key",e.getMergedTraits().xmlName);const y=d?`${n}${p}.${t}`:`${n}entry.${p}.${t}`;const v=this.getKey("value",i.getMergedTraits().xmlName);const D=d?`${n}${p}.${v}`:`${n}entry.${p}.${v}`;this.write(e,o,y);this.write(i,f,D);++p}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,d]of o.structIterator()){if(t[i]==null&&!d.isIdempotencyToken()){continue}const o=this.getKey(i,d.getMergedTraits().xmlName);const p=`${n}${o}`;this.write(d,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t){const n=t??e;if(this.settings.capitalizeKeys){return n[0].toUpperCase()+n.slice(1)}return n}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${M.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=M.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends M.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(v.deref(e.input)==="unit"||!o.body){o.body=""}const i=e.name.split("#")[1]??e.name;o.body=`Action=${i}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const i=v.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await M.collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const p=e.name.split("#")[1]??e.name;const f=i.isStructSchema()&&this.useNestedResult()?p+"Result":undefined;const y=await M.collectBody(n.body,t);if(y.byteLength>0){Object.assign(d,await o.read(i,y,f))}const D={$metadata:this.deserializeMetadata(n),...d};return D}useNestedResult(){return true}async handleError(e,t,n,o,i){const d=this.loadQueryErrorCode(n,o)??"Unknown";const p=this.loadQueryError(o);const f=this.loadQueryErrorMessage(o);p.message=f;p.Error={Type:p.Type,Code:p.Code,Message:f};const{errorSchema:y,errorMetadata:D}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,p,i,this.mixin.findQueryCompatibleError);const M=v.NormalizedSchema.of(y);const U=v.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const V=new U(f);const j={Type:p.Error.Type,Code:p.Error.Code,Error:p.Error};for(const[e,t]of M.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=p[n]??o[n];j[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(V,D,{$fault:M.getMergedTraits().error,message:f},j),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=K.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return D.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=v.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??V.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const d=K.XmlNode.of(i);const[p,f]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){d.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,d,f)}else if(o.isMapSchema()){this.writeMap(o,e,d,f)}else if(o.isStructSchema()){d.addChildNode(this.writeStruct(o,e,f))}else{const t=K.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,f);d.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=K.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof K.XmlNode||t instanceof K.XmlText){d.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,f);d.addChildNode(o)}if(f){d.addAttribute(p,f)}return d}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const d=e.getValueSchema();const p=d.getMergedTraits();const f=!!p.sparse;const y=!!i.xmlFlattened;const[v,D]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(d.isListSchema()){this.writeList(d,Array.isArray(n)?n:[n],t,D)}else if(d.isMapSchema()){this.writeMap(d,n,t,D)}else if(d.isStructSchema()){const o=this.writeStruct(d,n,D);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():p.xmlName??"member"))}else{const o=K.XmlNode.of(y?i.xmlName??e.getMemberName():p.xmlName??"member");this.writeSimpleInto(d,n,o,D);t.addChildNode(o)}};if(y){for(const e of t){if(f||e!=null){writeItem(n,e)}}}else{const o=K.XmlNode.of(i.xmlName??e.getMemberName());if(D){o.addAttribute(v,D)}for(const e of t){if(f||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const d=e.getMergedTraits();const p=e.getKeySchema();const f=p.getMergedTraits();const y=f.xmlName??"key";const v=e.getValueSchema();const D=v.getMergedTraits();const M=D.xmlName??"value";const U=!!D.sparse;const V=!!d.xmlFlattened;const[j,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=K.XmlNode.of(y,t);const[i,d]=this.getXmlnsAttribute(p,ee);if(d){o.addAttribute(i,d)}e.addChildNode(o);let f=K.XmlNode.of(M);if(v.isListSchema()){this.writeList(v,n,f,ee)}else if(v.isMapSchema()){this.writeMap(v,n,f,ee,true)}else if(v.isStructSchema()){f=this.writeStruct(v,n,ee)}else{this.writeSimpleInto(v,n,f,ee)}e.addChildNode(f)};if(V){for(const[o,i]of Object.entries(t)){if(U||i!=null){const t=K.XmlNode.of(d.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=K.XmlNode.of(d.xmlName??e.getMemberName());if(ee){o.addAttribute(j,ee)}n.addChildNode(o)}for(const[e,d]of Object.entries(t)){if(U||d!=null){const t=K.XmlNode.of("entry");addKeyValue(t,e,d);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=v.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??V.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=M.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=D.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=D.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof U.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=U.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const i=this.writeSimple(e,t);const d=v.NormalizedSchema.of(e);const p=new K.XmlText(i);const[f,y]=this.getXmlnsAttribute(d,o);if(y){n.addAttribute(f,y)}n.addChildNode(p)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends M.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new M.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new M.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=v.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const d=loadRestXmlErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,i);const y=v.NormalizedSchema.of(p);const D=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const M=v.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const U=new M(D);await this.deserializeHttpMessage(p,t,n,o);const V={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];V[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(U,f,{$fault:y.getMergedTraits().error,message:D},V),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AWSSDKSigV4Signer=te;t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=se;t.NODE_SIGV4A_CONFIG_OPTIONS=oe;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody;t.resolveAWSSDKSigV4Config=ie;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=ee;t.validateSigningProperties=validateSigningProperties},5152:(e,t)=>{const n={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!n.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){n.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=n},7288:(e,t,n)=>{var o=n(4645);var i=n(6890);var d=n(1411);var p=n(3422);var f=n(2430);var y=n(8385);var v=n(1577);var D=n(4274);class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:d}=e.getMergedTraits();const p=d===void 0;return!t&&!n&&!o&&!i&&p}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,d,p){let f=t;let y=e;if(e.includes("#")){[f,y]=e.split("#")}const v={$metadata:d,$fault:n.statusCode<500?"client":"server"};const D=i.TypeRegistry.for(f);try{const t=p?.(D,y)??D.getSchema(e);return{errorSchema:t,errorMetadata:v}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+f);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:y}),v),o)}throw this.decorateServiceException(Object.assign(new Error(y),v),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=d.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error.Type,Code:o.Error.Code,Message:o.Error.message??o.Error.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return d.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const d={Code:t,Type:o};Object.assign(e,d);for(const[e,t]of i){d[e==="message"?"Message":e]=t}delete d.__type;e.Error=d}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends o.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,d,p){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(d,n)}const f=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return o.loadSmithyRpcV2CborErrorCode(n,d)??"Unknown"})();const{errorSchema:y,errorMetadata:v}=await this.mixin.getErrorSchemaOrThrowBaseException(f,this.options.defaultNamespace,n,d,p,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const D=i.NormalizedSchema.of(y);const M=d.message??d.Message??"Unknown";const U=i.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const V=new U(M);const j={};for(const[e,t]of D.structIterator()){if(d[e]!=null){j[e]=this.deserializer.readValue(t,d[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(d,j)}throw this.mixin.decorateServiceException(Object.assign(V,v,{$fault:D.getMergedTraits().error,message:M},j),d)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||td.collectBody(e,t).then((e=>(t?.utf8Encoder??v.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=i.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let d=void 0;const{jsonName:p}=this.settings;if(p){d={}}let f;if(n){f=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(p){o=y.getMergedTraits().jsonName??o;d[o]=t}if(n){f.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){f.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=p?d[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,d]of Object.entries(t)){if(i||d!=null){n[o]=this._read(e,d)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return y.fromBase64(t)}const d=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&d){const e=d==="application/json"||d.endsWith("+json");if(e){return f.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=p.determineTimestampFormat(o,this.settings);switch(e){case 5:return f.parseRfc3339DateTimeWithOffset(t);case 6:return f.parseRfc7231DateTime(t);case 7:return f.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof f.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new f.NumericValue(e.string,e.type)}return new f.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof f.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const M=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof f.NumericValue){const e=`${M+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${M+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=i.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const d=i.NormalizedSchema.of(e);if(o){if(d.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let i=void 0;if(o){i={}}for(const[t,p]of d.structIterator()){const f=this._write(p,e[t],d);if(f!==undefined){let e=t;if(o){e=p.getMergedTraits().jsonName??t;i[t]=e}n[e]=f}}if(d.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,d]of Object.entries(e)){const e=o?i[t]??t:t;if(!(e in n)){n[e]=this._write(15,d)}}}return n}if(Array.isArray(t)&&d.isListSchema()){const e=d.getValueSchema();const n=[];const o=!!d.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(d.isMapSchema()){const e=d.getValueSchema();const n={};const o=!!d.getMergedTraits().sparse;for(const[i,d]of Object.entries(t)){if(o||d!=null){n[i]=this._write(e,d)}}return n}if(t instanceof Uint8Array&&(d.isBlobSchema()||d.isDocumentSchema())){if(d===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(t instanceof Date&&(d.isTimestampSchema()||d.isDocumentSchema())){const e=p.determineTimestampFormat(d,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return f.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof f.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(d.isStringSchema()){if(typeof t==="undefined"&&d.isIdempotencyToken()){return f.generateIdempotencyToken()}const e=d.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return f.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&d.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&d.isBlobSchema()){if(d===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(d.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof f.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(d,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends p.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(i.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,d){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const p=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:f,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,o,d,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const v=i.NormalizedSchema.of(f);const D=o.message??o.Message??"Unknown";const M=i.TypeRegistry.for(f[1]).getErrorCtor(f)??Error;const U=new M(D);const V={};for(const[e,t]of v.structIterator()){if(o[e]!=null){V[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,V)}throw this.mixin.decorateServiceException(Object.assign(U,y,{$fault:v.getMergedTraits().error,message:D},V),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends p.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new p.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new p.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const d=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),d);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const d=i.NormalizedSchema.of(e.output);for(const[e,t]of d.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,d){const p=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:f,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,o,d);const v=i.NormalizedSchema.of(f);const D=o.message??o.Message??"Unknown";const M=i.TypeRegistry.for(f[1]).getErrorCtor(f)??Error;const U=new M(D);await this.deserializeHttpMessage(f,t,n,o);const V={};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().jsonName??e;V[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(U,y,{$fault:v.getMergedTraits().error,message:D},V),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return d.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new p.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=i.NormalizedSchema.of(e);const d=o.getMemberSchemas();const p=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(d).find((e=>!!e.getMemberTraits().eventPayload));if(p){const e={};const n=Object.keys(d)[0];const o=d[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(d[n],t)}return e}const f=(this.serdeContext?.utf8Encoder??v.toUtf8)(t);const y=this.parseXml(f);return this.readSchema(e,n?y[n]:y)}readSchema(e,t){const n=i.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const d=[];const p=o.getMergedTraits().xmlName??"member";const f=i?t:(t[0]??t)[p];const y=Array.isArray(f)?f:[f];for(const t of y){if(t!=null||e){d.push(this.readSchema(o,t))}}return d}const d={};if(n.isMapSchema()){const o=n.getKeySchema();const p=n.getValueSchema();let f;if(i){f=Array.isArray(t)?t:[t]}else{f=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const v=p.getMergedTraits().xmlName??"value";for(const t of f){const n=t[y];const o=t[v];if(o!=null||e){d[n]=this.readSchema(p,o)}}return d}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,d)}for(const[i,p]of n.structIterator()){const n=p.getMergedTraits();const f=!n.httpPayload?p.getMemberTraits().xmlName??i:n.xmlName??p.getName();if(e){o.mark(f)}if(t[f]!=null){d[i]=this.readSchema(p,t[f])}}if(e){o.writeUnknown()}return d}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=D.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return d.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=i.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??y.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(f.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof f.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=p.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(d.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let d=1;for(const o of t){if(o==null){continue}const t=this.getKey("member",e.getMergedTraits().xmlName);const p=i?`${n}${d}`:`${n}${t}.${d}`;this.write(e,o,p);++d}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const d=o.getMergedTraits().xmlFlattened;let p=1;for(const[o,f]of Object.entries(t)){if(f==null){continue}const t=this.getKey("key",e.getMergedTraits().xmlName);const y=d?`${n}${p}.${t}`:`${n}entry.${p}.${t}`;const v=this.getKey("value",i.getMergedTraits().xmlName);const D=d?`${n}${p}.${v}`:`${n}entry.${p}.${v}`;this.write(e,o,y);this.write(i,f,D);++p}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,d]of o.structIterator()){if(t[i]==null&&!d.isIdempotencyToken()){continue}const o=this.getKey(i,d.getMergedTraits().xmlName);const p=`${n}${o}`;this.write(d,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t){const n=t??e;if(this.settings.capitalizeKeys){return n[0].toUpperCase()+n.slice(1)}return n}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${p.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=p.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends p.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(i.deref(e.input)==="unit"||!o.body){o.body=""}const d=e.name.split("#")[1]??e.name;o.body=`Action=${d}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const d=i.NormalizedSchema.of(e.output);const f={};if(n.statusCode>=300){const i=await p.collectBody(n.body,t);if(i.byteLength>0){Object.assign(f,await o.read(15,i))}await this.handleError(e,t,n,f,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const y=e.name.split("#")[1]??e.name;const v=d.isStructSchema()&&this.useNestedResult()?y+"Result":undefined;const D=await p.collectBody(n.body,t);if(D.byteLength>0){Object.assign(f,await o.read(d,D,v))}const M={$metadata:this.deserializeMetadata(n),...f};return M}useNestedResult(){return true}async handleError(e,t,n,o,d){const p=this.loadQueryErrorCode(n,o)??"Unknown";const f=this.loadQueryError(o);const y=this.loadQueryErrorMessage(o);f.message=y;f.Error={Type:f.Type,Code:f.Code,Message:y};const{errorSchema:v,errorMetadata:D}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,f,d,this.mixin.findQueryCompatibleError);const M=i.NormalizedSchema.of(v);const U=i.TypeRegistry.for(v[1]).getErrorCtor(v)??Error;const V=new U(y);const j={Type:f.Error.Type,Code:f.Error.Code,Error:f.Error};for(const[e,t]of M.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=f[n]??o[n];j[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(V,D,{$fault:M.getMergedTraits().error,message:y},j),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=D.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return d.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??y.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const d=D.XmlNode.of(i);const[p,f]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){d.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,d,f)}else if(o.isMapSchema()){this.writeMap(o,e,d,f)}else if(o.isStructSchema()){d.addChildNode(this.writeStruct(o,e,f))}else{const t=D.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,f);d.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=D.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof D.XmlNode||t instanceof D.XmlText){d.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,f);d.addChildNode(o)}if(f){d.addAttribute(p,f)}return d}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const d=e.getValueSchema();const p=d.getMergedTraits();const f=!!p.sparse;const y=!!i.xmlFlattened;const[v,M]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(d.isListSchema()){this.writeList(d,Array.isArray(n)?n:[n],t,M)}else if(d.isMapSchema()){this.writeMap(d,n,t,M)}else if(d.isStructSchema()){const o=this.writeStruct(d,n,M);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():p.xmlName??"member"))}else{const o=D.XmlNode.of(y?i.xmlName??e.getMemberName():p.xmlName??"member");this.writeSimpleInto(d,n,o,M);t.addChildNode(o)}};if(y){for(const e of t){if(f||e!=null){writeItem(n,e)}}}else{const o=D.XmlNode.of(i.xmlName??e.getMemberName());if(M){o.addAttribute(v,M)}for(const e of t){if(f||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const d=e.getMergedTraits();const p=e.getKeySchema();const f=p.getMergedTraits();const y=f.xmlName??"key";const v=e.getValueSchema();const M=v.getMergedTraits();const U=M.xmlName??"value";const V=!!M.sparse;const j=!!d.xmlFlattened;const[K,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=D.XmlNode.of(y,t);const[i,d]=this.getXmlnsAttribute(p,ee);if(d){o.addAttribute(i,d)}e.addChildNode(o);let f=D.XmlNode.of(U);if(v.isListSchema()){this.writeList(v,n,f,ee)}else if(v.isMapSchema()){this.writeMap(v,n,f,ee,true)}else if(v.isStructSchema()){f=this.writeStruct(v,n,ee)}else{this.writeSimpleInto(v,n,f,ee)}e.addChildNode(f)};if(j){for(const[o,i]of Object.entries(t)){if(V||i!=null){const t=D.XmlNode.of(d.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=D.XmlNode.of(d.xmlName??e.getMemberName());if(ee){o.addAttribute(K,ee)}n.addChildNode(o)}for(const[e,d]of Object.entries(t)){if(V||d!=null){const t=D.XmlNode.of("entry");addKeyValue(t,e,d);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=i.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??y.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=p.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=d.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=d.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof f.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=f.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const d=this.writeSimple(e,t);const p=i.NormalizedSchema.of(e);const f=new D.XmlText(d);const[y,v]=this.getXmlnsAttribute(p,o);if(v){n.addAttribute(y,v)}n.addChildNode(f)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends p.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new p.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new p.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const d=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),d);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,d){const p=loadRestXmlErrorCode(n,o)??"Unknown";const{errorSchema:f,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,o,d);const v=i.NormalizedSchema.of(f);const D=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const M=i.TypeRegistry.for(f[1]).getErrorCtor(f)??Error;const U=new M(D);await this.deserializeHttpMessage(f,t,n,o);const V={};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];V[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(U,y,{$fault:v.getMergedTraits().error,message:D},V),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},5606:(e,t,n)=>{var o=n(5152);var i=n(8857);const d="AWS_ACCESS_KEY_ID";const p="AWS_SECRET_ACCESS_KEY";const f="AWS_SESSION_TOKEN";const y="AWS_CREDENTIAL_EXPIRATION";const v="AWS_CREDENTIAL_SCOPE";const D="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[d];const n=process.env[p];const M=process.env[f];const U=process.env[y];const V=process.env[v];const j=process.env[D];if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...M&&{sessionToken:M},...U&&{expiration:new Date(U)},...V&&{credentialScope:V},...j&&{accountId:j}};o.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new i.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=D;t.ENV_CREDENTIAL_SCOPE=v;t.ENV_EXPIRATION=y;t.ENV_KEY=d;t.ENV_SECRET=p;t.ENV_SESSION=f;t.fromEnv=fromEnv},5861:(e,t,n)=>{var o=n(5606);var i=n(8857);var d=n(4964);const p="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:d,fromInstanceMetadata:f}=await n.e(566).then(n.t.bind(n,566,19));if(process.env[o]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(605).then(n.bind(n,8605));return i.chain(t(e),d(e))}if(process.env[p]&&process.env[p]!=="false"){return async()=>{throw new i.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return f(e)};function memoizeChain(e,t){const n=internalCreateChain(e);let o;let i;let d;const provider=async e=>{if(e?.forceRefresh){return await n(e)}if(d?.expiration){if(d?.expiration?.getTime(){d=e})).finally((()=>{i=undefined}))}}else{o=n(e).then((e=>{d=e})).finally((()=>{o=undefined}));return provider(e)}}return d};return provider}const internalCreateChain=e=>async t=>{let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};let f=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[d.ENV_PROFILE];if(t){const t=process.env[o.ENV_KEY]&&process.env[o.ENV_SECRET];if(t){if(!f){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);f=true}}throw new i.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return o.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:d,ssoRegion:p,ssoRoleName:f,ssoSession:y}=e;if(!o&&!d&&!p&&!f&&!y){throw new i.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:v}=await n.e(998).then(n.t.bind(n,998,19));return v(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=await n.e(869).then(n.t.bind(n,5869,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=await n.e(360).then(n.t.bind(n,5360,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=await n.e(956).then(n.t.bind(n,9956,23));return o(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new i.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},2590:(e,t,n)=>{var o=n(2356);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:i}=n;const{handlerProtocol:d=""}=e.requestHandler.metadata||{};if(d.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(n)};const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),i)}});t.getHostHeaderPlugin=getHostHeaderPlugin;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=i;t.resolveHostHeaderConfig=resolveHostHeaderConfig},5242:(e,t)=>{const loggerMiddleware=()=>(e,t)=>async n=>{try{const o=await e(n);const{clientName:i,commandName:d,logger:p,dynamoDbDocumentClientOptions:f={}}=t;const{overrideInputFilterSensitiveLog:y,overrideOutputFilterSensitiveLog:v}=f;const D=y??t.inputFilterSensitiveLog;const M=v??t.outputFilterSensitiveLog;const{$metadata:U,...V}=o.output;p?.info?.({clientName:i,commandName:d,input:D(n.input),output:M(V),metadata:U});return o}catch(e){const{clientName:o,commandName:i,logger:d,dynamoDbDocumentClientOptions:p={}}=t;const{overrideInputFilterSensitiveLog:f}=p;const y=f??t.inputFilterSensitiveLog;d?.error?.({clientName:o,commandName:i,input:y(n.input),error:e,metadata:e.$metadata});throw e}};const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),n)}});t.getLoggerPlugin=getLoggerPlugin;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=n},1568:(e,t,n)=>{var o=n(2521);const i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(o.recursionDetectionMiddleware(),i)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}))},2521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.recursionDetectionMiddleware=void 0;const o=n(9320);const i=n(2356);const d="X-Amzn-Trace-Id";const p="AWS_LAMBDA_FUNCTION_NAME";const f="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:n}=t;if(!i.HttpRequest.isInstance(n)){return e(t)}const y=Object.keys(n.headers??{}).find((e=>e.toLowerCase()===d.toLowerCase()))??d;if(n.headers.hasOwnProperty(y)){return e(t)}const v=process.env[p];const D=process.env[f];const M=await o.InvokeStore.getInstanceAsync();const U=M?.getXRayTraceId();const V=U??D;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(v)&&nonEmptyString(V)){n.headers[d]=V}return e({...t,request:n})};t.recursionDetectionMiddleware=recursionDetectionMiddleware},2959:(e,t,n)=>{var o=n(402);var i=n(3068);var d=n(2356);var p=n(8704);const f=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=o.normalizeProvider(e.userAgentAppId??f);const{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==="string"?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!isValidUserAgentAppId(n)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof n!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(n.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return n}})}const y=/\d{12}\.ddb/;async function checkFeatures(e,t,n){const o=n.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){p.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const n=await t.retryStrategy();if(typeof n.acquireInitialRetryToken==="function"){if(n.constructor?.name?.includes("Adaptive")){p.setFeature(e,"RETRY_MODE_ADAPTIVE","F")}else{p.setFeature(e,"RETRY_MODE_STANDARD","E")}}else{p.setFeature(e,"RETRY_MODE_LEGACY","D")}}if(typeof t.accountIdEndpointMode==="function"){const n=e.endpointV2;if(String(n?.url?.hostname).match(y)){p.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":p.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":p.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":p.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const t=i;if(t.accountId){p.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[n,o]of Object.entries(t.$source??{})){p.setFeature(e,n,o)}}}const v="user-agent";const D="x-amz-user-agent";const M=" ";const U="/";const V=/[^!$%&'*+\-.^_`|~\w]/g;const j=/[^!$%&'*+\-.^_`|~\w#]/g;const K="-";const ee=1024;function encodeFeatures(e){let t="";for(const n in e){const o=e[n];if(t.length+o.length+1<=ee){if(t.length){t+=","+o}else{t+=o}continue}break}return t}const userAgentMiddleware=e=>(t,n)=>async o=>{const{request:p}=o;if(!d.HttpRequest.isInstance(p)){return t(o)}const{headers:f}=p;const y=n?.userAgent?.map(escapeUserAgent)||[];const U=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(n,e,o);const V=n;U.push(`m/${encodeFeatures(Object.assign({},n.__smithy_context?.features,V.__aws_sdk_context?.features))}`);const j=e?.customUserAgent?.map(escapeUserAgent)||[];const K=await e.userAgentAppId();if(K){U.push(escapeUserAgent([`app`,`${K}`]))}const ee=i.getUserAgentPrefix();const te=(ee?[ee]:[]).concat([...U,...y,...j]).join(M);const re=[...U.filter((e=>e.startsWith("aws-sdk-"))),...j].join(M);if(e.runtime!=="browser"){if(re){f[D]=f[D]?`${f[v]} ${re}`:re}f[v]=te}else{f[D]=te}return t({...o,request:p})};const escapeUserAgent=e=>{const t=e[0].split(U).map((e=>e.replace(V,K))).join(U);const n=e[1]?.replace(j,K);const o=t.indexOf(U);const i=t.substring(0,o);let d=t.substring(o+1);if(i==="api"){d=d.toLowerCase()}return[i,d,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const te={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),te)}});t.DEFAULT_UA_APP_ID=f;t.getUserAgentMiddlewareOptions=te;t.getUserAgentPlugin=getUserAgentPlugin;t.resolveUserAgentConfig=resolveUserAgentConfig;t.userAgentMiddleware=userAgentMiddleware},6463:(e,t,n)=>{var o=n(5779);var i=n(9316);const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});Object.defineProperty(t,"NODE_REGION_CONFIG_FILE_OPTIONS",{enumerable:true,get:function(){return i.NODE_REGION_CONFIG_FILE_OPTIONS}});Object.defineProperty(t,"NODE_REGION_CONFIG_OPTIONS",{enumerable:true,get:function(){return i.NODE_REGION_CONFIG_OPTIONS}});Object.defineProperty(t,"REGION_ENV_NAME",{enumerable:true,get:function(){return i.REGION_ENV_NAME}});Object.defineProperty(t,"REGION_INI_NAME",{enumerable:true,get:function(){return i.REGION_INI_NAME}});Object.defineProperty(t,"resolveRegionConfig",{enumerable:true,get:function(){return i.resolveRegionConfig}});t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}))},5779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.warning=void 0;t.stsRegionDefaultResolver=stsRegionDefaultResolver;const o=n(9316);const i=n(5704);function stsRegionDefaultResolver(e={}){return(0,i.loadConfig)({...o.NODE_REGION_CONFIG_OPTIONS,async default(){if(!t.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}t.warning={silence:false}},3068:(e,t,n)=>{var o=n(9674);var i=n(4494);const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!o.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(o.isIpAddress(e)){return false}return true};const d=":";const p="/";const parseArn=e=>{const t=e.split(d);if(t.length<6)return null;const[n,o,i,f,y,...v]=t;if(n!=="arn"||o===""||i===""||v.join(d)==="")return null;const D=v.map((e=>e.split(p))).flat();return{partition:o,service:i,region:f,accountId:y,resourceId:D}};var f=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var y="1.1";var v={partitions:f,version:y};let D=v;let M="";const partition=e=>{const{partitions:t}=D;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,i]of Object.entries(t)){if(n===e){return{...o,...i}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};const setPartitionInfo=(e,t="")=>{D=e;M=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(v,"")};const getUserAgentPrefix=()=>M;const U={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};o.customEndpointFunctions.aws=U;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>i.parseUrl(e.url);Object.defineProperty(t,"EndpointError",{enumerable:true,get:function(){return o.EndpointError}});Object.defineProperty(t,"isIpAddress",{enumerable:true,get:function(){return o.isIpAddress}});Object.defineProperty(t,"resolveEndpoint",{enumerable:true,get:function(){return o.resolveEndpoint}});t.awsEndpointFunctions=U;t.getUserAgentPrefix=getUserAgentPrefix;t.partition=partition;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.setPartitionInfo=setPartitionInfo;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo},1656:(e,t,n)=>{var o=n(857);var i=n(932);var d=n(2959);const p={isCrtAvailable:false};const isCrtAvailable=()=>{if(p.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>async n=>{const d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o.platform()}`,o.release()],["lang/js"],["md/nodejs",`${i.versions.node}`]];const p=isCrtAvailable();if(p){d.push(p)}if(e){d.push([`api/${e}`,t])}if(i.env.AWS_EXECUTION_ENV){d.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const f=await(n?.userAgentAppId?.());const y=f?[...d,[`app/${f}`]]:[...d];return y};const f=createDefaultUserAgentProvider;const y="AWS_SDK_UA_APP_ID";const v="sdk_ua_app_id";const D="sdk-ua-app-id";const M={environmentVariableSelector:e=>e[y],configFileSelector:e=>e[v]??e[D],default:d.DEFAULT_UA_APP_ID};t.NODE_APP_ID_CONFIG_OPTIONS=M;t.UA_APP_ID_ENV_NAME=y;t.UA_APP_ID_INI_NAME=v;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.crtAvailability=p;t.defaultUserAgent=f},4274:(e,t,n)=>{var o=n(3343);function escapeAttribute(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function escapeElement(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"
").replace(/\u2028/,"
")}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,n){const o=new XmlNode(e);if(t!==undefined){o.addChildNode(new XmlText(t))}if(n!==undefined){o.withName(n)}return o}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,n=t){if(e[t]!=null){const o=XmlNode.of(t,e[t]).withName(n);this.c(o)}}l(e,t,n,o){if(e[t]!=null){const e=o();e.map((e=>{e.withName(n);this.c(e)}))}}lc(e,t,n,o){if(e[t]!=null){const e=o();const t=new XmlNode(n);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const n=this.attributes;for(const e of Object.keys(n)){const o=n[e];if(o!=null){t+=` ${e}="${escapeAttribute(""+o)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}${this.name}>`}}Object.defineProperty(t,"parseXML",{enumerable:true,get:function(){return o.parseXML}});t.XmlNode=XmlNode;t.XmlText=XmlText},3343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const o=n(591);const i=new o.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});i.addEntity("#xD","\r");i.addEntity("#10","\n");function parseXML(e){return i.parse(e,true)}},9320:(e,t,n)=>{const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(e){return Object.values(o).includes(e)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(n.t.bind(n,6698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const n=this.als.getStore();if(!n){throw new Error("No context available")}n[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(){if(!t){t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const t=e?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=t;return t}else{return t}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},5862:(e,t,n)=>{var o;o={value:true};var i=n(5004);var d=n(1391);var p=n(7132);const f=i.createClientLogger("core-lro");const y=2e3;const v=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:i,processResult:d,getError:p,response:y,setErrorAsResult:v}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=p===null||p===void 0?void 0:p(y);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const i=`The long-running operation has failed${o}`;n.setError(t,new Error(i));n.setFailed(t);f.warning(i);break}case"canceled":{n.setCanceled(t);break}}if((i===null||i===void 0?void 0:i(y,t))||i===undefined&&["succeeded","canceled"].concat(v?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:y,state:t,processResult:d}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:i,withOperationLocation:d,setErrorAsResult:p}=e;const{operationLocation:y,resourceLocation:v,metadata:D,response:M}=await t();if(y)d===null||d===void 0?void 0:d(y,false);const U={metadata:D,operationLocation:y,resourceLocation:v};f.verbose(`LRO: Operation description:`,U);const V=n.initState(U);const j=i({response:M,state:V,operationLocation:y});processOperationStatus({state:V,status:j,stateProxy:n,response:M,setErrorAsResult:p,processResult:o});return V}async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:o,operationLocation:i,getOperationStatus:d,getResourceLocation:p,isOperationError:y,options:D}=e;const M=await t(i,D).catch(setStateError({state:n,stateProxy:o,isOperationError:y}));const U=d(M,n);f.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${v.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=p(M,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:o,isOperationError:y})),status:U}}}return{response:M,status:U}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:i,getOperationStatus:d,getResourceLocation:p,getOperationLocation:f,isOperationError:y,withOperationLocation:D,getPollingInterval:M,processResult:U,getError:V,updateState:j,setDelay:K,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:d,state:n,stateProxy:o,operationLocation:re,getResourceLocation:p,isOperationError:y,options:i});processOperationStatus({status:ne,response:e,state:n,stateProxy:o,isDone:ee,processResult:U,getError:V,setErrorAsResult:te});if(!v.includes(ne)){const t=M===null||M===void 0?void 0:M(e);if(t)K(t);const o=f===null||f===void 0?void 0:f(e,n);if(o!==undefined){const e=re!==o;n.config.operationLocation=o;D===null||D===void 0?void 0:D(o,e)}else D===null||D===void 0?void 0:D(re,false)}j===null||j===void 0?void 0:j(n,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;switch(n){case"PUT":{return o}case"DELETE":{return undefined}default:{switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const d=getOperationLocationHeader(t);const p=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:p});const y=getLocationHeader(t);const v=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:v,location:y,requestPath:o,resourceLocationConfig:i})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(v==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{f.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const d=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function getErrorFromResponse(e){const t=e.flatResponse.error;if(!t){f.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){f.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await i.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:d})}function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const n=e.resourceLocation;if(n!==undefined){t.config.resourceLocation=n}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:i,updateState:d,setDelay:p,state:f,setErrorAsResult:y}=e;return pollOperation({state:f,stateProxy:n,setDelay:p,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:d,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:y})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:o,isOperationError:i,getResourceLocation:f,getPollingInterval:v,getError:D,resolveOnUnsuccessful:M}=e;return async({init:e,poll:U},V)=>{const{processResult:j,updateState:K,withOperationLocation:ee,intervalInMs:te=y,restoreFrom:re}=V||{};const ne=createStateProxy$1();const se=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const oe=re?deserializeState(re):await initOperation({init:e,stateProxy:ne,processResult:j,getOperationStatus:n,withOperationLocation:se,setErrorAsResult:!M});let ie;const ae=new d.AbortController;const ce=new Map;const handleProgressEvents=async()=>ce.forEach((e=>e(oe)));const le="Operation was canceled";let ue=te;const de={getOperationState:()=>oe,getResult:()=>oe.result,isDone:()=>["succeeded","failed","canceled"].includes(oe.status),isStopped:()=>ie===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:oe}),onProgress:e=>{const t=Symbol();ce.set(t,e);return()=>ce.delete(t)},pollUntilDone:e=>ie!==null&&ie!==void 0?ie:ie=(async()=>{const{abortSignal:t}=e||{};const{signal:n}=t?new d.AbortController([t,ae.signal]):ae;if(!de.isDone()){await de.poll({abortSignal:n});while(!de.isDone()){await p.delay(ue,{abortSignal:n});await de.poll({abortSignal:n})}}if(M){return de.getResult()}else{switch(oe.status){case"succeeded":return de.getResult();case"canceled":throw new Error(le);case"failed":throw oe.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{ie=undefined})),async poll(e){if(M){if(de.isDone())return}else{switch(oe.status){case"succeeded":return;case"canceled":throw new Error(le);case"failed":throw oe.error}}await pollOperation({poll:U,state:oe,stateProxy:ne,getOperationLocation:t,isOperationError:i,withOperationLocation:se,getPollingInterval:v,getOperationStatus:o,getResourceLocation:f,processResult:j,getError:D,updateState:K,options:e,setDelay:e=>{ue=e},setErrorAsResult:!M});await handleProgressEvents();if(!M){switch(oe.status){case"canceled":throw new Error(le);case"failed":throw oe.error}}}};return de}}async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:o,processResult:i,restoreFrom:d,updateState:p,withOperationLocation:f,resolveOnUnsuccessful:y=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:y})({init:async()=>{const t=await e.sendInitialRequest();const o=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:o,withOperationLocation:f,restoreFrom:d,updateState:p,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,d,p){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=d;this.isDone=p}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const i=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:i?({flatResponse:e},t)=>i(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){f.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:n=y,resumeFrom:o,resolveOnUnsuccessful:i=false,isDone:d,lroResourceLocationConfig:p,processResult:f,updateState:v}=t||{};const D=o?deserializeState(o):{};const M=new GenericPollOperation(D,e,!i,p,f,v,d);super(M);this.resolveOnUnsuccessful=i;this.config={intervalInMs:n};M.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}o=LroEngine;t.vu=Poller;o=PollerCancelledError;o=PollerStoppedError;o=createHttpPoller},1391:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},7132:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(1391);var i=n(6982);var d;const p=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((d=process.versions)===null||d===void 0?void 0:d.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:d}=t!==null&&t!==void 0?t:{};return new Promise(((t,p)=>{function rejectOnAbort(){p(new o.AbortError(d!==null&&d!==void 0?d:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();p(e)}))}catch(e){p(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}const f="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i!==null&&i!==void 0?i:f})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return i.createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return i.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}function generateUUID(){let e="";for(let t=0;t<32;t++){const n=Math.floor(Math.random()*16);if(t===12){e+="4"}else if(t===16){e+=n&3|8}else{e+=n.toString(16)}if(t===7||t===11||t===15||t===19){e+="-"}}return e}var y;let v=typeof((y=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||y===void 0?void 0:y.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;if(!v){v=generateUUID}function randomUUID(){return v()}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=p;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;t.randomUUID=randomUUID},5004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(857);var i=n(9023);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var d=_interopDefaultLegacy(i);function log(e,...t){process.stderr.write(`${d["default"].format(e,...t)}${o.EOL}`)}const p=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let f;let y=[];let v=[];const D=[];if(p){enable(p)}const M=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){f=e;y=[];v=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){v.push(new RegExp(`^${e.substr(1)}$`))}else{y.push(new RegExp(`^${e}$`))}}for(const e of D){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of v){if(t.test(e)){return false}}for(const t of y){if(t.test(e)){return true}}return false}function disable(){const e=f||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:M.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}D.push(t);return t}function destroy(){const e=D.indexOf(this);if(e>=0){D.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var U=M;const V=new Set;const j=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let K;const ee=U("azure");ee.log=(...e)=>{U.log(...e)};const te=["verbose","info","warning","error"];if(j){if(isAzureLogLevel(j)){setLogLevel(j)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${j}'; logging is not enabled. Acceptable values: ${te.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${te.join(",")}`)}K=e;const t=[];for(const e of V){if(shouldEnable(e)){t.push(e.namespace)}}U.enable(t.join(","))}function getLogLevel(){return K}const re={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=ee.extend(e);patchLogMethod(ee,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const n=Object.assign(e.extend(t),{level:t});patchLogMethod(e,n);if(shouldEnable(n)){const e=U.disable();U.enable(e+","+n.namespace)}V.add(n);return n}function shouldEnable(e){return Boolean(K&&re[e.level]<=re[K])}function isAzureLogLevel(e){return te.includes(e)}t.AzureLogger=ee;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},1046:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?d[p.COMPARATORLOOSE]:d[p.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new v(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new D(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new D(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(7766);const{safeRe:d,t:p}=n(4836);const f=n(7721);const y=n(2814);const v=n(5186);const D=n(3177)},3177:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=p(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof f){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&K)|(this.options.loose&&ee);const n=t+":"+e;const o=d.get(n);if(o){return o}const i=this.options.loose;const p=i?D[M.HYPHENRANGELOOSE]:D[M.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(D[M.COMPARATORTRIM],U);y("comparator trim",e);e=e.replace(D[M.TILDETRIM],V);y("tilde trim",e);e=e.replace(D[M.CARETTRIM],j);y("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){v=v.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(D[M.COMPARATORLOOSE])}))}y("range list",v);const te=new Map;const re=v.map((e=>new f(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];d.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(D[M.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?D[M.TILDELOOSE]:D[M.TILDE];return e.replace(n,((t,n,o,i,d)=>{y("tilde",e,t,n,o,i,d);let p;if(isX(n)){p=""}else if(isX(o)){p=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){p=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(d){y("replaceTilde pr",d);p=`>=${n}.${o}.${i}-${d} <${n}.${+o+1}.0-0`}else{p=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",p);return p}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?D[M.CARETLOOSE]:D[M.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,d,p)=>{y("caret",e,t,n,i,d,p);let f;if(isX(n)){f=""}else if(isX(i)){f=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(d)){if(n==="0"){f=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{f=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(p){y("replaceCaret pr",p);if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${d}-${p} <${n}.${i}.${+d+1}-0`}else{f=`>=${n}.${i}.${d}-${p} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${d}-${p} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${d}${o} <${n}.${i}.${+d+1}-0`}else{f=`>=${n}.${i}.${d}${o} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${d} <${+n+1}.0.0-0`}}y("caret return",f);return f}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?D[M.XRANGELOOSE]:D[M.XRANGE];return e.replace(n,((n,o,i,d,p,f)=>{y("xRange",e,n,o,i,d,p,f);const v=isX(i);const D=v||isX(d);const M=D||isX(p);const U=M;if(o==="="&&U){o=""}f=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&U){if(D){d=0}p=0;if(o===">"){o=">=";if(D){i=+i+1;d=0;p=0}else{d=+d+1;p=0}}else if(o==="<="){o="<";if(D){i=+i+1}else{d=+d+1}}if(o==="<"){f="-0"}n=`${o+i}.${d}.${p}${f}`}else if(D){n=`>=${i}.0.0${f} <${+i+1}.0.0-0`}else if(M){n=`>=${i}.${d}.0${f} <${i}.${+d+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(D[M.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(D[t.includePrerelease?M.GTE0PRE:M.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,d,p,f,y,v,D,M,U)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(d)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(p){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(v)){y=""}else if(isX(D)){y=`<${+v+1}.0.0-0`}else if(isX(M)){y=`<${v}.${+D+1}.0-0`}else if(U){y=`<=${v}.${D}.${M}-${U}`}else if(e){y=`<${v}.${D}.${+M+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},5186:(e,t,n)=>{const o=n(2814);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:d}=n(8504);const{safeRe:p,t:f}=n(4836);const y=n(7766);const{compareIdentifiers:v}=n(7865);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?p[f.LOOSE]:p[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>d||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>d||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>d||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return v(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return v(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?p[f.PRERELEASELOOSE]:p[f.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(v(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},5436:(e,t,n)=>{const o=n(7526);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},7721:(e,t,n)=>{const o=n(4107);const i=n(7705);const d=n(7962);const p=n(5603);const f=n(525);const y=n(3966);const cmp=(e,t,n,v)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,v);case"!=":return i(e,n,v);case">":return d(e,n,v);case">=":return p(e,n,v);case"<":return f(e,n,v);case"<=":return y(e,n,v);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6356:(e,t,n)=>{const o=n(5186);const i=n(7526);const{safeRe:d,t:p}=n(4836);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?d[p.COERCEFULL]:d[p.COERCE])}else{const o=t.includePrerelease?d[p.COERCERTLFULL]:d[p.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const f=n[2];const y=n[3]||"0";const v=n[4]||"0";const D=t.includePrerelease&&n[5]?`-${n[5]}`:"";const M=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${f}.${y}.${v}${D}${M}`,t)};e.exports=coerce},2147:(e,t,n)=>{const o=n(5186);const compareBuild=(e,t,n)=>{const i=new o(e,n);const d=new o(t,n);return i.compare(d)||i.compareBuild(d)};e.exports=compareBuild},8545:(e,t,n)=>{const o=n(18);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},18:(e,t,n)=>{const o=n(5186);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},7290:(e,t,n)=>{const o=n(7526);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const d=n.compare(i);if(d===0){return null}const p=d>0;const f=p?n:i;const y=p?i:n;const v=!!f.prerelease.length;const D=!!y.prerelease.length;if(D&&!v){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(f)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const M=v?"pre":"";if(n.major!==i.major){return M+"major"}if(n.minor!==i.minor){return M+"minor"}if(n.patch!==i.patch){return M+"patch"}return"prerelease"};e.exports=diff},4107:(e,t,n)=>{const o=n(18);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},7962:(e,t,n)=>{const o=n(18);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},5603:(e,t,n)=>{const o=n(18);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2317:(e,t,n)=>{const o=n(5186);const inc=(e,t,n,i,d)=>{if(typeof n==="string"){d=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,d).version}catch(e){return null}};e.exports=inc},525:(e,t,n)=>{const o=n(18);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},3966:(e,t,n)=>{const o=n(18);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},4716:(e,t,n)=>{const o=n(5186);const major=(e,t)=>new o(e,t).major;e.exports=major},7968:(e,t,n)=>{const o=n(5186);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},7705:(e,t,n)=>{const o=n(18);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},7526:(e,t,n)=>{const o=n(5186);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},4807:(e,t,n)=>{const o=n(5186);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5039:(e,t,n)=>{const o=n(7526);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},5236:(e,t,n)=>{const o=n(18);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},9547:(e,t,n)=>{const o=n(2147);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},6076:(e,t,n)=>{const o=n(3177);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},6293:(e,t,n)=>{const o=n(2147);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},2475:(e,t,n)=>{const o=n(7526);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},1955:(e,t,n)=>{const o=n(4836);const i=n(8504);const d=n(5186);const p=n(7865);const f=n(7526);const y=n(2475);const v=n(5436);const D=n(2317);const M=n(7290);const U=n(4716);const V=n(7968);const j=n(4807);const K=n(5039);const ee=n(18);const te=n(5236);const re=n(8545);const ne=n(2147);const se=n(6293);const oe=n(9547);const ie=n(7962);const ae=n(525);const ce=n(4107);const le=n(7705);const ue=n(5603);const de=n(3966);const Ae=n(7721);const pe=n(6356);const me=n(1046);const ge=n(3177);const fe=n(6076);const he=n(8465);const ye=n(1550);const Ee=n(9820);const Ce=n(2271);const Ie=n(8816);const be=n(6317);const Se=n(5133);const Be=n(8548);const we=n(9118);const Re=n(3139);const Qe=n(1093);e.exports={parse:f,valid:y,clean:v,inc:D,diff:M,major:U,minor:V,patch:j,prerelease:K,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:Ae,coerce:pe,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Qe,SemVer:d,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}},8504:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const d=n-6;const p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:o,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2814:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},7865:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},7515:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},7766:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},4836:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:d}=n(8504);const p=n(2814);t=e.exports={};const f=t.re=[];const y=t.safeRe=[];const v=t.src=[];const D=t.safeSrc=[];const M=t.t={};let U=0;const V="[a-zA-Z0-9-]";const j=[["\\s",1],["\\d",d],[V,i]];const makeSafeRegex=e=>{for(const[t,n]of j){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=U++;p(e,i,t);M[e]=i;v[i]=t;D[i]=o;f[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${V}*`);createToken("MAINVERSION",`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${v[M.PRERELEASEIDENTIFIER]}(?:\\.${v[M.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${v[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[M.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${V}+`);createToken("BUILD",`(?:\\+(${v[M.BUILDIDENTIFIER]}(?:\\.${v[M.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${v[M.MAINVERSION]}${v[M.PRERELEASE]}?${v[M.BUILD]}?`);createToken("FULL",`^${v[M.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${v[M.MAINVERSIONLOOSE]}${v[M.PRERELEASELOOSE]}?${v[M.BUILD]}?`);createToken("LOOSE",`^${v[M.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${v[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${v[M.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:${v[M.PRERELEASE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:${v[M.PRERELEASELOOSE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${v[M.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",v[M.COERCEPLAIN]+`(?:${v[M.PRERELEASE]})?`+`(?:${v[M.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",v[M.COERCE],true);createToken("COERCERTLFULL",v[M.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${v[M.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${v[M.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${v[M.LONECARET]}${v[M.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${v[M.LONECARET]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${v[M.GTLT]}\\s*(${v[M.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]}|${v[M.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${v[M.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${v[M.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5133:(e,t,n)=>{const o=n(6317);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},9118:(e,t,n)=>{const o=n(3177);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},8548:(e,t,n)=>{const o=n(6317);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},1550:(e,t,n)=>{const o=n(5186);const i=n(3177);const maxSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===-1){d=e;p=new o(d,n)}}}));return d};e.exports=maxSatisfying},9820:(e,t,n)=>{const o=n(5186);const i=n(3177);const minSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===1){d=e;p=new o(d,n)}}}));return d};e.exports=minSatisfying},2271:(e,t,n)=>{const o=n(5186);const i=n(3177);const d=n(7962);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!p||d(t,p)){p=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(p&&(!n||d(n,p))){n=p}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},6317:(e,t,n)=>{const o=n(5186);const i=n(1046);const{ANY:d}=i;const p=n(3177);const f=n(6076);const y=n(7962);const v=n(525);const D=n(3966);const M=n(5603);const outside=(e,t,n,U)=>{e=new o(e,U);t=new p(t,U);let V,j,K,ee,te;switch(n){case">":V=y;j=D;K=v;ee=">";te=">=";break;case"<":V=v;j=M;K=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,t,U)){return false}for(let n=0;n{if(e.semver===d){e=new i(">=0.0.0")}p=p||e;f=f||e;if(V(e.semver,p.semver,U)){p=e}else if(K(e.semver,f.semver,U)){f=e}}));if(p.operator===ee||p.operator===te){return false}if((!f.operator||f.operator===ee)&&j(e,f.semver)){return false}else if(f.operator===te&&K(e,f.semver)){return false}}return true};e.exports=outside},3139:(e,t,n)=>{const o=n(6076);const i=n(18);e.exports=(e,t,n)=>{const d=[];let p=null;let f=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){f=e;if(!p){p=e}}else{if(f){d.push([p,f])}f=null;p=null}}if(p){d.push([p,null])}const v=[];for(const[e,t]of d){if(e===t){v.push(e)}else if(!t&&e===y[0]){v.push("*")}else if(!t){v.push(`>=${e}`)}else if(e===y[0]){v.push(`<=${t}`)}else{v.push(`${e} - ${t}`)}}const D=v.join(" || ");const M=typeof t.raw==="string"?t.raw:String(t);return D.length{const o=n(3177);const i=n(1046);const{ANY:d}=i;const p=n(6076);const f=n(18);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const v=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===d){if(t.length===1&&t[0].semver===d){return true}else if(n.includePrerelease){e=y}else{e=v}}if(t.length===1&&t[0].semver===d){if(n.includePrerelease){return true}else{t=v}}const o=new Set;let i,D;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){D=lowerLT(D,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let M;if(i&&D){M=f(i.semver,D.semver,n);if(M>0){return null}else if(M===0&&(i.operator!==">="||D.operator!=="<=")){return null}}for(const e of o){if(i&&!p(e,String(i),n)){return null}if(D&&!p(e,String(D),n)){return null}for(const o of t){if(!p(e,String(o),n)){return false}}return true}let U,V;let j,K;let ee=D&&!n.includePrerelease&&D.semver.prerelease.length?D.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&D.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){K=K||e.operator===">"||e.operator===">=";j=j||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){U=higherGT(i,e,n);if(U===e&&U!==i){return false}}else if(i.operator===">="&&!p(i.semver,String(e),n)){return false}}if(D){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){V=lowerLT(D,e,n);if(V===e&&V!==D){return false}}else if(D.operator==="<="&&!p(D.semver,String(e),n)){return false}}if(!e.operator&&(D||i)&&M!==0){return false}}if(i&&j&&!D&&M!==0){return false}if(D&&K&&!i&&M!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},8465:(e,t,n)=>{const o=n(3177);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8816:(e,t,n)=>{const o=n(3177);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},9316:(e,t,n)=>{var o=n(6716);var i=n(6324);var d=n(9674);const p="AWS_USE_DUALSTACK_ENDPOINT";const f="use_dualstack_endpoint";const y=false;const v={environmentVariableSelector:e=>o.booleanSelector(e,p,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,f,o.SelectorType.CONFIG),default:false};const D="AWS_USE_FIPS_ENDPOINT";const M="use_fips_endpoint";const U=false;const V={environmentVariableSelector:e=>o.booleanSelector(e,D,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,M,o.SelectorType.CONFIG),default:false};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:d}=e;return Object.assign(e,{tls:t??true,endpoint:i.normalizeProvider(typeof n==="string"?o(n):n),isCustomEndpoint:true,useDualstackEndpoint:i.normalizeProvider(d??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const n=await e.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(n)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const d=await e.useFipsEndpoint();const{hostname:p}=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:d})??{};if(!p){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${p}`)};const resolveEndpointsConfig=e=>{const t=i.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:n,useFipsEndpoint:o,urlParser:d,tls:p}=e;return Object.assign(e,{tls:p??true,endpoint:n?i.normalizeProvider(typeof n==="string"?d(n):n):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!n,useDualstackEndpoint:t})};const j="AWS_REGION";const K="region";const ee={environmentVariableSelector:e=>e[j],configFileSelector:e=>e[K],default:()=>{throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(e,t=d.isValidHostLabel)=>{if(!re.has(e)&&!t(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{re.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const n=getRealRegion(e);checkRegion(n);return n},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((n=>t[n].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:o,regionHash:i,partitionHash:d})=>{const p=getResolvedPartition(e,{partitionHash:d});const f=e in i?e:d[p]?.endpoint??e;const y={useFipsEndpoint:t,useDualstackEndpoint:n};const v=getHostnameFromVariants(i[f]?.variants,y);const D=getHostnameFromVariants(d[p]?.variants,y);const M=getResolvedHostname(f,{regionHostname:v,partitionHostname:D});if(M===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:f,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const U=getResolvedSigningRegion(M,{signingRegion:i[f]?.signingRegion,regionRegex:d[p].regionRegex,useFipsEndpoint:t});return{partition:p,signingService:o,hostname:M,...U&&{signingRegion:U},...i[f]?.signingService&&{signingService:i[f].signingService}}};t.CONFIG_USE_DUALSTACK_ENDPOINT=f;t.CONFIG_USE_FIPS_ENDPOINT=M;t.DEFAULT_USE_DUALSTACK_ENDPOINT=y;t.DEFAULT_USE_FIPS_ENDPOINT=U;t.ENV_USE_DUALSTACK_ENDPOINT=p;t.ENV_USE_FIPS_ENDPOINT=D;t.NODE_REGION_CONFIG_FILE_OPTIONS=te;t.NODE_REGION_CONFIG_OPTIONS=ee;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=v;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=V;t.REGION_ENV_NAME=j;t.REGION_INI_NAME=K;t.getRegionInfo=getRegionInfo;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},402:(e,t,n)=>{var o=n(690);var i=n(6324);var d=n(3255);var p=n(2356);var f=n(3422);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const n=[];for(const o of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===o){n.push(t)}}}for(const t of e){if(!n.find((({schemeId:e})=>e===t.schemeId))){n.push(t)}}return n};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const n of e){t.set(n.schemeId,n)}return t}const httpAuthSchemeMiddleware=(e,t)=>(n,o)=>async d=>{const p=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,d.input));const f=e.authSchemePreference?await e.authSchemePreference():[];const y=resolveAuthOptions(p,f);const v=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const D=i.getSmithyContext(o);const M=[];for(const n of y){const i=v.get(n.schemeId);if(!i){M.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const d=i.identityProvider(await t.identityProviderConfigProvider(e));if(!d){M.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:p={},signingProperties:f={}}=n.propertiesExtractor?.(e,o)||{};n.identityProperties=Object.assign(n.identityProperties||{},p);n.signingProperties=Object.assign(n.signingProperties||{},f);D.selectedHttpAuthScheme={httpAuthOption:n,identity:await d(n.identityProperties),signer:i.signer};break}if(!D.selectedHttpAuthScheme){throw new Error(M.join("\n"))}return n(d)};const y={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),y)}});const v={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:d.serializerMiddlewareOption.name};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),v)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async n=>{if(!p.HttpRequest.isInstance(n.request)){return e(n)}const o=i.getSmithyContext(t);const d=o.selectedHttpAuthScheme;if(!d){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:f={}},identity:y,signer:v}=d;const D=await e({...n,request:await v.sign(n.request,y,f)}).catch((v.errorHandler||defaultErrorHandler)(f));(v.successHandler||defaultSuccessHandler)(D.response,f);return D};const D={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),D)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,n,o=e=>e,...i)=>{let d=new e(n);d=o(d)??d;return await t.send(d,...i)};function createPaginator(e,t,n,o,i){return async function*paginateOperation(d,p,...f){const y=p;let v=d.startingToken??y[n];let D=true;let M;while(D){y[n]=v;if(i){y[i]=y[i]??d.pageSize}if(d.client instanceof e){M=await makePagedClientRequest(t,d.client,p,d.withCommand,...f)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield M;const U=v;v=get(M,o);D=!!(v&&(!d.stopOnSameToken||v!==U))}return undefined}}const get=(e,t)=>{let n=e;const o=t.split(".");for(const e of o){if(!n||typeof n!=="object"){return undefined}n=n[e]}return n};function setFeature(e,t,n){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=n}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e)){if(n!==undefined){this.authSchemes.set(t,n)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,n){if(!n){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!n.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!n.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const i=p.HttpRequest.clone(e);if(n.in===o.HttpApiKeyAuthLocation.QUERY){i.query[n.name]=t.apiKey}else if(n.in===o.HttpApiKeyAuthLocation.HEADER){i.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+n.in+"`")}return i}}class HttpBearerAuthSigner{async sign(e,t,n){const o=p.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${t.token}`;return o}}class NoAuthSigner{async sign(e,t,n){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()e.expiration!==undefined;const memoizeIdentityProvider=(e,t,n)=>{if(e===undefined){return undefined}const o=typeof e!=="function"?async()=>Promise.resolve(e):e;let i;let d;let p;let f=false;const coalesceProvider=async e=>{if(!d){d=o(e)}try{i=await d;p=true;f=false}finally{d=undefined}return i};if(t===undefined){return async e=>{if(!p||e?.forceRefresh){i=await coalesceProvider(e)}return i}}return async e=>{if(!p||e?.forceRefresh){i=await coalesceProvider(e)}if(f){return i}if(!n(i)){f=true;return i}if(t(i)){await coalesceProvider(e);return i}return i}};Object.defineProperty(t,"requestBuilder",{enumerable:true,get:function(){return f.requestBuilder}});t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=M;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=y;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=v;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=D;t.isIdentityExpired=U;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},4645:(e,t,n)=>{var o=n(2430);var i=n(1577);var d=n(3422);var p=n(2356);var f=n(2098);var y=n(6890);var v=n(6324);var D=n(8385);const M=0;const U=1;const V=2;const j=3;const K=4;const ee=5;const te=6;const re=7;const ne=20;const se=21;const oe=22;const ie=23;const ae=24;const ce=25;const le=26;const ue=27;const de=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const Ae=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[Ae]=true;return e}const pe=typeof TextDecoder!=="undefined";const me=typeof Buffer!=="undefined";let ge=alloc(0);let fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength);const he=pe?new TextDecoder:null;let ye=0;function setPayload(e){ge=e;fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const n=(ge[e]&224)>>5;const i=ge[e]&31;switch(n){case M:case U:case te:let d;let p;if(i<24){d=i;p=1}else{switch(i){case ae:case ce:case le:case ue:const n=Ee[i];const o=n+1;p=o;if(t-e>7;const o=(e&124)>>2;const i=(e&3)<<8|t;const d=n===0?1:-1;let p;let f;if(o===0){if(i===0){return 0}else{p=Math.pow(2,1-15);f=0}}else if(o===31){if(i===0){return d*Infinity}else{return NaN}}else{p=Math.pow(2,o-15);f=1}f+=i/1024;return d*(p*f)}function decodeCount(e,t){const n=ge[e]&31;if(n<24){ye=1;return n}if(n===ae||n===ce||n===le||n===ue){const o=Ee[n];ye=o+1;if(t-e>5;const d=ge[e]&31;if(i!==j){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(d===de){throw new Error("nested indefinite string.")}const p=decodeUnstructuredByteString(e,t);const f=ye;e+=f;for(let e=0;e>5;const d=ge[e]&31;if(i!==V){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(d===de){throw new Error("nested indefinite string.")}const p=decodeUnstructuredByteString(e,t);const f=ye;e+=f;for(let e=0;e=t){throw new Error("unexpected end of map payload.")}const n=(ge[e]&224)>>5;if(n!==j){throw new Error(`unexpected major type ${n} for map key at index ${e}.`)}const o=decode(e,t);e+=ye;const i=decode(e,t);e+=ye;d[o]=i}ye=o+(e-i);return d}function decodeMapIndefinite(e,t){e+=1;const n=e;const o={};for(;e=t){throw new Error("unexpected end of map payload.")}if(ge[e]===255){ye=e-n+2;return o}const i=(ge[e]&224)>>5;if(i!==j){throw new Error(`unexpected major type ${i} for map key.`)}const d=decode(e,t);e+=ye;const p=decode(e,t);e+=ye;o[d]=p}throw new Error("expected break marker.")}function decodeSpecial(e,t){const n=ge[e]&31;switch(n){case se:case ne:ye=1;return n===se;case oe:ye=1;return null;case ie:ye=1;return null;case ce:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}ye=3;return bytesToFloat16(ge[e+1],ge[e+2]);case le:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}ye=5;return fe.getFloat32(e+1);case ue:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}ye=9;return fe.getFloat64(e+1);default:throw new Error(`unexpected minor value ${n}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const Ce=typeof Buffer!=="undefined";const Ie=2048;let be=alloc(Ie);let Se=new DataView(be.buffer,be.byteOffset,be.byteLength);let Be=0;function ensureSpace(e){const t=be.byteLength-Be;if(t=0;const n=t?M:U;const o=t?e:-e-1;if(o<24){be[Be++]=n<<5|o}else if(o<256){be[Be++]=n<<5|24;be[Be++]=o}else if(o<65536){be[Be++]=n<<5|ce;be[Be++]=o>>8;be[Be++]=o}else if(o<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,o);Be+=4}else{be[Be++]=n<<5|ue;Se.setBigUint64(Be,BigInt(o));Be+=8}continue}be[Be++]=re<<5|ue;Se.setFloat64(Be,e);Be+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const n=t?M:U;const o=t?e:-e-BigInt(1);const i=Number(o);if(i<24){be[Be++]=n<<5|i}else if(i<256){be[Be++]=n<<5|24;be[Be++]=i}else if(i<65536){be[Be++]=n<<5|ce;be[Be++]=i>>8;be[Be++]=i&255}else if(i<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,i);Be+=4}else if(o=0){n[n.byteLength-d]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(n.byteLength*2);be[Be++]=t?194:195;if(Ce){encodeHeader(V,Buffer.byteLength(n))}else{encodeHeader(V,n.byteLength)}be.set(n,Be);Be+=n.byteLength}continue}else if(e===null){be[Be++]=re<<5|oe;continue}else if(typeof e==="boolean"){be[Be++]=re<<5|(e?se:ne);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n){t.push(e[n])}encodeHeader(K,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(V,e.length);be.set(e,Be);Be+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof o.NumericValue){const n=e.string.indexOf(".");const o=n===-1?0:n-e.string.length+1;const i=BigInt(e.string.replace(".",""));be[Be++]=196;t.push(i);t.push(o);encodeHeader(K,2);continue}if(e[Ae]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(te,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const n=Object.keys(e);for(let o=n.length-1;o>=0;--o){const i=n[o];t.push(e[i]);t.push(i)}encodeHeader(ee,n.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const we={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>d.collectBody(e,t).then((async e=>{if(e.length){try{return we.deserialize(e)}catch(n){Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(e)});throw n}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const n=await parseCborBody(e,t);n.message=n.message??n.Message;return n};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}const n=Object.keys(t).find((e=>e.toLowerCase()==="code"));if(n&&t[n]!==undefined){return sanitizeErrorCode(t[n])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,n,o,i)=>{const{hostname:d,protocol:y="https",port:v,path:D}=await e.endpoint();const M={protocol:y,hostname:d,port:v,method:"POST",path:D.endsWith("/")?D.slice(0,-1)+n:D+n,headers:{...t}};if(o!==undefined){M.hostname=o}if(i!==undefined){M.body=i;try{M.headers["content-length"]=String(f.calculateBodyLength(i))}catch(e){}}return new p.HttpRequest(M)};class CborCodec extends d.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends d.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const n=y.NormalizedSchema.of(e);if(t==null){if(n.isIdempotencyToken()){return o.generateIdempotencyToken()}return t}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??D.fromBase64)(t)}return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(n.isListSchema()&&Array.isArray(e)){const t=!!n.getMergedTraits().sparse;const o=[];let i=0;for(const d of e){const e=this.serialize(n.getValueSchema(),d);if(e!=null||t){o[i++]=e}}return o}if(e instanceof Date){return dateToTag(e)}const o={};if(n.isMapSchema()){const t=!!n.getMergedTraits().sparse;for(const i of Object.keys(e)){const d=this.serialize(n.getValueSchema(),e[i]);if(d!=null||t){o[i]=d}}}else if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const n=this.serialize(i,e[t]);if(n!=null){o[t]=n}}const t=n.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,n]=e.$unknown;o[t]=n}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){if(!(t in o)){o[t]=this.serialize(15,n)}}}}else if(n.isDocumentSchema()){for(const t of Object.keys(e)){o[t]=this.serialize(n.getValueSchema(),e[t])}}else if(n.isBigDecimalSchema()){return e}return o}return t}flush(){const e=we.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends d.SerdeContext{read(e,t){const n=we.deserialize(t);return this.readValue(e,n)}readValue(e,t){const n=y.NormalizedSchema.of(e);if(n.isTimestampSchema()){if(typeof t==="number"){return o._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return o._parseEpochTimestamp(t.value)}}}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??D.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(n.isDocumentSchema()){return t}if(n.isListSchema()){const e=[];const o=n.getValueSchema();const i=!!n.getMergedTraits().sparse;for(const n of t){const t=this.readValue(o,n);if(t!=null||i){e.push(t)}}return e}const e={};if(n.isMapSchema()){const o=!!n.getMergedTraits().sparse;const i=n.getValueSchema();for(const n of Object.keys(t)){const d=this.readValue(i,t[n]);if(d!=null||o){e[n]=d}}}else if(n.isStructSchema()){const o=n.isUnionSchema();let i;if(o){i=new Set(Object.keys(t).filter((e=>e!=="__type")))}for(const[d,p]of n.structIterator()){if(o){i.delete(d)}if(t[d]!=null){e[d]=this.readValue(p,t[d])}}if(o&&i?.size===1&&Object.keys(e).length===0){const n=i.values().next().value;e.$unknown=[n,t[n]]}else if(typeof t.__type==="string"){for(const[n,o]of Object.entries(t)){if(!(n in e)){e[n]=o}}}}else if(t instanceof o.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends d.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e}){super({defaultNamespace:e})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(y.deref(e.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{if(!o.body){this.serializer.write(15,{});o.body=this.serializer.flush()}try{o.headers["content-length"]=String(o.body.byteLength)}catch(e){}}const{service:i,operation:d}=v.getSmithyContext(n);const p=`/service/${i}/operation/${d}`;if(o.path.endsWith("/")){o.path+=p.slice(1)}else{o.path+=p}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const d=loadSmithyRpcV2CborErrorCode(n,o)??"Unknown";let p=this.options.defaultNamespace;if(d.includes("#")){[p]=d.split("#")}const f={$metadata:i,$fault:n.statusCode<=500?"client":"server"};const v=y.TypeRegistry.for(p);let D;try{D=v.getSchema(d)}catch(e){if(o.Message){o.message=o.Message}const t=y.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n);throw Object.assign(new e({name:d}),f,o)}throw Object.assign(new Error(d),f,o)}const M=y.NormalizedSchema.of(D);const U=v.getErrorCtor(D);const V=o.message??o.Message??"Unknown";const j=new U(V);const K={};for(const[e,t]of M.structIterator()){K[e]=this.deserializer.readValue(t,o[e])}throw Object.assign(j,f,{$fault:M.getMergedTraits().error,message:V},K)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=we;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=Ae},3422:(e,t,n)=>{var o=n(4252);var i=n(6890);var d=n(2430);var p=n(2356);var f=n(8385);var y=n(1577);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;constructor(e){super();this.options=e}getRequestType(){return p.HttpRequest}getResponseType(){return p.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[n,o]of t.url.searchParams.entries()){e.query[n]=o}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix){return}const o=i.NormalizedSchema.of(t.input);const d=i.translateTraits(t.traits??{});if(d.endpoint){let t=d.endpoint?.[0];if(typeof t==="string"){const i=[...o.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of i){const o=n[e];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,o)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(579).then(n.t.bind(n,6579,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,o,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o={...t??{}};const d=this.serializer;const f={};const y={};const v=await n.endpoint();const D=i.NormalizedSchema.of(e?.input);const M=D.getSchema();let U=false;let V;const j=new p.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:f,headers:y,body:undefined});if(v){this.updateServiceEndpoint(j,v);this.setHostPrefix(j,e,o);const t=i.translateTraits(e.traits);if(t.http){j.method=t.http[0];const[e,n]=t.http[1].split("?");if(j.path=="/"){j.path=e}else{j.path+=e}const o=new URLSearchParams(n??"");Object.assign(f,Object.fromEntries(o))}}for(const[e,t]of D.structIterator()){const n=t.getMergedTraits()??{};const i=o[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel){if(j.path.includes(`{${e}+}`)||j.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(n.httpPayload){const n=t.isStreaming();if(n){const n=t.isStructSchema();if(n){if(o[e]){V=await this.serializeEventStream({eventStream:o[e],requestSchema:D})}}else{V=i}}else{d.write(t,i);V=d.flush()}delete o[e]}else if(n.httpLabel){d.write(t,i);const n=d.flush();if(j.path.includes(`{${e}+}`)){j.path=j.path.replace(`{${e}+}`,n.split("/").map(extendedEncodeURIComponent).join("/"))}else if(j.path.includes(`{${e}}`)){j.path=j.path.replace(`{${e}}`,extendedEncodeURIComponent(n))}delete o[e]}else if(n.httpHeader){d.write(t,i);y[n.httpHeader.toLowerCase()]=String(d.flush());delete o[e]}else if(typeof n.httpPrefixHeaders==="string"){for(const[e,o]of Object.entries(i)){const i=n.httpPrefixHeaders+e;d.write([t.getValueSchema(),{httpHeader:i}],o);y[i.toLowerCase()]=d.flush()}delete o[e]}else if(n.httpQuery||n.httpQueryParams){this.serializeQuery(t,i,f);delete o[e]}else{U=true}}if(U&&o){d.write(M,o);V=d.flush()}j.headers=y;j.query=f;j.body=V;return j}serializeQuery(e,t,n){const o=this.serializer;const i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,d]of Object.entries(t)){if(!(o in n)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(t,d,n)}}return}if(e.isListSchema()){const d=!!e.getMergedTraits().sparse;const p=[];for(const n of t){o.write([e.getValueSchema(),i],n);const t=o.flush();if(d||t!==undefined){p.push(t)}}n[i.httpQuery]=p}else{o.write([e,i],t);n[i.httpQuery]=o.flush()}}async deserializeResponse(e,t,n){const o=this.deserializer;const d=i.NormalizedSchema.of(e.output);const p={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(p,await o.read(15,i))}await this.handleError(e,t,n,p,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const f=await this.deserializeHttpMessage(d,t,n,p);if(f.length){const e=await collectBody(n.body,t);if(e.byteLength>0){const t=await o.read(d,e);for(const e of f){p[e]=t[e]}}}else if(f.discardResponseBody){await collectBody(n.body,t)}p.$metadata=this.deserializeMetadata(n);return p}async deserializeHttpMessage(e,t,n,p,f){let y;if(p instanceof Set){y=f}else{y=p}let v=true;const D=this.deserializer;const M=i.NormalizedSchema.of(e);const U=[];for(const[e,i]of M.structIterator()){const p=i.getMemberTraits();if(p.httpPayload){v=false;const d=i.isStreaming();if(d){const t=i.isStructSchema();if(t){y[e]=await this.deserializeEventStream({response:n,responseSchema:M})}else{y[e]=o.sdkStreamMixin(n.body)}}else if(n.body){const o=await collectBody(n.body,t);if(o.byteLength>0){y[e]=await D.read(i,o)}}}else if(p.httpHeader){const t=String(p.httpHeader).toLowerCase();const o=n.headers[t];if(null!=o){if(i.isListSchema()){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let p;if(n.isTimestampSchema()&&n.getSchema()===4){p=d.splitEvery(o,",",2)}else{p=d.splitHeader(o)}const f=[];for(const e of p){f.push(await D.read(n,e.trim()))}y[e]=f}else{y[e]=await D.read(i,o)}}}else if(p.httpPrefixHeaders!==undefined){y[e]={};for(const[t,o]of Object.entries(n.headers)){if(t.startsWith(p.httpPrefixHeaders)){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;y[e][t.slice(p.httpPrefixHeaders.length)]=await D.read(n,o)}}}else if(p.httpResponseCode){y[e]=n.statusCode}else{U.push(e)}}U.discardResponseBody=v;return U}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=this.serializer;const d={};const f={};const y=await n.endpoint();const v=i.NormalizedSchema.of(e?.input);const D=v.getSchema();let M;const U=new p.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:d,headers:f,body:undefined});if(y){this.updateServiceEndpoint(U,y);this.setHostPrefix(U,e,t)}const V={...t};if(t){const e=v.getEventStreamMember();if(e){if(V[e]){const t={};for(const[n,i]of v.structIterator()){if(n!==e&&V[n]){o.write(i,V[n]);t[n]=o.flush()}}M=await this.serializeEventStream({eventStream:V[e],requestSchema:v,initialRequest:t})}}else{o.write(D,V);M=o.flush()}}U.headers=f;U.query=d;U.body=M;U.method="POST";return U}async deserializeResponse(e,t,n){const o=this.deserializer;const d=i.NormalizedSchema.of(e.output);const p={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(p,await o.read(15,i))}await this.handleError(e,t,n,p,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const f=d.getEventStreamMember();if(f){p[f]=await this.deserializeEventStream({response:n,responseSchema:d,initialResponseContainer:p})}else{const e=await collectBody(n.body,t);if(e.byteLength>0){Object.assign(p,await o.read(d,e))}}p.$metadata=this.deserializeMetadata(n);return p}}const resolvedPath=(e,t,n,o,i,d)=>{if(t!=null&&t[n]!==undefined){const t=o();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(i,d?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(const e of this.resolvePathStack){e(this.path)}return new p.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,n,o){this.resolvePathStack.push((i=>{this.path=resolvedPath(i,this.input,e,t,n,o)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:n,httpPrefixHeaders:o,httpHeader:i,httpQuery:d}=e.getMergedTraits();const p=t.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(d)||Boolean(n)?5:undefined:undefined;return p??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const n=i.NormalizedSchema.of(e);if(n.isListSchema()){return d.splitHeader(t).map((e=>this.read(n.getValueSchema(),e)))}if(n.isBlobSchema()){return(this.serdeContext?.base64Decoder??f.fromBase64)(t)}if(n.isTimestampSchema()){const e=determineTimestampFormat(n,this.settings);switch(e){case 5:return d._parseRfc3339DateTimeWithOffset(t);case 6:return d._parseRfc7231DateTime(t);case 7:return d._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let o=t;if(e){if(n.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const t=e==="application/json"||e.endsWith("+json");if(t){o=d.LazyJsonString.from(o)}return o}}if(n.isNumericSchema()){return Number(t)}if(n.isBigIntegerSchema()){return BigInt(t)}if(n.isBigDecimalSchema()){return new d.NumericValue(t,"bigDecimal")}if(n.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??y.toUtf8)((this.serdeContext?.base64Decoder??f.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();const d=this.serdeContext?.utf8Encoder??y.toUtf8;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(n,d(t))}if(o.httpPayload){if(n.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??y.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(n.isStringSchema()){if("byteLength"in t){return d(t)}return t}}return this.codecDeserializer.read(n,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(true)}`)}const e=determineTimestampFormat(n,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=d.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??f.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e="";for(const o of t){this.write([n.getValueSchema(),n.getMergedTraits()],o);const t=this.flush();const i=n.getValueSchema().isTimestampSchema()?t:d.quoteHeader(t);if(e!==""){e+=", "}e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=n.getMergedTraits().mediaType;let o=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){o=d.LazyJsonString.from(o)}if(n.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??f.toBase64)(o.toString());return}}this.stringBuffer=t;break;default:if(n.isIdempotencyToken()){this.stringBuffer=d.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.collectBody=collectBody;t.determineTimestampFormat=determineTimestampFormat;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.requestBuilder=requestBuilder;t.resolvedPath=resolvedPath},6890:(e,t,n)=>{var o=n(2356);var i=n(6324);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,n,o,i)=>({name:t,namespace:e,traits:n,input:o,output:i});const schemaDeserializationMiddleware=e=>(t,n)=>async d=>{const{response:p}=await t(d);const{operationSchema:f}=i.getSmithyContext(n);const[,y,v,D,M,U]=f??[];try{const t=await e.protocol.deserializeResponse(operation(y,v,D,M,U),{...e,...n},p);return{response:p,output:t}}catch(e){Object.defineProperty(e,"$response",{value:p,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!n.logger||n.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{n.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(p)){const{headers:t={}}=p;const n=Object.entries(t);e.$metadata={httpStatusCode:p.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,n)=>async o=>{const{operationSchema:d}=i.getSmithyContext(n);const[,p,f,y,v,D]=d??[];const M=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;const U=await e.protocol.serializeRequest(operation(p,f,y,v,D),o.input,{...e,...n,endpoint:M});return t({...o,request:U})};const d={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const p={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),p);t.add(schemaDeserializationMiddleware(e),d);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const n=Object.assign(e,t);return n}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,n,o)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:n,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,n,o,i)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:n,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,n,o,i)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:n,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,n,o,i)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,n,o,i,d)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i,ctor:null});function translateTraits(e){if(typeof e==="object"){return e}e=e|0;const t={};let n=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>n++&1)===1){t[o]=1}}return t}const f={it:Symbol.for("@smithy/nor-struct-it")};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const n=[];let o=e;let i=e;this._isMemberSchema=false;while(isMemberSchema(o)){n.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=deref(e);if(t instanceof NormalizedSchema){return t}if(isMemberSchema(t)){const[n,o]=t;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(o));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new NormalizedSchema(t)}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const n=!e&&t&&t.includes("#");return n?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const n=this.getSchema();const o=e?15:n[4]??0;return member([o,0],"key")}getValueSchema(){const e=this.getSchema();const[t,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof e==="number"?63&e:e&&typeof e==="object"&&(n||o)?e[3+e[0]]:t?15:void 0;if(i!=null){return member([i,0],n?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e);const o=t[5][n];return member(isMemberSchema(o)?o:[o,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator()){e[t]=n}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let n=e[f.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let o=0;oArray.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:n});const simAdapter=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:n,schemaRef:o});const y={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e;this.schemas=t;this.exceptions=n}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}register(e,t){const n=this.normalizeShapeId(e);const o=TypeRegistry.for(n.split("#")[0]);o.schemas.set(n,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e;const o=TypeRegistry.for(n[1]);o.schemas.set(n[1]+"#"+n[2],n);o.exceptions.set(n,t)}getErrorCtor(e){const t=e;const n=TypeRegistry.for(t[1]);return n.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,n]=e;const o=t+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=y;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=d;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=p;t.sim=sim;t.simAdapter=simAdapter;t.struct=struct;t.translateTraits=translateTraits},2430:(e,t,n)=>{var o=n(266);const copyDocumentWithTransform=(e,t,n=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){M.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){M.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){M.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const i=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>i){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const d=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const n=expectLong(e);if(n!==undefined&&castInt(n,t)!==n){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){M.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const n=Object.entries(t).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const p=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const f=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(f);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const y=limitedParseDouble;const v=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const D=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const M={warn:console.warn};const U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const d=e.getUTCHours();const p=e.getUTCMinutes();const f=e.getUTCSeconds();const y=i<10?`0${i}`:`${i}`;const v=d<10?`0${d}`:`${d}`;const D=p<10?`0${p}`:`${p}`;const M=f<10?`0${f}`:`${f}`;return`${U[o]}, ${y} ${V[n]} ${t} ${v}:${D}:${M} GMT`}const j=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=j.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,d,p,f,y,v]=t;const D=strictParseShort(stripLeadingZeroes(o));const M=parseDateValue(i,"month",1,12);const U=parseDateValue(d,"day",1,31);return buildDate(D,M,U,{hours:p,minutes:f,seconds:y,fractionalMilliseconds:v})};const K=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=K.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,d,p,f,y,v,D]=t;const M=strictParseShort(stripLeadingZeroes(o));const U=parseDateValue(i,"month",1,12);const V=parseDateValue(d,"day",1,31);const j=buildDate(M,U,V,{hours:p,minutes:f,seconds:y,fractionalMilliseconds:v});if(D.toUpperCase()!="Z"){j.setTime(j.getTime()-parseOffsetToMilliseconds(D))}return j};const ee=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const te=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const re=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=ee.exec(e);if(t){const[e,n,o,i,d,p,f,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:d,minutes:p,seconds:f,fractionalMilliseconds:y})}t=te.exec(e);if(t){const[e,n,o,i,d,p,f,y]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:d,minutes:p,seconds:f,fractionalMilliseconds:y}))}t=re.exec(e);if(t){const[e,n,o,i,d,p,f,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(y)),parseMonthByShortName(n),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:d,seconds:p,fractionalMilliseconds:f})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,n,o)=>{const i=t-1;validateDayOfMonth(e,i,n);return new Date(Date.UTC(e,i,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(n{if(e.getTime()-(new Date).getTime()>ne){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=V.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const se=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=se[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${V[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,o)=>{const i=strictParseByte(stripLeadingZeroes(e));if(io){throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const i=Number(e.substring(4,6));return n*(o*60+i)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t{if(e&&typeof e==="object"&&(e instanceof oe||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return oe(String(e))}return oe(JSON.stringify(e))};oe.fromObject=oe.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const ie=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const ae=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const ce=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const le=`(\\d?\\d)`;const ue=`(\\d{4})`;const de=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const Ae=new RegExp(`^${ie}, ${le} ${ae} ${ue} ${ce} GMT$`);const pe=new RegExp(`^${ie}, ${le}-${ae}-(\\d\\d) ${ce} GMT$`);const me=new RegExp(`^${ie} ${ae} ( [1-9]|\\d\\d) ${ce} ${ue}$`);const ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let t=NaN;if(typeof e==="number"){t=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}t=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=de.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,n,o,i,d,p,f,,y,v]=t;range(o,1,12);range(i,1,31);range(d,0,23);range(p,0,59);range(f,0,60);const D=new Date(Date.UTC(Number(n),Number(o)-1,Number(i),Number(d),Number(p),Number(f),Number(y)?Math.round(parseFloat(`0.${y}`)*1e3):0));D.setUTCFullYear(Number(n));if(v.toUpperCase()!="Z"){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(v)||[void 0,"+",0,0];const o=e==="-"?1:-1;D.setTime(D.getTime()+o*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return D};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let n;let o;let i;let d;let p;let f;let y;if(y=Ae.exec(e)){[,t,n,o,i,d,p,f]=y}else if(y=pe.exec(e)){[,t,n,o,i,d,p,f]=y;o=(Number(o)+1900).toString()}else if(y=me.exec(e)){[,n,t,i,d,p,f,o]=y}if(o&&p){const e=Date.UTC(Number(o),ge.indexOf(n),Number(t),Number(i),Number(d),Number(p),f?Math.round(parseFloat(`0.${f}`)*1e3):0);range(t,1,31);range(i,0,23);range(d,0,59);range(p,0,60);const y=new Date(e);y.setUTCFullYear(Number(o));return y}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,n){const o=Number(e);if(on){throw new Error(`Value ${o} out of range [${t}, ${n}]`)}}function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const i=[];let d="";for(let e=0;e{const t=e.length;const n=[];let o=false;let i=undefined;let d=0;for(let p=0;p{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const fe=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!fe.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&fe.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}Object.defineProperty(t,"generateIdempotencyToken",{enumerable:true,get:function(){return o.v4}});t.LazyJsonString=oe;t.NumericValue=NumericValue;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.copyDocumentWithTransform=copyDocumentWithTransform;t.dateToUtcString=dateToUtcString;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=d;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.handleFloat=y;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=v;t.limitedParseFloat32=limitedParseFloat32;t.logger=M;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=p;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=D;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort},7809:(e,t,n)=>{var o=n(2356);var i=n(8256);var d=n(8385);function createRequest(e,t){return new Request(e,t)}function requestTimeout(e=0){return new Promise(((t,n)=>{if(e){setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError";n(t)}),e)}}))}const p={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(p.supported===undefined){p.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const d=n??this.config.requestTimeout;const f=this.config.keepAlive===true;const y=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";return Promise.reject(e)}let v=e.path;const D=i.buildQueryString(e.query||{});if(D){v+=`?${D}`}if(e.fragment){v+=`#${e.fragment}`}let M="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";M=`${t}:${n}@`}const{port:U,method:V}=e;const j=`${e.protocol}//${M}${e.hostname}${U?`:${U}`:""}${v}`;const K=V==="GET"||V==="HEAD"?undefined:e.body;const ee={body:K,headers:new Headers(e.headers),method:V,credentials:y};if(this.config?.cache){ee.cache=this.config.cache}if(K){ee.duplex="half"}if(typeof AbortController!=="undefined"){ee.signal=t}if(p.supported){ee.keepalive=f}if(typeof this.config.requestInit==="function"){Object.assign(ee,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const te=createRequest(j,ee);const re=[fetch(te).then((e=>{const t=e.headers;const n={};for(const e of t.entries()){n[e[0]]=e[1]}const i=e.body!=undefined;if(!i){return e.blob().then((t=>({response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))}return{response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(d)];if(t){re.push(new Promise(((e,n)=>{const onAbort=()=>{const e=new Error("Request aborted");e.name="AbortError";n(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{t.onabort=onAbort}})))}return Promise.race(re).finally(removeSignalEventListener)}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>{n[e]=t;return n}))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const n=d.fromBase64(t);return new Uint8Array(n)}async function collectStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:d}=await n.read();if(d){t.push(d);i+=d.length}o=e}const d=new Uint8Array(i);let p=0;for(const e of t){d.set(e,p);p+=e.length}return d}function readToBase64(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{if(o.readyState!==2){return n(new Error("Reader aborted too early"))}const e=o.result??"";const i=e.indexOf(",");const d=i>-1?i+1:e.length;t(e.substring(d))};o.onabort=()=>n(new Error("Read aborted"));o.onerror=()=>n(o.error);o.readAsDataURL(e)}))}t.FetchHttpHandler=FetchHttpHandler;t.keepAliveSupport=p;t.streamCollector=streamCollector},2711:(e,t,n)=>{var o=n(4151);var i=n(1577);var d=n(181);var p=n(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(i.toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?p.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):p.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(d.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}t.Hash=Hash},6130:(e,t)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},7212:(e,t,n)=>{var o=n(2356);const i="content-length";function contentLengthMiddleware(e){return t=>async n=>{const d=n.request;if(o.HttpRequest.isInstance(d)){const{body:t,headers:n}=d;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(i)===-1){try{const n=e(t);d.headers={...d.headers,[i]:String(n)}}catch(e){}}}return t({...n,request:d})}}const d={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),d)}});t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=d;t.getContentLengthPlugin=getContentLengthPlugin},6041:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromConfig=void 0;const o=n(5704);const i=n(8008);const getEndpointFromConfig=async e=>(0,o.loadConfig)((0,i.getEndpointUrlConfig)(e??""))();t.getEndpointFromConfig=getEndpointFromConfig},8008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrlConfig=void 0;const o=n(4964);const i="AWS_ENDPOINT_URL";const d="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase()));const o=t[[i,...n].join("_")];if(o)return o;const d=t[i];if(d)return d;return undefined},configFileSelector:(t,n)=>{if(n&&t.services){const i=n[["services",t.services].join(o.CONFIG_PREFIX_SEPARATOR)];if(i){const t=e.split(" ").map((e=>e.toLowerCase()));const n=i[[t.join("_"),d].join(o.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}const i=t[d];if(i)return i;return undefined},default:undefined});t.getEndpointUrlConfig=getEndpointUrlConfig},99:(e,t,n)=>{var o=n(6041);var i=n(4494);var d=n(402);var p=n(6324);var f=n(3255);const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const y=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const v=/(\d+\.){3}\d+/;const D=/\.\./;const isDnsCompatibleBucketName=e=>y.test(e)&&!v.test(e)&&!D.test(e);const isArnBucketName=e=>{const[t,n,o,,,i]=e.split(":");const d=t==="arn"&&e.split(":").length>=6;const p=Boolean(d&&n&&o&&i);if(d&&!p){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return p};const createConfigValueProvider=(e,t,n,o=false)=>{const configProvider=async()=>{let i;if(o){const o=n.clientContextParams;const d=o?.[e];i=d??n[e]??n[t]}else{i=n[e]??n[t]}if(typeof i==="function"){return i()}return i};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(n.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:i}=e;return`${t}//${n}${o?":"+o:""}${i}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return i.parseUrl(e.url)}return e}return i.parseUrl(e)};const getEndpointFromInstructions=async(e,t,n,i)=>{if(!n.isCustomEndpoint){let e;if(n.serviceConfiguredEndpoint){e=await n.serviceConfiguredEndpoint()}else{e=await o.getEndpointFromConfig(n.serviceId)}if(e){n.endpoint=()=>Promise.resolve(toEndpointV1(e));n.isCustomEndpoint=true}}const d=await resolveParams(e,t,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const p=n.endpointProvider(d,i);return p};const resolveParams=async(e,t,n)=>{const o={};const i=t?.getEndpointParameterInstructions?.()||{};for(const[t,d]of Object.entries(i)){switch(d.type){case"staticContextParams":o[t]=d.value;break;case"contextParams":o[t]=e[d.name];break;case"clientContextParams":case"builtInParams":o[t]=await createConfigValueProvider(d.name,t,n,d.type!=="builtInParams")();break;case"operationContextParams":o[t]=d.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(d))}}if(Object.keys(i).length===0){Object.assign(o,n)}if(String(n.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};const endpointMiddleware=({config:e,instructions:t})=>(n,o)=>async i=>{if(e.isCustomEndpoint){d.setFeature(o,"ENDPOINT_OVERRIDE","N")}const f=await getEndpointFromInstructions(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=f;o.authSchemes=f.properties?.authSchemes;const y=o.authSchemes?.[0];if(y){o["signing_region"]=y.signingRegion;o["signing_service"]=y.signingName;const e=p.getSmithyContext(o);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:y.signingRegion,signingRegion:y.signingRegion,signing_service:y.signingName,signingName:y.signingName,signingRegionSet:y.signingRegionSet},y.properties)}}return n({...i})};const M={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:f.serializerMiddlewareOption.name};const getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(endpointMiddleware({config:e,instructions:t}),M)}});const resolveEndpointConfig=e=>{const t=e.tls??true;const{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:d}=e;const f=n!=null?async()=>toEndpointV1(await p.normalizeProvider(n)()):undefined;const y=!!n;const v=Object.assign(e,{endpoint:f,tls:t,isCustomEndpoint:y,useDualstackEndpoint:p.normalizeProvider(i??false),useFipsEndpoint:p.normalizeProvider(d??false)});let D=undefined;v.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!D){D=o.getEndpointFromConfig(e.serviceId)}return D};return v};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};t.endpointMiddleware=endpointMiddleware;t.endpointMiddlewareOptions=M;t.getEndpointFromInstructions=getEndpointFromInstructions;t.getEndpointPlugin=getEndpointPlugin;t.resolveEndpointConfig=resolveEndpointConfig;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},9618:(e,t,n)=>{var o=n(5518);var i=n(2356);var d=n(2058);var p=n(266);var f=n(6324);var y=n(1411);var v=n(9831);const getDefaultRetryQuota=(e,t)=>{const n=e;const i=o.NO_RETRY_INCREMENT;const d=o.RETRY_COST;const p=o.TIMEOUT_RETRY_COST;let f=e;const getCapacityAmount=e=>e.name==="TimeoutError"?p:d;const hasRetryTokens=e=>getCapacityAmount(e)<=f;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);f-=t;return t};const releaseRetryTokens=e=>{f+=e??i;f=Math.min(f,n)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return d.isRetryableByTrait(e)||d.isClockSkewError(e)||d.isThrottlingError(e)||d.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=o.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(o.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return tsetTimeout(e,i)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=y;t.$metadata.totalRetryDelay=v;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return o*1e3;const d=new Date(n);return d.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i);this.rateLimiter=n??new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const D="AWS_MAX_ATTEMPTS";const M="max_attempts";const U={environmentVariableSelector:e=>{const t=e[D];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Environment variable ${D} mast be a number, got "${t}"`)}return n},configFileSelector:e=>{const t=e[M];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${M} mast be a number, got "${t}"`)}return n},default:o.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:i}=e;const d=f.normalizeProvider(i??o.DEFAULT_MAX_ATTEMPTS);return Object.assign(e,{maxAttempts:d,retryStrategy:async()=>{if(t){return t}const e=await f.normalizeProvider(n)();if(e===o.RETRY_MODES.ADAPTIVE){return new o.AdaptiveRetryStrategy(d)}return new o.StandardRetryStrategy(d)}})};const V="AWS_RETRY_MODE";const j="retry_mode";const K={environmentVariableSelector:e=>e[V],configFileSelector:e=>e[j],default:o.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(i.HttpRequest.isInstance(n)){delete n.headers[o.INVOCATION_ID_HEADER];delete n.headers[o.REQUEST_HEADER]}return e(t)};const ee={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),ee)}});const retryMiddleware=e=>(t,n)=>async d=>{let f=await e.retryStrategy();const D=await e.maxAttempts();if(isRetryStrategyV2(f)){f=f;let e=await f.acquireInitialRetryToken(n["partition_id"]);let M=new Error;let U=0;let V=0;const{request:j}=d;const K=i.HttpRequest.isInstance(j);if(K){j.headers[o.INVOCATION_ID_HEADER]=p.v4()}while(true){try{if(K){j.headers[o.REQUEST_HEADER]=`attempt=${U+1}; max=${D}`}const{response:n,output:i}=await t(d);f.recordSuccess(e);i.$metadata.attempts=U+1;i.$metadata.totalRetryDelay=V;return{response:n,output:i}}catch(t){const o=getRetryErrorInfo(t);M=asSdkError(t);if(K&&v.isStreamingPayload(j)){(n.logger instanceof y.NoOpLogger?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw M}try{e=await f.refreshRetryTokenForRetry(e,o)}catch(e){if(!M.$metadata){M.$metadata={}}M.$metadata.attempts=U+1;M.$metadata.totalRetryDelay=V;throw M}U=e.getRetryCount();const i=e.getRetryDelay();V+=i;await new Promise((e=>setTimeout(e,i)))}}}else{f=f;if(f?.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",f.mode]];return f.retry(t,d)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const t={error:e,errorType:getRetryErrorType(e)};const n=getRetryAfterHint(e.$response);if(n){t.retryAfterHint=n}return t};const getRetryErrorType=e=>{if(d.isThrottlingError(e))return"THROTTLING";if(d.isTransientError(e))return"TRANSIENT";if(d.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const te={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:t=>{t.add(retryMiddleware(e),te)}});const getRetryAfterHint=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return new Date(o*1e3);const d=new Date(n);return d};t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.CONFIG_MAX_ATTEMPTS=M;t.CONFIG_RETRY_MODE=j;t.ENV_MAX_ATTEMPTS=D;t.ENV_RETRY_MODE=V;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=U;t.NODE_RETRY_MODE_CONFIG_OPTIONS=K;t.StandardRetryStrategy=StandardRetryStrategy;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=getRetryPlugin;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=ee;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions=te},9831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.isStreamingPayload=void 0;const o=n(2203);const isStreamingPayload=e=>e?.body instanceof o.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;t.isStreamingPayload=isStreamingPayload},3255:(e,t,n)=>{var o=n(2356);const deserializerMiddleware=(e,t)=>(n,i)=>async d=>{const{response:p}=await n(d);try{const n=await t(p,e);return{response:p,output:n}}catch(e){Object.defineProperty(e,"$response",{value:p,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(p)){const{headers:t={}}=p;const n=Object.entries(t);e.$metadata={httpStatusCode:p.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(n,o)=>async i=>{const d=e;const p=o.endpointV2?.url&&d.urlParser?async()=>d.urlParser(o.endpointV2.url):d.endpoint;if(!p){throw new Error("No valid endpoint provider available.")}const f=await t(i.input,{...e,endpoint:p});return n({...i,request:f})};const i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,n){return{applyToStack:o=>{o.add(deserializerMiddleware(e,n),i);o.add(serializerMiddleware(e,t),d)}}}t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=i;t.getSerdePlugin=getSerdePlugin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=d},9208:(e,t)=>{const getAllAliases=(e,t)=>{const n=[];if(e){n.push(e)}if(t){for(const e of t){n.push(e)}}return n};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let i=false;const d=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=n=>{let o=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(n)){o=true;for(const e of t){d.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const removeByReference=n=>{let o=false;const filterCb=e=>{if(e.middleware===n){o=true;for(const t of getAllAliases(e.name,e.aliases)){d.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const cloneTo=n=>{e.forEach((e=>{n.add(e.middleware,{...e})}));t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})}));n.identifyOnResolve?.(p.identifyOnResolve());return n};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(n=false)=>{const o=[];const i=[];const d={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){d[e]=t}o.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){d[e]=t}i.push(t)}));i.forEach((e=>{if(e.toMiddleware){const t=d[e.toMiddleware];if(t===undefined){if(n){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const p=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return p};const p={add:(t,n={})=>{const{name:o,override:i,aliases:p}=n;const f={step:"initialize",priority:"normal",middleware:t,...n};const y=getAllAliases(o,p);if(y.length>0){if(y.some((e=>d.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,p)}'`);for(const t of y){const n=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(n===-1){continue}const i=e[n];if(i.step!==f.step||f.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(o,p)}" middleware with `+`${f.priority} priority in ${f.step} step.`)}e.splice(n,1)}}for(const e of y){d.add(e)}}e.push(f)},addRelativeTo:(e,n)=>{const{name:o,override:i,aliases:p}=n;const f={middleware:e,...n};const y=getAllAliases(o,p);if(y.length>0){if(y.some((e=>d.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,p)}'`);for(const e of y){const n=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(n===-1){continue}const i=t[n];if(i.toMiddleware!==f.toMiddleware||i.relation!==f.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(o,p)}" middleware ${f.relation} `+`"${f.toMiddleware}" middleware.`)}t.splice(n,1)}}for(const e of y){d.add(e)}}t.push(f)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(p)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:n=>{let o=false;const filterCb=e=>{const{tags:t,name:i,aliases:p}=e;if(t&&t.includes(n)){const e=getAllAliases(i,p);for(const t of e){d.delete(t)}o=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(i||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")i=e;return i},resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}if(i){console.log(p.identify())}return e}};return p};const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1};t.constructStack=constructStack},5704:(e,t,n)=>{var o=n(8857);var i=n(4964);function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const n=e(process.env,t);if(n===undefined){throw new Error}return n}catch(n){throw new o.CredentialsProviderError(n.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const d=i.getProfileName(n);const{configFile:p,credentialsFile:f}=await i.loadSharedConfigFiles(n);const y=f[d]||{};const v=p[d]||{};const D=t==="config"?{...y,...v}:{...v,...y};try{const n=t==="config"?p:f;const o=e(D,n);if(o===undefined){throw new Error}return o}catch(t){throw new o.CredentialsProviderError(t.message||`Not found in config files w/ profile [${d}]: ${getSelectorName(e.toString())}`,{logger:n.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{const{signingName:d,logger:p}=i;const f={signingName:d,logger:p};return o.memoize(o.chain(fromEnv(e,f),fromSharedConfigFiles(t,i),fromStatic(n)))};t.loadConfig=loadConfig},1279:(e,t,n)=>{var o=n(2356);var i=n(8256);var d=n(8611);var p=n(5692);var f=n(2203);var y=n(5675);const v=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};const D={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const M=1e3;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return-1}const registerTimeout=o=>{const i=D.setTimeout((()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))}),n-o);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{D.clearTimeout(i)}))}else{D.clearTimeout(i)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(n<2e3){registerTimeout(0);return 0}return D.setTimeout(registerTimeout.bind(null,M),M)};const setRequestTimeout=(e,t,n=0,o,i)=>{if(n){return D.setTimeout((()=>{let d=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){const n=Object.assign(new Error(d),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n);t(n)}else{d+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(d)}}),n)}return-1};const U=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n},o=U)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,n||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))}};if(o===0){registerListener();return 0}return D.setTimeout(registerListener,o)};const V=3e3;const setSocketTimeout=(e,t,n=0)=>{const registerTimeout=o=>{const i=n-o;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(i,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(i,onTimeout)}};if(0{p=Number(D.setTimeout((()=>e(true)),Math.max(j,n)))})),new Promise((t=>{e.on("continue",(()=>{D.clearTimeout(p);t(true)}));e.on("response",(()=>{D.clearTimeout(p);t(false)}));e.on("error",(()=>{D.clearTimeout(p);t(false)}))}))])}if(f){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof f.Readable){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){e.end(t);return}const n=t;if(typeof n==="object"&&n.buffer&&typeof n.byteOffset==="number"&&typeof n.byteLength==="number"){e.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength));return}e.end(Buffer.from(t));return}e.end()}const K=0;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,n=console){const{sockets:o,requests:i,maxSockets:d}=e;if(typeof d!=="number"||d===Infinity){return t}const p=15e3;if(Date.now()-p=d&&p>=2*d){n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${p} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:i,httpAgent:f,httpsAgent:y,throwOnRequestTimeout:v}=e||{};const D=true;const M=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:v,httpAgent:(()=>{if(f instanceof d.Agent||typeof f?.destroy==="function"){this.externalAgent=true;return f}return new d.Agent({keepAlive:D,maxSockets:M,...f})})(),httpsAgent:(()=>{if(y instanceof p.Agent||typeof y?.destroy==="function"){this.externalAgent=true;return y}return new p.Agent({keepAlive:D,maxSockets:M,...y})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((f,y)=>{const M=this.config;let U=undefined;const V=[];const resolve=async e=>{await U;V.forEach(D.clearTimeout);f(e)};const reject=async e=>{await U;V.forEach(D.clearTimeout);y(e)};if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const j=e.protocol==="https:";const K=e.headers??{};const ee=(K.Expect??K.expect)==="100-continue";let te=j?M.httpsAgent:M.httpAgent;if(ee&&!this.externalAgent){te=new(j?p.Agent:d.Agent)({keepAlive:false,maxSockets:Infinity})}V.push(D.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(te,this.socketWarningTimestamp,M.logger)}),M.socketAcquisitionWarningTimeout??(M.requestTimeout??2e3)+(M.connectionTimeout??1e3)));const re=i.buildQueryString(e.query||{});let ne=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ne=`${t}:${n}`}let se=e.path;if(re){se+=`?${re}`}if(e.fragment){se+=`#${e.fragment}`}let oe=e.hostname??"";if(oe[0]==="["&&oe.endsWith("]")){oe=e.hostname.slice(1,-1)}else{oe=e.hostname}const ie={headers:e.headers,host:oe,method:e.method,path:se,port:e.port,agent:te,auth:ne};const ae=j?p.request:d.request;const ce=ae(ie,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ce.on("error",(e=>{if(v.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ce.destroy();const e=new Error("Request aborted");e.name="AbortError";reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ce.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const le=n??M.requestTimeout;V.push(setConnectionTimeout(ce,reject,M.connectionTimeout));V.push(setRequestTimeout(ce,reject,le,M.throwOnRequestTimeout,M.logger??console));V.push(setSocketTimeout(ce,reject,M.socketTimeout));const ue=ie.agent;if(typeof ue==="object"&&"keepAlive"in ue){V.push(setSocketKeepAlive(ce,{keepAlive:ue.keepAlive,keepAliveMsecs:ue.keepAliveMsecs}))}U=writeRequestBody(ce,e,le,this.externalAgent).catch((e=>{V.forEach(D.clearTimeout);return y(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=y.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const d=this.sessionCache.get(n)||new NodeHttp2ConnectionPool;d.offerLast(i);this.sessionCache.set(n,d);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){const n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:d,disableConcurrentStreams:p}=this.config;const f=n??d;return new Promise(((n,d)=>{let v=false;let D=undefined;const resolve=async e=>{await D;n(e)};const reject=async e=>{await D;d(e)};if(t?.aborted){v=true;const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const{hostname:M,method:U,port:V,protocol:j,query:K}=e;let ee="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ee=`${t}:${n}@`}const te=`${j}//${ee}${M}${V?`:${V}`:""}`;const re={destination:new URL(te)};const ne=this.connectionManager.lease(re,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:p||false});const rejectWithDestroy=e=>{if(p){this.destroySession(ne)}v=true;reject(e)};const se=i.buildQueryString(K||{});let oe=e.path;if(se){oe+=`?${se}`}if(e.fragment){oe+=`#${e.fragment}`}const ie=ne.request({...e.headers,[y.constants.HTTP2_HEADER_PATH]:oe,[y.constants.HTTP2_HEADER_METHOD]:U});ne.ref();ie.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:ie});v=true;resolve({response:t});if(p){ne.close();this.connectionManager.deleteSession(te,ne)}}));if(f){ie.setTimeout(f,(()=>{ie.close();const e=new Error(`Stream timed out because of no activity for ${f} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{ie.close();const e=new Error("Request aborted");e.name="AbortError";rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ie.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}ie.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));ie.on("error",rejectWithDestroy);ie.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${ie.rstCode}.`))}));ie.on("close",(()=>{ne.unref();if(p){ne.destroy()}if(!v){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));D=writeRequestBody(ie,e,f)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends f.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e);n()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,n)=>{const o=new Collector;e.pipe(o);e.on("error",(e=>{o.end();n(e)}));o.on("error",n);o.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:d}=await n.read();if(d){t.push(d);i+=d.length}o=e}const d=new Uint8Array(i);let p=0;for(const e of t){d.set(e,p);p+=e.length}return d}t.DEFAULT_REQUEST_TIMEOUT=K;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},8857:(e,t)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let n;let o=true;if(typeof t==="boolean"){n=undefined;o=t}else if(t!=null&&typeof t==="object"){n=t.logger;o=t.tryNextLink??true}super(e);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const n of e){try{const e=await n();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,t,n)=>{let o;let i;let d;let p=false;const coalesceProvider=async()=>{if(!i){i=e()}try{o=await i;d=true;p=false}finally{i=undefined}return o};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){o=await coalesceProvider()}return o}}return async e=>{if(!d||e?.forceRefresh){o=await coalesceProvider()}if(p){return o}if(n&&!n(o)){p=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.CredentialsProviderError=CredentialsProviderError;t.ProviderError=ProviderError;t.TokenProviderError=TokenProviderError;t.chain=chain;t.fromStatic=fromStatic;t.memoize=memoize},2356:(e,t,n)=>{var o=n(690);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.Field=Field;t.Fields=Fields;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},8256:(e,t,n)=>{var o=n(146);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const i=e[n];n=o.escapeUri(n);if(Array.isArray(i)){for(let e=0,d=i.length;e{function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},2058:(e,t)=>{const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const i=["TimeoutError","RequestTimeout","RequestTimeoutException"];const d=[500,502,503,504];const p=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const f=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>n.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const n=e&&e instanceof TypeError;if(!n){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||o.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||i.includes(e.name)||p.includes(e?.code||"")||f.includes(e?.code||"")||d.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError},1791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(857);const i=n(6928);const d={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:p=`C:${i.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${p}${n}`;const f=getHomeDirCacheKey();if(!d[f])d[f]=(0,o.homedir)();return d[f]};t.getHomeDir=getHomeDir},269:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6982);const i=n(6928);const d=n(1791);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,i.join)((0,d.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},1326:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=t.tokenIntercept=void 0;const o=n(1943);const i=n(269);t.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e]){return t.tokenIntercept[e]}const n=(0,i.getSSOTokenFilepath)(e);const d=await(0,o.readFile)(n,"utf8");return JSON.parse(d)};t.getSSOTokenFromFile=getSSOTokenFromFile},4964:(e,t,n)=>{var o=n(1791);var i=n(269);var d=n(1326);var p=n(6928);var f=n(690);var y=n(6684);const v="AWS_PROFILE";const D="default";const getProfileName=e=>e.profile||process.env[v]||D;const M=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(M);if(t===-1){return false}return Object.values(f.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,n])=>{const o=t.indexOf(M);const i=t.substring(0,o)===f.IniSectionType.PROFILE?t.substring(o+1):t;e[i]=n;return e}),{...e.default&&{default:e.default}});const U="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[U]||p.join(o.getHomeDir(),".aws","config");const V="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[V]||p.join(o.getHomeDir(),".aws","credentials");const j=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const K=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;let o;for(const i of e.split(/\r?\n/)){const e=i.split(/(^|\s)[;#]/)[0].trim();const d=e[0]==="["&&e[e.length-1]==="]";if(d){n=undefined;o=undefined;const t=e.substring(1,e.length-1);const i=j.exec(t);if(i){const[,e,,t]=i;if(Object.values(f.IniSectionType).includes(e)){n=[e,t].join(M)}}else{n=t}if(K.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(n){const d=e.indexOf("=");if(![0,-1].includes(d)){const[p,f]=[e.substring(0,d).trim(),e.substring(d+1).trim()];if(f===""){o=p}else{if(o&&i.trimStart()===i){o=undefined}t[n]=t[n]||{};const e=o?[o,p].join(M):p;t[n][e]=f}}}}return t};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:n=getConfigFilepath()}=e;const i=o.getHomeDir();const d="~/";let f=t;if(t.startsWith(d)){f=p.join(i,t.slice(2))}let v=n;if(n.startsWith(d)){v=p.join(i,n.slice(2))}const D=await Promise.all([y.readFile(v,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),y.readFile(f,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:D[0],credentialsFile:D[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(f.IniSectionType.SSO_SESSION+M))).reduce(((e,[t,n])=>({...e,[t.substring(t.indexOf(M)+1)]:n})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>y.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const ee={getFileRecord(){return y.fileIntercept},interceptFile(e,t){y.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return d.tokenIntercept},interceptToken(e,t){d.tokenIntercept[e]=t}};Object.defineProperty(t,"getSSOTokenFromFile",{enumerable:true,get:function(){return d.getSSOTokenFromFile}});Object.defineProperty(t,"readFile",{enumerable:true,get:function(){return y.readFile}});t.CONFIG_PREFIX_SEPARATOR=M;t.DEFAULT_PROFILE=D;t.ENV_PROFILE=v;t.externalDataInterceptor=ee;t.getProfileName=getProfileName;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.parseKnownFiles=parseKnownFiles;Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}))},6684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readFile=t.fileIntercept=t.filePromises=void 0;const o=n(1455);t.filePromises={};t.fileIntercept={};const readFile=(e,n)=>{if(t.fileIntercept[e]!==undefined){return t.fileIntercept[e]}if(!t.filePromises[e]||n?.ignoreCache){t.filePromises[e]=(0,o.readFile)(e,"utf8")}return t.filePromises[e]};t.readFile=readFile},5118:(e,t,n)=>{var o=n(6435);var i=n(1577);var d=n(6130);var p=n(2356);var f=n(6324);var y=n(146);const v="X-Amz-Algorithm";const D="X-Amz-Credential";const M="X-Amz-Date";const U="X-Amz-SignedHeaders";const V="X-Amz-Expires";const j="X-Amz-Signature";const K="X-Amz-Security-Token";const ee="X-Amz-Region-Set";const te="authorization";const re=M.toLowerCase();const ne="date";const se=[te,re,ne];const oe=j.toLowerCase();const ie="x-amz-content-sha256";const ae=K.toLowerCase();const ce="host";const le={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ue=/^proxy-/;const de=/^sec-/;const Ae=[/^proxy-/i,/^sec-/i];const pe="AWS4-HMAC-SHA256";const me="AWS4-ECDSA-P256-SHA256";const ge="AWS4-HMAC-SHA256-PAYLOAD";const fe="UNSIGNED-PAYLOAD";const he=50;const ye="aws4_request";const Ee=60*60*24*7;const Ce={};const Ie=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${ye}`;const getSigningKey=async(e,t,n,i,d)=>{const p=await hmac(e,t.secretAccessKey,t.accessKeyId);const f=`${n}:${i}:${d}:${o.toHex(p)}:${t.sessionToken}`;if(f in Ce){return Ce[f]}Ie.push(f);while(Ie.length>he){delete Ce[Ie.shift()]}let y=`AWS4${t.secretAccessKey}`;for(const t of[n,i,d,ye]){y=await hmac(e,y,t)}return Ce[f]=y};const clearCredentialCache=()=>{Ie.length=0;Object.keys(Ce).forEach((e=>{delete Ce[e]}))};const hmac=(e,t,n)=>{const o=new e(t);o.update(i.toUint8Array(n));return o.digest()};const getCanonicalHeaders=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const d=i.toLowerCase();if(d in le||t?.has(d)||ue.test(d)||de.test(d)){if(!n||n&&!n.has(d)){continue}}o[d]=e[i].trim().replace(/\s+/g," ")}return o};const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===ie){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||d.isArrayBuffer(t)){const e=new n;e.update(i.toUint8Array(t));return o.toHex(await e.digest())}return fe};class HeaderFormatter{format(e){const t=[];for(const n of Object.keys(e)){const o=i.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const d=new Uint8Array(9);d[0]=5;d.set(e.value.bytes,1);return d;case"binary":const p=new DataView(new ArrayBuffer(3+e.value.byteLength));p.setUint8(0,6);p.setUint16(1,e.value.byteLength,false);const f=new Uint8Array(p.buffer);f.set(e.value,3);return f;case"string":const y=i.fromUtf8(e.value);const v=new DataView(new ArrayBuffer(3+y.byteLength));v.setUint8(0,7);v.setUint16(1,y.byteLength,false);const D=new Uint8Array(v.buffer);D.set(y,3);return D;case"timestamp":const M=new Uint8Array(9);M[0]=8;M.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return M;case"uuid":if(!be.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const U=new Uint8Array(17);U[0]=9;U.set(o.fromHex(e.value.replace(/\-/g,"")),1);return U}}}const be=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(o.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:n,query:o={}}=p.HttpRequest.clone(e);for(const e of Object.keys(n)){const i=e.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i)){o[e]=n[e];delete n[e]}}return{...e,headers:n,query:o}};const prepareRequest=e=>{e=p.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(se.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const o of Object.keys(e)){if(o.toLowerCase()===oe){continue}const i=y.escapeUri(o);t.push(i);const d=e[o];if(typeof d==="string"){n[i]=`${i}=${y.escapeUri(d)}`}else if(Array.isArray(d)){n[i]=d.slice(0).reduce(((e,t)=>e.concat([`${i}=${y.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:d=true}){this.service=o;this.sha256=i;this.uriEscapePath=d;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=f.normalizeProvider(n);this.credentialProvider=f.normalizeProvider(t)}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n,d){const p=new this.sha256;p.update(i.toUint8Array(n));const f=await p.digest();return`${d}\n${e}\n${t}\n${o.toHex(f)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if(n?.length===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const o=y.escapeUri(n);return o.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:d=true}){super({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:d})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:d,signableHeaders:p,hoistableHeaders:f,signingRegion:y,signingService:ee}=t;const te=await this.credentialProvider();this.validateResolvedCredentials(te);const re=y??await this.regionProvider();const{longDate:ne,shortDate:se}=this.formatDate(n);if(o>Ee){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const oe=createScope(se,re,ee??this.service);const ie=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:d,hoistableHeaders:f});if(te.sessionToken){ie.query[K]=te.sessionToken}ie.query[v]=pe;ie.query[D]=`${te.accessKeyId}/${oe}`;ie.query[M]=ne;ie.query[V]=o.toString(10);const ae=getCanonicalHeaders(ie,i,p);ie.query[U]=this.getCanonicalHeaderList(ae);ie.query[j]=await this.getSignature(ne,oe,this.getSigningKey(te,re,se,ee),this.createCanonicalRequest(ie,ae,await getPayloadHash(e,this.sha256)));return ie}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:d,signingService:p}){const f=d??await this.regionProvider();const{shortDate:y,longDate:v}=this.formatDate(n);const D=createScope(y,f,p??this.service);const M=await getPayloadHash({headers:{},body:t},this.sha256);const U=new this.sha256;U.update(e);const V=o.toHex(await U.digest());const j=[ge,v,D,i,V,M].join("\n");return this.signString(j,{signingDate:n,signingRegion:f,signingService:p})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const i=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return i.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:d}={}){const p=await this.credentialProvider();this.validateResolvedCredentials(p);const f=n??await this.regionProvider();const{shortDate:y}=this.formatDate(t);const v=new this.sha256(await this.getSigningKey(p,f,y,d));v.update(i.toUint8Array(e));return o.toHex(await v.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:i,signingService:d}={}){const p=await this.credentialProvider();this.validateResolvedCredentials(p);const f=i??await this.regionProvider();const y=prepareRequest(e);const{longDate:v,shortDate:D}=this.formatDate(t);const M=createScope(D,f,d??this.service);y.headers[re]=v;if(p.sessionToken){y.headers[ae]=p.sessionToken}const U=await getPayloadHash(y,this.sha256);if(!hasHeader(ie,y.headers)&&this.applyChecksum){y.headers[ie]=U}const V=getCanonicalHeaders(y,o,n);const j=await this.getSignature(v,M,this.getSigningKey(p,f,D,d),this.createCanonicalRequest(y,V,U));y.headers[te]=`${pe} `+`Credential=${p.accessKeyId}/${M}, `+`SignedHeaders=${this.getCanonicalHeaderList(V)}, `+`Signature=${j}`;return y}async getSignature(e,t,n,d){const p=await this.createStringToSign(e,t,d,pe);const f=new this.sha256(await n);f.update(i.toUint8Array(p));return o.toHex(await f.digest())}getSigningKey(e,t,n,o){return getSigningKey(this.sha256,e,n,t,o||this.service)}}const Se={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=pe;t.ALGORITHM_IDENTIFIER_V4A=me;t.ALGORITHM_QUERY_PARAM=v;t.ALWAYS_UNSIGNABLE_HEADERS=le;t.AMZ_DATE_HEADER=re;t.AMZ_DATE_QUERY_PARAM=M;t.AUTH_HEADER=te;t.CREDENTIAL_QUERY_PARAM=D;t.DATE_HEADER=ne;t.EVENT_ALGORITHM_IDENTIFIER=ge;t.EXPIRES_QUERY_PARAM=V;t.GENERATED_HEADERS=se;t.HOST_HEADER=ce;t.KEY_TYPE_IDENTIFIER=ye;t.MAX_CACHE_SIZE=he;t.MAX_PRESIGNED_TTL=Ee;t.PROXY_HEADER_PATTERN=ue;t.REGION_SET_PARAM=ee;t.SEC_HEADER_PATTERN=de;t.SHA256_HEADER=ie;t.SIGNATURE_HEADER=oe;t.SIGNATURE_QUERY_PARAM=j;t.SIGNED_HEADERS_QUERY_PARAM=U;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=ae;t.TOKEN_QUERY_PARAM=K;t.UNSIGNABLE_PATTERNS=Ae;t.UNSIGNED_PAYLOAD=fe;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=Se},1411:(e,t,n)=>{var o=n(9208);var i=n(3422);var d=n(690);var p=n(6890);var f=n(2430);class Client{config;middlewareStack=o.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;if(n){if(typeof t==="function"){e.protocol=new t(n)}}}send(e,t,n){const o=typeof t!=="function"?t:undefined;const i=typeof t==="function"?t:n;const d=o===undefined&&this.config.cacheMiddleware===true;let p;if(d){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){p=t.get(e.constructor)}else{p=e.resolveMiddleware(this.middlewareStack,this.config,o);t.set(e.constructor,p)}}else{delete this.handlers;p=e.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){p(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}else{return p(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const y="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const n=p.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive){return y}if(n.isListSchema()){const e=!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isMapSchema()){const e=!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isStructSchema()&&typeof t==="object"){const e=t;const o={};for(const[t,i]of n.structIterator()){if(e[t]!=null){o[t]=schemaLogFilter(i,e[t])}}return o}return t}class Command{middlewareStack=o.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:p,inputFilterSensitiveLog:f,outputFilterSensitiveLog:y,smithyContext:v,additionalContext:D,CommandCtor:M}){for(const i of o.bind(this)(M,e,t,n)){this.middlewareStack.use(i)}const U=e.concat(this.middlewareStack);const{logger:V}=t;const j={logger:V,clientName:i,commandName:p,inputFilterSensitiveLog:f,outputFilterSensitiveLog:y,[d.SMITHY_CONTEXT_KEY]:{commandInstance:this,...v},...D};const{requestHandler:K}=t;return U.resolve((e=>K.handle(e.request,n||{})),j)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,n={}){this._smithyContext={service:e,operation:t,...n};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(n,o,i){const d=e._operationSchema;const p=d?.[4]??d?.input;const f=d?.[5]??d?.output;return this.resolveMiddlewareWithContext(n,o,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(d?schemaLogFilter.bind(null,p):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(d?schemaLogFilter.bind(null,f):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const v="***SensitiveInformation***";const createAggregatedClient=(e,t,n)=>{for(const[n,o]of Object.entries(e)){const methodImpl=async function(e,t,n){const i=new o(e);if(typeof t==="function"){this.send(i,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else{return this.send(i,t)}};const e=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:o={},waiters:i={}}=n??{};for(const[e,n]of Object.entries(o)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...o){return n({...t,client:this},e,...o)}}}for(const[e,n]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...o){let i=t;if(typeof t==="number"){i={maxWaitTime:t}}return n({...i,client:this},e,...o)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:o})=>{const i=deserializeMetadata(e);const d=i.httpStatusCode?i.httpStatusCode+"":undefined;const p=new n({name:t?.code||t?.Code||o||d||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(p,t)};const withBaseException=e=>({output:t,parsedBody:n,errorCode:o})=>{throwDefaultError({output:t,parsedBody:n,exceptionCtor:e,errorCode:o})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let D=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!D&&parseInt(e.substring(1,e.indexOf(".")))<16){D=true}};const getChecksumConfiguration=e=>{const t=[];for(const n in d.AlgorithmId){const o=d.AlgorithmId[n];if(e[o]===undefined){continue}t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const M=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][t]!==undefined){e[n]=e[n][t]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=getValueFromTextNode(e[n])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,n){let o;let i;let d;if(typeof t==="undefined"&&typeof n==="undefined"){o={};d=e}else{o=e;if(typeof t==="function"){i=t;d=n;return mapWithFilter(o,i,d)}else{d=t}}for(const e of Object.keys(d)){if(!Array.isArray(d[e])){o[e]=d[e];continue}applyInstruction(o,null,d,e)}return o}const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let i=n[o];if(typeof i==="function"){i=[,i]}const[d=nonNullish,p=pass,f=o]=i;if(typeof d==="function"&&d(t[f])||typeof d!=="function"&&!!d){e[o]=p(t[f])}return}let[i,d]=n[o];if(typeof d==="function"){let t;const n=i===undefined&&(t=d())!=null;const p=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(n){e[o]=t}else if(p){e[o]=d()}}else{const t=i===undefined&&d!=null;const n=typeof i==="function"&&!!i(d)||typeof i!=="function"&&!!i;if(t||n){e[o]=d}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const n of Object.keys(e)){if(e[n]==null){continue}t[n]=_json(e[n])}return t}return e};Object.defineProperty(t,"collectBody",{enumerable:true,get:function(){return i.collectBody}});Object.defineProperty(t,"extendedEncodeURIComponent",{enumerable:true,get:function(){return i.extendedEncodeURIComponent}});Object.defineProperty(t,"resolvedPath",{enumerable:true,get:function(){return i.resolvedPath}});t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=v;t.ServiceException=ServiceException;t._json=_json;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getDefaultClientConfiguration=M;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getValueFromTextNode=getValueFromTextNode;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.withBaseException=withBaseException;Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}))},690:(e,t)=>{t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const n=[];if(e.sha256!==undefined){n.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){n.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const n="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=n;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4494:(e,t,n)=>{var o=n(8822);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:n,port:i,protocol:d,search:p}=e;let f;if(p){f=o.parseQueryString(p)}return{hostname:t,port:i?parseInt(i):undefined,protocol:d,path:n,query:f}};t.parseUrl=parseUrl},2674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(4151);const i=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!i.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},8385:(e,t,n)=>{var o=n(2674);var i=n(4871);Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}))},4871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(4151);const i=n(1577);const toBase64=e=>{let t;if(typeof e==="string"){t=(0,i.fromUtf8)(e)}else{t=e}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,o.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};t.toBase64=toBase64},2098:(e,t)=>{const n=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(n){return n.encode(e).byteLength}let t=e.length;for(let n=t-1;n>=0;n--){const o=e.charCodeAt(n);if(o>127&&o<=2047)t++;else if(o>2047&&o<=65535)t+=2;if(o>=56320&&o<=57343)n--}return t}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},3638:(e,t,n)=>{var o=n(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof o.ReadStream){if(e.path!=null){return o.lstatSync(e.path).size}else if(typeof e.fd==="number"){return o.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},4151:(e,t,n)=>{var o=n(6130);var i=n(181);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return i.Buffer.from(e,t,n)};const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?i.Buffer.from(e,t):i.Buffer.from(e)};t.fromArrayBuffer=fromArrayBuffer;t.fromString=fromString},6716:(e,t)=>{const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,n)=>{if(!(t in e))return undefined;const o=parseInt(e[t],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`)}return o};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));t.booleanSelector=booleanSelector;t.numberSelector=numberSelector},673:(e,t,n)=>{var o=n(9316);var i=n(5704);var d=n(8857);const p="AWS_EXECUTION_ENV";const f="AWS_REGION";const y="AWS_DEFAULT_REGION";const v="AWS_EC2_METADATA_DISABLED";const D=["in-region","cross-region","mobile","standard","legacy"];const M="/latest/meta-data/placement/region";const U="AWS_DEFAULTS_MODE";const V="defaults_mode";const j={environmentVariableSelector:e=>e[U],configFileSelector:e=>e[V],default:"legacy"};const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig(j)}={})=>d.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${D.join(", ")}, got ${n}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[p]&&(process.env[f]||process.env[y])){return process.env[f]??process.env[y]}if(!process.env[v]){try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(566).then(n.t.bind(n,566,19));const o=await e();return(await t({...o,path:M})).toString()}catch(e){}}};t.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9674:(e,t,n)=>{var o=n(690);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const n=this.hash(e);if(n===false){return t()}if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:n,done:o}=e.next();this.data.delete(n);if(o||++t>10){break}}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(n.length===0){return false}for(const o of n){const n=String(e[o]??"");if(n.includes("|;")){return false}t+=n+"|;"}return t}}const i=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}$`);const isIpAddress=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]");const d=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return d.test(e)}const n=e.split(".");for(const e of n){if(!isValidHostLabel(e)){return false}}return true};const p={};const f="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,t)=>e===t;const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const o of t){const t=o.indexOf("[");if(t!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(o.slice(0,t))}n.push(i)}else{n.push(o)}}return n};const getAttr=(e,t)=>getAttrPathList(t).reduce(((n,o)=>{if(typeof n!=="object"){throw new EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(o)]}return n[o]}),e);const isSet=e=>e!=null;const not=e=>!e;const y={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:i="",query:d={}}=e;const p=new URL(`${o}//${t}${n?`:${n}`:""}${i}`);p.search=Object.entries(d).map((([e,t])=>`${e}=${t}`)).join("&");return p}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:d,pathname:p,protocol:f,search:v}=t;if(v){return null}const D=f.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(D)){return null}const M=isIpAddress(d);const U=n.includes(`${i}:${y[D]}`)||typeof e==="string"&&e.includes(`${i}:${y[D]}`);const V=`${i}${U?`:${y[D]}`:``}`;return{scheme:D,authority:V,path:p,normalizedPath:p.endsWith("/")?p:`${p}/`,isIp:M}};const stringEquals=(e,t)=>e===t;const substring=(e,t,n,o)=>{if(t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const v={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const n=[];const o={...t.endpointParams,...t.referenceRecord};let i=0;while(i{const n={...t.endpointParams,...t.referenceRecord};return n[e]};const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return evaluateTemplate(e,n)}else if(e["fn"]){return D.callFunction(e,n)}else if(e["ref"]){return getReferenceValue(e,n)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:D.evaluateExpression(e,"arg",n)));const i=e.split(".");if(i[0]in p&&i[1]!=null){return p[i[0]][i[1]](...o)}return v[e](...o)};const D={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${f} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);return{result:o===""?true:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};const evaluateConditions=(e=[],t)=>{const n={};for(const o of e){const{result:e,toAssign:i}=evaluateCondition(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e){return{result:e}}if(i){n[i.name]=i.value;t.logger?.debug?.(`${f} assign: ${i.name} := ${toDebugString(i.value)}`)}}return{result:true,referenceRecord:n}};const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:o.map((e=>{const o=evaluateExpression(e,"Header value entry",t);if(typeof o!=="string"){throw new EndpointError(`Header '${n}' value '${o}' is not a string`)}return o}))})),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:M.getEndpointProperty(o,t)})),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return M.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const M={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const n=evaluateExpression(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};const evaluateEndpointRule=(e,t)=>{const{conditions:n,endpoint:o}=e;const{result:i,referenceRecord:d}=evaluateConditions(n,t);if(!i){return}const p={...t,referenceRecord:{...t.referenceRecord,...d}};const{url:y,properties:v,headers:D}=o;t.logger?.debug?.(`${f} Resolving endpoint from template: ${toDebugString(o)}`);return{...D!=undefined&&{headers:getEndpointHeaders(D,p)},...v!=undefined&&{properties:getEndpointProperties(v,p)},url:getEndpointUrl(y,p)}};const evaluateErrorRule=(e,t)=>{const{conditions:n,error:o}=e;const{result:i,referenceRecord:d}=evaluateConditions(n,t);if(!i){return}throw new EndpointError(evaluateExpression(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...d}}))};const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=evaluateEndpointRule(n,t);if(e){return e}}else if(n.type==="error"){evaluateErrorRule(n,t)}else if(n.type==="tree"){const e=U.evaluateTreeRule(n,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${n}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:o}=e;const{result:i,referenceRecord:d}=evaluateConditions(n,t);if(!i){return}return U.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...d}})};const U={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:n,logger:o}=t;const{parameters:i,rules:d}=e;t.logger?.debug?.(`${f} Initial EndpointParams: ${toDebugString(n)}`);const p=Object.entries(i).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(p.length>0){for(const[e,t]of p){n[e]=n[e]??t}}const y=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of y){if(n[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const v=evaluateRules(d,{endpointParams:n,logger:o,referenceRecord:{}});t.logger?.debug?.(`${f} Resolved endpoint: ${toDebugString(v)}`);return v};t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=p;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.resolveEndpoint=resolveEndpoint},6435:(e,t)=>{const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n{var o=n(690);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.getSmithyContext=getSmithyContext;t.normalizeProvider=normalizeProvider},5518:(e,t,n)=>{var o=n(2058);t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const i=3;const d=t.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=false;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if(o.isThrottlingError(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const p=100;const f=20*1e3;const y=500;const v=500;const D=5;const M=10;const U=1;const V="amz-sdk-invocation-id";const j="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=p;const computeNextBackoffDelay=t=>Math.floor(Math.min(f,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(f,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=t.RETRY_MODES.STANDARD;capacity=v;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:p,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?y:p);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const d=this.getCapacityCost(n);this.capacity-=d;return createDefaultRetryToken({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:d})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(v,this.capacity+(e.getRetryCost()??U))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${i}`);return i}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?M:D}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=t.RETRY_MODES.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=p){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=i;t.DEFAULT_RETRY_DELAY_BASE=p;t.DEFAULT_RETRY_MODE=d;t.DefaultRateLimiter=DefaultRateLimiter;t.INITIAL_RETRY_TOKENS=v;t.INVOCATION_ID_HEADER=V;t.MAXIMUM_RETRY_DELAY=f;t.NO_RETRY_INCREMENT=U;t.REQUEST_HEADER=j;t.RETRY_COST=D;t.StandardRetryStrategy=StandardRetryStrategy;t.THROTTLING_RETRY_DELAY_BASE=y;t.TIMEOUT_RETRY_COST=M},1732:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const n=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends n{}t.ChecksumStream=ChecksumStream},1775:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const o=n(8385);const i=n(2203);class ChecksumStream extends i.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:i,base64Encoder:d}){super();if(typeof n.pipe==="function"){this.source=n}else{throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}this.base64Encoder=d??o.toBase64;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){}_write(e,t,n){try{this.checksum.update(e);this.push(e)}catch(e){return n(e)}return n()}async _final(e){try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}}t.ChecksumStream=ChecksumStream},4129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=void 0;const o=n(8385);const i=n(4414);const d=n(7753);const createChecksumStream=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:p,base64Encoder:f})=>{if(!(0,i.isReadableStream)(n)){throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}const y=f??o.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const v=new TransformStream({start(){},async transform(e,n){t.update(e);n.enqueue(e)},async flush(n){const o=await t.digest();const i=y(o);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}"`+` in response header "${p}".`);n.error(t)}else{n.terminate()}}});n.pipeThrough(v);const D=v.readable;Object.setPrototypeOf(D,d.ChecksumStream.prototype);return D};t.createChecksumStream=createChecksumStream},5639:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=createChecksumStream;const o=n(4414);const i=n(1775);const d=n(4129);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,o.isReadableStream)(e.source)){return(0,d.createChecksumStream)(e)}return new i.ChecksumStream(e)}},2005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=createBufferedReadable;const o=n(7075);const i=n(1732);const d=n(8213);const p=n(4414);function createBufferedReadable(e,t,n){if((0,p.isReadableStream)(e)){return(0,d.createBufferedReadableStream)(e,t,n)}const f=new o.Readable({read(){}});let y=false;let v=0;const D=["",new i.ByteArrayCollector((e=>new Uint8Array(e))),new i.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let M=-1;e.on("data",(e=>{const o=(0,d.modeOf)(e,true);if(M!==o){if(M>=0){f.push((0,d.flush)(D,M))}M=o}if(M===-1){f.push(e);return}const i=(0,d.sizeOf)(e);v+=i;const p=(0,d.sizeOf)(D[M]);if(i>=t&&p===0){f.push(e)}else{const o=(0,d.merge)(D,M,e);if(!y&&v>t*2){y=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){f.push((0,d.flush)(D,M))}}}));e.on("end",(()=>{if(M!==-1){const e=(0,d.flush)(D,M);if((0,d.sizeOf)(e)>0){f.push(e)}}f.push(null)}));return f}},8213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=void 0;t.createBufferedReadableStream=createBufferedReadableStream;t.merge=merge;t.flush=flush;t.sizeOf=sizeOf;t.modeOf=modeOf;const o=n(1732);function createBufferedReadableStream(e,t,n){const i=e.getReader();let d=false;let p=0;const f=["",new o.ByteArrayCollector((e=>new Uint8Array(e)))];let y=-1;const pull=async e=>{const{value:o,done:v}=await i.read();const D=o;if(v){if(y!==-1){const t=flush(f,y);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const o=modeOf(D,false);if(y!==o){if(y>=0){e.enqueue(flush(f,y))}y=o}if(y===-1){e.enqueue(D);return}const i=sizeOf(D);p+=i;const v=sizeOf(f[y]);if(i>=t&&v===0){e.enqueue(D)}else{const o=merge(f,y,D);if(!d&&p>t*2){d=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){e.enqueue(flush(f,y))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}t.createBufferedReadable=createBufferedReadableStream;function merge(e,t,n){switch(t){case 0:e[0]+=n;return sizeOf(e[0]);case 1:case 2:e[t].push(n);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const n=e[0];e[0]="";return n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},3492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:d,streamHasher:p}=t;const f=n!==undefined&&o!==undefined&&i!==undefined&&d!==undefined&&p!==undefined;const y=f?p(i,e):undefined;const v=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await v.read();if(i){e.enqueue(`0\r\n`);if(f){const t=n(await y);e.enqueue(`${d}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(o(t)||0).toString(16)}\r\n${t}\r\n`)}}})};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},6522:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const o=n(7075);const i=n(3492);const d=n(4414);function getAwsChunkedEncodingStream(e,t){const n=e;const p=e;if((0,d.isReadableStream)(p)){return(0,i.getAwsChunkedEncodingStream)(p,t)}const{base64Encoder:f,bodyLengthChecker:y,checksumAlgorithmFn:v,checksumLocationName:D,streamHasher:M}=t;const U=f!==undefined&&v!==undefined&&D!==undefined&&M!==undefined;const V=U?M(v,n):undefined;const j=new o.Readable({read:()=>{}});n.on("data",(e=>{const t=y(e)||0;if(t===0){return}j.push(`${t.toString(16)}\r\n`);j.push(e);j.push("\r\n")}));n.on("end",(async()=>{j.push(`0\r\n`);if(U){const e=f(await V);j.push(`${D}:${e}\r\n`);j.push(`\r\n`)}j.push(null)}));return j}},66:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=headStream;async function headStream(e,t){let n=0;const o=[];const i=e.getReader();let d=false;while(!d){const{done:e,value:p}=await i.read();if(p){o.push(p);n+=p?.byteLength??0}if(n>=t){break}d=e}i.releaseLock();const p=new Uint8Array(Math.min(t,n));let f=0;for(const e of o){if(e.byteLength>p.byteLength-f){p.set(e.subarray(0,p.byteLength-f),f);break}else{p.set(e,f)}f+=e.length}return p}},8412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=void 0;const o=n(2203);const i=n(66);const d=n(4414);const headStream=(e,t)=>{if((0,d.isReadableStream)(e)){return(0,i.headStream)(e,t)}return new Promise(((n,o)=>{const i=new Collector;i.limit=t;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));n(e)}))}))};t.headStream=headStream;class Collector extends o.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,n){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}n()}}},4252:(e,t,n)=>{var o=n(8385);var i=n(1577);var d=n(1775);var p=n(5639);var f=n(2005);var y=n(6522);var v=n(8412);var D=n(7201);var M=n(2108);var U=n(4414);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e==="string"){if(t==="base64"){return Uint8ArrayBlobAdapter.mutate(o.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(i.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return o.toBase64(this)}return i.toUtf8(this)}}Object.defineProperty(t,"isBlob",{enumerable:true,get:function(){return U.isBlob}});Object.defineProperty(t,"isReadableStream",{enumerable:true,get:function(){return U.isReadableStream}});t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.keys(d).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));Object.keys(p).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})}));Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}));Object.keys(y).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return y[e]}})}));Object.keys(v).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return v[e]}})}));Object.keys(D).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return D[e]}})}));Object.keys(M).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))Object.defineProperty(t,e,{enumerable:true,get:function(){return M[e]}})}))},2207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(7809);const i=n(8385);const d=n(6435);const p=n(1577);const f=n(4414);const y="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,f.isReadableStream)(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(y)}t=true;return await(0,o.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return(0,i.toBase64)(t)}else if(e==="hex"){return(0,d.toHex)(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,p.toUtf8)(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(y)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,f.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};t.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(1279);const i=n(4151);const d=n(2203);const p=n(2207);const f="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof d.Readable)){try{return(0,p.sdkStreamMixin)(e)}catch(t){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(f)}t=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,i.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(f)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof d.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return d.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},7570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}},2108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;const o=n(2203);const i=n(7570);const d=n(4414);async function splitStream(e){if((0,d.isReadableStream)(e)||(0,d.isBlob)(e)){return(0,i.splitStream)(e)}const t=new o.PassThrough;const n=new o.PassThrough;e.pipe(t);e.pipe(n);return[t,n]}},4414:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isBlob=t.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);t.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);t.isBlob=isBlob},146:(e,t)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath},1577:(e,t,n)=>{var o=n(4151);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};t.fromUtf8=fromUtf8;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8},5290:(e,t)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if(typeof n==="object"&&n!==null){if(e.has(n)){return"[Circular]"}e.add(n)}return n}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const n={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const i=e*2**(o-1);return randomInRange(e,i)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:n,maxWaitTime:o,abortController:i,client:d,abortSignal:p},f,y)=>{const v={};const{state:D,reason:M}=await y(d,f);if(M){const e=createMessageFromResponse(M);v[e]|=0;v[e]+=1}if(D!==t.WaiterState.RETRY){return{state:D,reason:M,observedResponses:v}}let U=1;const V=Date.now()+o*1e3;const j=Math.log(n/e)/Math.log(2)+1;while(true){if(i?.signal?.aborted||p?.aborted){const e="AbortController signal aborted.";v[e]|=0;v[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:v}}const o=exponentialBackoffWithJitter(e,n,j,U);if(Date.now()+o*1e3>V){return{state:t.WaiterState.TIMEOUT,observedResponses:v}}await sleep(o);const{state:D,reason:M}=await y(d,f);if(M){const e=createMessageFromResponse(M);v[e]|=0;v[e]+=1}if(D!==t.WaiterState.RETRY){return{state:D,reason:M,observedResponses:v}}U+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay{let n;const o=new Promise((o=>{n=()=>o({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",n)}else{e.onabort=n}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",n)}},aborted:o}};const createWaiter=async(e,t,o)=>{const i={...n,...e};validateWaiterOptions(i);const d=[runPolling(i,t,o)];const p=[];if(e.abortSignal){const{aborted:t,clearListener:n}=abortTimeout(e.abortSignal);p.push(n);d.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=abortTimeout(e.abortController.signal);p.push(n);d.push(t)}return Promise.race(d).then((e=>{for(const e of p){e()}return e}))};t.checkExceptions=checkExceptions;t.createWaiter=createWaiter;t.waiterServiceDefaults=n},266:(e,t,n)=>{var o=n(8492);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const v4=()=>{if(o.randomUUID){return o.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]};t.v4=v4},8492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=void 0;const o=n(1860);const i=o.__importDefault(n(6982));t.randomUUID=i.default.randomUUID.bind(i.default)},5183:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const p=d(n(8611));const f=d(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?f:p).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},8894:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(8611));p(n(5183),t);const y=Symbol("AgentBaseInternalState");class Agent extends f.Agent{constructor(e){super(e);this[y]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,o))).then((i=>{if(i instanceof f.Agent){return i.addRequest(e,o)}this[y].currentSocket=i;super.createSocket(e,t,n)}),n)}createConnection(){const e=this[y].currentSocket;this[y].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[y].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[y]){this[y].defaultPort=e}}get protocol(){return this[y].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[y]){this[y].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,d,p,f;var y=n.indexOf(e);var v=n.indexOf(t,y+1);var D=y;if(y>=0&&v>0){if(e===t){return[y,v]}o=[];d=n.length;while(D>=0&&!f){if(D==y){o.push(D);y=n.indexOf(e,D+1)}else if(o.length==1){f=[o.pop(),v]}else{i=o.pop();if(i=0?y:v}if(o.length){f=[d,p]}}return f}},7087:e=>{e.exports=function(e,n){var o=[];for(var i=0;i{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}d++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[d];t=i.call(n,o);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(n,e);const p=n.log||createDebug.log;p.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(5108)}},5108:(e,t,n)=>{const o=n(2018);const i=n(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const d=` ${i};1m${n} [0m`;t[0]=d+t[0].split("\n").join("\n"+d);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;oe.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o0){V("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);V("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){V("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(this.connectOpts)}else{V("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}await(0,D.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},3669:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(n(9278));const y=d(n(4756));const v=p(n(2613));const D=p(n(2830));const M=n(3333);const U=n(7016);const V=n(7943);const j=(0,D.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends M.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{j("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${d}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){p+=`${e}: ${i[e]}\r\n`}const D=(0,V.parseProxyResponse)(o);o.write(`${p}\r\n`);const{connect:M,buffered:U}=await D;e.emit("proxyConnect",M);this.emit("proxyConnect",M,e);if(M.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){j("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const K=new f.Socket({writable:false});K.readable=true;e.once("socket",(e=>{j("Replaying proxy buffer for failed request");(0,v.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return K}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},7943:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const d=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);n(e)}function ondata(p){i.push(p);o+=p.length;const f=Buffer.concat(i,o);const y=f.indexOf("\r\n\r\n");if(y===-1){d("have not received end of HTTP headers yet...");read();return}const v=f.slice(0,y).toString("ascii").split("\r\n");const D=v.shift();if(!D){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const M=D.split(" ");const U=+M[1];const V=M.slice(2).join(" ");const j={};for(const t of v){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const d=t.slice(o+1).trimStart();const p=j[i];if(typeof p==="string"){j[i]=[p,d]}else if(Array.isArray(p)){p.push(d)}else{j[i]=d}}d("got proxy server response: %o %o",D,j);cleanup();t({connect:{statusCode:U,statusText:V,headers:j},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},8515:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const p=d(n(8611));const f=d(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?f:p).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},3333:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(9278));const y=d(n(8611));const v=n(5692);p(n(8515),t);const D=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[D]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=typeof e.secureEndpoint==="boolean"?e.secureEndpoint:this.isSecureEndpoint(e);if(t){return v.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const d=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((p=>{this.decrementSockets(i,d);if(p instanceof y.Agent){try{return p.addRequest(e,o)}catch(e){return n(e)}}this[D].currentSocket=p;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,d);n(e)}))}createConnection(){const e=this[D].currentSocket;this[D].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[D].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[D]){this[D].defaultPort=e}}get protocol(){return this[D].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[D]){this[D].protocol=e}}}t.Agent=Agent},3772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var d=n(3783);var p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var f="[^/]";var y=f+"*?";var v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var D="(?:(?!(?:\\/|^)\\.).)*?";var M=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var U=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(U)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,d=e.length;iV){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var j={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var d=!!n.nocase;var v=false;var D=[];var U=[];var V;var K=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(V){switch(V){case"*":o+=y;d=true;break;case"?":o+=f;d=true;break;default:o+="\\"+V;break}ne.debug("clearStateChar %j %j",V,o);V=false}}for(var se=0,oe=e.length,ie;se-1;pe--){var me=U[pe];var ge=o.slice(0,me.reStart);var fe=o.slice(me.reStart,me.reEnd-8);var he=o.slice(me.reEnd-8,me.reEnd);var ye=o.slice(me.reEnd);he+=ye;var Ee=ge.split("(").length-1;var Ce=ye;for(se=0;se=0;p--){d=e[p];if(d)break}for(p=0;p>> no match, partial?",e,M,t,U);if(M===f)return true}return false}var j;if(typeof v==="string"){j=D===v;this.debug("string match",v,D,j)}else{j=D.match(v);this.debug("pattern match",v,D,j)}if(!j)return false}if(d===f&&p===y){return true}else if(d===f){return n}else if(p===y){return d===f-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3783:(e,t,n)=>{var o=n(7087);var i=n(9380);e.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var f="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(d).split("\\{").join(p).split("\\}").join(f).split("\\,").join(y).split("\\.").join(v)}function unescapeBraces(e){return e.split(d).join("\\").split(p).join("{").split(f).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var d=n.body;var p=n.post;var f=o.split(",");f[f.length-1]+="{"+d+"}";var y=parseCommaParts(p);if(p.length){f[f.length-1]+=y.shift();f.push.apply(f,y)}t.push.apply(t,f);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var d=i("{","}",e);if(!d||/\$$/.test(d.pre))return[e];var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body);var v=p||y;var D=d.body.indexOf(",")>=0;if(!v&&!D){if(d.post.match(/,(?!,).*\}/)){e=d.pre+"{"+d.body+f+d.post;return expand(e)}return[e]}var M;if(v){M=d.body.split(/\.\./)}else{M=parseCommaParts(d.body);if(M.length===1){M=expand(M[0],false).map(embrace);if(M.length===1){var U=d.post.length?expand(d.post,false):[""];return U.map((function(e){return d.pre+M[0]+e}))}}}var V=d.pre;var U=d.post.length?expand(d.post,false):[""];var j;if(v){var K=numeric(M[0]);var ee=numeric(M[1]);var te=Math.max(M[0].length,M[1].length);var re=M.length==3?Math.abs(numeric(M[2])):1;var ne=lte;var se=ee0){var le=new Array(ce+1).join("0");if(ie<0)ae="-"+le+ae.slice(1);else ae=le+ae}}}j.push(ae)}}else{j=o(M,(function(e){return expand(e,false)}))}for(var ue=0;ue{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var d=i*7;var p=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var y=parseFloat(f[1]);var v=(f[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*p;case"weeks":case"week":case"w":return y*d;case"days":case"day":case"d":return y*i;case"hours":case"hour":case"hrs":case"hr":case"h":return y*o;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=i){return Math.round(e/i)+"d"}if(d>=o){return Math.round(e/o)+"h"}if(d>=n){return Math.round(e/n)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=i){return plural(e,d,i,"day")}if(d>=o){return plural(e,d,o,"hour")}if(d>=n){return plural(e,d,n,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},9379:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?d[p.COMPARATORLOOSE]:d[p.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new v(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new D(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new D(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(356);const{safeRe:d,t:p}=n(5471);const f=n(8646);const y=n(1159);const v=n(7163);const D=n(6782)},6782:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=p(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof f){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&K)|(this.options.loose&&ee);const n=t+":"+e;const o=d.get(n);if(o){return o}const i=this.options.loose;const p=i?D[M.HYPHENRANGELOOSE]:D[M.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(D[M.COMPARATORTRIM],U);y("comparator trim",e);e=e.replace(D[M.TILDETRIM],V);y("tilde trim",e);e=e.replace(D[M.CARETTRIM],j);y("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){v=v.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(D[M.COMPARATORLOOSE])}))}y("range list",v);const te=new Map;const re=v.map((e=>new f(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];d.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(D[M.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?D[M.TILDELOOSE]:D[M.TILDE];return e.replace(n,((t,n,o,i,d)=>{y("tilde",e,t,n,o,i,d);let p;if(isX(n)){p=""}else if(isX(o)){p=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){p=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(d){y("replaceTilde pr",d);p=`>=${n}.${o}.${i}-${d} <${n}.${+o+1}.0-0`}else{p=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",p);return p}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?D[M.CARETLOOSE]:D[M.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,d,p)=>{y("caret",e,t,n,i,d,p);let f;if(isX(n)){f=""}else if(isX(i)){f=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(d)){if(n==="0"){f=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{f=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(p){y("replaceCaret pr",p);if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${d}-${p} <${n}.${i}.${+d+1}-0`}else{f=`>=${n}.${i}.${d}-${p} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${d}-${p} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){f=`>=${n}.${i}.${d}${o} <${n}.${i}.${+d+1}-0`}else{f=`>=${n}.${i}.${d}${o} <${n}.${+i+1}.0-0`}}else{f=`>=${n}.${i}.${d} <${+n+1}.0.0-0`}}y("caret return",f);return f}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?D[M.XRANGELOOSE]:D[M.XRANGE];return e.replace(n,((n,o,i,d,p,f)=>{y("xRange",e,n,o,i,d,p,f);const v=isX(i);const D=v||isX(d);const M=D||isX(p);const U=M;if(o==="="&&U){o=""}f=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&U){if(D){d=0}p=0;if(o===">"){o=">=";if(D){i=+i+1;d=0;p=0}else{d=+d+1;p=0}}else if(o==="<="){o="<";if(D){i=+i+1}else{d=+d+1}}if(o==="<"){f="-0"}n=`${o+i}.${d}.${p}${f}`}else if(D){n=`>=${i}.0.0${f} <${+i+1}.0.0-0`}else if(M){n=`>=${i}.${d}.0${f} <${i}.${+d+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(D[M.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(D[t.includePrerelease?M.GTE0PRE:M.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,d,p,f,y,v,D,M,U)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(d)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(p){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(v)){y=""}else if(isX(D)){y=`<${+v+1}.0.0-0`}else if(isX(M)){y=`<${v}.${+D+1}.0-0`}else if(U){y=`<=${v}.${D}.${M}-${U}`}else if(e){y=`<${v}.${D}.${+M+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{const o=n(1159);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:d}=n(5101);const{safeRe:p,t:f}=n(5471);const y=n(356);const{compareIdentifiers:v}=n(3348);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?p[f.LOOSE]:p[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>d||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>d||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>d||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return v(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return v(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?p[f.PRERELEASELOOSE]:p[f.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(v(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{const o=n(6353);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},8646:(e,t,n)=>{const o=n(5082);const i=n(4974);const d=n(6599);const p=n(1236);const f=n(3872);const y=n(6717);const cmp=(e,t,n,v)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,v);case"!=":return i(e,n,v);case">":return d(e,n,v);case">=":return p(e,n,v);case"<":return f(e,n,v);case"<=":return y(e,n,v);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,n)=>{const o=n(7163);const i=n(6353);const{safeRe:d,t:p}=n(5471);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?d[p.COERCEFULL]:d[p.COERCE])}else{const o=t.includePrerelease?d[p.COERCERTLFULL]:d[p.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const f=n[2];const y=n[3]||"0";const v=n[4]||"0";const D=t.includePrerelease&&n[5]?`-${n[5]}`:"";const M=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${f}.${y}.${v}${D}${M}`,t)};e.exports=coerce},7648:(e,t,n)=>{const o=n(7163);const compareBuild=(e,t,n)=>{const i=new o(e,n);const d=new o(t,n);return i.compare(d)||i.compareBuild(d)};e.exports=compareBuild},6874:(e,t,n)=>{const o=n(8469);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},8469:(e,t,n)=>{const o=n(7163);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},711:(e,t,n)=>{const o=n(6353);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const d=n.compare(i);if(d===0){return null}const p=d>0;const f=p?n:i;const y=p?i:n;const v=!!f.prerelease.length;const D=!!y.prerelease.length;if(D&&!v){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(f)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const M=v?"pre":"";if(n.major!==i.major){return M+"major"}if(n.minor!==i.minor){return M+"minor"}if(n.patch!==i.patch){return M+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,n)=>{const o=n(8469);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},6599:(e,t,n)=>{const o=n(8469);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},1236:(e,t,n)=>{const o=n(8469);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2338:(e,t,n)=>{const o=n(7163);const inc=(e,t,n,i,d)=>{if(typeof n==="string"){d=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,d).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{const o=n(8469);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},6717:(e,t,n)=>{const o=n(8469);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},8511:(e,t,n)=>{const o=n(7163);const major=(e,t)=>new o(e,t).major;e.exports=major},2603:(e,t,n)=>{const o=n(7163);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},4974:(e,t,n)=>{const o=n(8469);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},6353:(e,t,n)=>{const o=n(7163);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},8756:(e,t,n)=>{const o=n(7163);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5714:(e,t,n)=>{const o=n(6353);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},2173:(e,t,n)=>{const o=n(8469);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},7192:(e,t,n)=>{const o=n(7648);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},8011:(e,t,n)=>{const o=n(6782);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,n)=>{const o=n(7648);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},8780:(e,t,n)=>{const o=n(6353);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},2088:(e,t,n)=>{const o=n(5471);const i=n(5101);const d=n(7163);const p=n(3348);const f=n(6353);const y=n(8780);const v=n(1799);const D=n(2338);const M=n(711);const U=n(8511);const V=n(2603);const j=n(8756);const K=n(5714);const ee=n(8469);const te=n(2173);const re=n(6874);const ne=n(7648);const se=n(9872);const oe=n(7192);const ie=n(6599);const ae=n(3872);const ce=n(5082);const le=n(4974);const ue=n(1236);const de=n(6717);const Ae=n(8646);const pe=n(5385);const me=n(9379);const ge=n(6782);const fe=n(8011);const he=n(4750);const ye=n(5574);const Ee=n(8595);const Ce=n(1866);const Ie=n(4737);const be=n(280);const Se=n(2276);const Be=n(5213);const we=n(3465);const Re=n(2028);const Qe=n(1489);e.exports={parse:f,valid:y,clean:v,inc:D,diff:M,major:U,minor:V,patch:j,prerelease:K,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:Ae,coerce:pe,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Qe,SemVer:d,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const d=n-6;const p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:o,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:d}=n(5101);const p=n(1159);t=e.exports={};const f=t.re=[];const y=t.safeRe=[];const v=t.src=[];const D=t.safeSrc=[];const M=t.t={};let U=0;const V="[a-zA-Z0-9-]";const j=[["\\s",1],["\\d",d],[V,i]];const makeSafeRegex=e=>{for(const[t,n]of j){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=U++;p(e,i,t);M[e]=i;v[i]=t;D[i]=o;f[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${V}*`);createToken("MAINVERSION",`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${v[M.PRERELEASEIDENTIFIER]}(?:\\.${v[M.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${v[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[M.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${V}+`);createToken("BUILD",`(?:\\+(${v[M.BUILDIDENTIFIER]}(?:\\.${v[M.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${v[M.MAINVERSION]}${v[M.PRERELEASE]}?${v[M.BUILD]}?`);createToken("FULL",`^${v[M.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${v[M.MAINVERSIONLOOSE]}${v[M.PRERELEASELOOSE]}?${v[M.BUILD]}?`);createToken("LOOSE",`^${v[M.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${v[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${v[M.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:${v[M.PRERELEASE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:${v[M.PRERELEASELOOSE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${v[M.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",v[M.COERCEPLAIN]+`(?:${v[M.PRERELEASE]})?`+`(?:${v[M.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",v[M.COERCE],true);createToken("COERCERTLFULL",v[M.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${v[M.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${v[M.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${v[M.LONECARET]}${v[M.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${v[M.LONECARET]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${v[M.GTLT]}\\s*(${v[M.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]}|${v[M.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${v[M.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${v[M.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,n)=>{const o=n(280);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},3465:(e,t,n)=>{const o=n(6782);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},5213:(e,t,n)=>{const o=n(280);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},5574:(e,t,n)=>{const o=n(7163);const i=n(6782);const maxSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===-1){d=e;p=new o(d,n)}}}));return d};e.exports=maxSatisfying},8595:(e,t,n)=>{const o=n(7163);const i=n(6782);const minSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new i(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===1){d=e;p=new o(d,n)}}}));return d};e.exports=minSatisfying},1866:(e,t,n)=>{const o=n(7163);const i=n(6782);const d=n(6599);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!p||d(t,p)){p=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(p&&(!n||d(n,p))){n=p}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},280:(e,t,n)=>{const o=n(7163);const i=n(9379);const{ANY:d}=i;const p=n(6782);const f=n(8011);const y=n(6599);const v=n(3872);const D=n(6717);const M=n(1236);const outside=(e,t,n,U)=>{e=new o(e,U);t=new p(t,U);let V,j,K,ee,te;switch(n){case">":V=y;j=D;K=v;ee=">";te=">=";break;case"<":V=v;j=M;K=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,t,U)){return false}for(let n=0;n{if(e.semver===d){e=new i(">=0.0.0")}p=p||e;f=f||e;if(V(e.semver,p.semver,U)){p=e}else if(K(e.semver,f.semver,U)){f=e}}));if(p.operator===ee||p.operator===te){return false}if((!f.operator||f.operator===ee)&&j(e,f.semver)){return false}else if(f.operator===te&&K(e,f.semver)){return false}}return true};e.exports=outside},2028:(e,t,n)=>{const o=n(8011);const i=n(8469);e.exports=(e,t,n)=>{const d=[];let p=null;let f=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){f=e;if(!p){p=e}}else{if(f){d.push([p,f])}f=null;p=null}}if(p){d.push([p,null])}const v=[];for(const[e,t]of d){if(e===t){v.push(e)}else if(!t&&e===y[0]){v.push("*")}else if(!t){v.push(`>=${e}`)}else if(e===y[0]){v.push(`<=${t}`)}else{v.push(`${e} - ${t}`)}}const D=v.join(" || ");const M=typeof t.raw==="string"?t.raw:String(t);return D.length{const o=n(6782);const i=n(9379);const{ANY:d}=i;const p=n(8011);const f=n(8469);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const v=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===d){if(t.length===1&&t[0].semver===d){return true}else if(n.includePrerelease){e=y}else{e=v}}if(t.length===1&&t[0].semver===d){if(n.includePrerelease){return true}else{t=v}}const o=new Set;let i,D;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){D=lowerLT(D,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let M;if(i&&D){M=f(i.semver,D.semver,n);if(M>0){return null}else if(M===0&&(i.operator!==">="||D.operator!=="<=")){return null}}for(const e of o){if(i&&!p(e,String(i),n)){return null}if(D&&!p(e,String(D),n)){return null}for(const o of t){if(!p(e,String(o),n)){return false}}return true}let U,V;let j,K;let ee=D&&!n.includePrerelease&&D.semver.prerelease.length?D.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&D.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){K=K||e.operator===">"||e.operator===">=";j=j||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){U=higherGT(i,e,n);if(U===e&&U!==i){return false}}else if(i.operator===">="&&!p(i.semver,String(e),n)){return false}}if(D){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){V=lowerLT(D,e,n);if(V===e&&V!==D){return false}}else if(D.operator==="<="&&!p(D.semver,String(e),n)){return false}}if(!e.operator&&(D||i)&&M!==0){return false}}if(i&&j&&!D&&M!==0){return false}if(D&&K&&!i&&M!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=f(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,n)=>{const o=n(6782);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,n)=>{const o=n(6782);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,n)=>{const o=n(857);const i=n(2018);const d=n(3813);const{env:p}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){f=1}else if(p.FORCE_COLOR==="false"){f=0}else{f=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(p.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in p){const e=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},1288:(e,t,n)=>{var o;
+import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,n)=>{var o;o={value:true};var i=n(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var c=n(3402);o={enumerable:true,get:function(){return c.readMethodOptions}};o={enumerable:true,get:function(){return c.readMethodOption}};o={enumerable:true,get:function(){return c.readServiceOption}};var d=n(422);o={enumerable:true,get:function(){return d.RpcError}};var p=n(3474);o={enumerable:true,get:function(){return p.mergeRpcOptions}};var y=n(6407);o={enumerable:true,get:function(){return y.RpcOutputStreamController}};var C=n(5435);o={enumerable:true,get:function(){return C.TestTransport}};var Q=n(9499);o={enumerable:true,get:function(){return Q.Deferred}};o={enumerable:true,get:function(){return Q.DeferredState}};var v=n(800);o={enumerable:true,get:function(){return v.DuplexStreamingCall}};var D=n(3311);o={enumerable:true,get:function(){return D.ClientStreamingCall}};var k=n(2715);o={enumerable:true,get:function(){return k.ServerStreamingCall}};var $=n(738);o={enumerable:true,get:function(){return $.UnaryCall}};var V=n(4359);o={enumerable:true,get:function(){return V.stackIntercept}};o={enumerable:true,get:function(){return V.stackDuplexStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackClientStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackServerStreamingInterceptors}};o={enumerable:true,get:function(){return V.stackUnaryInterceptors}};var ee=n(4626);o={enumerable:true,get:function(){return ee.ServerCallContextController}}},3402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(8372);function normalizeMethodInfo(e,t){var n,i,c;let d=e;d.service=t;d.localName=(n=d.localName)!==null&&n!==void 0?n:o.lowerCamelCase(d.name);d.serverStreaming=!!d.serverStreaming;d.clientStreaming=!!d.clientStreaming;d.options=(i=d.options)!==null&&i!==void 0?i:{};d.idempotency=(c=d.idempotency)!==null&&c!==void 0?c:undefined;return d}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const c=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return c&&c[n]?o.fromJson(c[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const c=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!c){return undefined}const d=c[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},422:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},4359:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(8372);function stackIntercept(e,t,n,i,c){var d,p,y,C;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((d=i.interceptors)!==null&&d!==void 0?d:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,c,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((p=i.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,c,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=i.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((C=i.interceptors)!==null&&C!==void 0?C:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},3474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(8372);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let c=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(c):c.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},6407:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(9499);const i=n(8372);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},4626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},2715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},2554:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(3402);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},5435:function(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(422);const c=n(8372);const d=n(6407);const p=n(3474);const y=n(738);const C=n(2715);const Q=n(3311);const v=n(800);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}c.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){c.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){c.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return p.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},c=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),d=c.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),C=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,C);this.lastInput={single:t};return new y.UnaryCall(e,i,t,c,d,p,C)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},c=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=new d.RpcOutputStreamController,y=c.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,p,n.abort))).then(delay(this.afterResponseDelay,n.abort)),Q=y.then((()=>this.promiseStatus())),v=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(Q,v);this.lastInput={single:t};return new C.ServerStreamingCall(e,i,t,c,p,Q,v)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),c=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),d=c.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),p=c.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(d,p);this.lastInput=new TestInputStream(this.data,t.abort);return new Q.ClientStreamingCall(e,o,this.lastInput,i,c,d,p)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),c=new d.RpcOutputStreamController,p=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,c,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=p.then((()=>this.promiseStatus())),C=p.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,C);this.lastInput=new TestInputStream(this.data,t.abort);return new v.DuplexStreamingCall(e,o,this.lastInput,i,c,y,C)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,c)=>{if(t===null||t===void 0?void 0:t.aborted){c(new i.RpcError("user cancel","CANCELLED"))}else{const d=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(d);c(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},738:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,c,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=c;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},6468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,c=2147483647,d=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>c||ei||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e>4;p=d;c=2;break;case 2:n[i++]=(p&15)<<4|(d&60)>>2;p=d;c=3;break;case 3:n[i++]=(p&3)<<6|d;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,c=0;for(let d=0;d>2];c=(i&3)<<4;o=1;break;case 1:t+=n[c|i>>4];c=(i&15)<<2;o=2;break;case 2:t+=n[c|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[c];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},6690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,c)=>{let d=is(n)?n[e.symbol]:n[e.symbol]=[];d.push({no:o,wireType:i,data:c})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:c}of e.list(n))o.tag(t,i).raw(c)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},8887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(6690);const i=n(5579);const c=n(365);const d={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},4839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(5579);const i=n(365);const c=n(6468);const d={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){c.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){c.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){c.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){c.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){c.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){c.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,c=t.lo<<1^n,d=(t.hi<<1|t.lo>>>31)^n;i.varint64write(c,d,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},6959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},365:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<>>o;const c=!(i>>>7==0&&t==0);const d=(c?i|128:i)&255;n.push(d);if(!c){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const c=(i?o|128:o)&255;n.push(c);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let c=0;function add1e6digit(t,d){const p=Number(e.slice(t,d));c*=o;i=i*o+p;if(i>=n){c=c+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,c]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let c=t>>16&65535;let d=o+i*6777216+c*6710656;let p=i+c*8147497;let y=c*2;let C=1e7;if(d>=C){p+=Math.floor(d/C);d%=C}if(p>=C){y+=Math.floor(p/C);p%=C}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(p,y)+decimalFrom1e7(d,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(8369);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(6689);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var c=n(5424);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var d=n(6690);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return d.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return d.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return d.UnknownFieldHandler}});var p=n(8887);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return p.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return p.binaryReadOptions}});var y=n(4839);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var C=n(5579);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return C.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return C.PbULong}});var Q=n(3389);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return Q.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return Q.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return Q.mergeJsonOptions}});var v=n(1371);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return v.MESSAGE_TYPE}});var D=n(4172);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return D.MessageType}});var k=n(528);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return k.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return k.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return k.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return k.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return k.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return k.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return k.readMessageOption}});var $=n(5649);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return $.ReflectionTypeCheck}});var V=n(868);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return V.reflectionCreate}});var ee=n(412);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(8674);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(8197);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(2161);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var se=n(5325);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return se.ReflectionBinaryWriter}});var oe=n(5240);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return oe.ReflectionJsonReader}});var ie=n(5572);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return ie.ReflectionJsonWriter}});var ae=n(5556);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var ce=n(4857);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return ce.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return ce.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return ce.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return ce.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return ce.getSelectedOneofValue}});var le=n(6959);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return le.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return le.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return le.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return le.isEnumObject}});var ue=n(4959);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return ue.lowerCamelCase}});var de=n(6468);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return de.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return de.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return de.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return de.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return de.assertFloat32}})},3389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},8369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},4172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(1371);const i=n(528);const c=n(5649);const d=n(5240);const p=n(5572);const y=n(2161);const C=n(5325);const Q=n(868);const v=n(8674);const D=n(8369);const k=n(3389);const $=n(8197);const V=n(4839);const ee=n(8887);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new d.ReflectionJsonReader(this);this.refJsonWriter=new p.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new C.ReflectionBinaryWriter(this)}create(e){let t=Q.reflectionCreate(this);if(e!==undefined){v.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();v.reflectionMergePartial(this,t,e);return t}equals(e,t){return $.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){v.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,k.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,k.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=V.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${D.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},4857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},5579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(365);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const c=/^-?[0-9]+$/;const d=4294967296;const p=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*d+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!c.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/d)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!c.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>p||i==p&&n!=0)throw new Error("signed long too small")}else if(i>=p)throw new Error("signed long too large");let y=new PbLong(n,i);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/d):new PbLong(-e,-e/d).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&p)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},5424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,c;let d=e.length;while(t191&&c<224)o[i++]=(c&31)<<6|e[t++]&63;else if(c>239&&c<365){c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(c>>10);o[i++]=56320+(c&1023)}else o[i++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},2161:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(6690);const i=n(528);const c=n(2344);const d=n(412);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,c){this.prepare();const d=c===undefined?e.len:e.pos+c;while(e.pos{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(6690);const i=n(528);const c=n(6468);const d=n(5579);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let d,p,y=o.repeat,C=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==C)continue;d=t[C];p=true}else{d=e[C];p=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(y){c.assert(Array.isArray(d));if(y==i.RepeatType.PACKED)this.packed(t,e,o.no,d);else for(const n of d)this.scalar(t,e,o.no,n,true)}else if(d===undefined)c.assert(o.opt);else this.scalar(t,e,o.no,d,p||o.opt);break;case"message":if(y){c.assert(Array.isArray(d));for(const e of d)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,d)}break;case"map":c.assert(typeof d=="object"&&d!==null);for(const[e,i]of Object.entries(d))this.mapEntry(t,n,o,e,i);break}}let d=n.writeUnknownFields;if(d!==false)(d===true?o.UnknownFieldHandler.onWrite:d)(this.info.typeName,e,t)}mapEntry(e,t,n,d,p){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let y=d;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:y=Number.parseInt(d);break;case i.ScalarType.BOOL:c.assert(d=="true"||d=="false");y=d=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,p,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,p,true);break;case"message":this.message(e,t,n.V.T(),2,p);break}e.join()}message(e,t,n,i,c){if(c===undefined)return;n.internalBinaryWrite(c,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[c,d,p]=this.scalarInfo(t,o);if(!p||i){e.tag(n,c);e[d](o)}}packed(e,t,n,d){if(!d.length)return;c.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,p]=this.scalarInfo(t);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(1371);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},868:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(412);const i=n(1371);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},8197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(528);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let c of e.fields){let e=c.localName;let d=c.oneof?t[c.oneof][e]:t[e];let p=c.oneof?n[c.oneof][e]:n[e];switch(c.kind){case"enum":case"scalar":let e=c.kind=="enum"?o.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(e,d,p):primitiveEq(e,d,p)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),i(d),i(p)):repeatedPrimitiveEq(c.V.kind=="enum"?o.ScalarType.INT32:c.V.T,i(d),i(p))))return false;break;case"message":let t=c.T();if(!(c.repeat?repeatedMsgEq(t,d,p):t.equals(d,p)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let c=n;if(i.length!==c.length)return false;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4959);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var c;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(c=t.LongType||(t.LongType={}));var d;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(d=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,c;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:d.NO;e.opt=(c=e.opt)!==null&&c!==void 0?c:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const c=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return c&&c[n]?o.fromJson(c[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const c=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!c){return undefined}const d=c[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},5240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(8369);const i=n(6689);const c=n(528);const d=n(5579);const p=n(6468);const y=n(2344);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[d,p]of Object.entries(e)){const e=this.fMap[d];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${d}`);continue}const y=e.localName;let C;if(e.oneof){if(p===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);C=t[e.oneof]={oneofKind:y}}else{C=t}if(e.kind=="map"){if(p===null){continue}this.assert(o.isJsonObject(p),e.name,p);const t=C[y];for(const[o,i]of Object.entries(p)){this.assert(i!==null,e.name+" map value",null);let d;switch(e.V.kind){case"message":d=e.V.T().internalJsonRead(i,n);break;case"enum":d=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(d===false)continue;break;case"scalar":d=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(d!==undefined,e.name+" map value",i);let p=o;if(e.K==c.ScalarType.BOOL)p=p=="true"?true:p=="false"?false:p;p=this.scalar(p,e.K,c.LongType.STRING,e.name).toString();t[p]=d}}else if(e.repeat){if(p===null)continue;this.assert(Array.isArray(p),e.name,p);const t=C[y];for(const o of p){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,p);t.push(i)}}else{switch(e.kind){case"message":if(p===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}C[y]=e.T().internalJsonRead(p,n,C[y]);break;case"enum":if(p===null)continue;let t=this.enum(e.T(),p,e.name,n.ignoreUnknownFields);if(t===false)continue;C[y]=t;break;case"scalar":if(p===null)continue;C[y]=this.scalar(p,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")p.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":p.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let c=e[1][i];if(typeof c==="undefined"&&o){return false}p.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return c}p.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let C;try{switch(t){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){C="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){C="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){C="not a number";break}if(!Number.isFinite(o)){C="too large or small";break}if(t==c.ScalarType.FLOAT)p.assertFloat32(o);return o;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(e===null)return 0;let Q;if(typeof e=="number")Q=e;else if(e==="")C="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)C="extra whitespace";else Q=Number(e)}if(Q===undefined)break;if(t==c.ScalarType.UINT32)p.assertUInt32(Q);else p.assertInt32(Q);return Q;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(d.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(d.PbLong.from(e),n);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(d.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(d.PbULong.from(e),n);case c.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case c.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){C="extra whitespace";break}try{encodeURIComponent(e)}catch(C){C="invalid UTF8";break}return e;case c.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){C=e.message}this.assert(false,o+(C?" - "+C:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},5572:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(6689);const i=n(5579);const c=n(528);const d=n(6468);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const c=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let p=this.field(e,i[e.localName],c);d.assert(p!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=p}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){d.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);d.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[c,p]of Object.entries(t)){const t=this.message(o,p,e.name,n);d.assert(t!==undefined);i[c.toString()]=t}break;case"enum":const c=e.V.T();for(const[o,p]of Object.entries(t)){d.assert(p===undefined||typeof p=="number");const t=this.enum(c,p,e.name,false,true,n.enumAsInteger);d.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){d.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,c){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){d.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;d.assert(typeof t=="number");d.assert(Number.isInteger(t));if(c||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,p,y){if(t===undefined){d.assert(p);return undefined}const C=y||p;switch(e){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(t===0)return C?0:undefined;d.assertInt32(t);return t;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(t===0)return C?0:undefined;d.assertUInt32(t);return t;case c.ScalarType.FLOAT:d.assertFloat32(t);case c.ScalarType.DOUBLE:if(t===0)return C?0:undefined;d.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case c.ScalarType.STRING:if(t==="")return C?"":undefined;d.assert(typeof t=="string");return t;case c.ScalarType.BOOL:if(t===false)return C?false:undefined;d.assert(typeof t=="boolean");return t;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!C)return undefined;return e.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!C)return undefined;return n.toString();case c.ScalarType.BYTES:d.assert(t instanceof Uint8Array);if(!t.byteLength)return C?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},2344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(528);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8674:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,c;for(let n of e.fields){let e=n.localName;if(n.oneof){const d=i[n.oneof];if((d===null||d===void 0?void 0:d.oneofKind)==undefined){continue}o=d[e];c=t[n.oneof];c.oneofKind=d.oneofKind;if(o==undefined){delete c[e];continue}}else{o=i[e];c=t;if(o==undefined){continue}}if(n.repeat)c[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(528);const i=n(2344);const c=n(5579);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(c.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(c.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(528);const i=n(4857);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),c=this.data;if(o.length!o.includes(e))))return false;if(!n){if(o.some((e=>!c.known.includes(e))))return false}if(t<1){return true}for(const o of c.oneofs){const c=e[o];if(!i.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const d=this.fields.find((e=>e.localName===c.oneofKind));if(!d)return false;if(!this.field(c[c.oneofKind],d,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let c=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(c)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(c)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(c)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},9659:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),c=0;cd(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((e=>d(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return d(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return d(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return d(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return d(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return d(this,arguments,void 0,(function*(e,t={}){t[k.Accept]=this._getExistingOrDefaultHeader(t,k.Accept,$.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,$.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,$.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let c=this._prepareRequest(e,i,o);const d=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let p=0;let y;do{y=yield this.requestRaw(c,n);if(y&&y.message&&y.message.statusCode===D.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,c,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&V.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const d=y.message.headers["location"];if(!d){break}const p=new URL(d);if(i.protocol==="https:"&&i.protocol!==p.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield y.readBody();if(p.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}c=this._prepareRequest(e,p,o);y=yield this.requestRaw(c,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}p+=1;if(p{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let c;i.on("socket",(e=>{c=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=C.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?y:p;const c=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):c;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[k.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[k.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=C.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||p.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const d=n.protocol==="https:";if(i){o=d?Q.httpsOverHttps:Q.httpsOverHttp}else{o=d?Q.httpOverHttps:Q.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=i?new y.Agent(e):new p.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new v.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return d(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return d(this,void 0,void 0,(function*(){return new Promise(((n,o)=>d(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const c={statusCode:i,result:null,headers:{}};if(i===D.NotFound){n(c)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let d;let p;try{p=yield e.readBody();if(p&&p.length>0){if(t&&t.deserializeDates){d=JSON.parse(p,dateTimeDeserializer)}else{d=JSON.parse(p)}c.result=d}c.headers=e.message.headers}catch(e){}if(i>299){let e;if(d&&d.message){e=d.message}else if(p&&p.length>0){e=p}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=c.result;o(t)}else{n(c)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},3335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getProxyUrl=getProxyUrl;t.checkBypass=checkBypass;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},3182:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRPUBLICHttpAuthSchemeProvider=t.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRPUBLICHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRPUBLICHttpAuthSchemeParametersProvider=defaultECRPUBLICHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRPUBLICHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRPUBLICHttpAuthSchemeProvider=defaultECRPUBLICHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const c=n(1829);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(c.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},1829:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",c="ref";const d=true,p="isSet",y="booleanEquals",C="error",Q="endpoint",v="tree",D="PartitionResult",k="getAttr",$={[n]:false,type:"string"},V={[n]:true,default:false,type:"boolean"},ee={[c]:"Endpoint"},te={[o]:y,[i]:[{[c]:"UseFIPS"},true]},re={[o]:y,[i]:[{[c]:"UseDualStack"},true]},ne={},se={[o]:k,[i]:[{[c]:D},"supportsFIPS"]},oe={[c]:D},ie={[o]:y,[i]:[true,{[o]:k,[i]:[oe,"supportsDualStack"]}]},ae=[te],ce=[re],le=[{[c]:"Region"}];const ue={version:"1.0",parameters:{Region:$,UseDualStack:V,UseFIPS:V,Endpoint:$},rules:[{conditions:[{[o]:p,[i]:[ee]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:C},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:C},{endpoint:{url:ee,properties:ne,headers:ne},type:Q}],type:v},{conditions:[{[o]:p,[i]:le}],rules:[{conditions:[{[o]:"aws.partition",[i]:le,assign:D}],rules:[{conditions:[te,re],rules:[{conditions:[{[o]:y,[i]:[d,se]},ie],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:C}],type:v},{conditions:ae,rules:[{conditions:[{[o]:y,[i]:[se,d]}],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"FIPS is enabled but this partition does not support FIPS",type:C}],type:v},{conditions:ce,rules:[{conditions:[ie],rules:[{conditions:[{[o]:"stringEquals",[i]:["aws",{[o]:k,[i]:[oe,"name"]}]}],endpoint:{url:"https://ecr-public.{Region}.api.aws",properties:ne,headers:ne},type:Q},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ne,headers:ne},type:Q}],type:v},{error:"DualStack is enabled but this partition does not support DualStack",type:C}],type:v},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:ne,headers:ne},type:Q}],type:v}],type:v},{error:"Invalid Configuration: Missing Region",type:C}]};t.ruleSet=ue},9821:(e,t,n)=>{var o=n(2590);var i=n(5242);var c=n(1568);var d=n(2959);var p=n(9316);var y=n(402);var C=n(6890);var Q=n(7212);var v=n(99);var D=n(9618);var k=n(1411);var $=n(3182);var V=n(8199);var ee=n(6463);var te=n(2356);var re=n(3917);var ne=n(977);var se=n(3303);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});const oe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(ee.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),te.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,ee.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),te.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRPUBLICClient extends k.Client{config;constructor(...[e]){const t=V.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const ee=D.resolveRetryConfig(k);const te=p.resolveRegionConfig(ee);const re=o.resolveHostHeaderConfig(te);const ne=v.resolveEndpointConfig(re);const se=$.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(C.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(Q.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(c.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:$.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc(re.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc(re.BatchDeleteImage$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc(re.CompleteLayerUpload$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc(re.CreateRepository$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc(re.DeleteRepository$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc(re.DeleteRepositoryPolicy$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc(re.DescribeImages$).build()){}class DescribeImageTagsCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc(re.DescribeImageTags$).build()){}class DescribeRegistriesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc(re.DescribeRegistries$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc(re.DescribeRepositories$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc(re.GetAuthorizationToken$).build()){}class GetRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc(re.GetRegistryCatalogData$).build()){}class GetRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc(re.GetRepositoryCatalogData$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc(re.GetRepositoryPolicy$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc(re.InitiateLayerUpload$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc(re.ListTagsForResource$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc(re.PutImage$).build()){}class PutRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc(re.PutRegistryCatalogData$).build()){}class PutRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc(re.PutRepositoryCatalogData$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc(re.SetRepositoryPolicy$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc(re.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc(re.UntagResource$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(oe).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc(re.UploadLayerPart$).build()){}const ie=y.createPaginator(ECRPUBLICClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const ae=y.createPaginator(ECRPUBLICClient,DescribeImageTagsCommand,"nextToken","nextToken","maxResults");const ce=y.createPaginator(ECRPUBLICClient,DescribeRegistriesCommand,"nextToken","nextToken","maxResults");const le=y.createPaginator(ECRPUBLICClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const ue={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreateRepositoryCommand:CreateRepositoryCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageTagsCommand:DescribeImageTagsCommand,DescribeRegistriesCommand:DescribeRegistriesCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutImageCommand:PutImageCommand,PutRegistryCatalogDataCommand:PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UploadLayerPartCommand:UploadLayerPartCommand};const de={paginateDescribeImages:ie,paginateDescribeImageTags:ae,paginateDescribeRegistries:ce,paginateDescribeRepositories:le};class ECRPUBLIC extends ECRPUBLICClient{}k.createAggregatedClient(ue,ECRPUBLIC,{paginators:de});const pe={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const Ae={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const me={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};const ge={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};t.$Command=k.Command;t.__Client=k.Client;t.ECRPUBLICServiceException=se.ECRPUBLICServiceException;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DescribeImageTagsCommand=DescribeImageTagsCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribeRegistriesCommand=DescribeRegistriesCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.ECRPUBLIC=ECRPUBLIC;t.ECRPUBLICClient=ECRPUBLICClient;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand;t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.ImageFailureCode=me;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=Ae;t.LayerFailureCode=pe;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutImageCommand=PutImageCommand;t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand;t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand;t.RegistryAliasStatus=ge;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.TagResourceCommand=TagResourceCommand;t.UntagResourceCommand=UntagResourceCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.paginateDescribeImageTags=ae;t.paginateDescribeImages=ie;t.paginateDescribeRegistries=ce;t.paginateDescribeRepositories=le;Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:re["__proto__"]});Object.keys(re).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=re[e]}));Object.prototype.hasOwnProperty.call(ne,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ne["__proto__"]});Object.keys(ne).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ne[e]}))},3303:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRPUBLICServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},977:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RepositoryCatalogDataNotFoundException=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.UnsupportedCommandException=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=void 0;const o=n(3303);class InvalidParameterException extends o.ECRPUBLICServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends o.ECRPUBLICServiceException{name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRPUBLICServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class UnsupportedCommandException extends o.ECRPUBLICServiceException{name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;class EmptyUploadException extends o.ECRPUBLICServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRPUBLICServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends o.ECRPUBLICServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRPUBLICServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRPUBLICServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends o.ECRPUBLICServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends o.ECRPUBLICServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends o.ECRPUBLICServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRPUBLICServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends o.ECRPUBLICServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends o.ECRPUBLICServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class RepositoryCatalogDataNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}t.RepositoryCatalogDataNotFoundException=RepositoryCatalogDataNotFoundException;class ImageAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRPUBLICServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends o.ECRPUBLICServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends o.ECRPUBLICServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends o.ECRPUBLICServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException},8199:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(7643));const c=n(8704);const d=n(5861);const p=n(1656);const y=n(9316);const C=n(2711);const Q=n(9618);const v=n(5704);const D=n(1279);const k=n(1411);const $=n(3638);const V=n(673);const ee=n(5518);const te=n(2180);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,V.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,c.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(c.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??$.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??d.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(Q.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,v.loadConfig)({...Q.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(p.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},2180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const c=n(1411);const d=n(4494);const p=n(8385);const y=n(1577);const C=n(3182);const Q=n(6072);const v=n(3917);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??p.fromBase64,base64Encoder:e?.base64Encoder??p.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Q.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new c.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:v.errorTypeRegistries,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},3917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.DescribeRepositoriesResponse$=t.DescribeRepositoriesRequest$=t.DescribeRegistriesResponse$=t.DescribeRegistriesRequest$=t.DescribeImageTagsResponse$=t.DescribeImageTagsRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AuthorizationData$=t.errorTypeRegistries=t.UploadNotFoundException$=t.UnsupportedCommandException$=t.TooManyTagsException$=t.ServerException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryCatalogDataNotFoundException$=t.RepositoryAlreadyExistsException$=t.RegistryNotFoundException$=t.ReferencedImagesNotFoundException$=t.LimitExceededException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerAlreadyExistsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageAlreadyExistsException$=t.EmptyUploadException$=t.ECRPUBLICServiceException$=void 0;t.GetRegistryCatalogData$=t.GetAuthorizationToken$=t.DescribeRepositories$=t.DescribeRegistries$=t.DescribeImageTags$=t.DescribeImages$=t.DeleteRepositoryPolicy$=t.DeleteRepository$=t.CreateRepository$=t.CompleteLayerUpload$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.RepositoryCatalogDataInput$=t.RepositoryCatalogData$=t.Repository$=t.RegistryCatalogData$=t.RegistryAlias$=t.Registry$=t.ReferencedImageDetail$=t.PutRepositoryCatalogDataResponse$=t.PutRepositoryCatalogDataRequest$=t.PutRegistryCatalogDataResponse$=t.PutRegistryCatalogDataRequest$=t.PutImageResponse$=t.PutImageRequest$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagDetail$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRepositoryCatalogDataResponse$=t.GetRepositoryCatalogDataRequest$=t.GetRegistryCatalogDataResponse$=void 0;t.UploadLayerPart$=t.UntagResource$=t.TagResource$=t.SetRepositoryPolicy$=t.PutRepositoryCatalogData$=t.PutRegistryCatalogData$=t.PutImage$=t.ListTagsForResource$=t.InitiateLayerUpload$=t.GetRepositoryPolicy$=t.GetRepositoryCatalogData$=void 0;const o="AuthorizationData";const i="BatchCheckLayerAvailability";const c="BatchCheckLayerAvailabilityRequest";const d="BatchCheckLayerAvailabilityResponse";const p="BatchDeleteImage";const y="BatchDeleteImageRequest";const C="BatchDeleteImageResponse";const Q="CompleteLayerUpload";const v="CompleteLayerUploadRequest";const D="CompleteLayerUploadResponse";const k="CreateRepository";const $="CreateRepositoryRequest";const V="CreateRepositoryResponse";const ee="DescribeImages";const te="DescribeImagesRequest";const re="DescribeImagesResponse";const ne="DescribeImageTags";const se="DescribeImageTagsRequest";const oe="DescribeImageTagsResponse";const ie="DeleteRepository";const ae="DeleteRepositoryPolicy";const ce="DeleteRepositoryPolicyRequest";const le="DeleteRepositoryPolicyResponse";const ue="DeleteRepositoryRequest";const de="DeleteRepositoryResponse";const pe="DescribeRegistriesRequest";const Ae="DescribeRegistriesResponse";const me="DescribeRepositoriesRequest";const ge="DescribeRepositoriesResponse";const fe="DescribeRegistries";const he="DescribeRepositories";const ye="EmptyUploadException";const Ee="GetAuthorizationToken";const Ce="GetAuthorizationTokenRequest";const Ie="GetAuthorizationTokenResponse";const be="GetRegistryCatalogData";const Se="GetRegistryCatalogDataRequest";const Be="GetRegistryCatalogDataResponse";const we="GetRepositoryCatalogDataRequest";const Re="GetRepositoryCatalogDataResponse";const Ne="GetRepositoryCatalogData";const Qe="GetRepositoryPolicy";const xe="GetRepositoryPolicyRequest";const Te="GetRepositoryPolicyResponse";const ve="Image";const Pe="ImageAlreadyExistsException";const De="ImageDetail";const ke="ImageDigestDoesNotMatchException";const _e="ImageDetailList";const Le="ImageFailure";const Oe="ImageFailureList";const Fe="ImageIdentifier";const Ue="ImageIdentifierList";const Me="InvalidLayerException";const He="InvalidLayerPartException";const $e="InitiateLayerUpload";const Ge="InitiateLayerUploadRequest";const qe="InitiateLayerUploadResponse";const ze="ImageNotFoundException";const Ve="InvalidParameterException";const je="ImageTagAlreadyExistsException";const Ye="ImageTagDetail";const Je="ImageTagDetailList";const We="InvalidTagParameterException";const Ke="Key";const Xe="Layer";const Ze="LayerAlreadyExistsException";const At="LimitExceededException";const mt="LayerFailure";const ht="LayerFailureList";const yt="LayerList";const Et="LayersNotFoundException";const Ct="LayerPartTooSmallException";const It="ListTagsForResource";const bt="ListTagsForResourceRequest";const St="ListTagsForResourceResponse";const Bt="PutImage";const wt="PutImageRequest";const Rt="PutImageResponse";const Nt="PutRegistryCatalogData";const Qt="PutRegistryCatalogDataRequest";const xt="PutRegistryCatalogDataResponse";const Tt="PutRepositoryCatalogDataRequest";const vt="PutRepositoryCatalogDataResponse";const Pt="PutRepositoryCatalogData";const Dt="Registry";const kt="RegistryAlias";const _t="RepositoryAlreadyExistsException";const Lt="RegistryAliasList";const Ot="RegistryCatalogData";const Ft="RepositoryCatalogDataInput";const Ut="RepositoryCatalogDataNotFoundException";const Mt="RepositoryCatalogData";const Ht="ReferencedImageDetail";const $t="ReferencedImagesNotFoundException";const Gt="RegistryList";const qt="RepositoryList";const zt="RepositoryNotEmptyException";const Vt="RegistryNotFoundException";const jt="RepositoryNotFoundException";const Yt="RepositoryPolicyNotFoundException";const Jt="Repository";const Wt="ServerException";const Kt="SetRepositoryPolicy";const Xt="SetRepositoryPolicyRequest";const Zt="SetRepositoryPolicyResponse";const er="Tag";const tr="TagList";const rr="TooManyTagsException";const nr="TagResource";const sr="TagResourceRequest";const or="TagResourceResponse";const ir="UnsupportedCommandException";const ar="UploadLayerPart";const cr="UploadLayerPartRequest";const lr="UploadLayerPartResponse";const ur="UploadNotFoundException";const dr="UntagResource";const pr="UntagResourceRequest";const Ar="UntagResourceResponse";const mr="Value";const gr="aliases";const fr="authorizationData";const hr="artifactMediaType";const yr="authorizationToken";const Er="aboutText";const Cr="architectures";const Ir="client";const br="createdAt";const Sr="catalogData";const Br="description";const wr="displayName";const Rr="defaultRegistryAlias";const Nr="error";const Qr="expiresAt";const xr="failures";const Tr="failureCode";const vr="failureReason";const Pr="force";const Dr="image";const kr="imageDetails";const _r="imageDigest";const Lr="imageDetail";const Or="imageIds";const Fr="imageId";const Ur="imageManifest";const Mr="imageManifestMediaType";const Hr="imagePushedAt";const $r="imageSizeInBytes";const Gr="imageTags";const qr="imageTagDetails";const zr="imageTag";const Vr="layers";const jr="layerAvailability";const Yr="lastByteReceived";const Jr="layerDigests";const Wr="layerDigest";const Kr="logoImageBlob";const Xr="layerPartBlob";const Zr="layerSize";const en="logoUrl";const tn="lastValidByteReceived";const rn="message";const nn="marketplaceCertified";const sn="maxResults";const on="mediaType";const an="name";const cn="nextToken";const ln="operatingSystems";const un="partFirstByte";const dn="partLastByte";const pn="primaryRegistryAlias";const An="partSize";const mn="policyText";const gn="repository";const hn="resourceArn";const yn="registryArn";const En="repositoryArn";const Cn="registryCatalogData";const In="registryId";const bn="repositoryName";const Sn="repositoryNames";const Bn="registryUri";const wn="repositoryUri";const Rn="registries";const Nn="repositories";const Qn="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic";const xn="server";const Tn="status";const vn="tags";const Pn="tagKeys";const Dn="uploadId";const kn="usageText";const _n="verified";const Ln="com.amazonaws.ecrpublic";const On=n(6890);const Fn=n(3303);const Un=n(977);const Mn=On.TypeRegistry.for(Qn);t.ECRPUBLICServiceException$=[-3,Qn,"ECRPUBLICServiceException",0,[],[]];Mn.registerError(t.ECRPUBLICServiceException$,Fn.ECRPUBLICServiceException);const Hn=On.TypeRegistry.for(Ln);t.EmptyUploadException$=[-3,Ln,ye,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.EmptyUploadException$,Un.EmptyUploadException);t.ImageAlreadyExistsException$=[-3,Ln,Pe,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageAlreadyExistsException$,Un.ImageAlreadyExistsException);t.ImageDigestDoesNotMatchException$=[-3,Ln,ke,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageDigestDoesNotMatchException$,Un.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,Ln,ze,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageNotFoundException$,Un.ImageNotFoundException);t.ImageTagAlreadyExistsException$=[-3,Ln,je,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ImageTagAlreadyExistsException$,Un.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,Ln,Me,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidLayerException$,Un.InvalidLayerException);t.InvalidLayerPartException$=[-3,Ln,He,{[Nr]:Ir},[In,bn,Dn,tn,rn],[0,0,0,1,0]];Hn.registerError(t.InvalidLayerPartException$,Un.InvalidLayerPartException);t.InvalidParameterException$=[-3,Ln,Ve,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidParameterException$,Un.InvalidParameterException);t.InvalidTagParameterException$=[-3,Ln,We,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.InvalidTagParameterException$,Un.InvalidTagParameterException);t.LayerAlreadyExistsException$=[-3,Ln,Ze,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayerAlreadyExistsException$,Un.LayerAlreadyExistsException);t.LayerPartTooSmallException$=[-3,Ln,Ct,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayerPartTooSmallException$,Un.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,Ln,Et,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LayersNotFoundException$,Un.LayersNotFoundException);t.LimitExceededException$=[-3,Ln,At,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.LimitExceededException$,Un.LimitExceededException);t.ReferencedImagesNotFoundException$=[-3,Ln,$t,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.ReferencedImagesNotFoundException$,Un.ReferencedImagesNotFoundException);t.RegistryNotFoundException$=[-3,Ln,Vt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RegistryNotFoundException$,Un.RegistryNotFoundException);t.RepositoryAlreadyExistsException$=[-3,Ln,_t,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryAlreadyExistsException$,Un.RepositoryAlreadyExistsException);t.RepositoryCatalogDataNotFoundException$=[-3,Ln,Ut,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryCatalogDataNotFoundException$,Un.RepositoryCatalogDataNotFoundException);t.RepositoryNotEmptyException$=[-3,Ln,zt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryNotEmptyException$,Un.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,Ln,jt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryNotFoundException$,Un.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,Ln,Yt,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.RepositoryPolicyNotFoundException$,Un.RepositoryPolicyNotFoundException);t.ServerException$=[-3,Ln,Wt,{[Nr]:xn},[rn],[0]];Hn.registerError(t.ServerException$,Un.ServerException);t.TooManyTagsException$=[-3,Ln,rr,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.TooManyTagsException$,Un.TooManyTagsException);t.UnsupportedCommandException$=[-3,Ln,ir,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.UnsupportedCommandException$,Un.UnsupportedCommandException);t.UploadNotFoundException$=[-3,Ln,ur,{[Nr]:Ir},[rn],[0]];Hn.registerError(t.UploadNotFoundException$,Un.UploadNotFoundException);t.errorTypeRegistries=[Mn,Hn];t.AuthorizationData$=[3,Ln,o,0,[yr,Qr],[0,4]];t.BatchCheckLayerAvailabilityRequest$=[3,Ln,c,0,[bn,Jr,In],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,Ln,d,0,[Vr,xr],[()=>Kn,()=>Wn]];t.BatchDeleteImageRequest$=[3,Ln,y,0,[bn,Or,In],[0,()=>Vn,0],2];t.BatchDeleteImageResponse$=[3,Ln,C,0,[Or,xr],[()=>Vn,()=>zn]];t.CompleteLayerUploadRequest$=[3,Ln,v,0,[bn,Dn,Jr,In],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,Ln,D,0,[In,bn,Dn,Wr],[0,0,0,0]];t.CreateRepositoryRequest$=[3,Ln,$,0,[bn,Sr,vn],[0,()=>t.RepositoryCatalogDataInput$,()=>ss],1];t.CreateRepositoryResponse$=[3,Ln,V,0,[gn,Sr],[()=>t.Repository$,()=>t.RepositoryCatalogData$]];t.DeleteRepositoryPolicyRequest$=[3,Ln,ce,0,[bn,In],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,Ln,le,0,[In,bn,mn],[0,0,0]];t.DeleteRepositoryRequest$=[3,Ln,ue,0,[bn,In,Pr],[0,0,2],1];t.DeleteRepositoryResponse$=[3,Ln,de,0,[gn],[()=>t.Repository$]];t.DescribeImagesRequest$=[3,Ln,te,0,[bn,In,Or,cn,sn],[0,0,()=>Vn,0,1],1];t.DescribeImagesResponse$=[3,Ln,re,0,[kr,cn],[()=>qn,0]];t.DescribeImageTagsRequest$=[3,Ln,se,0,[bn,In,cn,sn],[0,0,0,1],1];t.DescribeImageTagsResponse$=[3,Ln,oe,0,[qr,cn],[()=>jn,0]];t.DescribeRegistriesRequest$=[3,Ln,pe,0,[cn,sn],[0,1]];t.DescribeRegistriesResponse$=[3,Ln,Ae,0,[Rn,cn],[()=>es,0],1];t.DescribeRepositoriesRequest$=[3,Ln,me,0,[In,Sn,cn,sn],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,Ln,ge,0,[Nn,cn],[()=>ts,0]];t.GetAuthorizationTokenRequest$=[3,Ln,Ce,0,[],[]];t.GetAuthorizationTokenResponse$=[3,Ln,Ie,0,[fr],[()=>t.AuthorizationData$]];t.GetRegistryCatalogDataRequest$=[3,Ln,Se,0,[],[]];t.GetRegistryCatalogDataResponse$=[3,Ln,Be,0,[Cn],[()=>t.RegistryCatalogData$],1];t.GetRepositoryCatalogDataRequest$=[3,Ln,we,0,[bn,In],[0,0],1];t.GetRepositoryCatalogDataResponse$=[3,Ln,Re,0,[Sr],[()=>t.RepositoryCatalogData$]];t.GetRepositoryPolicyRequest$=[3,Ln,xe,0,[bn,In],[0,0],1];t.GetRepositoryPolicyResponse$=[3,Ln,Te,0,[In,bn,mn],[0,0,0]];t.Image$=[3,Ln,ve,0,[In,bn,Fr,Ur,Mr],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,Ln,De,0,[In,bn,_r,Gr,$r,Hr,Mr,hr],[0,0,0,64|0,1,4,0,0]];t.ImageFailure$=[3,Ln,Le,0,[Fr,Tr,vr],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,Ln,Fe,0,[_r,zr],[0,0]];t.ImageTagDetail$=[3,Ln,Ye,0,[zr,br,Lr],[0,4,()=>t.ReferencedImageDetail$]];t.InitiateLayerUploadRequest$=[3,Ln,Ge,0,[bn,In],[0,0],1];t.InitiateLayerUploadResponse$=[3,Ln,qe,0,[Dn,An],[0,1]];t.Layer$=[3,Ln,Xe,0,[Wr,jr,Zr,on],[0,0,1,0]];t.LayerFailure$=[3,Ln,mt,0,[Wr,Tr,vr],[0,0,0]];t.ListTagsForResourceRequest$=[3,Ln,bt,0,[hn],[0],1];t.ListTagsForResourceResponse$=[3,Ln,St,0,[vn],[()=>ss]];t.PutImageRequest$=[3,Ln,wt,0,[bn,Ur,In,Mr,zr,_r],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,Ln,Rt,0,[Dr],[()=>t.Image$]];t.PutRegistryCatalogDataRequest$=[3,Ln,Qt,0,[wr],[0]];t.PutRegistryCatalogDataResponse$=[3,Ln,xt,0,[Cn],[()=>t.RegistryCatalogData$],1];t.PutRepositoryCatalogDataRequest$=[3,Ln,Tt,0,[bn,Sr,In],[0,()=>t.RepositoryCatalogDataInput$,0],2];t.PutRepositoryCatalogDataResponse$=[3,Ln,vt,0,[Sr],[()=>t.RepositoryCatalogData$]];t.ReferencedImageDetail$=[3,Ln,Ht,0,[_r,$r,Hr,Mr,hr],[0,1,4,0,0]];t.Registry$=[3,Ln,Dt,0,[In,yn,Bn,_n,gr],[0,0,0,2,()=>Zn],5];t.RegistryAlias$=[3,Ln,kt,0,[an,Tn,pn,Rr],[0,0,2,2],4];t.RegistryCatalogData$=[3,Ln,Ot,0,[wr],[0]];t.Repository$=[3,Ln,Jt,0,[En,In,bn,wn,br],[0,0,0,0,4]];t.RepositoryCatalogData$=[3,Ln,Mt,0,[Br,Cr,ln,en,Er,kn,nn],[0,64|0,64|0,0,0,0,2]];t.RepositoryCatalogDataInput$=[3,Ln,Ft,0,[Br,Cr,ln,Kr,Er,kn],[0,64|0,64|0,21,0,0]];t.SetRepositoryPolicyRequest$=[3,Ln,Xt,0,[bn,mn,In,Pr],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,Ln,Zt,0,[In,bn,mn],[0,0,0]];t.Tag$=[3,Ln,er,0,[Ke,mr],[0,0]];t.TagResourceRequest$=[3,Ln,sr,0,[hn,vn],[0,()=>ss],2];t.TagResourceResponse$=[3,Ln,or,0,[],[]];t.UntagResourceRequest$=[3,Ln,pr,0,[hn,Pn],[0,64|0],2];t.UntagResourceResponse$=[3,Ln,Ar,0,[],[]];t.UploadLayerPartRequest$=[3,Ln,cr,0,[bn,Dn,un,dn,Xr,In],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,Ln,lr,0,[In,bn,Dn,Yr],[0,0,0,1]];var $n=null&&64|0;var Gn=null&&64|0;var qn=[1,Ln,_e,0,()=>t.ImageDetail$];var zn=[1,Ln,Oe,0,()=>t.ImageFailure$];var Vn=[1,Ln,Ue,0,()=>t.ImageIdentifier$];var jn=[1,Ln,Je,0,()=>t.ImageTagDetail$];var Yn=null&&64|0;var Jn=null&&64|0;var Wn=[1,Ln,ht,0,()=>t.LayerFailure$];var Kn=[1,Ln,yt,0,()=>t.Layer$];var Xn=null&&64|0;var Zn=[1,Ln,Lt,0,()=>t.RegistryAlias$];var es=[1,Ln,Gt,0,()=>t.Registry$];var ts=[1,Ln,qt,0,()=>t.Repository$];var rs=null&&64|0;var ns=null&&64|0;var ss=[1,Ln,tr,0,()=>t.Tag$];t.BatchCheckLayerAvailability$=[9,Ln,i,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,Ln,p,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.CompleteLayerUpload$=[9,Ln,Q,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreateRepository$=[9,Ln,k,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.DeleteRepository$=[9,Ln,ie,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryPolicy$=[9,Ln,ae,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DescribeImages$=[9,Ln,ee,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageTags$=[9,Ln,ne,0,()=>t.DescribeImageTagsRequest$,()=>t.DescribeImageTagsResponse$];t.DescribeRegistries$=[9,Ln,fe,0,()=>t.DescribeRegistriesRequest$,()=>t.DescribeRegistriesResponse$];t.DescribeRepositories$=[9,Ln,he,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.GetAuthorizationToken$=[9,Ln,Ee,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetRegistryCatalogData$=[9,Ln,be,0,()=>t.GetRegistryCatalogDataRequest$,()=>t.GetRegistryCatalogDataResponse$];t.GetRepositoryCatalogData$=[9,Ln,Ne,0,()=>t.GetRepositoryCatalogDataRequest$,()=>t.GetRepositoryCatalogDataResponse$];t.GetRepositoryPolicy$=[9,Ln,Qe,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.InitiateLayerUpload$=[9,Ln,$e,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListTagsForResource$=[9,Ln,It,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutImage$=[9,Ln,Bt,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutRegistryCatalogData$=[9,Ln,Nt,0,()=>t.PutRegistryCatalogDataRequest$,()=>t.PutRegistryCatalogDataResponse$];t.PutRepositoryCatalogData$=[9,Ln,Pt,0,()=>t.PutRepositoryCatalogDataRequest$,()=>t.PutRepositoryCatalogDataResponse$];t.SetRepositoryPolicy$=[9,Ln,Kt,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.TagResource$=[9,Ln,nr,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,Ln,dr,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UploadLayerPart$=[9,Ln,ar,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$]},3218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRHttpAuthSchemeProvider=t.defaultECRHttpAuthSchemeParametersProvider=void 0;const o=n(8704);const i=n(6324);const defaultECRHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRHttpAuthSchemeParametersProvider=defaultECRHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRHttpAuthSchemeProvider=defaultECRHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3628:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const c=n(4193);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(c.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},4193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",c="ref",d="url",p="properties",y="headers";const C=true,Q="isSet",v="booleanEquals",D="error",k="endpoint",$="tree",V="PartitionResult",ee={[n]:true,default:false,type:"boolean"},te={[n]:false,type:"string"},re={[c]:"Endpoint"},ne={[o]:v,[i]:[{[c]:"UseFIPS"},true]},se={[o]:v,[i]:[{[c]:"UseDualStack"},true]},oe={},ie={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws"]},ae={[o]:v,[i]:[{[c]:"UseFIPS"},false]},ce={[o]:v,[i]:[{[c]:"UseDualStack"},false]},le={[d]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[p]:{},[y]:{}},ue={[d]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:{},[y]:{}},de={[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[p]:{},[y]:{}},pe={[d]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:{},[y]:{}},Ae={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-us-gov"]},me={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-cn"]},ge={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso"]},fe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-b"]},he={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-e"]},ye={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-iso-f"]},Ee={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[c]:V},"name"]},"aws-eusc"]},Ce={[o]:"getAttr",[i]:[{[c]:V},"supportsFIPS"]},Ie={[o]:v,[i]:[true,{[o]:"getAttr",[i]:[{[c]:V},"supportsDualStack"]}]},be=[{[c]:"Region"}];const Se={version:"1.0",parameters:{UseDualStack:ee,UseFIPS:ee,Endpoint:te,Region:te},rules:[{conditions:[{[o]:Q,[i]:[re]}],rules:[{conditions:[ne],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:D},{rules:[{conditions:[se],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:D},{endpoint:{[d]:re,[p]:oe,[y]:oe},type:k}],type:$}],type:$},{rules:[{conditions:[{[o]:Q,[i]:be}],rules:[{conditions:[{[o]:"aws.partition",[i]:be,assign:V}],rules:[{conditions:[ie,ae,ce],endpoint:le,type:k},{conditions:[ie,ae,se],endpoint:ue,type:k},{conditions:[ie,ne,ce],endpoint:de,type:k},{conditions:[ie,ne,se],endpoint:pe,type:k},{conditions:[Ae,ae,ce],endpoint:le,type:k},{conditions:[Ae,ae,se],endpoint:ue,type:k},{conditions:[Ae,ne,ce],endpoint:de,type:k},{conditions:[Ae,ne,se],endpoint:pe,type:k},{conditions:[me,ae,ce],endpoint:le,type:k},{conditions:[me,ae,se],endpoint:ue,type:k},{conditions:[me,ne,ce],endpoint:de,type:k},{conditions:[me,ne,se],endpoint:pe,type:k},{conditions:[ge,ae,ce],endpoint:le,type:k},{conditions:[ge,ae,se],endpoint:ue,type:k},{conditions:[ge,ne,ce],endpoint:de,type:k},{conditions:[ge,ne,se],endpoint:pe,type:k},{conditions:[fe,ae,ce],endpoint:le,type:k},{conditions:[fe,ae,se],endpoint:ue,type:k},{conditions:[fe,ne,ce],endpoint:de,type:k},{conditions:[fe,ne,se],endpoint:pe,type:k},{conditions:[he,ae,ce],endpoint:le,type:k},{conditions:[he,ae,se],endpoint:ue,type:k},{conditions:[he,ne,ce],endpoint:de,type:k},{conditions:[he,ne,se],endpoint:pe,type:k},{conditions:[ye,ae,ce],endpoint:le,type:k},{conditions:[ye,ae,se],endpoint:ue,type:k},{conditions:[ye,ne,ce],endpoint:de,type:k},{conditions:[ye,ne,se],endpoint:pe,type:k},{conditions:[Ee,ae,ce],endpoint:le,type:k},{conditions:[Ee,ae,se],endpoint:ue,type:k},{conditions:[Ee,ne,ce],endpoint:de,type:k},{conditions:[Ee,ne,se],endpoint:pe,type:k},{conditions:[ne,se],rules:[{conditions:[{[o]:v,[i]:[C,Ce]},Ie],rules:[{endpoint:{[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:oe,[y]:oe},type:k}],type:$},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:D}],type:$},{conditions:[ne,ce],rules:[{conditions:[{[o]:v,[i]:[Ce,C]}],rules:[{endpoint:de,type:k}],type:$},{error:"FIPS is enabled but this partition does not support FIPS",type:D}],type:$},{conditions:[ae,se],rules:[{conditions:[Ie],rules:[{endpoint:{[d]:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[p]:oe,[y]:oe},type:k}],type:$},{error:"DualStack is enabled but this partition does not support DualStack",type:D}],type:$},{endpoint:le,type:k}],type:$}],type:$},{error:"Invalid Configuration: Missing Region",type:D}],type:$}]};t.ruleSet=Se},8249:(e,t,n)=>{var o=n(2590);var i=n(5242);var c=n(1568);var d=n(2959);var p=n(9316);var y=n(402);var C=n(6890);var Q=n(7212);var v=n(99);var D=n(9618);var k=n(1411);var $=n(3218);var V=n(3107);var ee=n(6463);var te=n(2356);var re=n(5809);var ne=n(5290);var se=n(4901);var oe=n(5502);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});const ie={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(ee.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),te.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,ee.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),te.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRClient extends k.Client{config;constructor(...[e]){const t=V.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const ee=D.resolveRetryConfig(k);const te=p.resolveRegionConfig(ee);const re=o.resolveHostHeaderConfig(te);const ne=v.resolveEndpointConfig(re);const se=$.resolveHttpAuthSchemeConfig(ne);const oe=resolveRuntimeExtensions(se,e?.extensions||[]);this.config=oe;this.middlewareStack.use(C.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(Q.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(c.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:$.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(re.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(re.BatchDeleteImage$).build()){}class BatchGetImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(re.BatchGetImage$).build()){}class BatchGetRepositoryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(re.BatchGetRepositoryScanningConfiguration$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(re.CompleteLayerUpload$).build()){}class CreatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(re.CreatePullThroughCacheRule$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(re.CreateRepository$).build()){}class CreateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(re.CreateRepositoryCreationTemplate$).build()){}class DeleteLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(re.DeleteLifecyclePolicy$).build()){}class DeletePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(re.DeletePullThroughCacheRule$).build()){}class DeleteRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(re.DeleteRegistryPolicy$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(re.DeleteRepository$).build()){}class DeleteRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(re.DeleteRepositoryCreationTemplate$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(re.DeleteRepositoryPolicy$).build()){}class DeleteSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(re.DeleteSigningConfiguration$).build()){}class DeregisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(re.DeregisterPullTimeUpdateExclusion$).build()){}class DescribeImageReplicationStatusCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(re.DescribeImageReplicationStatus$).build()){}class DescribeImageScanFindingsCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc(re.DescribeImageScanFindings$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(re.DescribeImages$).build()){}class DescribeImageSigningStatusCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(re.DescribeImageSigningStatus$).build()){}class DescribePullThroughCacheRulesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(re.DescribePullThroughCacheRules$).build()){}class DescribeRegistryCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(re.DescribeRegistry$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(re.DescribeRepositories$).build()){}class DescribeRepositoryCreationTemplatesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(re.DescribeRepositoryCreationTemplates$).build()){}class GetAccountSettingCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(re.GetAccountSetting$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(re.GetAuthorizationToken$).build()){}class GetDownloadUrlForLayerCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(re.GetDownloadUrlForLayer$).build()){}class GetLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(re.GetLifecyclePolicy$).build()){}class GetLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(re.GetLifecyclePolicyPreview$).build()){}class GetRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(re.GetRegistryPolicy$).build()){}class GetRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(re.GetRegistryScanningConfiguration$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(re.GetRepositoryPolicy$).build()){}class GetSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(re.GetSigningConfiguration$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(re.InitiateLayerUpload$).build()){}class ListImageReferrersCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(re.ListImageReferrers$).build()){}class ListImagesCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(re.ListImages$).build()){}class ListPullTimeUpdateExclusionsCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(re.ListPullTimeUpdateExclusions$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(re.ListTagsForResource$).build()){}class PutAccountSettingCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(re.PutAccountSetting$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(re.PutImage$).build()){}class PutImageScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(re.PutImageScanningConfiguration$).build()){}class PutImageTagMutabilityCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(re.PutImageTagMutability$).build()){}class PutLifecyclePolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(re.PutLifecyclePolicy$).build()){}class PutRegistryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(re.PutRegistryPolicy$).build()){}class PutRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(re.PutRegistryScanningConfiguration$).build()){}class PutReplicationConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(re.PutReplicationConfiguration$).build()){}class PutSigningConfigurationCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(re.PutSigningConfiguration$).build()){}class RegisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(re.RegisterPullTimeUpdateExclusion$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(re.SetRepositoryPolicy$).build()){}class StartImageScanCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(re.StartImageScan$).build()){}class StartLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(re.StartLifecyclePolicyPreview$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(re.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(re.UntagResource$).build()){}class UpdateImageStorageClassCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(re.UpdateImageStorageClass$).build()){}class UpdatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(re.UpdatePullThroughCacheRule$).build()){}class UpdateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(re.UpdateRepositoryCreationTemplate$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(re.UploadLayerPart$).build()){}class ValidatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(ie).m((function(e,t,n,o){return[v.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(re.ValidatePullThroughCacheRule$).build()){}const ae=y.createPaginator(ECRClient,DescribeImageScanFindingsCommand,"nextToken","nextToken","maxResults");const ce=y.createPaginator(ECRClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const le=y.createPaginator(ECRClient,DescribePullThroughCacheRulesCommand,"nextToken","nextToken","maxResults");const ue=y.createPaginator(ECRClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const de=y.createPaginator(ECRClient,DescribeRepositoryCreationTemplatesCommand,"nextToken","nextToken","maxResults");const pe=y.createPaginator(ECRClient,GetLifecyclePolicyPreviewCommand,"nextToken","nextToken","maxResults");const Ae=y.createPaginator(ECRClient,ListImagesCommand,"nextToken","nextToken","maxResults");const checkState$1=async(e,t)=>{let n;try{let o=await e.send(new DescribeImageScanFindingsCommand(t));n=o;try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState$1)};const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState$1);return ne.checkExceptions(o)};const checkState=async(e,t)=>{let n;try{let o=await e.send(new GetLifecyclePolicyPreviewCommand(t));n=o;try{const returnComparator=()=>o.status;if(returnComparator()==="COMPLETE"){return{state:ne.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.status;if(returnComparator()==="FAILED"){return{state:ne.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:ne.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return ne.createWaiter({...n,...e},t,checkState)};const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await ne.createWaiter({...n,...e},t,checkState);return ne.checkExceptions(o)};const me={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,BatchGetImageCommand:BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:CreateRepositoryCommand,CreateRepositoryCreationTemplateCommand:CreateRepositoryCreationTemplateCommand,DeleteLifecyclePolicyCommand:DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:DeleteRegistryPolicyCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryCreationTemplateCommand:DeleteRepositoryCreationTemplateCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DeleteSigningConfigurationCommand:DeleteSigningConfigurationCommand,DeregisterPullTimeUpdateExclusionCommand:DeregisterPullTimeUpdateExclusionCommand,DescribeImageReplicationStatusCommand:DescribeImageReplicationStatusCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageScanFindingsCommand:DescribeImageScanFindingsCommand,DescribeImageSigningStatusCommand:DescribeImageSigningStatusCommand,DescribePullThroughCacheRulesCommand:DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:DescribeRegistryCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,DescribeRepositoryCreationTemplatesCommand:DescribeRepositoryCreationTemplatesCommand,GetAccountSettingCommand:GetAccountSettingCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,GetSigningConfigurationCommand:GetSigningConfigurationCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListImageReferrersCommand:ListImageReferrersCommand,ListImagesCommand:ListImagesCommand,ListPullTimeUpdateExclusionsCommand:ListPullTimeUpdateExclusionsCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutAccountSettingCommand:PutAccountSettingCommand,PutImageCommand:PutImageCommand,PutImageScanningConfigurationCommand:PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:PutLifecyclePolicyCommand,PutRegistryPolicyCommand:PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:PutReplicationConfigurationCommand,PutSigningConfigurationCommand:PutSigningConfigurationCommand,RegisterPullTimeUpdateExclusionCommand:RegisterPullTimeUpdateExclusionCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,StartImageScanCommand:StartImageScanCommand,StartLifecyclePolicyPreviewCommand:StartLifecyclePolicyPreviewCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateImageStorageClassCommand:UpdateImageStorageClassCommand,UpdatePullThroughCacheRuleCommand:UpdatePullThroughCacheRuleCommand,UpdateRepositoryCreationTemplateCommand:UpdateRepositoryCreationTemplateCommand,UploadLayerPartCommand:UploadLayerPartCommand,ValidatePullThroughCacheRuleCommand:ValidatePullThroughCacheRuleCommand};const ge={paginateDescribeImages:ce,paginateDescribeImageScanFindings:ae,paginateDescribePullThroughCacheRules:le,paginateDescribeRepositories:ue,paginateDescribeRepositoryCreationTemplates:de,paginateGetLifecyclePolicyPreview:pe,paginateListImages:Ae};const fe={waitUntilImageScanComplete:waitUntilImageScanComplete,waitUntilLifecyclePolicyPreviewComplete:waitUntilLifecyclePolicyPreviewComplete};class ECR extends ECRClient{}k.createAggregatedClient(me,ECR,{paginators:ge,waiters:fe});const he={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const ye={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const Ee={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};const Ce={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};const Ie={WILDCARD:"WILDCARD"};const be={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};const Se={AzureContainerRegistry:"azure-container-registry",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};const Be={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};const we={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"};const Re={WILDCARD:"WILDCARD"};const Ne={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};const Qe={WILDCARD_MATCH:"WILDCARD_MATCH"};const xe={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Te={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const ve={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};const Pe={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};const De={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};const ke={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const _e={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Le={PREFIX_MATCH:"PREFIX_MATCH"};const Oe={ARCHIVE:"ARCHIVE"};const Fe={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"};const Ue={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};const Me={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const He={BASIC:"BASIC",ENHANCED:"ENHANCED"};const $e={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const Ge={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const qe={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};t.$Command=k.Command;t.__Client=k.Client;t.ECRServiceException=oe.ECRServiceException;t.ArtifactStatus=Ge;t.ArtifactStatusFilter=$e;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.BatchGetImageCommand=BatchGetImageCommand;t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.CreateRepositoryCreationTemplateCommand=CreateRepositoryCreationTemplateCommand;t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand;t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand;t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryCreationTemplateCommand=DeleteRepositoryCreationTemplateCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DeleteSigningConfigurationCommand=DeleteSigningConfigurationCommand;t.DeregisterPullTimeUpdateExclusionCommand=DeregisterPullTimeUpdateExclusionCommand;t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand;t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand;t.DescribeImageSigningStatusCommand=DescribeImageSigningStatusCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand;t.DescribeRegistryCommand=DescribeRegistryCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.DescribeRepositoryCreationTemplatesCommand=DescribeRepositoryCreationTemplatesCommand;t.ECR=ECR;t.ECRClient=ECRClient;t.EncryptionType=Be;t.FindingSeverity=Pe;t.GetAccountSettingCommand=GetAccountSettingCommand;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand;t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand;t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand;t.GetRegistryPolicyCommand=GetRegistryPolicyCommand;t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.GetSigningConfigurationCommand=GetSigningConfigurationCommand;t.ImageActionType=Fe;t.ImageFailureCode=Ee;t.ImageStatus=ke;t.ImageStatusFilter=Te;t.ImageTagMutability=we;t.ImageTagMutabilityExclusionFilterType=Re;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=ye;t.LayerFailureCode=he;t.LifecyclePolicyPreviewStatus=Me;t.LifecyclePolicyStorageClass=Ue;t.LifecyclePolicyTargetStorageClass=Oe;t.ListImageReferrersCommand=ListImageReferrersCommand;t.ListImagesCommand=ListImagesCommand;t.ListPullTimeUpdateExclusionsCommand=ListPullTimeUpdateExclusionsCommand;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutAccountSettingCommand=PutAccountSettingCommand;t.PutImageCommand=PutImageCommand;t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand;t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand;t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand;t.PutRegistryPolicyCommand=PutRegistryPolicyCommand;t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand;t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand;t.PutSigningConfigurationCommand=PutSigningConfigurationCommand;t.RCTAppliedFor=Ne;t.RegisterPullTimeUpdateExclusionCommand=RegisterPullTimeUpdateExclusionCommand;t.ReplicationStatus=xe;t.RepositoryFilterType=Le;t.ScanFrequency=be;t.ScanStatus=De;t.ScanType=He;t.ScanningConfigurationFailureCode=Ce;t.ScanningRepositoryFilterType=Ie;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.SigningRepositoryFilterType=Qe;t.SigningStatus=_e;t.StartImageScanCommand=StartImageScanCommand;t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand;t.TagResourceCommand=TagResourceCommand;t.TagStatus=ve;t.TargetStorageClass=qe;t.UntagResourceCommand=UntagResourceCommand;t.UpdateImageStorageClassCommand=UpdateImageStorageClassCommand;t.UpdatePullThroughCacheRuleCommand=UpdatePullThroughCacheRuleCommand;t.UpdateRepositoryCreationTemplateCommand=UpdateRepositoryCreationTemplateCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.UpstreamRegistry=Se;t.ValidatePullThroughCacheRuleCommand=ValidatePullThroughCacheRuleCommand;t.paginateDescribeImageScanFindings=ae;t.paginateDescribeImages=ce;t.paginateDescribePullThroughCacheRules=le;t.paginateDescribeRepositories=ue;t.paginateDescribeRepositoryCreationTemplates=de;t.paginateGetLifecyclePolicyPreview=pe;t.paginateListImages=Ae;t.waitForImageScanComplete=waitForImageScanComplete;t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;t.waitUntilImageScanComplete=waitUntilImageScanComplete;t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete;Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:re["__proto__"]});Object.keys(re).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=re[e]}));Object.prototype.hasOwnProperty.call(se,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:se["__proto__"]});Object.keys(se).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=se[e]}))},5502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},4901:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.InvalidLayerPartException=t.ImageStorageClassUpdateNotSupportedException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ImageArchivedException=t.ExclusionAlreadyExistsException=t.BlockedByOrganizationPolicyException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.LifecyclePolicyPreviewNotFoundException=t.UnableToGetUpstreamLayerException=t.LayersNotFoundException=t.LayerInaccessibleException=t.ScanNotFoundException=t.ImageNotFoundException=t.ExclusionNotFoundException=t.SigningConfigurationNotFoundException=t.RepositoryPolicyNotFoundException=t.TemplateNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TemplateAlreadyExistsException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.UnsupportedUpstreamRegistryException=t.UnableToDecryptSecretValueException=t.UnableToAccessSecretException=t.SecretNotFoundException=t.PullThroughCacheRuleAlreadyExistsException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.UnableToGetUpstreamImageException=t.LimitExceededException=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=void 0;const o=n(5502);class InvalidParameterException extends o.ECRServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends o.ECRServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class LimitExceededException extends o.ECRServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class UnableToGetUpstreamImageException extends o.ECRServiceException{name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamImageException.prototype)}}t.UnableToGetUpstreamImageException=UnableToGetUpstreamImageException;class ValidationException extends o.ECRServiceException{name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends o.ECRServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends o.ECRServiceException{name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e});Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends o.ECRServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class PullThroughCacheRuleAlreadyExistsException extends o.ECRServiceException{name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class SecretNotFoundException extends o.ECRServiceException{name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SecretNotFoundException.prototype)}}t.SecretNotFoundException=SecretNotFoundException;class UnableToAccessSecretException extends o.ECRServiceException{name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToAccessSecretException.prototype)}}t.UnableToAccessSecretException=UnableToAccessSecretException;class UnableToDecryptSecretValueException extends o.ECRServiceException{name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToDecryptSecretValueException.prototype)}}t.UnableToDecryptSecretValueException=UnableToDecryptSecretValueException;class UnsupportedUpstreamRegistryException extends o.ECRServiceException{name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;class InvalidTagParameterException extends o.ECRServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends o.ECRServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class TemplateAlreadyExistsException extends o.ECRServiceException{name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateAlreadyExistsException.prototype)}}t.TemplateAlreadyExistsException=TemplateAlreadyExistsException;class LifecyclePolicyNotFoundException extends o.ECRServiceException{name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends o.ECRServiceException{name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends o.ECRServiceException{name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends o.ECRServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class TemplateNotFoundException extends o.ECRServiceException{name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateNotFoundException.prototype)}}t.TemplateNotFoundException=TemplateNotFoundException;class RepositoryPolicyNotFoundException extends o.ECRServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class SigningConfigurationNotFoundException extends o.ECRServiceException{name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SigningConfigurationNotFoundException.prototype)}}t.SigningConfigurationNotFoundException=SigningConfigurationNotFoundException;class ExclusionNotFoundException extends o.ECRServiceException{name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionNotFoundException.prototype)}}t.ExclusionNotFoundException=ExclusionNotFoundException;class ImageNotFoundException extends o.ECRServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class ScanNotFoundException extends o.ECRServiceException{name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;class LayerInaccessibleException extends o.ECRServiceException{name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends o.ECRServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class UnableToGetUpstreamLayerException extends o.ECRServiceException{name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamLayerException.prototype)}}t.UnableToGetUpstreamLayerException=UnableToGetUpstreamLayerException;class LifecyclePolicyPreviewNotFoundException extends o.ECRServiceException{name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;class ImageAlreadyExistsException extends o.ECRServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends o.ECRServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class BlockedByOrganizationPolicyException extends o.ECRServiceException{name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e});Object.setPrototypeOf(this,BlockedByOrganizationPolicyException.prototype)}}t.BlockedByOrganizationPolicyException=BlockedByOrganizationPolicyException;class ExclusionAlreadyExistsException extends o.ECRServiceException{name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionAlreadyExistsException.prototype)}}t.ExclusionAlreadyExistsException=ExclusionAlreadyExistsException;class ImageArchivedException extends o.ECRServiceException{name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageArchivedException.prototype)}}t.ImageArchivedException=ImageArchivedException;class UnsupportedImageTypeException extends o.ECRServiceException{name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends o.ECRServiceException{name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class ImageStorageClassUpdateNotSupportedException extends o.ECRServiceException{name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageStorageClassUpdateNotSupportedException.prototype)}}t.ImageStorageClassUpdateNotSupportedException=ImageStorageClassUpdateNotSupportedException;class InvalidLayerPartException extends o.ECRServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException},3107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(121));const c=n(8704);const d=n(5861);const p=n(1656);const y=n(9316);const C=n(2711);const Q=n(9618);const v=n(5704);const D=n(1279);const k=n(1411);const $=n(3638);const V=n(673);const ee=n(5518);const te=n(9344);const getRuntimeConfig=e=>{(0,k.emitWarningIfUnsupportedVersion)(process.version);const t=(0,V.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(k.loadConfigsForDefaultMode);const n=(0,te.getRuntimeConfig)(e);(0,c.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(c.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??$.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??d.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(Q.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(y.NODE_REGION_CONFIG_OPTIONS,{...y.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:D.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,v.loadConfig)({...Q.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||ee.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??D.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(p.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(8704);const i=n(7288);const c=n(1411);const d=n(4494);const p=n(8385);const y=n(1577);const C=n(3218);const Q=n(3628);const v=n(5809);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??p.fromBase64,base64Encoder:e?.base64Encoder??p.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??Q.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??C.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new c.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:v.errorTypeRegistries,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??y.fromUtf8,utf8Encoder:e?.utf8Encoder??y.toUtf8});t.getRuntimeConfig=getRuntimeConfig},5809:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.AuthorizationData$=t.Attribute$=t.errorTypeRegistries=t.ValidationException$=t.UploadNotFoundException$=t.UnsupportedUpstreamRegistryException$=t.UnsupportedImageTypeException$=t.UnableToGetUpstreamLayerException$=t.UnableToGetUpstreamImageException$=t.UnableToDecryptSecretValueException$=t.UnableToAccessSecretException$=t.TooManyTagsException$=t.TemplateNotFoundException$=t.TemplateAlreadyExistsException$=t.SigningConfigurationNotFoundException$=t.ServerException$=t.SecretNotFoundException$=t.ScanNotFoundException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryAlreadyExistsException$=t.RegistryPolicyNotFoundException$=t.ReferencedImagesNotFoundException$=t.PullThroughCacheRuleNotFoundException$=t.PullThroughCacheRuleAlreadyExistsException$=t.LimitExceededException$=t.LifecyclePolicyPreviewNotFoundException$=t.LifecyclePolicyPreviewInProgressException$=t.LifecyclePolicyNotFoundException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerInaccessibleException$=t.LayerAlreadyExistsException$=t.KmsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageStorageClassUpdateNotSupportedException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageArchivedException$=t.ImageAlreadyExistsException$=t.ExclusionNotFoundException$=t.ExclusionAlreadyExistsException$=t.EmptyUploadException$=t.BlockedByOrganizationPolicyException$=t.ECRServiceException$=void 0;t.DescribeRepositoriesRequest$=t.DescribeRegistryResponse$=t.DescribeRegistryRequest$=t.DescribePullThroughCacheRulesResponse$=t.DescribePullThroughCacheRulesRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DescribeImageSigningStatusResponse$=t.DescribeImageSigningStatusRequest$=t.DescribeImagesFilter$=t.DescribeImageScanFindingsResponse$=t.DescribeImageScanFindingsRequest$=t.DescribeImageReplicationStatusResponse$=t.DescribeImageReplicationStatusRequest$=t.DeregisterPullTimeUpdateExclusionResponse$=t.DeregisterPullTimeUpdateExclusionRequest$=t.DeleteSigningConfigurationResponse$=t.DeleteSigningConfigurationRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.DeleteRepositoryCreationTemplateResponse$=t.DeleteRepositoryCreationTemplateRequest$=t.DeleteRegistryPolicyResponse$=t.DeleteRegistryPolicyRequest$=t.DeletePullThroughCacheRuleResponse$=t.DeletePullThroughCacheRuleRequest$=t.DeleteLifecyclePolicyResponse$=t.DeleteLifecyclePolicyRequest$=t.CvssScoreDetails$=t.CvssScoreAdjustment$=t.CvssScore$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CreateRepositoryCreationTemplateResponse$=t.CreateRepositoryCreationTemplateRequest$=t.CreatePullThroughCacheRuleResponse$=t.CreatePullThroughCacheRuleRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchGetRepositoryScanningConfigurationResponse$=t.BatchGetRepositoryScanningConfigurationRequest$=t.BatchGetImageResponse$=t.BatchGetImageRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AwsEcrContainerImageDetails$=void 0;t.ListImagesRequest$=t.ListImagesFilter$=t.ListImageReferrersResponse$=t.ListImageReferrersRequest$=t.ListImageReferrersFilter$=t.LifecyclePolicyRuleAction$=t.LifecyclePolicyPreviewSummary$=t.LifecyclePolicyPreviewResult$=t.LifecyclePolicyPreviewFilter$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagMutabilityExclusionFilter$=t.ImageSigningStatus$=t.ImageScanStatus$=t.ImageScanningConfiguration$=t.ImageScanFindingsSummary$=t.ImageScanFindings$=t.ImageScanFinding$=t.ImageReplicationStatus$=t.ImageReferrer$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetSigningConfigurationResponse$=t.GetSigningConfigurationRequest$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRegistryScanningConfigurationResponse$=t.GetRegistryScanningConfigurationRequest$=t.GetRegistryPolicyResponse$=t.GetRegistryPolicyRequest$=t.GetLifecyclePolicyResponse$=t.GetLifecyclePolicyRequest$=t.GetLifecyclePolicyPreviewResponse$=t.GetLifecyclePolicyPreviewRequest$=t.GetDownloadUrlForLayerResponse$=t.GetDownloadUrlForLayerRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.GetAccountSettingResponse$=t.GetAccountSettingRequest$=t.EnhancedImageScanFinding$=t.EncryptionConfigurationForRepositoryCreationTemplate$=t.EncryptionConfiguration$=t.DescribeRepositoryCreationTemplatesResponse$=t.DescribeRepositoryCreationTemplatesRequest$=t.DescribeRepositoriesResponse$=void 0;t.StartImageScanResponse$=t.StartImageScanRequest$=t.SigningRule$=t.SigningRepositoryFilter$=t.SigningConfiguration$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.ScoreDetails$=t.ScanningRepositoryFilter$=t.ResourceDetails$=t.Resource$=t.RepositoryScanningConfigurationFailure$=t.RepositoryScanningConfiguration$=t.RepositoryFilter$=t.RepositoryCreationTemplate$=t.Repository$=t.ReplicationRule$=t.ReplicationDestination$=t.ReplicationConfiguration$=t.Remediation$=t.RegistryScanningRule$=t.RegistryScanningConfiguration$=t.RegisterPullTimeUpdateExclusionResponse$=t.RegisterPullTimeUpdateExclusionRequest$=t.Recommendation$=t.PutSigningConfigurationResponse$=t.PutSigningConfigurationRequest$=t.PutReplicationConfigurationResponse$=t.PutReplicationConfigurationRequest$=t.PutRegistryScanningConfigurationResponse$=t.PutRegistryScanningConfigurationRequest$=t.PutRegistryPolicyResponse$=t.PutRegistryPolicyRequest$=t.PutLifecyclePolicyResponse$=t.PutLifecyclePolicyRequest$=t.PutImageTagMutabilityResponse$=t.PutImageTagMutabilityRequest$=t.PutImageScanningConfigurationResponse$=t.PutImageScanningConfigurationRequest$=t.PutImageResponse$=t.PutImageRequest$=t.PutAccountSettingResponse$=t.PutAccountSettingRequest$=t.PullThroughCacheRule$=t.PackageVulnerabilityDetails$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.ListPullTimeUpdateExclusionsResponse$=t.ListPullTimeUpdateExclusionsRequest$=t.ListImagesResponse$=void 0;t.GetRegistryPolicy$=t.GetLifecyclePolicyPreview$=t.GetLifecyclePolicy$=t.GetDownloadUrlForLayer$=t.GetAuthorizationToken$=t.GetAccountSetting$=t.DescribeRepositoryCreationTemplates$=t.DescribeRepositories$=t.DescribeRegistry$=t.DescribePullThroughCacheRules$=t.DescribeImageSigningStatus$=t.DescribeImageScanFindings$=t.DescribeImages$=t.DescribeImageReplicationStatus$=t.DeregisterPullTimeUpdateExclusion$=t.DeleteSigningConfiguration$=t.DeleteRepositoryPolicy$=t.DeleteRepositoryCreationTemplate$=t.DeleteRepository$=t.DeleteRegistryPolicy$=t.DeletePullThroughCacheRule$=t.DeleteLifecyclePolicy$=t.CreateRepositoryCreationTemplate$=t.CreateRepository$=t.CreatePullThroughCacheRule$=t.CompleteLayerUpload$=t.BatchGetRepositoryScanningConfiguration$=t.BatchGetImage$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.VulnerablePackage$=t.ValidatePullThroughCacheRuleResponse$=t.ValidatePullThroughCacheRuleRequest$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UpdateRepositoryCreationTemplateResponse$=t.UpdateRepositoryCreationTemplateRequest$=t.UpdatePullThroughCacheRuleResponse$=t.UpdatePullThroughCacheRuleRequest$=t.UpdateImageStorageClassResponse$=t.UpdateImageStorageClassRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TransitioningImageTotalCount$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SubjectIdentifier$=t.StartLifecyclePolicyPreviewResponse$=t.StartLifecyclePolicyPreviewRequest$=void 0;t.ValidatePullThroughCacheRule$=t.UploadLayerPart$=t.UpdateRepositoryCreationTemplate$=t.UpdatePullThroughCacheRule$=t.UpdateImageStorageClass$=t.UntagResource$=t.TagResource$=t.StartLifecyclePolicyPreview$=t.StartImageScan$=t.SetRepositoryPolicy$=t.RegisterPullTimeUpdateExclusion$=t.PutSigningConfiguration$=t.PutReplicationConfiguration$=t.PutRegistryScanningConfiguration$=t.PutRegistryPolicy$=t.PutLifecyclePolicy$=t.PutImageTagMutability$=t.PutImageScanningConfiguration$=t.PutImage$=t.PutAccountSetting$=t.ListTagsForResource$=t.ListPullTimeUpdateExclusions$=t.ListImages$=t.ListImageReferrers$=t.InitiateLayerUpload$=t.GetSigningConfiguration$=t.GetRepositoryPolicy$=t.GetRegistryScanningConfiguration$=void 0;const o="Attribute";const i="AuthorizationData";const c="AuthorizationDataList";const d="AwsEcrContainerImageDetails";const p="AttributeList";const y="BlockedByOrganizationPolicyException";const C="BatchCheckLayerAvailability";const Q="BatchCheckLayerAvailabilityRequest";const v="BatchCheckLayerAvailabilityResponse";const D="BatchDeleteImage";const k="BatchDeleteImageRequest";const $="BatchDeleteImageResponse";const V="BatchGetImage";const ee="BatchGetImageRequest";const te="BatchGetImageResponse";const re="BatchGetRepositoryScanningConfiguration";const ne="BatchGetRepositoryScanningConfigurationRequest";const se="BatchGetRepositoryScanningConfigurationResponse";const oe="CompleteLayerUpload";const ie="CompleteLayerUploadRequest";const ae="CompleteLayerUploadResponse";const ce="CreatePullThroughCacheRule";const le="CreatePullThroughCacheRuleRequest";const ue="CreatePullThroughCacheRuleResponse";const de="CreateRepository";const pe="CreateRepositoryCreationTemplate";const Ae="CreateRepositoryCreationTemplateRequest";const me="CreateRepositoryCreationTemplateResponse";const ge="CreateRepositoryRequest";const fe="CreateRepositoryResponse";const he="CvssScore";const ye="CvssScoreAdjustment";const Ee="CvssScoreAdjustmentList";const Ce="CvssScoreDetails";const Ie="CvssScoreList";const be="DescribeImages";const Se="DescribeImagesFilter";const Be="DescribeImagesRequest";const we="DescribeImageReplicationStatus";const Re="DescribeImageReplicationStatusRequest";const Ne="DescribeImageReplicationStatusResponse";const Qe="DescribeImagesResponse";const xe="DescribeImageScanFindings";const Te="DescribeImageScanFindingsRequest";const ve="DescribeImageScanFindingsResponse";const Pe="DescribeImageSigningStatus";const De="DescribeImageSigningStatusRequest";const ke="DescribeImageSigningStatusResponse";const _e="DeleteLifecyclePolicy";const Le="DeleteLifecyclePolicyRequest";const Oe="DeleteLifecyclePolicyResponse";const Fe="DeletePullThroughCacheRule";const Ue="DeletePullThroughCacheRuleRequest";const Me="DeletePullThroughCacheRuleResponse";const He="DescribePullThroughCacheRulesRequest";const $e="DescribePullThroughCacheRulesResponse";const Ge="DescribePullThroughCacheRules";const qe="DeregisterPullTimeUpdateExclusion";const ze="DeregisterPullTimeUpdateExclusionRequest";const Ve="DeregisterPullTimeUpdateExclusionResponse";const je="DeleteRepository";const Ye="DeleteRepositoryCreationTemplate";const Je="DeleteRepositoryCreationTemplateRequest";const We="DeleteRepositoryCreationTemplateResponse";const Ke="DescribeRepositoryCreationTemplatesRequest";const Xe="DescribeRepositoryCreationTemplatesResponse";const Ze="DescribeRepositoryCreationTemplates";const At="DeleteRegistryPolicy";const mt="DeleteRegistryPolicyRequest";const ht="DeleteRegistryPolicyResponse";const yt="DeleteRepositoryPolicyRequest";const Et="DeleteRepositoryPolicyResponse";const Ct="DeleteRepositoryPolicy";const It="DeleteRepositoryRequest";const bt="DeleteRepositoryResponse";const St="DescribeRegistryRequest";const Bt="DescribeRegistryResponse";const wt="DescribeRepositoriesRequest";const Rt="DescribeRepositoriesResponse";const Nt="DescribeRegistry";const Qt="DescribeRepositories";const xt="DeleteSigningConfiguration";const Tt="DeleteSigningConfigurationRequest";const vt="DeleteSigningConfigurationResponse";const Pt="ExclusionAlreadyExistsException";const Dt="EncryptionConfiguration";const kt="EncryptionConfigurationForRepositoryCreationTemplate";const _t="EnhancedImageScanFinding";const Lt="EnhancedImageScanFindingList";const Ot="ExclusionNotFoundException";const Ft="EmptyUploadException";const Ut="GetAccountSetting";const Mt="GetAccountSettingRequest";const Ht="GetAccountSettingResponse";const $t="GetAuthorizationToken";const Gt="GetAuthorizationTokenRequest";const qt="GetAuthorizationTokenResponse";const zt="GetDownloadUrlForLayer";const Vt="GetDownloadUrlForLayerRequest";const jt="GetDownloadUrlForLayerResponse";const Yt="GetLifecyclePolicy";const Jt="GetLifecyclePolicyPreview";const Wt="GetLifecyclePolicyPreviewRequest";const Kt="GetLifecyclePolicyPreviewResponse";const Xt="GetLifecyclePolicyRequest";const Zt="GetLifecyclePolicyResponse";const er="GetRegistryPolicy";const tr="GetRegistryPolicyRequest";const rr="GetRegistryPolicyResponse";const nr="GetRepositoryPolicyRequest";const sr="GetRepositoryPolicyResponse";const or="GetRepositoryPolicy";const ir="GetRegistryScanningConfiguration";const ar="GetRegistryScanningConfigurationRequest";const cr="GetRegistryScanningConfigurationResponse";const lr="GetSigningConfiguration";const ur="GetSigningConfigurationRequest";const dr="GetSigningConfigurationResponse";const pr="Image";const Ar="ImageArchivedException";const mr="ImageAlreadyExistsException";const gr="ImageDetail";const fr="ImageDigestDoesNotMatchException";const hr="ImageDetailList";const yr="ImageFailure";const Er="ImageFailureList";const Cr="ImageIdentifier";const Ir="ImageIdentifierList";const br="ImageList";const Sr="InvalidLayerException";const Br="InvalidLayerPartException";const wr="InitiateLayerUpload";const Rr="InitiateLayerUploadRequest";const Nr="InitiateLayerUploadResponse";const Qr="ImageNotFoundException";const xr="InvalidParameterException";const Tr="ImageReferrer";const vr="ImageReferrerList";const Pr="ImageReplicationStatus";const Dr="ImageReplicationStatusList";const kr="ImageScanningConfiguration";const _r="ImageStorageClassUpdateNotSupportedException";const Lr="ImageScanFinding";const Or="ImageScanFindingList";const Fr="ImageScanFindingsSummary";const Ur="ImageScanFindings";const Mr="ImageScanStatus";const Hr="ImageSigningStatusList";const $r="ImageSigningStatus";const Gr="ImageTagAlreadyExistsException";const qr="ImageTagMutabilityExclusionFilter";const zr="ImageTagMutabilityExclusionFilters";const Vr="InvalidTagParameterException";const jr="Key";const Yr="KmsException";const Jr="Layer";const Wr="LayerAlreadyExistsException";const Kr="LimitExceededException";const Xr="LayerFailure";const Zr="LayerFailureList";const en="ListImages";const tn="LayerInaccessibleException";const rn="ListImagesFilter";const nn="ListImagesRequest";const sn="ListImageReferrersFilter";const on="ListImageReferrersRequest";const an="ListImageReferrersResponse";const cn="ListImagesResponse";const ln="ListImageReferrers";const un="LayerList";const dn="LayersNotFoundException";const pn="LifecyclePolicyNotFoundException";const An="LifecyclePolicyPreviewFilter";const mn="LifecyclePolicyPreviewInProgressException";const gn="LifecyclePolicyPreviewNotFoundException";const hn="LifecyclePolicyPreviewResult";const yn="LifecyclePolicyPreviewResultList";const En="LifecyclePolicyPreviewSummary";const Cn="LifecyclePolicyRuleAction";const In="LayerPartTooSmallException";const bn="ListPullTimeUpdateExclusions";const Sn="ListPullTimeUpdateExclusionsRequest";const Bn="ListPullTimeUpdateExclusionsResponse";const wn="ListTagsForResource";const Rn="ListTagsForResourceRequest";const Nn="ListTagsForResourceResponse";const Qn="PutAccountSetting";const xn="PutAccountSettingRequest";const Tn="PutAccountSettingResponse";const vn="PutImage";const Pn="PutImageRequest";const Dn="PutImageResponse";const kn="PutImageScanningConfiguration";const _n="PutImageScanningConfigurationRequest";const Ln="PutImageScanningConfigurationResponse";const On="PutImageTagMutability";const Fn="PutImageTagMutabilityRequest";const Un="PutImageTagMutabilityResponse";const Mn="PutLifecyclePolicy";const Hn="PutLifecyclePolicyRequest";const $n="PutLifecyclePolicyResponse";const Gn="PutReplicationConfiguration";const qn="PutReplicationConfigurationRequest";const zn="PutReplicationConfigurationResponse";const Vn="PutRegistryPolicy";const jn="PutRegistryPolicyRequest";const Yn="PutRegistryPolicyResponse";const Jn="PutRegistryScanningConfiguration";const Wn="PutRegistryScanningConfigurationRequest";const Kn="PutRegistryScanningConfigurationResponse";const Xn="PutSigningConfiguration";const Zn="PutSigningConfigurationRequest";const es="PutSigningConfigurationResponse";const ts="PullThroughCacheRule";const rs="PullThroughCacheRuleAlreadyExistsException";const ns="PullThroughCacheRuleList";const ss="PullThroughCacheRuleNotFoundException";const os="PackageVulnerabilityDetails";const as="Recommendation";const cs="RepositoryAlreadyExistsException";const ls="ReplicationConfiguration";const us="RepositoryCreationTemplate";const ds="RepositoryCreationTemplateList";const ps="ReplicationDestination";const As="ReplicationDestinationList";const ms="ResourceDetails";const gs="RepositoryFilter";const fs="RepositoryFilterList";const hs="ReferencedImagesNotFoundException";const ys="RepositoryList";const Es="ResourceList";const Cs="RepositoryNotEmptyException";const Is="RepositoryNotFoundException";const bs="RegistryPolicyNotFoundException";const Ss="RepositoryPolicyNotFoundException";const Bs="RegisterPullTimeUpdateExclusion";const ws="RegisterPullTimeUpdateExclusionRequest";const Rs="RegisterPullTimeUpdateExclusionResponse";const Ns="ReplicationRule";const Qs="ReplicationRuleList";const xs="RegistryScanningConfiguration";const Ts="RepositoryScanningConfigurationFailure";const vs="RepositoryScanningConfigurationFailureList";const Ps="RepositoryScanningConfigurationList";const Ds="RepositoryScanningConfiguration";const ks="RegistryScanningRule";const _s="RegistryScanningRuleList";const Ls="Remediation";const Os="Repository";const Fs="Resource";const Us="SigningConfiguration";const Ms="SigningConfigurationNotFoundException";const Hs="ScoreDetails";const $s="ServerException";const Gs="SubjectIdentifier";const qs="StartImageScan";const zs="StartImageScanRequest";const Vs="StartImageScanResponse";const js="StartLifecyclePolicyPreview";const Ys="StartLifecyclePolicyPreviewRequest";const Js="StartLifecyclePolicyPreviewResponse";const Ws="ScanNotFoundException";const Ks="SecretNotFoundException";const Xs="SigningRule";const Zs="ScanningRepositoryFilter";const eo="ScanningRepositoryFilterList";const to="SigningRepositoryFilterList";const ro="SigningRepositoryFilter";const no="SigningRuleList";const so="SetRepositoryPolicy";const oo="SetRepositoryPolicyRequest";const io="SetRepositoryPolicyResponse";const ao="Tag";const co="TemplateAlreadyExistsException";const lo="TransitioningImageTotalCount";const uo="TransitioningImageTotalCounts";const po="TagList";const Ao="TooManyTagsException";const mo="TemplateNotFoundException";const go="TagResource";const fo="TagResourceRequest";const ho="TagResourceResponse";const yo="UpdateImageStorageClass";const Eo="UpdateImageStorageClassRequest";const Co="UpdateImageStorageClassResponse";const Io="UnsupportedImageTypeException";const bo="UploadLayerPart";const So="UploadLayerPartRequest";const Bo="UploadLayerPartResponse";const wo="UploadNotFoundException";const Ro="UpdatePullThroughCacheRule";const No="UpdatePullThroughCacheRuleRequest";const Qo="UpdatePullThroughCacheRuleResponse";const xo="UntagResource";const To="UpdateRepositoryCreationTemplate";const vo="UpdateRepositoryCreationTemplateRequest";const Po="UpdateRepositoryCreationTemplateResponse";const Do="UntagResourceRequest";const ko="UntagResourceResponse";const _o="UnableToAccessSecretException";const Lo="UnableToDecryptSecretValueException";const Oo="UnableToGetUpstreamImageException";const Fo="UnableToGetUpstreamLayerException";const Uo="UnsupportedUpstreamRegistryException";const Mo="Value";const Ho="ValidationException";const $o="VulnerablePackage";const Go="VulnerablePackagesList";const qo="ValidatePullThroughCacheRule";const zo="ValidatePullThroughCacheRuleRequest";const Vo="ValidatePullThroughCacheRuleResponse";const jo="architecture";const Yo="awsAccountId";const Jo="authorizationData";const Wo="awsEcrContainerImage";const Ko="appliedFor";const Xo="acceptedMediaTypes";const Zo="artifactMediaType";const ei="appliedRulePriority";const ti="artifactStatus";const ri="appliedScanFilters";const ni="authorizationToken";const si="artifactType";const oi="artifactTypes";const ii="action";const ai="adjustments";const ci="annotations";const li="arch";const ui="attributes";const di="author";const pi="baseScore";const Ai="client";const mi="credentialArn";const gi="createdAt";const fi="customRoleArn";const hi="cvss";const yi="description";const Ei="downloadUrl";const Ci="destinations";const Ii="details";const bi="digest";const Si="error";const Bi="expiresAt";const wi="exploitAvailable";const Ri="encryptionConfiguration";const Ni="enhancedFindings";const Qi="expiringImageTotalCount";const xi="ecrRepositoryPrefix";const Ti="ecrRepositoryPrefixes";const vi="encryptionType";const Pi="epoch";const Di="failures";const ki="findingArn";const _i="fixAvailable";const Li="failureCode";const Oi="fixedInVersion";const Fi="firstObservedAt";const Ui="filePath";const Mi="failureReason";const Hi="findingSeverityCounts";const $i="filterType";const Gi="failure";const qi="filter";const zi="findings";const Vi="force";const ji="httpError";const Yi="images";const Ji="imageDetails";const Wi="imageDigest";const Ki="imageHash";const Xi="imageIds";const Zi="imageId";const ea="imageManifest";const ta="imageManifestMediaType";const ra="imagePushedAt";const na="imageStatus";const sa="imageScanningConfiguration";const oa="imageScanCompletedAt";const ia="imageScanFindings";const aa="imageScanFindingsSummary";const ca="imageSizeInBytes";const la="imageScanStatus";const ua="imageTags";const da="imageTotalCount";const pa="imageTagMutability";const Aa="imageTagMutabilityExclusionFilters";const ma="imageTag";const ga="inUseCount";const fa="isValid";const ha="id";const ya="image";const Ea="key";const Ca="kmsError";const Ia="kmsKey";const ba="layers";const Sa="layerAvailability";const Ba="lastArchivedAt";const wa="lastActivatedAt";const Ra="lastByteReceived";const Na="layerDigests";const Qa="layerDigest";const xa="lastEvaluatedAt";const Ta="lastInUseAt";const va="lastObservedAt";const Pa="lifecyclePolicy";const Da="layerPartBlob";const ka="lifecyclePolicyText";const _a="lastRecordedPullTime";const La="layerSize";const Oa="lastValidByteReceived";const Fa="message";const Ua="maxResults";const Ma="mediaType";const Ha="metric";const $a="name";const Ga="nextToken";const qa="platform";const za="pushedAt";const Va="principalArn";const ja="proxyEndpoint";const Ya="partFirstByte";const Ja="partLastByte";const Wa="packageManager";const Ka="previewResults";const Xa="partSize";const Za="policyText";const ec="pullThroughCacheRules";const tc="pullTimeUpdateExclusions";const rc="packageVulnerabilityDetails";const nc="prefix";const sc="prefixes";const oc="registry";const ic="resourceArn";const ac="repositoryArn";const cc="replicationConfiguration";const lc="repositoryCreationTemplate";const uc="repositoryCreationTemplates";const dc="repositoryFilters";const pc="registryId";const Ac="registryIds";const mc="repositoryName";const gc="repositoryNames";const fc="repositoryPolicy";const hc="replicationStatuses";const yc="registryScanningConfiguration";const Ec="resourceTags";const Cc="referenceUrls";const Ic="repositoryUri";const bc="relatedVulnerabilities";const Sc="repository";const Bc="reason";const wc="recommendation";const Rc="referrers";const Nc="region";const Qc="release";const xc="remediation";const Tc="repositories";const vc="resources";const Pc="rules";const Dc="smithy.ts.sdk.synthetic.com.amazonaws.ecr";const kc="scanningConfigurations";const _c="scanningConfiguration";const Lc="signingConfiguration";const Oc="storageClass";const Fc="scoreDetails";const Uc="scanFrequency";const Mc="subjectId";const Hc="sourceLayerHash";const $c="subjectManifestDigest";const Gc="scanOnPush";const qc="signingProfileArn";const zc="scoreSource";const Vc="signingStatuses";const jc="scanType";const Yc="sourceUrl";const Jc="scoringVector";const Wc="score";const Kc="server";const Xc="severity";const Zc="size";const el="source";const tl="status";const rl="summary";const nl="tags";const sl="transitioningImageTotalCounts";const ol="tagKeys";const il="tagStatus";const al="targetStorageClass";const cl="text";const ll="title";const ul="type";const dl="uri";const pl="updatedAt";const Al="uploadId";const ml="upstreamRegistry";const gl="upstreamRepositoryPrefix";const fl="upstreamRegistryUrl";const hl="url";const yl="value";const El="vendorCreatedAt";const Cl="vulnerabilityId";const Il="vulnerablePackages";const bl="vendorSeverity";const Sl="vulnerabilitySourceUpdatedAt";const Bl="vendorUpdatedAt";const wl="version";const Rl="com.amazonaws.ecr";const Nl=n(6890);const Ql=n(5502);const xl=n(4901);const Tl=Nl.TypeRegistry.for(Dc);t.ECRServiceException$=[-3,Dc,"ECRServiceException",0,[],[]];Tl.registerError(t.ECRServiceException$,Ql.ECRServiceException);const vl=Nl.TypeRegistry.for(Rl);t.BlockedByOrganizationPolicyException$=[-3,Rl,y,{[Si]:Ai},[Fa],[0]];vl.registerError(t.BlockedByOrganizationPolicyException$,xl.BlockedByOrganizationPolicyException);t.EmptyUploadException$=[-3,Rl,Ft,{[Si]:Ai},[Fa],[0]];vl.registerError(t.EmptyUploadException$,xl.EmptyUploadException);t.ExclusionAlreadyExistsException$=[-3,Rl,Pt,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ExclusionAlreadyExistsException$,xl.ExclusionAlreadyExistsException);t.ExclusionNotFoundException$=[-3,Rl,Ot,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ExclusionNotFoundException$,xl.ExclusionNotFoundException);t.ImageAlreadyExistsException$=[-3,Rl,mr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageAlreadyExistsException$,xl.ImageAlreadyExistsException);t.ImageArchivedException$=[-3,Rl,Ar,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageArchivedException$,xl.ImageArchivedException);t.ImageDigestDoesNotMatchException$=[-3,Rl,fr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageDigestDoesNotMatchException$,xl.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,Rl,Qr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageNotFoundException$,xl.ImageNotFoundException);t.ImageStorageClassUpdateNotSupportedException$=[-3,Rl,_r,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageStorageClassUpdateNotSupportedException$,xl.ImageStorageClassUpdateNotSupportedException);t.ImageTagAlreadyExistsException$=[-3,Rl,Gr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ImageTagAlreadyExistsException$,xl.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,Rl,Sr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidLayerException$,xl.InvalidLayerException);t.InvalidLayerPartException$=[-3,Rl,Br,{[Si]:Ai},[pc,mc,Al,Oa,Fa],[0,0,0,1,0]];vl.registerError(t.InvalidLayerPartException$,xl.InvalidLayerPartException);t.InvalidParameterException$=[-3,Rl,xr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidParameterException$,xl.InvalidParameterException);t.InvalidTagParameterException$=[-3,Rl,Vr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.InvalidTagParameterException$,xl.InvalidTagParameterException);t.KmsException$=[-3,Rl,Yr,{[Si]:Ai},[Fa,Ca],[0,0]];vl.registerError(t.KmsException$,xl.KmsException);t.LayerAlreadyExistsException$=[-3,Rl,Wr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerAlreadyExistsException$,xl.LayerAlreadyExistsException);t.LayerInaccessibleException$=[-3,Rl,tn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerInaccessibleException$,xl.LayerInaccessibleException);t.LayerPartTooSmallException$=[-3,Rl,In,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayerPartTooSmallException$,xl.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,Rl,dn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LayersNotFoundException$,xl.LayersNotFoundException);t.LifecyclePolicyNotFoundException$=[-3,Rl,pn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyNotFoundException$,xl.LifecyclePolicyNotFoundException);t.LifecyclePolicyPreviewInProgressException$=[-3,Rl,mn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyPreviewInProgressException$,xl.LifecyclePolicyPreviewInProgressException);t.LifecyclePolicyPreviewNotFoundException$=[-3,Rl,gn,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LifecyclePolicyPreviewNotFoundException$,xl.LifecyclePolicyPreviewNotFoundException);t.LimitExceededException$=[-3,Rl,Kr,{[Si]:Ai},[Fa],[0]];vl.registerError(t.LimitExceededException$,xl.LimitExceededException);t.PullThroughCacheRuleAlreadyExistsException$=[-3,Rl,rs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.PullThroughCacheRuleAlreadyExistsException$,xl.PullThroughCacheRuleAlreadyExistsException);t.PullThroughCacheRuleNotFoundException$=[-3,Rl,ss,{[Si]:Ai},[Fa],[0]];vl.registerError(t.PullThroughCacheRuleNotFoundException$,xl.PullThroughCacheRuleNotFoundException);t.ReferencedImagesNotFoundException$=[-3,Rl,hs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ReferencedImagesNotFoundException$,xl.ReferencedImagesNotFoundException);t.RegistryPolicyNotFoundException$=[-3,Rl,bs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RegistryPolicyNotFoundException$,xl.RegistryPolicyNotFoundException);t.RepositoryAlreadyExistsException$=[-3,Rl,cs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryAlreadyExistsException$,xl.RepositoryAlreadyExistsException);t.RepositoryNotEmptyException$=[-3,Rl,Cs,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryNotEmptyException$,xl.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,Rl,Is,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryNotFoundException$,xl.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,Rl,Ss,{[Si]:Ai},[Fa],[0]];vl.registerError(t.RepositoryPolicyNotFoundException$,xl.RepositoryPolicyNotFoundException);t.ScanNotFoundException$=[-3,Rl,Ws,{[Si]:Ai},[Fa],[0]];vl.registerError(t.ScanNotFoundException$,xl.ScanNotFoundException);t.SecretNotFoundException$=[-3,Rl,Ks,{[Si]:Ai},[Fa],[0]];vl.registerError(t.SecretNotFoundException$,xl.SecretNotFoundException);t.ServerException$=[-3,Rl,$s,{[Si]:Kc},[Fa],[0]];vl.registerError(t.ServerException$,xl.ServerException);t.SigningConfigurationNotFoundException$=[-3,Rl,Ms,{[Si]:Ai},[Fa],[0]];vl.registerError(t.SigningConfigurationNotFoundException$,xl.SigningConfigurationNotFoundException);t.TemplateAlreadyExistsException$=[-3,Rl,co,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TemplateAlreadyExistsException$,xl.TemplateAlreadyExistsException);t.TemplateNotFoundException$=[-3,Rl,mo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TemplateNotFoundException$,xl.TemplateNotFoundException);t.TooManyTagsException$=[-3,Rl,Ao,{[Si]:Ai},[Fa],[0]];vl.registerError(t.TooManyTagsException$,xl.TooManyTagsException);t.UnableToAccessSecretException$=[-3,Rl,_o,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToAccessSecretException$,xl.UnableToAccessSecretException);t.UnableToDecryptSecretValueException$=[-3,Rl,Lo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToDecryptSecretValueException$,xl.UnableToDecryptSecretValueException);t.UnableToGetUpstreamImageException$=[-3,Rl,Oo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToGetUpstreamImageException$,xl.UnableToGetUpstreamImageException);t.UnableToGetUpstreamLayerException$=[-3,Rl,Fo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnableToGetUpstreamLayerException$,xl.UnableToGetUpstreamLayerException);t.UnsupportedImageTypeException$=[-3,Rl,Io,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnsupportedImageTypeException$,xl.UnsupportedImageTypeException);t.UnsupportedUpstreamRegistryException$=[-3,Rl,Uo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UnsupportedUpstreamRegistryException$,xl.UnsupportedUpstreamRegistryException);t.UploadNotFoundException$=[-3,Rl,wo,{[Si]:Ai},[Fa],[0]];vl.registerError(t.UploadNotFoundException$,xl.UploadNotFoundException);t.ValidationException$=[-3,Rl,Ho,{[Si]:Ai,[ji]:400},[Fa],[0]];vl.registerError(t.ValidationException$,xl.ValidationException);t.errorTypeRegistries=[Tl,vl];t.Attribute$=[3,Rl,o,0,[Ea,yl],[0,0],1];t.AuthorizationData$=[3,Rl,i,0,[ni,Bi,ja],[0,4,0]];t.AwsEcrContainerImageDetails$=[3,Rl,d,0,[jo,di,Ki,ua,qa,za,Ta,ga,oc,mc],[0,0,0,64|0,0,4,4,1,0,0]];t.BatchCheckLayerAvailabilityRequest$=[3,Rl,Q,0,[mc,Na,pc],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,Rl,v,0,[ba,Di],[()=>Zl,()=>Xl]];t.BatchDeleteImageRequest$=[3,Rl,k,0,[mc,Xi,pc],[0,()=>$l,0],2];t.BatchDeleteImageResponse$=[3,Rl,$,0,[Xi,Di],[()=>$l,()=>Hl]];t.BatchGetImageRequest$=[3,Rl,ee,0,[mc,Xi,pc,Xo],[0,()=>$l,0,64|0],2];t.BatchGetImageResponse$=[3,Rl,te,0,[Yi,Di],[()=>Gl,()=>Hl]];t.BatchGetRepositoryScanningConfigurationRequest$=[3,Rl,ne,0,[gc],[64|0],1];t.BatchGetRepositoryScanningConfigurationResponse$=[3,Rl,se,0,[kc,Di],[()=>hu,()=>fu]];t.CompleteLayerUploadRequest$=[3,Rl,ie,0,[mc,Al,Na,pc],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,Rl,ae,0,[pc,mc,Al,Qa],[0,0,0,0]];t.CreatePullThroughCacheRuleRequest$=[3,Rl,le,0,[xi,fl,pc,ml,mi,fi,gl],[0,0,0,0,0,0,0],2];t.CreatePullThroughCacheRuleResponse$=[3,Rl,ue,0,[xi,fl,gi,pc,ml,mi,fi,gl],[0,0,4,0,0,0,0,0]];t.CreateRepositoryCreationTemplateRequest$=[3,Rl,Ae,0,[nc,Ko,yi,Ri,Ec,pa,Aa,fc,Pa,fi],[0,64|0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,0],2];t.CreateRepositoryCreationTemplateResponse$=[3,Rl,me,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.CreateRepositoryRequest$=[3,Rl,ge,0,[mc,pc,nl,pa,Aa,sa,Ri],[0,0,()=>Bu,0,()=>Jl,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$],1];t.CreateRepositoryResponse$=[3,Rl,fe,0,[Sc],[()=>t.Repository$]];t.CvssScore$=[3,Rl,he,0,[pi,Jc,el,wl],[1,0,0,0]];t.CvssScoreAdjustment$=[3,Rl,ye,0,[Ha,Bc],[0,0]];t.CvssScoreDetails$=[3,Rl,Ce,0,[ai,Wc,zc,Jc,wl],[()=>Ll,1,0,0,0]];t.DeleteLifecyclePolicyRequest$=[3,Rl,Le,0,[mc,pc],[0,0],1];t.DeleteLifecyclePolicyResponse$=[3,Rl,Oe,0,[pc,mc,ka,xa],[0,0,0,4]];t.DeletePullThroughCacheRuleRequest$=[3,Rl,Ue,0,[xi,pc],[0,0],1];t.DeletePullThroughCacheRuleResponse$=[3,Rl,Me,0,[xi,fl,gi,pc,mi,fi,gl],[0,0,4,0,0,0,0]];t.DeleteRegistryPolicyRequest$=[3,Rl,mt,0,[],[]];t.DeleteRegistryPolicyResponse$=[3,Rl,ht,0,[pc,Za],[0,0]];t.DeleteRepositoryCreationTemplateRequest$=[3,Rl,Je,0,[nc],[0],1];t.DeleteRepositoryCreationTemplateResponse$=[3,Rl,We,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.DeleteRepositoryPolicyRequest$=[3,Rl,yt,0,[mc,pc],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,Rl,Et,0,[pc,mc,Za],[0,0,0]];t.DeleteRepositoryRequest$=[3,Rl,It,0,[mc,pc,Vi],[0,0,2],1];t.DeleteRepositoryResponse$=[3,Rl,bt,0,[Sc],[()=>t.Repository$]];t.DeleteSigningConfigurationRequest$=[3,Rl,Tt,0,[],[]];t.DeleteSigningConfigurationResponse$=[3,Rl,vt,0,[pc,Lc],[0,()=>t.SigningConfiguration$]];t.DeregisterPullTimeUpdateExclusionRequest$=[3,Rl,ze,0,[Va],[0],1];t.DeregisterPullTimeUpdateExclusionResponse$=[3,Rl,Ve,0,[Va],[0]];t.DescribeImageReplicationStatusRequest$=[3,Rl,Re,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageReplicationStatusResponse$=[3,Rl,Ne,0,[mc,Zi,hc],[0,()=>t.ImageIdentifier$,()=>zl]];t.DescribeImageScanFindingsRequest$=[3,Rl,Te,0,[mc,Zi,pc,Ga,Ua],[0,()=>t.ImageIdentifier$,0,0,1],2];t.DescribeImageScanFindingsResponse$=[3,Rl,ve,0,[pc,mc,Zi,la,ia,Ga],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$,()=>t.ImageScanFindings$,0]];t.DescribeImagesFilter$=[3,Rl,Se,0,[il,na],[0,0]];t.DescribeImageSigningStatusRequest$=[3,Rl,De,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageSigningStatusResponse$=[3,Rl,ke,0,[mc,Zi,pc,Vc],[0,()=>t.ImageIdentifier$,0,()=>jl]];t.DescribeImagesRequest$=[3,Rl,Be,0,[mc,pc,Xi,Ga,Ua,qi],[0,0,()=>$l,0,1,()=>t.DescribeImagesFilter$],1];t.DescribeImagesResponse$=[3,Rl,Qe,0,[Ji,Ga],[()=>Ml,0]];t.DescribePullThroughCacheRulesRequest$=[3,Rl,He,0,[pc,Ti,Ga,Ua],[0,64|0,0,1]];t.DescribePullThroughCacheRulesResponse$=[3,Rl,$e,0,[ec,Ga],[()=>nu,0]];t.DescribeRegistryRequest$=[3,Rl,St,0,[],[]];t.DescribeRegistryResponse$=[3,Rl,Bt,0,[pc,cc],[0,()=>t.ReplicationConfiguration$]];t.DescribeRepositoriesRequest$=[3,Rl,wt,0,[pc,gc,Ga,Ua],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,Rl,Rt,0,[Tc,Ga],[()=>mu,0]];t.DescribeRepositoryCreationTemplatesRequest$=[3,Rl,Ke,0,[sc,Ga,Ua],[64|0,0,1]];t.DescribeRepositoryCreationTemplatesResponse$=[3,Rl,Xe,0,[pc,uc,Ga],[0,()=>pu,0]];t.EncryptionConfiguration$=[3,Rl,Dt,0,[vi,Ia],[0,0],1];t.EncryptionConfigurationForRepositoryCreationTemplate$=[3,Rl,kt,0,[vi,Ia],[0,0],1];t.EnhancedImageScanFinding$=[3,Rl,_t,0,[Yo,yi,ki,Fi,va,rc,xc,vc,Wc,Fc,Xc,tl,ll,ul,pl,_i,wi],[0,0,0,4,4,()=>t.PackageVulnerabilityDetails$,()=>t.Remediation$,()=>yu,1,()=>t.ScoreDetails$,0,0,0,0,4,0,0]];t.GetAccountSettingRequest$=[3,Rl,Mt,0,[$a],[0],1];t.GetAccountSettingResponse$=[3,Rl,Ht,0,[$a,yl],[0,0]];t.GetAuthorizationTokenRequest$=[3,Rl,Gt,0,[Ac],[64|0]];t.GetAuthorizationTokenResponse$=[3,Rl,qt,0,[Jo],[()=>kl]];t.GetDownloadUrlForLayerRequest$=[3,Rl,Vt,0,[mc,Qa,pc],[0,0,0],2];t.GetDownloadUrlForLayerResponse$=[3,Rl,jt,0,[Ei,Qa],[0,0]];t.GetLifecyclePolicyPreviewRequest$=[3,Rl,Wt,0,[mc,pc,Xi,Ga,Ua,qi],[0,0,()=>$l,0,1,()=>t.LifecyclePolicyPreviewFilter$],1];t.GetLifecyclePolicyPreviewResponse$=[3,Rl,Kt,0,[pc,mc,ka,tl,Ga,Ka,rl],[0,0,0,0,0,()=>eu,()=>t.LifecyclePolicyPreviewSummary$]];t.GetLifecyclePolicyRequest$=[3,Rl,Xt,0,[mc,pc],[0,0],1];t.GetLifecyclePolicyResponse$=[3,Rl,Zt,0,[pc,mc,ka,xa],[0,0,0,4]];t.GetRegistryPolicyRequest$=[3,Rl,tr,0,[],[]];t.GetRegistryPolicyResponse$=[3,Rl,rr,0,[pc,Za],[0,0]];t.GetRegistryScanningConfigurationRequest$=[3,Rl,ar,0,[],[]];t.GetRegistryScanningConfigurationResponse$=[3,Rl,cr,0,[pc,_c],[0,()=>t.RegistryScanningConfiguration$]];t.GetRepositoryPolicyRequest$=[3,Rl,nr,0,[mc,pc],[0,0],1];t.GetRepositoryPolicyResponse$=[3,Rl,sr,0,[pc,mc,Za],[0,0,0]];t.GetSigningConfigurationRequest$=[3,Rl,ur,0,[],[]];t.GetSigningConfigurationResponse$=[3,Rl,dr,0,[pc,Lc],[0,()=>t.SigningConfiguration$]];t.Image$=[3,Rl,pr,0,[pc,mc,Zi,ea,ta],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,Rl,gr,0,[pc,mc,Wi,ua,ca,ra,la,aa,ta,Zo,_a,$c,na,Ba,wa],[0,0,0,64|0,1,4,()=>t.ImageScanStatus$,()=>t.ImageScanFindingsSummary$,0,0,4,0,0,4,4]];t.ImageFailure$=[3,Rl,yr,0,[Zi,Li,Mi],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,Rl,Cr,0,[Wi,ma],[0,0]];t.ImageReferrer$=[3,Rl,Tr,0,[bi,Ma,Zc,si,ci,ti],[0,0,1,0,128|0,0],3];t.ImageReplicationStatus$=[3,Rl,Pr,0,[Nc,pc,tl,Li],[0,0,0,0]];t.ImageScanFinding$=[3,Rl,Lr,0,[$a,yi,dl,Xc,ui],[0,0,0,0,()=>Dl]];t.ImageScanFindings$=[3,Rl,Ur,0,[oa,Sl,Hi,zi,Ni],[4,4,128|1,()=>Vl,()=>Fl]];t.ImageScanFindingsSummary$=[3,Rl,Fr,0,[oa,Sl,Hi],[4,4,128|1]];t.ImageScanningConfiguration$=[3,Rl,kr,0,[Gc],[2]];t.ImageScanStatus$=[3,Rl,Mr,0,[tl,yi],[0,0]];t.ImageSigningStatus$=[3,Rl,$r,0,[qc,Li,Mi,tl],[0,0,0,0]];t.ImageTagMutabilityExclusionFilter$=[3,Rl,qr,0,[$i,qi],[0,0],2];t.InitiateLayerUploadRequest$=[3,Rl,Rr,0,[mc,pc],[0,0],1];t.InitiateLayerUploadResponse$=[3,Rl,Nr,0,[Al,Xa],[0,1]];t.Layer$=[3,Rl,Jr,0,[Qa,Sa,La,Ma],[0,0,1,0]];t.LayerFailure$=[3,Rl,Xr,0,[Qa,Li,Mi],[0,0,0]];t.LifecyclePolicyPreviewFilter$=[3,Rl,An,0,[il],[0]];t.LifecyclePolicyPreviewResult$=[3,Rl,hn,0,[ua,Wi,ra,ii,ei,Oc],[64|0,0,4,()=>t.LifecyclePolicyRuleAction$,1,0]];t.LifecyclePolicyPreviewSummary$=[3,Rl,En,0,[Qi,sl],[1,()=>wu]];t.LifecyclePolicyRuleAction$=[3,Rl,Cn,0,[ul,al],[0,0]];t.ListImageReferrersFilter$=[3,Rl,sn,0,[oi,ti],[64|0,0]];t.ListImageReferrersRequest$=[3,Rl,on,0,[mc,Mc,pc,qi,Ga,Ua],[0,()=>t.SubjectIdentifier$,0,()=>t.ListImageReferrersFilter$,0,1],2];t.ListImageReferrersResponse$=[3,Rl,an,0,[Rc,Ga],[()=>ql,0]];t.ListImagesFilter$=[3,Rl,rn,0,[il,na],[0,0]];t.ListImagesRequest$=[3,Rl,nn,0,[mc,pc,Ga,Ua,qi],[0,0,0,1,()=>t.ListImagesFilter$],1];t.ListImagesResponse$=[3,Rl,cn,0,[Xi,Ga],[()=>$l,0]];t.ListPullTimeUpdateExclusionsRequest$=[3,Rl,Sn,0,[Ua,Ga],[1,0]];t.ListPullTimeUpdateExclusionsResponse$=[3,Rl,Bn,0,[tc,Ga],[64|0,0]];t.ListTagsForResourceRequest$=[3,Rl,Rn,0,[ic],[0],1];t.ListTagsForResourceResponse$=[3,Rl,Nn,0,[nl],[()=>Bu]];t.PackageVulnerabilityDetails$=[3,Rl,os,0,[hi,Cc,bc,el,Yc,El,bl,Bl,Cl,Il],[()=>Ol,64|0,64|0,0,0,4,0,4,0,()=>Ru]];t.PullThroughCacheRule$=[3,Rl,ts,0,[xi,fl,gi,pc,mi,fi,gl,ml,pl],[0,0,4,0,0,0,0,0,4]];t.PutAccountSettingRequest$=[3,Rl,xn,0,[$a,yl],[0,0],2];t.PutAccountSettingResponse$=[3,Rl,Tn,0,[$a,yl],[0,0]];t.PutImageRequest$=[3,Rl,Pn,0,[mc,ea,pc,ta,ma,Wi],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,Rl,Dn,0,[ya],[()=>t.Image$]];t.PutImageScanningConfigurationRequest$=[3,Rl,_n,0,[mc,sa,pc],[0,()=>t.ImageScanningConfiguration$,0],2];t.PutImageScanningConfigurationResponse$=[3,Rl,Ln,0,[pc,mc,sa],[0,0,()=>t.ImageScanningConfiguration$]];t.PutImageTagMutabilityRequest$=[3,Rl,Fn,0,[mc,pa,pc,Aa],[0,0,0,()=>Jl],2];t.PutImageTagMutabilityResponse$=[3,Rl,Un,0,[pc,mc,pa,Aa],[0,0,0,()=>Jl]];t.PutLifecyclePolicyRequest$=[3,Rl,Hn,0,[mc,ka,pc],[0,0,0],2];t.PutLifecyclePolicyResponse$=[3,Rl,$n,0,[pc,mc,ka],[0,0,0]];t.PutRegistryPolicyRequest$=[3,Rl,jn,0,[Za],[0],1];t.PutRegistryPolicyResponse$=[3,Rl,Yn,0,[pc,Za],[0,0]];t.PutRegistryScanningConfigurationRequest$=[3,Rl,Wn,0,[jc,Pc],[0,()=>cu]];t.PutRegistryScanningConfigurationResponse$=[3,Rl,Kn,0,[yc],[()=>t.RegistryScanningConfiguration$]];t.PutReplicationConfigurationRequest$=[3,Rl,qn,0,[cc],[()=>t.ReplicationConfiguration$],1];t.PutReplicationConfigurationResponse$=[3,Rl,zn,0,[cc],[()=>t.ReplicationConfiguration$]];t.PutSigningConfigurationRequest$=[3,Rl,Zn,0,[Lc],[()=>t.SigningConfiguration$],1];t.PutSigningConfigurationResponse$=[3,Rl,es,0,[Lc],[()=>t.SigningConfiguration$]];t.Recommendation$=[3,Rl,as,0,[hl,cl],[0,0]];t.RegisterPullTimeUpdateExclusionRequest$=[3,Rl,ws,0,[Va],[0],1];t.RegisterPullTimeUpdateExclusionResponse$=[3,Rl,Rs,0,[Va,gi],[0,4]];t.RegistryScanningConfiguration$=[3,Rl,xs,0,[jc,Pc],[0,()=>cu]];t.RegistryScanningRule$=[3,Rl,ks,0,[Uc,dc],[0,()=>Cu],2];t.Remediation$=[3,Rl,Ls,0,[wc],[()=>t.Recommendation$]];t.ReplicationConfiguration$=[3,Rl,ls,0,[Pc],[()=>du],1];t.ReplicationDestination$=[3,Rl,ps,0,[Nc,pc],[0,0],2];t.ReplicationRule$=[3,Rl,Ns,0,[Ci,dc],[()=>uu,()=>Au],1];t.Repository$=[3,Rl,Os,0,[ac,pc,mc,Ic,gi,pa,Aa,sa,Ri],[0,0,0,0,4,0,()=>Jl,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$]];t.RepositoryCreationTemplate$=[3,Rl,us,0,[nc,yi,Ri,Ec,pa,Aa,fc,Pa,Ko,fi,gi,pl],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,64|0,0,4,4]];t.RepositoryFilter$=[3,Rl,gs,0,[qi,$i],[0,0],2];t.RepositoryScanningConfiguration$=[3,Rl,Ds,0,[ac,mc,Gc,Uc,ri],[0,0,2,0,()=>Cu]];t.RepositoryScanningConfigurationFailure$=[3,Rl,Ts,0,[mc,Li,Mi],[0,0,0]];t.Resource$=[3,Rl,Fs,0,[Ii,ha,nl,ul],[()=>t.ResourceDetails$,0,128|0,0]];t.ResourceDetails$=[3,Rl,ms,0,[Wo],[()=>t.AwsEcrContainerImageDetails$]];t.ScanningRepositoryFilter$=[3,Rl,Zs,0,[qi,$i],[0,0],2];t.ScoreDetails$=[3,Rl,Hs,0,[hi],[()=>t.CvssScoreDetails$]];t.SetRepositoryPolicyRequest$=[3,Rl,oo,0,[mc,Za,pc,Vi],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,Rl,io,0,[pc,mc,Za],[0,0,0]];t.SigningConfiguration$=[3,Rl,Us,0,[Pc],[()=>bu],1];t.SigningRepositoryFilter$=[3,Rl,ro,0,[qi,$i],[0,0],2];t.SigningRule$=[3,Rl,Xs,0,[qc,dc],[0,()=>Iu],1];t.StartImageScanRequest$=[3,Rl,zs,0,[mc,Zi,pc],[0,()=>t.ImageIdentifier$,0],2];t.StartImageScanResponse$=[3,Rl,Vs,0,[pc,mc,Zi,la],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$]];t.StartLifecyclePolicyPreviewRequest$=[3,Rl,Ys,0,[mc,pc,ka],[0,0,0],1];t.StartLifecyclePolicyPreviewResponse$=[3,Rl,Js,0,[pc,mc,ka,tl],[0,0,0,0]];t.SubjectIdentifier$=[3,Rl,Gs,0,[Wi],[0],1];t.Tag$=[3,Rl,ao,0,[jr,Mo],[0,0],2];t.TagResourceRequest$=[3,Rl,fo,0,[ic,nl],[0,()=>Bu],2];t.TagResourceResponse$=[3,Rl,ho,0,[],[]];t.TransitioningImageTotalCount$=[3,Rl,lo,0,[al,da],[0,1]];t.UntagResourceRequest$=[3,Rl,Do,0,[ic,ol],[0,64|0],2];t.UntagResourceResponse$=[3,Rl,ko,0,[],[]];t.UpdateImageStorageClassRequest$=[3,Rl,Eo,0,[mc,Zi,al,pc],[0,()=>t.ImageIdentifier$,0,0],3];t.UpdateImageStorageClassResponse$=[3,Rl,Co,0,[pc,mc,Zi,na],[0,0,()=>t.ImageIdentifier$,0]];t.UpdatePullThroughCacheRuleRequest$=[3,Rl,No,0,[xi,pc,mi,fi],[0,0,0,0],1];t.UpdatePullThroughCacheRuleResponse$=[3,Rl,Qo,0,[xi,pc,pl,mi,fi,gl],[0,0,4,0,0,0]];t.UpdateRepositoryCreationTemplateRequest$=[3,Rl,vo,0,[nc,yi,Ri,Ec,pa,Aa,fc,Pa,Ko,fi],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>Bu,0,()=>Jl,0,0,64|0,0],1];t.UpdateRepositoryCreationTemplateResponse$=[3,Rl,Po,0,[pc,lc],[0,()=>t.RepositoryCreationTemplate$]];t.UploadLayerPartRequest$=[3,Rl,So,0,[mc,Al,Ya,Ja,Da,pc],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,Rl,Bo,0,[pc,mc,Al,Ra],[0,0,0,1]];t.ValidatePullThroughCacheRuleRequest$=[3,Rl,zo,0,[xi,pc],[0,0],1];t.ValidatePullThroughCacheRuleResponse$=[3,Rl,Vo,0,[xi,pc,fl,mi,fi,gl,fa,Gi],[0,0,0,0,0,0,2,0]];t.VulnerablePackage$=[3,Rl,$o,0,[li,Pi,Ui,$a,Wa,Qc,Hc,wl,Oi],[0,1,0,0,0,0,0,0,0]];var Pl=null&&64|0;var Dl=[1,Rl,p,0,()=>t.Attribute$];var kl=[1,Rl,c,0,()=>t.AuthorizationData$];var _l=null&&64|0;var Ll=[1,Rl,Ee,0,()=>t.CvssScoreAdjustment$];var Ol=[1,Rl,Ie,0,()=>t.CvssScore$];var Fl=[1,Rl,Lt,0,()=>t.EnhancedImageScanFinding$];var Ul=null&&64|0;var Ml=[1,Rl,hr,0,()=>t.ImageDetail$];var Hl=[1,Rl,Er,0,()=>t.ImageFailure$];var $l=[1,Rl,Ir,0,()=>t.ImageIdentifier$];var Gl=[1,Rl,br,0,()=>t.Image$];var ql=[1,Rl,vr,0,()=>t.ImageReferrer$];var zl=[1,Rl,Dr,0,()=>t.ImageReplicationStatus$];var Vl=[1,Rl,Or,0,()=>t.ImageScanFinding$];var jl=[1,Rl,Hr,0,()=>t.ImageSigningStatus$];var Yl=null&&64|0;var Jl=[1,Rl,zr,0,()=>t.ImageTagMutabilityExclusionFilter$];var Wl=null&&64|0;var Kl=null&&64|0;var Xl=[1,Rl,Zr,0,()=>t.LayerFailure$];var Zl=[1,Rl,un,0,()=>t.Layer$];var eu=[1,Rl,yn,0,()=>t.LifecyclePolicyPreviewResult$];var tu=null&&64|0;var ru=null&&64|0;var nu=[1,Rl,ns,0,()=>t.PullThroughCacheRule$];var su=null&&64|0;var ou=null&&64|0;var iu=null&&64|0;var au=null&&64|0;var cu=[1,Rl,_s,0,()=>t.RegistryScanningRule$];var lu=null&&64|0;var uu=[1,Rl,As,0,()=>t.ReplicationDestination$];var du=[1,Rl,Qs,0,()=>t.ReplicationRule$];var pu=[1,Rl,ds,0,()=>t.RepositoryCreationTemplate$];var Au=[1,Rl,fs,0,()=>t.RepositoryFilter$];var mu=[1,Rl,ys,0,()=>t.Repository$];var gu=null&&64|0;var fu=[1,Rl,vs,0,()=>t.RepositoryScanningConfigurationFailure$];var hu=[1,Rl,Ps,0,()=>t.RepositoryScanningConfiguration$];var yu=[1,Rl,Es,0,()=>t.Resource$];var Eu=null&&64|0;var Cu=[1,Rl,eo,0,()=>t.ScanningRepositoryFilter$];var Iu=[1,Rl,to,0,()=>t.SigningRepositoryFilter$];var bu=[1,Rl,no,0,()=>t.SigningRule$];var Su=null&&64|0;var Bu=[1,Rl,po,0,()=>t.Tag$];var wu=[1,Rl,uo,0,()=>t.TransitioningImageTotalCount$];var Ru=[1,Rl,Go,0,()=>t.VulnerablePackage$];var Nu=null&&128|0;var Qu=null&&128|1;var xu=null&&128|0;t.BatchCheckLayerAvailability$=[9,Rl,C,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,Rl,D,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.BatchGetImage$=[9,Rl,V,0,()=>t.BatchGetImageRequest$,()=>t.BatchGetImageResponse$];t.BatchGetRepositoryScanningConfiguration$=[9,Rl,re,0,()=>t.BatchGetRepositoryScanningConfigurationRequest$,()=>t.BatchGetRepositoryScanningConfigurationResponse$];t.CompleteLayerUpload$=[9,Rl,oe,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreatePullThroughCacheRule$=[9,Rl,ce,0,()=>t.CreatePullThroughCacheRuleRequest$,()=>t.CreatePullThroughCacheRuleResponse$];t.CreateRepository$=[9,Rl,de,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.CreateRepositoryCreationTemplate$=[9,Rl,pe,0,()=>t.CreateRepositoryCreationTemplateRequest$,()=>t.CreateRepositoryCreationTemplateResponse$];t.DeleteLifecyclePolicy$=[9,Rl,_e,0,()=>t.DeleteLifecyclePolicyRequest$,()=>t.DeleteLifecyclePolicyResponse$];t.DeletePullThroughCacheRule$=[9,Rl,Fe,0,()=>t.DeletePullThroughCacheRuleRequest$,()=>t.DeletePullThroughCacheRuleResponse$];t.DeleteRegistryPolicy$=[9,Rl,At,0,()=>t.DeleteRegistryPolicyRequest$,()=>t.DeleteRegistryPolicyResponse$];t.DeleteRepository$=[9,Rl,je,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryCreationTemplate$=[9,Rl,Ye,0,()=>t.DeleteRepositoryCreationTemplateRequest$,()=>t.DeleteRepositoryCreationTemplateResponse$];t.DeleteRepositoryPolicy$=[9,Rl,Ct,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DeleteSigningConfiguration$=[9,Rl,xt,0,()=>t.DeleteSigningConfigurationRequest$,()=>t.DeleteSigningConfigurationResponse$];t.DeregisterPullTimeUpdateExclusion$=[9,Rl,qe,0,()=>t.DeregisterPullTimeUpdateExclusionRequest$,()=>t.DeregisterPullTimeUpdateExclusionResponse$];t.DescribeImageReplicationStatus$=[9,Rl,we,0,()=>t.DescribeImageReplicationStatusRequest$,()=>t.DescribeImageReplicationStatusResponse$];t.DescribeImages$=[9,Rl,be,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageScanFindings$=[9,Rl,xe,0,()=>t.DescribeImageScanFindingsRequest$,()=>t.DescribeImageScanFindingsResponse$];t.DescribeImageSigningStatus$=[9,Rl,Pe,0,()=>t.DescribeImageSigningStatusRequest$,()=>t.DescribeImageSigningStatusResponse$];t.DescribePullThroughCacheRules$=[9,Rl,Ge,0,()=>t.DescribePullThroughCacheRulesRequest$,()=>t.DescribePullThroughCacheRulesResponse$];t.DescribeRegistry$=[9,Rl,Nt,0,()=>t.DescribeRegistryRequest$,()=>t.DescribeRegistryResponse$];t.DescribeRepositories$=[9,Rl,Qt,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.DescribeRepositoryCreationTemplates$=[9,Rl,Ze,0,()=>t.DescribeRepositoryCreationTemplatesRequest$,()=>t.DescribeRepositoryCreationTemplatesResponse$];t.GetAccountSetting$=[9,Rl,Ut,0,()=>t.GetAccountSettingRequest$,()=>t.GetAccountSettingResponse$];t.GetAuthorizationToken$=[9,Rl,$t,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetDownloadUrlForLayer$=[9,Rl,zt,0,()=>t.GetDownloadUrlForLayerRequest$,()=>t.GetDownloadUrlForLayerResponse$];t.GetLifecyclePolicy$=[9,Rl,Yt,0,()=>t.GetLifecyclePolicyRequest$,()=>t.GetLifecyclePolicyResponse$];t.GetLifecyclePolicyPreview$=[9,Rl,Jt,0,()=>t.GetLifecyclePolicyPreviewRequest$,()=>t.GetLifecyclePolicyPreviewResponse$];t.GetRegistryPolicy$=[9,Rl,er,0,()=>t.GetRegistryPolicyRequest$,()=>t.GetRegistryPolicyResponse$];t.GetRegistryScanningConfiguration$=[9,Rl,ir,0,()=>t.GetRegistryScanningConfigurationRequest$,()=>t.GetRegistryScanningConfigurationResponse$];t.GetRepositoryPolicy$=[9,Rl,or,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.GetSigningConfiguration$=[9,Rl,lr,0,()=>t.GetSigningConfigurationRequest$,()=>t.GetSigningConfigurationResponse$];t.InitiateLayerUpload$=[9,Rl,wr,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListImageReferrers$=[9,Rl,ln,0,()=>t.ListImageReferrersRequest$,()=>t.ListImageReferrersResponse$];t.ListImages$=[9,Rl,en,0,()=>t.ListImagesRequest$,()=>t.ListImagesResponse$];t.ListPullTimeUpdateExclusions$=[9,Rl,bn,0,()=>t.ListPullTimeUpdateExclusionsRequest$,()=>t.ListPullTimeUpdateExclusionsResponse$];t.ListTagsForResource$=[9,Rl,wn,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutAccountSetting$=[9,Rl,Qn,0,()=>t.PutAccountSettingRequest$,()=>t.PutAccountSettingResponse$];t.PutImage$=[9,Rl,vn,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutImageScanningConfiguration$=[9,Rl,kn,0,()=>t.PutImageScanningConfigurationRequest$,()=>t.PutImageScanningConfigurationResponse$];t.PutImageTagMutability$=[9,Rl,On,0,()=>t.PutImageTagMutabilityRequest$,()=>t.PutImageTagMutabilityResponse$];t.PutLifecyclePolicy$=[9,Rl,Mn,0,()=>t.PutLifecyclePolicyRequest$,()=>t.PutLifecyclePolicyResponse$];t.PutRegistryPolicy$=[9,Rl,Vn,0,()=>t.PutRegistryPolicyRequest$,()=>t.PutRegistryPolicyResponse$];t.PutRegistryScanningConfiguration$=[9,Rl,Jn,0,()=>t.PutRegistryScanningConfigurationRequest$,()=>t.PutRegistryScanningConfigurationResponse$];t.PutReplicationConfiguration$=[9,Rl,Gn,0,()=>t.PutReplicationConfigurationRequest$,()=>t.PutReplicationConfigurationResponse$];t.PutSigningConfiguration$=[9,Rl,Xn,0,()=>t.PutSigningConfigurationRequest$,()=>t.PutSigningConfigurationResponse$];t.RegisterPullTimeUpdateExclusion$=[9,Rl,Bs,0,()=>t.RegisterPullTimeUpdateExclusionRequest$,()=>t.RegisterPullTimeUpdateExclusionResponse$];t.SetRepositoryPolicy$=[9,Rl,so,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.StartImageScan$=[9,Rl,qs,0,()=>t.StartImageScanRequest$,()=>t.StartImageScanResponse$];t.StartLifecyclePolicyPreview$=[9,Rl,js,0,()=>t.StartLifecyclePolicyPreviewRequest$,()=>t.StartLifecyclePolicyPreviewResponse$];t.TagResource$=[9,Rl,go,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,Rl,xo,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UpdateImageStorageClass$=[9,Rl,yo,0,()=>t.UpdateImageStorageClassRequest$,()=>t.UpdateImageStorageClassResponse$];t.UpdatePullThroughCacheRule$=[9,Rl,Ro,0,()=>t.UpdatePullThroughCacheRuleRequest$,()=>t.UpdatePullThroughCacheRuleResponse$];t.UpdateRepositoryCreationTemplate$=[9,Rl,To,0,()=>t.UpdateRepositoryCreationTemplateRequest$,()=>t.UpdateRepositoryCreationTemplateResponse$];t.UploadLayerPart$=[9,Rl,bo,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$];t.ValidatePullThroughCacheRule$=[9,Rl,qo,0,()=>t.ValidatePullThroughCacheRuleRequest$,()=>t.ValidatePullThroughCacheRuleResponse$]},8704:(e,t,n)=>{var o=n(2356);var i=n(402);var c=n(8857);var d=n(5152);var p=n(5118);var y=n(4645);var C=n(6890);var Q=n(1411);var v=n(3422);var D=n(2430);var k=n(8385);var $=n(1577);var V=n(4274);const ee={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!ee.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){ee.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const c=await i(o);const d=e?.signingRegion;const p=e?.signingRegionSet;const y=e?.signingName;return{config:n,signer:c,signingRegion:d,signingRegionSet:p,signingName:y}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:c,signer:d}=i;let{signingRegion:p,signingName:y}=i;const C=n.context;if(C?.authSchemes?.length??0>1){const[e,t]=C.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){p=t?.signingRegion??p;y=t?.signingName??y}}const Q=await d.sign(e,{signingDate:getSkewCorrectedDate(c.systemClockOffset),signingRegion:p,signingService:y});return Q}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const c=o.systemClockOffset!==i;if(c&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const te=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:c,signingRegion:d,signingRegionSet:p,signingName:y}=await validateSigningProperties(n);const C=await(i.sigv4aSigningRegionSet?.());const Q=(C??p??[d]).join(",");const v=await c.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:Q,signingService:y});return v}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const re="AWS_AUTH_SCHEME_PREFERENCE";const ne="auth_scheme_preference";const se={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(re in e))return undefined;return getArrayForCommaSeparatedString(e[re])},configFileSelector:e=>{if(!(ne in e))return undefined;return getArrayForCommaSeparatedString(e[ne])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const oe={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new c.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new c.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const c=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const p=bindCallerConfig(e,c);if(n&&!p.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await p(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return d.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=p.memoized;o.configBound=p.configBound;o.attributed=true}else{o=p}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:c=true,systemClockOffset:y=e.systemClockOffset||0,sha256:C}=e;let Q;if(e.signer){Q=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){Q=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:C,uriEscapePath:c};const y=e.signerConstructor||p.SignatureV4;return new y(d)}))}else{Q=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:C,uriEscapePath:c};const y=e.signerConstructor||p.SignatureV4;return new y(d)}}const v=Object.assign(e,{systemClockOffset:y,signingEscapePath:c,signer:Q});return v};const ie=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:c}=e.getMergedTraits();const d=c===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,c){let d=t;let p=e;if(e.includes("#")){[d,p]=e.split("#")}const y={$metadata:i,$fault:n.statusCode<500?"client":"server"};const Q=C.TypeRegistry.for(d);try{const t=c?.(Q,p)??Q.getSchema(e);return{errorSchema:t,errorMetadata:y}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=C.TypeRegistry.for("smithy.ts.sdk.synthetic."+d);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:p}),y),o)}throw this.decorateServiceException(Object.assign(new Error(p),y),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=Q.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return Q.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const c={Code:t,Type:o};Object.assign(e,c);for(const[e,t]of i){c[e==="message"?"Message":e]=t}delete c.__type;e.Error=c}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>C.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends y.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const c=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return y.loadSmithyRpcV2CborErrorCode(n,o)??"Unknown"})();const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const Q=C.NormalizedSchema.of(d);const v=o.message??o.Message??"Unknown";const D=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const k=new D(v);const $={};for(const[e,t]of Q.structIterator()){if(o[e]!=null){$[e]=this.deserializer.readValue(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,$)}throw this.mixin.decorateServiceException(Object.assign(k,p,{$fault:Q.getMergedTraits().error,message:v},$),o)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||tQ.collectBody(e,t).then((e=>(t?.utf8Encoder??$.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=C.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let c=void 0;const{jsonName:d}=this.settings;if(d){c={}}let p;if(n){p=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(d){o=y.getMergedTraits().jsonName??o;c[o]=t}if(n){p.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){p.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?c[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,c]of Object.entries(t)){if(i||c!=null){n[o]=this._read(e,c)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return k.fromBase64(t)}const i=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&i){const e=i==="application/json"||i.endsWith("+json");if(e){return D.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=v.determineTimestampFormat(o,this.settings);switch(e){case 5:return D.parseRfc3339DateTimeWithOffset(t);case 6:return D.parseRfc7231DateTime(t);case 7:return D.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof D.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new D.NumericValue(e.string,e.type)}return new D.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof D.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const ae=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof D.NumericValue){const e=`${ae+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${ae+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=C.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=C.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const i=C.NormalizedSchema.of(e);if(o){if(i.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let c=void 0;if(o){c={}}for(const[t,d]of i.structIterator()){const p=this._write(d,e[t],i);if(p!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;c[t]=e}n[e]=p}}if(i.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,i]of Object.entries(e)){const e=o?c[t]??t:t;if(!(e in n)){n[e]=this._write(15,i)}}}return n}if(Array.isArray(t)&&i.isListSchema()){const e=i.getValueSchema();const n=[];const o=!!i.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(i.isMapSchema()){const e=i.getValueSchema();const n={};const o=!!i.getMergedTraits().sparse;for(const[i,c]of Object.entries(t)){if(o||c!=null){n[i]=this._write(e,c)}}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema())){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema())){const e=v.determineTimestampFormat(i,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return D.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof D.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(i.isStringSchema()){if(typeof t==="undefined"&&i.isIdempotencyToken()){return D.generateIdempotencyToken()}const e=i.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return D.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&i.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&i.isBlobSchema()){if(i===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??k.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(i.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof D.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(i,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends v.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(C.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,i){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const c=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const y=C.NormalizedSchema.of(d);const Q=o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);const k={};for(const[e,t]of y.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends v.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new v.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new v.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=C.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const i=C.NormalizedSchema.of(e.output);for(const[e,t]of i.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,i){const c=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i);const y=C.NormalizedSchema.of(d);const Q=o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return Q.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new v.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=C.NormalizedSchema.of(e);const i=o.getMemberSchemas();const c=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(i).find((e=>!!e.getMemberTraits().eventPayload));if(c){const e={};const n=Object.keys(i)[0];const o=i[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(i[n],t)}return e}const d=(this.serdeContext?.utf8Encoder??$.toUtf8)(t);const p=this.parseXml(d);return this.readSchema(e,n?p[n]:p)}readSchema(e,t){const n=C.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const c=[];const d=o.getMergedTraits().xmlName??"member";const p=i?t:(t[0]??t)[d];const y=Array.isArray(p)?p:[p];for(const t of y){if(t!=null||e){c.push(this.readSchema(o,t))}}return c}const c={};if(n.isMapSchema()){const o=n.getKeySchema();const d=n.getValueSchema();let p;if(i){p=Array.isArray(t)?t:[t]}else{p=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const C=d.getMergedTraits().xmlName??"value";for(const t of p){const n=t[y];const o=t[C];if(o!=null||e){c[n]=this.readSchema(d,o)}}return c}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,c)}for(const[i,d]of n.structIterator()){const n=d.getMergedTraits();const p=!n.httpPayload?d.getMemberTraits().xmlName??i:n.xmlName??d.getName();if(e){o.mark(p)}if(t[p]!=null){c[i]=this.readSchema(d,t[p])}}if(e){o.writeUnknown()}return c}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=V.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return Q.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=C.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??k.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(D.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof D.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=v.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Q.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let c=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const p=i?`${n}${c}`:`${n}${d}.${c}`;this.write(e,o,p);++c}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const c=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,p]of Object.entries(t)){if(p==null){continue}const t=e.getMergedTraits();const y=this.getKey("key",t.xmlName,t.ec2QueryName);const C=c?`${n}${d}.${y}`:`${n}entry.${d}.${y}`;const Q=i.getMergedTraits();const v=this.getKey("value",Q.xmlName,Q.ec2QueryName);const D=c?`${n}${d}.${v}`:`${n}entry.${d}.${v}`;this.write(e,o,C);this.write(i,p,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,c]of o.structIterator()){if(t[i]==null&&!c.isIdempotencyToken()){continue}const o=c.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const p=`${n}${d}`;this.write(c,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:c}=this.settings;if(i&&n){return n}const d=t??e;if(c&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${v.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=v.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends v.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(C.deref(e.input)==="unit"||!o.body){o.body=""}const i=e.name.split("#")[1]??e.name;o.body=`Action=${i}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const i=C.NormalizedSchema.of(e.output);const c={};if(n.statusCode>=300){const i=await v.collectBody(n.body,t);if(i.byteLength>0){Object.assign(c,await o.read(15,i))}await this.handleError(e,t,n,c,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const d=e.name.split("#")[1]??e.name;const p=i.isStructSchema()&&this.useNestedResult()?d+"Result":undefined;const y=await v.collectBody(n.body,t);if(y.byteLength>0){Object.assign(c,await o.read(i,y,p))}const Q={$metadata:this.deserializeMetadata(n),...c};return Q}useNestedResult(){return true}async handleError(e,t,n,o,i){const c=this.loadQueryErrorCode(n,o)??"Unknown";const d=this.loadQueryError(o)??{};const p=this.loadQueryErrorMessage(o);d.message=p;d.Error={Type:d.Type,Code:d.Code,Message:p};const{errorSchema:y,errorMetadata:Q}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,d,i,this.mixin.findQueryCompatibleError);const v=C.NormalizedSchema.of(y);const D=C.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const k=new D(p);const $={Type:d.Error.Type,Code:d.Error.Code,Error:d.Error};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=d[n]??o[n];$[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,Q,{$fault:v.getMergedTraits().error,message:p},$),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=V.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return Q.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=C.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??k.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const c=V.XmlNode.of(i);const[d,p]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){c.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,c,p)}else if(o.isMapSchema()){this.writeMap(o,e,c,p)}else if(o.isStructSchema()){c.addChildNode(this.writeStruct(o,e,p))}else{const t=V.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,p);c.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=V.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof V.XmlNode||t instanceof V.XmlText){c.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,p);c.addChildNode(o)}if(p){c.addAttribute(d,p)}return c}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const c=e.getValueSchema();const d=c.getMergedTraits();const p=!!d.sparse;const y=!!i.xmlFlattened;const[C,Q]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(c.isListSchema()){this.writeList(c,Array.isArray(n)?n:[n],t,Q)}else if(c.isMapSchema()){this.writeMap(c,n,t,Q)}else if(c.isStructSchema()){const o=this.writeStruct(c,n,Q);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=V.XmlNode.of(y?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(c,n,o,Q);t.addChildNode(o)}};if(y){for(const e of t){if(p||e!=null){writeItem(n,e)}}}else{const o=V.XmlNode.of(i.xmlName??e.getMemberName());if(Q){o.addAttribute(C,Q)}for(const e of t){if(p||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const c=e.getMergedTraits();const d=e.getKeySchema();const p=d.getMergedTraits();const y=p.xmlName??"key";const C=e.getValueSchema();const Q=C.getMergedTraits();const v=Q.xmlName??"value";const D=!!Q.sparse;const k=!!c.xmlFlattened;const[$,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=V.XmlNode.of(y,t);const[i,c]=this.getXmlnsAttribute(d,ee);if(c){o.addAttribute(i,c)}e.addChildNode(o);let p=V.XmlNode.of(v);if(C.isListSchema()){this.writeList(C,n,p,ee)}else if(C.isMapSchema()){this.writeMap(C,n,p,ee,true)}else if(C.isStructSchema()){p=this.writeStruct(C,n,ee)}else{this.writeSimpleInto(C,n,p,ee)}e.addChildNode(p)};if(k){for(const[o,i]of Object.entries(t)){if(D||i!=null){const t=V.XmlNode.of(c.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=V.XmlNode.of(c.xmlName??e.getMemberName());if(ee){o.addAttribute($,ee)}n.addChildNode(o)}for(const[e,c]of Object.entries(t)){if(D||c!=null){const t=V.XmlNode.of("entry");addKeyValue(t,e,c);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=C.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??k.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=v.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=Q.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=Q.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof D.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=D.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const i=this.writeSimple(e,t);const c=C.NormalizedSchema.of(e);const d=new V.XmlText(i);const[p,y]=this.getXmlnsAttribute(c,o);if(y){n.addAttribute(p,y)}n.addChildNode(d)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends v.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new v.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new v.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const i=C.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const c=loadRestXmlErrorCode(n,o)??"Unknown";if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!i.requestId){i.requestId=o.RequestId}const{errorSchema:d,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,o,i);const y=C.NormalizedSchema.of(d);const Q=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const v=C.TypeRegistry.for(d[1]).getErrorCtor(d)??Error;const D=new v(Q);await this.deserializeHttpMessage(d,t,n,o);const k={};for(const[e,t]of y.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,p,{$fault:y.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AWSSDKSigV4Signer=te;t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=se;t.NODE_SIGV4A_CONFIG_OPTIONS=oe;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody;t.resolveAWSSDKSigV4Config=ie;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=ee;t.validateSigningProperties=validateSigningProperties},5152:(e,t)=>{const n={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!n.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){n.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=n},7288:(e,t,n)=>{var o=n(4645);var i=n(6890);var c=n(1411);var d=n(3422);var p=n(2430);var y=n(8385);var C=n(1577);var Q=n(4274);class ProtocolLib{queryCompat;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:c}=e.getMergedTraits();const d=c===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,c,d){let p=t;let y=e;if(e.includes("#")){[p,y]=e.split("#")}const C={$metadata:c,$fault:n.statusCode<500?"client":"server"};const Q=i.TypeRegistry.for(p);try{const t=d?.(Q,y)??Q.getSchema(e);return{errorSchema:t,errorMetadata:C}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:y}),C),o)}throw this.decorateServiceException(Object.assign(new Error(y),C),o)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=c.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return c.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const c={Code:t,Type:o};Object.assign(e,c);for(const[e,t]of i){c[e==="message"?"Message":e]=t}delete c.__type;e.Error=c}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends o.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,awsQueryCompatible:t}){super({defaultNamespace:e});this.awsQueryCompatible=!!t;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,c,d){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(c,n)}const p=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return o.loadSmithyRpcV2CborErrorCode(n,c)??"Unknown"})();const{errorSchema:y,errorMetadata:C}=await this.mixin.getErrorSchemaOrThrowBaseException(p,this.options.defaultNamespace,n,c,d,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const Q=i.NormalizedSchema.of(y);const v=c.message??c.Message??"Unknown";const D=i.TypeRegistry.for(y[1]).getErrorCtor(y)??Error;const k=new D(v);const $={};for(const[e,t]of Q.structIterator()){if(c[e]!=null){$[e]=this.deserializer.readValue(t,c[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(c,$)}throw this.mixin.decorateServiceException(Object.assign(k,C,{$fault:Q.getMergedTraits().error,message:v},$),c)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||tc.collectBody(e,t).then((e=>(t?.utf8Encoder??C.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=i.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let c=void 0;const{jsonName:d}=this.settings;if(d){c={}}let p;if(n){p=new UnionSerde(e,i)}for(const[t,y]of o.structIterator()){let o=t;if(d){o=y.getMergedTraits().jsonName??o;c[o]=t}if(n){p.mark(o)}if(e[o]!=null){i[t]=this._read(y,e[o])}}if(n){p.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?c[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];const i=!!o.getMergedTraits().sparse;for(const o of t){if(i||o!=null){n.push(this._read(e,o))}}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};const i=!!o.getMergedTraits().sparse;for(const[o,c]of Object.entries(t)){if(i||c!=null){n[o]=this._read(e,c)}}return n}}if(o.isBlobSchema()&&typeof t==="string"){return y.fromBase64(t)}const c=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&c){const e=c==="application/json"||c.endsWith("+json");if(e){return p.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:return p.parseRfc3339DateTimeWithOffset(t);case 6:return p.parseRfc7231DateTime(t);case 7:return p.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof p.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new p.NumericValue(e.string,e.type)}return new p.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof p.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const v=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof p.NumericValue){const e=`${v+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${v+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=i.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const c=i.NormalizedSchema.of(e);if(o){if(c.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let i=void 0;if(o){i={}}for(const[t,d]of c.structIterator()){const p=this._write(d,e[t],c);if(p!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;i[t]=e}n[e]=p}}if(c.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,c]of Object.entries(e)){const e=o?i[t]??t:t;if(!(e in n)){n[e]=this._write(15,c)}}}return n}if(Array.isArray(t)&&c.isListSchema()){const e=c.getValueSchema();const n=[];const o=!!c.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(c.isMapSchema()){const e=c.getValueSchema();const n={};const o=!!c.getMergedTraits().sparse;for(const[i,c]of Object.entries(t)){if(o||c!=null){n[i]=this._write(e,c)}}return n}if(t instanceof Uint8Array&&(c.isBlobSchema()||c.isDocumentSchema())){if(c===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(t instanceof Date&&(c.isTimestampSchema()||c.isDocumentSchema())){const e=d.determineTimestampFormat(c,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return p.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof p.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(c.isStringSchema()){if(typeof t==="undefined"&&c.isIdempotencyToken()){return p.generateIdempotencyToken()}const e=c.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return p.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&c.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&c.isBlobSchema()){if(c===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??y.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(c.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof p.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(c,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends d.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e});this.serviceTarget=t;this.codec=o??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(i.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,c){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const C=i.NormalizedSchema.of(p);const Q=o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);const k={};for(const[e,t]of C.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends d.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e}){super({defaultNamespace:e});const t={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const c=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const c=i.NormalizedSchema.of(e.output);for(const[e,t]of c.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,c){const d=loadRestJsonErrorCode(n,o)??"Unknown";const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c);const C=i.NormalizedSchema.of(p);const Q=o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);await this.deserializeHttpMessage(p,t,n,o);const k={};for(const[e,t]of C.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return c.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new d.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=i.NormalizedSchema.of(e);const c=o.getMemberSchemas();const d=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(c).find((e=>!!e.getMemberTraits().eventPayload));if(d){const e={};const n=Object.keys(c)[0];const o=c[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(c[n],t)}return e}const p=(this.serdeContext?.utf8Encoder??C.toUtf8)(t);const y=this.parseXml(p);return this.readSchema(e,n?y[n]:y)}readSchema(e,t){const n=i.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.sparse;const i=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const c=[];const d=o.getMergedTraits().xmlName??"member";const p=i?t:(t[0]??t)[d];const y=Array.isArray(p)?p:[p];for(const t of y){if(t!=null||e){c.push(this.readSchema(o,t))}}return c}const c={};if(n.isMapSchema()){const o=n.getKeySchema();const d=n.getValueSchema();let p;if(i){p=Array.isArray(t)?t:[t]}else{p=Array.isArray(t.entry)?t.entry:[t.entry]}const y=o.getMergedTraits().xmlName??"key";const C=d.getMergedTraits().xmlName??"value";for(const t of p){const n=t[y];const o=t[C];if(o!=null||e){c[n]=this.readSchema(d,o)}}return c}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,c)}for(const[i,d]of n.structIterator()){const n=d.getMergedTraits();const p=!n.httpPayload?d.getMemberTraits().xmlName??i:n.xmlName??d.getName();if(e){o.mark(p)}if(t[p]!=null){c[i]=this.readSchema(d,t[p])}}if(e){o.writeUnknown()}return c}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=Q.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return c.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=i.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??y.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(p.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof p.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(c.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let c=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const p=i?`${n}${c}`:`${n}${d}.${c}`;this.write(e,o,p);++c}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const c=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,p]of Object.entries(t)){if(p==null){continue}const t=e.getMergedTraits();const y=this.getKey("key",t.xmlName,t.ec2QueryName);const C=c?`${n}${d}.${y}`:`${n}entry.${d}.${y}`;const Q=i.getMergedTraits();const v=this.getKey("value",Q.xmlName,Q.ec2QueryName);const D=c?`${n}${d}.${v}`:`${n}entry.${d}.${v}`;this.write(e,o,C);this.write(i,p,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,c]of o.structIterator()){if(t[i]==null&&!c.isIdempotencyToken()){continue}const o=c.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const p=`${n}${d}`;this.write(c,t[i],p);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:c}=this.settings;if(i&&n){return n}const d=t??e;if(c&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${d.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=d.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends d.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(i.deref(e.input)==="unit"||!o.body){o.body=""}const c=e.name.split("#")[1]??e.name;o.body=`Action=${c}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const p={};if(n.statusCode>=300){const i=await d.collectBody(n.body,t);if(i.byteLength>0){Object.assign(p,await o.read(15,i))}await this.handleError(e,t,n,p,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const y=e.name.split("#")[1]??e.name;const C=c.isStructSchema()&&this.useNestedResult()?y+"Result":undefined;const Q=await d.collectBody(n.body,t);if(Q.byteLength>0){Object.assign(p,await o.read(c,Q,C))}const v={$metadata:this.deserializeMetadata(n),...p};return v}useNestedResult(){return true}async handleError(e,t,n,o,c){const d=this.loadQueryErrorCode(n,o)??"Unknown";const p=this.loadQueryError(o)??{};const y=this.loadQueryErrorMessage(o);p.message=y;p.Error={Type:p.Type,Code:p.Code,Message:y};const{errorSchema:C,errorMetadata:Q}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,p,c,this.mixin.findQueryCompatibleError);const v=i.NormalizedSchema.of(C);const D=i.TypeRegistry.for(C[1]).getErrorCtor(C)??Error;const k=new D(y);const $={Type:p.Error.Type,Code:p.Error.Code,Error:p.Error};for(const[e,t]of v.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=p[n]??o[n];$[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,Q,{$fault:v.getMergedTraits().error,message:y},$),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=Q.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return c.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??y.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const c=Q.XmlNode.of(i);const[d,p]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){c.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,c,p)}else if(o.isMapSchema()){this.writeMap(o,e,c,p)}else if(o.isStructSchema()){c.addChildNode(this.writeStruct(o,e,p))}else{const t=Q.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,p);c.addChildNode(t)}}}const{$unknown:y}=t;if(y&&e.isUnionSchema()&&Array.isArray(y)&&Object.keys(t).length===1){const[e,n]=y;const o=Q.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof Q.XmlNode||t instanceof Q.XmlText){c.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,p);c.addChildNode(o)}if(p){c.addAttribute(d,p)}return c}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const c=e.getValueSchema();const d=c.getMergedTraits();const p=!!d.sparse;const y=!!i.xmlFlattened;const[C,v]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(c.isListSchema()){this.writeList(c,Array.isArray(n)?n:[n],t,v)}else if(c.isMapSchema()){this.writeMap(c,n,t,v)}else if(c.isStructSchema()){const o=this.writeStruct(c,n,v);t.addChildNode(o.withName(y?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=Q.XmlNode.of(y?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(c,n,o,v);t.addChildNode(o)}};if(y){for(const e of t){if(p||e!=null){writeItem(n,e)}}}else{const o=Q.XmlNode.of(i.xmlName??e.getMemberName());if(v){o.addAttribute(C,v)}for(const e of t){if(p||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const c=e.getMergedTraits();const d=e.getKeySchema();const p=d.getMergedTraits();const y=p.xmlName??"key";const C=e.getValueSchema();const v=C.getMergedTraits();const D=v.xmlName??"value";const k=!!v.sparse;const $=!!c.xmlFlattened;const[V,ee]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=Q.XmlNode.of(y,t);const[i,c]=this.getXmlnsAttribute(d,ee);if(c){o.addAttribute(i,c)}e.addChildNode(o);let p=Q.XmlNode.of(D);if(C.isListSchema()){this.writeList(C,n,p,ee)}else if(C.isMapSchema()){this.writeMap(C,n,p,ee,true)}else if(C.isStructSchema()){p=this.writeStruct(C,n,ee)}else{this.writeSimpleInto(C,n,p,ee)}e.addChildNode(p)};if($){for(const[o,i]of Object.entries(t)){if(k||i!=null){const t=Q.XmlNode.of(c.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=Q.XmlNode.of(c.xmlName??e.getMemberName());if(ee){o.addAttribute(V,ee)}n.addChildNode(o)}for(const[e,c]of Object.entries(t)){if(k||c!=null){const t=Q.XmlNode.of("entry");addKeyValue(t,e,c);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=i.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??y.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=d.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=c.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=c.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof p.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=p.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const c=this.writeSimple(e,t);const d=i.NormalizedSchema.of(e);const p=new Q.XmlText(c);const[y,C]=this.getXmlnsAttribute(d,o);if(C){n.addAttribute(y,C)}n.addChildNode(p)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends d.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const c=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,c){const d=loadRestXmlErrorCode(n,o)??"Unknown";if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!c.requestId){c.requestId=o.RequestId}const{errorSchema:p,errorMetadata:y}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,c);const C=i.NormalizedSchema.of(p);const Q=o.Error?.message??o.Error?.Message??o.message??o.Message??"Unknown";const v=i.TypeRegistry.for(p[1]).getErrorCtor(p)??Error;const D=new v(Q);await this.deserializeHttpMessage(p,t,n,o);const k={};for(const[e,t]of C.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,y,{$fault:C.getMergedTraits().error,message:Q},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},5606:(e,t,n)=>{var o=n(5152);var i=n(8857);const c="AWS_ACCESS_KEY_ID";const d="AWS_SECRET_ACCESS_KEY";const p="AWS_SESSION_TOKEN";const y="AWS_CREDENTIAL_EXPIRATION";const C="AWS_CREDENTIAL_SCOPE";const Q="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[c];const n=process.env[d];const v=process.env[p];const D=process.env[y];const k=process.env[C];const $=process.env[Q];if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...v&&{sessionToken:v},...D&&{expiration:new Date(D)},...k&&{credentialScope:k},...$&&{accountId:$}};o.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new i.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=Q;t.ENV_CREDENTIAL_SCOPE=C;t.ENV_EXPIRATION=y;t.ENV_KEY=c;t.ENV_SECRET=d;t.ENV_SESSION=p;t.fromEnv=fromEnv},5861:(e,t,n)=>{var o=n(5606);var i=n(8857);var c=n(4964);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:c,fromInstanceMetadata:p}=await n.e(566).then(n.t.bind(n,566,19));if(process.env[o]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(605).then(n.bind(n,8605));return i.chain(t(e),c(e))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new i.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return p(e)};function memoizeChain(e,t){const n=internalCreateChain(e);let o;let i;let c;const provider=async e=>{if(e?.forceRefresh){return await n(e)}if(c?.expiration){if(c?.expiration?.getTime(){c=e})).finally((()=>{i=undefined}))}}else{o=n(e).then((e=>{c=e})).finally((()=>{o=undefined}));return provider(e)}}return c};return provider}const internalCreateChain=e=>async t=>{let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};let p=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[c.ENV_PROFILE];if(t){const t=process.env[o.ENV_KEY]&&process.env[o.ENV_SECRET];if(t){if(!p){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);p=true}}throw new i.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return o.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:c,ssoRegion:d,ssoRoleName:p,ssoSession:y}=e;if(!o&&!c&&!d&&!p&&!y){throw new i.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:C}=await n.e(998).then(n.t.bind(n,998,19));return C(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=await n.e(869).then(n.t.bind(n,5869,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=await n.e(360).then(n.t.bind(n,5360,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=await Promise.all([n.e(136),n.e(956)]).then(n.t.bind(n,9956,23));return o(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new i.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},2590:(e,t,n)=>{var o=n(2356);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:i}=n;const{handlerProtocol:c=""}=e.requestHandler.metadata||{};if(c.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(n)};const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),i)}});t.getHostHeaderPlugin=getHostHeaderPlugin;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=i;t.resolveHostHeaderConfig=resolveHostHeaderConfig},5242:(e,t)=>{const loggerMiddleware=()=>(e,t)=>async n=>{try{const o=await e(n);const{clientName:i,commandName:c,logger:d,dynamoDbDocumentClientOptions:p={}}=t;const{overrideInputFilterSensitiveLog:y,overrideOutputFilterSensitiveLog:C}=p;const Q=y??t.inputFilterSensitiveLog;const v=C??t.outputFilterSensitiveLog;const{$metadata:D,...k}=o.output;d?.info?.({clientName:i,commandName:c,input:Q(n.input),output:v(k),metadata:D});return o}catch(e){const{clientName:o,commandName:i,logger:c,dynamoDbDocumentClientOptions:d={}}=t;const{overrideInputFilterSensitiveLog:p}=d;const y=p??t.inputFilterSensitiveLog;c?.error?.({clientName:o,commandName:i,input:y(n.input),error:e,metadata:e.$metadata});throw e}};const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),n)}});t.getLoggerPlugin=getLoggerPlugin;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=n},1568:(e,t,n)=>{var o=n(2521);const i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(o.recursionDetectionMiddleware(),i)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},2521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.recursionDetectionMiddleware=void 0;const o=n(9320);const i=n(2356);const c="X-Amzn-Trace-Id";const d="AWS_LAMBDA_FUNCTION_NAME";const p="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:n}=t;if(!i.HttpRequest.isInstance(n)){return e(t)}const y=Object.keys(n.headers??{}).find((e=>e.toLowerCase()===c.toLowerCase()))??c;if(n.headers.hasOwnProperty(y)){return e(t)}const C=process.env[d];const Q=process.env[p];const v=await o.InvokeStore.getInstanceAsync();const D=v?.getXRayTraceId();const k=D??Q;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(C)&&nonEmptyString(k)){n.headers[c]=k}return e({...t,request:n})};t.recursionDetectionMiddleware=recursionDetectionMiddleware},2959:(e,t,n)=>{var o=n(402);var i=n(3068);var c=n(2356);var d=n(8704);const p=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=o.normalizeProvider(e.userAgentAppId??p);const{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==="string"?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!isValidUserAgentAppId(n)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof n!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(n.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return n}})}const y=/\d{12}\.ddb/;async function checkFeatures(e,t,n){const o=n.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){d.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const n=await t.retryStrategy();if(typeof n.acquireInitialRetryToken==="function"){if(n.constructor?.name?.includes("Adaptive")){d.setFeature(e,"RETRY_MODE_ADAPTIVE","F")}else{d.setFeature(e,"RETRY_MODE_STANDARD","E")}}else{d.setFeature(e,"RETRY_MODE_LEGACY","D")}}if(typeof t.accountIdEndpointMode==="function"){const n=e.endpointV2;if(String(n?.url?.hostname).match(y)){d.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":d.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":d.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":d.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const t=i;if(t.accountId){d.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[n,o]of Object.entries(t.$source??{})){d.setFeature(e,n,o)}}}const C="user-agent";const Q="x-amz-user-agent";const v=" ";const D="/";const k=/[^!$%&'*+\-.^_`|~\w]/g;const $=/[^!$%&'*+\-.^_`|~\w#]/g;const V="-";const ee=1024;function encodeFeatures(e){let t="";for(const n in e){const o=e[n];if(t.length+o.length+1<=ee){if(t.length){t+=","+o}else{t+=o}continue}break}return t}const userAgentMiddleware=e=>(t,n)=>async o=>{const{request:d}=o;if(!c.HttpRequest.isInstance(d)){return t(o)}const{headers:p}=d;const y=n?.userAgent?.map(escapeUserAgent)||[];const D=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(n,e,o);const k=n;D.push(`m/${encodeFeatures(Object.assign({},n.__smithy_context?.features,k.__aws_sdk_context?.features))}`);const $=e?.customUserAgent?.map(escapeUserAgent)||[];const V=await e.userAgentAppId();if(V){D.push(escapeUserAgent([`app`,`${V}`]))}const ee=i.getUserAgentPrefix();const te=(ee?[ee]:[]).concat([...D,...y,...$]).join(v);const re=[...D.filter((e=>e.startsWith("aws-sdk-"))),...$].join(v);if(e.runtime!=="browser"){if(re){p[Q]=p[Q]?`${p[C]} ${re}`:re}p[C]=te}else{p[Q]=te}return t({...o,request:d})};const escapeUserAgent=e=>{const t=e[0].split(D).map((e=>e.replace(k,V))).join(D);const n=e[1]?.replace($,V);const o=t.indexOf(D);const i=t.substring(0,o);let c=t.substring(o+1);if(i==="api"){c=c.toLowerCase()}return[i,c,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const te={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),te)}});t.DEFAULT_UA_APP_ID=p;t.getUserAgentMiddlewareOptions=te;t.getUserAgentPlugin=getUserAgentPlugin;t.resolveUserAgentConfig=resolveUserAgentConfig;t.userAgentMiddleware=userAgentMiddleware},6463:(e,t,n)=>{var o=n(5779);var i=n(9316);const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});t.NODE_REGION_CONFIG_FILE_OPTIONS=i.NODE_REGION_CONFIG_FILE_OPTIONS;t.NODE_REGION_CONFIG_OPTIONS=i.NODE_REGION_CONFIG_OPTIONS;t.REGION_ENV_NAME=i.REGION_ENV_NAME;t.REGION_INI_NAME=i.REGION_INI_NAME;t.resolveRegionConfig=i.resolveRegionConfig;t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},5779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.warning=void 0;t.stsRegionDefaultResolver=stsRegionDefaultResolver;const o=n(9316);const i=n(5704);function stsRegionDefaultResolver(e={}){return(0,i.loadConfig)({...o.NODE_REGION_CONFIG_OPTIONS,async default(){if(!t.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}t.warning={silence:false}},3068:(e,t,n)=>{var o=n(9674);var i=n(4494);const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!o.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(o.isIpAddress(e)){return false}return true};const c=":";const d="/";const parseArn=e=>{const t=e.split(c);if(t.length<6)return null;const[n,o,i,p,y,...C]=t;if(n!=="arn"||o===""||i===""||C.join(c)==="")return null;const Q=C.map((e=>e.split(d))).flat();return{partition:o,service:i,region:p,accountId:y,resourceId:Q}};var p=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var y="1.1";var C={partitions:p,version:y};let Q=C;let v="";const partition=e=>{const{partitions:t}=Q;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,i]of Object.entries(t)){if(n===e){return{...o,...i}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};const setPartitionInfo=(e,t="")=>{Q=e;v=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(C,"")};const getUserAgentPrefix=()=>v;const D={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};o.customEndpointFunctions.aws=D;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>i.parseUrl(e.url);t.EndpointError=o.EndpointError;t.isIpAddress=o.isIpAddress;t.resolveEndpoint=o.resolveEndpoint;t.awsEndpointFunctions=D;t.getUserAgentPrefix=getUserAgentPrefix;t.partition=partition;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.setPartitionInfo=setPartitionInfo;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo},1656:(e,t,n)=>{var o=n(8161);var i=n(1708);var c=n(1455);var d=n(6760);var p=n(2959);const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const t of e){if(i.versions[t]){return[`md/${t}`,i.versions[t]]}}return["md/nodejs",i.versions.node]};const getTypeScriptPackageJsonPath=(e="")=>{let t;const n=d.normalize(e);const o=n.split(d.sep);const i=o.indexOf("node_modules");if(i!==-1){t=o.slice(0,i).join(d.sep)}else{t=e}return d.join(t,"node_modules","typescript","package.json")};let y;const getTypeScriptUserAgentPair=async()=>{if(y===null){return undefined}else if(typeof y==="string"){return["md/tsc",y]}try{const e=await c.readFile(getTypeScriptPackageJsonPath(__dirname),"utf-8");const{version:t}=JSON.parse(e);if(typeof t!=="string"){y=null;return undefined}y=t;return["md/tsc",y]}catch{y=null}};const C={isCrtAvailable:false};const isCrtAvailable=()=>{if(C.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>{const n=getRuntimeUserAgentPair();return async c=>{const d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o.platform()}`,o.release()],["lang/js"],n];const p=await getTypeScriptUserAgentPair();if(p){d.push(p)}const y=isCrtAvailable();if(y){d.push(y)}if(e){d.push([`api/${e}`,t])}if(i.env.AWS_EXECUTION_ENV){d.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const C=await(c?.userAgentAppId?.());const Q=C?[...d,[`app/${C}`]]:[...d];return Q}};const Q=createDefaultUserAgentProvider;const v="AWS_SDK_UA_APP_ID";const D="sdk_ua_app_id";const k="sdk-ua-app-id";const $={environmentVariableSelector:e=>e[v],configFileSelector:e=>e[D]??e[k],default:p.DEFAULT_UA_APP_ID};t.NODE_APP_ID_CONFIG_OPTIONS=$;t.UA_APP_ID_ENV_NAME=v;t.UA_APP_ID_INI_NAME=D;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.crtAvailability=C;t.defaultUserAgent=Q},4274:(e,t,n)=>{var o=n(3343);function escapeAttribute(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function escapeElement(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"
").replace(/\u2028/,"
")}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,n){const o=new XmlNode(e);if(t!==undefined){o.addChildNode(new XmlText(t))}if(n!==undefined){o.withName(n)}return o}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,n=t){if(e[t]!=null){const o=XmlNode.of(t,e[t]).withName(n);this.c(o)}}l(e,t,n,o){if(e[t]!=null){const e=o();e.map((e=>{e.withName(n);this.c(e)}))}}lc(e,t,n,o){if(e[t]!=null){const e=o();const t=new XmlNode(n);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const n=this.attributes;for(const e of Object.keys(n)){const o=n[e];if(o!=null){t+=` ${e}="${escapeAttribute(""+o)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}${this.name}>`}}t.parseXML=o.parseXML;t.XmlNode=XmlNode;t.XmlText=XmlText},3343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const o=n(591);const i=new o.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});i.addEntity("#xD","\r");i.addEntity("#10","\n");function parseXML(e){return i.parse(e,true)}},9320:(e,t,n)=>{const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(e){return Object.values(o).includes(e)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(n.t.bind(n,6698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const n=this.als.getStore();if(!n){throw new Error("No context available")}n[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(){if(!t){t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const t=e?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=t;return t}else{return t}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},5862:(e,t,n)=>{var o;o={value:true};var i=n(5004);var c=n(1391);var d=n(7132);const p=i.createClientLogger("core-lro");const y=2e3;const C=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:i,processResult:c,getError:d,response:y,setErrorAsResult:C}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=d===null||d===void 0?void 0:d(y);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const i=`The long-running operation has failed${o}`;n.setError(t,new Error(i));n.setFailed(t);p.warning(i);break}case"canceled":{n.setCanceled(t);break}}if((i===null||i===void 0?void 0:i(y,t))||i===undefined&&["succeeded","canceled"].concat(C?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:y,state:t,processResult:c}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:i,withOperationLocation:c,setErrorAsResult:d}=e;const{operationLocation:y,resourceLocation:C,metadata:Q,response:v}=await t();if(y)c===null||c===void 0?void 0:c(y,false);const D={metadata:Q,operationLocation:y,resourceLocation:C};p.verbose(`LRO: Operation description:`,D);const k=n.initState(D);const $=i({response:v,state:k,operationLocation:y});processOperationStatus({state:k,status:$,stateProxy:n,response:v,setErrorAsResult:d,processResult:o});return k}async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:o,operationLocation:i,getOperationStatus:c,getResourceLocation:d,isOperationError:y,options:Q}=e;const v=await t(i,Q).catch(setStateError({state:n,stateProxy:o,isOperationError:y}));const D=c(v,n);p.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${D}\n\tPolling status: ${C.includes(D)?"Stopped":"Running"}`);if(D==="succeeded"){const e=d(v,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:o,isOperationError:y})),status:D}}}return{response:v,status:D}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:i,getOperationStatus:c,getResourceLocation:d,getOperationLocation:p,isOperationError:y,withOperationLocation:Q,getPollingInterval:v,processResult:D,getError:k,updateState:$,setDelay:V,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:c,state:n,stateProxy:o,operationLocation:re,getResourceLocation:d,isOperationError:y,options:i});processOperationStatus({status:ne,response:e,state:n,stateProxy:o,isDone:ee,processResult:D,getError:k,setErrorAsResult:te});if(!C.includes(ne)){const t=v===null||v===void 0?void 0:v(e);if(t)V(t);const o=p===null||p===void 0?void 0:p(e,n);if(o!==undefined){const e=re!==o;n.config.operationLocation=o;Q===null||Q===void 0?void 0:Q(o,e)}else Q===null||Q===void 0?void 0:Q(re,false)}$===null||$===void 0?void 0:$(n,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;switch(n){case"PUT":{return o}case"DELETE":{return undefined}default:{switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const c=getOperationLocationHeader(t);const d=getAzureAsyncOperationHeader(t);const p=getOperationLocationPollingUrl({operationLocation:c,azureAsyncOperation:d});const y=getLocationHeader(t);const C=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(p!==undefined){return{mode:"OperationLocation",operationLocation:p,resourceLocation:findResourceLocation({requestMethod:C,location:y,requestPath:o,resourceLocationConfig:i})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(C==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{p.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const c=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:c,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function getErrorFromResponse(e){const t=e.flatResponse.error;if(!t){p.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){p.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await i.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const n=e.resourceLocation;if(n!==undefined){t.config.resourceLocation=n}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:i,updateState:c,setDelay:d,state:p,setErrorAsResult:y}=e;return pollOperation({state:p,stateProxy:n,setDelay:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:y})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:o,isOperationError:i,getResourceLocation:p,getPollingInterval:C,getError:Q,resolveOnUnsuccessful:v}=e;return async({init:e,poll:D},k)=>{const{processResult:$,updateState:V,withOperationLocation:ee,intervalInMs:te=y,restoreFrom:re}=k||{};const ne=createStateProxy$1();const se=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const oe=re?deserializeState(re):await initOperation({init:e,stateProxy:ne,processResult:$,getOperationStatus:n,withOperationLocation:se,setErrorAsResult:!v});let ie;const ae=new c.AbortController;const ce=new Map;const handleProgressEvents=async()=>ce.forEach((e=>e(oe)));const le="Operation was canceled";let ue=te;const de={getOperationState:()=>oe,getResult:()=>oe.result,isDone:()=>["succeeded","failed","canceled"].includes(oe.status),isStopped:()=>ie===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:oe}),onProgress:e=>{const t=Symbol();ce.set(t,e);return()=>ce.delete(t)},pollUntilDone:e=>ie!==null&&ie!==void 0?ie:ie=(async()=>{const{abortSignal:t}=e||{};const{signal:n}=t?new c.AbortController([t,ae.signal]):ae;if(!de.isDone()){await de.poll({abortSignal:n});while(!de.isDone()){await d.delay(ue,{abortSignal:n});await de.poll({abortSignal:n})}}if(v){return de.getResult()}else{switch(oe.status){case"succeeded":return de.getResult();case"canceled":throw new Error(le);case"failed":throw oe.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{ie=undefined})),async poll(e){if(v){if(de.isDone())return}else{switch(oe.status){case"succeeded":return;case"canceled":throw new Error(le);case"failed":throw oe.error}}await pollOperation({poll:D,state:oe,stateProxy:ne,getOperationLocation:t,isOperationError:i,withOperationLocation:se,getPollingInterval:C,getOperationStatus:o,getResourceLocation:p,processResult:$,getError:Q,updateState:V,options:e,setDelay:e=>{ue=e},setErrorAsResult:!v});await handleProgressEvents();if(!v){switch(oe.status){case"canceled":throw new Error(le);case"failed":throw oe.error}}}};return de}}async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:o,processResult:i,restoreFrom:c,updateState:d,withOperationLocation:p,resolveOnUnsuccessful:y=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:y})({init:async()=>{const t=await e.sendInitialRequest();const o=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:o,withOperationLocation:p,restoreFrom:c,updateState:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,c,d){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=c;this.isDone=d}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const i=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:i?({flatResponse:e},t)=>i(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){p.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:n=y,resumeFrom:o,resolveOnUnsuccessful:i=false,isDone:c,lroResourceLocationConfig:d,processResult:p,updateState:C}=t||{};const Q=o?deserializeState(o):{};const v=new GenericPollOperation(Q,e,!i,d,p,C,c);super(v);this.resolveOnUnsuccessful=i;this.config={intervalInMs:n};v.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}o=LroEngine;t.vu=Poller;o=PollerCancelledError;o=PollerStoppedError;o=createHttpPoller},1391:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},7132:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(1391);var i=n(6982);var c;const d=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((c=process.versions)===null||c===void 0?void 0:c.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:c}=t!==null&&t!==void 0?t:{};return new Promise(((t,d)=>{function rejectOnAbort(){d(new o.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();d(e)}))}catch(e){d(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}const p="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i!==null&&i!==void 0?i:p})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return i.createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return i.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}function generateUUID(){let e="";for(let t=0;t<32;t++){const n=Math.floor(Math.random()*16);if(t===12){e+="4"}else if(t===16){e+=n&3|8}else{e+=n.toString(16)}if(t===7||t===11||t===15||t===19){e+="-"}}return e}var y;let C=typeof((y=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||y===void 0?void 0:y.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;if(!C){C=generateUUID}function randomUUID(){return C()}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=d;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;t.randomUUID=randomUUID},5004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(857);var i=n(9023);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var c=_interopDefaultLegacy(i);function log(e,...t){process.stderr.write(`${c["default"].format(e,...t)}${o.EOL}`)}const d=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let p;let y=[];let C=[];const Q=[];if(d){enable(d)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){p=e;y=[];C=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){C.push(new RegExp(`^${e.substr(1)}$`))}else{y.push(new RegExp(`^${e}$`))}}for(const e of Q){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of C){if(t.test(e)){return false}}for(const t of y){if(t.test(e)){return true}}return false}function disable(){const e=p||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}Q.push(t);return t}function destroy(){const e=Q.indexOf(this);if(e>=0){Q.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var D=v;const k=new Set;const $=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let V;const ee=D("azure");ee.log=(...e)=>{D.log(...e)};const te=["verbose","info","warning","error"];if($){if(isAzureLogLevel($)){setLogLevel($)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${$}'; logging is not enabled. Acceptable values: ${te.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${te.join(",")}`)}V=e;const t=[];for(const e of k){if(shouldEnable(e)){t.push(e.namespace)}}D.enable(t.join(","))}function getLogLevel(){return V}const re={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=ee.extend(e);patchLogMethod(ee,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const n=Object.assign(e.extend(t),{level:t});patchLogMethod(e,n);if(shouldEnable(n)){const e=D.disable();D.enable(e+","+n.namespace)}k.add(n);return n}function shouldEnable(e){return Boolean(V&&re[e.level]<=re[V])}function isAzureLogLevel(e){return te.includes(e)}t.AzureLogger=ee;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},1046:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?c[d.COMPARATORLOOSE]:c[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new C(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new Q(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new Q(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(7766);const{safeRe:c,t:d}=n(4836);const p=n(7721);const y=n(2814);const C=n(5186);const Q=n(3177)},3177:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof p){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&V)|(this.options.loose&&ee);const n=t+":"+e;const o=c.get(n);if(o){return o}const i=this.options.loose;const d=i?Q[v.HYPHENRANGELOOSE]:Q[v.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(Q[v.COMPARATORTRIM],D);y("comparator trim",e);e=e.replace(Q[v.TILDETRIM],k);y("tilde trim",e);e=e.replace(Q[v.CARETTRIM],$);y("caret trim",e);let C=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){C=C.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(Q[v.COMPARATORLOOSE])}))}y("range list",C);const te=new Map;const re=C.map((e=>new p(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];c.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(Q[v.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?Q[v.TILDELOOSE]:Q[v.TILDE];return e.replace(n,((t,n,o,i,c)=>{y("tilde",e,t,n,o,i,c);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(c){y("replaceTilde pr",c);d=`>=${n}.${o}.${i}-${c} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?Q[v.CARETLOOSE]:Q[v.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,c,d)=>{y("caret",e,t,n,i,c,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(c)){if(n==="0"){p=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){y("replaceCaret pr",d);if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}-${d} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}-${d} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c}-${d} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}${o} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}${o} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c} <${+n+1}.0.0-0`}}y("caret return",p);return p}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?Q[v.XRANGELOOSE]:Q[v.XRANGE];return e.replace(n,((n,o,i,c,d,p)=>{y("xRange",e,n,o,i,c,d,p);const C=isX(i);const Q=C||isX(c);const v=Q||isX(d);const D=v;if(o==="="&&D){o=""}p=t.includePrerelease?"-0":"";if(C){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(Q){c=0}d=0;if(o===">"){o=">=";if(Q){i=+i+1;c=0;d=0}else{c=+c+1;d=0}}else if(o==="<="){o="<";if(Q){i=+i+1}else{c=+c+1}}if(o==="<"){p="-0"}n=`${o+i}.${c}.${d}${p}`}else if(Q){n=`>=${i}.0.0${p} <${+i+1}.0.0-0`}else if(v){n=`>=${i}.${c}.0${p} <${i}.${+c+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(Q[v.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(Q[t.includePrerelease?v.GTE0PRE:v.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,c,d,p,y,C,Q,v,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(c)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(C)){y=""}else if(isX(Q)){y=`<${+C+1}.0.0-0`}else if(isX(v)){y=`<${C}.${+Q+1}.0-0`}else if(D){y=`<=${C}.${Q}.${v}-${D}`}else if(e){y=`<${C}.${Q}.${+v+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},5186:(e,t,n)=>{const o=n(2814);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:c}=n(8504);const{safeRe:d,t:p}=n(4836);const y=n(7766);const{compareIdentifiers:C}=n(7865);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[p.LOOSE]:d[p.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[p.PRERELEASELOOSE]:d[p.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(C(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},5436:(e,t,n)=>{const o=n(7526);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},7721:(e,t,n)=>{const o=n(4107);const i=n(7705);const c=n(7962);const d=n(5603);const p=n(525);const y=n(3966);const cmp=(e,t,n,C)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,C);case"!=":return i(e,n,C);case">":return c(e,n,C);case">=":return d(e,n,C);case"<":return p(e,n,C);case"<=":return y(e,n,C);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6356:(e,t,n)=>{const o=n(5186);const i=n(7526);const{safeRe:c,t:d}=n(4836);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?c[d.COERCEFULL]:c[d.COERCE])}else{const o=t.includePrerelease?c[d.COERCERTLFULL]:c[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const p=n[2];const y=n[3]||"0";const C=n[4]||"0";const Q=t.includePrerelease&&n[5]?`-${n[5]}`:"";const v=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${p}.${y}.${C}${Q}${v}`,t)};e.exports=coerce},2147:(e,t,n)=>{const o=n(5186);const compareBuild=(e,t,n)=>{const i=new o(e,n);const c=new o(t,n);return i.compare(c)||i.compareBuild(c)};e.exports=compareBuild},8545:(e,t,n)=>{const o=n(18);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},18:(e,t,n)=>{const o=n(5186);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},7290:(e,t,n)=>{const o=n(7526);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const c=n.compare(i);if(c===0){return null}const d=c>0;const p=d?n:i;const y=d?i:n;const C=!!p.prerelease.length;const Q=!!y.prerelease.length;if(Q&&!C){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(p)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const v=C?"pre":"";if(n.major!==i.major){return v+"major"}if(n.minor!==i.minor){return v+"minor"}if(n.patch!==i.patch){return v+"patch"}return"prerelease"};e.exports=diff},4107:(e,t,n)=>{const o=n(18);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},7962:(e,t,n)=>{const o=n(18);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},5603:(e,t,n)=>{const o=n(18);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2317:(e,t,n)=>{const o=n(5186);const inc=(e,t,n,i,c)=>{if(typeof n==="string"){c=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,c).version}catch(e){return null}};e.exports=inc},525:(e,t,n)=>{const o=n(18);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},3966:(e,t,n)=>{const o=n(18);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},4716:(e,t,n)=>{const o=n(5186);const major=(e,t)=>new o(e,t).major;e.exports=major},7968:(e,t,n)=>{const o=n(5186);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},7705:(e,t,n)=>{const o=n(18);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},7526:(e,t,n)=>{const o=n(5186);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},4807:(e,t,n)=>{const o=n(5186);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5039:(e,t,n)=>{const o=n(7526);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},5236:(e,t,n)=>{const o=n(18);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},9547:(e,t,n)=>{const o=n(2147);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},6076:(e,t,n)=>{const o=n(3177);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},6293:(e,t,n)=>{const o=n(2147);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},2475:(e,t,n)=>{const o=n(7526);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},1955:(e,t,n)=>{const o=n(4836);const i=n(8504);const c=n(5186);const d=n(7865);const p=n(7526);const y=n(2475);const C=n(5436);const Q=n(2317);const v=n(7290);const D=n(4716);const k=n(7968);const $=n(4807);const V=n(5039);const ee=n(18);const te=n(5236);const re=n(8545);const ne=n(2147);const se=n(6293);const oe=n(9547);const ie=n(7962);const ae=n(525);const ce=n(4107);const le=n(7705);const ue=n(5603);const de=n(3966);const pe=n(7721);const Ae=n(6356);const me=n(1046);const ge=n(3177);const fe=n(6076);const he=n(8465);const ye=n(1550);const Ee=n(9820);const Ce=n(2271);const Ie=n(8816);const be=n(6317);const Se=n(5133);const Be=n(8548);const we=n(9118);const Re=n(3139);const Ne=n(1093);e.exports={parse:p,valid:y,clean:C,inc:Q,diff:v,major:D,minor:k,patch:$,prerelease:V,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:pe,coerce:Ae,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Ne,SemVer:c,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},8504:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const c=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2814:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},7865:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},7515:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},7766:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},4836:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=n(8504);const d=n(2814);t=e.exports={};const p=t.re=[];const y=t.safeRe=[];const C=t.src=[];const Q=t.safeSrc=[];const v=t.t={};let D=0;const k="[a-zA-Z0-9-]";const $=[["\\s",1],["\\d",c],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of $){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);v[e]=i;C[i]=t;Q[i]=o;p[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${C[v.PRERELEASEIDENTIFIER]}(?:\\.${C[v.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${C[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${C[v.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${C[v.BUILDIDENTIFIER]}(?:\\.${C[v.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${C[v.MAINVERSION]}${C[v.PRERELEASE]}?${C[v.BUILD]}?`);createToken("FULL",`^${C[v.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${C[v.MAINVERSIONLOOSE]}${C[v.PRERELEASELOOSE]}?${C[v.BUILD]}?`);createToken("LOOSE",`^${C[v.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${C[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${C[v.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:${C[v.PRERELEASE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:${C[v.PRERELEASELOOSE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${C[v.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",C[v.COERCEPLAIN]+`(?:${C[v.PRERELEASE]})?`+`(?:${C[v.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",C[v.COERCE],true);createToken("COERCERTLFULL",C[v.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${C[v.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${C[v.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${C[v.LONECARET]}${C[v.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${C[v.LONECARET]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${C[v.GTLT]}\\s*(${C[v.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]}|${C[v.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${C[v.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${C[v.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5133:(e,t,n)=>{const o=n(6317);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},9118:(e,t,n)=>{const o=n(3177);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},8548:(e,t,n)=>{const o=n(6317);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},1550:(e,t,n)=>{const o=n(5186);const i=n(3177);const maxSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===-1){c=e;d=new o(c,n)}}}));return c};e.exports=maxSatisfying},9820:(e,t,n)=>{const o=n(5186);const i=n(3177);const minSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===1){c=e;d=new o(c,n)}}}));return c};e.exports=minSatisfying},2271:(e,t,n)=>{const o=n(5186);const i=n(3177);const c=n(7962);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||c(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||c(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},6317:(e,t,n)=>{const o=n(5186);const i=n(1046);const{ANY:c}=i;const d=n(3177);const p=n(6076);const y=n(7962);const C=n(525);const Q=n(3966);const v=n(5603);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,$,V,ee,te;switch(n){case">":k=y;$=Q;V=C;ee=">";te=">=";break;case"<":k=C;$=v;V=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,D)){return false}for(let n=0;n{if(e.semver===c){e=new i(">=0.0.0")}d=d||e;p=p||e;if(k(e.semver,d.semver,D)){d=e}else if(V(e.semver,p.semver,D)){p=e}}));if(d.operator===ee||d.operator===te){return false}if((!p.operator||p.operator===ee)&&$(e,p.semver)){return false}else if(p.operator===te&&V(e,p.semver)){return false}}return true};e.exports=outside},3139:(e,t,n)=>{const o=n(6076);const i=n(18);e.exports=(e,t,n)=>{const c=[];let d=null;let p=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){p=e;if(!d){d=e}}else{if(p){c.push([d,p])}p=null;d=null}}if(d){c.push([d,null])}const C=[];for(const[e,t]of c){if(e===t){C.push(e)}else if(!t&&e===y[0]){C.push("*")}else if(!t){C.push(`>=${e}`)}else if(e===y[0]){C.push(`<=${t}`)}else{C.push(`${e} - ${t}`)}}const Q=C.join(" || ");const v=typeof t.raw==="string"?t.raw:String(t);return Q.length{const o=n(3177);const i=n(1046);const{ANY:c}=i;const d=n(6076);const p=n(18);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const C=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===c){if(t.length===1&&t[0].semver===c){return true}else if(n.includePrerelease){e=y}else{e=C}}if(t.length===1&&t[0].semver===c){if(n.includePrerelease){return true}else{t=C}}const o=new Set;let i,Q;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){Q=lowerLT(Q,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let v;if(i&&Q){v=p(i.semver,Q.semver,n);if(v>0){return null}else if(v===0&&(i.operator!==">="||Q.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(Q&&!d(e,String(Q),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let $,V;let ee=Q&&!n.includePrerelease&&Q.semver.prerelease.length?Q.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&Q.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){V=V||e.operator===">"||e.operator===">=";$=$||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(Q){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(Q,e,n);if(k===e&&k!==Q){return false}}else if(Q.operator==="<="&&!d(Q.semver,String(e),n)){return false}}if(!e.operator&&(Q||i)&&v!==0){return false}}if(i&&$&&!Q&&v!==0){return false}if(Q&&V&&!i&&v!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},8465:(e,t,n)=>{const o=n(3177);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8816:(e,t,n)=>{const o=n(3177);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},9316:(e,t,n)=>{var o=n(6716);var i=n(6324);var c=n(9674);const d="AWS_USE_DUALSTACK_ENDPOINT";const p="use_dualstack_endpoint";const y=false;const C={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,p,o.SelectorType.CONFIG),default:false};const Q="AWS_USE_FIPS_ENDPOINT";const v="use_fips_endpoint";const D=false;const k={environmentVariableSelector:e=>o.booleanSelector(e,Q,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,v,o.SelectorType.CONFIG),default:false};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:c}=e;return Object.assign(e,{tls:t??true,endpoint:i.normalizeProvider(typeof n==="string"?o(n):n),isCustomEndpoint:true,useDualstackEndpoint:i.normalizeProvider(c??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const n=await e.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(n)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const c=await e.useFipsEndpoint();const{hostname:d}=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:c})??{};if(!d){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${d}`)};const resolveEndpointsConfig=e=>{const t=i.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:n,useFipsEndpoint:o,urlParser:c,tls:d}=e;return Object.assign(e,{tls:d??true,endpoint:n?i.normalizeProvider(typeof n==="string"?c(n):n):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!n,useDualstackEndpoint:t})};const $="AWS_REGION";const V="region";const ee={environmentVariableSelector:e=>e[$],configFileSelector:e=>e[V],default:()=>{throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(e,t=c.isValidHostLabel)=>{if(!re.has(e)&&!t(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{re.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const n=getRealRegion(e);checkRegion(n);return n},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((n=>t[n].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:o,regionHash:i,partitionHash:c})=>{const d=getResolvedPartition(e,{partitionHash:c});const p=e in i?e:c[d]?.endpoint??e;const y={useFipsEndpoint:t,useDualstackEndpoint:n};const C=getHostnameFromVariants(i[p]?.variants,y);const Q=getHostnameFromVariants(c[d]?.variants,y);const v=getResolvedHostname(p,{regionHostname:C,partitionHostname:Q});if(v===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:p,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const D=getResolvedSigningRegion(v,{signingRegion:i[p]?.signingRegion,regionRegex:c[d].regionRegex,useFipsEndpoint:t});return{partition:d,signingService:o,hostname:v,...D&&{signingRegion:D},...i[p]?.signingService&&{signingService:i[p].signingService}}};t.CONFIG_USE_DUALSTACK_ENDPOINT=p;t.CONFIG_USE_FIPS_ENDPOINT=v;t.DEFAULT_USE_DUALSTACK_ENDPOINT=y;t.DEFAULT_USE_FIPS_ENDPOINT=D;t.ENV_USE_DUALSTACK_ENDPOINT=d;t.ENV_USE_FIPS_ENDPOINT=Q;t.NODE_REGION_CONFIG_FILE_OPTIONS=te;t.NODE_REGION_CONFIG_OPTIONS=ee;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=C;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=k;t.REGION_ENV_NAME=$;t.REGION_INI_NAME=V;t.getRegionInfo=getRegionInfo;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},402:(e,t,n)=>{var o=n(690);var i=n(6324);var c=n(3255);var d=n(2356);var p=n(3422);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const n=[];for(const o of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===o){n.push(t)}}}for(const t of e){if(!n.find((({schemeId:e})=>e===t.schemeId))){n.push(t)}}return n};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const n of e){t.set(n.schemeId,n)}return t}const httpAuthSchemeMiddleware=(e,t)=>(n,o)=>async c=>{const d=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,c.input));const p=e.authSchemePreference?await e.authSchemePreference():[];const y=resolveAuthOptions(d,p);const C=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const Q=i.getSmithyContext(o);const v=[];for(const n of y){const i=C.get(n.schemeId);if(!i){v.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const c=i.identityProvider(await t.identityProviderConfigProvider(e));if(!c){v.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:d={},signingProperties:p={}}=n.propertiesExtractor?.(e,o)||{};n.identityProperties=Object.assign(n.identityProperties||{},d);n.signingProperties=Object.assign(n.signingProperties||{},p);Q.selectedHttpAuthScheme={httpAuthOption:n,identity:await c(n.identityProperties),signer:i.signer};break}if(!Q.selectedHttpAuthScheme){throw new Error(v.join("\n"))}return n(c)};const y={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),y)}});const C={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:c.serializerMiddlewareOption.name};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),C)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async n=>{if(!d.HttpRequest.isInstance(n.request)){return e(n)}const o=i.getSmithyContext(t);const c=o.selectedHttpAuthScheme;if(!c){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:p={}},identity:y,signer:C}=c;const Q=await e({...n,request:await C.sign(n.request,y,p)}).catch((C.errorHandler||defaultErrorHandler)(p));(C.successHandler||defaultSuccessHandler)(Q.response,p);return Q};const Q={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),Q)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,n,o=e=>e,...i)=>{let c=new e(n);c=o(c)??c;return await t.send(c,...i)};function createPaginator(e,t,n,o,i){return async function*paginateOperation(c,d,...p){const y=d;let C=c.startingToken??y[n];let Q=true;let v;while(Q){y[n]=C;if(i){y[i]=y[i]??c.pageSize}if(c.client instanceof e){v=await makePagedClientRequest(t,c.client,d,c.withCommand,...p)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield v;const D=C;C=get(v,o);Q=!!(C&&(!c.stopOnSameToken||C!==D))}return undefined}}const get=(e,t)=>{let n=e;const o=t.split(".");for(const e of o){if(!n||typeof n!=="object"){return undefined}n=n[e]}return n};function setFeature(e,t,n){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=n}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e)){if(n!==undefined){this.authSchemes.set(t,n)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,n){if(!n){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!n.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!n.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const i=d.HttpRequest.clone(e);if(n.in===o.HttpApiKeyAuthLocation.QUERY){i.query[n.name]=t.apiKey}else if(n.in===o.HttpApiKeyAuthLocation.HEADER){i.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+n.in+"`")}return i}}class HttpBearerAuthSigner{async sign(e,t,n){const o=d.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${t.token}`;return o}}class NoAuthSigner{async sign(e,t,n){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()e.expiration!==undefined;const memoizeIdentityProvider=(e,t,n)=>{if(e===undefined){return undefined}const o=typeof e!=="function"?async()=>Promise.resolve(e):e;let i;let c;let d;let p=false;const coalesceProvider=async e=>{if(!c){c=o(e)}try{i=await c;d=true;p=false}finally{c=undefined}return i};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}return i}}return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}if(p){return i}if(!n(i)){p=true;return i}if(t(i)){await coalesceProvider(e);return i}return i}};t.requestBuilder=p.requestBuilder;t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=v;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=y;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=C;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=Q;t.isIdentityExpired=D;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},4645:(e,t,n)=>{var o=n(2430);var i=n(1577);var c=n(3422);var d=n(2356);var p=n(2098);var y=n(6890);var C=n(6324);var Q=n(8385);const v=0;const D=1;const k=2;const $=3;const V=4;const ee=5;const te=6;const re=7;const ne=20;const se=21;const oe=22;const ie=23;const ae=24;const ce=25;const le=26;const ue=27;const de=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const pe=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[pe]=true;return e}const Ae=typeof TextDecoder!=="undefined";const me=typeof Buffer!=="undefined";let ge=alloc(0);let fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength);const he=Ae?new TextDecoder:null;let ye=0;function setPayload(e){ge=e;fe=new DataView(ge.buffer,ge.byteOffset,ge.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const n=(ge[e]&224)>>5;const i=ge[e]&31;switch(n){case v:case D:case te:let c;let d;if(i<24){c=i;d=1}else{switch(i){case ae:case ce:case le:case ue:const n=Ee[i];const o=n+1;d=o;if(t-e>7;const o=(e&124)>>2;const i=(e&3)<<8|t;const c=n===0?1:-1;let d;let p;if(o===0){if(i===0){return 0}else{d=Math.pow(2,1-15);p=0}}else if(o===31){if(i===0){return c*Infinity}else{return NaN}}else{d=Math.pow(2,o-15);p=1}p+=i/1024;return c*(d*p)}function decodeCount(e,t){const n=ge[e]&31;if(n<24){ye=1;return n}if(n===ae||n===ce||n===le||n===ue){const o=Ee[n];ye=o+1;if(t-e>5;const c=ge[e]&31;if(i!==$){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(c===de){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const p=ye;e+=p;for(let e=0;e>5;const c=ge[e]&31;if(i!==k){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(c===de){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const p=ye;e+=p;for(let e=0;e=t){throw new Error("unexpected end of map payload.")}const n=(ge[e]&224)>>5;if(n!==$){throw new Error(`unexpected major type ${n} for map key at index ${e}.`)}const o=decode(e,t);e+=ye;const i=decode(e,t);e+=ye;c[o]=i}ye=o+(e-i);return c}function decodeMapIndefinite(e,t){e+=1;const n=e;const o={};for(;e=t){throw new Error("unexpected end of map payload.")}if(ge[e]===255){ye=e-n+2;return o}const i=(ge[e]&224)>>5;if(i!==$){throw new Error(`unexpected major type ${i} for map key.`)}const c=decode(e,t);e+=ye;const d=decode(e,t);e+=ye;o[c]=d}throw new Error("expected break marker.")}function decodeSpecial(e,t){const n=ge[e]&31;switch(n){case se:case ne:ye=1;return n===se;case oe:ye=1;return null;case ie:ye=1;return null;case ce:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}ye=3;return bytesToFloat16(ge[e+1],ge[e+2]);case le:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}ye=5;return fe.getFloat32(e+1);case ue:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}ye=9;return fe.getFloat64(e+1);default:throw new Error(`unexpected minor value ${n}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const Ce=typeof Buffer!=="undefined";const Ie=2048;let be=alloc(Ie);let Se=new DataView(be.buffer,be.byteOffset,be.byteLength);let Be=0;function ensureSpace(e){const t=be.byteLength-Be;if(t=0;const n=t?v:D;const o=t?e:-e-1;if(o<24){be[Be++]=n<<5|o}else if(o<256){be[Be++]=n<<5|24;be[Be++]=o}else if(o<65536){be[Be++]=n<<5|ce;be[Be++]=o>>8;be[Be++]=o}else if(o<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,o);Be+=4}else{be[Be++]=n<<5|ue;Se.setBigUint64(Be,BigInt(o));Be+=8}continue}be[Be++]=re<<5|ue;Se.setFloat64(Be,e);Be+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const n=t?v:D;const o=t?e:-e-BigInt(1);const i=Number(o);if(i<24){be[Be++]=n<<5|i}else if(i<256){be[Be++]=n<<5|24;be[Be++]=i}else if(i<65536){be[Be++]=n<<5|ce;be[Be++]=i>>8;be[Be++]=i&255}else if(i<4294967296){be[Be++]=n<<5|le;Se.setUint32(Be,i);Be+=4}else if(o=0){n[n.byteLength-c]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(n.byteLength*2);be[Be++]=t?194:195;if(Ce){encodeHeader(k,Buffer.byteLength(n))}else{encodeHeader(k,n.byteLength)}be.set(n,Be);Be+=n.byteLength}continue}else if(e===null){be[Be++]=re<<5|oe;continue}else if(typeof e==="boolean"){be[Be++]=re<<5|(e?se:ne);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n){t.push(e[n])}encodeHeader(V,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(k,e.length);be.set(e,Be);Be+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof o.NumericValue){const n=e.string.indexOf(".");const o=n===-1?0:n-e.string.length+1;const i=BigInt(e.string.replace(".",""));be[Be++]=196;t.push(i);t.push(o);encodeHeader(V,2);continue}if(e[pe]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(te,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const n=Object.keys(e);for(let o=n.length-1;o>=0;--o){const i=n[o];t.push(e[i]);t.push(i)}encodeHeader(ee,n.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const we={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>c.collectBody(e,t).then((async e=>{if(e.length){try{return we.deserialize(e)}catch(n){Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(e)});throw n}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const n=await parseCborBody(e,t);n.message=n.message??n.Message;return n};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}const n=Object.keys(t).find((e=>e.toLowerCase()==="code"));if(n&&t[n]!==undefined){return sanitizeErrorCode(t[n])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,n,o,i)=>{const{hostname:c,protocol:y="https",port:C,path:Q}=await e.endpoint();const v={protocol:y,hostname:c,port:C,method:"POST",path:Q.endsWith("/")?Q.slice(0,-1)+n:Q+n,headers:{...t}};if(o!==undefined){v.hostname=o}if(i!==undefined){v.body=i;try{v.headers["content-length"]=String(p.calculateBodyLength(i))}catch(e){}}return new d.HttpRequest(v)};class CborCodec extends c.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends c.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const n=y.NormalizedSchema.of(e);if(t==null){if(n.isIdempotencyToken()){return o.generateIdempotencyToken()}return t}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??Q.fromBase64)(t)}return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(n.isListSchema()&&Array.isArray(e)){const t=!!n.getMergedTraits().sparse;const o=[];let i=0;for(const c of e){const e=this.serialize(n.getValueSchema(),c);if(e!=null||t){o[i++]=e}}return o}if(e instanceof Date){return dateToTag(e)}const o={};if(n.isMapSchema()){const t=!!n.getMergedTraits().sparse;for(const i of Object.keys(e)){const c=this.serialize(n.getValueSchema(),e[i]);if(c!=null||t){o[i]=c}}}else if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const n=this.serialize(i,e[t]);if(n!=null){o[t]=n}}const t=n.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,n]=e.$unknown;o[t]=n}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){if(!(t in o)){o[t]=this.serialize(15,n)}}}}else if(n.isDocumentSchema()){for(const t of Object.keys(e)){o[t]=this.serialize(n.getValueSchema(),e[t])}}else if(n.isBigDecimalSchema()){return e}return o}return t}flush(){const e=we.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends c.SerdeContext{read(e,t){const n=we.deserialize(t);return this.readValue(e,n)}readValue(e,t){const n=y.NormalizedSchema.of(e);if(n.isTimestampSchema()){if(typeof t==="number"){return o._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return o._parseEpochTimestamp(t.value)}}}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??Q.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(n.isDocumentSchema()){return t}if(n.isListSchema()){const e=[];const o=n.getValueSchema();const i=!!n.getMergedTraits().sparse;for(const n of t){const t=this.readValue(o,n);if(t!=null||i){e.push(t)}}return e}const e={};if(n.isMapSchema()){const o=!!n.getMergedTraits().sparse;const i=n.getValueSchema();for(const n of Object.keys(t)){const c=this.readValue(i,t[n]);if(c!=null||o){e[n]=c}}}else if(n.isStructSchema()){const o=n.isUnionSchema();let i;if(o){i=new Set(Object.keys(t).filter((e=>e!=="__type")))}for(const[c,d]of n.structIterator()){if(o){i.delete(c)}if(t[c]!=null){e[c]=this.readValue(d,t[c])}}if(o&&i?.size===1&&Object.keys(e).length===0){const n=i.values().next().value;e.$unknown=[n,t[n]]}else if(typeof t.__type==="string"){for(const[n,o]of Object.entries(t)){if(!(n in e)){e[n]=o}}}}else if(t instanceof o.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends c.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(y.deref(e.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{if(!o.body){this.serializer.write(15,{});o.body=this.serializer.flush()}try{o.headers["content-length"]=String(o.body.byteLength)}catch(e){}}const{service:i,operation:c}=C.getSmithyContext(n);const d=`/service/${i}/operation/${c}`;if(o.path.endsWith("/")){o.path+=d.slice(1)}else{o.path+=d}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const c=loadSmithyRpcV2CborErrorCode(n,o)??"Unknown";const d={$metadata:i,$fault:n.statusCode<=500?"client":"server"};let p=this.options.defaultNamespace;if(c.includes("#")){[p]=c.split("#")}const C=this.compositeErrorRegistry;const Q=y.TypeRegistry.for(p);C.copyFrom(Q);let v;try{v=C.getSchema(c)}catch(e){if(o.Message){o.message=o.Message}const t=y.TypeRegistry.for("smithy.ts.sdk.synthetic."+p);C.copyFrom(t);const n=C.getBaseException();if(n){const e=C.getErrorCtor(n);throw Object.assign(new e({name:c}),d,o)}throw Object.assign(new Error(c),d,o)}const D=y.NormalizedSchema.of(v);const k=C.getErrorCtor(v);const $=o.message??o.Message??"Unknown";const V=new k($);const ee={};for(const[e,t]of D.structIterator()){ee[e]=this.deserializer.readValue(t,o[e])}throw Object.assign(V,d,{$fault:D.getMergedTraits().error,message:$},ee)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=we;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=pe},3422:(e,t,n)=>{var o=n(4252);var i=n(6890);var c=n(2430);var d=n(2356);var p=n(8385);var y=n(1577);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=i.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(t)}}getRequestType(){return d.HttpRequest}getResponseType(){return d.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[n,o]of t.url.searchParams.entries()){e.query[n]=o}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix){return}const o=i.NormalizedSchema.of(t.input);const c=i.translateTraits(t.traits??{});if(c.endpoint){let t=c.endpoint?.[0];if(typeof t==="string"){const i=[...o.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of i){const o=n[e];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,o)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(579).then(n.t.bind(n,6579,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,o,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o={...t??{}};const c=this.serializer;const p={};const y={};const C=await n.endpoint();const Q=i.NormalizedSchema.of(e?.input);const v=[];const D=[];let k=false;let $;const V=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:p,headers:y,body:undefined});if(C){this.updateServiceEndpoint(V,C);this.setHostPrefix(V,e,o);const t=i.translateTraits(e.traits);if(t.http){V.method=t.http[0];const[e,n]=t.http[1].split("?");if(V.path=="/"){V.path=e}else{V.path+=e}const o=new URLSearchParams(n??"");Object.assign(p,Object.fromEntries(o))}}for(const[e,t]of Q.structIterator()){const n=t.getMergedTraits()??{};const i=o[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel){if(V.path.includes(`{${e}+}`)||V.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(n.httpPayload){const n=t.isStreaming();if(n){const n=t.isStructSchema();if(n){if(o[e]){$=await this.serializeEventStream({eventStream:o[e],requestSchema:Q})}}else{$=i}}else{c.write(t,i);$=c.flush()}delete o[e]}else if(n.httpLabel){c.write(t,i);const n=c.flush();if(V.path.includes(`{${e}+}`)){V.path=V.path.replace(`{${e}+}`,n.split("/").map(extendedEncodeURIComponent).join("/"))}else if(V.path.includes(`{${e}}`)){V.path=V.path.replace(`{${e}}`,extendedEncodeURIComponent(n))}delete o[e]}else if(n.httpHeader){c.write(t,i);y[n.httpHeader.toLowerCase()]=String(c.flush());delete o[e]}else if(typeof n.httpPrefixHeaders==="string"){for(const[e,o]of Object.entries(i)){const i=n.httpPrefixHeaders+e;c.write([t.getValueSchema(),{httpHeader:i}],o);y[i.toLowerCase()]=c.flush()}delete o[e]}else if(n.httpQuery||n.httpQueryParams){this.serializeQuery(t,i,p);delete o[e]}else{k=true;v.push(e);D.push(t)}}if(k&&o){const[e,t]=(Q.getName(true)??"#Unknown").split("#");const n=Q.getSchema()[6];const i=[3,e,t,Q.getMergedTraits(),v,D,undefined];if(n){i[6]=n}else{i.pop()}c.write(i,o);$=c.flush()}V.headers=y;V.query=p;V.body=$;return V}serializeQuery(e,t,n){const o=this.serializer;const i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,c]of Object.entries(t)){if(!(o in n)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(t,c,n)}}return}if(e.isListSchema()){const c=!!e.getMergedTraits().sparse;const d=[];for(const n of t){o.write([e.getValueSchema(),i],n);const t=o.flush();if(c||t!==undefined){d.push(t)}}n[i.httpQuery]=d}else{o.write([e,i],t);n[i.httpQuery]=o.flush()}}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const p=await this.deserializeHttpMessage(c,t,n,d);if(p.length){const e=await collectBody(n.body,t);if(e.byteLength>0){const t=await o.read(c,e);for(const e of p){if(t[e]!=null){d[e]=t[e]}}}}else if(p.discardResponseBody){await collectBody(n.body,t)}d.$metadata=this.deserializeMetadata(n);return d}async deserializeHttpMessage(e,t,n,d,p){let y;if(d instanceof Set){y=p}else{y=d}let C=true;const Q=this.deserializer;const v=i.NormalizedSchema.of(e);const D=[];for(const[e,i]of v.structIterator()){const d=i.getMemberTraits();if(d.httpPayload){C=false;const c=i.isStreaming();if(c){const t=i.isStructSchema();if(t){y[e]=await this.deserializeEventStream({response:n,responseSchema:v})}else{y[e]=o.sdkStreamMixin(n.body)}}else if(n.body){const o=await collectBody(n.body,t);if(o.byteLength>0){y[e]=await Q.read(i,o)}}}else if(d.httpHeader){const t=String(d.httpHeader).toLowerCase();const o=n.headers[t];if(null!=o){if(i.isListSchema()){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let d;if(n.isTimestampSchema()&&n.getSchema()===4){d=c.splitEvery(o,",",2)}else{d=c.splitHeader(o)}const p=[];for(const e of d){p.push(await Q.read(n,e.trim()))}y[e]=p}else{y[e]=await Q.read(i,o)}}}else if(d.httpPrefixHeaders!==undefined){y[e]={};for(const[t,o]of Object.entries(n.headers)){if(t.startsWith(d.httpPrefixHeaders)){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;y[e][t.slice(d.httpPrefixHeaders.length)]=await Q.read(n,o)}}}else if(d.httpResponseCode){y[e]=n.statusCode}else{D.push(e)}}D.discardResponseBody=C;return D}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=this.serializer;const c={};const p={};const y=await n.endpoint();const C=i.NormalizedSchema.of(e?.input);const Q=C.getSchema();let v;const D=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:c,headers:p,body:undefined});if(y){this.updateServiceEndpoint(D,y);this.setHostPrefix(D,e,t)}const k={...t};if(t){const e=C.getEventStreamMember();if(e){if(k[e]){const t={};for(const[n,i]of C.structIterator()){if(n!==e&&k[n]){o.write(i,k[n]);t[n]=o.flush()}}v=await this.serializeEventStream({eventStream:k[e],requestSchema:C,initialRequest:t})}}else{o.write(Q,k);v=o.flush()}}D.headers=p;D.query=c;D.body=v;D.method="POST";return D}async deserializeResponse(e,t,n){const o=this.deserializer;const c=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const p=c.getEventStreamMember();if(p){d[p]=await this.deserializeEventStream({response:n,responseSchema:c,initialResponseContainer:d})}else{const e=await collectBody(n.body,t);if(e.byteLength>0){Object.assign(d,await o.read(c,e))}}d.$metadata=this.deserializeMetadata(n);return d}}const resolvedPath=(e,t,n,o,i,c)=>{if(t!=null&&t[n]!==undefined){const t=o();if(t==null||t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(i,c?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(const e of this.resolvePathStack){e(this.path)}return new d.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,n,o){this.resolvePathStack.push((i=>{this.path=resolvedPath(i,this.input,e,t,n,o)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:n,httpPrefixHeaders:o,httpHeader:i,httpQuery:c}=e.getMergedTraits();const d=t.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(c)||Boolean(n)?5:undefined:undefined;return d??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const n=i.NormalizedSchema.of(e);if(n.isListSchema()){return c.splitHeader(t).map((e=>this.read(n.getValueSchema(),e)))}if(n.isBlobSchema()){return(this.serdeContext?.base64Decoder??p.fromBase64)(t)}if(n.isTimestampSchema()){const e=determineTimestampFormat(n,this.settings);switch(e){case 5:return c._parseRfc3339DateTimeWithOffset(t);case 6:return c._parseRfc7231DateTime(t);case 7:return c._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let o=t;if(e){if(n.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const t=e==="application/json"||e.endsWith("+json");if(t){o=c.LazyJsonString.from(o)}return o}}if(n.isNumericSchema()){return Number(t)}if(n.isBigIntegerSchema()){return BigInt(t)}if(n.isBigDecimalSchema()){return new c.NumericValue(t,"bigDecimal")}if(n.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??y.toUtf8)((this.serdeContext?.base64Decoder??p.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();const c=this.serdeContext?.utf8Encoder??y.toUtf8;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(n,c(t))}if(o.httpPayload){if(n.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??y.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(n.isStringSchema()){if("byteLength"in t){return c(t)}return t}}return this.codecDeserializer.read(n,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(true)}`)}const e=determineTimestampFormat(n,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=c.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??p.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e="";for(const o of t){this.write([n.getValueSchema(),n.getMergedTraits()],o);const t=this.flush();const i=n.getValueSchema().isTimestampSchema()?t:c.quoteHeader(t);if(e!==""){e+=", "}e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=n.getMergedTraits().mediaType;let o=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){o=c.LazyJsonString.from(o)}if(n.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??p.toBase64)(o.toString());return}}this.stringBuffer=t;break;default:if(n.isIdempotencyToken()){this.stringBuffer=c.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.collectBody=collectBody;t.determineTimestampFormat=determineTimestampFormat;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.requestBuilder=requestBuilder;t.resolvedPath=resolvedPath},6890:(e,t,n)=>{var o=n(2356);var i=n(6324);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,n,o,i)=>({name:t,namespace:e,traits:n,input:o,output:i});const schemaDeserializationMiddleware=e=>(t,n)=>async c=>{const{response:d}=await t(c);const{operationSchema:p}=i.getSmithyContext(n);const[,y,C,Q,v,D]=p??[];try{const t=await e.protocol.deserializeResponse(operation(y,C,Q,v,D),{...e,...n},d);return{response:d,output:t}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!n.logger||n.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{n.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,n)=>async o=>{const{operationSchema:c}=i.getSmithyContext(n);const[,d,p,y,C,Q]=c??[];const v=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;const D=await e.protocol.serializeRequest(operation(d,p,y,C,Q),o.input,{...e,...n,endpoint:v});return t({...o,request:D})};const c={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),d);t.add(schemaDeserializationMiddleware(e),c);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const n=Object.assign(e,t);return n}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,n,o)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:n,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,n,o,i)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:n,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,n,o,i)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:n,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,n,o,i)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,n,o,i,c)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i,ctor:null});function translateTraits(e){if(typeof e==="object"){return e}e=e|0;const t={};let n=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>n++&1)===1){t[o]=1}}return t}const p={it:Symbol.for("@smithy/nor-struct-it")};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const n=[];let o=e;let i=e;this._isMemberSchema=false;while(isMemberSchema(o)){n.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=deref(e);if(t instanceof NormalizedSchema){return t}if(isMemberSchema(t)){const[n,o]=t;if(n instanceof NormalizedSchema){Object.assign(n.getMergedTraits(),translateTraits(o));return n}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new NormalizedSchema(t)}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const n=!e&&t&&t.includes("#");return n?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const n=this.getSchema();const o=e?15:n[4]??0;return member([o,0],"key")}getValueSchema(){const e=this.getSchema();const[t,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof e==="number"?63&e:e&&typeof e==="object"&&(n||o)?e[3+e[0]]:t?15:void 0;if(i!=null){return member([i,0],n?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e);const o=t[5][n];return member(isMemberSchema(o)?o:[o,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator()){e[t]=n}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let n=e[p.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let o=0;oArray.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:n});const simAdapter=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:n,schemaRef:o});const y={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e;this.schemas=t;this.exceptions=n}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,o]of e.schemas){if(!t.has(n)){t.set(n,o)}}for(const[t,o]of e.exceptions){if(!n.has(t)){n.set(t,o)}}}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(n.split("#")[0])]){e.schemas.set(n,t)}}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e;const o=n[1];for(const e of[this,TypeRegistry.for(o)]){e.schemas.set(o+"#"+n[2],n);e.exceptions.set(n,t)}}getErrorCtor(e){const t=e;if(this.exceptions.has(t)){return this.exceptions.get(t)}const n=TypeRegistry.for(t[1]);return n.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,n]=e;const o=t+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=y;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=c;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=d;t.sim=sim;t.simAdapter=simAdapter;t.struct=struct;t.translateTraits=translateTraits},2430:(e,t,n)=>{var o=n(266);const copyDocumentWithTransform=(e,t,n=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){v.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){v.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){v.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const i=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>i){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const c=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const n=expectLong(e);if(n!==undefined&&castInt(n,t)!==n){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){v.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const n=Object.entries(t).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const d=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const p=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(p);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const y=limitedParseDouble;const C=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const Q=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const v={warn:console.warn};const D=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const c=e.getUTCHours();const d=e.getUTCMinutes();const p=e.getUTCSeconds();const y=i<10?`0${i}`:`${i}`;const C=c<10?`0${c}`:`${c}`;const Q=d<10?`0${d}`:`${d}`;const v=p<10?`0${p}`:`${p}`;return`${D[o]}, ${y} ${k[n]} ${t} ${C}:${Q}:${v} GMT`}const $=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=$.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,c,d,p,y,C]=t;const Q=strictParseShort(stripLeadingZeroes(o));const v=parseDateValue(i,"month",1,12);const D=parseDateValue(c,"day",1,31);return buildDate(Q,v,D,{hours:d,minutes:p,seconds:y,fractionalMilliseconds:C})};const V=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=V.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,c,d,p,y,C,Q]=t;const v=strictParseShort(stripLeadingZeroes(o));const D=parseDateValue(i,"month",1,12);const k=parseDateValue(c,"day",1,31);const $=buildDate(v,D,k,{hours:d,minutes:p,seconds:y,fractionalMilliseconds:C});if(Q.toUpperCase()!="Z"){$.setTime($.getTime()-parseOffsetToMilliseconds(Q))}return $};const ee=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const te=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const re=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=ee.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:c,minutes:d,seconds:p,fractionalMilliseconds:y})}t=te.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:c,minutes:d,seconds:p,fractionalMilliseconds:y}))}t=re.exec(e);if(t){const[e,n,o,i,c,d,p,y]=t;return buildDate(strictParseShort(stripLeadingZeroes(y)),parseMonthByShortName(n),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:c,seconds:d,fractionalMilliseconds:p})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,n,o)=>{const i=t-1;validateDayOfMonth(e,i,n);return new Date(Date.UTC(e,i,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(n{if(e.getTime()-(new Date).getTime()>ne){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=k.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const se=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=se[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${k[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,o)=>{const i=strictParseByte(stripLeadingZeroes(e));if(io){throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const i=Number(e.substring(4,6));return n*(o*60+i)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t{if(e&&typeof e==="object"&&(e instanceof oe||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return oe(String(e))}return oe(JSON.stringify(e))};oe.fromObject=oe.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const ie=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const ae=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const ce=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const le=`(\\d?\\d)`;const ue=`(\\d{4})`;const de=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const pe=new RegExp(`^${ie}, ${le} ${ae} ${ue} ${ce} GMT$`);const Ae=new RegExp(`^${ie}, ${le}-${ae}-(\\d\\d) ${ce} GMT$`);const me=new RegExp(`^${ie} ${ae} ( [1-9]|\\d\\d) ${ce} ${ue}$`);const ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let t=NaN;if(typeof e==="number"){t=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}t=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=de.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,n,o,i,c,d,p,,y,C]=t;range(o,1,12);range(i,1,31);range(c,0,23);range(d,0,59);range(p,0,60);const Q=new Date(Date.UTC(Number(n),Number(o)-1,Number(i),Number(c),Number(d),Number(p),Number(y)?Math.round(parseFloat(`0.${y}`)*1e3):0));Q.setUTCFullYear(Number(n));if(C.toUpperCase()!="Z"){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(C)||[void 0,"+",0,0];const o=e==="-"?1:-1;Q.setTime(Q.getTime()+o*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return Q};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let n;let o;let i;let c;let d;let p;let y;if(y=pe.exec(e)){[,t,n,o,i,c,d,p]=y}else if(y=Ae.exec(e)){[,t,n,o,i,c,d,p]=y;o=(Number(o)+1900).toString()}else if(y=me.exec(e)){[,n,t,i,c,d,p,o]=y}if(o&&d){const e=Date.UTC(Number(o),ge.indexOf(n),Number(t),Number(i),Number(c),Number(d),p?Math.round(parseFloat(`0.${p}`)*1e3):0);range(t,1,31);range(i,0,23);range(c,0,59);range(d,0,60);const y=new Date(e);y.setUTCFullYear(Number(o));return y}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,n){const o=Number(e);if(on){throw new Error(`Value ${o} out of range [${t}, ${n}]`)}}function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const i=[];let c="";for(let e=0;e{const t=e.length;const n=[];let o=false;let i=undefined;let c=0;for(let d=0;d{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const fe=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!fe.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&fe.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}t.generateIdempotencyToken=o.v4;t.LazyJsonString=oe;t.NumericValue=NumericValue;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.copyDocumentWithTransform=copyDocumentWithTransform;t.dateToUtcString=dateToUtcString;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=c;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.handleFloat=y;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=C;t.limitedParseFloat32=limitedParseFloat32;t.logger=v;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=d;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=Q;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort},7809:(e,t,n)=>{var o=n(2356);var i=n(8256);var c=n(8385);function createRequest(e,t){return new Request(e,t)}function requestTimeout(e=0){return new Promise(((t,n)=>{if(e){setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError";n(t)}),e)}}))}const d={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(d.supported===undefined){d.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const c=n??this.config.requestTimeout;const p=this.config.keepAlive===true;const y=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";return Promise.reject(e)}let C=e.path;const Q=i.buildQueryString(e.query||{});if(Q){C+=`?${Q}`}if(e.fragment){C+=`#${e.fragment}`}let v="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";v=`${t}:${n}@`}const{port:D,method:k}=e;const $=`${e.protocol}//${v}${e.hostname}${D?`:${D}`:""}${C}`;const V=k==="GET"||k==="HEAD"?undefined:e.body;const ee={body:V,headers:new Headers(e.headers),method:k,credentials:y};if(this.config?.cache){ee.cache=this.config.cache}if(V){ee.duplex="half"}if(typeof AbortController!=="undefined"){ee.signal=t}if(d.supported){ee.keepalive=p}if(typeof this.config.requestInit==="function"){Object.assign(ee,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const te=createRequest($,ee);const re=[fetch(te).then((e=>{const t=e.headers;const n={};for(const e of t.entries()){n[e[0]]=e[1]}const i=e.body!=undefined;if(!i){return e.blob().then((t=>({response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))}return{response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(c)];if(t){re.push(new Promise(((e,n)=>{const onAbort=()=>{const e=new Error("Request aborted");e.name="AbortError";n(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{t.onabort=onAbort}})))}return Promise.race(re).finally(removeSignalEventListener)}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>{n[e]=t;return n}))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const n=c.fromBase64(t);return new Uint8Array(n)}async function collectStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:c}=await n.read();if(c){t.push(c);i+=c.length}o=e}const c=new Uint8Array(i);let d=0;for(const e of t){c.set(e,d);d+=e.length}return c}function readToBase64(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{if(o.readyState!==2){return n(new Error("Reader aborted too early"))}const e=o.result??"";const i=e.indexOf(",");const c=i>-1?i+1:e.length;t(e.substring(c))};o.onabort=()=>n(new Error("Read aborted"));o.onerror=()=>n(o.error);o.readAsDataURL(e)}))}t.FetchHttpHandler=FetchHttpHandler;t.keepAliveSupport=d;t.streamCollector=streamCollector},2711:(e,t,n)=>{var o=n(4151);var i=n(1577);var c=n(181);var d=n(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(i.toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?d.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):d.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(c.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}t.Hash=Hash},6130:(e,t)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},7212:(e,t,n)=>{var o=n(2356);const i="content-length";function contentLengthMiddleware(e){return t=>async n=>{const c=n.request;if(o.HttpRequest.isInstance(c)){const{body:t,headers:n}=c;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(i)===-1){try{const n=e(t);c.headers={...c.headers,[i]:String(n)}}catch(e){}}}return t({...n,request:c})}}const c={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),c)}});t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=c;t.getContentLengthPlugin=getContentLengthPlugin},6041:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromConfig=void 0;const o=n(5704);const i=n(8008);const getEndpointFromConfig=async e=>(0,o.loadConfig)((0,i.getEndpointUrlConfig)(e??""))();t.getEndpointFromConfig=getEndpointFromConfig},8008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrlConfig=void 0;const o=n(4964);const i="AWS_ENDPOINT_URL";const c="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase()));const o=t[[i,...n].join("_")];if(o)return o;const c=t[i];if(c)return c;return undefined},configFileSelector:(t,n)=>{if(n&&t.services){const i=n[["services",t.services].join(o.CONFIG_PREFIX_SEPARATOR)];if(i){const t=e.split(" ").map((e=>e.toLowerCase()));const n=i[[t.join("_"),c].join(o.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}const i=t[c];if(i)return i;return undefined},default:undefined});t.getEndpointUrlConfig=getEndpointUrlConfig},99:(e,t,n)=>{var o=n(6041);var i=n(4494);var c=n(402);var d=n(6324);var p=n(3255);const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const y=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const C=/(\d+\.){3}\d+/;const Q=/\.\./;const isDnsCompatibleBucketName=e=>y.test(e)&&!C.test(e)&&!Q.test(e);const isArnBucketName=e=>{const[t,n,o,,,i]=e.split(":");const c=t==="arn"&&e.split(":").length>=6;const d=Boolean(c&&n&&o&&i);if(c&&!d){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return d};const createConfigValueProvider=(e,t,n,o=false)=>{const configProvider=async()=>{let i;if(o){const o=n.clientContextParams;const c=o?.[e];i=c??n[e]??n[t]}else{i=n[e]??n[t]}if(typeof i==="function"){return i()}return i};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(n.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:i}=e;return`${t}//${n}${o?":"+o:""}${i}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return i.parseUrl(e.url)}return e}return i.parseUrl(e)};const getEndpointFromInstructions=async(e,t,n,i)=>{if(!n.isCustomEndpoint){let e;if(n.serviceConfiguredEndpoint){e=await n.serviceConfiguredEndpoint()}else{e=await o.getEndpointFromConfig(n.serviceId)}if(e){n.endpoint=()=>Promise.resolve(toEndpointV1(e));n.isCustomEndpoint=true}}const c=await resolveParams(e,t,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const d=n.endpointProvider(c,i);return d};const resolveParams=async(e,t,n)=>{const o={};const i=t?.getEndpointParameterInstructions?.()||{};for(const[t,c]of Object.entries(i)){switch(c.type){case"staticContextParams":o[t]=c.value;break;case"contextParams":o[t]=e[c.name];break;case"clientContextParams":case"builtInParams":o[t]=await createConfigValueProvider(c.name,t,n,c.type!=="builtInParams")();break;case"operationContextParams":o[t]=c.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(c))}}if(Object.keys(i).length===0){Object.assign(o,n)}if(String(n.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};const endpointMiddleware=({config:e,instructions:t})=>(n,o)=>async i=>{if(e.isCustomEndpoint){c.setFeature(o,"ENDPOINT_OVERRIDE","N")}const p=await getEndpointFromInstructions(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=p;o.authSchemes=p.properties?.authSchemes;const y=o.authSchemes?.[0];if(y){o["signing_region"]=y.signingRegion;o["signing_service"]=y.signingName;const e=d.getSmithyContext(o);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:y.signingRegion,signingRegion:y.signingRegion,signing_service:y.signingName,signingName:y.signingName,signingRegionSet:y.signingRegionSet},y.properties)}}return n({...i})};const v={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:p.serializerMiddlewareOption.name};const getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(endpointMiddleware({config:e,instructions:t}),v)}});const resolveEndpointConfig=e=>{const t=e.tls??true;const{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:c}=e;const p=n!=null?async()=>toEndpointV1(await d.normalizeProvider(n)()):undefined;const y=!!n;const C=Object.assign(e,{endpoint:p,tls:t,isCustomEndpoint:y,useDualstackEndpoint:d.normalizeProvider(i??false),useFipsEndpoint:d.normalizeProvider(c??false)});let Q=undefined;C.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!Q){Q=o.getEndpointFromConfig(e.serviceId)}return Q};return C};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};t.endpointMiddleware=endpointMiddleware;t.endpointMiddlewareOptions=v;t.getEndpointFromInstructions=getEndpointFromInstructions;t.getEndpointPlugin=getEndpointPlugin;t.resolveEndpointConfig=resolveEndpointConfig;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},9618:(e,t,n)=>{var o=n(5518);var i=n(2356);var c=n(2058);var d=n(266);var p=n(6324);var y=n(1411);var C=n(9831);const getDefaultRetryQuota=(e,t)=>{const n=e;const i=o.NO_RETRY_INCREMENT;const c=o.RETRY_COST;const d=o.TIMEOUT_RETRY_COST;let p=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:c;const hasRetryTokens=e=>getCapacityAmount(e)<=p;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);p-=t;return t};const releaseRetryTokens=e=>{p+=e??i;p=Math.min(p,n)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return c.isRetryableByTrait(e)||c.isClockSkewError(e)||c.isThrottlingError(e)||c.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=o.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(o.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return tsetTimeout(e,i)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=y;t.$metadata.totalRetryDelay=C;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return o*1e3;const c=new Date(n);return c.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i);this.rateLimiter=n??new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const Q="AWS_MAX_ATTEMPTS";const v="max_attempts";const D={environmentVariableSelector:e=>{const t=e[Q];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Environment variable ${Q} mast be a number, got "${t}"`)}return n},configFileSelector:e=>{const t=e[v];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${v} mast be a number, got "${t}"`)}return n},default:o.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:i}=e;const c=p.normalizeProvider(i??o.DEFAULT_MAX_ATTEMPTS);return Object.assign(e,{maxAttempts:c,retryStrategy:async()=>{if(t){return t}const e=await p.normalizeProvider(n)();if(e===o.RETRY_MODES.ADAPTIVE){return new o.AdaptiveRetryStrategy(c)}return new o.StandardRetryStrategy(c)}})};const k="AWS_RETRY_MODE";const $="retry_mode";const V={environmentVariableSelector:e=>e[k],configFileSelector:e=>e[$],default:o.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(i.HttpRequest.isInstance(n)){delete n.headers[o.INVOCATION_ID_HEADER];delete n.headers[o.REQUEST_HEADER]}return e(t)};const ee={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),ee)}});const retryMiddleware=e=>(t,n)=>async c=>{let p=await e.retryStrategy();const Q=await e.maxAttempts();if(isRetryStrategyV2(p)){p=p;let e=await p.acquireInitialRetryToken(n["partition_id"]);let v=new Error;let D=0;let k=0;const{request:$}=c;const V=i.HttpRequest.isInstance($);if(V){$.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(V){$.headers[o.REQUEST_HEADER]=`attempt=${D+1}; max=${Q}`}const{response:n,output:i}=await t(c);p.recordSuccess(e);i.$metadata.attempts=D+1;i.$metadata.totalRetryDelay=k;return{response:n,output:i}}catch(t){const o=getRetryErrorInfo(t);v=asSdkError(t);if(V&&C.isStreamingPayload($)){(n.logger instanceof y.NoOpLogger?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw v}try{e=await p.refreshRetryTokenForRetry(e,o)}catch(e){if(!v.$metadata){v.$metadata={}}v.$metadata.attempts=D+1;v.$metadata.totalRetryDelay=k;throw v}D=e.getRetryCount();const i=e.getRetryDelay();k+=i;await new Promise((e=>setTimeout(e,i)))}}}else{p=p;if(p?.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",p.mode]];return p.retry(t,c)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const t={error:e,errorType:getRetryErrorType(e)};const n=getRetryAfterHint(e.$response);if(n){t.retryAfterHint=n}return t};const getRetryErrorType=e=>{if(c.isThrottlingError(e))return"THROTTLING";if(c.isTransientError(e))return"TRANSIENT";if(c.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const te={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:t=>{t.add(retryMiddleware(e),te)}});const getRetryAfterHint=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return new Date(o*1e3);const c=new Date(n);return c};t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.CONFIG_MAX_ATTEMPTS=v;t.CONFIG_RETRY_MODE=$;t.ENV_MAX_ATTEMPTS=Q;t.ENV_RETRY_MODE=k;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=D;t.NODE_RETRY_MODE_CONFIG_OPTIONS=V;t.StandardRetryStrategy=StandardRetryStrategy;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=getRetryPlugin;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=ee;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions=te},9831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.isStreamingPayload=void 0;const o=n(2203);const isStreamingPayload=e=>e?.body instanceof o.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;t.isStreamingPayload=isStreamingPayload},3255:(e,t,n)=>{var o=n(2356);const deserializerMiddleware=(e,t)=>(n,i)=>async c=>{const{response:d}=await n(c);try{const n=await t(d,e);return{response:d,output:n}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(n,o)=>async i=>{const c=e;const d=o.endpointV2?.url&&c.urlParser?async()=>c.urlParser(o.endpointV2.url):c.endpoint;if(!d){throw new Error("No valid endpoint provider available.")}const p=await t(i.input,{...e,endpoint:d});return n({...i,request:p})};const i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const c={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,n){return{applyToStack:o=>{o.add(deserializerMiddleware(e,n),i);o.add(serializerMiddleware(e,t),c)}}}t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=i;t.getSerdePlugin=getSerdePlugin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=c},9208:(e,t)=>{const getAllAliases=(e,t)=>{const n=[];if(e){n.push(e)}if(t){for(const e of t){n.push(e)}}return n};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let i=false;const c=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=n=>{let o=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(n)){o=true;for(const e of t){c.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const removeByReference=n=>{let o=false;const filterCb=e=>{if(e.middleware===n){o=true;for(const t of getAllAliases(e.name,e.aliases)){c.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const cloneTo=n=>{e.forEach((e=>{n.add(e.middleware,{...e})}));t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})}));n.identifyOnResolve?.(d.identifyOnResolve());return n};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(n=false)=>{const o=[];const i=[];const c={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){c[e]=t}o.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){c[e]=t}i.push(t)}));i.forEach((e=>{if(e.toMiddleware){const t=c[e.toMiddleware];if(t===undefined){if(n){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const d=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return d};const d={add:(t,n={})=>{const{name:o,override:i,aliases:d}=n;const p={step:"initialize",priority:"normal",middleware:t,...n};const y=getAllAliases(o,d);if(y.length>0){if(y.some((e=>c.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const t of y){const n=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(n===-1){continue}const i=e[n];if(i.step!==p.step||p.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(o,d)}" middleware with `+`${p.priority} priority in ${p.step} step.`)}e.splice(n,1)}}for(const e of y){c.add(e)}}e.push(p)},addRelativeTo:(e,n)=>{const{name:o,override:i,aliases:d}=n;const p={middleware:e,...n};const y=getAllAliases(o,d);if(y.length>0){if(y.some((e=>c.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const e of y){const n=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(n===-1){continue}const i=t[n];if(i.toMiddleware!==p.toMiddleware||i.relation!==p.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(o,d)}" middleware ${p.relation} `+`"${p.toMiddleware}" middleware.`)}t.splice(n,1)}}for(const e of y){c.add(e)}}t.push(p)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(d)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:n=>{let o=false;const filterCb=e=>{const{tags:t,name:i,aliases:d}=e;if(t&&t.includes(n)){const e=getAllAliases(i,d);for(const t of e){c.delete(t)}o=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(i||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")i=e;return i},resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}if(i){console.log(d.identify())}return e}};return d};const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1};t.constructStack=constructStack},5704:(e,t,n)=>{var o=n(8857);var i=n(4964);function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const n=e(process.env,t);if(n===undefined){throw new Error}return n}catch(n){throw new o.CredentialsProviderError(n.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const c=i.getProfileName(n);const{configFile:d,credentialsFile:p}=await i.loadSharedConfigFiles(n);const y=p[c]||{};const C=d[c]||{};const Q=t==="config"?{...y,...C}:{...C,...y};try{const n=t==="config"?d:p;const o=e(Q,n);if(o===undefined){throw new Error}return o}catch(t){throw new o.CredentialsProviderError(t.message||`Not found in config files w/ profile [${c}]: ${getSelectorName(e.toString())}`,{logger:n.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{const{signingName:c,logger:d}=i;const p={signingName:c,logger:d};return o.memoize(o.chain(fromEnv(e,p),fromSharedConfigFiles(t,i),fromStatic(n)))};t.loadConfig=loadConfig},1279:(e,t,n)=>{var o=n(2356);var i=n(8256);var c=n(8611);var d=n(5692);var p=n(2203);var y=n(5675);const C=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};const Q={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const v=1e3;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return-1}const registerTimeout=o=>{const i=Q.setTimeout((()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))}),n-o);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{Q.clearTimeout(i)}))}else{Q.clearTimeout(i)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(n<2e3){registerTimeout(0);return 0}return Q.setTimeout(registerTimeout.bind(null,v),v)};const setRequestTimeout=(e,t,n=0,o,i)=>{if(n){return Q.setTimeout((()=>{let c=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){const n=Object.assign(new Error(c),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n);t(n)}else{c+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(c)}}),n)}return-1};const D=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n},o=D)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,n||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))}};if(o===0){registerListener();return 0}return Q.setTimeout(registerListener,o)};const k=3e3;const setSocketTimeout=(e,t,n=0)=>{const registerTimeout=o=>{const i=n-o;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(i,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(i,onTimeout)}};if(0{d=Number(Q.setTimeout((()=>e(true)),Math.max($,n)))})),new Promise((t=>{e.on("continue",(()=>{Q.clearTimeout(d);t(true)}));e.on("response",(()=>{Q.clearTimeout(d);t(false)}));e.on("error",(()=>{Q.clearTimeout(d);t(false)}))}))])}if(p){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof p.Readable){t.pipe(e);return}if(t){const n=Buffer.isBuffer(t);const o=typeof t==="string";if(n||o){if(n&&t.byteLength===0){e.end()}else{e.end(t)}return}const i=t;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){e.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}e.end(Buffer.from(t));return}e.end()}const V=0;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,n=console){const{sockets:o,requests:i,maxSockets:c}=e;if(typeof c!=="number"||c===Infinity){return t}const d=15e3;if(Date.now()-d=c&&d>=2*c){n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${d} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:i,httpAgent:p,httpsAgent:y,throwOnRequestTimeout:C,logger:Q}=e||{};const v=true;const D=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:i,throwOnRequestTimeout:C,httpAgent:(()=>{if(p instanceof c.Agent||typeof p?.destroy==="function"){this.externalAgent=true;return p}return new c.Agent({keepAlive:v,maxSockets:D,...p})})(),httpsAgent:(()=>{if(y instanceof d.Agent||typeof y?.destroy==="function"){this.externalAgent=true;return y}return new d.Agent({keepAlive:v,maxSockets:D,...y})})(),logger:Q}}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((p,y)=>{const v=this.config;let D=undefined;const k=[];const resolve=async e=>{await D;k.forEach(Q.clearTimeout);p(e)};const reject=async e=>{await D;k.forEach(Q.clearTimeout);y(e)};if(t?.aborted){const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const $=e.protocol==="https:";const V=e.headers??{};const ee=(V.Expect??V.expect)==="100-continue";let te=$?v.httpsAgent:v.httpAgent;if(ee&&!this.externalAgent){te=new($?d.Agent:c.Agent)({keepAlive:false,maxSockets:Infinity})}k.push(Q.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(te,this.socketWarningTimestamp,v.logger)}),v.socketAcquisitionWarningTimeout??(v.requestTimeout??2e3)+(v.connectionTimeout??1e3)));const re=i.buildQueryString(e.query||{});let ne=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ne=`${t}:${n}`}let se=e.path;if(re){se+=`?${re}`}if(e.fragment){se+=`#${e.fragment}`}let oe=e.hostname??"";if(oe[0]==="["&&oe.endsWith("]")){oe=e.hostname.slice(1,-1)}else{oe=e.hostname}const ie={headers:e.headers,host:oe,method:e.method,path:se,port:e.port,agent:te,auth:ne};const ae=$?d.request:c.request;const ce=ae(ie,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ce.on("error",(e=>{if(C.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ce.destroy();const e=new Error("Request aborted");e.name="AbortError";reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ce.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const le=n??v.requestTimeout;k.push(setConnectionTimeout(ce,reject,v.connectionTimeout));k.push(setRequestTimeout(ce,reject,le,v.throwOnRequestTimeout,v.logger??console));k.push(setSocketTimeout(ce,reject,v.socketTimeout));const ue=ie.agent;if(typeof ue==="object"&&"keepAlive"in ue){k.push(setSocketKeepAlive(ce,{keepAlive:ue.keepAlive,keepAliveMsecs:ue.keepAliveMsecs}))}D=writeRequestBody(ce,e,le,this.externalAgent).catch((e=>{k.forEach(Q.clearTimeout);return y(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=y.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const c=this.sessionCache.get(n)||new NodeHttp2ConnectionPool;c.offerLast(i);this.sessionCache.set(n,c);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){const n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:c,disableConcurrentStreams:d}=this.config;const p=n??c;return new Promise(((n,c)=>{let C=false;let Q=undefined;const resolve=async e=>{await Q;n(e)};const reject=async e=>{await Q;c(e)};if(t?.aborted){C=true;const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const{hostname:v,method:D,port:k,protocol:$,query:V}=e;let ee="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";ee=`${t}:${n}@`}const te=`${$}//${ee}${v}${k?`:${k}`:""}`;const re={destination:new URL(te)};const ne=this.connectionManager.lease(re,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:d||false});const rejectWithDestroy=e=>{if(d){this.destroySession(ne)}C=true;reject(e)};const se=i.buildQueryString(V||{});let oe=e.path;if(se){oe+=`?${se}`}if(e.fragment){oe+=`#${e.fragment}`}const ie=ne.request({...e.headers,[y.constants.HTTP2_HEADER_PATH]:oe,[y.constants.HTTP2_HEADER_METHOD]:D});ne.ref();ie.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:ie});C=true;resolve({response:t});if(d){ne.close();this.connectionManager.deleteSession(te,ne)}}));if(p){ie.setTimeout(p,(()=>{ie.close();const e=new Error(`Stream timed out because of no activity for ${p} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{ie.close();const e=new Error("Request aborted");e.name="AbortError";rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ie.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}ie.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));ie.on("error",rejectWithDestroy);ie.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${ie.rstCode}.`))}));ie.on("close",(()=>{ne.unref();if(d){ne.destroy()}if(!C){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));Q=writeRequestBody(ie,e,p)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends p.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e);n()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,n)=>{const o=new Collector;e.pipe(o);e.on("error",(e=>{o.end();n(e)}));o.on("error",n);o.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:c}=await n.read();if(c){t.push(c);i+=c.length}o=e}const c=new Uint8Array(i);let d=0;for(const e of t){c.set(e,d);d+=e.length}return c}t.DEFAULT_REQUEST_TIMEOUT=V;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},8857:(e,t)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let n;let o=true;if(typeof t==="boolean"){n=undefined;o=t}else if(t!=null&&typeof t==="object"){n=t.logger;o=t.tryNextLink??true}super(e);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const n of e){try{const e=await n();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,t,n)=>{let o;let i;let c;let d=false;const coalesceProvider=async()=>{if(!i){i=e()}try{o=await i;c=true;d=false}finally{i=undefined}return o};if(t===undefined){return async e=>{if(!c||e?.forceRefresh){o=await coalesceProvider()}return o}}return async e=>{if(!c||e?.forceRefresh){o=await coalesceProvider()}if(d){return o}if(n&&!n(o)){d=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.CredentialsProviderError=CredentialsProviderError;t.ProviderError=ProviderError;t.TokenProviderError=TokenProviderError;t.chain=chain;t.fromStatic=fromStatic;t.memoize=memoize},2356:(e,t,n)=>{var o=n(690);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.Field=Field;t.Fields=Fields;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},8256:(e,t,n)=>{var o=n(146);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const i=e[n];n=o.escapeUri(n);if(Array.isArray(i)){for(let e=0,c=i.length;e{function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},2058:(e,t)=>{const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const i=["TimeoutError","RequestTimeout","RequestTimeoutException"];const c=[500,502,503,504];const d=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const p=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>n.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const n=e&&e instanceof TypeError;if(!n){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||o.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||i.includes(e.name)||d.includes(e?.code||"")||p.includes(e?.code||"")||c.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError},1791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(857);const i=n(6928);const c={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:d=`C:${i.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${d}${n}`;const p=getHomeDirCacheKey();if(!c[p])c[p]=(0,o.homedir)();return c[p]};t.getHomeDir=getHomeDir},269:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6982);const i=n(6928);const c=n(1791);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,i.join)((0,c.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},1326:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=t.tokenIntercept=void 0;const o=n(1943);const i=n(269);t.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e]){return t.tokenIntercept[e]}const n=(0,i.getSSOTokenFilepath)(e);const c=await(0,o.readFile)(n,"utf8");return JSON.parse(c)};t.getSSOTokenFromFile=getSSOTokenFromFile},4964:(e,t,n)=>{var o=n(1791);var i=n(269);var c=n(1326);var d=n(6928);var p=n(690);var y=n(6684);const C="AWS_PROFILE";const Q="default";const getProfileName=e=>e.profile||process.env[C]||Q;const v=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(v);if(t===-1){return false}return Object.values(p.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,n])=>{const o=t.indexOf(v);const i=t.substring(0,o)===p.IniSectionType.PROFILE?t.substring(o+1):t;e[i]=n;return e}),{...e.default&&{default:e.default}});const D="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[D]||d.join(o.getHomeDir(),".aws","config");const k="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[k]||d.join(o.getHomeDir(),".aws","credentials");const $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const V=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;let o;for(const i of e.split(/\r?\n/)){const e=i.split(/(^|\s)[;#]/)[0].trim();const c=e[0]==="["&&e[e.length-1]==="]";if(c){n=undefined;o=undefined;const t=e.substring(1,e.length-1);const i=$.exec(t);if(i){const[,e,,t]=i;if(Object.values(p.IniSectionType).includes(e)){n=[e,t].join(v)}}else{n=t}if(V.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(n){const c=e.indexOf("=");if(![0,-1].includes(c)){const[d,p]=[e.substring(0,c).trim(),e.substring(c+1).trim()];if(p===""){o=d}else{if(o&&i.trimStart()===i){o=undefined}t[n]=t[n]||{};const e=o?[o,d].join(v):d;t[n][e]=p}}}}return t};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:n=getConfigFilepath()}=e;const i=o.getHomeDir();const c="~/";let p=t;if(t.startsWith(c)){p=d.join(i,t.slice(2))}let C=n;if(n.startsWith(c)){C=d.join(i,n.slice(2))}const Q=await Promise.all([y.readFile(C,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),y.readFile(p,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:Q[0],credentialsFile:Q[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(p.IniSectionType.SSO_SESSION+v))).reduce(((e,[t,n])=>({...e,[t.substring(t.indexOf(v)+1)]:n})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>y.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const ee={getFileRecord(){return y.fileIntercept},interceptFile(e,t){y.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return c.tokenIntercept},interceptToken(e,t){c.tokenIntercept[e]=t}};t.getSSOTokenFromFile=c.getSSOTokenFromFile;t.readFile=y.readFile;t.CONFIG_PREFIX_SEPARATOR=v;t.DEFAULT_PROFILE=Q;t.ENV_PROFILE=C;t.externalDataInterceptor=ee;t.getProfileName=getProfileName;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.parseKnownFiles=parseKnownFiles;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},6684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readFile=t.fileIntercept=t.filePromises=void 0;const o=n(1455);t.filePromises={};t.fileIntercept={};const readFile=(e,n)=>{if(t.fileIntercept[e]!==undefined){return t.fileIntercept[e]}if(!t.filePromises[e]||n?.ignoreCache){t.filePromises[e]=(0,o.readFile)(e,"utf8")}return t.filePromises[e]};t.readFile=readFile},5118:(e,t,n)=>{var o=n(6435);var i=n(1577);var c=n(6130);var d=n(2356);var p=n(6324);var y=n(146);const C="X-Amz-Algorithm";const Q="X-Amz-Credential";const v="X-Amz-Date";const D="X-Amz-SignedHeaders";const k="X-Amz-Expires";const $="X-Amz-Signature";const V="X-Amz-Security-Token";const ee="X-Amz-Region-Set";const te="authorization";const re=v.toLowerCase();const ne="date";const se=[te,re,ne];const oe=$.toLowerCase();const ie="x-amz-content-sha256";const ae=V.toLowerCase();const ce="host";const le={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ue=/^proxy-/;const de=/^sec-/;const pe=[/^proxy-/i,/^sec-/i];const Ae="AWS4-HMAC-SHA256";const me="AWS4-ECDSA-P256-SHA256";const ge="AWS4-HMAC-SHA256-PAYLOAD";const fe="UNSIGNED-PAYLOAD";const he=50;const ye="aws4_request";const Ee=60*60*24*7;const Ce={};const Ie=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${ye}`;const getSigningKey=async(e,t,n,i,c)=>{const d=await hmac(e,t.secretAccessKey,t.accessKeyId);const p=`${n}:${i}:${c}:${o.toHex(d)}:${t.sessionToken}`;if(p in Ce){return Ce[p]}Ie.push(p);while(Ie.length>he){delete Ce[Ie.shift()]}let y=`AWS4${t.secretAccessKey}`;for(const t of[n,i,c,ye]){y=await hmac(e,y,t)}return Ce[p]=y};const clearCredentialCache=()=>{Ie.length=0;Object.keys(Ce).forEach((e=>{delete Ce[e]}))};const hmac=(e,t,n)=>{const o=new e(t);o.update(i.toUint8Array(n));return o.digest()};const getCanonicalHeaders=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const c=i.toLowerCase();if(c in le||t?.has(c)||ue.test(c)||de.test(c)){if(!n||n&&!n.has(c)){continue}}o[c]=e[i].trim().replace(/\s+/g," ")}return o};const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===ie){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||c.isArrayBuffer(t)){const e=new n;e.update(i.toUint8Array(t));return o.toHex(await e.digest())}return fe};class HeaderFormatter{format(e){const t=[];for(const n of Object.keys(e)){const o=i.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const c=new Uint8Array(9);c[0]=5;c.set(e.value.bytes,1);return c;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const p=new Uint8Array(d.buffer);p.set(e.value,3);return p;case"string":const y=i.fromUtf8(e.value);const C=new DataView(new ArrayBuffer(3+y.byteLength));C.setUint8(0,7);C.setUint16(1,y.byteLength,false);const Q=new Uint8Array(C.buffer);Q.set(y,3);return Q;case"timestamp":const v=new Uint8Array(9);v[0]=8;v.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return v;case"uuid":if(!be.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const D=new Uint8Array(17);D[0]=9;D.set(o.fromHex(e.value.replace(/\-/g,"")),1);return D}}}const be=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(o.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:n,query:o={}}=d.HttpRequest.clone(e);for(const e of Object.keys(n)){const i=e.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i)){o[e]=n[e];delete n[e]}}return{...e,headers:n,query:o}};const prepareRequest=e=>{e=d.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(se.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const o of Object.keys(e)){if(o.toLowerCase()===oe){continue}const i=y.escapeUri(o);t.push(i);const c=e[o];if(typeof c==="string"){n[i]=`${i}=${y.escapeUri(c)}`}else if(Array.isArray(c)){n[i]=c.slice(0).reduce(((e,t)=>e.concat([`${i}=${y.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c=true}){this.service=o;this.sha256=i;this.uriEscapePath=c;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=p.normalizeProvider(n);this.credentialProvider=p.normalizeProvider(t)}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n,c){const d=new this.sha256;d.update(i.toUint8Array(n));const p=await d.digest();return`${c}\n${e}\n${t}\n${o.toHex(p)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if(n?.length===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const o=y.escapeUri(n);return o.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c=true}){super({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:c})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:c,signableHeaders:d,hoistableHeaders:p,signingRegion:y,signingService:ee}=t;const te=await this.credentialProvider();this.validateResolvedCredentials(te);const re=y??await this.regionProvider();const{longDate:ne,shortDate:se}=this.formatDate(n);if(o>Ee){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const oe=createScope(se,re,ee??this.service);const ie=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:c,hoistableHeaders:p});if(te.sessionToken){ie.query[V]=te.sessionToken}ie.query[C]=Ae;ie.query[Q]=`${te.accessKeyId}/${oe}`;ie.query[v]=ne;ie.query[k]=o.toString(10);const ae=getCanonicalHeaders(ie,i,d);ie.query[D]=this.getCanonicalHeaderList(ae);ie.query[$]=await this.getSignature(ne,oe,this.getSigningKey(te,re,se,ee),this.createCanonicalRequest(ie,ae,await getPayloadHash(e,this.sha256)));return ie}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:c,signingService:d}){const p=c??await this.regionProvider();const{shortDate:y,longDate:C}=this.formatDate(n);const Q=createScope(y,p,d??this.service);const v=await getPayloadHash({headers:{},body:t},this.sha256);const D=new this.sha256;D.update(e);const k=o.toHex(await D.digest());const $=[ge,C,Q,i,k,v].join("\n");return this.signString($,{signingDate:n,signingRegion:p,signingService:d})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const i=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return i.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const p=n??await this.regionProvider();const{shortDate:y}=this.formatDate(t);const C=new this.sha256(await this.getSigningKey(d,p,y,c));C.update(i.toUint8Array(e));return o.toHex(await C.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:i,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const p=i??await this.regionProvider();const y=prepareRequest(e);const{longDate:C,shortDate:Q}=this.formatDate(t);const v=createScope(Q,p,c??this.service);y.headers[re]=C;if(d.sessionToken){y.headers[ae]=d.sessionToken}const D=await getPayloadHash(y,this.sha256);if(!hasHeader(ie,y.headers)&&this.applyChecksum){y.headers[ie]=D}const k=getCanonicalHeaders(y,o,n);const $=await this.getSignature(C,v,this.getSigningKey(d,p,Q,c),this.createCanonicalRequest(y,k,D));y.headers[te]=`${Ae} `+`Credential=${d.accessKeyId}/${v}, `+`SignedHeaders=${this.getCanonicalHeaderList(k)}, `+`Signature=${$}`;return y}async getSignature(e,t,n,c){const d=await this.createStringToSign(e,t,c,Ae);const p=new this.sha256(await n);p.update(i.toUint8Array(d));return o.toHex(await p.digest())}getSigningKey(e,t,n,o){return getSigningKey(this.sha256,e,n,t,o||this.service)}}const Se={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=Ae;t.ALGORITHM_IDENTIFIER_V4A=me;t.ALGORITHM_QUERY_PARAM=C;t.ALWAYS_UNSIGNABLE_HEADERS=le;t.AMZ_DATE_HEADER=re;t.AMZ_DATE_QUERY_PARAM=v;t.AUTH_HEADER=te;t.CREDENTIAL_QUERY_PARAM=Q;t.DATE_HEADER=ne;t.EVENT_ALGORITHM_IDENTIFIER=ge;t.EXPIRES_QUERY_PARAM=k;t.GENERATED_HEADERS=se;t.HOST_HEADER=ce;t.KEY_TYPE_IDENTIFIER=ye;t.MAX_CACHE_SIZE=he;t.MAX_PRESIGNED_TTL=Ee;t.PROXY_HEADER_PATTERN=ue;t.REGION_SET_PARAM=ee;t.SEC_HEADER_PATTERN=de;t.SHA256_HEADER=ie;t.SIGNATURE_HEADER=oe;t.SIGNATURE_QUERY_PARAM=$;t.SIGNED_HEADERS_QUERY_PARAM=D;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=ae;t.TOKEN_QUERY_PARAM=V;t.UNSIGNABLE_PATTERNS=pe;t.UNSIGNED_PAYLOAD=fe;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=Se},1411:(e,t,n)=>{var o=n(9208);var i=n(3422);var c=n(690);var d=n(6890);var p=n(2430);class Client{config;middlewareStack=o.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;if(n){if(typeof t==="function"){e.protocol=new t(n)}}}send(e,t,n){const o=typeof t!=="function"?t:undefined;const i=typeof t==="function"?t:n;const c=o===undefined&&this.config.cacheMiddleware===true;let d;if(c){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){d=t.get(e.constructor)}else{d=e.resolveMiddleware(this.middlewareStack,this.config,o);t.set(e.constructor,d)}}else{delete this.handlers;d=e.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){d(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}else{return d(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const y="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const n=d.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive){return y}if(n.isListSchema()){const e=!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isMapSchema()){const e=!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive;if(e){return y}}else if(n.isStructSchema()&&typeof t==="object"){const e=t;const o={};for(const[t,i]of n.structIterator()){if(e[t]!=null){o[t]=schemaLogFilter(i,e[t])}}return o}return t}class Command{middlewareStack=o.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:d,inputFilterSensitiveLog:p,outputFilterSensitiveLog:y,smithyContext:C,additionalContext:Q,CommandCtor:v}){for(const i of o.bind(this)(v,e,t,n)){this.middlewareStack.use(i)}const D=e.concat(this.middlewareStack);const{logger:k}=t;const $={logger:k,clientName:i,commandName:d,inputFilterSensitiveLog:p,outputFilterSensitiveLog:y,[c.SMITHY_CONTEXT_KEY]:{commandInstance:this,...C},...Q};const{requestHandler:V}=t;return D.resolve((e=>V.handle(e.request,n||{})),$)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,n={}){this._smithyContext={service:e,operation:t,...n};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(n,o,i){const c=e._operationSchema;const d=c?.[4]??c?.input;const p=c?.[5]??c?.output;return this.resolveMiddlewareWithContext(n,o,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(c?schemaLogFilter.bind(null,d):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(c?schemaLogFilter.bind(null,p):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const C="***SensitiveInformation***";const createAggregatedClient=(e,t,n)=>{for(const[n,o]of Object.entries(e)){const methodImpl=async function(e,t,n){const i=new o(e);if(typeof t==="function"){this.send(i,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else{return this.send(i,t)}};const e=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:o={},waiters:i={}}=n??{};for(const[e,n]of Object.entries(o)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...o){return n({...t,client:this},e,...o)}}}for(const[e,n]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...o){let i=t;if(typeof t==="number"){i={maxWaitTime:t}}return n({...i,client:this},e,...o)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:o})=>{const i=deserializeMetadata(e);const c=i.httpStatusCode?i.httpStatusCode+"":undefined;const d=new n({name:t?.code||t?.Code||o||c||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(d,t)};const withBaseException=e=>({output:t,parsedBody:n,errorCode:o})=>{throwDefaultError({output:t,parsedBody:n,exceptionCtor:e,errorCode:o})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let Q=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!Q&&parseInt(e.substring(1,e.indexOf(".")))<16){Q=true}};const v=Object.values(c.AlgorithmId);const getChecksumConfiguration=e=>{const t=[];for(const n in c.AlgorithmId){const o=c.AlgorithmId[n];if(e[o]===undefined){continue}t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[n,o]of Object.entries(e.checksumAlgorithms??{})){t.push({algorithmId:()=>n,checksumConstructor:()=>o})}return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const o=n.algorithmId();const i=n.checksumConstructor();if(v.includes(o)){e.checksumAlgorithms[o.toUpperCase()]=i}else{e.checksumAlgorithms[o]=i}t.push(n)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{const n=e.algorithmId();if(v.includes(n)){t[n]=e.checksumConstructor()}}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const D=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][t]!==undefined){e[n]=e[n][t]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=getValueFromTextNode(e[n])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,n){let o;let i;let c;if(typeof t==="undefined"&&typeof n==="undefined"){o={};c=e}else{o=e;if(typeof t==="function"){i=t;c=n;return mapWithFilter(o,i,c)}else{c=t}}for(const e of Object.keys(c)){if(!Array.isArray(c[e])){o[e]=c[e];continue}applyInstruction(o,null,c,e)}return o}const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let i=n[o];if(typeof i==="function"){i=[,i]}const[c=nonNullish,d=pass,p=o]=i;if(typeof c==="function"&&c(t[p])||typeof c!=="function"&&!!c){e[o]=d(t[p])}return}let[i,c]=n[o];if(typeof c==="function"){let t;const n=i===undefined&&(t=c())!=null;const d=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(n){e[o]=t}else if(d){e[o]=c()}}else{const t=i===undefined&&c!=null;const n=typeof i==="function"&&!!i(c)||typeof i!=="function"&&!!i;if(t||n){e[o]=c}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const n of Object.keys(e)){if(e[n]==null){continue}t[n]=_json(e[n])}return t}return e};t.collectBody=i.collectBody;t.extendedEncodeURIComponent=i.extendedEncodeURIComponent;t.resolvedPath=i.resolvedPath;t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=C;t.ServiceException=ServiceException;t._json=_json;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getDefaultClientConfiguration=D;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getValueFromTextNode=getValueFromTextNode;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.withBaseException=withBaseException;Object.prototype.hasOwnProperty.call(p,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:p["__proto__"]});Object.keys(p).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=p[e]}))},690:(e,t)=>{t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const n=[];if(e.sha256!==undefined){n.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){n.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const n="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=n;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4494:(e,t,n)=>{var o=n(8822);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:n,port:i,protocol:c,search:d}=e;let p;if(d){p=o.parseQueryString(d)}return{hostname:t,port:i?parseInt(i):undefined,protocol:c,path:n,query:p}};t.parseUrl=parseUrl},2674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(4151);const i=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!i.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},8385:(e,t,n)=>{var o=n(2674);var i=n(4871);Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},4871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(4151);const i=n(1577);const toBase64=e=>{let t;if(typeof e==="string"){t=(0,i.fromUtf8)(e)}else{t=e}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,o.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};t.toBase64=toBase64},2098:(e,t)=>{const n=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(n){return n.encode(e).byteLength}let t=e.length;for(let n=t-1;n>=0;n--){const o=e.charCodeAt(n);if(o>127&&o<=2047)t++;else if(o>2047&&o<=65535)t+=2;if(o>=56320&&o<=57343)n--}return t}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},3638:(e,t,n)=>{var o=n(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof o.ReadStream){if(e.path!=null){return o.lstatSync(e.path).size}else if(typeof e.fd==="number"){return o.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},4151:(e,t,n)=>{var o=n(6130);var i=n(181);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return i.Buffer.from(e,t,n)};const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?i.Buffer.from(e,t):i.Buffer.from(e)};t.fromArrayBuffer=fromArrayBuffer;t.fromString=fromString},6716:(e,t)=>{const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,n)=>{if(!(t in e))return undefined;const o=parseInt(e[t],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`)}return o};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));t.booleanSelector=booleanSelector;t.numberSelector=numberSelector},673:(e,t,n)=>{var o=n(9316);var i=n(5704);var c=n(8857);const d="AWS_EXECUTION_ENV";const p="AWS_REGION";const y="AWS_DEFAULT_REGION";const C="AWS_EC2_METADATA_DISABLED";const Q=["in-region","cross-region","mobile","standard","legacy"];const v="/latest/meta-data/placement/region";const D="AWS_DEFAULTS_MODE";const k="defaults_mode";const $={environmentVariableSelector:e=>e[D],configFileSelector:e=>e[k],default:"legacy"};const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig($)}={})=>c.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Q.join(", ")}, got ${n}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[d]&&(process.env[p]||process.env[y])){return process.env[p]??process.env[y]}if(!process.env[C]){try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(566).then(n.t.bind(n,566,19));const o=await e();return(await t({...o,path:v})).toString()}catch(e){}}};t.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9674:(e,t,n)=>{var o=n(690);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const n=this.hash(e);if(n===false){return t()}if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:n,done:o}=e.next();this.data.delete(n);if(o||++t>10){break}}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(n.length===0){return false}for(const o of n){const n=String(e[o]??"");if(n.includes("|;")){return false}t+=n+"|;"}return t}}const i=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}$`);const isIpAddress=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]");const c=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return c.test(e)}const n=e.split(".");for(const e of n){if(!isValidHostLabel(e)){return false}}return true};const d={};const p="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,t)=>e===t;const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const o of t){const t=o.indexOf("[");if(t!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(o.slice(0,t))}n.push(i)}else{n.push(o)}}return n};const getAttr=(e,t)=>getAttrPathList(t).reduce(((n,o)=>{if(typeof n!=="object"){throw new EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(o)]}return n[o]}),e);const isSet=e=>e!=null;const not=e=>!e;const y={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:i="",query:c={}}=e;const d=new URL(`${o}//${t}${n?`:${n}`:""}${i}`);d.search=Object.entries(c).map((([e,t])=>`${e}=${t}`)).join("&");return d}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:c,pathname:d,protocol:p,search:C}=t;if(C){return null}const Q=p.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(Q)){return null}const v=isIpAddress(c);const D=n.includes(`${i}:${y[Q]}`)||typeof e==="string"&&e.includes(`${i}:${y[Q]}`);const k=`${i}${D?`:${y[Q]}`:``}`;return{scheme:Q,authority:k,path:d,normalizedPath:d.endsWith("/")?d:`${d}/`,isIp:v}};const stringEquals=(e,t)=>e===t;const substring=(e,t,n,o)=>{if(t>=n||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const C={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const n=[];const o={...t.endpointParams,...t.referenceRecord};let i=0;while(i{const n={...t.endpointParams,...t.referenceRecord};return n[e]};const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return evaluateTemplate(e,n)}else if(e["fn"]){return Q.callFunction(e,n)}else if(e["ref"]){return getReferenceValue(e,n)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:Q.evaluateExpression(e,"arg",n)));const i=e.split(".");if(i[0]in d&&i[1]!=null){return d[i[0]][i[1]](...o)}return C[e](...o)};const Q={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${p} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);return{result:o===""?true:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};const evaluateConditions=(e=[],t)=>{const n={};for(const o of e){const{result:e,toAssign:i}=evaluateCondition(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e){return{result:e}}if(i){n[i.name]=i.value;t.logger?.debug?.(`${p} assign: ${i.name} := ${toDebugString(i.value)}`)}}return{result:true,referenceRecord:n}};const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:o.map((e=>{const o=evaluateExpression(e,"Header value entry",t);if(typeof o!=="string"){throw new EndpointError(`Header '${n}' value '${o}' is not a string`)}return o}))})),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:v.getEndpointProperty(o,t)})),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return v.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const v={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const n=evaluateExpression(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};const evaluateEndpointRule=(e,t)=>{const{conditions:n,endpoint:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}const d={...t,referenceRecord:{...t.referenceRecord,...c}};const{url:y,properties:C,headers:Q}=o;t.logger?.debug?.(`${p} Resolving endpoint from template: ${toDebugString(o)}`);return{...Q!=undefined&&{headers:getEndpointHeaders(Q,d)},...C!=undefined&&{properties:getEndpointProperties(C,d)},url:getEndpointUrl(y,d)}};const evaluateErrorRule=(e,t)=>{const{conditions:n,error:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}throw new EndpointError(evaluateExpression(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))};const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=evaluateEndpointRule(n,t);if(e){return e}}else if(n.type==="error"){evaluateErrorRule(n,t)}else if(n.type==="tree"){const e=D.evaluateTreeRule(n,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${n}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:o}=e;const{result:i,referenceRecord:c}=evaluateConditions(n,t);if(!i){return}return D.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...c}})};const D={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:n,logger:o}=t;const{parameters:i,rules:c}=e;t.logger?.debug?.(`${p} Initial EndpointParams: ${toDebugString(n)}`);const d=Object.entries(i).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(d.length>0){for(const[e,t]of d){n[e]=n[e]??t}}const y=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of y){if(n[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const C=evaluateRules(c,{endpointParams:n,logger:o,referenceRecord:{}});t.logger?.debug?.(`${p} Resolved endpoint: ${toDebugString(C)}`);return C};t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=d;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.resolveEndpoint=resolveEndpoint},6435:(e,t)=>{const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n{var o=n(690);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.getSmithyContext=getSmithyContext;t.normalizeProvider=normalizeProvider},5518:(e,t,n)=>{var o=n(2058);t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const i=3;const c=t.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=false;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if(o.isThrottlingError(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const d=100;const p=20*1e3;const y=500;const C=500;const Q=5;const v=10;const D=1;const k="amz-sdk-invocation-id";const $="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=d;const computeNextBackoffDelay=t=>Math.floor(Math.min(p,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(p,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=t.RETRY_MODES.STANDARD;capacity=C;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:d,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?y:d);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const c=this.getCapacityCost(n);this.capacity-=c;return createDefaultRetryToken({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:c})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(C,this.capacity+(e.getRetryCost()??D))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${i}`);return i}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?v:Q}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=t.RETRY_MODES.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=d){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=i;t.DEFAULT_RETRY_DELAY_BASE=d;t.DEFAULT_RETRY_MODE=c;t.DefaultRateLimiter=DefaultRateLimiter;t.INITIAL_RETRY_TOKENS=C;t.INVOCATION_ID_HEADER=k;t.MAXIMUM_RETRY_DELAY=p;t.NO_RETRY_INCREMENT=D;t.REQUEST_HEADER=$;t.RETRY_COST=Q;t.StandardRetryStrategy=StandardRetryStrategy;t.THROTTLING_RETRY_DELAY_BASE=y;t.TIMEOUT_RETRY_COST=v},1732:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const n=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends n{}t.ChecksumStream=ChecksumStream},1775:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const o=n(8385);const i=n(2203);class ChecksumStream extends i.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:i,base64Encoder:c}){super();if(typeof n.pipe==="function"){this.source=n}else{throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}this.base64Encoder=c??o.toBase64;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,t,n){try{this.checksum.update(e);const t=this.push(e);if(!t){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}}t.ChecksumStream=ChecksumStream},4129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=void 0;const o=n(8385);const i=n(4414);const c=n(7753);const createChecksumStream=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:d,base64Encoder:p})=>{if(!(0,i.isReadableStream)(n)){throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}const y=p??o.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const C=new TransformStream({start(){},async transform(e,n){t.update(e);n.enqueue(e)},async flush(n){const o=await t.digest();const i=y(o);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}"`+` in response header "${d}".`);n.error(t)}else{n.terminate()}}});n.pipeThrough(C);const Q=C.readable;Object.setPrototypeOf(Q,c.ChecksumStream.prototype);return Q};t.createChecksumStream=createChecksumStream},5639:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=createChecksumStream;const o=n(4414);const i=n(1775);const c=n(4129);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,o.isReadableStream)(e.source)){return(0,c.createChecksumStream)(e)}return new i.ChecksumStream(e)}},2005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=createBufferedReadable;const o=n(7075);const i=n(1732);const c=n(8213);const d=n(4414);function createBufferedReadable(e,t,n){if((0,d.isReadableStream)(e)){return(0,c.createBufferedReadableStream)(e,t,n)}const p=new o.Readable({read(){}});let y=false;let C=0;const Q=["",new i.ByteArrayCollector((e=>new Uint8Array(e))),new i.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let v=-1;e.on("data",(e=>{const o=(0,c.modeOf)(e,true);if(v!==o){if(v>=0){p.push((0,c.flush)(Q,v))}v=o}if(v===-1){p.push(e);return}const i=(0,c.sizeOf)(e);C+=i;const d=(0,c.sizeOf)(Q[v]);if(i>=t&&d===0){p.push(e)}else{const o=(0,c.merge)(Q,v,e);if(!y&&C>t*2){y=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){p.push((0,c.flush)(Q,v))}}}));e.on("end",(()=>{if(v!==-1){const e=(0,c.flush)(Q,v);if((0,c.sizeOf)(e)>0){p.push(e)}}p.push(null)}));return p}},8213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=void 0;t.createBufferedReadableStream=createBufferedReadableStream;t.merge=merge;t.flush=flush;t.sizeOf=sizeOf;t.modeOf=modeOf;const o=n(1732);function createBufferedReadableStream(e,t,n){const i=e.getReader();let c=false;let d=0;const p=["",new o.ByteArrayCollector((e=>new Uint8Array(e)))];let y=-1;const pull=async e=>{const{value:o,done:C}=await i.read();const Q=o;if(C){if(y!==-1){const t=flush(p,y);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const o=modeOf(Q,false);if(y!==o){if(y>=0){e.enqueue(flush(p,y))}y=o}if(y===-1){e.enqueue(Q);return}const i=sizeOf(Q);d+=i;const C=sizeOf(p[y]);if(i>=t&&C===0){e.enqueue(Q)}else{const o=merge(p,y,Q);if(!c&&d>t*2){c=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){e.enqueue(flush(p,y))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}t.createBufferedReadable=createBufferedReadableStream;function merge(e,t,n){switch(t){case 0:e[0]+=n;return sizeOf(e[0]);case 1:case 2:e[t].push(n);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const n=e[0];e[0]="";return n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},3492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:c,streamHasher:d}=t;const p=n!==undefined&&o!==undefined&&i!==undefined&&c!==undefined&&d!==undefined;const y=p?d(i,e):undefined;const C=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await C.read();if(i){e.enqueue(`0\r\n`);if(p){const t=n(await y);e.enqueue(`${c}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(o(t)||0).toString(16)}\r\n${t}\r\n`)}}})};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},6522:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const o=n(7075);const i=n(3492);const c=n(4414);function getAwsChunkedEncodingStream(e,t){const n=e;const d=e;if((0,c.isReadableStream)(d)){return(0,i.getAwsChunkedEncodingStream)(d,t)}const{base64Encoder:p,bodyLengthChecker:y,checksumAlgorithmFn:C,checksumLocationName:Q,streamHasher:v}=t;const D=p!==undefined&&C!==undefined&&Q!==undefined&&v!==undefined;const k=D?v(C,n):undefined;const $=new o.Readable({read:()=>{}});n.on("data",(e=>{const t=y(e)||0;if(t===0){return}$.push(`${t.toString(16)}\r\n`);$.push(e);$.push("\r\n")}));n.on("end",(async()=>{$.push(`0\r\n`);if(D){const e=p(await k);$.push(`${Q}:${e}\r\n`);$.push(`\r\n`)}$.push(null)}));return $}},66:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=headStream;async function headStream(e,t){let n=0;const o=[];const i=e.getReader();let c=false;while(!c){const{done:e,value:d}=await i.read();if(d){o.push(d);n+=d?.byteLength??0}if(n>=t){break}c=e}i.releaseLock();const d=new Uint8Array(Math.min(t,n));let p=0;for(const e of o){if(e.byteLength>d.byteLength-p){d.set(e.subarray(0,d.byteLength-p),p);break}else{d.set(e,p)}p+=e.length}return d}},8412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=void 0;const o=n(2203);const i=n(66);const c=n(4414);const headStream=(e,t)=>{if((0,c.isReadableStream)(e)){return(0,i.headStream)(e,t)}return new Promise(((n,o)=>{const i=new Collector;i.limit=t;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));n(e)}))}))};t.headStream=headStream;class Collector extends o.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,n){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}n()}}},4252:(e,t,n)=>{var o=n(8385);var i=n(1577);var c=n(1775);var d=n(5639);var p=n(2005);var y=n(6522);var C=n(8412);var Q=n(7201);var v=n(2108);var D=n(4414);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e==="string"){if(t==="base64"){return Uint8ArrayBlobAdapter.mutate(o.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(i.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return o.toBase64(this)}return i.toUtf8(this)}}t.isBlob=D.isBlob;t.isReadableStream=D.isReadableStream;t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.prototype.hasOwnProperty.call(c,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:c["__proto__"]});Object.keys(c).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=c[e]}));Object.prototype.hasOwnProperty.call(d,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:d["__proto__"]});Object.keys(d).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=d[e]}));Object.prototype.hasOwnProperty.call(p,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:p["__proto__"]});Object.keys(p).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=p[e]}));Object.prototype.hasOwnProperty.call(y,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:y["__proto__"]});Object.keys(y).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=y[e]}));Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=C[e]}));Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:Q["__proto__"]});Object.keys(Q).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=Q[e]}));Object.prototype.hasOwnProperty.call(v,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:v["__proto__"]});Object.keys(v).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=v[e]}))},2207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(7809);const i=n(8385);const c=n(6435);const d=n(1577);const p=n(4414);const y="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,p.isReadableStream)(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(y)}t=true;return await(0,o.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return(0,i.toBase64)(t)}else if(e==="hex"){return(0,c.toHex)(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,d.toUtf8)(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(y)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,p.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};t.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(1279);const i=n(4151);const c=n(2203);const d=n(2207);const p="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof c.Readable)){try{return(0,d.sdkStreamMixin)(e)}catch(t){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(p)}t=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,i.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(p)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof c.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return c.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},7570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}},2108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;const o=n(2203);const i=n(7570);const c=n(4414);async function splitStream(e){if((0,c.isReadableStream)(e)||(0,c.isBlob)(e)){return(0,i.splitStream)(e)}const t=new o.PassThrough;const n=new o.PassThrough;e.pipe(t);e.pipe(n);return[t,n]}},4414:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isBlob=t.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);t.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);t.isBlob=isBlob},146:(e,t)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath},1577:(e,t,n)=>{var o=n(4151);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};t.fromUtf8=fromUtf8;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8},5290:(e,t)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if(typeof n==="object"&&n!==null){if(e.has(n)){return"[Circular]"}e.add(n)}return n}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const n={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const i=e*2**(o-1);return randomInRange(e,i)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:n,maxWaitTime:o,abortController:i,client:c,abortSignal:d},p,y)=>{const C={};const{state:Q,reason:v}=await y(c,p);if(v){const e=createMessageFromResponse(v);C[e]|=0;C[e]+=1}if(Q!==t.WaiterState.RETRY){return{state:Q,reason:v,observedResponses:C}}let D=1;const k=Date.now()+o*1e3;const $=Math.log(n/e)/Math.log(2)+1;while(true){if(i?.signal?.aborted||d?.aborted){const e="AbortController signal aborted.";C[e]|=0;C[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:C}}const o=exponentialBackoffWithJitter(e,n,$,D);if(Date.now()+o*1e3>k){return{state:t.WaiterState.TIMEOUT,observedResponses:C}}await sleep(o);const{state:Q,reason:v}=await y(c,p);if(v){const e=createMessageFromResponse(v);C[e]|=0;C[e]+=1}if(Q!==t.WaiterState.RETRY){return{state:Q,reason:v,observedResponses:C}}D+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay{let n;const o=new Promise((o=>{n=()=>o({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",n)}else{e.onabort=n}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",n)}},aborted:o}};const createWaiter=async(e,t,o)=>{const i={...n,...e};validateWaiterOptions(i);const c=[runPolling(i,t,o)];const d=[];if(e.abortSignal){const{aborted:t,clearListener:n}=abortTimeout(e.abortSignal);d.push(n);c.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=abortTimeout(e.abortController.signal);d.push(n);c.push(t)}return Promise.race(c).then((e=>{for(const e of d){e()}return e}))};t.checkExceptions=checkExceptions;t.createWaiter=createWaiter;t.waiterServiceDefaults=n},266:(e,t,n)=>{var o=n(8492);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const v4=()=>{if(o.randomUUID){return o.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]};t.v4=v4},8492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=void 0;const o=n(1860);const i=o.__importDefault(n(6982));t.randomUUID=i.default.randomUUID.bind(i.default)},5183:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=c(n(8611));const p=c(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?p:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},8894:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const p=c(n(8611));d(n(5183),t);const y=Symbol("AgentBaseInternalState");class Agent extends p.Agent{constructor(e){super(e);this[y]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,o))).then((i=>{if(i instanceof p.Agent){return i.addRequest(e,o)}this[y].currentSocket=i;super.createSocket(e,t,n)}),n)}createConnection(){const e=this[y].currentSocket;this[y].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[y].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[y]){this[y].defaultPort=e}}get protocol(){return this[y].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[y]){this[y].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,c,d,p;var y=n.indexOf(e);var C=n.indexOf(t,y+1);var Q=y;if(y>=0&&C>0){if(e===t){return[y,C]}o=[];c=n.length;while(Q>=0&&!p){if(Q==y){o.push(Q);y=n.indexOf(e,Q+1)}else if(o.length==1){p=[o.pop(),C]}else{i=o.pop();if(i=0?y:C}if(o.length){p=[c,d]}}return p}},7087:e=>{e.exports=function(e,n){var o=[];for(var i=0;i{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}c++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[c];t=i.call(n,o);e.splice(c,1);c--}return t}));createDebug.formatArgs.call(n,e);const d=n.log||createDebug.log;d.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(5108)}},5108:(e,t,n)=>{const o=n(2018);const i=n(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const c=` ${i};1m${n} [0m`;t[0]=c+t[0].split("\n").join("\n"+c);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;oe.trim())).join(" ")};c.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o0){k("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);k("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){k("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(this.connectOpts)}else{k("Creating `net.Socket`: %o",this.connectOpts);i=p.connect(this.connectOpts)}await(0,Q.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},3669:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const p=c(n(9278));const y=c(n(4756));const C=d(n(2613));const Q=d(n(2830));const v=n(3333);const D=n(7016);const k=n(7943);const $=(0,Q.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!p.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends v.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};$("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){$("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{$("Creating `net.Socket`: %o",this.connectOpts);o=p.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const c=p.isIPv6(t.host)?`[${t.host}]`:t.host;let d=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${c}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){d+=`${e}: ${i[e]}\r\n`}const Q=(0,k.parseProxyResponse)(o);o.write(`${d}\r\n`);const{connect:v,buffered:D}=await Q;e.emit("proxyConnect",v);this.emit("proxyConnect",v,e);if(v.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){$("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const V=new p.Socket({writable:false});V.readable=true;e.once("socket",(e=>{$("Replaying proxy buffer for failed request");(0,C.default)(e.listenerCount("data")>0);e.push(D);e.push(null)}));return V}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},7943:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const c=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();c("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();c("onerror %o",e);n(e)}function ondata(d){i.push(d);o+=d.length;const p=Buffer.concat(i,o);const y=p.indexOf("\r\n\r\n");if(y===-1){c("have not received end of HTTP headers yet...");read();return}const C=p.slice(0,y).toString("ascii").split("\r\n");const Q=C.shift();if(!Q){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const v=Q.split(" ");const D=+v[1];const k=v.slice(2).join(" ");const $={};for(const t of C){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const c=t.slice(o+1).trimStart();const d=$[i];if(typeof d==="string"){$[i]=[d,c]}else if(Array.isArray(d)){d.push(c)}else{$[i]=c}}c("got proxy server response: %o %o",Q,$);cleanup();t({connect:{statusCode:D,statusText:k,headers:$},buffered:p})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},8515:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=c(n(8611));const p=c(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?p:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},3333:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const p=c(n(9278));const y=c(n(8611));const C=n(5692);d(n(8515),t);const Q=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[Q]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new p.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=typeof e.secureEndpoint==="boolean"?e.secureEndpoint:this.isSecureEndpoint(e);if(t){return C.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const c=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,c);if(d instanceof y.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[Q].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,c);n(e)}))}createConnection(){const e=this[Q].currentSocket;this[Q].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[Q].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[Q]){this[Q].defaultPort=e}}get protocol(){return this[Q].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[Q]){this[Q].protocol=e}}}t.Agent=Agent},3772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var c=n(3783);var d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var p="[^/]";var y=p+"*?";var C="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var Q="(?:(?!(?:\\/|^)\\.).)*?";var v=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var D=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(D)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,c=e.length;ik){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var $={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var c=!!n.nocase;var C=false;var Q=[];var D=[];var k;var V=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(k){switch(k){case"*":o+=y;c=true;break;case"?":o+=p;c=true;break;default:o+="\\"+k;break}ne.debug("clearStateChar %j %j",k,o);k=false}}for(var se=0,oe=e.length,ie;se-1;Ae--){var me=D[Ae];var ge=o.slice(0,me.reStart);var fe=o.slice(me.reStart,me.reEnd-8);var he=o.slice(me.reEnd-8,me.reEnd);var ye=o.slice(me.reEnd);he+=ye;var Ee=ge.split("(").length-1;var Ce=ye;for(se=0;se=0;d--){c=e[d];if(c)break}for(d=0;d>> no match, partial?",e,v,t,D);if(v===p)return true}return false}var $;if(typeof C==="string"){$=Q===C;this.debug("string match",C,Q,$)}else{$=Q.match(C);this.debug("pattern match",C,Q,$)}if(!$)return false}if(c===p&&d===y){return true}else if(c===p){return n}else if(d===y){return c===p-1&&e[c]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3783:(e,t,n)=>{var o=n(7087);var i=n(9380);e.exports=expandTop;var c="\0SLASH"+Math.random()+"\0";var d="\0OPEN"+Math.random()+"\0";var p="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var C="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(c).split("\\{").join(d).split("\\}").join(p).split("\\,").join(y).split("\\.").join(C)}function unescapeBraces(e){return e.split(c).join("\\").split(d).join("{").split(p).join("}").split(y).join(",").split(C).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var c=n.body;var d=n.post;var p=o.split(",");p[p.length-1]+="{"+c+"}";var y=parseCommaParts(d);if(d.length){p[p.length-1]+=y.shift();p.push.apply(p,y)}t.push.apply(t,p);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var c=i("{","}",e);if(!c||/\$$/.test(c.pre))return[e];var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body);var C=d||y;var Q=c.body.indexOf(",")>=0;if(!C&&!Q){if(c.post.match(/,(?!,).*\}/)){e=c.pre+"{"+c.body+p+c.post;return expand(e)}return[e]}var v;if(C){v=c.body.split(/\.\./)}else{v=parseCommaParts(c.body);if(v.length===1){v=expand(v[0],false).map(embrace);if(v.length===1){var D=c.post.length?expand(c.post,false):[""];return D.map((function(e){return c.pre+v[0]+e}))}}}var k=c.pre;var D=c.post.length?expand(c.post,false):[""];var $;if(C){var V=numeric(v[0]);var ee=numeric(v[1]);var te=Math.max(v[0].length,v[1].length);var re=v.length==3?Math.abs(numeric(v[2])):1;var ne=lte;var se=ee0){var le=new Array(ce+1).join("0");if(ie<0)ae="-"+le+ae.slice(1);else ae=le+ae}}}$.push(ae)}}else{$=o(v,(function(e){return expand(e,false)}))}for(var ue=0;ue<$.length;ue++){for(var de=0;de{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var c=i*7;var d=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!p){return}var y=parseFloat(p[1]);var C=(p[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return y*d;case"weeks":case"week":case"w":return y*c;case"days":case"day":case"d":return y*i;case"hours":case"hour":case"hrs":case"hr":case"h":return y*o;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var c=Math.abs(e);if(c>=i){return Math.round(e/i)+"d"}if(c>=o){return Math.round(e/o)+"h"}if(c>=n){return Math.round(e/n)+"m"}if(c>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var c=Math.abs(e);if(c>=i){return plural(e,c,i,"day")}if(c>=o){return plural(e,c,o,"hour")}if(c>=n){return plural(e,c,n,"minute")}if(c>=t){return plural(e,c,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},9379:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?c[d.COMPARATORLOOSE]:c[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new C(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}return p(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new Q(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new Q(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(p(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(p(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(356);const{safeRe:c,t:d}=n(5471);const p=n(8646);const y=n(1159);const C=n(7163);const Q=n(6782)},6782:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof p){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&V)|(this.options.loose&&ee);const n=t+":"+e;const o=c.get(n);if(o){return o}const i=this.options.loose;const d=i?Q[v.HYPHENRANGELOOSE]:Q[v.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(Q[v.COMPARATORTRIM],D);y("comparator trim",e);e=e.replace(Q[v.TILDETRIM],k);y("tilde trim",e);e=e.replace(Q[v.CARETTRIM],$);y("caret trim",e);let C=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){C=C.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(Q[v.COMPARATORLOOSE])}))}y("range list",C);const te=new Map;const re=C.map((e=>new p(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];c.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new C(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(Q[v.BUILD],"");y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?Q[v.TILDELOOSE]:Q[v.TILDE];return e.replace(n,((t,n,o,i,c)=>{y("tilde",e,t,n,o,i,c);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(c){y("replaceTilde pr",c);d=`>=${n}.${o}.${i}-${c} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}y("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?Q[v.CARETLOOSE]:Q[v.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,c,d)=>{y("caret",e,t,n,i,c,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(c)){if(n==="0"){p=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){y("replaceCaret pr",d);if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}-${d} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}-${d} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c}-${d} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(i==="0"){p=`>=${n}.${i}.${c}${o} <${n}.${i}.${+c+1}-0`}else{p=`>=${n}.${i}.${c}${o} <${n}.${+i+1}.0-0`}}else{p=`>=${n}.${i}.${c} <${+n+1}.0.0-0`}}y("caret return",p);return p}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?Q[v.XRANGELOOSE]:Q[v.XRANGE];return e.replace(n,((n,o,i,c,d,p)=>{y("xRange",e,n,o,i,c,d,p);const C=isX(i);const Q=C||isX(c);const v=Q||isX(d);const D=v;if(o==="="&&D){o=""}p=t.includePrerelease?"-0":"";if(C){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(Q){c=0}d=0;if(o===">"){o=">=";if(Q){i=+i+1;c=0;d=0}else{c=+c+1;d=0}}else if(o==="<="){o="<";if(Q){i=+i+1}else{c=+c+1}}if(o==="<"){p="-0"}n=`${o+i}.${c}.${d}${p}`}else if(Q){n=`>=${i}.0.0${p} <${+i+1}.0.0-0`}else if(v){n=`>=${i}.${c}.0${p} <${i}.${+c+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(Q[v.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(Q[t.includePrerelease?v.GTE0PRE:v.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,c,d,p,y,C,Q,v,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(c)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(C)){y=""}else if(isX(Q)){y=`<${+C+1}.0.0-0`}else if(isX(v)){y=`<${C}.${+Q+1}.0-0`}else if(D){y=`<=${C}.${Q}.${v}-${D}`}else if(e){y=`<${C}.${Q}.${+v+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{const o=n(1159);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:c}=n(5101);const{safeRe:d,t:p}=n(5471);const y=n(356);const{compareIdentifiers:C}=n(3348);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[p.LOOSE]:d[p.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major){return 1}if(this.minore.minor){return 1}if(this.patche.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return C(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[p.PRERELEASELOOSE]:d[p.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(C(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{const o=n(6353);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},8646:(e,t,n)=>{const o=n(5082);const i=n(4974);const c=n(6599);const d=n(1236);const p=n(3872);const y=n(6717);const cmp=(e,t,n,C)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,C);case"!=":return i(e,n,C);case">":return c(e,n,C);case">=":return d(e,n,C);case"<":return p(e,n,C);case"<=":return y(e,n,C);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,n)=>{const o=n(7163);const i=n(6353);const{safeRe:c,t:d}=n(5471);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?c[d.COERCEFULL]:c[d.COERCE])}else{const o=t.includePrerelease?c[d.COERCERTLFULL]:c[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const p=n[2];const y=n[3]||"0";const C=n[4]||"0";const Q=t.includePrerelease&&n[5]?`-${n[5]}`:"";const v=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${p}.${y}.${C}${Q}${v}`,t)};e.exports=coerce},7648:(e,t,n)=>{const o=n(7163);const compareBuild=(e,t,n)=>{const i=new o(e,n);const c=new o(t,n);return i.compare(c)||i.compareBuild(c)};e.exports=compareBuild},6874:(e,t,n)=>{const o=n(8469);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},8469:(e,t,n)=>{const o=n(7163);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},711:(e,t,n)=>{const o=n(6353);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const c=n.compare(i);if(c===0){return null}const d=c>0;const p=d?n:i;const y=d?i:n;const C=!!p.prerelease.length;const Q=!!y.prerelease.length;if(Q&&!C){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(p)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const v=C?"pre":"";if(n.major!==i.major){return v+"major"}if(n.minor!==i.minor){return v+"minor"}if(n.patch!==i.patch){return v+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,n)=>{const o=n(8469);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},6599:(e,t,n)=>{const o=n(8469);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},1236:(e,t,n)=>{const o=n(8469);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2338:(e,t,n)=>{const o=n(7163);const inc=(e,t,n,i,c)=>{if(typeof n==="string"){c=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,c).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{const o=n(8469);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},6717:(e,t,n)=>{const o=n(8469);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},8511:(e,t,n)=>{const o=n(7163);const major=(e,t)=>new o(e,t).major;e.exports=major},2603:(e,t,n)=>{const o=n(7163);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},4974:(e,t,n)=>{const o=n(8469);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},6353:(e,t,n)=>{const o=n(7163);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},8756:(e,t,n)=>{const o=n(7163);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5714:(e,t,n)=>{const o=n(6353);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},2173:(e,t,n)=>{const o=n(8469);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},7192:(e,t,n)=>{const o=n(7648);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},8011:(e,t,n)=>{const o=n(6782);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,n)=>{const o=n(7648);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},8780:(e,t,n)=>{const o=n(6353);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},2088:(e,t,n)=>{const o=n(5471);const i=n(5101);const c=n(7163);const d=n(3348);const p=n(6353);const y=n(8780);const C=n(1799);const Q=n(2338);const v=n(711);const D=n(8511);const k=n(2603);const $=n(8756);const V=n(5714);const ee=n(8469);const te=n(2173);const re=n(6874);const ne=n(7648);const se=n(9872);const oe=n(7192);const ie=n(6599);const ae=n(3872);const ce=n(5082);const le=n(4974);const ue=n(1236);const de=n(6717);const pe=n(8646);const Ae=n(5385);const me=n(9379);const ge=n(6782);const fe=n(8011);const he=n(4750);const ye=n(5574);const Ee=n(8595);const Ce=n(1866);const Ie=n(4737);const be=n(280);const Se=n(2276);const Be=n(5213);const we=n(3465);const Re=n(2028);const Ne=n(1489);e.exports={parse:p,valid:y,clean:C,inc:Q,diff:v,major:D,minor:k,patch:$,prerelease:V,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:se,rsort:oe,gt:ie,lt:ae,eq:ce,neq:le,gte:ue,lte:de,cmp:pe,coerce:Ae,Comparator:me,Range:ge,satisfies:fe,toComparators:he,maxSatisfying:ye,minSatisfying:Ee,minVersion:Ce,validRange:Ie,outside:be,gtr:Se,ltr:Be,intersects:we,simplifyRange:Re,subset:Ne,SemVer:c,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const c=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:c}=n(5101);const d=n(1159);t=e.exports={};const p=t.re=[];const y=t.safeRe=[];const C=t.src=[];const Q=t.safeSrc=[];const v=t.t={};let D=0;const k="[a-zA-Z0-9-]";const $=[["\\s",1],["\\d",c],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of $){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);v[e]=i;C[i]=t;Q[i]=o;p[i]=new RegExp(t,n?"g":undefined);y[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})\\.`+`(${C[v.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})\\.`+`(${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${C[v.NONNUMERICIDENTIFIER]}|${C[v.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${C[v.PRERELEASEIDENTIFIER]}(?:\\.${C[v.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${C[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${C[v.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${C[v.BUILDIDENTIFIER]}(?:\\.${C[v.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${C[v.MAINVERSION]}${C[v.PRERELEASE]}?${C[v.BUILD]}?`);createToken("FULL",`^${C[v.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${C[v.MAINVERSIONLOOSE]}${C[v.PRERELEASELOOSE]}?${C[v.BUILD]}?`);createToken("LOOSE",`^${C[v.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${C[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${C[v.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:\\.(${C[v.XRANGEIDENTIFIER]})`+`(?:${C[v.PRERELEASE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${C[v.XRANGEIDENTIFIERLOOSE]})`+`(?:${C[v.PRERELEASELOOSE]})?${C[v.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${C[v.GTLT]}\\s*${C[v.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${C[v.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",C[v.COERCEPLAIN]+`(?:${C[v.PRERELEASE]})?`+`(?:${C[v.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",C[v.COERCE],true);createToken("COERCERTLFULL",C[v.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${C[v.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${C[v.LONETILDE]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${C[v.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${C[v.LONECARET]}${C[v.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${C[v.LONECARET]}${C[v.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${C[v.GTLT]}\\s*(${C[v.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${C[v.GTLT]}\\s*(${C[v.LOOSEPLAIN]}|${C[v.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${C[v.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${C[v.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${C[v.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,n)=>{const o=n(280);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},3465:(e,t,n)=>{const o=n(6782);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},5213:(e,t,n)=>{const o=n(280);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},5574:(e,t,n)=>{const o=n(7163);const i=n(6782);const maxSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===-1){c=e;d=new o(c,n)}}}));return c};e.exports=maxSatisfying},8595:(e,t,n)=>{const o=n(7163);const i=n(6782);const minSatisfying=(e,t,n)=>{let c=null;let d=null;let p=null;try{p=new i(t,n)}catch(e){return null}e.forEach((e=>{if(p.test(e)){if(!c||d.compare(e)===1){c=e;d=new o(c,n)}}}));return c};e.exports=minSatisfying},1866:(e,t,n)=>{const o=n(7163);const i=n(6782);const c=n(6599);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||c(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||c(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},280:(e,t,n)=>{const o=n(7163);const i=n(9379);const{ANY:c}=i;const d=n(6782);const p=n(8011);const y=n(6599);const C=n(3872);const Q=n(6717);const v=n(1236);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,$,V,ee,te;switch(n){case">":k=y;$=Q;V=C;ee=">";te=">=";break;case"<":k=C;$=v;V=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(e,t,D)){return false}for(let n=0;n{if(e.semver===c){e=new i(">=0.0.0")}d=d||e;p=p||e;if(k(e.semver,d.semver,D)){d=e}else if(V(e.semver,p.semver,D)){p=e}}));if(d.operator===ee||d.operator===te){return false}if((!p.operator||p.operator===ee)&&$(e,p.semver)){return false}else if(p.operator===te&&V(e,p.semver)){return false}}return true};e.exports=outside},2028:(e,t,n)=>{const o=n(8011);const i=n(8469);e.exports=(e,t,n)=>{const c=[];let d=null;let p=null;const y=e.sort(((e,t)=>i(e,t,n)));for(const e of y){const i=o(e,t,n);if(i){p=e;if(!d){d=e}}else{if(p){c.push([d,p])}p=null;d=null}}if(d){c.push([d,null])}const C=[];for(const[e,t]of c){if(e===t){C.push(e)}else if(!t&&e===y[0]){C.push("*")}else if(!t){C.push(`>=${e}`)}else if(e===y[0]){C.push(`<=${t}`)}else{C.push(`${e} - ${t}`)}}const Q=C.join(" || ");const v=typeof t.raw==="string"?t.raw:String(t);return Q.length{const o=n(6782);const i=n(9379);const{ANY:c}=i;const d=n(8011);const p=n(8469);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const y=[new i(">=0.0.0-0")];const C=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===c){if(t.length===1&&t[0].semver===c){return true}else if(n.includePrerelease){e=y}else{e=C}}if(t.length===1&&t[0].semver===c){if(n.includePrerelease){return true}else{t=C}}const o=new Set;let i,Q;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){Q=lowerLT(Q,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let v;if(i&&Q){v=p(i.semver,Q.semver,n);if(v>0){return null}else if(v===0&&(i.operator!==">="||Q.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(Q&&!d(e,String(Q),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let $,V;let ee=Q&&!n.includePrerelease&&Q.semver.prerelease.length?Q.semver:false;let te=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(ee&&ee.prerelease.length===1&&Q.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){V=V||e.operator===">"||e.operator===">=";$=$||e.operator==="<"||e.operator==="<=";if(i){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(Q){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(Q,e,n);if(k===e&&k!==Q){return false}}else if(Q.operator==="<="&&!d(Q.semver,String(e),n)){return false}}if(!e.operator&&(Q||i)&&v!==0){return false}}if(i&&$&&!Q&&v!==0){return false}if(Q&&V&&!i&&v!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=p(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,n)=>{const o=n(6782);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,n)=>{const o=n(6782);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,n)=>{const o=n(857);const i=n(2018);const c=n(3813);const{env:d}=process;let p;if(c("no-color")||c("no-colors")||c("color=false")||c("color=never")){p=0}else if(c("color")||c("colors")||c("color=true")||c("color=always")){p=1}if("FORCE_COLOR"in d){if(d.FORCE_COLOR==="true"){p=1}else if(d.FORCE_COLOR==="false"){p=0}else{p=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(p===0){return 0}if(c("color=16m")||c("color=full")||c("color=truecolor")){return 3}if(c("color=256")){return 2}if(e&&!t&&p===undefined){return 0}const n=p||0;if(d.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in d){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in d))||d.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in d){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0}if(d.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in d){const e=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(d.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)){return 1}if("COLORTERM"in d){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},1288:(e,t,n)=>{var o;
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan
*
* MIT Licensed
- */const i=n(9896);const d=n(857);const p=n(6928);const f=n(6982);const y={fs:i.constants,os:d.constants};const v="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",D=/XXXXXX/,M=3,U=(y.O_CREAT||y.fs.O_CREAT)|(y.O_EXCL||y.fs.O_EXCL)|(y.O_RDWR||y.fs.O_RDWR),V=d.platform()==="win32",j=y.EBADF||y.os.errno.EBADF,K=y.ENOENT||y.os.errno.ENOENT,ee=448,te=384,re="exit",ne=[],se=i.rmdirSync.bind(i);let oe=false;function rimraf(e,t){return i.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return i.rmSync(e,{recursive:true})}function tmpName(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];_assertAndSanitizeOptions(o,(function(e,t){if(e)return d(e);let n=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);i.stat(e,(function(t){if(!t){if(n-- >0)return _getUniqueName();return d(new Error("Could not get a unique tmp filename, max tries reached "+e))}d(null,e)}))}catch(e){d(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),n=t[0];const o=_assertAndSanitizeOptionsSync(n);let d=o.tries;do{const e=_generateTmpName(o);try{i.statSync(e)}catch(t){return e}}while(d-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return d(e);i.open(t,U,o.mode||te,(function _fileCreated(e,n){if(e)return d(e);if(o.discardDescriptor){return i.close(n,(function _discardCallback(e){return d(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o,false))}))}else{const e=o.discardDescriptor||o.detachDescriptor;d(null,t,n,_prepareTmpFileRemoveCallback(t,e?-1:n,o,false))}}))}))}function fileSync(e){const t=_parseArguments(e),n=t[0];const o=n.discardDescriptor||n.detachDescriptor;const d=tmpNameSync(n);let p=i.openSync(d,U,n.mode||te);if(n.discardDescriptor){i.closeSync(p);p=undefined}return{name:d,fd:p,removeCallback:_prepareTmpFileRemoveCallback(d,o?-1:p,n,true)}}function dir(e,t){const n=_parseArguments(e,t),o=n[0],d=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return d(e);i.mkdir(t,o.mode||ee,(function _dirCreated(e){if(e)return d(e);d(null,t,_prepareTmpDirRemoveCallback(t,o,false))}))}))}function dirSync(e){const t=_parseArguments(e),n=t[0];const o=tmpNameSync(n);i.mkdirSync(o,n.mode||ee);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,n,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));else i.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,n,o){const i=_prepareRemoveCallback(_removeFileSync,[t,e],o);const d=_prepareRemoveCallback(_removeFileAsync,[t,e],o,i);if(!n.keep)ne.unshift(i);return o?i:d}function _prepareTmpDirRemoveCallback(e,t,n){const o=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const d=t.unsafeCleanup?FN_RIMRAF_SYNC:se;const p=_prepareRemoveCallback(d,e,n);const f=_prepareRemoveCallback(o,e,n,p);if(!t.keep)ne.unshift(p);return n?p:f}function _prepareRemoveCallback(e,t,n,o){let i=false;return function _cleanupCallback(d){if(!i){const p=o||_cleanupCallback;const f=ne.indexOf(p);if(f>=0)ne.splice(f,1);i=true;if(n||e===se||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,d||function(){})}}}}function _garbageCollector(){if(!oe)return;while(ne.length){try{ne[0]()}catch(e){}}}function _randomChars(e){let t=[],n=null;try{n=f.randomBytes(e)}catch(t){n=f.pseudoRandomBytes(e)}for(let o=0;o{var t;var n;var o;var i;var d;var p;var f;var y;var v;var D;var M;var U;var V;var j;var K;var ee;var te;var re;var ne;var se;var oe;var ie;var ae;var ce;var le;var ue;var de;var Ae;var pe;var me;var ge;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;f--)if(p=e[f])d=(i<3?p(d):i>3?p(t,n,d):p(t,n))||d;return i>3&&d&&Object.defineProperty(t,n,d),d};d=function(e,t){return function(n,o){t(n,o,e)}};p=function(e,t,n,o,i,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var p=o.kind,f=p==="getter"?"get":p==="setter"?"set":"value";var y=!t&&e?o["static"]?e:e.prototype:null;var v=t||(y?Object.getOwnPropertyDescriptor(y,o.name):{});var D,M=false;for(var U=n.length-1;U>=0;U--){var V={};for(var j in o)V[j]=j==="access"?{}:o[j];for(var j in o.access)V.access[j]=o.access[j];V.addInitializer=function(e){if(M)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,n[U])(p==="accessor"?{get:v.get,set:v.set}:v[f],V);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(D=accept(K.get))v.get=D;if(D=accept(K.set))v.set=D;if(D=accept(K.init))i.unshift(D)}else if(D=accept(K)){if(p==="field")i.unshift(D);else v[f]=D}}if(y)Object.defineProperty(y,o.name,v);M=true};f=function(e,t,n){var o=arguments.length>2;for(var i=0;i0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,d=[],p;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)d.push(i.value)}catch(e){p={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(p)throw p.error}}return d};ee=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};oe=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:ne(e[o](t)),done:false}:i?i(t):t}:i}};ie=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof j==="function"?j(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var he=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};ce=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))pe(t,e,n);he(t,e);return t};le=function(e){return e&&e.__esModule?e:{default:e}};ue=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};de=function(e,t,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};Ae=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};me=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose]}if(typeof o!=="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:o,async:n})}else if(n){e.stack.push({async:true})}return t};var ye=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};ge=function(e){function fail(t){e.error=e.hasError?new ye(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}function next(){while(e.stack.length){var t=e.stack.pop();try{var n=t.dispose&&t.dispose.call(t.value);if(t.async)return Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}catch(e){fail(e)}}if(e.hasError)throw e.error}return next()};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",i);e("__param",d);e("__esDecorate",p);e("__runInitializers",f);e("__propKey",y);e("__setFunctionName",v);e("__metadata",D);e("__awaiter",M);e("__generator",U);e("__exportStar",V);e("__createBinding",pe);e("__values",j);e("__read",K);e("__spread",ee);e("__spreadArrays",te);e("__spreadArray",re);e("__await",ne);e("__asyncGenerator",se);e("__asyncDelegator",oe);e("__asyncValues",ie);e("__makeTemplateObject",ae);e("__importStar",ce);e("__importDefault",le);e("__classPrivateFieldGet",ue);e("__classPrivateFieldSet",de);e("__classPrivateFieldIn",Ae);e("__addDisposableResource",me);e("__disposeResources",ge)}))},770:(e,t,n)=>{e.exports=n(218)},218:(e,t,n)=>{var o=n(9278);var i=n(4756);var d=n(8611);var p=n(5692);var f=n(4434);var y=n(2613);var v=n(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||d.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,i){var d=toOptions(n,o,i);for(var p=0,f=t.requests.length;p=this.maxSockets){i.requests.push(d);return}i.createSocket(d,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,d)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}D("making CONNECT request");var d=n.request(i);d.useChunkedEncodingByDefault=false;d.once("response",onResponse);d.once("upgrade",onUpgrade);d.once("connect",onConnect);d.once("error",onError);d.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(i,p,f){d.removeAllListeners();p.removeAllListeners();if(i.statusCode!==200){D("tunneling socket could not be established, statusCode=%d",i.statusCode);p.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}if(f.length>0){D("got illegal response body from proxy");p.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}D("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=p;return t(p)}function onError(t){d.removeAllListeners();D("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var d=e.request.getHeader("host");var p=mergeOptions({},n.options,{socket:o,servername:d?d.replace(/:.*$/,""):e.host});var f=i.connect(0,p);n.sockets[n.sockets.indexOf(o)]=f;t(f)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{const o=n(3701);const i=n(883);const d=n(628);const p=n(837);const f=n(7405);const y=n(6672);const v=n(3137);const D=n(50);const M=n(8707);const U=n(3440);const{InvalidArgumentError:V}=M;const j=n(6615);const K=n(9136);const ee=n(7365);const te=n(7501);const re=n(4004);const ne=n(2429);const se=n(7816);const{getGlobalDispatcher:oe,setGlobalDispatcher:ie}=n(2581);const ae=n(8155);const ce=n(8754);const le=n(5092);Object.assign(i.prototype,j);e.exports.Dispatcher=i;e.exports.Client=o;e.exports.Pool=d;e.exports.BalancedPool=p;e.exports.Agent=f;e.exports.ProxyAgent=y;e.exports.EnvHttpProxyAgent=v;e.exports.RetryAgent=D;e.exports.RetryHandler=se;e.exports.DecoratorHandler=ae;e.exports.RedirectHandler=ce;e.exports.createRedirectInterceptor=le;e.exports.interceptors={redirect:n(1514),retry:n(2026),dump:n(8060),dns:n(379)};e.exports.buildConnector=K;e.exports.errors=M;e.exports.util={parseHeaders:U.parseHeaders,headerNameToString:U.headerNameToString};function makeDispatcher(e){return(t,n,o)=>{if(typeof n==="function"){o=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new V("invalid url")}if(n!=null&&typeof n!=="object"){throw new V("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new V("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(U.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=U.parseURL(t)}const{agent:i,dispatcher:d=oe()}=n;if(i){throw new V("unsupported opts.agent. Did you mean opts.client?")}return e.call(d,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},o)}}e.exports.setGlobalDispatcher=ie;e.exports.getGlobalDispatcher=oe;const ue=n(4398).fetch;e.exports.fetch=async function fetch(e,t=undefined){try{return await ue(e,t)}catch(e){if(e&&typeof e==="object"){Error.captureStackTrace(e)}throw e}};e.exports.Headers=n(660).Headers;e.exports.Response=n(9051).Response;e.exports.Request=n(9967).Request;e.exports.FormData=n(5910).FormData;e.exports.File=globalThis.File??n(4573).File;e.exports.FileReader=n(8355).FileReader;const{setGlobalOrigin:de,getGlobalOrigin:Ae}=n(1059);e.exports.setGlobalOrigin=de;e.exports.getGlobalOrigin=Ae;const{CacheStorage:pe}=n(3245);const{kConstruct:me}=n(109);e.exports.caches=new pe(me);const{deleteCookie:ge,getCookies:fe,getSetCookies:he,setCookie:ye}=n(9061);e.exports.deleteCookie=ge;e.exports.getCookies=fe;e.exports.getSetCookies=he;e.exports.setCookie=ye;const{parseMIMEType:Ee,serializeAMimeType:Ce}=n(1900);e.exports.parseMIMEType=Ee;e.exports.serializeAMimeType=Ce;const{CloseEvent:Ie,ErrorEvent:be,MessageEvent:Se}=n(5188);e.exports.WebSocket=n(3726).WebSocket;e.exports.CloseEvent=Ie;e.exports.ErrorEvent=be;e.exports.MessageEvent=Se;e.exports.request=makeDispatcher(j.request);e.exports.stream=makeDispatcher(j.stream);e.exports.pipeline=makeDispatcher(j.pipeline);e.exports.connect=makeDispatcher(j.connect);e.exports.upgrade=makeDispatcher(j.upgrade);e.exports.MockClient=ee;e.exports.MockPool=re;e.exports.MockAgent=te;e.exports.mockErrors=ne;const{EventSource:Be}=n(1238);e.exports.EventSource=Be},158:(e,t,n)=>{const{addAbortListener:o}=n(3440);const{RequestAbortedError:i}=n(8707);const d=Symbol("kListener");const p=Symbol("kSignal");function abort(e){if(e.abort){e.abort(e[p]?.reason)}else{e.reason=e[p]?.reason??new i}removeSignal(e)}function addSignal(e,t){e.reason=null;e[p]=null;e[d]=null;if(!t){return}if(t.aborted){abort(e);return}e[p]=t;e[d]=()=>{abort(e)};o(e[p],e[d])}function removeSignal(e){if(!e[p]){return}if("removeEventListener"in e[p]){e[p].removeEventListener("abort",e[d])}else{e[p].removeListener("abort",e[d])}e[p]=null;e[d]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(e,t,n)=>{const o=n(4589);const{AsyncResource:i}=n(6698);const{InvalidArgumentError:d,SocketError:p}=n(8707);const f=n(3440);const{addSignal:y,removeSignal:v}=n(158);class ConnectHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new d("invalid opts")}if(typeof t!=="function"){throw new d("invalid callback")}const{signal:n,opaque:o,responseHeaders:i}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=i||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(){throw new p("bad connect",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:d}=this;v(this);this.callback=null;let p=t;if(p!=null){p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t)}this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=connect},6862:(e,t,n)=>{const{Readable:o,Duplex:i,PassThrough:d}=n(7075);const{InvalidArgumentError:p,InvalidReturnValueError:f,RequestAbortedError:y}=n(8707);const v=n(3440);const{AsyncResource:D}=n(6698);const{addSignal:M,removeSignal:U}=n(158);const V=n(4589);const j=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[j]=null}_read(){const{[j]:e}=this;if(e){this[j]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends o{constructor(e){super({autoDestroy:true});this[j]=e}_read(){this[j]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends D{constructor(e,t){if(!e||typeof e!=="object"){throw new p("invalid opts")}if(typeof t!=="function"){throw new p("invalid handler")}const{signal:n,method:o,opaque:d,onInfo:f,responseHeaders:D}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new p("invalid method")}if(f&&typeof f!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=d||null;this.responseHeaders=D||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=f||null;this.req=(new PipelineRequest).on("error",v.nop);this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e?.resume){e.resume()}},write:(e,t,n)=>{const{req:o}=this;if(o.push(e,t)||o._readableState.destroyed){n()}else{o[j]=n}},destroy:(e,t)=>{const{body:n,req:o,res:i,ret:d,abort:p}=this;if(!e&&!d._readableState.endEmitted){e=new y}if(p&&e){p()}v.destroy(n,e);v.destroy(o,e);v.destroy(i,e);U(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;M(this,n)}onConnect(e,t){const{ret:n,res:o}=this;if(this.reason){e(this.reason);return}V(!o,"pipeline cannot be retried");V(!n.destroyed);this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:o,handler:i,context:d}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let p;try{this.handler=null;const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);p=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:o,body:this.res,context:d})}catch(e){this.res.on("error",v.nop);throw e}if(!p||typeof p.on!=="function"){throw new f("expected Readable")}p.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;v.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){v.destroy(e,new y)}}));this.body=p}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;v.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new d).destroy(e)}}e.exports=pipeline},4043:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(9927);const{InvalidArgumentError:d,RequestAbortedError:p}=n(8707);const f=n(3440);const{getResolveErrorBodyCallback:y}=n(7655);const{AsyncResource:v}=n(6698);class RequestHandler extends v{constructor(e,t){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:n,method:o,opaque:i,body:y,onInfo:v,responseHeaders:D,throwOnError:M,highWaterMark:U}=e;try{if(typeof t!=="function"){throw new d("invalid callback")}if(U&&(typeof U!=="number"||U<0)){throw new d("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new d("invalid method")}if(v&&typeof v!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(f.isStream(y)){f.destroy(y.on("error",f.nop),e)}throw e}this.method=o;this.responseHeaders=D||null;this.opaque=i||null;this.callback=t;this.res=null;this.abort=null;this.body=y;this.trailers={};this.context=null;this.onInfo=v||null;this.throwOnError=M;this.highWaterMark=U;this.signal=n;this.reason=null;this.removeAbortListener=null;if(f.isStream(y)){y.on("error",(e=>{this.onError(e)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new p}else{this.removeAbortListener=f.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new p;if(this.res){f.destroy(this.res.on("error",f.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{callback:d,opaque:p,abort:v,context:D,responseHeaders:M,highWaterMark:U}=this;const V=M==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:V})}return}const j=M==="raw"?f.parseHeaders(t):V;const K=j["content-type"];const ee=j["content-length"];const te=new i({resume:n,abort:v,contentType:K,contentLength:this.method!=="HEAD"&&ee?Number(ee):null,highWaterMark:U});if(this.removeAbortListener){te.on("close",this.removeAbortListener)}this.callback=null;this.res=te;if(d!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(y,null,{callback:d,body:te,contentType:K,statusCode:e,statusMessage:o,headers:V})}else{this.runInAsyncScope(d,null,null,{statusCode:e,headers:V,trailers:this.trailers,opaque:p,body:te,context:D})}}}onData(e){return this.res.push(e)}onComplete(e){f.parseHeaders(e,this.trailers);this.res.push(null)}onError(e){const{res:t,callback:n,body:o,opaque:i}=this;if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(t){this.res=null;queueMicrotask((()=>{f.destroy(t,e)}))}if(o){this.body=null;f.destroy(o,e)}if(this.removeAbortListener){t?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{const o=n(4589);const{finished:i,PassThrough:d}=n(7075);const{InvalidArgumentError:p,InvalidReturnValueError:f}=n(8707);const y=n(3440);const{getResolveErrorBodyCallback:v}=n(7655);const{AsyncResource:D}=n(6698);const{addSignal:M,removeSignal:U}=n(158);class StreamHandler extends D{constructor(e,t,n){if(!e||typeof e!=="object"){throw new p("invalid opts")}const{signal:o,method:i,opaque:d,body:f,onInfo:v,responseHeaders:D,throwOnError:U}=e;try{if(typeof n!=="function"){throw new p("invalid callback")}if(typeof t!=="function"){throw new p("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new p("invalid method")}if(v&&typeof v!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(f)){y.destroy(f.on("error",y.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=d||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=f;this.onInfo=v||null;this.throwOnError=U||false;if(y.isStream(f)){f.on("error",(e=>{this.onError(e)}))}M(this,o)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{factory:p,opaque:D,context:M,callback:U,responseHeaders:V}=this;const j=V==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:j})}return}this.factory=null;let K;if(this.throwOnError&&e>=400){const n=V==="raw"?y.parseHeaders(t):j;const i=n["content-type"];K=new d;this.callback=null;this.runInAsyncScope(v,null,{callback:U,body:K,contentType:i,statusCode:e,statusMessage:o,headers:j})}else{if(p===null){return}K=this.runInAsyncScope(p,null,{statusCode:e,headers:j,opaque:D,context:M});if(!K||typeof K.write!=="function"||typeof K.end!=="function"||typeof K.on!=="function"){throw new f("expected Writable")}i(K,{readable:false},(e=>{const{callback:t,res:n,opaque:o,trailers:i,abort:d}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:o,trailers:i});if(e){d()}}))}K.on("drain",n);this.res=K;const ee=K.writableNeedDrain!==undefined?K.writableNeedDrain:K._writableState?.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;U(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:o,body:i}=this;U(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(i){this.body=null;y.destroy(i,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,o)=>{stream.call(this,e,t,((e,t)=>e?o(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const o=e?.opaque;queueMicrotask((()=>n(t,{opaque:o})))}}e.exports=stream},1882:(e,t,n)=>{const{InvalidArgumentError:o,SocketError:i}=n(8707);const{AsyncResource:d}=n(6698);const p=n(3440);const{addSignal:f,removeSignal:y}=n(158);const v=n(4589);class UpgradeHandler extends d{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=d||null;this.opaque=i||null;this.callback=t;this.abort=null;this.context=null;f(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}v(this.callback);this.abort=e;this.context=null}onHeaders(){throw new i("bad upgrade",null)}onUpgrade(e,t,n){v(e===101);const{callback:o,opaque:i,context:d}=this;y(this);this.callback=null;const f=this.responseHeaders==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);this.runInAsyncScope(o,null,null,{headers:f,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;y(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=upgrade},6615:(e,t,n)=>{e.exports.request=n(4043);e.exports.stream=n(3560);e.exports.pipeline=n(6862);e.exports.upgrade=n(1882);e.exports.connect=n(2279)},9927:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(7075);const{RequestAbortedError:d,NotSupportedError:p,InvalidArgumentError:f,AbortError:y}=n(8707);const v=n(3440);const{ReadableStreamFrom:D}=n(3440);const M=Symbol("kConsume");const U=Symbol("kReading");const V=Symbol("kBody");const j=Symbol("kAbort");const K=Symbol("kContentType");const ee=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends i{constructor({resume:e,abort:t,contentType:n="",contentLength:o,highWaterMark:i=64*1024}){super({autoDestroy:true,read:e,highWaterMark:i});this._readableState.dataEmitted=false;this[j]=t;this[M]=null;this[V]=null;this[K]=n;this[ee]=o;this[U]=false}destroy(e){if(!e&&!this._readableState.endEmitted){e=new d}if(e){this[j]()}return super.destroy(e)}_destroy(e,t){if(!this[U]){setImmediate((()=>{t(e)}))}else{t(e)}}on(e,...t){if(e==="data"||e==="readable"){this[U]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[U]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[M]&&e!==null){consumePush(this[M],e);return this[U]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return v.isDisturbed(this)}get body(){if(!this[V]){this[V]=D(this);if(this[M]){this[V].getReader();o(this[V].locked)}}return this[V]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024;const n=e?.signal;if(n!=null&&(typeof n!=="object"||!("aborted"in n))){throw new f("signal must be an AbortSignal")}n?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((e,o)=>{if(this[ee]>t){this.destroy(new y)}const onAbort=()=>{this.destroy(n.reason??new y)};n?.addEventListener("abort",onAbort);this.on("close",(function(){n?.removeEventListener("abort",onAbort);if(n?.aborted){o(n.reason??new y)}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}}function isLocked(e){return e[V]&&e[V].locked===true||e[M]}function isUnusable(e){return v.isDisturbed(e)||isLocked(e)}async function consume(e,t){o(!e[M]);return new Promise(((n,o)=>{if(isUnusable(e)){const t=e._readableState;if(t.destroyed&&t.closeEmitted===false){e.on("error",(e=>{o(e)})).on("close",(()=>{o(new TypeError("unusable"))}))}else{o(t.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{e[M]={type:t,stream:e,resolve:n,reject:o,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[M],e)})).on("close",(function(){if(this[M].body!==null){consumeFinish(this[M],new d)}}));consumeStart(e[M])}))}}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;if(t.bufferIndex){const n=t.bufferIndex;const o=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,o)}function chunksConcat(e,t){if(e.length===0||t===0){return new Uint8Array(0)}if(e.length===1){return new Uint8Array(e[0])}const n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer);let o=0;for(let t=0;t{const o=n(4589);const{ResponseStatusCodeError:i}=n(8707);const{chunksDecode:d}=n(9927);const p=128*1024;async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:f,statusMessage:y,headers:v}){o(t);let D=[];let M=0;try{for await(const e of t){D.push(e);M+=e.length;if(M>p){D=[];M=0;break}}}catch{D=[];M=0}const U=`Response status code ${f}${y?`: ${y}`:""}`;if(f===204||!n||!M){queueMicrotask((()=>e(new i(U,f,v))));return}const V=Error.stackTraceLimit;Error.stackTraceLimit=0;let j;try{if(isContentTypeApplicationJson(n)){j=JSON.parse(d(D,M))}else if(isContentTypeText(n)){j=d(D,M)}}catch{}finally{Error.stackTraceLimit=V}queueMicrotask((()=>e(new i(U,f,v,j))))}const isContentTypeApplicationJson=e=>e.length>15&&e[11]==="/"&&e[0]==="a"&&e[1]==="p"&&e[2]==="p"&&e[3]==="l"&&e[4]==="i"&&e[5]==="c"&&e[6]==="a"&&e[7]==="t"&&e[8]==="i"&&e[9]==="o"&&e[10]==="n"&&e[12]==="j"&&e[13]==="s"&&e[14]==="o"&&e[15]==="n";const isContentTypeText=e=>e.length>4&&e[4]==="/"&&e[0]==="t"&&e[1]==="e"&&e[2]==="x"&&e[3]==="t";e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(e,t,n)=>{const o=n(7030);const i=n(4589);const d=n(3440);const{InvalidArgumentError:p,ConnectTimeoutError:f}=n(8707);const y=n(6603);function noop(){}let v;let D;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){D=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:f,timeout:y,session:U,...V}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const j={path:f,...V};const K=new D(t==null?100:t);y=y==null?1e4:y;e=e!=null?e:false;return function connect({hostname:t,host:p,protocol:f,port:D,servername:V,localAddress:ee,httpSocket:te},re){let ne;if(f==="https:"){if(!v){v=n(1692)}V=V||j.servername||d.getServerName(p)||null;const o=V||t;i(o);const f=U||K.get(o)||null;D=D||443;ne=v.connect({highWaterMark:16384,...j,servername:V,session:f,localAddress:ee,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:te,port:D,host:t});ne.on("session",(function(e){K.set(o,e)}))}else{i(!te,"httpSocket can only be sent on TLS update");D=D||80;ne=o.connect({highWaterMark:64*1024,...j,localAddress:ee,port:D,host:t})}if(j.keepAlive==null||j.keepAlive){const e=j.keepAliveInitialDelay===undefined?6e4:j.keepAliveInitialDelay;ne.setKeepAlive(true,e)}const se=M(new WeakRef(ne),{timeout:y,hostname:t,port:D});ne.setNoDelay(true).once(f==="https:"?"secureConnect":"connect",(function(){queueMicrotask(se);if(re){const e=re;re=null;e(null,this)}})).on("error",(function(e){queueMicrotask(se);if(re){const t=re;re=null;t(e)}}));return ne}}const M=process.platform==="win32"?(e,t)=>{if(!t.timeout){return noop}let n=null;let o=null;const i=y.setFastTimeout((()=>{n=setImmediate((()=>{o=setImmediate((()=>onConnectTimeout(e.deref(),t)))}))}),t.timeout);return()=>{y.clearFastTimeout(i);clearImmediate(n);clearImmediate(o)}}:(e,t)=>{if(!t.timeout){return noop}let n=null;const o=y.setFastTimeout((()=>{n=setImmediate((()=>{onConnectTimeout(e.deref(),t)}))}),t.timeout);return()=>{y.clearFastTimeout(o);clearImmediate(n)}};function onConnectTimeout(e,t){if(e==null){return}let n="Connect Timeout Error";if(Array.isArray(e.autoSelectFamilyAttemptedAddresses)){n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{n+=` (attempted address: ${t.hostname}:${t.port},`}n+=` timeout: ${t.timeout}ms)`;d.destroy(e,new f(n))}e.exports=buildConnector},735:e=>{const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{const o=n(3053);const i=n(7975);const d=i.debuglog("undici");const p=i.debuglog("fetch");const f=i.debuglog("websocket");let y=false;const v={beforeConnect:o.channel("undici:client:beforeConnect"),connected:o.channel("undici:client:connected"),connectError:o.channel("undici:client:connectError"),sendHeaders:o.channel("undici:client:sendHeaders"),create:o.channel("undici:request:create"),bodySent:o.channel("undici:request:bodySent"),headers:o.channel("undici:request:headers"),trailers:o.channel("undici:request:trailers"),error:o.channel("undici:request:error"),open:o.channel("undici:websocket:open"),close:o.channel("undici:websocket:close"),socketError:o.channel("undici:websocket:socket_error"),ping:o.channel("undici:websocket:ping"),pong:o.channel("undici:websocket:pong")};if(d.enabled||p.enabled){const e=p.enabled?p:d;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d}}=t;e("connecting to %s using %s%s",`${d}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d}}=t;e("connected to %s using %s%s",`${d}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d},error:p}=t;e("connection to %s using %s%s errored - %s",`${d}${i?`:${i}`:""}`,o,n,p.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}));o.channel("undici:request:headers").subscribe((t=>{const{request:{method:n,path:o,origin:i},response:{statusCode:d}}=t;e("received response to %s %s/%s - HTTP %d",n,i,o,d)}));o.channel("undici:request:trailers").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("trailers received from %s %s/%s",n,i,o)}));o.channel("undici:request:error").subscribe((t=>{const{request:{method:n,path:o,origin:i},error:d}=t;e("request to %s %s/%s errored - %s",n,i,o,d.message)}));y=true}if(f.enabled){if(!y){const e=d.enabled?d:f;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d}}=t;e("connecting to %s%s using %s%s",d,i?`:${i}`:"",o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d}}=t;e("connected to %s%s using %s%s",d,i?`:${i}`:"",o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:d},error:p}=t;e("connection to %s%s using %s%s errored - %s",d,i?`:${i}`:"",o,n,p.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}))}o.channel("undici:websocket:open").subscribe((e=>{const{address:{address:t,port:n}}=e;f("connection opened %s%s",t,n?`:${n}`:"")}));o.channel("undici:websocket:close").subscribe((e=>{const{websocket:t,code:n,reason:o}=e;f("closed connection to %s - %s %s",t.url,n,o)}));o.channel("undici:websocket:socket_error").subscribe((e=>{f("connection errored - %s",e.message)}));o.channel("undici:websocket:ping").subscribe((e=>{f("ping received")}));o.channel("undici:websocket:pong").subscribe((e=>{f("pong received")}))}e.exports={channels:v}},8707:e=>{const t=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[t]===true}[t]=true}const n=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(e){super(e);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[n]===true}[n]=true}const o=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(e){super(e);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[o]===true}[o]=true}const i=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(e){super(e);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}const d=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(e){super(e);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[d]===true}[d]=true}const p=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,o){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=t;this.statusCode=t;this.headers=n}static[Symbol.hasInstance](e){return e&&e[p]===true}[p]=true}const f=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[f]===true}[f]=true}const y=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[y]===true}[y]=true}const v=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[v]===true}[v]=true}const D=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[D]===true}[D]=true}const M=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[M]===true}[M]=true}const U=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[U]===true}[U]=true}const V=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[V]===true}[V]=true}const j=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[j]===true}[j]=true}const K=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[K]===true}[K]=true}const ee=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(e,t){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}static[Symbol.hasInstance](e){return e&&e[ee]===true}[ee]=true}const te=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[te]===true}[te]=true}const re=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[re]===true}[re]=true}const ne=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(e,t,n){super(e);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}static[Symbol.hasInstance](e){return e&&e[ne]===true}[ne]=true}const se=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[se]===true}[se]=true}const oe=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[oe]===true}[oe]=true}const ie=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[ie]===true}[ie]=true}const ae=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(e,t,n){super(t,{cause:e,...n??{}});this.name="SecureProxyConnectionError";this.message=t||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}static[Symbol.hasInstance](e){return e&&e[ae]===true}[ae]=true}e.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError}},4655:(e,t,n)=>{const{InvalidArgumentError:o,NotSupportedError:i}=n(8707);const d=n(4589);const{isValidHTTPToken:p,isValidHeaderValue:f,isStream:y,destroy:v,isBuffer:D,isFormDataLike:M,isIterable:U,isBlobLike:V,buildURL:j,validateHandler:K,getServerName:ee,normalizedMethodRecords:te}=n(3440);const{channels:re}=n(2414);const{headerNameLowerCasedRecord:ne}=n(735);const se=/[^\u0021-\u00ff]/;const oe=Symbol("handler");class Request{constructor(e,{path:t,method:n,body:i,headers:d,query:f,idempotent:ne,blocking:ie,upgrade:ae,headersTimeout:ce,bodyTimeout:le,reset:ue,throwOnError:de,expectContinue:Ae,servername:pe},me){if(typeof t!=="string"){throw new o("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&n!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(se.test(t)){throw new o("invalid request path")}if(typeof n!=="string"){throw new o("method must be a string")}else if(te[n]===undefined&&!p(n)){throw new o("invalid request method")}if(ae&&typeof ae!=="string"){throw new o("upgrade must be a string")}if(ce!=null&&(!Number.isFinite(ce)||ce<0)){throw new o("invalid headersTimeout")}if(le!=null&&(!Number.isFinite(le)||le<0)){throw new o("invalid bodyTimeout")}if(ue!=null&&typeof ue!=="boolean"){throw new o("invalid reset")}if(Ae!=null&&typeof Ae!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=ce;this.bodyTimeout=le;this.throwOnError=de===true;this.method=n;this.abort=null;if(i==null){this.body=null}else if(y(i)){this.body=i;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){v(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(D(i)){this.body=i.byteLength?i:null}else if(ArrayBuffer.isView(i)){this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null}else if(i instanceof ArrayBuffer){this.body=i.byteLength?Buffer.from(i):null}else if(typeof i==="string"){this.body=i.length?Buffer.from(i):null}else if(M(i)||U(i)||V(i)){this.body=i}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ae||null;this.path=f?j(t,f):t;this.origin=e;this.idempotent=ne==null?n==="HEAD"||n==="GET":ne;this.blocking=ie==null?false:ie;this.reset=ue==null?null:ue;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=Ae!=null?Ae:false;if(Array.isArray(d)){if(d.length%2!==0){throw new o("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},7752:(e,t,n)=>{const{wellknownHeaderNames:o,headerNameLowerCasedRecord:i}=n(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,t,n){if(n===undefined||n>=e.length){throw new TypeError("Unreachable")}const o=this.code=e.charCodeAt(n);if(o>127){throw new TypeError("key must be ascii string")}if(e.length!==++n){this.middle=new TstNode(e,t,n)}else{this.value=t}}add(e,t){const n=e.length;if(n===0){throw new TypeError("Unreachable")}let o=0;let i=this;while(true){const d=e.charCodeAt(o);if(d>127){throw new TypeError("key must be ascii string")}if(i.code===d){if(n===++o){i.value=t;break}else if(i.middle!==null){i=i.middle}else{i.middle=new TstNode(e,t,o);break}}else if(i.code=65){i|=32}while(o!==null){if(i===o.code){if(t===++n){return o}o=o.middle;break}o=o.code{const o=n(4589);const{kDestroyed:i,kBodyUsed:d,kListeners:p,kBody:f}=n(6443);const{IncomingMessage:y}=n(7067);const v=n(7075);const D=n(7030);const{Blob:M}=n(4573);const U=n(7975);const{stringify:V}=n(1792);const{EventEmitter:j}=n(8474);const{InvalidArgumentError:K}=n(8707);const{headerNameLowerCasedRecord:ee}=n(735);const{tree:te}=n(7752);const[re,ne]=process.versions.node.split(".").map((e=>Number(e)));class BodyAsyncIterable{constructor(e){this[f]=e;this[d]=false}async*[Symbol.asyncIterator](){o(!this[d],"disturbed");this[d]=true;yield*this[f]}}function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){o(false)}))}if(typeof e.readableDidRead!=="boolean"){e[d]=false;j.prototype.on.call(e,"data",(function(){this[d]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new BodyAsyncIterable(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new BodyAsyncIterable(e)}else{return e}}function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){if(e===null){return false}else if(e instanceof M){return true}else if(typeof e!=="object"){return false}else{const t=e[Symbol.toStringTag];return(t==="Blob"||t==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=V(t);if(n){e+="?"+n}return e}function isValidPort(e){const t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new K("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new K("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new K("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new K("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new K("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new K("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new K("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new K("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${t}`;let o=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n[n.length-1]==="/"){n=n.slice(0,n.length-1)}if(o&&o[0]!=="/"){o=`/${o}`}return new URL(`${n}${o}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new K("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new K("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");o(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}o(typeof e==="string");const t=getHostname(e);if(D.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return e&&!!(e.destroyed||e[i]||v.isDestroyed?.(e))}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===y){e.socket=null}e.destroy(t)}else if(t){queueMicrotask((()=>{e.emit("error",t)}))}if(e.destroyed!==true){e[i]=true}}const se=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(se);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return typeof e==="string"?ee[e]??e.toLowerCase():te.lookup(e)??e.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(e){return te.lookup(e)??e.toString("latin1").toLowerCase()}function parseHeaders(e,t){if(t===undefined)t={};for(let n=0;ne.toString("utf8"))):i.toString("utf8")}}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=e.length;const n=new Array(t);let o=false;let i=-1;let d;let p;let f=0;for(let t=0;t{e.close();e.byobRequest?.respond(0)}))}else{const t=Buffer.isBuffer(o)?o:Buffer.from(o);if(t.byteLength){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const oe=typeof String.prototype.toWellFormed==="function";const ie=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return oe?`${e}`.toWellFormed():U.toUSVString(e)}function isUSVString(e){return ie?`${e}`.isWellFormed():toUSVString(e)===`${e}`}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t{const{InvalidArgumentError:o}=n(8707);const{kClients:i,kRunning:d,kClose:p,kDestroy:f,kDispatch:y,kInterceptors:v}=n(6443);const D=n(1841);const M=n(628);const U=n(3701);const V=n(3440);const j=n(5092);const K=Symbol("onConnect");const ee=Symbol("onDisconnect");const te=Symbol("onConnectionError");const re=Symbol("maxRedirections");const ne=Symbol("onDrain");const se=Symbol("factory");const oe=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new U(e,t):new M(e,t)}class Agent extends D{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...d}={}){super();if(typeof e!=="function"){throw new o("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new o("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[v]=d.interceptors?.Agent&&Array.isArray(d.interceptors.Agent)?d.interceptors.Agent:[j({maxRedirections:t})];this[oe]={...V.deepClone(d),connect:n};this[oe].interceptors=d.interceptors?{...d.interceptors}:undefined;this[re]=t;this[se]=e;this[i]=new Map;this[ne]=(e,t)=>{this.emit("drain",e,[this,...t])};this[K]=(e,t)=>{this.emit("connect",e,[this,...t])};this[ee]=(e,t,n)=>{this.emit("disconnect",e,[this,...t],n)};this[te]=(e,t,n)=>{this.emit("connectionError",e,[this,...t],n)}}get[d](){let e=0;for(const t of this[i].values()){e+=t[d]}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}let d=this[i].get(n);if(!d){d=this[se](e.origin,this[oe]).on("drain",this[ne]).on("connect",this[K]).on("disconnect",this[ee]).on("connectionError",this[te]);this[i].set(n,d)}return d.dispatch(e,t)}async[p](){const e=[];for(const t of this[i].values()){e.push(t.close())}this[i].clear();await Promise.all(e)}async[f](e){const t=[];for(const n of this[i].values()){t.push(n.destroy(e))}this[i].clear();await Promise.all(t)}}e.exports=Agent},837:(e,t,n)=>{const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=n(8707);const{PoolBase:d,kClients:p,kNeedDrain:f,kAddClient:y,kRemoveClient:v,kGetDispatcher:D}=n(2128);const M=n(628);const{kUrl:U,kInterceptors:V}=n(6443);const{parseOrigin:j}=n(3440);const K=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const se=Symbol("kWeight");const oe=Symbol("kMaxWeightPerServer");const ie=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(e===0)return t;while(t!==0){const n=t;t=e%t;e=n}return e}function defaultFactory(e,t){return new M(e,t)}class BalancedPool extends d{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[oe]=this[ee].maxWeightPerServer||100;this[ie]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new i("factory must be a function.")}this[V]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[K]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=j(e).origin;if(this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[K](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[se]=Math.min(this[oe],n[se]+this[ie])}));n.on("connectionError",(()=>{n[se]=Math.max(1,n[se]-this[ie]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[se]=Math.max(1,n[se]-this[ie]);this._updateBalancedPoolStats()}}));for(const e of this[p]){e[se]=this[oe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[U].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[v](n)}return this}get upstreams(){return this[p].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[U].origin))}[D](){if(this[p].length===0){throw new o}const e=this[p].find((e=>!e[f]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[p].map((e=>e[f])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let i=this[p].findIndex((e=>!e[f]));while(n++this[p][i][se]&&!e[f]){i=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[oe]}}if(e[se]>=this[re]&&!e[f]){return e}}this[re]=this[p][i][se];this[ne]=i;return this[p][i]}}e.exports=BalancedPool},637:(e,t,n)=>{const o=n(4589);const i=n(3440);const{channels:d}=n(2414);const p=n(6603);const{RequestContentLengthMismatchError:f,ResponseContentLengthMismatchError:y,RequestAbortedError:v,HeadersTimeoutError:D,HeadersOverflowError:M,SocketError:U,InformationalError:V,BodyTimeoutError:j,HTTPParserError:K,ResponseExceededMaxSizeError:ee}=n(8707);const{kUrl:te,kReset:re,kClient:ne,kParser:se,kBlocking:oe,kRunning:ie,kPending:ae,kSize:ce,kWriting:le,kQueue:ue,kNoRef:de,kKeepAliveDefaultTimeout:Ae,kHostHeader:pe,kPendingIdx:me,kRunningIdx:ge,kError:fe,kPipelining:he,kSocket:ye,kKeepAliveTimeoutValue:Ee,kMaxHeadersSize:Ce,kKeepAliveMaxTimeout:Ie,kKeepAliveTimeoutThreshold:be,kHeadersTimeout:Se,kBodyTimeout:Be,kStrictContentLength:we,kMaxRequests:Re,kCounter:Qe,kMaxResponseSize:Ne,kOnError:xe,kResume:Te,kHTTPContext:ve}=n(6443);const Pe=n(2824);const De=Buffer.alloc(0);const ke=Buffer[Symbol.species];const _e=i.addListener;const Oe=i.removeAllListeners;let Le;async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(3870):undefined;let t;try{t=await WebAssembly.compile(n(3434))}catch(o){t=await WebAssembly.compile(e||n(3870))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{o(Ue.ptr===e);const i=t-ze+He.byteOffset;return Ue.onStatus(new ke(He.buffer,i,n))||0},wasm_on_message_begin:e=>{o(Ue.ptr===e);return Ue.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{o(Ue.ptr===e);const i=t-ze+He.byteOffset;return Ue.onHeaderField(new ke(He.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{o(Ue.ptr===e);const i=t-ze+He.byteOffset;return Ue.onHeaderValue(new ke(He.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>{o(Ue.ptr===e);return Ue.onHeadersComplete(t,Boolean(n),Boolean(i))||0},wasm_on_body:(e,t,n)=>{o(Ue.ptr===e);const i=t-ze+He.byteOffset;return Ue.onBody(new ke(He.buffer,i,n))||0},wasm_on_message_complete:e=>{o(Ue.ptr===e);return Ue.onMessageComplete()||0}}})}let Fe=null;let Me=lazyllhttp();Me.catch();let Ue=null;let He=null;let Ge=0;let ze=null;const qe=0;const Ve=1;const $e=2|Ve;const je=4|Ve;const Ye=8|qe;class Parser{constructor(e,t,{exports:n}){o(Number.isFinite(e[Ce])&&e[Ce]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(Pe.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[Ce];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[Ne]}setTimeout(e,t){if(e!==this.timeoutValue||t&Ve^this.timeoutType&Ve){if(this.timeout){p.clearTimeout(this.timeout);this.timeout=null}if(e){if(t&Ve){this.timeout=p.setFastTimeout(onParserTimeout,e,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,e,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=t}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(Ue==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){o(this.ptr!=null);o(Ue==null);o(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Ge){if(ze){n.free(ze)}Ge=Math.ceil(e.length/4096)*4096;ze=n.malloc(Ge)}new Uint8Array(n.memory.buffer,ze,Ge).set(e);try{let o;try{He=e;Ue=this;o=n.llhttp_execute(this.ptr,ze,e.length)}catch(e){throw e}finally{Ue=null;He=null}const i=n.llhttp_get_error_pos(this.ptr)-ze;if(o===Pe.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(i))}else if(o===Pe.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(i))}else if(o!==Pe.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let d="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);d="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new K(d,Pe.ERROR[o],e.slice(i))}}catch(e){i.destroy(t,e)}}destroy(){o(this.ptr!=null);o(Ue==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&p.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[ue][t[ge]];if(!n){return-1}n.onResponseStarted()}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10){const t=i.bufferToLowerCasedHeaderName(n);if(t==="keep-alive"){this.keepAlive+=e.toString()}else if(t==="connection"){this.connection+=e.toString()}}else if(n.length===14&&i.bufferToLowerCasedHeaderName(n)==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){i.destroy(this.socket,new M)}}onUpgrade(e){const{upgrade:t,client:n,socket:d,headers:p,statusCode:f}=this;o(t);o(n[ye]===d);o(!d.destroyed);o(!this.paused);o((p.length&1)===0);const y=n[ue][n[ge]];o(y);o(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;d.unshift(e);d[se].destroy();d[se]=null;d[ne]=null;d[fe]=null;Oe(d);n[ye]=null;n[ve]=null;n[ue][n[ge]++]=null;n.emit("disconnect",n[te],[n],new V("upgrade"));try{y.onUpgrade(f,p,d)}catch(e){i.destroy(d,e)}n[Te]()}onHeadersComplete(e,t,n){const{client:d,socket:p,headers:f,statusText:y}=this;if(p.destroyed){return-1}const v=d[ue][d[ge]];if(!v){return-1}o(!this.upgrade);o(this.statusCode<200);if(e===100){i.destroy(p,new U("bad response",i.getSocketInfo(p)));return-1}if(t&&!v.upgrade){i.destroy(p,new U("bad upgrade",i.getSocketInfo(p)));return-1}o(this.timeoutType===$e);this.statusCode=e;this.shouldKeepAlive=n||v.method==="HEAD"&&!p[re]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=v.bodyTimeout!=null?v.bodyTimeout:d[Be];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(v.method==="CONNECT"){o(d[ie]===1);this.upgrade=true;return 2}if(t){o(d[ie]===1);this.upgrade=true;return 2}o((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&d[he]){const e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-d[be],d[Ie]);if(t<=0){p[re]=true}else{d[Ee]=t}}else{d[Ee]=d[Ae]}}else{p[re]=true}const D=v.onHeaders(e,f,this.resume,y)===false;if(v.aborted){return-1}if(v.method==="HEAD"){return 1}if(e<200){return 1}if(p[oe]){p[oe]=false;d[Te]()}return D?Pe.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:d,maxResponseSize:p}=this;if(n.destroyed){return-1}const f=t[ue][t[ge]];o(f);o(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(d>=200);if(p>-1&&this.bytesRead+e.length>p){i.destroy(n,new ee);return-1}this.bytesRead+=e.length;if(f.onData(e)===false){return Pe.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:d,headers:p,contentLength:f,bytesRead:v,shouldKeepAlive:D}=this;if(t.destroyed&&(!n||D)){return-1}if(d){return}o(n>=100);o((this.headers.length&1)===0);const M=e[ue][e[ge]];o(M);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(n<200){return}if(M.method!=="HEAD"&&f&&v!==parseInt(f,10)){i.destroy(t,new y);return-1}M.onComplete(p);e[ue][e[ge]++]=null;if(t[le]){o(e[ie]===0);i.destroy(t,new V("reset"));return Pe.ERROR.PAUSED}else if(!D){i.destroy(t,new V("reset"));return Pe.ERROR.PAUSED}else if(t[re]&&e[ie]===0){i.destroy(t,new V("reset"));return Pe.ERROR.PAUSED}else if(e[he]==null||e[he]===1){setImmediate((()=>e[Te]()))}else{e[Te]()}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:d,paused:p}=e.deref();if(n===$e){if(!t[le]||t.writableNeedDrain||d[ie]>1){o(!p,"cannot be paused while waiting for headers");i.destroy(t,new D)}}else if(n===je){if(!p){i.destroy(t,new j)}}else if(n===Ye){o(d[ie]===0&&d[Ee]);i.destroy(t,new V("socket idle timeout"))}}async function connectH1(e,t){e[ye]=t;if(!Fe){Fe=await Me;Me=null}t[de]=false;t[le]=false;t[re]=false;t[oe]=false;t[se]=new Parser(e,t,Fe);_e(t,"error",(function(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const t=this[se];if(e.code==="ECONNRESET"&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[fe]=e;this[ne][xe](e)}));_e(t,"readable",(function(){const e=this[se];if(e){e.readMore()}}));_e(t,"end",(function(){const e=this[se];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}i.destroy(this,new U("other side closed",i.getSocketInfo(this)))}));_e(t,"close",(function(){const e=this[ne];const t=this[se];if(t){if(!this[fe]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[se].destroy();this[se]=null}const n=this[fe]||new U("closed",i.getSocketInfo(this));e[ye]=null;e[ve]=null;if(e.destroyed){o(e[ae]===0);const t=e[ue].splice(e[ge]);for(let o=0;o0&&n.code!=="UND_ERR_INFO"){const t=e[ue][e[ge]];e[ue][e[ge]++]=null;i.errorRequest(e,t,n)}e[me]=e[ge];o(e[ie]===0);e.emit("disconnect",e[te],[e],n);e[Te]()}));let n=false;t.on("close",(()=>{n=true}));return{version:"h1",defaultPipelining:1,write(...t){return writeH1(e,...t)},resume(){resumeH1(e)},destroy(e,o){if(n){queueMicrotask(o)}else{t.destroy(e).on("close",o)}},get destroyed(){return t.destroyed},busy(n){if(t[le]||t[re]||t[oe]){return true}if(n){if(e[ie]>0&&!n.idempotent){return true}if(e[ie]>0&&(n.upgrade||n.method==="CONNECT")){return true}if(e[ie]>0&&i.bodyLength(n.body)!==0&&(i.isStream(n.body)||i.isAsyncIterable(n.body)||i.isFormDataLike(n.body))){return true}}return false}}}function resumeH1(e){const t=e[ye];if(t&&!t.destroyed){if(e[ce]===0){if(!t[de]&&t.unref){t.unref();t[de]=true}}else if(t[de]&&t.ref){t.ref();t[de]=false}if(e[ce]===0){if(t[se].timeoutType!==Ye){t[se].setTimeout(e[Ee],Ye)}}else if(e[ie]>0&&t[se].statusCode<200){if(t[se].timeoutType!==$e){const n=e[ue][e[ge]];const o=n.headersTimeout!=null?n.headersTimeout:e[Se];t[se].setTimeout(o,$e)}}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH1(e,t){const{method:p,path:y,host:D,upgrade:M,blocking:U,reset:j}=t;let{body:K,headers:ee,contentLength:te}=t;const ne=p==="PUT"||p==="POST"||p==="PATCH"||p==="QUERY"||p==="PROPFIND"||p==="PROPPATCH";if(i.isFormDataLike(K)){if(!Le){Le=n(4492).extractBody}const[e,o]=Le(K);if(t.contentType==null){ee.push("content-type",o)}K=e.stream;te=e.length}else if(i.isBlobLike(K)&&t.contentType==null&&K.type){ee.push("content-type",K.type)}if(K&&typeof K.read==="function"){K.read(0)}const se=i.bodyLength(K);te=se??te;if(te===null){te=t.contentLength}if(te===0&&!ne){te=null}if(shouldSendContentLength(p)&&te>0&&t.contentLength!==null&&t.contentLength!==te){if(e[we]){i.errorRequest(e,t,new f);return false}process.emitWarning(new f)}const ie=e[ye];const abort=n=>{if(t.aborted||t.completed){return}i.errorRequest(e,t,n||new v);i.destroy(K);i.destroy(ie,new V("aborted"))};try{t.onConnect(abort)}catch(n){i.errorRequest(e,t,n)}if(t.aborted){return false}if(p==="HEAD"){ie[re]=true}if(M||p==="CONNECT"){ie[re]=true}if(j!=null){ie[re]=j}if(e[Re]&&ie[Qe]++>=e[Re]){ie[re]=true}if(U){ie[oe]=true}let ae=`${p} ${y} HTTP/1.1\r\n`;if(typeof D==="string"){ae+=`host: ${D}\r\n`}else{ae+=e[pe]}if(M){ae+=`connection: upgrade\r\nupgrade: ${M}\r\n`}else if(e[he]&&!ie[re]){ae+="connection: keep-alive\r\n"}else{ae+="connection: close\r\n"}if(Array.isArray(ee)){for(let e=0;e{t.removeListener("error",onFinished)}));if(!M){const e=new v;queueMicrotask((()=>onFinished(e)))}};const onFinished=function(e){if(M){return}M=true;o(p.destroyed||p[le]&&n[ie]<=1);p.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!e){try{U.end()}catch(t){e=t}}U.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){i.destroy(t,e)}else{i.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(t.resume){t.resume()}p.on("drain",onDrain).on("error",onFinished);if(t.errorEmitted??t.errored){setImmediate((()=>onFinished(t.errored)))}else if(t.endEmitted??t.readableEnded){setImmediate((()=>onFinished(null)))}if(t.closeEmitted??t.closed){setImmediate(onClose)}}function writeBuffer(e,t,n,d,p,f,y,v){try{if(!t){if(f===0){p.write(`${y}content-length: 0\r\n\r\n`,"latin1")}else{o(f===null,"no body must not have content length");p.write(`${y}\r\n`,"latin1")}}else if(i.isBuffer(t)){o(f===t.byteLength,"buffer body must have content length");p.cork();p.write(`${y}content-length: ${f}\r\n\r\n`,"latin1");p.write(t);p.uncork();d.onBodySent(t);if(!v&&d.reset!==false){p[re]=true}}d.onRequestSent();n[Te]()}catch(t){e(t)}}async function writeBlob(e,t,n,i,d,p,y,v){o(p===t.size,"blob body must have content length");try{if(p!=null&&p!==t.size){throw new f}const e=Buffer.from(await t.arrayBuffer());d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(e);d.uncork();i.onBodySent(e);i.onRequestSent();if(!v&&i.reset!==false){d[re]=true}n[Te]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,d,p,f,y){o(p!==0||n[ie]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(v===null);if(d[fe]){t(d[fe])}else{v=e}}));d.on("close",onDrain).on("drain",onDrain);const D=new AsyncWriter({abort:e,socket:d,request:i,contentLength:p,client:n,expectsPayload:y,header:f});try{for await(const e of t){if(d[fe]){throw d[fe]}if(!D.write(e)){await waitForDrain()}}D.end()}catch(e){D.destroy(e)}finally{d.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:e,socket:t,request:n,contentLength:o,client:i,expectsPayload:d,header:p}){this.socket=t;this.request=n;this.contentLength=o;this.client=i;this.bytesWritten=0;this.expectsPayload=d;this.header=p;this.abort=e;t[le]=true}write(e){const{socket:t,request:n,contentLength:o,client:i,bytesWritten:d,expectsPayload:p,header:y}=this;if(t[fe]){throw t[fe]}if(t.destroyed){return false}const v=Buffer.byteLength(e);if(!v){return true}if(o!==null&&d+v>o){if(i[we]){throw new f}process.emitWarning(new f)}t.cork();if(d===0){if(!p&&n.reset!==false){t[re]=true}if(o===null){t.write(`${y}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${y}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){t.write(`\r\n${v.toString(16)}\r\n`,"latin1")}this.bytesWritten+=v;const D=t.write(e);t.uncork();n.onBodySent(e);if(!D){if(t[se].timeout&&t[se].timeoutType===$e){if(t[se].timeout.refresh){t[se].timeout.refresh()}}}return D}end(){const{socket:e,contentLength:t,client:n,bytesWritten:o,expectsPayload:i,header:d,request:p}=this;p.onRequestSent();e[le]=false;if(e[fe]){throw e[fe]}if(e.destroyed){return}if(o===0){if(i){e.write(`${d}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${d}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&o!==t){if(n[we]){throw new f}else{process.emitWarning(new f)}}if(e[se].timeout&&e[se].timeoutType===$e){if(e[se].timeout.refresh){e[se].timeout.refresh()}}n[Te]()}destroy(e){const{socket:t,client:n,abort:i}=this;t[le]=false;if(e){o(n[ie]<=1,"pipeline should only contain this request");i(e)}}}e.exports=connectH1},8788:(e,t,n)=>{const o=n(4589);const{pipeline:i}=n(7075);const d=n(3440);const{RequestContentLengthMismatchError:p,RequestAbortedError:f,SocketError:y,InformationalError:v}=n(8707);const{kUrl:D,kReset:M,kClient:U,kRunning:V,kPending:j,kQueue:K,kPendingIdx:ee,kRunningIdx:te,kError:re,kSocket:ne,kStrictContentLength:se,kOnError:oe,kMaxConcurrentStreams:ie,kHTTP2Session:ae,kResume:ce,kSize:le,kHTTPContext:ue}=n(6443);const de=Symbol("open streams");let Ae;let pe=false;let me;try{me=n(2467)}catch{me={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:ge,HTTP2_HEADER_METHOD:fe,HTTP2_HEADER_PATH:he,HTTP2_HEADER_SCHEME:ye,HTTP2_HEADER_CONTENT_LENGTH:Ee,HTTP2_HEADER_EXPECT:Ce,HTTP2_HEADER_STATUS:Ie}}=me;function parseH2Headers(e){const t=[];for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.push(Buffer.from(n),Buffer.from(e))}}else{t.push(Buffer.from(n),Buffer.from(o))}}return t}async function connectH2(e,t){e[ne]=t;if(!pe){pe=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const n=me.connect(e[D],{createConnection:()=>t,peerMaxConcurrentStreams:e[ie]});n[de]=0;n[U]=e;n[ne]=t;d.addListener(n,"error",onHttp2SessionError);d.addListener(n,"frameError",onHttp2FrameError);d.addListener(n,"end",onHttp2SessionEnd);d.addListener(n,"goaway",onHTTP2GoAway);d.addListener(n,"close",(function(){const{[U]:e}=this;const{[ne]:t}=e;const n=this[ne][re]||this[re]||new y("closed",d.getSocketInfo(t));e[ae]=null;if(e.destroyed){o(e[j]===0);const t=e[K].splice(e[te]);for(let o=0;o{i=true}));return{version:"h2",defaultPipelining:Infinity,write(...t){return writeH2(e,...t)},resume(){resumeH2(e)},destroy(e,n){if(i){queueMicrotask(n)}else{t.destroy(e).on("close",n)}},get destroyed(){return t.destroyed},busy(){return false}}}function resumeH2(e){const t=e[ne];if(t?.destroyed===false){if(e[le]===0&&e[ie]===0){t.unref();e[ae].unref()}else{t.ref();e[ae].ref()}}}function onHttp2SessionError(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[ne][re]=e;this[U][oe](e)}function onHttp2FrameError(e,t,n){if(n===0){const n=new v(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[ne][re]=n;this[U][oe](n)}}function onHttp2SessionEnd(){const e=new y("other side closed",d.getSocketInfo(this[ne]));this.destroy(e);d.destroy(this[ne],e)}function onHTTP2GoAway(e){const t=this[re]||new y(`HTTP/2: "GOAWAY" frame received with code ${e}`,d.getSocketInfo(this));const n=this[U];n[ne]=null;n[ue]=null;if(this[ae]!=null){this[ae].destroy(t);this[ae]=null}d.destroy(this[ne],t);if(n[te]{if(t.aborted||t.completed){return}n=n||new f;d.errorRequest(e,t,n);if(ue!=null){d.destroy(ue,n)}d.destroy(ie,n);e[K][e[te]++]=null;e[ce]()};try{t.onConnect(abort)}catch(n){d.errorRequest(e,t,n)}if(t.aborted){return false}if(y==="CONNECT"){i.ref();ue=i.request(le,{endStream:false,signal:re});if(ue.id&&!ue.pending){t.onUpgrade(null,null,ue);++i[de];e[K][e[te]++]=null}else{ue.once("ready",(()=>{t.onUpgrade(null,null,ue);++i[de];e[K][e[te]++]=null}))}ue.once("close",(()=>{i[de]-=1;if(i[de]===0)i.unref()}));return true}le[he]=M;le[ye]="https";const be=y==="PUT"||y==="POST"||y==="PATCH";if(ie&&typeof ie.read==="function"){ie.read(0)}let Se=d.bodyLength(ie);if(d.isFormDataLike(ie)){Ae??=n(4492).extractBody;const[e,t]=Ae(ie);le["content-type"]=t;ie=e.stream;Se=e.length}if(Se==null){Se=t.contentLength}if(Se===0||!be){Se=null}if(shouldSendContentLength(y)&&Se>0&&t.contentLength!=null&&t.contentLength!==Se){if(e[se]){d.errorRequest(e,t,new p);return false}process.emitWarning(new p)}if(Se!=null){o(ie,"no body must not have content length");le[Ee]=`${Se}`}i.ref();const Be=y==="GET"||y==="HEAD"||ie===null;if(j){le[Ce]="100-continue";ue=i.request(le,{endStream:Be,signal:re});ue.once("continue",writeBodyH2)}else{ue=i.request(le,{endStream:Be,signal:re});writeBodyH2()}++i[de];ue.once("response",(n=>{const{[Ie]:o,...i}=n;t.onResponseStarted();if(t.aborted){const n=new f;d.errorRequest(e,t,n);d.destroy(ue,n);return}if(t.onHeaders(Number(o),parseH2Headers(i),ue.resume.bind(ue),"")===false){ue.pause()}ue.on("data",(e=>{if(t.onData(e)===false){ue.pause()}}))}));ue.once("end",(()=>{if(ue.state?.state==null||ue.state.state<6){t.onComplete([])}if(i[de]===0){i.unref()}abort(new v("HTTP/2: stream half-closed (remote)"));e[K][e[te]++]=null;e[ee]=e[te];e[ce]()}));ue.once("close",(()=>{i[de]-=1;if(i[de]===0){i.unref()}}));ue.once("error",(function(e){abort(e)}));ue.once("frameError",((e,t)=>{abort(new v(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}));return true;function writeBodyH2(){if(!ie||Se===0){writeBuffer(abort,ue,null,e,t,e[ne],Se,be)}else if(d.isBuffer(ie)){writeBuffer(abort,ue,ie,e,t,e[ne],Se,be)}else if(d.isBlobLike(ie)){if(typeof ie.stream==="function"){writeIterable(abort,ue,ie.stream(),e,t,e[ne],Se,be)}else{writeBlob(abort,ue,ie,e,t,e[ne],Se,be)}}else if(d.isStream(ie)){writeStream(abort,e[ne],be,ue,ie,e,t,Se)}else if(d.isIterable(ie)){writeIterable(abort,ue,ie,e,t,e[ne],Se,be)}else{o(false)}}}function writeBuffer(e,t,n,i,p,f,y,v){try{if(n!=null&&d.isBuffer(n)){o(y===n.byteLength,"buffer body must have content length");t.cork();t.write(n);t.uncork();t.end();p.onBodySent(n)}if(!v){f[M]=true}p.onRequestSent();i[ce]()}catch(t){e(t)}}function writeStream(e,t,n,p,f,y,v,D){o(D!==0||y[V]===0,"stream body cannot be pipelined");const U=i(f,p,(o=>{if(o){d.destroy(U,o);e(o)}else{d.removeAllListeners(U);v.onRequestSent();if(!n){t[M]=true}y[ce]()}}));d.addListener(U,"data",onPipeData);function onPipeData(e){v.onBodySent(e)}}async function writeBlob(e,t,n,i,d,f,y,v){o(y===n.size,"blob body must have content length");try{if(y!=null&&y!==n.size){throw new p}const e=Buffer.from(await n.arrayBuffer());t.cork();t.write(e);t.uncork();t.end();d.onBodySent(e);d.onRequestSent();if(!v){f[M]=true}i[ce]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,d,p,f,y){o(f!==0||i[V]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(v===null);if(p[re]){t(p[re])}else{v=e}}));t.on("close",onDrain).on("drain",onDrain);try{for await(const e of n){if(p[re]){throw p[re]}const n=t.write(e);d.onBodySent(e);if(!n){await waitForDrain()}}t.end();d.onRequestSent();if(!y){p[M]=true}i[ce]()}catch(t){e(t)}finally{t.off("close",onDrain).off("drain",onDrain)}}e.exports=connectH2},3701:(e,t,n)=>{const o=n(4589);const i=n(7030);const d=n(7067);const p=n(3440);const{channels:f}=n(2414);const y=n(4655);const v=n(1841);const{InvalidArgumentError:D,InformationalError:M,ClientDestroyedError:U}=n(8707);const V=n(9136);const{kUrl:j,kServerName:K,kClient:ee,kBusy:te,kConnect:re,kResuming:ne,kRunning:se,kPending:oe,kSize:ie,kQueue:ae,kConnected:ce,kConnecting:le,kNeedDrain:ue,kKeepAliveDefaultTimeout:de,kHostHeader:Ae,kPendingIdx:pe,kRunningIdx:me,kError:ge,kPipelining:fe,kKeepAliveTimeoutValue:he,kMaxHeadersSize:ye,kKeepAliveMaxTimeout:Ee,kKeepAliveTimeoutThreshold:Ce,kHeadersTimeout:Ie,kBodyTimeout:be,kStrictContentLength:Se,kConnector:Be,kMaxRedirections:we,kMaxRequests:Re,kCounter:Qe,kClose:Ne,kDestroy:xe,kDispatch:Te,kInterceptors:ve,kLocalAddress:Pe,kMaxResponseSize:De,kOnError:ke,kHTTPContext:_e,kMaxConcurrentStreams:Oe,kResume:Le}=n(6443);const Fe=n(637);const Me=n(8788);let Ue=false;const He=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(e){return e[fe]??e[_e]?.defaultPipelining??1}class Client extends v{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:f,requestTimeout:y,connectTimeout:v,bodyTimeout:M,idleTimeout:U,keepAlive:ee,keepAliveTimeout:te,maxKeepAliveTimeout:re,keepAliveMaxTimeout:se,keepAliveTimeoutThreshold:oe,socketPath:ie,pipelining:ce,tls:le,strictContentLength:ge,maxCachedSessions:Qe,maxRedirections:Ne,connect:xe,maxRequestsPerClient:Te,localAddress:Fe,maxResponseSize:Me,autoSelectFamily:ze,autoSelectFamilyAttemptTimeout:qe,maxConcurrentStreams:Ve,allowH2:$e}={}){super();if(ee!==undefined){throw new D("unsupported keepAlive, use pipelining=0 instead")}if(f!==undefined){throw new D("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new D("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(U!==undefined){throw new D("unsupported idleTimeout, use keepAliveTimeout instead")}if(re!==undefined){throw new D("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new D("invalid maxHeaderSize")}if(ie!=null&&typeof ie!=="string"){throw new D("invalid socketPath")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new D("invalid connectTimeout")}if(te!=null&&(!Number.isFinite(te)||te<=0)){throw new D("invalid keepAliveTimeout")}if(se!=null&&(!Number.isFinite(se)||se<=0)){throw new D("invalid keepAliveMaxTimeout")}if(oe!=null&&!Number.isFinite(oe)){throw new D("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new D("headersTimeout must be a positive integer or zero")}if(M!=null&&(!Number.isInteger(M)||M<0)){throw new D("bodyTimeout must be a positive integer or zero")}if(xe!=null&&typeof xe!=="function"&&typeof xe!=="object"){throw new D("connect must be a function or an object")}if(Ne!=null&&(!Number.isInteger(Ne)||Ne<0)){throw new D("maxRedirections must be a positive number")}if(Te!=null&&(!Number.isInteger(Te)||Te<0)){throw new D("maxRequestsPerClient must be a positive number")}if(Fe!=null&&(typeof Fe!=="string"||i.isIP(Fe)===0)){throw new D("localAddress must be valid string IP address")}if(Me!=null&&(!Number.isInteger(Me)||Me<-1)){throw new D("maxResponseSize must be a positive number")}if(qe!=null&&(!Number.isInteger(qe)||qe<-1)){throw new D("autoSelectFamilyAttemptTimeout must be a positive number")}if($e!=null&&typeof $e!=="boolean"){throw new D("allowH2 must be a valid boolean value")}if(Ve!=null&&(typeof Ve!=="number"||Ve<1)){throw new D("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof xe!=="function"){xe=V({...le,maxCachedSessions:Qe,allowH2:$e,socketPath:ie,timeout:v,...ze?{autoSelectFamily:ze,autoSelectFamilyAttemptTimeout:qe}:undefined,...xe})}if(t?.Client&&Array.isArray(t.Client)){this[ve]=t.Client;if(!Ue){Ue=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[ve]=[Ge({maxRedirections:Ne})]}this[j]=p.parseOrigin(e);this[Be]=xe;this[fe]=ce!=null?ce:1;this[ye]=n||d.maxHeaderSize;this[de]=te==null?4e3:te;this[Ee]=se==null?6e5:se;this[Ce]=oe==null?2e3:oe;this[he]=this[de];this[K]=null;this[Pe]=Fe!=null?Fe:null;this[ne]=0;this[ue]=0;this[Ae]=`host: ${this[j].hostname}${this[j].port?`:${this[j].port}`:""}\r\n`;this[be]=M!=null?M:3e5;this[Ie]=o!=null?o:3e5;this[Se]=ge==null?true:ge;this[we]=Ne;this[Re]=Te;this[He]=null;this[De]=Me>-1?Me:-1;this[Oe]=Ve!=null?Ve:100;this[_e]=null;this[ae]=[];this[me]=0;this[pe]=0;this[Le]=e=>resume(this,e);this[ke]=e=>onError(this,e)}get pipelining(){return this[fe]}set pipelining(e){this[fe]=e;this[Le](true)}get[oe](){return this[ae].length-this[pe]}get[se](){return this[pe]-this[me]}get[ie](){return this[ae].length-this[me]}get[ce](){return!!this[_e]&&!this[le]&&!this[_e].destroyed}get[te](){return Boolean(this[_e]?.busy(null)||this[ie]>=(getPipelining(this)||1)||this[oe]>0)}[re](e){connect(this);this.once("connect",e)}[Te](e,t){const n=e.origin||this[j].origin;const o=new y(n,e,t);this[ae].push(o);if(this[ne]){}else if(p.bodyLength(o.body)==null&&p.isIterable(o.body)){this[ne]=1;queueMicrotask((()=>resume(this)))}else{this[Le](true)}if(this[ne]&&this[ue]!==2&&this[te]){this[ue]=2}return this[ue]<2}async[Ne](){return new Promise((e=>{if(this[ie]){this[He]=e}else{e(null)}}))}async[xe](e){return new Promise((t=>{const n=this[ae].splice(this[pe]);for(let t=0;t{if(this[He]){this[He]();this[He]=null}t(null)};if(this[_e]){this[_e].destroy(e,callback);this[_e]=null}else{queueMicrotask(callback)}this[Le]()}))}}const Ge=n(5092);function onError(e,t){if(e[se]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){o(e[pe]===e[me]);const n=e[ae].splice(e[me]);for(let o=0;o{e[Be]({host:t,hostname:n,protocol:d,port:y,servername:e[K],localAddress:e[Pe]},((e,t)=>{if(e){i(e)}else{o(t)}}))}));if(e.destroyed){p.destroy(i.on("error",noop),new U);return}o(i);try{e[_e]=i.alpnProtocol==="h2"?await Me(e,i):await Fe(e,i)}catch(e){i.destroy().on("error",noop);throw e}e[le]=false;i[Qe]=0;i[Re]=e[Re];i[ee]=e;i[ge]=null;if(f.connected.hasSubscribers){f.connected.publish({connectParams:{host:t,hostname:n,protocol:d,port:y,version:e[_e]?.version,servername:e[K],localAddress:e[Pe]},connector:e[Be],socket:i})}e.emit("connect",e[j],[e])}catch(i){if(e.destroyed){return}e[le]=false;if(f.connectError.hasSubscribers){f.connectError.publish({connectParams:{host:t,hostname:n,protocol:d,port:y,version:e[_e]?.version,servername:e[K],localAddress:e[Pe]},connector:e[Be],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(e[se]===0);while(e[oe]>0&&e[ae][e[pe]].servername===e[K]){const t=e[ae][e[pe]++];p.errorRequest(e,t,i)}}else{onError(e,i)}e.emit("connectionError",e[j],[e],i)}e[Le]()}function emitDrain(e){e[ue]=0;e.emit("drain",e[j],[e])}function resume(e,t){if(e[ne]===2){return}e[ne]=2;_resume(e,t);e[ne]=0;if(e[me]>256){e[ae].splice(0,e[me]);e[pe]-=e[me];e[me]=0}}function _resume(e,t){while(true){if(e.destroyed){o(e[oe]===0);return}if(e[He]&&!e[ie]){e[He]();e[He]=null;return}if(e[_e]){e[_e].resume()}if(e[te]){e[ue]=2}else if(e[ue]===2){if(t){e[ue]=1;queueMicrotask((()=>emitDrain(e)))}else{emitDrain(e)}continue}if(e[oe]===0){return}if(e[se]>=(getPipelining(e)||1)){return}const n=e[ae][e[pe]];if(e[j].protocol==="https:"&&e[K]!==n.servername){if(e[se]>0){return}e[K]=n.servername;e[_e]?.destroy(new M("servername changed"),(()=>{e[_e]=null;resume(e)}))}if(e[le]){return}if(!e[_e]){connect(e);return}if(e[_e].destroyed){return}if(e[_e].busy(n)){return}if(!n.aborted&&e[_e].write(n)){e[pe]++}else{e[ae].splice(e[pe],1)}}}e.exports=Client},1841:(e,t,n)=>{const o=n(883);const{ClientDestroyedError:i,ClientClosedError:d,InvalidArgumentError:p}=n(8707);const{kDestroy:f,kClose:y,kClosed:v,kDestroyed:D,kDispatch:M,kInterceptors:U}=n(6443);const V=Symbol("onDestroyed");const j=Symbol("onClosed");const K=Symbol("Intercepted Dispatch");class DispatcherBase extends o{constructor(){super();this[D]=false;this[V]=null;this[v]=false;this[j]=[]}get destroyed(){return this[D]}get closed(){return this[v]}get interceptors(){return this[U]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[U][t];if(typeof e!=="function"){throw new p("interceptor must be an function")}}}this[U]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,o)=>n?t(n):e(o)))}))}if(typeof e!=="function"){throw new p("invalid callback")}if(this[D]){queueMicrotask((()=>e(new i,null)));return}if(this[v]){if(this[j]){this[j].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[v]=true;this[j].push(e);const onClosed=()=>{const e=this[j];this[j]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,o)=>e?n(e):t(o)))}))}if(typeof t!=="function"){throw new p("invalid callback")}if(this[D]){if(this[V]){this[V].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new i}this[D]=true;this[V]=this[V]||[];this[V].push(t);const onDestroyed=()=>{const e=this[V];this[V]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[K](e,t){if(!this[U]||this[U].length===0){this[K]=this[M];return this[M](e,t)}let n=this[M].bind(this);for(let e=this[U].length-1;e>=0;e--){n=this[U][e](n)}this[K]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new p("handler must be an object")}try{if(!e||typeof e!=="object"){throw new p("opts must be an object.")}if(this[D]||this[V]){throw new i}if(this[v]){throw new d}return this[K](e,t)}catch(e){if(typeof t.onError!=="function"){throw new p("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},883:(e,t,n)=>{const o=n(8474);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const t=Array.isArray(e[0])?e[0]:e;let n=this.dispatch.bind(this);for(const e of t){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}n=e(n);if(n==null||typeof n!=="function"||n.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,n)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(e,t){super();this.#e=e;this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}}e.exports=Dispatcher},3137:(e,t,n)=>{const o=n(1841);const{kClose:i,kDestroy:d,kClosed:p,kDestroyed:f,kDispatch:y,kNoProxyAgent:v,kHttpProxyAgent:D,kHttpsProxyAgent:M}=n(6443);const U=n(6672);const V=n(7405);const j={"http:":80,"https:":443};let K=false;class EnvHttpProxyAgent extends o{#r=null;#n=null;#s=null;constructor(e={}){super();this.#s=e;if(!K){K=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:t,httpsProxy:n,noProxy:o,...i}=e;this[v]=new V(i);const d=t??process.env.http_proxy??process.env.HTTP_PROXY;if(d){this[D]=new U({...i,uri:d})}else{this[D]=this[v]}const p=n??process.env.https_proxy??process.env.HTTPS_PROXY;if(p){this[M]=new U({...i,uri:p})}else{this[M]=this[D]}this.#o()}[y](e,t){const n=new URL(e.origin);const o=this.#i(n);return o.dispatch(e,t)}async[i](){await this[v].close();if(!this[D][p]){await this[D].close()}if(!this[M][p]){await this[M].close()}}async[d](e){await this[v].destroy(e);if(!this[D][f]){await this[D].destroy(e)}if(!this[M][f]){await this[M].destroy(e)}}#i(e){let{protocol:t,host:n,port:o}=e;n=n.replace(/:\d*$/,"").toLowerCase();o=Number.parseInt(o,10)||j[t]||0;if(!this.#a(n,o)){return this[v]}if(t==="https:"){return this[M]}return this[D]}#a(e,t){if(this.#c){this.#o()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let n=0;n{const t=2048;const n=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&n)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&n}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&n;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},2128:(e,t,n)=>{const o=n(1841);const i=n(4660);const{kConnected:d,kSize:p,kRunning:f,kPending:y,kQueued:v,kBusy:D,kFree:M,kUrl:U,kClose:V,kDestroy:j,kDispatch:K}=n(6443);const ee=n(3246);const te=Symbol("clients");const re=Symbol("needDrain");const ne=Symbol("queue");const se=Symbol("closed resolve");const oe=Symbol("onDrain");const ie=Symbol("onConnect");const ae=Symbol("onDisconnect");const ce=Symbol("onConnectionError");const le=Symbol("get dispatcher");const ue=Symbol("add client");const de=Symbol("remove client");const Ae=Symbol("stats");class PoolBase extends o{constructor(){super();this[ne]=new i;this[te]=[];this[v]=0;const e=this;this[oe]=function onDrain(t,n){const o=e[ne];let i=false;while(!i){const t=o.shift();if(!t){break}e[v]--;i=!this.dispatch(t.opts,t.handler)}this[re]=i;if(!this[re]&&e[re]){e[re]=false;e.emit("drain",t,[e,...n])}if(e[se]&&o.isEmpty()){Promise.all(e[te].map((e=>e.close()))).then(e[se])}};this[ie]=(t,n)=>{e.emit("connect",t,[e,...n])};this[ae]=(t,n,o)=>{e.emit("disconnect",t,[e,...n],o)};this[ce]=(t,n,o)=>{e.emit("connectionError",t,[e,...n],o)};this[Ae]=new ee(this)}get[D](){return this[re]}get[d](){return this[te].filter((e=>e[d])).length}get[M](){return this[te].filter((e=>e[d]&&!e[re])).length}get[y](){let e=this[v];for(const{[y]:t}of this[te]){e+=t}return e}get[f](){let e=0;for(const{[f]:t}of this[te]){e+=t}return e}get[p](){let e=this[v];for(const{[p]:t}of this[te]){e+=t}return e}get stats(){return this[Ae]}async[V](){if(this[ne].isEmpty()){await Promise.all(this[te].map((e=>e.close())))}else{await new Promise((e=>{this[se]=e}))}}async[j](e){while(true){const t=this[ne].shift();if(!t){break}t.handler.onError(e)}await Promise.all(this[te].map((t=>t.destroy(e))))}[K](e,t){const n=this[le]();if(!n){this[re]=true;this[ne].push({opts:e,handler:t});this[v]++}else if(!n.dispatch(e,t)){n[re]=true;this[re]=!this[le]()}return!this[re]}[ue](e){e.on("drain",this[oe]).on("connect",this[ie]).on("disconnect",this[ae]).on("connectionError",this[ce]);this[te].push(e);if(this[re]){queueMicrotask((()=>{if(this[re]){this[oe](e[U],[this,e])}}))}return this}[de](e){e.close((()=>{const t=this[te].indexOf(e);if(t!==-1){this[te].splice(t,1)}}));this[re]=this[te].some((e=>!e[re]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:te,kNeedDrain:re,kAddClient:ue,kRemoveClient:de,kGetDispatcher:le}},3246:(e,t,n)=>{const{kFree:o,kConnected:i,kPending:d,kQueued:p,kRunning:f,kSize:y}=n(6443);const v=Symbol("pool");class PoolStats{constructor(e){this[v]=e}get connected(){return this[v][i]}get free(){return this[v][o]}get pending(){return this[v][d]}get queued(){return this[v][p]}get running(){return this[v][f]}get size(){return this[v][y]}}e.exports=PoolStats},628:(e,t,n)=>{const{PoolBase:o,kClients:i,kNeedDrain:d,kAddClient:p,kGetDispatcher:f}=n(2128);const y=n(3701);const{InvalidArgumentError:v}=n(8707);const D=n(3440);const{kUrl:M,kInterceptors:U}=n(6443);const V=n(9136);const j=Symbol("options");const K=Symbol("connections");const ee=Symbol("factory");function defaultFactory(e,t){return new y(e,t)}class Pool extends o{constructor(e,{connections:t,factory:n=defaultFactory,connect:o,connectTimeout:d,tls:p,maxCachedSessions:f,socketPath:y,autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re,allowH2:ne,...se}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new v("invalid connections")}if(typeof n!=="function"){throw new v("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new v("connect must be a function or an object")}if(typeof o!=="function"){o=V({...p,maxCachedSessions:f,allowH2:ne,socketPath:y,timeout:d,...te?{autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re}:undefined,...o})}this[U]=se.interceptors?.Pool&&Array.isArray(se.interceptors.Pool)?se.interceptors.Pool:[];this[K]=t||null;this[M]=D.parseOrigin(e);this[j]={...D.deepClone(se),connect:o,allowH2:ne};this[j].interceptors=se.interceptors?{...se.interceptors}:undefined;this[ee]=n;this.on("connectionError",((e,t,n)=>{for(const e of t){const t=this[i].indexOf(e);if(t!==-1){this[i].splice(t,1)}}}))}[f](){for(const e of this[i]){if(!e[d]){return e}}if(!this[K]||this[i].length{const{kProxy:o,kClose:i,kDestroy:d,kDispatch:p,kInterceptors:f}=n(6443);const{URL:y}=n(3136);const v=n(7405);const D=n(628);const M=n(1841);const{InvalidArgumentError:U,RequestAbortedError:V,SecureProxyConnectionError:j}=n(8707);const K=n(9136);const ee=n(3701);const te=Symbol("proxy agent");const re=Symbol("proxy client");const ne=Symbol("proxy headers");const se=Symbol("request tls settings");const oe=Symbol("proxy tls settings");const ie=Symbol("connect endpoint function");const ae=Symbol("tunnel proxy");function defaultProtocolPort(e){return e==="https:"?443:80}function defaultFactory(e,t){return new D(e,t)}const noop=()=>{};function defaultAgentFactory(e,t){if(t.connections===1){return new ee(e,t)}return new D(e,t)}class Http1ProxyWrapper extends M{#u;constructor(e,{headers:t={},connect:n,factory:o}){super();if(!e){throw new U("Proxy URL is mandatory")}this[ne]=t;if(o){this.#u=o(e,{connect:n})}else{this.#u=new ee(e,{connect:n})}}[p](e,t){const n=t.onHeaders;t.onHeaders=function(e,o,i){if(e===407){if(typeof t.onError==="function"){t.onError(new U("Proxy Authentication Required (407)"))}return}if(n)n.call(this,e,o,i)};const{origin:o,path:i="/",headers:d={}}=e;e.path=o+i;if(!("host"in d)&&!("Host"in d)){const{host:e}=new y(o);d.host=e}e.headers={...this[ne],...d};return this.#u[p](e,t)}async[i](){return this.#u.close()}async[d](e){return this.#u.destroy(e)}}class ProxyAgent extends M{constructor(e){super();if(!e||typeof e==="object"&&!(e instanceof y)&&!e.uri){throw new U("Proxy uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new U("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:n=true}=e;const i=this.#d(e);const{href:d,origin:p,port:D,protocol:M,username:ee,password:ce,hostname:le}=i;this[o]={uri:d,protocol:M};this[f]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];this[se]=e.requestTls;this[oe]=e.proxyTls;this[ne]=e.headers||{};this[ae]=n;if(e.auth&&e.token){throw new U("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[ne]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[ne]["proxy-authorization"]=e.token}else if(ee&&ce){this[ne]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(ee)}:${decodeURIComponent(ce)}`).toString("base64")}`}const ue=K({...e.proxyTls});this[ie]=K({...e.requestTls});const de=e.factory||defaultAgentFactory;const factory=(e,t)=>{const{protocol:n}=new y(e);if(!this[ae]&&n==="http:"&&this[o].protocol==="http:"){return new Http1ProxyWrapper(this[o].uri,{headers:this[ne],connect:ue,factory:de})}return de(e,t)};this[re]=t(i,{connect:ue});this[te]=new v({...e,factory:factory,connect:async(e,t)=>{let n=e.host;if(!e.port){n+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:o,statusCode:i}=await this[re].connect({origin:p,port:D,path:n,signal:e.signal,headers:{...this[ne],host:e.host},servername:this[oe]?.servername||le});if(i!==200){o.on("error",noop).destroy();t(new V(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,o);return}let d;if(this[se]){d=this[se].servername}else{d=e.servername}this[ie]({...e,servername:d,httpSocket:o},t)}catch(e){if(e.code==="ERR_TLS_CERT_ALTNAME_INVALID"){t(new j(e))}else{t(e)}}}})}dispatch(e,t){const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);if(n&&!("host"in n)&&!("Host"in n)){const{host:t}=new y(e.origin);n.host=t}return this[te].dispatch({...e,headers:n},t)}#d(e){if(typeof e==="string"){return new y(e)}else if(e instanceof y){return e}else{return new y(e.uri)}}async[i](){await this[te].close();await this[re].close()}async[d](){await this[te].destroy();await this[re].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let n=0;ne.toLowerCase()==="proxy-authorization"));if(t){throw new U("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},50:(e,t,n)=>{const o=n(883);const i=n(7816);class RetryAgent extends o{#A=null;#p=null;constructor(e,t={}){super(t);this.#A=e;this.#p=t}dispatch(e,t){const n=new i({...e,retryOptions:this.#p},{dispatch:this.#A.dispatch.bind(this.#A),handler:t});return this.#A.dispatch(e,n)}close(){return this.#A.close()}destroy(){return this.#A.destroy()}}e.exports=RetryAgent},2581:(e,t,n)=>{const o=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:i}=n(8707);const d=n(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new d)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new i("Argument agent must implement Agent")}Object.defineProperty(globalThis,o,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[o]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:e=>{e.exports=class DecoratorHandler{#m;constructor(e){if(typeof e!=="object"||e===null){throw new TypeError("handler must be an object")}this.#m=e}onConnect(...e){return this.#m.onConnect?.(...e)}onError(...e){return this.#m.onError?.(...e)}onUpgrade(...e){return this.#m.onUpgrade?.(...e)}onResponseStarted(...e){return this.#m.onResponseStarted?.(...e)}onHeaders(...e){return this.#m.onHeaders?.(...e)}onData(...e){return this.#m.onData?.(...e)}onComplete(...e){return this.#m.onComplete?.(...e)}onBodySent(...e){return this.#m.onBodySent?.(...e)}}},8754:(e,t,n)=>{const o=n(3440);const{kBodyUsed:i}=n(6443);const d=n(4589);const{InvalidArgumentError:p}=n(8707);const f=n(8474);const y=[300,301,302,303,307,308];const v=Symbol("body");class BodyAsyncIterable{constructor(e){this[v]=e;this[i]=false}async*[Symbol.asyncIterator](){d(!this[i],"disturbed");this[i]=true;yield*this[v]}}class RedirectHandler{constructor(e,t,n,y){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxRedirections must be a positive number")}o.validateHandler(y,n.method,n.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...n,maxRedirections:0};this.maxRedirections=t;this.handler=y;this.history=[];this.redirectionLimitReached=false;if(o.isStream(this.opts.body)){if(o.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){d(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[i]=false;f.prototype.on.call(this.opts.body,"data",(function(){this[i]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&o.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){this.location=this.history.length>=this.maxRedirections||o.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,n,i)}const{origin:d,pathname:p,search:f}=o.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const y=f?`${p}${f}`:p;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==d);this.opts.path=y;this.opts.origin=d;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(y.indexOf(e)===-1){return null}for(let e=0;e{const o=n(4589);const{kRetryHandlerDefaultRetry:i}=n(6443);const{RequestRetryError:d}=n(8707);const{isDisturbed:p,parseHeaders:f,parseRangeHeader:y,wrapRequestBody:v}=n(3440);function calculateRetryAfterHeader(e){const t=Date.now();return new Date(e).getTime()-t}class RetryHandler{constructor(e,t){const{retryOptions:n,...o}=e;const{retry:d,maxRetries:p,maxTimeout:f,minTimeout:y,timeoutFactor:D,methods:M,errorCodes:U,retryAfter:V,statusCodes:j}=n??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts={...o,body:v(e.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:d??RetryHandler[i],retryAfter:V??true,maxTimeout:f??30*1e3,minTimeout:y??500,timeoutFactor:D??2,maxRetries:p??5,methods:M??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:j??[500,502,503,504,429],errorCodes:U??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,n){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,n)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},o){const{statusCode:i,code:d,headers:p}=e;const{method:f,retryOptions:y}=n;const{maxRetries:v,minTimeout:D,maxTimeout:M,timeoutFactor:U,statusCodes:V,errorCodes:j,methods:K}=y;const{counter:ee}=t;if(d&&d!=="UND_ERR_REQ_RETRY"&&!j.includes(d)){o(e);return}if(Array.isArray(K)&&!K.includes(f)){o(e);return}if(i!=null&&Array.isArray(V)&&!V.includes(i)){o(e);return}if(ee>v){o(e);return}let te=p?.["retry-after"];if(te){te=Number(te);te=Number.isNaN(te)?calculateRetryAfterHeader(te):te*1e3}const re=te>0?Math.min(te,M):Math.min(D*U**(ee-1),M);setTimeout((()=>o(null)),re)}onHeaders(e,t,n,i){const p=f(t);this.retryCount+=1;if(e>=300){if(this.retryOpts.statusCodes.includes(e)===false){return this.handler.onHeaders(e,t,n,i)}else{this.abort(new d("Request failed",e,{headers:p,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(e!==206&&(this.start>0||e!==200)){this.abort(new d("server does not support the range header and the payload was partially consumed",e,{headers:p,data:{count:this.retryCount}}));return false}const t=y(p["content-range"]);if(!t){this.abort(new d("Content-Range mismatch",e,{headers:p,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==p.etag){this.abort(new d("ETag mismatch",e,{headers:p,data:{count:this.retryCount}}));return false}const{start:i,size:f,end:v=f-1}=t;o(this.start===i,"content-range mismatch");o(this.end==null||this.end===v,"content-range mismatch");this.resume=n;return true}if(this.end==null){if(e===206){const d=y(p["content-range"]);if(d==null){return this.handler.onHeaders(e,t,n,i)}const{start:f,size:v,end:D=v-1}=d;o(f!=null&&Number.isFinite(f),"content-range mismatch");o(D!=null&&Number.isFinite(D),"invalid content-length");this.start=f;this.end=D}if(this.end==null){const e=p["content-length"];this.end=e!=null?Number(e)-1:null}o(Number.isFinite(this.start));o(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=n;this.etag=p.etag!=null?p.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(e,t,n,i)}const v=new d("Request failed",e,{headers:p,data:{count:this.retryCount}});this.abort(v);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||p(this.opts.body)){return this.handler.onError(e)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||p(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){const e={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){e["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},379:(e,t,n)=>{const{isIP:o}=n(7030);const{lookup:i}=n(610);const d=n(8155);const{InvalidArgumentError:p,InformationalError:f}=n(8707);const y=Math.pow(2,31)-1;class DNSInstance{#g=0;#f=0;#h=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(e){this.#g=e.maxTTL;this.#f=e.maxItems;this.dualStack=e.dualStack;this.affinity=e.affinity;this.lookup=e.lookup??this.#y;this.pick=e.pick??this.#E}get full(){return this.#h.size===this.#f}runLookup(e,t,n){const o=this.#h.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}const i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#g,maxItems:this.#f};if(o==null){this.lookup(e,i,((t,o)=>{if(t||o==null||o.length===0){n(t??new f("No DNS entries found"));return}this.setRecords(e,o);const d=this.#h.get(e.hostname);const p=this.pick(e,d,i.affinity);let y;if(typeof p.port==="number"){y=`:${p.port}`}else if(e.port!==""){y=`:${e.port}`}else{y=""}n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${y}`)}))}else{const d=this.pick(e,o,i.affinity);if(d==null){this.#h.delete(e.hostname);this.runLookup(e,t,n);return}let p;if(typeof d.port==="number"){p=`:${d.port}`}else if(e.port!==""){p=`:${e.port}`}else{p=""}n(null,`${e.protocol}//${d.family===6?`[${d.address}]`:d.address}${p}`)}}#y(e,t,n){i(e.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((e,t)=>{if(e){return n(e)}const o=new Map;for(const e of t){o.set(`${e.address}:${e.family}`,e)}n(null,o.values())}))}#E(e,t,n){let o=null;const{records:i,offset:d}=t;let p;if(this.dualStack){if(n==null){if(d==null||d===y){t.offset=0;n=4}else{t.offset++;n=(t.offset&1)===1?6:4}}if(i[n]!=null&&i[n].ips.length>0){p=i[n]}else{p=i[n===4?6:4]}}else{p=i[n]}if(p==null||p.ips.length===0){return o}if(p.offset==null||p.offset===y){p.offset=0}else{p.offset++}const f=p.offset%p.ips.length;o=p.ips[f]??null;if(o==null){return o}if(Date.now()-o.timestamp>o.ttl){p.ips.splice(f,1);return this.pick(e,t,n)}return o}setRecords(e,t){const n=Date.now();const o={records:{4:null,6:null}};for(const e of t){e.timestamp=n;if(typeof e.ttl==="number"){e.ttl=Math.min(e.ttl,this.#g)}else{e.ttl=this.#g}const t=o.records[e.family]??{ips:[]};t.ips.push(e);o.records[e.family]=t}this.#h.set(e.hostname,o)}getHandler(e,t){return new DNSDispatchHandler(this,e,t)}}class DNSDispatchHandler extends d{#C=null;#s=null;#t=null;#m=null;#I=null;constructor(e,{origin:t,handler:n,dispatch:o},i){super(n);this.#I=t;this.#m=n;this.#s={...i};this.#C=e;this.#t=o}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#C.dualStack){this.#C.runLookup(this.#I,this.#s,((e,t)=>{if(e){return this.#m.onError(e)}const n={...this.#s,origin:t};this.#t(n,this)}));return}this.#m.onError(e);return}case"ENOTFOUND":this.#C.deleteRecord(this.#I);default:this.#m.onError(e);break}}}e.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0)){throw new p("Invalid maxTTL. Must be a positive number")}if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1)){throw new p("Invalid maxItems. Must be a positive number and greater than zero")}if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6){throw new p("Invalid affinity. Must be either 4 or 6")}if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean"){throw new p("Invalid dualStack. Must be a boolean")}if(e?.lookup!=null&&typeof e?.lookup!=="function"){throw new p("Invalid lookup. Must be a function")}if(e?.pick!=null&&typeof e?.pick!=="function"){throw new p("Invalid pick. Must be a function")}const t=e?.dualStack??true;let n;if(t){n=e?.affinity??null}else{n=e?.affinity??4}const i={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:n,maxItems:e?.maxItems??Infinity};const d=new DNSInstance(i);return e=>function dnsInterceptor(t,n){const i=t.origin.constructor===URL?t.origin:new URL(t.origin);if(o(i.hostname)!==0){return e(t,n)}d.runLookup(i,t,((o,p)=>{if(o){return n.onError(o)}let f=null;f={...t,servername:i.hostname,origin:p,headers:{host:i.hostname,...t.headers}};e(f,d.getHandler({origin:i,dispatch:e,handler:n},t))}));return true}}},8060:(e,t,n)=>{const o=n(3440);const{InvalidArgumentError:i,RequestAbortedError:d}=n(8707);const p=n(8155);class DumpHandler extends p{#b=1024*1024;#S=null;#B=false;#w=false;#R=0;#Q=null;#m=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1)){throw new i("maxSize must be a number greater than 0")}this.#b=e??this.#b;this.#m=t}onConnect(e){this.#S=e;this.#m.onConnect(this.#N.bind(this))}#N(e){this.#w=true;this.#Q=e}onHeaders(e,t,n,i){const p=o.parseHeaders(t);const f=p["content-length"];if(f!=null&&f>this.#b){throw new d(`Response size (${f}) larger than maxSize (${this.#b})`)}if(this.#w){return true}return this.#m.onHeaders(e,t,n,i)}onError(e){if(this.#B){return}e=this.#Q??e;this.#m.onError(e)}onData(e){this.#R=this.#R+e.length;if(this.#R>=this.#b){this.#B=true;if(this.#w){this.#m.onError(this.#Q)}else{this.#m.onComplete([])}}return true}onComplete(e){if(this.#B){return}if(this.#w){this.#m.onError(this.reason);return}this.#m.onComplete(e)}}function createDumpInterceptor({maxSize:e}={maxSize:1024*1024}){return t=>function Intercept(n,o){const{dumpMaxSize:i=e}=n;const d=new DumpHandler({maxSize:i},o);return t(n,d)}}e.exports=createDumpInterceptor},5092:(e,t,n)=>{const o=n(8754);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(n,i){const{maxRedirections:d=e}=n;if(!d){return t(n,i)}const p=new o(t,d,n,i);n={...n,maxRedirections:0};return t(n,p)}}e.exports=createRedirectInterceptor},1514:(e,t,n)=>{const o=n(8754);e.exports=e=>{const t=e?.maxRedirections;return e=>function redirectInterceptor(n,i){const{maxRedirections:d=t,...p}=n;if(!d){return e(n,i)}const f=new o(e,d,n,i);return e(p,f)}}},2026:(e,t,n)=>{const o=n(7816);e.exports=e=>t=>function retryInterceptor(n,i){return t(n,new o({...n,retryOptions:{...e,...n.retryOptions}},{handler:i,dispatch:t}))}},2824:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const o=n(172);var i;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(i=t.ERROR||(t.ERROR={}));var d;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(d=t.TYPE||(t.TYPE={}));var p;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(p=t.FLAGS||(t.FLAGS={}));var f;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(f=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var y;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(y=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[y.DELETE,y.GET,y.HEAD,y.POST,y.PUT,y.CONNECT,y.OPTIONS,y.TRACE,y.COPY,y.LOCK,y.MKCOL,y.MOVE,y.PROPFIND,y.PROPPATCH,y.SEARCH,y.UNLOCK,y.BIND,y.REBIND,y.UNBIND,y.ACL,y.REPORT,y.MKACTIVITY,y.CHECKOUT,y.MERGE,y["M-SEARCH"],y.NOTIFY,y.SUBSCRIBE,y.UNSUBSCRIBE,y.PATCH,y.PURGE,y.MKCALENDAR,y.LINK,y.UNLINK,y.PRI,y.SOURCE];t.METHODS_ICE=[y.SOURCE];t.METHODS_RTSP=[y.OPTIONS,y.DESCRIBE,y.ANNOUNCE,y.SETUP,y.PLAY,y.PAUSE,y.TEARDOWN,y.GET_PARAMETER,y.SET_PARAMETER,y.REDIRECT,y.RECORD,y.FLUSH,y.GET,y.POST];t.METHOD_MAP=o.enumToMap(y);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var v;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(v=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var D;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(D=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:D.CONNECTION,"content-length":D.CONTENT_LENGTH,"proxy-connection":D.CONNECTION,"transfer-encoding":D.TRANSFER_ENCODING,upgrade:D.UPGRADE}},3870:(e,t,n)=>{const{Buffer:o}=n(4573);e.exports=o.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVu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PgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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iQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEV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JSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxB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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB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CABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv","base64")},3434:(e,t,n)=>{const{Buffer:o}=n(4573);e.exports=o.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVu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PgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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iQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEV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JSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB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AAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((n=>{const o=e[n];if(typeof o==="number"){t[n]=o}}));return t}t.enumToMap=enumToMap},7501:(e,t,n)=>{const{kClients:o}=n(6443);const i=n(7405);const{kAgent:d,kMockAgentSet:p,kMockAgentGet:f,kDispatches:y,kIsMockActive:v,kNetConnect:D,kGetNetConnect:M,kOptions:U,kFactory:V}=n(1117);const j=n(7365);const K=n(4004);const{matchValue:ee,buildMockOptions:te}=n(3397);const{InvalidArgumentError:re,UndiciError:ne}=n(8707);const se=n(883);const oe=n(1529);const ie=n(6142);class MockAgent extends se{constructor(e){super(e);this[D]=true;this[v]=true;if(e?.agent&&typeof e.agent.dispatch!=="function"){throw new re("Argument opts.agent must implement Agent")}const t=e?.agent?e.agent:new i(e);this[d]=t;this[o]=t[o];this[U]=te(e)}get(e){let t=this[f](e);if(!t){t=this[V](e);this[p](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[d].dispatch(e,t)}async close(){await this[d].close();this[o].clear()}deactivate(){this[v]=false}activate(){this[v]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[D])){this[D].push(e)}else{this[D]=[e]}}else if(typeof e==="undefined"){this[D]=true}else{throw new re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[D]=false}get isMockActive(){return this[v]}[p](e,t){this[o].set(e,t)}[V](e){const t=Object.assign({agent:this},this[U]);return this[U]&&this[U].connections===1?new j(e,t):new K(e,t)}[f](e){const t=this[o].get(e);if(t){return t}if(typeof e!=="string"){const t=this[V]("http://localhost:9999");this[p](e,t);return t}for(const[t,n]of Array.from(this[o])){if(n&&typeof t!=="string"&&ee(t,e)){const t=this[V](e);this[p](e,t);t[y]=n[y];return t}}}[M](){return this[D]}pendingInterceptors(){const e=this[o];return Array.from(e.entries()).flatMap((([e,t])=>t[y].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new ie}={}){const t=this.pendingInterceptors();if(t.length===0){return}const n=new oe("interceptor","interceptors").pluralize(t.length);throw new ne(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},7365:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(3701);const{buildMockDispatch:d}=n(3397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(1117);const{MockInterceptor:V}=n(1511);const j=n(6443);const{InvalidArgumentError:K}=n(8707);class MockClient extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await o(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockClient},2429:(e,t,n)=>{const{UndiciError:o}=n(8707);const i=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends o{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}e.exports={MockNotMatchedError:MockNotMatchedError}},1511:(e,t,n)=>{const{getResponseData:o,buildKey:i,addMockDispatch:d}=n(3397);const{kDispatches:p,kDispatchKey:f,kDefaultHeaders:y,kDefaultTrailers:v,kContentLength:D,kMockDispatch:M}=n(1117);const{InvalidArgumentError:U}=n(8707);const{buildURL:V}=n(3440);class MockScope{constructor(e){this[M]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("waitInMs must be a valid integer > 0")}this[M].delay=e;return this}persist(){this[M].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("repeatTimes must be a valid integer > 0")}this[M].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new U("opts must be an object")}if(typeof e.path==="undefined"){throw new U("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=V(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[f]=i(e);this[p]=t;this[y]={};this[v]={};this[D]=false}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:n}){const i=o(t);const d=this[D]?{"content-length":i.length}:{};const p={...this[y],...d,...n.headers};const f={...this[v],...n.trailers};return{statusCode:e,data:t,headers:p,trailers:f}}validateReplyParameters(e){if(typeof e.statusCode==="undefined"){throw new U("statusCode must be defined")}if(typeof e.responseOptions!=="object"||e.responseOptions===null){throw new U("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const n=e(t);if(typeof n!=="object"||n===null){throw new U("reply options callback must return an object")}const o={data:"",responseOptions:{},...n};this.validateReplyParameters(o);return{...this.createMockScopeDispatchData(o)}};const t=d(this[p],this[f],wrappedDefaultsCallback);return new MockScope(t)}const t={statusCode:e,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(t);const n=this.createMockScopeDispatchData(t);const o=d(this[p],this[f],n);return new MockScope(o)}replyWithError(e){if(typeof e==="undefined"){throw new U("error must be defined")}const t=d(this[p],this[f],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new U("headers must be defined")}this[y]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new U("trailers must be defined")}this[v]=e;return this}replyContentLength(){this[D]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},4004:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(628);const{buildMockDispatch:d}=n(3397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(1117);const{MockInterceptor:V}=n(1511);const j=n(6443);const{InvalidArgumentError:K}=n(8707);class MockPool extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await o(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockPool},1117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(e,t,n)=>{const{MockNotMatchedError:o}=n(2429);const{kDispatches:i,kMockAgent:d,kOriginalDispatch:p,kOrigin:f,kGetNetConnect:y}=n(1117);const{buildURL:v}=n(3440);const{STATUS_CODES:D}=n(7067);const{types:{isPromise:M}}=n(7975);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let n=0;n!e)).filter((({path:e})=>matchValue(safeUrl(e),i)));if(d.length===0){throw new o(`Mock dispatch not matched for path '${i}'`)}d=d.filter((({method:e})=>matchValue(e,t.method)));if(d.length===0){throw new o(`Mock dispatch not matched for method '${t.method}' on path '${i}'`)}d=d.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(d.length===0){throw new o(`Mock dispatch not matched for body '${t.body}' on path '${i}'`)}d=d.filter((e=>matchHeaders(e,t.headers)));if(d.length===0){const e=typeof t.headers==="object"?JSON.stringify(t.headers):t.headers;throw new o(`Mock dispatch not matched for headers '${e}' on path '${i}'`)}return d[0]}function addMockDispatch(e,t,n){const o={timesInvoked:0,times:1,persist:false,consumed:false};const i=typeof n==="function"?{callback:n}:{...n};const d={...o,...t,pending:true,data:{error:null,...i}};e.push(d);return d}function deleteMockDispatch(e,t){const n=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(n!==-1){e.splice(n,1)}}function buildKey(e){const{path:t,method:n,body:o,headers:i,query:d}=e;return{path:t,method:n,body:o,headers:i,query:d}}function generateKeyValues(e){const t=Object.keys(e);const n=[];for(let o=0;o=j;o.pending=V0){setTimeout((()=>{handleReply(this[i])}),D)}else{handleReply(this[i])}function handleReply(o,i=p){const v=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const D=typeof i==="function"?i({...e,headers:v}):i;if(M(D)){D.then((e=>handleReply(o,e)));return}const U=getResponseData(D);const V=generateKeyValues(f);const j=generateKeyValues(y);t.onConnect?.((e=>t.onError(e)),null);t.onHeaders?.(d,V,resume,getStatusText(d));t.onData?.(Buffer.from(U));t.onComplete?.(j);deleteMockDispatch(o,n)}function resume(){}return true}function buildMockDispatch(){const e=this[d];const t=this[f];const n=this[p];return function dispatch(i,d){if(e.isMockActive){try{mockDispatch.call(this,i,d)}catch(p){if(p instanceof o){const f=e[y]();if(f===false){throw new o(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(f,t)){n.call(this,i,d)}else{throw new o(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw p}}}else{n.call(this,i,d)}}}function checkNetConnect(e,t){const n=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,n.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...n}=e;return n}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(e,t,n)=>{const{Transform:o}=n(7075);const{Console:i}=n(7540);const d=process.versions.icu?"✅":"Y ";const p=process.versions.icu?"❌":"N ";e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new o({transform(e,t,n){n(null,e)}});this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:o,times:i,timesInvoked:f,origin:y})=>({Method:e,Origin:y,Path:t,"Status code":n,Persistent:o?d:p,Invocations:f,Remaining:o?Infinity:i-f})));this.logger.table(t);return this.transform.read().toString()}}},1529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const n={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const o=e===1;const i=o?t:n;const d=o?this.singular:this.plural;return{...i,count:e,noun:d}}}},6603:e=>{let t=0;const n=1e3;const o=(n>>1)-1;let i;const d=Symbol("kFastTimer");const p=[];const f=-2;const y=-1;const v=0;const D=1;function onTick(){t+=o;let e=0;let n=p.length;while(e=i._idleStart+i._idleTimeout){i._state=y;i._idleStart=-1;i._onTimeout(i._timerArg)}if(i._state===y){i._state=f;if(--n!==0){p[e]=p[n]}}else{++e}}p.length=n;if(p.length!==0){refreshTimeout()}}function refreshTimeout(){if(i){i.refresh()}else{clearTimeout(i);i=setTimeout(onTick,o);if(i.unref){i.unref()}}}class FastTimer{[d]=true;_state=f;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e;this._idleTimeout=t;this._timerArg=n;this.refresh()}refresh(){if(this._state===f){p.push(this)}if(!i||p.length===1){refreshTimeout()}this._state=v}clear(){this._state=y;this._idleStart=-1}}e.exports={setTimeout(e,t,o){return t<=n?setTimeout(e,t,o):new FastTimer(e,t,o)},clearTimeout(e){if(e[d]){e.clear()}else{clearTimeout(e)}},setFastTimeout(e,t,n){return new FastTimer(e,t,n)},clearFastTimeout(e){e.clear()},now(){return t},tick(e=0){t+=e-n+1;onTick();onTick()},reset(){t=0;p.length=0;clearTimeout(i);i=null},kFastTimer:d}},9634:(e,t,n)=>{const{kConstruct:o}=n(109);const{urlEquals:i,getFieldValues:d}=n(6798);const{kEnumerableProperty:p,isDisturbed:f}=n(3440);const{webidl:y}=n(5893);const{Response:v,cloneResponse:D,fromInnerResponse:M}=n(9051);const{Request:U,fromInnerRequest:V}=n(9967);const{kState:j}=n(3627);const{fetching:K}=n(4398);const{urlIsHttpHttpsScheme:ee,createDeferredPromise:te,readAllBytes:re}=n(3168);const ne=n(4589);class Cache{#x;constructor(){if(arguments[0]!==o){y.illegalConstructor()}y.util.markAsUncloneable(this);this.#x=arguments[1]}async match(e,t={}){y.brandCheck(this,Cache);const n="Cache.match";y.argumentLengthCheck(arguments,1,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");const o=this.#T(e,t,1);if(o.length===0){return}return o[0]}async matchAll(e=undefined,t={}){y.brandCheck(this,Cache);const n="Cache.matchAll";if(e!==undefined)e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");return this.#T(e,t)}async add(e){y.brandCheck(this,Cache);const t="Cache.add";y.argumentLengthCheck(arguments,1,t);e=y.converters.RequestInfo(e,t,"request");const n=[e];const o=this.addAll(n);return await o}async addAll(e){y.brandCheck(this,Cache);const t="Cache.addAll";y.argumentLengthCheck(arguments,1,t);const n=[];const o=[];for(let n of e){if(n===undefined){throw y.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]})}n=y.converters.RequestInfo(n);if(typeof n==="string"){continue}const e=n[j];if(!ee(e.url)||e.method!=="GET"){throw y.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const p of e){const e=new U(p)[j];if(!ee(e.url)){throw y.errors.exception({header:t,message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";o.push(e);const f=te();i.push(K({request:e,processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){f.reject(y.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=d(e.headersList.get("vary"));for(const e of t){if(e==="*"){f.reject(y.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){f.reject(new DOMException("aborted","AbortError"));return}f.resolve(e)}}));n.push(f.promise)}const p=Promise.all(n);const f=await p;const v=[];let D=0;for(const e of f){const t={type:"put",request:o[D],response:e};v.push(t);D++}const M=te();let V=null;try{this.#v(v)}catch(e){V=e}queueMicrotask((()=>{if(V===null){M.resolve(undefined)}else{M.reject(V)}}));return M.promise}async put(e,t){y.brandCheck(this,Cache);const n="Cache.put";y.argumentLengthCheck(arguments,2,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.Response(t,n,"response");let o=null;if(e instanceof U){o=e[j]}else{o=new U(e)[j]}if(!ee(o.url)||o.method!=="GET"){throw y.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"})}const i=t[j];if(i.status===206){throw y.errors.exception({header:n,message:"Got 206 status"})}if(i.headersList.contains("vary")){const e=d(i.headersList.get("vary"));for(const t of e){if(t==="*"){throw y.errors.exception({header:n,message:"Got * vary field value"})}}}if(i.body&&(f(i.body.stream)||i.body.stream.locked)){throw y.errors.exception({header:n,message:"Response body is locked or disturbed"})}const p=D(i);const v=te();if(i.body!=null){const e=i.body.stream;const t=e.getReader();re(t).then(v.resolve,v.reject)}else{v.resolve(undefined)}const M=[];const V={type:"put",request:o,response:p};M.push(V);const K=await v.promise;if(p.body!=null){p.body.source=K}const ne=te();let se=null;try{this.#v(M)}catch(e){se=e}queueMicrotask((()=>{if(se===null){ne.resolve()}else{ne.reject(se)}}));return ne.promise}async delete(e,t={}){y.brandCheck(this,Cache);const n="Cache.delete";y.argumentLengthCheck(arguments,1,n);e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");let o=null;if(e instanceof U){o=e[j];if(o.method!=="GET"&&!t.ignoreMethod){return false}}else{ne(typeof e==="string");o=new U(e)[j]}const i=[];const d={type:"delete",request:o,options:t};i.push(d);const p=te();let f=null;let v;try{v=this.#v(i)}catch(e){f=e}queueMicrotask((()=>{if(f===null){p.resolve(!!v?.length)}else{p.reject(f)}}));return p.promise}async keys(e=undefined,t={}){y.brandCheck(this,Cache);const n="Cache.keys";if(e!==undefined)e=y.converters.RequestInfo(e,n,"request");t=y.converters.CacheQueryOptions(t,n,"options");let o=null;if(e!==undefined){if(e instanceof U){o=e[j];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new U(e)[j]}}const i=te();const d=[];if(e===undefined){for(const e of this.#x){d.push(e[0])}}else{const e=this.#P(o,t);for(const t of e){d.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of d){const n=V(t,(new AbortController).signal,"immutable");e.push(n)}i.resolve(Object.freeze(e))}));return i.promise}#v(e){const t=this.#x;const n=[...t];const o=[];const i=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#P(n.request,n.options,o).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#P(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);ne(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=n.request;if(!ee(i.url)){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw y.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#P(n.request);for(const n of e){const e=t.indexOf(n);ne(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);o.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){this.#x.length=0;this.#x=n;throw e}}#P(e,t,n){const o=[];const i=n??this.#x;for(const n of i){const[i,d]=n;if(this.#D(e,i,d,t)){o.push(n)}}return o}#D(e,t,n=null,o){const p=new URL(e.url);const f=new URL(t.url);if(o?.ignoreSearch){f.search="";p.search=""}if(!i(p,f,true)){return false}if(n==null||o?.ignoreVary||!n.headersList.contains("vary")){return true}const y=d(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const o=t.headersList.get(n);const i=e.headersList.get(n);if(o!==i){return false}}return true}#T(e,t,n=Infinity){let o=null;if(e!==undefined){if(e instanceof U){o=e[j];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new U(e)[j]}}const i=[];if(e===undefined){for(const e of this.#x){i.push(e[1])}}else{const e=this.#P(o,t);for(const t of e){i.push(t[1])}}const d=[];for(const e of i){const t=M(e,"immutable");d.push(t.clone());if(d.length>=n){break}}return Object.freeze(d)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const se=[{key:"ignoreSearch",converter:y.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:y.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:y.converters.boolean,defaultValue:()=>false}];y.converters.CacheQueryOptions=y.dictionaryConverter(se);y.converters.MultiCacheQueryOptions=y.dictionaryConverter([...se,{key:"cacheName",converter:y.converters.DOMString}]);y.converters.Response=y.interfaceConverter(v);y.converters["sequence"]=y.sequenceConverter(y.converters.RequestInfo);e.exports={Cache:Cache}},3245:(e,t,n)=>{const{kConstruct:o}=n(109);const{Cache:i}=n(9634);const{webidl:d}=n(5893);const{kEnumerableProperty:p}=n(3440);class CacheStorage{#k=new Map;constructor(){if(arguments[0]!==o){d.illegalConstructor()}d.util.markAsUncloneable(this)}async match(e,t={}){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,"CacheStorage.match");e=d.converters.RequestInfo(e);t=d.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#k.has(t.cacheName)){const n=this.#k.get(t.cacheName);const d=new i(o,n);return await d.match(e,t)}}else{for(const n of this.#k.values()){const d=new i(o,n);const p=await d.match(e,t);if(p!==undefined){return p}}}}async has(e){d.brandCheck(this,CacheStorage);const t="CacheStorage.has";d.argumentLengthCheck(arguments,1,t);e=d.converters.DOMString(e,t,"cacheName");return this.#k.has(e)}async open(e){d.brandCheck(this,CacheStorage);const t="CacheStorage.open";d.argumentLengthCheck(arguments,1,t);e=d.converters.DOMString(e,t,"cacheName");if(this.#k.has(e)){const t=this.#k.get(e);return new i(o,t)}const n=[];this.#k.set(e,n);return new i(o,n)}async delete(e){d.brandCheck(this,CacheStorage);const t="CacheStorage.delete";d.argumentLengthCheck(arguments,1,t);e=d.converters.DOMString(e,t,"cacheName");return this.#k.delete(e)}async keys(){d.brandCheck(this,CacheStorage);const e=this.#k.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});e.exports={CacheStorage:CacheStorage}},109:(e,t,n)=>{e.exports={kConstruct:n(6443).kConstruct}},6798:(e,t,n)=>{const o=n(4589);const{URLSerializer:i}=n(1900);const{isValidHeaderName:d}=n(3168);function urlEquals(e,t,n=false){const o=i(e,n);const d=i(t,n);return o===d}function getFieldValues(e){o(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(d(n)){t.push(n)}}return t}e.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:e=>{const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},9061:(e,t,n)=>{const{parseSetCookie:o}=n(1978);const{stringify:i}=n(7797);const{webidl:d}=n(5893);const{Headers:p}=n(660);function getCookies(e){d.argumentLengthCheck(arguments,1,"getCookies");d.brandCheck(e,p,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...o]=e.split("=");n[t.trim()]=o.join("=")}return n}function deleteCookie(e,t,n){d.brandCheck(e,p,{strict:false});const o="deleteCookie";d.argumentLengthCheck(arguments,2,o);t=d.converters.DOMString(t,o,"name");n=d.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){d.argumentLengthCheck(arguments,1,"getSetCookies");d.brandCheck(e,p,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>o(e)))}function setCookie(e,t){d.argumentLengthCheck(arguments,2,"setCookie");d.brandCheck(e,p,{strict:false});t=d.converters.Cookie(t);const n=i(t);if(n){e.append("Set-Cookie",n)}}d.converters.DeleteCookieAttributes=d.dictionaryConverter([{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:()=>null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:()=>null}]);d.converters.Cookie=d.dictionaryConverter([{converter:d.converters.DOMString,key:"name"},{converter:d.converters.DOMString,key:"value"},{converter:d.nullableConverter((e=>{if(typeof e==="number"){return d.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:()=>null},{converter:d.nullableConverter(d.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:()=>null},{converter:d.nullableConverter(d.converters.boolean),key:"secure",defaultValue:()=>null},{converter:d.nullableConverter(d.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:d.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:d.sequenceConverter(d.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(e,t,n)=>{const{maxNameValuePairSize:o,maxAttributeValueSize:i}=n(1276);const{isCTLExcludingHtab:d}=n(7797);const{collectASequenceOfCodePointsFast:p}=n(1900);const f=n(4589);function parseSetCookie(e){if(d(e)){return null}let t="";let n="";let i="";let f="";if(e.includes(";")){const o={position:0};t=p(";",e,o);n=e.slice(o.position)}else{t=e}if(!t.includes("=")){f=t}else{const e={position:0};i=p("=",t,e);f=t.slice(e.position+1)}i=i.trim();f=f.trim();if(i.length+f.length>o){return null}return{name:i,value:f,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}f(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=p(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let o="";let d="";if(n.includes("=")){const e={position:0};o=p("=",n,e);d=n.slice(e.position+1)}else{o=n}o=o.trim();d=d.trim();if(d.length>i){return parseUnparsedAttributes(e,t)}const y=o.toLowerCase();if(y==="expires"){const e=new Date(d);t.expires=e}else if(y==="max-age"){const n=d.charCodeAt(0);if((n<48||n>57)&&d[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(d)){return parseUnparsedAttributes(e,t)}const o=Number(d);t.maxAge=o}else if(y==="domain"){let e=d;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(d.length===0||d[0]!=="/"){e="/"}else{e=d}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=d.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${o}=${d}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:e=>{function isCTLExcludingHtab(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127){return true}}return false}function validateCookieName(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){let t=e.length;let n=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"'){throw new Error("Invalid cookie value")}--t;++n}while(n126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;tt.toString().padStart(2,"0")));function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}return`${t[e.getUTCDay()]}, ${o[e.getUTCDate()]} ${n[e.getUTCMonth()]} ${e.getUTCFullYear()} ${o[e.getUTCHours()]}:${o[e.getUTCMinutes()]}:${o[e.getUTCSeconds()]} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...o]=n.split("=");t.push(`${e.trim()}=${o.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(e,t,n)=>{const{Transform:o}=n(7075);const{isASCIINumber:i,isValidLastEventId:d}=n(4811);const p=[239,187,191];const f=10;const y=13;const v=58;const D=32;class EventSourceStream extends o{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(e={}){e.readableObjectMode=true;super(e);this.state=e.eventSourceSettings||{};if(e.push){this.push=e.push}}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,e])}else{this.buffer=e}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===p[0]){n();return}this.checkBOM=false;n();return;case 2:if(this.buffer[0]===p[0]&&this.buffer[1]===p[1]){n();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===p[0]&&this.buffer[1]===p[1]&&this.buffer[2]===p[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;n();return}this.checkBOM=false;break;default:if(this.buffer[0]===p[0]&&this.buffer[1]===p[1]&&this.buffer[2]===p[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){t[o]=p}break}}processEvent(e){if(e.retry&&i(e.retry)){this.state.reconnectionTime=parseInt(e.retry,10)}if(e.id&&d(e.id)){this.state.lastEventId=e.id}if(e.data!==undefined){this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}e.exports={EventSourceStream:EventSourceStream}},1238:(e,t,n)=>{const{pipeline:o}=n(7075);const{fetching:i}=n(4398);const{makeRequest:d}=n(9967);const{webidl:p}=n(5893);const{EventSourceStream:f}=n(4031);const{parseMIMEType:y}=n(1900);const{createFastMessageEvent:v}=n(5188);const{isNetworkError:D}=n(9051);const{delay:M}=n(4811);const{kEnumerableProperty:U}=n(3440);const{environmentSettingsObject:V}=n(3168);let j=false;const K=3e3;const ee=0;const te=1;const re=2;const ne="anonymous";const se="use-credentials";class EventSource extends EventTarget{#_={open:null,error:null,message:null};#O=null;#L=false;#F=ee;#M=null;#U=null;#e;#C;constructor(e,t={}){super();p.util.markAsUncloneable(this);const n="EventSource constructor";p.argumentLengthCheck(arguments,1,n);if(!j){j=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}e=p.converters.USVString(e,n,"url");t=p.converters.EventSourceInitDict(t,n,"eventSourceInitDict");this.#e=t.dispatcher;this.#C={lastEventId:"",reconnectionTime:K};const o=V;let i;try{i=new URL(e,o.settingsObject.baseUrl);this.#C.origin=i.origin}catch(e){throw new DOMException(e,"SyntaxError")}this.#O=i.href;let f=ne;if(t.withCredentials){f=se;this.#L=true}const y={redirect:"follow",keepalive:true,mode:"cors",credentials:f==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};y.client=V.settingsObject;y.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];y.cache="no-store";y.initiator="other";y.urlList=[new URL(this.#O)];this.#M=d(y);this.#H()}get readyState(){return this.#F}get url(){return this.#O}get withCredentials(){return this.#L}#H(){if(this.#F===re)return;this.#F=ee;const e={request:this.#M,dispatcher:this.#e};const processEventSourceEndOfBody=e=>{if(D(e)){this.dispatchEvent(new Event("error"));this.close()}this.#G()};e.processResponseEndOfBody=processEventSourceEndOfBody;e.processResponse=e=>{if(D(e)){if(e.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#G();return}}const t=e.headersList.get("content-type",true);const n=t!==null?y(t):"failure";const i=n!=="failure"&&n.essence==="text/event-stream";if(e.status!==200||i===false){this.close();this.dispatchEvent(new Event("error"));return}this.#F=te;this.dispatchEvent(new Event("open"));this.#C.origin=e.urlList[e.urlList.length-1].origin;const d=new f({eventSourceSettings:this.#C,push:e=>{this.dispatchEvent(v(e.type,e.options))}});o(e.body.stream,d,(e=>{if(e?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#U=i(e)}async#G(){if(this.#F===re)return;this.#F=ee;this.dispatchEvent(new Event("error"));await M(this.#C.reconnectionTime);if(this.#F!==ee)return;if(this.#C.lastEventId.length){this.#M.headersList.set("last-event-id",this.#C.lastEventId,true)}this.#H()}close(){p.brandCheck(this,EventSource);if(this.#F===re)return;this.#F=re;this.#U.abort();this.#M=null}get onopen(){return this.#_.open}set onopen(e){if(this.#_.open){this.removeEventListener("open",this.#_.open)}if(typeof e==="function"){this.#_.open=e;this.addEventListener("open",e)}else{this.#_.open=null}}get onmessage(){return this.#_.message}set onmessage(e){if(this.#_.message){this.removeEventListener("message",this.#_.message)}if(typeof e==="function"){this.#_.message=e;this.addEventListener("message",e)}else{this.#_.message=null}}get onerror(){return this.#_.error}set onerror(e){if(this.#_.error){this.removeEventListener("error",this.#_.error)}if(typeof e==="function"){this.#_.error=e;this.addEventListener("error",e)}else{this.#_.error=null}}}const oe={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:ee,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:te,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:re,writable:false}};Object.defineProperties(EventSource,oe);Object.defineProperties(EventSource.prototype,oe);Object.defineProperties(EventSource.prototype,{close:U,onerror:U,onmessage:U,onopen:U,readyState:U,url:U,withCredentials:U});p.converters.EventSourceInitDict=p.dictionaryConverter([{key:"withCredentials",converter:p.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:p.converters.any}]);e.exports={EventSource:EventSource,defaultReconnectionTime:K}},4811:e=>{function isValidLastEventId(e){return e.indexOf("\0")===-1}function isASCIINumber(e){if(e.length===0)return false;for(let t=0;t57)return false}return true}function delay(e){return new Promise((t=>{setTimeout(t,e).unref()}))}e.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(e,t,n)=>{const o=n(3440);const{ReadableStreamFrom:i,isBlobLike:d,isReadableStreamLike:p,readableStreamClose:f,createDeferredPromise:y,fullyReadBody:v,extractMimeType:D,utf8DecodeBytes:M}=n(3168);const{FormData:U}=n(5910);const{kState:V}=n(3627);const{webidl:j}=n(5893);const{Blob:K}=n(4573);const ee=n(4589);const{isErrored:te,isDisturbed:re}=n(7075);const{isArrayBuffer:ne}=n(3429);const{serializeAMimeType:se}=n(1900);const{multipartFormDataParser:oe}=n(116);let ie;try{const e=n(7598);ie=t=>e.randomInt(0,t)}catch{ie=e=>Math.floor(Math.random(e))}const ae=new TextEncoder;function noop(){}const ce=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let le;if(ce){le=new FinalizationRegistry((e=>{const t=e.deref();if(t&&!t.locked&&!re(t)&&!te(t)){t.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(e,t=false){let n=null;if(e instanceof ReadableStream){n=e}else if(d(e)){n=e.stream()}else{n=new ReadableStream({async pull(e){const t=typeof v==="string"?ae.encode(v):v;if(t.byteLength){e.enqueue(t)}queueMicrotask((()=>f(e)))},start(){},type:"bytes"})}ee(p(n));let y=null;let v=null;let D=null;let M=null;if(typeof e==="string"){v=e;M="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){v=e.toString();M="application/x-www-form-urlencoded;charset=UTF-8"}else if(ne(e)){v=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){v=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(o.isFormDataLike(e)){const t=`----formdata-undici-0${`${ie(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data`
-/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);D=0;let d=false;for(const[t,p]of e){if(typeof p==="string"){const e=ae.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);o.push(e);D+=e.byteLength}else{const e=ae.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);o.push(e,p,i);if(typeof p.size==="number"){D+=e.byteLength+p.size+i.byteLength}else{d=true}}}const p=ae.encode(`--${t}--\r\n`);o.push(p);D+=p.byteLength;if(d){D=null}v=e;y=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};M=`multipart/form-data; boundary=${t}`}else if(d(e)){v=e;D=e.size;if(e.type){M=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(o.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof ReadableStream?e:i(e)}if(typeof v==="string"||o.isBuffer(v)){D=Buffer.byteLength(v)}if(y!=null){let t;n=new ReadableStream({async start(){t=y(e)[Symbol.asyncIterator]()},async pull(e){const{value:o,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!te(n)){const t=new Uint8Array(o);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const U={stream:n,source:v,length:D};return[U,M]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){ee(!o.isDisturbed(e),"The body has already been consumed.");ee(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[n,o]=t.stream.tee();t.stream=n;return{stream:o,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=se(t)}return new K([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,M,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const n=oe(e,t);if(n==="failure"){throw new TypeError("Failed to parse body as FormData.")}const o=new U;o[V]=n;return o}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const n=new U;for(const[e,o]of t){n.append(e,o)}return n}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,n){j.brandCheck(e,n);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[V]);const o=y();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[V].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await v(e[V].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){const t=e[V].body;return t!=null&&(t.stream.locked||o.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(M(e))}function bodyMimeType(e){const t=e[V].headersList;const n=D(t);if(n==="failure"){return null}return n}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:le,hasFinalizationRegistry:ce,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const n=new Set(t);const o=[101,204,205,304];const i=[301,302,303,307,308];const d=new Set(i);const p=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const f=new Set(p);const y=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const v=new Set(y);const D=["follow","manual","error"];const M=["GET","HEAD","OPTIONS","TRACE"];const U=new Set(M);const V=["navigate","same-origin","no-cors","cors"];const j=["omit","same-origin","include"];const K=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const ee=["content-encoding","content-language","content-location","content-type","content-length"];const te=["half"];const re=["CONNECT","TRACE","TRACK"];const ne=new Set(re);const se=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const oe=new Set(se);e.exports={subresource:se,forbiddenMethods:re,requestBodyHeader:ee,referrerPolicy:y,requestRedirect:D,requestMode:V,requestCredentials:j,requestCache:K,redirectStatus:i,corsSafeListedMethods:t,nullBodyStatus:o,safeMethods:M,badPorts:p,requestDuplex:te,subresourceSet:oe,badPortsSet:f,redirectStatusSet:d,corsSafeListedMethodsSet:n,safeMethodsSet:U,forbiddenMethodsSet:ne,referrerPolicySet:v}},1900:(e,t,n)=>{const o=n(4589);const i=new TextEncoder;const d=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const p=/[\u000A\u000D\u0009\u0020]/;const f=/[\u0009\u000A\u000C\u000D\u0020]/g;const y=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(e){o(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const n={position:0};let i=collectASequenceOfCodePointsFast(",",t,n);const d=i.length;i=removeASCIIWhitespace(i,true,true);if(n.position>=t.length){return"failure"}n.position++;const p=t.slice(d+1);let f=stringPercentDecode(p);if(/;(\u0020){0,}base64$/i.test(i)){const e=isomorphicDecode(f);f=forgivingBase64(e);if(f==="failure"){return"failure"}i=i.slice(0,-6);i=i.replace(/(\u0020)+$/,"");i=i.slice(0,-1)}if(i.startsWith(";")){i="text/plain"+i}let y=parseMIMEType(i);if(y==="failure"){y=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:y,body:f}}function URLSerializer(e,t=false){if(!t){return e.href}const n=e.href;const o=e.hash.length;const i=o===0?n:n.substring(0,n.length-o);if(!o&&n.endsWith("#")){return i.slice(0,-1)}return i}function collectASequenceOfCodePoints(e,t,n){let o="";while(n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexByteToNumber(e){return e>=48&&e<=57?e-48:(e&223)-55}function percentDecode(e){const t=e.length;const n=new Uint8Array(t);let o=0;for(let i=0;ie.length){return"failure"}t.position++;let o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0||!d.test(o)){return"failure"}const i=n.toLowerCase();const f=o.toLowerCase();const v={type:i,subtype:f,parameters:new Map,essence:`${i}/${f}`};while(t.positionp.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.positione.length){break}let o=null;if(e[t.position]==='"'){o=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0){continue}}if(n.length!==0&&d.test(n)&&(o.length===0||y.test(o))&&!v.parameters.has(n)){v.parameters.set(n,o)}}return v}function forgivingBase64(e){e=e.replace(f,"");let t=e.length;if(t%4===0){if(e.charCodeAt(t-1)===61){--t;if(e.charCodeAt(t-1)===61){--t}}}if(t%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t))){return"failure"}const n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function collectAnHTTPQuotedString(e,t,n){const i=t.position;let d="";o(e[t.position]==='"');t.position++;while(true){d+=collectASequenceOfCodePoints((e=>e!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const n=e[t.position];t.position++;if(n==="\\"){if(t.position>=e.length){d+="\\";break}d+=e[t.position];t.position++}else{o(n==='"');break}}if(n){return d}return e.slice(i,t.position)}function serializeAMimeType(e){o(e!=="failure");const{parameters:t,essence:n}=e;let i=n;for(let[e,n]of t.entries()){i+=";";i+=e;i+="=";if(!d.test(n)){n=n.replace(/(\\|")/g,"\\$1");n='"'+n;n+='"'}i+=n}return i}function isHTTPWhiteSpace(e){return e===13||e===10||e===9||e===32}function removeHTTPWhitespace(e,t=true,n=true){return removeChars(e,t,n,isHTTPWhiteSpace)}function isASCIIWhitespace(e){return e===13||e===10||e===9||e===12||e===32}function removeASCIIWhitespace(e,t=true,n=true){return removeChars(e,t,n,isASCIIWhitespace)}function removeChars(e,t,n,o){let i=0;let d=e.length-1;if(t){while(i0&&o(e.charCodeAt(d)))d--}return i===0&&d===e.length-1?e:e.slice(i,d+1)}function isomorphicDecode(e){const t=e.length;if((2<<15)-1>t){return String.fromCharCode.apply(null,e)}let n="";let o=0;let i=(2<<15)-1;while(ot){i=t-o}n+=String.fromCharCode.apply(null,e.subarray(o,o+=i))}return n}function minimizeSupportedMimeType(e){switch(e.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(e.subtype.endsWith("+json")){return"application/json"}if(e.subtype.endsWith("+xml")){return"application/xml"}return""}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:d,isomorphicDecode:isomorphicDecode}},6653:(e,t,n)=>{const{kConnected:o,kSize:i}=n(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[o]===0&&e[i]===0){this.finalizer(t)}}))}}unregister(e){}}e.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(e,t,n)=>{const{Blob:o,File:i}=n(4573);const{kState:d}=n(3627);const{webidl:p}=n(5893);class FileLike{constructor(e,t,n={}){const o=t;const i=n.type;const p=n.lastModified??Date.now();this[d]={blobLike:e,name:o,type:i,lastModified:p}}stream(...e){p.brandCheck(this,FileLike);return this[d].blobLike.stream(...e)}arrayBuffer(...e){p.brandCheck(this,FileLike);return this[d].blobLike.arrayBuffer(...e)}slice(...e){p.brandCheck(this,FileLike);return this[d].blobLike.slice(...e)}text(...e){p.brandCheck(this,FileLike);return this[d].blobLike.text(...e)}get size(){p.brandCheck(this,FileLike);return this[d].blobLike.size}get type(){p.brandCheck(this,FileLike);return this[d].blobLike.type}get name(){p.brandCheck(this,FileLike);return this[d].name}get lastModified(){p.brandCheck(this,FileLike);return this[d].lastModified}get[Symbol.toStringTag](){return"File"}}p.converters.Blob=p.interfaceConverter(o);function isFileLike(e){return e instanceof i||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(e,t,n)=>{const{isUSVString:o,bufferToLowerCasedHeaderName:i}=n(3440);const{utf8DecodeBytes:d}=n(3168);const{HTTP_TOKEN_CODEPOINTS:p,isomorphicDecode:f}=n(1900);const{isFileLike:y}=n(7114);const{makeEntry:v}=n(5910);const D=n(4589);const{File:M}=n(4573);const U=globalThis.File??M;const V=Buffer.from('form-data; name="');const j=Buffer.from("; filename");const K=Buffer.from("--");const ee=Buffer.from("--\r\n");function isAsciiString(e){for(let t=0;t70){return false}for(let n=0;n=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95)){return false}}return true}function multipartFormDataParser(e,t){D(t!=="failure"&&t.essence==="multipart/form-data");const n=t.parameters.get("boundary");if(n===undefined){return"failure"}const i=Buffer.from(`--${n}`,"utf8");const p=[];const f={position:0};while(e[f.position]===13&&e[f.position+1]===10){f.position+=2}let M=e.length;while(e[M-1]===10&&e[M-2]===13){M-=2}if(M!==e.length){e=e.subarray(0,M)}while(true){if(e.subarray(f.position,f.position+i.length).equals(i)){f.position+=i.length}else{return"failure"}if(f.position===e.length-2&&bufferStartsWith(e,K,f)||f.position===e.length-4&&bufferStartsWith(e,ee,f)){return p}if(e[f.position]!==13||e[f.position+1]!==10){return"failure"}f.position+=2;const t=parseMultipartFormDataHeaders(e,f);if(t==="failure"){return"failure"}let{name:n,filename:M,contentType:V,encoding:j}=t;f.position+=2;let te;{const t=e.indexOf(i.subarray(2),f.position);if(t===-1){return"failure"}te=e.subarray(f.position,t-4);f.position+=te.length;if(j==="base64"){te=Buffer.from(te.toString(),"base64")}}if(e[f.position]!==13||e[f.position+1]!==10){return"failure"}else{f.position+=2}let re;if(M!==null){V??="text/plain";if(!isAsciiString(V)){V=""}re=new U([te],M,{type:V})}else{re=d(Buffer.from(te))}D(o(n));D(typeof re==="string"&&o(re)||y(re));p.push(v(n,re,M))}}function parseMultipartFormDataHeaders(e,t){let n=null;let o=null;let d=null;let y=null;while(true){if(e[t.position]===13&&e[t.position+1]===10){if(n===null){return"failure"}return{name:n,filename:o,contentType:d,encoding:y}}let v=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==58),e,t);v=removeChars(v,true,true,(e=>e===9||e===32));if(!p.test(v.toString())){return"failure"}if(e[t.position]!==58){return"failure"}t.position++;collectASequenceOfBytes((e=>e===32||e===9),e,t);switch(i(v)){case"content-disposition":{n=o=null;if(!bufferStartsWith(e,V,t)){return"failure"}t.position+=17;n=parseMultipartFormDataName(e,t);if(n===null){return"failure"}if(bufferStartsWith(e,j,t)){let n=t.position+j.length;if(e[n]===42){t.position+=1;n+=1}if(e[n]!==61||e[n+1]!==34){return"failure"}t.position+=12;o=parseMultipartFormDataName(e,t);if(o===null){return"failure"}}break}case"content-type":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));d=f(n);break}case"content-transfer-encoding":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));y=f(n);break}default:{collectASequenceOfBytes((e=>e!==10&&e!==13),e,t)}}if(e[t.position]!==13&&e[t.position+1]!==10){return"failure"}else{t.position+=2}}}function parseMultipartFormDataName(e,t){D(e[t.position-1]===34);let n=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==34),e,t);if(e[t.position]!==34){return null}else{t.position++}n=(new TextDecoder).decode(n).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return n}function collectASequenceOfBytes(e,t,n){let o=n.position;while(o0&&o(e[d]))d--}return i===0&&d===e.length-1?e:e.subarray(i,d+1)}function bufferStartsWith(e,t,n){if(e.length{const{isBlobLike:o,iteratorMixin:i}=n(3168);const{kState:d}=n(3627);const{kEnumerableProperty:p}=n(3440);const{FileLike:f,isFileLike:y}=n(7114);const{webidl:v}=n(5893);const{File:D}=n(4573);const M=n(7975);const U=globalThis.File??D;class FormData{constructor(e){v.util.markAsUncloneable(this);if(e!==undefined){throw v.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[d]=[]}append(e,t,n=undefined){v.brandCheck(this,FormData);const i="FormData.append";v.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=v.converters.USVString(e,i,"name");t=o(t)?v.converters.Blob(t,i,"value",{strict:false}):v.converters.USVString(t,i,"value");n=arguments.length===3?v.converters.USVString(n,i,"filename"):undefined;const p=makeEntry(e,t,n);this[d].push(p)}delete(e){v.brandCheck(this,FormData);const t="FormData.delete";v.argumentLengthCheck(arguments,1,t);e=v.converters.USVString(e,t,"name");this[d]=this[d].filter((t=>t.name!==e))}get(e){v.brandCheck(this,FormData);const t="FormData.get";v.argumentLengthCheck(arguments,1,t);e=v.converters.USVString(e,t,"name");const n=this[d].findIndex((t=>t.name===e));if(n===-1){return null}return this[d][n].value}getAll(e){v.brandCheck(this,FormData);const t="FormData.getAll";v.argumentLengthCheck(arguments,1,t);e=v.converters.USVString(e,t,"name");return this[d].filter((t=>t.name===e)).map((e=>e.value))}has(e){v.brandCheck(this,FormData);const t="FormData.has";v.argumentLengthCheck(arguments,1,t);e=v.converters.USVString(e,t,"name");return this[d].findIndex((t=>t.name===e))!==-1}set(e,t,n=undefined){v.brandCheck(this,FormData);const i="FormData.set";v.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=v.converters.USVString(e,i,"name");t=o(t)?v.converters.Blob(t,i,"name",{strict:false}):v.converters.USVString(t,i,"name");n=arguments.length===3?v.converters.USVString(n,i,"name"):undefined;const p=makeEntry(e,t,n);const f=this[d].findIndex((t=>t.name===e));if(f!==-1){this[d]=[...this[d].slice(0,f),p,...this[d].slice(f+1).filter((t=>t.name!==e))]}else{this[d].push(p)}}[M.inspect.custom](e,t){const n=this[d].reduce(((e,t)=>{if(e[t.name]){if(Array.isArray(e[t.name])){e[t.name].push(t.value)}else{e[t.name]=[e[t.name],t.value]}}else{e[t.name]=t.value}return e}),{__proto__:null});t.depth??=e;t.colors??=true;const o=M.formatWithOptions(t,n);return`FormData ${o.slice(o.indexOf("]")+2)}`}}i("FormData",FormData,d,"name","value");Object.defineProperties(FormData.prototype,{append:p,delete:p,get:p,getAll:p,has:p,set:p,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,n){if(typeof t==="string"){}else{if(!y(t)){t=t instanceof Blob?new U([t],"blob",{type:t.type}):new f(t,"blob",{type:t.type})}if(n!==undefined){const e={type:t.type,lastModified:t.lastModified};t=t instanceof D?new U([t],n,e):new f(t,n,e)}}return{name:e,value:t}}e.exports={FormData:FormData,makeEntry:makeEntry}},1059:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`)}Object.defineProperty(globalThis,t,{value:n,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(e,t,n)=>{const{kConstruct:o}=n(6443);const{kEnumerableProperty:i}=n(3440);const{iteratorMixin:d,isValidHeaderName:p,isValidHeaderValue:f}=n(3168);const{webidl:y}=n(5893);const v=n(4589);const D=n(7975);const M=Symbol("headers map");const U=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let n=e.length;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(n-1)))--n;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&n===e.length?e:e.substring(t,n)}function fill(e,t){if(Array.isArray(t)){for(let n=0;n>","record"]})}}function appendHeader(e,t,n){n=headerValueNormalize(n);if(!p(t)){throw y.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!f(n)){throw y.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header value"})}if(V(e)==="immutable"){throw new TypeError("immutable")}return K(e).append(t,n,false)}function compareHeaderName(e,t){return e[0]>1);if(t[f][0]<=y[0]){p=f+1}else{d=f}}if(o!==f){i=o;while(i>p){t[i]=t[--i]}t[p]=y}}if(!n.next().done){throw new TypeError("Unreachable")}return t}else{let e=0;for(const{0:n,1:{value:o}}of this[M]){t[e++]=[n,o];v(o!==null)}return t.sort(compareHeaderName)}}}class Headers{#z;#q;constructor(e=undefined){y.util.markAsUncloneable(this);if(e===o){return}this.#q=new HeadersList;this.#z="none";if(e!==undefined){e=y.converters.HeadersInit(e,"Headers contructor","init");fill(this,e)}}append(e,t){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,2,"Headers.append");const n="Headers.append";e=y.converters.ByteString(e,n,"name");t=y.converters.ByteString(t,n,"value");return appendHeader(this,e,t)}delete(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.delete");const t="Headers.delete";e=y.converters.ByteString(e,t,"name");if(!p(e)){throw y.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this.#z==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(e,false)){return}this.#q.delete(e,false)}get(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.get");const t="Headers.get";e=y.converters.ByteString(e,t,"name");if(!p(e)){throw y.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.get(e,false)}has(e){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,1,"Headers.has");const t="Headers.has";e=y.converters.ByteString(e,t,"name");if(!p(e)){throw y.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.contains(e,false)}set(e,t){y.brandCheck(this,Headers);y.argumentLengthCheck(arguments,2,"Headers.set");const n="Headers.set";e=y.converters.ByteString(e,n,"name");t=y.converters.ByteString(t,n,"value");t=headerValueNormalize(t);if(!p(e)){throw y.errors.invalidArgument({prefix:n,value:e,type:"header name"})}else if(!f(t)){throw y.errors.invalidArgument({prefix:n,value:t,type:"header value"})}if(this.#z==="immutable"){throw new TypeError("immutable")}this.#q.set(e,t,false)}getSetCookie(){y.brandCheck(this,Headers);const e=this.#q.cookies;if(e){return[...e]}return[]}get[U](){if(this.#q[U]){return this.#q[U]}const e=[];const t=this.#q.toSortedArray();const n=this.#q.cookies;if(n===null||n.length===1){return this.#q[U]=t}for(let o=0;o>"](e,t,n,o.bind(e))}return y.converters["record"](e,t,n)}throw y.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:V,setHeadersGuard:j,setHeadersList:ee,getHeadersList:K}},4398:(e,t,n)=>{const{makeNetworkError:o,makeAppropriateNetworkError:i,filterResponse:d,makeResponse:p,fromInnerResponse:f}=n(9051);const{HeadersList:y}=n(660);const{Request:v,cloneRequest:D}=n(9967);const M=n(8522);const{bytesMatch:U,makePolicyContainer:V,clonePolicyContainer:j,requestBadPort:K,TAOCheck:ee,appendRequestOriginHeader:te,responseLocationURL:re,requestCurrentURL:ne,setRequestReferrerPolicyOnRedirect:se,tryUpgradeRequestToAPotentiallyTrustworthyURL:oe,createOpaqueTimingInfo:ie,appendFetchMetadata:ae,corsCheck:ce,crossOriginResourcePolicyCheck:le,determineRequestsReferrer:ue,coarsenedSharedCurrentTime:de,createDeferredPromise:Ae,isBlobLike:pe,sameOrigin:me,isCancelled:ge,isAborted:fe,isErrorLike:he,fullyReadBody:ye,readableStreamClose:Ee,isomorphicEncode:Ce,urlIsLocal:Ie,urlIsHttpHttpsScheme:be,urlHasHttpsScheme:Se,clampAndCoarsenConnectionTimingInfo:Be,simpleRangeHeaderValue:we,buildContentRange:Re,createInflate:Qe,extractMimeType:Ne}=n(3168);const{kState:xe,kDispatcher:Te}=n(3627);const ve=n(4589);const{safelyExtractBody:Pe,extractBody:De}=n(4492);const{redirectStatusSet:ke,nullBodyStatus:_e,safeMethodsSet:Oe,requestBodyHeader:Le,subresourceSet:Fe}=n(4495);const Me=n(8474);const{Readable:Ue,pipeline:He,finished:Ge}=n(7075);const{addAbortListener:ze,isErrored:qe,isReadable:Ve,bufferToLowerCasedHeaderName:$e}=n(3440);const{dataURLProcessor:je,serializeAMimeType:Ye,minimizeSupportedMimeType:Je}=n(1900);const{getGlobalDispatcher:We}=n(2581);const{webidl:Ke}=n(5893);const{STATUS_CODES:Xe}=n(7067);const Ze=["GET","HEAD"];const dt=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let At;class Fetch extends Me{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing"}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function handleFetchDone(e){finalizeAndReportTiming(e,"fetch")}function fetch(e,t=undefined){Ke.argumentLengthCheck(arguments,1,"globalThis.fetch");let n=Ae();let o;try{o=new v(e,t)}catch(e){n.reject(e);return n.promise}const i=o[xe];if(o.signal.aborted){abortFetch(n,i,null,o.signal.reason);return n.promise}const d=i.client.globalObject;if(d?.constructor?.name==="ServiceWorkerGlobalScope"){i.serviceWorkers="none"}let p=null;let y=false;let D=null;ze(o.signal,(()=>{y=true;ve(D!=null);D.abort(o.signal.reason);const e=p?.deref();abortFetch(n,i,e,o.signal.reason)}));const processResponse=e=>{if(y){return}if(e.aborted){abortFetch(n,i,p,D.serializedAbortReason);return}if(e.type==="error"){n.reject(new TypeError("fetch failed",{cause:e.error}));return}p=new WeakRef(f(e,"immutable"));n.resolve(p.deref());n=null};D=fetching({request:i,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:o[Te]});return n.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const n=e.urlList[0];let o=e.timingInfo;let i=e.cacheState;if(!be(n)){return}if(o===null){return}if(!e.timingAllowPassed){o=ie({startTime:o.startTime});i=""}o.endTime=de();e.timingInfo=o;mt(o,n.href,t,globalThis,i)}const mt=performance.markResourceTiming;function abortFetch(e,t,n,o){if(e){e.reject(o)}if(t.body!=null&&Ve(t.body?.stream)){t.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(n==null){return}const i=n[xe];if(i.body!=null&&Ve(i.body?.stream)){i.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseEndOfBody:i,processResponseConsumeBody:d,useParallelQueue:p=false,dispatcher:f=We()}){ve(f);let y=null;let v=false;if(e.client!=null){y=e.client.globalObject;v=e.client.crossOriginIsolatedCapability}const D=de(v);const M=ie({startTime:D});const U={controller:new Fetch(f),request:e,timingInfo:M,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseConsumeBody:d,processResponseEndOfBody:i,taskDestination:y,crossOriginIsolatedCapability:v};ve(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=j(e.client.policyContainer)}else{e.policyContainer=V()}}if(!e.headersList.contains("accept",true)){const t="*/*";e.headersList.append("accept",t,true)}if(!e.headersList.contains("accept-language",true)){e.headersList.append("accept-language","*",true)}if(e.priority===null){}if(Fe.has(e.destination)){}mainFetch(U).catch((e=>{U.controller.terminate(e)}));return U.controller}async function mainFetch(e,t=false){const n=e.request;let i=null;if(n.localURLsOnly&&!Ie(ne(n))){i=o("local URLs only")}oe(n);if(K(n)==="blocked"){i=o("bad port")}if(n.referrerPolicy===""){n.referrerPolicy=n.policyContainer.referrerPolicy}if(n.referrer!=="no-referrer"){n.referrer=ue(n)}if(i===null){i=await(async()=>{const t=ne(n);if(me(t,n.url)&&n.responseTainting==="basic"||t.protocol==="data:"||(n.mode==="navigate"||n.mode==="websocket")){n.responseTainting="basic";return await schemeFetch(e)}if(n.mode==="same-origin"){return o('request mode cannot be "same-origin"')}if(n.mode==="no-cors"){if(n.redirect!=="follow"){return o('redirect mode cannot be "follow" for "no-cors" request')}n.responseTainting="opaque";return await schemeFetch(e)}if(!be(ne(n))){return o("URL scheme must be a HTTP(S) scheme")}n.responseTainting="cors";return await httpFetch(e)})()}if(t){return i}if(i.status!==0&&!i.internalResponse){if(n.responseTainting==="cors"){}if(n.responseTainting==="basic"){i=d(i,"basic")}else if(n.responseTainting==="cors"){i=d(i,"cors")}else if(n.responseTainting==="opaque"){i=d(i,"opaque")}else{ve(false)}}let p=i.status===0?i:i.internalResponse;if(p.urlList.length===0){p.urlList.push(...n.urlList)}if(!n.timingAllowFailed){i.timingAllowPassed=true}if(i.type==="opaque"&&p.status===206&&p.rangeRequested&&!n.headers.contains("range",true)){i=p=o()}if(i.status!==0&&(n.method==="HEAD"||n.method==="CONNECT"||_e.includes(p.status))){p.body=null;e.controller.dump=true}if(n.integrity){const processBodyError=t=>fetchFinale(e,o(t));if(n.responseTainting==="opaque"||i.body==null){processBodyError(i.error);return}const processBody=t=>{if(!U(t,n.integrity)){processBodyError("integrity mismatch");return}i.body=Pe(t)[0];fetchFinale(e,i)};await ye(i.body,processBody,processBodyError)}else{fetchFinale(e,i)}}function schemeFetch(e){if(ge(e)&&e.request.redirectCount===0){return Promise.resolve(i(e))}const{request:t}=e;const{protocol:d}=ne(t);switch(d){case"about:":{return Promise.resolve(o("about scheme is not supported"))}case"blob:":{if(!At){At=n(4573).resolveObjectURL}const e=ne(t);if(e.search.length!==0){return Promise.resolve(o("NetworkError when attempting to fetch resource."))}const i=At(e.toString());if(t.method!=="GET"||!pe(i)){return Promise.resolve(o("invalid method"))}const d=p();const f=i.size;const y=Ce(`${f}`);const v=i.type;if(!t.headersList.contains("range",true)){const e=De(i);d.statusText="OK";d.body=e[0];d.headersList.set("content-length",y,true);d.headersList.set("content-type",v,true)}else{d.rangeRequested=true;const e=t.headersList.get("range",true);const n=we(e,true);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}let{rangeStartValue:p,rangeEndValue:y}=n;if(p===null){p=f-y;y=p+y-1}else{if(p>=f){return Promise.resolve(o("Range start is greater than the blob's size."))}if(y===null||y>=f){y=f-1}}const D=i.slice(p,y,v);const M=De(D);d.body=M[0];const U=Ce(`${D.size}`);const V=Re(p,y,f);d.status=206;d.statusText="Partial Content";d.headersList.set("content-length",U,true);d.headersList.set("content-type",v,true);d.headersList.set("content-range",V,true)}return Promise.resolve(d)}case"data:":{const e=ne(t);const n=je(e);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}const i=Ye(n.mimeType);return Promise.resolve(p({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:Pe(n.body)[0]}))}case"file:":{return Promise.resolve(o("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>o(e)))}default:{return Promise.resolve(o("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){let n=e.timingInfo;const processResponseEndOfBody=()=>{const o=Date.now();if(e.request.destination==="document"){e.controller.fullTimingInfo=n}e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:"){return}n.endTime=o;let i=t.cacheState;const d=t.bodyInfo;if(!t.timingAllowPassed){n=ie(n);i=""}let p=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){p=t.status;const e=Ne(t.headersList);if(e!=="failure"){d.contentType=Je(e)}}if(e.request.initiatorType!=null){mt(n,e.request.url.href,e.request.initiatorType,globalThis,i,d,p)}};const processResponseEndOfBodyTask=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}if(e.request.initiatorType!=null){e.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(e.processResponse!=null){queueMicrotask((()=>{e.processResponse(t);e.processResponse=null}))}const o=t.type==="error"?t:t.internalResponse??t;if(o.body==null){processResponseEndOfBody()}else{Ge(o.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(e){const t=e.request;let n=null;let i=null;const d=e.timingInfo;if(t.serviceWorkers==="all"){}if(n===null){if(t.redirect==="follow"){t.serviceWorkers="none"}i=n=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&ce(t,n)==="failure"){return o("cors failure")}if(ee(t,n)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||n.type==="opaque")&&le(t.origin,t.client,t.destination,i)==="blocked"){return o("blocked")}if(ke.has(i.status)){if(t.redirect!=="manual"){e.controller.connection.destroy(undefined,false)}if(t.redirect==="error"){n=o("unexpected redirect")}else if(t.redirect==="manual"){n=i}else if(t.redirect==="follow"){n=await httpRedirectFetch(e,n)}else{ve(false)}}n.timingInfo=d;return n}function httpRedirectFetch(e,t){const n=e.request;const i=t.internalResponse?t.internalResponse:t;let d;try{d=re(i,ne(n).hash);if(d==null){return t}}catch(e){return Promise.resolve(o(e))}if(!be(d)){return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"))}if(n.redirectCount===20){return Promise.resolve(o("redirect count exceeded"))}n.redirectCount+=1;if(n.mode==="cors"&&(d.username||d.password)&&!me(n,d)){return Promise.resolve(o('cross origin not allowed for request mode "cors"'))}if(n.responseTainting==="cors"&&(d.username||d.password)){return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'))}if(i.status!==303&&n.body!=null&&n.body.source==null){return Promise.resolve(o())}if([301,302].includes(i.status)&&n.method==="POST"||i.status===303&&!Ze.includes(n.method)){n.method="GET";n.body=null;for(const e of Le){n.headersList.delete(e)}}if(!me(ne(n),d)){n.headersList.delete("authorization",true);n.headersList.delete("proxy-authorization",true);n.headersList.delete("cookie",true);n.headersList.delete("host",true)}if(n.body!=null){ve(n.body.source!=null);n.body=Pe(n.body.source)[0]}const p=e.timingInfo;p.redirectEndTime=p.postRedirectStartTime=de(e.crossOriginIsolatedCapability);if(p.redirectStartTime===0){p.redirectStartTime=p.startTime}n.urlList.push(d);se(n,i);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,n=false){const d=e.request;let p=null;let f=null;let y=null;const v=null;const M=false;if(d.window==="no-window"&&d.redirect==="error"){p=e;f=d}else{f=D(d);p={...e};p.request=f}const U=d.credentials==="include"||d.credentials==="same-origin"&&d.responseTainting==="basic";const V=f.body?f.body.length:null;let j=null;if(f.body==null&&["POST","PUT"].includes(f.method)){j="0"}if(V!=null){j=Ce(`${V}`)}if(j!=null){f.headersList.append("content-length",j,true)}if(V!=null&&f.keepalive){}if(f.referrer instanceof URL){f.headersList.append("referer",Ce(f.referrer.href),true)}te(f);ae(f);if(!f.headersList.contains("user-agent",true)){f.headersList.append("user-agent",dt)}if(f.cache==="default"&&(f.headersList.contains("if-modified-since",true)||f.headersList.contains("if-none-match",true)||f.headersList.contains("if-unmodified-since",true)||f.headersList.contains("if-match",true)||f.headersList.contains("if-range",true))){f.cache="no-store"}if(f.cache==="no-cache"&&!f.preventNoCacheCacheControlHeaderModification&&!f.headersList.contains("cache-control",true)){f.headersList.append("cache-control","max-age=0",true)}if(f.cache==="no-store"||f.cache==="reload"){if(!f.headersList.contains("pragma",true)){f.headersList.append("pragma","no-cache",true)}if(!f.headersList.contains("cache-control",true)){f.headersList.append("cache-control","no-cache",true)}}if(f.headersList.contains("range",true)){f.headersList.append("accept-encoding","identity",true)}if(!f.headersList.contains("accept-encoding",true)){if(Se(ne(f))){f.headersList.append("accept-encoding","br, gzip, deflate",true)}else{f.headersList.append("accept-encoding","gzip, deflate",true)}}f.headersList.delete("host",true);if(U){}if(v==null){f.cache="no-store"}if(f.cache!=="no-store"&&f.cache!=="reload"){}if(y==null){if(f.cache==="only-if-cached"){return o("only if cached")}const e=await httpNetworkFetch(p,U,n);if(!Oe.has(f.method)&&e.status>=200&&e.status<=399){}if(M&&e.status===304){}if(y==null){y=e}}y.urlList=[...f.urlList];if(f.headersList.contains("range",true)){y.rangeRequested=true}y.requestIncludesCredentials=U;if(y.status===407){if(d.window==="no-window"){return o()}if(ge(e)){return i(e)}return o("proxy authentication required")}if(y.status===421&&!n&&(d.body==null||d.body.source!=null)){if(ge(e)){return i(e)}e.controller.connection.destroy();y=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return y}async function httpNetworkFetch(e,t=false,n=false){ve(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e,t=true){if(!this.destroyed){this.destroyed=true;if(t){this.abort?.(e??new DOMException("The operation was aborted.","AbortError"))}}}};const d=e.request;let f=null;const v=e.timingInfo;const D=null;if(D==null){d.cache="no-store"}const U=n?"yes":"no";if(d.mode==="websocket"){}else{}let V=null;if(d.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(d.body!=null){const processBodyChunk=async function*(t){if(ge(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(ge(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(ge(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};V=async function*(){try{for await(const e of d.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:n,statusText:o,headersList:i,socket:d}=await dispatch({body:V});if(d){f=p({status:n,statusText:o,headersList:i,socket:d})}else{const d=t[Symbol.asyncIterator]();e.controller.next=()=>d.next();f=p({status:n,statusText:o,headersList:i})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return i(e,t)}return o(t)}const pullAlgorithm=async()=>{await e.controller.resume()};const cancelAlgorithm=t=>{if(!ge(e)){e.controller.abort(t)}};const j=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)},type:"bytes"});f.body={stream:j,source:null,length:null};e.controller.onAborted=onAborted;e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let n;try{const{done:n,value:o}=await e.controller.next();if(fe(e)){break}t=n?undefined:o}catch(o){if(e.controller.ended&&!v.encodedBodySize){t=undefined}else{t=o;n=true}}if(t===undefined){Ee(e.controller.controller);finalizeResponse(e,f);return}v.decodedBodySize+=t?.byteLength??0;if(n){e.controller.terminate(t);return}const o=new Uint8Array(t);if(o.byteLength){e.controller.controller.enqueue(o)}if(qe(j)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0){return}}};function onAborted(t){if(fe(e)){f.aborted=true;if(Ve(j)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(Ve(j)){e.controller.controller.error(new TypeError("terminated",{cause:he(t)?t:undefined}))}}e.controller.connection.destroy()}return f;function dispatch({body:t}){const n=ne(d);const o=e.controller.dispatcher;return new Promise(((i,p)=>o.dispatch({path:n.pathname+n.search,origin:n.origin,method:d.method,body:o.isMockActive?d.body&&(d.body.source||d.body.stream):t,headers:d.headersList.entries,maxRedirections:0,upgrade:d.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;v.finalConnectionTimingInfo=Be(undefined,v.postRedirectStartTime,e.crossOriginIsolatedCapability);if(n.destroyed){t(new DOMException("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=n.abort=t}v.finalNetworkRequestStartTime=de(e.crossOriginIsolatedCapability)},onResponseStarted(){v.finalNetworkResponseStartTime=de(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,o){if(e<200){return}let f="";const v=new y;for(let e=0;en){p(new Error(`too many content-encodings in response: ${t.length}, maximum allowed is ${n}`));return true}for(let e=t.length-1;e>=0;--e){const n=t[e].trim();if(n==="x-gzip"||n==="gzip"){D.push(M.createGunzip({flush:M.constants.Z_SYNC_FLUSH,finishFlush:M.constants.Z_SYNC_FLUSH}))}else if(n==="deflate"){D.push(Qe({flush:M.constants.Z_SYNC_FLUSH,finishFlush:M.constants.Z_SYNC_FLUSH}))}else if(n==="br"){D.push(M.createBrotliDecompress({flush:M.constants.BROTLI_OPERATION_FLUSH,finishFlush:M.constants.BROTLI_OPERATION_FLUSH}))}else{D.length=0;break}}}const V=this.onError.bind(this);i({status:e,statusText:o,headersList:v,body:D.length?He(this.body,...D,(e=>{if(e){this.onError(e)}})).on("error",V):this.body.on("error",V)});return true},onData(t){if(e.controller.dump){return}const n=t;v.encodedBodySize+=n.byteLength;return this.body.push(n)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}if(e.controller.onAborted){e.controller.off("terminated",e.controller.onAborted)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);p(t)},onUpgrade(e,t,n){if(e!==101){return}const o=new y;for(let e=0;e{const{extractBody:o,mixinBody:i,cloneBody:d,bodyUnusable:p}=n(4492);const{Headers:f,fill:y,HeadersList:v,setHeadersGuard:D,getHeadersGuard:M,setHeadersList:U,getHeadersList:V}=n(660);const{FinalizationRegistry:j}=n(6653)();const K=n(3440);const ee=n(7975);const{isValidHTTPToken:te,sameOrigin:re,environmentSettingsObject:ne}=n(3168);const{forbiddenMethodsSet:se,corsSafeListedMethodsSet:oe,referrerPolicy:ie,requestRedirect:ae,requestMode:ce,requestCredentials:le,requestCache:ue,requestDuplex:de}=n(4495);const{kEnumerableProperty:Ae,normalizedMethodRecordsBase:pe,normalizedMethodRecords:me}=K;const{kHeaders:ge,kSignal:fe,kState:he,kDispatcher:ye}=n(3627);const{webidl:Ee}=n(5893);const{URLSerializer:Ce}=n(1900);const{kConstruct:Ie}=n(6443);const be=n(4589);const{getMaxListeners:Se,setMaxListeners:Be,getEventListeners:we,defaultMaxListeners:Re}=n(8474);const Qe=Symbol("abortController");const Ne=new j((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));const xe=new WeakMap;function buildAbort(e){return abort;function abort(){const t=e.deref();if(t!==undefined){Ne.unregister(abort);this.removeEventListener("abort",abort);t.abort(this.reason);const e=xe.get(t.signal);if(e!==undefined){if(e.size!==0){for(const t of e){const e=t.deref();if(e!==undefined){e.abort(this.reason)}}e.clear()}xe.delete(t.signal)}}}}let Te=false;class Request{constructor(e,t={}){Ee.util.markAsUncloneable(this);if(e===Ie){return}const n="Request constructor";Ee.argumentLengthCheck(arguments,1,n);e=Ee.converters.RequestInfo(e,n,"input");t=Ee.converters.RequestInit(t,n,"init");let i=null;let d=null;const M=ne.settingsObject.baseUrl;let j=null;if(typeof e==="string"){this[ye]=t.dispatcher;let n;try{n=new URL(e,M)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(n.username||n.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}i=makeRequest({urlList:[n]});d="cors"}else{this[ye]=t.dispatcher||e[ye];be(e instanceof Request);i=e[he];j=e[fe]}const ee=ne.settingsObject.origin;let ie="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&re(i.window,ee)){ie=i.window}if(t.window!=null){throw new TypeError(`'window' option '${ie}' must be null`)}if("window"in t){ie="no-window"}i=makeRequest({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:ne.settingsObject,window:ie,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});const ae=Object.keys(t).length!==0;if(ae){if(i.mode==="navigate"){i.mode="same-origin"}i.reloadNavigation=false;i.historyNavigation=false;i.origin="client";i.referrer="client";i.referrerPolicy="";i.url=i.urlList[i.urlList.length-1];i.urlList=[i.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){i.referrer="no-referrer"}else{let t;try{t=new URL(e,M)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||ee&&!re(t,ne.settingsObject.baseUrl)){i.referrer="client"}else{i.referrer=t}}}if(t.referrerPolicy!==undefined){i.referrerPolicy=t.referrerPolicy}let ce;if(t.mode!==undefined){ce=t.mode}else{ce=d}if(ce==="navigate"){throw Ee.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(ce!=null){i.mode=ce}if(t.credentials!==undefined){i.credentials=t.credentials}if(t.cache!==undefined){i.cache=t.cache}if(i.cache==="only-if-cached"&&i.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){i.redirect=t.redirect}if(t.integrity!=null){i.integrity=String(t.integrity)}if(t.keepalive!==undefined){i.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;const n=me[e];if(n!==undefined){i.method=n}else{if(!te(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}const t=e.toUpperCase();if(se.has(t)){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=pe[t]??e;i.method=e}if(!Te&&i.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});Te=true}}if(t.signal!==undefined){j=t.signal}this[he]=i;const le=new AbortController;this[fe]=le.signal;if(j!=null){if(!j||typeof j.aborted!=="boolean"||typeof j.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(j.aborted){le.abort(j.reason)}else{this[Qe]=le;const e=new WeakRef(le);const t=buildAbort(e);try{if(typeof Se==="function"&&Se(j)===Re){Be(1500,j)}else if(we(j,"abort").length>=Re){Be(1500,j)}}catch{}K.addAbortListener(j,t);Ne.register(le,{signal:j,abort:t},t)}}this[ge]=new f(Ie);U(this[ge],i.headersList);D(this[ge],"request");if(ce==="no-cors"){if(!oe.has(i.method)){throw new TypeError(`'${i.method} is unsupported in no-cors mode.`)}D(this[ge],"request-no-cors")}if(ae){const e=V(this[ge]);const n=t.headers!==undefined?t.headers:new v(e);e.clear();if(n instanceof v){for(const{name:t,value:o}of n.rawValues()){e.append(t,o,false)}e.cookies=n.cookies}else{y(this[ge],n)}}const ue=e instanceof Request?e[he].body:null;if((t.body!=null||ue!=null)&&(i.method==="GET"||i.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let de=null;if(t.body!=null){const[e,n]=o(t.body,i.keepalive);de=e;if(n&&!V(this[ge]).contains("content-type",true)){this[ge].append("content-type",n)}}const Ae=de??ue;if(Ae!=null&&Ae.source==null){if(de!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(i.mode!=="same-origin"&&i.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}i.useCORSPreflightFlag=true}let Ce=Ae;if(de==null&&ue!=null){if(p(e)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const t=new TransformStream;ue.stream.pipeThrough(t);Ce={source:ue.source,length:ue.length,stream:t.readable}}this[he].body=Ce}get method(){Ee.brandCheck(this,Request);return this[he].method}get url(){Ee.brandCheck(this,Request);return Ce(this[he].url)}get headers(){Ee.brandCheck(this,Request);return this[ge]}get destination(){Ee.brandCheck(this,Request);return this[he].destination}get referrer(){Ee.brandCheck(this,Request);if(this[he].referrer==="no-referrer"){return""}if(this[he].referrer==="client"){return"about:client"}return this[he].referrer.toString()}get referrerPolicy(){Ee.brandCheck(this,Request);return this[he].referrerPolicy}get mode(){Ee.brandCheck(this,Request);return this[he].mode}get credentials(){return this[he].credentials}get cache(){Ee.brandCheck(this,Request);return this[he].cache}get redirect(){Ee.brandCheck(this,Request);return this[he].redirect}get integrity(){Ee.brandCheck(this,Request);return this[he].integrity}get keepalive(){Ee.brandCheck(this,Request);return this[he].keepalive}get isReloadNavigation(){Ee.brandCheck(this,Request);return this[he].reloadNavigation}get isHistoryNavigation(){Ee.brandCheck(this,Request);return this[he].historyNavigation}get signal(){Ee.brandCheck(this,Request);return this[fe]}get body(){Ee.brandCheck(this,Request);return this[he].body?this[he].body.stream:null}get bodyUsed(){Ee.brandCheck(this,Request);return!!this[he].body&&K.isDisturbed(this[he].body.stream)}get duplex(){Ee.brandCheck(this,Request);return"half"}clone(){Ee.brandCheck(this,Request);if(p(this)){throw new TypeError("unusable")}const e=cloneRequest(this[he]);const t=new AbortController;if(this.signal.aborted){t.abort(this.signal.reason)}else{let e=xe.get(this.signal);if(e===undefined){e=new Set;xe.set(this.signal,e)}const n=new WeakRef(t);e.add(n);K.addAbortListener(t.signal,buildAbort(n))}return fromInnerRequest(e,t.signal,M(this[ge]))}[ee.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${ee.formatWithOptions(t,n)}`}}i(Request);function makeRequest(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??false,unsafeRequest:e.unsafeRequest??false,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??false,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??false,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??false,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??false,historyNavigation:e.historyNavigation??false,userActivation:e.userActivation??false,taintedOrigin:e.taintedOrigin??false,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??false,done:e.done??false,timingAllowFailed:e.timingAllowFailed??false,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new v(e.headersList):new v}}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=d(t,e.body)}return t}function fromInnerRequest(e,t,n){const o=new Request(Ie);o[he]=e;o[fe]=t;o[ge]=new f(Ie);U(o[ge],e.headersList);D(o[ge],n);return o}Object.defineProperties(Request.prototype,{method:Ae,url:Ae,headers:Ae,redirect:Ae,clone:Ae,signal:Ae,duplex:Ae,destination:Ae,body:Ae,bodyUsed:Ae,isHistoryNavigation:Ae,isReloadNavigation:Ae,keepalive:Ae,integrity:Ae,cache:Ae,credentials:Ae,attribute:Ae,referrerPolicy:Ae,referrer:Ae,mode:Ae,[Symbol.toStringTag]:{value:"Request",configurable:true}});Ee.converters.Request=Ee.interfaceConverter(Request);Ee.converters.RequestInfo=function(e,t,n){if(typeof e==="string"){return Ee.converters.USVString(e,t,n)}if(e instanceof Request){return Ee.converters.Request(e,t,n)}return Ee.converters.USVString(e,t,n)};Ee.converters.AbortSignal=Ee.interfaceConverter(AbortSignal);Ee.converters.RequestInit=Ee.dictionaryConverter([{key:"method",converter:Ee.converters.ByteString},{key:"headers",converter:Ee.converters.HeadersInit},{key:"body",converter:Ee.nullableConverter(Ee.converters.BodyInit)},{key:"referrer",converter:Ee.converters.USVString},{key:"referrerPolicy",converter:Ee.converters.DOMString,allowedValues:ie},{key:"mode",converter:Ee.converters.DOMString,allowedValues:ce},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:le},{key:"cache",converter:Ee.converters.DOMString,allowedValues:ue},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:ae},{key:"integrity",converter:Ee.converters.DOMString},{key:"keepalive",converter:Ee.converters.boolean},{key:"signal",converter:Ee.nullableConverter((e=>Ee.converters.AbortSignal(e,"RequestInit","signal",{strict:false})))},{key:"window",converter:Ee.converters.any},{key:"duplex",converter:Ee.converters.DOMString,allowedValues:de},{key:"dispatcher",converter:Ee.converters.any}]);e.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(e,t,n)=>{const{Headers:o,HeadersList:i,fill:d,getHeadersGuard:p,setHeadersGuard:f,setHeadersList:y}=n(660);const{extractBody:v,cloneBody:D,mixinBody:M,hasFinalizationRegistry:U,streamRegistry:V,bodyUnusable:j}=n(4492);const K=n(3440);const ee=n(7975);const{kEnumerableProperty:te}=K;const{isValidReasonPhrase:re,isCancelled:ne,isAborted:se,isBlobLike:oe,serializeJavascriptValueToJSONString:ie,isErrorLike:ae,isomorphicEncode:ce,environmentSettingsObject:le}=n(3168);const{redirectStatusSet:ue,nullBodyStatus:de}=n(4495);const{kState:Ae,kHeaders:pe}=n(3627);const{webidl:me}=n(5893);const{FormData:ge}=n(5910);const{URLSerializer:fe}=n(1900);const{kConstruct:he}=n(6443);const ye=n(4589);const{types:Ee}=n(7975);const Ce=new TextEncoder("utf-8");class Response{static error(){const e=fromInnerResponse(makeNetworkError(),"immutable");return e}static json(e,t={}){me.argumentLengthCheck(arguments,1,"Response.json");if(t!==null){t=me.converters.ResponseInit(t)}const n=Ce.encode(ie(e));const o=v(n);const i=fromInnerResponse(makeResponse({}),"response");initializeResponse(i,t,{body:o[0],type:"application/json"});return i}static redirect(e,t=302){me.argumentLengthCheck(arguments,1,"Response.redirect");e=me.converters.USVString(e);t=me.converters["unsigned short"](t);let n;try{n=new URL(e,le.settingsObject.baseUrl)}catch(t){throw new TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!ue.has(t)){throw new RangeError(`Invalid status code ${t}`)}const o=fromInnerResponse(makeResponse({}),"immutable");o[Ae].status=t;const i=ce(fe(n));o[Ae].headersList.append("location",i,true);return o}constructor(e=null,t={}){me.util.markAsUncloneable(this);if(e===he){return}if(e!==null){e=me.converters.BodyInit(e)}t=me.converters.ResponseInit(t);this[Ae]=makeResponse({});this[pe]=new o(he);f(this[pe],"response");y(this[pe],this[Ae].headersList);let n=null;if(e!=null){const[t,o]=v(e);n={body:t,type:o}}initializeResponse(this,t,n)}get type(){me.brandCheck(this,Response);return this[Ae].type}get url(){me.brandCheck(this,Response);const e=this[Ae].urlList;const t=e[e.length-1]??null;if(t===null){return""}return fe(t,true)}get redirected(){me.brandCheck(this,Response);return this[Ae].urlList.length>1}get status(){me.brandCheck(this,Response);return this[Ae].status}get ok(){me.brandCheck(this,Response);return this[Ae].status>=200&&this[Ae].status<=299}get statusText(){me.brandCheck(this,Response);return this[Ae].statusText}get headers(){me.brandCheck(this,Response);return this[pe]}get body(){me.brandCheck(this,Response);return this[Ae].body?this[Ae].body.stream:null}get bodyUsed(){me.brandCheck(this,Response);return!!this[Ae].body&&K.isDisturbed(this[Ae].body.stream)}clone(){me.brandCheck(this,Response);if(j(this)){throw me.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[Ae]);if(U&&this[Ae].body?.stream){V.register(this,new WeakRef(this[Ae].body.stream))}return fromInnerResponse(e,p(this[pe]))}[ee.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${ee.formatWithOptions(t,n)}`}}M(Response);Object.defineProperties(Response.prototype,{type:te,url:te,status:te,ok:te,redirected:te,statusText:te,headers:te,clone:te,body:te,bodyUsed:te,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:te,redirect:te,error:te});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=D(t,e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new i(e?.headersList):new i,urlList:e?.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=ae(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function isNetworkError(e){return e.type==="error"&&e.status===0}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,o){ye(!(n in t));e[n]=o;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{ye(false)}}function makeAppropriateNetworkError(e,t=null){ye(ne(e));return se(e)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,n){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!re(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[Ae].status=t.status}if("statusText"in t&&t.statusText!=null){e[Ae].statusText=t.statusText}if("headers"in t&&t.headers!=null){d(e[pe],t.headers)}if(n){if(de.includes(e.status)){throw me.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`})}e[Ae].body=n.body;if(n.type!=null&&!e[Ae].headersList.contains("content-type",true)){e[Ae].headersList.append("content-type",n.type,true)}}}function fromInnerResponse(e,t){const n=new Response(he);n[Ae]=e;n[pe]=new o(he);y(n[pe],e.headersList);f(n[pe],t);if(U&&e.body?.stream){V.register(n,new WeakRef(e.body.stream))}return n}me.converters.ReadableStream=me.interfaceConverter(ReadableStream);me.converters.FormData=me.interfaceConverter(ge);me.converters.URLSearchParams=me.interfaceConverter(URLSearchParams);me.converters.XMLHttpRequestBodyInit=function(e,t,n){if(typeof e==="string"){return me.converters.USVString(e,t,n)}if(oe(e)){return me.converters.Blob(e,t,n,{strict:false})}if(ArrayBuffer.isView(e)||Ee.isArrayBuffer(e)){return me.converters.BufferSource(e,t,n)}if(K.isFormDataLike(e)){return me.converters.FormData(e,t,n,{strict:false})}if(e instanceof URLSearchParams){return me.converters.URLSearchParams(e,t,n)}return me.converters.DOMString(e,t,n)};me.converters.BodyInit=function(e,t,n){if(e instanceof ReadableStream){return me.converters.ReadableStream(e,t,n)}if(e?.[Symbol.asyncIterator]){return e}return me.converters.XMLHttpRequestBodyInit(e,t,n)};me.converters.ResponseInit=me.dictionaryConverter([{key:"status",converter:me.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:me.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:me.converters.HeadersInit}]);e.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(e,t,n)=>{const{Transform:o}=n(7075);const i=n(8522);const{redirectStatusSet:d,referrerPolicySet:p,badPortsSet:f}=n(4495);const{getGlobalOrigin:y}=n(1059);const{collectASequenceOfCodePoints:v,collectAnHTTPQuotedString:D,removeChars:M,parseMIMEType:U}=n(1900);const{performance:V}=n(643);const{isBlobLike:j,ReadableStreamFrom:K,isValidHTTPToken:ee,normalizedMethodRecordsBase:te}=n(3440);const re=n(4589);const{isUint8Array:ne}=n(3429);const{webidl:se}=n(5893);let oe=[];let ie;try{ie=n(7598);const e=["sha256","sha384","sha512"];oe=ie.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const n=t.length;return n===0?null:t[n-1].toString()}function responseLocationURL(e,t){if(!d.has(e.status)){return null}let n=e.headersList.get("location",true);if(n!==null&&isValidHeaderValue(n)){if(!isValidEncodedURL(n)){n=normalizeBinaryStringToUtf8(n)}n=new URL(n,responseURL(e))}if(n&&!n.hash){n.hash=t}return n}function isValidEncodedURL(e){for(let t=0;t126||n<32){return false}}return true}function normalizeBinaryStringToUtf8(e){return Buffer.from(e,"binary").toString("utf8")}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&f.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255)){return false}}return true}const ae=ee;function isValidHeaderValue(e){return(e[0]==="\t"||e[0]===" "||e[e.length-1]==="\t"||e[e.length-1]===" "||e.includes("\n")||e.includes("\r")||e.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(e,t){const{headersList:n}=t;const o=(n.get("referrer-policy",true)??"").split(",");let i="";if(o.length>0){for(let e=o.length;e!==0;e--){const t=o[e-1].trim();if(p.has(t)){i=t;break}}}if(i!==""){e.referrerPolicy=i}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t,true)}function appendRequestOriginHeader(e){let t=e.origin;if(t==="client"||t===undefined){return}if(e.responseTainting==="cors"||e.mode==="websocket"){e.headersList.append("origin",t,true)}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}e.headersList.append("origin",t,true)}}function coarsenTime(e,t){return e}function clampAndCoarsenConnectionTimingInfo(e,t,n){if(!e?.startTime||e.startTime4096){o=i}const d=sameOrigin(e,o);const p=isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return i!=null?i:stripURLForReferrer(n,true);case"unsafe-url":return o;case"same-origin":return d?i:"no-referrer";case"origin-when-cross-origin":return d?o:i;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(o,t)){return o}if(isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return i}case"strict-origin":case"no-referrer-when-downgrade":default:return p?"no-referrer":i}}function stripURLForReferrer(e,t){re(e instanceof URL);e=new URL(e);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(ie===undefined){return true}const n=parseMetadata(t);if(n==="no metadata"){return true}if(n.length===0){return true}const o=getStrongestMetadata(n);const i=filterMetadataListByAlgorithm(n,o);for(const t of i){const n=t.algo;const o=t.hash;let i=ie.createHash(n).update(e).digest("base64");if(i[i.length-1]==="="){if(i[i.length-2]==="="){i=i.slice(0,-2)}else{i=i.slice(0,-1)}}if(compareBase64Mixed(i,o)){return true}}return false}const ce=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let n=true;for(const o of e.split(" ")){n=false;const e=ce.exec(o);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const i=e.groups.algo.toLowerCase();if(oe.includes(i)){t.push(e.groups)}}if(n===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let n=1;n{e=n;t=o}));return{promise:n,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function normalizeMethod(e){return te[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}re(typeof t==="string");return t}const le=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(e,t,n=0,o=1){class FastIterableIterator{#V;#$;#j;constructor(e,t){this.#V=e;this.#$=t;this.#j=0}next(){if(typeof this!=="object"||this===null||!(#V in this)){throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`)}const i=this.#j;const d=this.#V[t];const p=d.length;if(i>=p){return{value:undefined,done:true}}const{[n]:f,[o]:y}=d[i];this.#j=i+1;let v;switch(this.#$){case"key":v=f;break;case"value":v=y;break;case"key+value":v=[f,y];break}return{value:v,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,le);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${e} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(e,t){return new FastIterableIterator(e,t)}}function iteratorMixin(e,t,n,o=0,i=1){const d=createIterator(e,n,o,i);const p={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){se.brandCheck(this,t);return d(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){se.brandCheck(this,t);return d(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){se.brandCheck(this,t);return d(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(n,o=globalThis){se.brandCheck(this,t);se.argumentLengthCheck(arguments,1,`${e}.forEach`);if(typeof n!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`)}for(const{0:e,1:t}of d(this,"key+value")){n.call(o,t,e,this)}}}};return Object.defineProperties(t.prototype,{...p,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:p.entries.value}})}async function fullyReadBody(e,t,n){const o=t;const i=n;let d;try{d=e.stream.getReader()}catch(e){i(e);return}try{o(await readAllBytes(d))}catch(e){i(e)}}function isReadableStreamLike(e){return e instanceof ReadableStream||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}function readableStreamClose(e){try{e.close();e.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed")){throw e}}}const ue=/[^\x00-\xFF]/;function isomorphicEncode(e){re(!ue.test(e));return e}async function readAllBytes(e){const t=[];let n=0;while(true){const{done:o,value:i}=await e.read();if(o){return Buffer.concat(t,n)}if(!ne(i)){throw new TypeError("Received non-Uint8Array chunk")}t.push(i);n+=i.length}}function urlIsLocal(e){re("protocol"in e);const t=e.protocol;return t==="about:"||t==="blob:"||t==="data:"}function urlHasHttpsScheme(e){return typeof e==="string"&&e[5]===":"&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&e[4]==="s"||e.protocol==="https:"}function urlIsHttpHttpsScheme(e){re("protocol"in e);const t=e.protocol;return t==="http:"||t==="https:"}function simpleRangeHeaderValue(e,t){const n=e;if(!n.startsWith("bytes")){return"failure"}const o={position:5};if(t){v((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==61){return"failure"}o.position++;if(t){v((e=>e==="\t"||e===" "),n,o)}const i=v((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const d=i.length?Number(i):null;if(t){v((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==45){return"failure"}o.position++;if(t){v((e=>e==="\t"||e===" "),n,o)}const p=v((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const f=p.length?Number(p):null;if(o.positionf){return"failure"}return{rangeStartValue:d,rangeEndValue:f}}function buildContentRange(e,t,n){let o="bytes ";o+=isomorphicEncode(`${e}`);o+="-";o+=isomorphicEncode(`${t}`);o+="/";o+=isomorphicEncode(`${n}`);return o}class InflateStream extends o{#Y;constructor(e){super();this.#Y=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?i.createInflate(this.#Y):i.createInflateRaw(this.#Y);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(e=>this.destroy(e)))}this._inflateStream.write(e,t,n)}_final(e){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}e()}}function createInflate(e){return new InflateStream(e)}function extractMimeType(e){let t=null;let n=null;let o=null;const i=getDecodeSplit("content-type",e);if(i===null){return"failure"}for(const e of i){const i=U(e);if(i==="failure"||i.essence==="*/*"){continue}o=i;if(o.essence!==n){t=null;if(o.parameters.has("charset")){t=o.parameters.get("charset")}n=o.essence}else if(!o.parameters.has("charset")&&t!==null){o.parameters.set("charset",t)}}if(o==null){return"failure"}return o}function gettingDecodingSplitting(e){const t=e;const n={position:0};const o=[];let i="";while(n.positione!=='"'&&e!==","),t,n);if(n.positione===9||e===32));o.push(i);i=""}return o}function getDecodeSplit(e,t){const n=t.get(e,true);if(n===null){return null}return gettingDecodingSplitting(n)}const de=new TextDecoder;function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=de.decode(e);return t}class EnvironmentSettingsObjectBase{get baseUrl(){return y()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const Ae=new EnvironmentSettingsObject;e.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:K,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:ee,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:j,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:ae,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:Ae}},5893:(e,t,n)=>{const{types:o,inspect:i}=n(7975);const{markAsUncloneable:d}=n(5919);const{toUSVString:p}=n(3440);const f={};f.converters={};f.util={};f.errors={};f.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};f.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const n=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return f.errors.exception({header:e.prefix,message:n})};f.errors.invalidArgument=function(e){return f.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};f.brandCheck=function(e,t,n){if(n?.strict!==false){if(!(e instanceof t)){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}else{if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}};f.argumentLengthCheck=function({length:e},t,n){if(e{});f.util.ConvertToInt=function(e,t,n,o){let i;let d;if(t===64){i=Math.pow(2,53)-1;if(n==="unsigned"){d=0}else{d=Math.pow(-2,53)+1}}else if(n==="unsigned"){d=0;i=Math.pow(2,t)-1}else{d=Math.pow(-2,t)-1;i=Math.pow(2,t-1)-1}let p=Number(e);if(p===0){p=0}if(o?.enforceRange===true){if(Number.isNaN(p)||p===Number.POSITIVE_INFINITY||p===Number.NEGATIVE_INFINITY){throw f.errors.exception({header:"Integer conversion",message:`Could not convert ${f.util.Stringify(e)} to an integer.`})}p=f.util.IntegerPart(p);if(pi){throw f.errors.exception({header:"Integer conversion",message:`Value must be between ${d}-${i}, got ${p}.`})}return p}if(!Number.isNaN(p)&&o?.clamp===true){p=Math.min(Math.max(p,d),i);if(Math.floor(p)%2===0){p=Math.floor(p)}else{p=Math.ceil(p)}return p}if(Number.isNaN(p)||p===0&&Object.is(0,p)||p===Number.POSITIVE_INFINITY||p===Number.NEGATIVE_INFINITY){return 0}p=f.util.IntegerPart(p);p=p%Math.pow(2,t);if(n==="signed"&&p>=Math.pow(2,t)-1){return p-Math.pow(2,t)}return p};f.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};f.util.Stringify=function(e){const t=f.util.Type(e);switch(t){case"Symbol":return`Symbol(${e.description})`;case"Object":return i(e);case"String":return`"${e}"`;default:return`${e}`}};f.sequenceConverter=function(e){return(t,n,o,i)=>{if(f.util.Type(t)!=="Object"){throw f.errors.exception({header:n,message:`${o} (${f.util.Stringify(t)}) is not iterable.`})}const d=typeof i==="function"?i():t?.[Symbol.iterator]?.();const p=[];let y=0;if(d===undefined||typeof d.next!=="function"){throw f.errors.exception({header:n,message:`${o} is not iterable.`})}while(true){const{done:t,value:i}=d.next();if(t){break}p.push(e(i,n,`${o}[${y++}]`))}return p}};f.recordConverter=function(e,t){return(n,i,d)=>{if(f.util.Type(n)!=="Object"){throw f.errors.exception({header:i,message:`${d} ("${f.util.Type(n)}") is not an Object.`})}const p={};if(!o.isProxy(n)){const o=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const f of o){const o=e(f,i,d);const y=t(n[f],i,d);p[o]=y}return p}const y=Reflect.ownKeys(n);for(const o of y){const f=Reflect.getOwnPropertyDescriptor(n,o);if(f?.enumerable){const f=e(o,i,d);const y=t(n[o],i,d);p[f]=y}}return p}};f.interfaceConverter=function(e){return(t,n,o,i)=>{if(i?.strict!==false&&!(t instanceof e)){throw f.errors.exception({header:n,message:`Expected ${o} ("${f.util.Stringify(t)}") to be an instance of ${e.name}.`})}return t}};f.dictionaryConverter=function(e){return(t,n,o)=>{const i=f.util.Type(t);const d={};if(i==="Null"||i==="Undefined"){return d}else if(i!=="Object"){throw f.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const i of e){const{key:e,defaultValue:p,required:y,converter:v}=i;if(y===true){if(!Object.hasOwn(t,e)){throw f.errors.exception({header:n,message:`Missing required key "${e}".`})}}let D=t[e];const M=Object.hasOwn(i,"defaultValue");if(M&&D!==null){D??=p()}if(y||M||D!==undefined){D=v(D,n,`${o}.${e}`);if(i.allowedValues&&!i.allowedValues.includes(D)){throw f.errors.exception({header:n,message:`${D} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}d[e]=D}}return d}};f.nullableConverter=function(e){return(t,n,o)=>{if(t===null){return t}return e(t,n,o)}};f.converters.DOMString=function(e,t,n,o){if(e===null&&o?.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw f.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`})}return String(e)};f.converters.ByteString=function(e,t,n){const o=f.converters.DOMString(e,t,n);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${o.charCodeAt(e)} which is greater than 255.`)}}return o};f.converters.USVString=p;f.converters.boolean=function(e){const t=Boolean(e);return t};f.converters.any=function(e){return e};f.converters["long long"]=function(e,t,n){const o=f.util.ConvertToInt(e,64,"signed",undefined,t,n);return o};f.converters["unsigned long long"]=function(e,t,n){const o=f.util.ConvertToInt(e,64,"unsigned",undefined,t,n);return o};f.converters["unsigned long"]=function(e,t,n){const o=f.util.ConvertToInt(e,32,"unsigned",undefined,t,n);return o};f.converters["unsigned short"]=function(e,t,n,o){const i=f.util.ConvertToInt(e,16,"unsigned",o,t,n);return i};f.converters.ArrayBuffer=function(e,t,n,i){if(f.util.Type(e)!=="Object"||!o.isAnyArrayBuffer(e)){throw f.errors.conversionFailed({prefix:t,argument:`${n} ("${f.util.Stringify(e)}")`,types:["ArrayBuffer"]})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e)){throw f.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.resizable||e.growable){throw f.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};f.converters.TypedArray=function(e,t,n,i,d){if(f.util.Type(e)!=="Object"||!o.isTypedArray(e)||e.constructor.name!==t.name){throw f.errors.conversionFailed({prefix:n,argument:`${i} ("${f.util.Stringify(e)}")`,types:[t.name]})}if(d?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw f.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw f.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};f.converters.DataView=function(e,t,n,i){if(f.util.Type(e)!=="Object"||!o.isDataView(e)){throw f.errors.exception({header:t,message:`${n} is not a DataView.`})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw f.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw f.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};f.converters.BufferSource=function(e,t,n,i){if(o.isAnyArrayBuffer(e)){return f.converters.ArrayBuffer(e,t,n,{...i,allowShared:false})}if(o.isTypedArray(e)){return f.converters.TypedArray(e,e.constructor,t,n,{...i,allowShared:false})}if(o.isDataView(e)){return f.converters.DataView(e,t,n,{...i,allowShared:false})}throw f.errors.conversionFailed({prefix:t,argument:`${n} ("${f.util.Stringify(e)}")`,types:["BufferSource"]})};f.converters["sequence"]=f.sequenceConverter(f.converters.ByteString);f.converters["sequence>"]=f.sequenceConverter(f.converters["sequence"]);f.converters["record"]=f.recordConverter(f.converters.ByteString,f.converters.ByteString);e.exports={webidl:f}},2607:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},8355:(e,t,n)=>{const{staticPropertyDescriptors:o,readOperation:i,fireAProgressEvent:d}=n(3610);const{kState:p,kError:f,kResult:y,kEvents:v,kAborted:D}=n(961);const{webidl:M}=n(5893);const{kEnumerableProperty:U}=n(3440);class FileReader extends EventTarget{constructor(){super();this[p]="empty";this[y]=null;this[f]=null;this[v]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");e=M.converters.Blob(e,{strict:false});i(this,e,"ArrayBuffer")}readAsBinaryString(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");e=M.converters.Blob(e,{strict:false});i(this,e,"BinaryString")}readAsText(e,t=undefined){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,"FileReader.readAsText");e=M.converters.Blob(e,{strict:false});if(t!==undefined){t=M.converters.DOMString(t,"FileReader.readAsText","encoding")}i(this,e,"Text",t)}readAsDataURL(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");e=M.converters.Blob(e,{strict:false});i(this,e,"DataURL")}abort(){if(this[p]==="empty"||this[p]==="done"){this[y]=null;return}if(this[p]==="loading"){this[p]="done";this[y]=null}this[D]=true;d("abort",this);if(this[p]!=="loading"){d("loadend",this)}}get readyState(){M.brandCheck(this,FileReader);switch(this[p]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){M.brandCheck(this,FileReader);return this[y]}get error(){M.brandCheck(this,FileReader);return this[f]}get onloadend(){M.brandCheck(this,FileReader);return this[v].loadend}set onloadend(e){M.brandCheck(this,FileReader);if(this[v].loadend){this.removeEventListener("loadend",this[v].loadend)}if(typeof e==="function"){this[v].loadend=e;this.addEventListener("loadend",e)}else{this[v].loadend=null}}get onerror(){M.brandCheck(this,FileReader);return this[v].error}set onerror(e){M.brandCheck(this,FileReader);if(this[v].error){this.removeEventListener("error",this[v].error)}if(typeof e==="function"){this[v].error=e;this.addEventListener("error",e)}else{this[v].error=null}}get onloadstart(){M.brandCheck(this,FileReader);return this[v].loadstart}set onloadstart(e){M.brandCheck(this,FileReader);if(this[v].loadstart){this.removeEventListener("loadstart",this[v].loadstart)}if(typeof e==="function"){this[v].loadstart=e;this.addEventListener("loadstart",e)}else{this[v].loadstart=null}}get onprogress(){M.brandCheck(this,FileReader);return this[v].progress}set onprogress(e){M.brandCheck(this,FileReader);if(this[v].progress){this.removeEventListener("progress",this[v].progress)}if(typeof e==="function"){this[v].progress=e;this.addEventListener("progress",e)}else{this[v].progress=null}}get onload(){M.brandCheck(this,FileReader);return this[v].load}set onload(e){M.brandCheck(this,FileReader);if(this[v].load){this.removeEventListener("load",this[v].load)}if(typeof e==="function"){this[v].load=e;this.addEventListener("load",e)}else{this[v].load=null}}get onabort(){M.brandCheck(this,FileReader);return this[v].abort}set onabort(e){M.brandCheck(this,FileReader);if(this[v].abort){this.removeEventListener("abort",this[v].abort)}if(typeof e==="function"){this[v].abort=e;this.addEventListener("abort",e)}else{this[v].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:o,LOADING:o,DONE:o,readAsArrayBuffer:U,readAsBinaryString:U,readAsText:U,readAsDataURL:U,abort:U,readyState:U,result:U,error:U,onloadstart:U,onprogress:U,onload:U,onabort:U,onerror:U,onloadend:U,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:o,LOADING:o,DONE:o});e.exports={FileReader:FileReader}},8573:(e,t,n)=>{const{webidl:o}=n(5893);const i=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=o.converters.DOMString(e,"ProgressEvent constructor","type");t=o.converters.ProgressEventInit(t??{});super(e,t);this[i]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){o.brandCheck(this,ProgressEvent);return this[i].lengthComputable}get loaded(){o.brandCheck(this,ProgressEvent);return this[i].loaded}get total(){o.brandCheck(this,ProgressEvent);return this[i].total}}o.converters.ProgressEventInit=o.dictionaryConverter([{key:"lengthComputable",converter:o.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}]);e.exports={ProgressEvent:ProgressEvent}},961:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(e,t,n)=>{const{kState:o,kError:i,kResult:d,kAborted:p,kLastProgressEventFired:f}=n(961);const{ProgressEvent:y}=n(8573);const{getEncoding:v}=n(2607);const{serializeAMimeType:D,parseMIMEType:M}=n(1900);const{types:U}=n(7975);const{StringDecoder:V}=n(3193);const{btoa:j}=n(4573);const K={enumerable:true,writable:false,configurable:false};function readOperation(e,t,n,y){if(e[o]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}e[o]="loading";e[d]=null;e[i]=null;const v=t.stream();const D=v.getReader();const M=[];let V=D.read();let j=true;(async()=>{while(!e[p]){try{const{done:v,value:K}=await V;if(j&&!e[p]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}j=false;if(!v&&U.isUint8Array(K)){M.push(K);if((e[f]===undefined||Date.now()-e[f]>=50)&&!e[p]){e[f]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}V=D.read()}else if(v){queueMicrotask((()=>{e[o]="done";try{const o=packageData(M,n,t.type,y);if(e[p]){return}e[d]=o;fireAProgressEvent("load",e)}catch(t){e[i]=t;fireAProgressEvent("error",e)}if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[p]){return}queueMicrotask((()=>{e[o]="done";e[i]=t;fireAProgressEvent("error",e);if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const n=new y(e,{bubbles:false,cancelable:false});t.dispatchEvent(n)}function packageData(e,t,n,o){switch(t){case"DataURL":{let t="data:";const o=M(n||"application/octet-stream");if(o!=="failure"){t+=D(o)}t+=";base64,";const i=new V("latin1");for(const n of e){t+=j(i.write(n))}t+=j(i.end());return t}case"Text":{let t="failure";if(o){t=v(o)}if(t==="failure"&&n){const e=M(n);if(e!=="failure"){t=v(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const n=new V("latin1");for(const o of e){t+=n.write(o)}t+=n.end();return t}}}function decode(e,t){const n=combineByteSequences(e);const o=BOMSniffing(n);let i=0;if(o!==null){t=o;i=o==="UTF-8"?3:2}const d=n.slice(i);return new TextDecoder(t).decode(d)}function BOMSniffing(e){const[t,n,o]=e;if(t===239&&n===187&&o===191){return"UTF-8"}else if(t===254&&n===255){return"UTF-16BE"}else if(t===255&&n===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>{e.set(t,n);n+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:K,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(e,t,n)=>{const{uid:o,states:i,sentCloseFrameState:d,emptyBuffer:p,opcodes:f}=n(736);const{kReadyState:y,kSentClose:v,kByteParser:D,kReceivedClose:M,kResponse:U}=n(1216);const{fireEvent:V,failWebsocketConnection:j,isClosing:K,isClosed:ee,isEstablished:te,parseExtensions:re}=n(8625);const{channels:ne}=n(2414);const{CloseEvent:se}=n(5188);const{makeRequest:oe}=n(9967);const{fetching:ie}=n(4398);const{Headers:ae,getHeadersList:ce}=n(660);const{getDecodeSplit:le}=n(3168);const{WebsocketFrameSend:ue}=n(3264);let de;try{de=n(7598)}catch{}function establishWebSocketConnection(e,t,n,i,d,p){const f=e;f.protocol=e.protocol==="ws:"?"http:":"https:";const y=oe({urlList:[f],client:n,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(p.headers){const e=ce(new ae(p.headers));y.headersList=e}const v=de.randomBytes(16).toString("base64");y.headersList.append("sec-websocket-key",v);y.headersList.append("sec-websocket-version","13");for(const e of t){y.headersList.append("sec-websocket-protocol",e)}const D="permessage-deflate; client_max_window_bits";y.headersList.append("sec-websocket-extensions",D);const M=ie({request:y,useParallelQueue:true,dispatcher:p.dispatcher,processResponse(e){if(e.type==="error"||e.status!==101){j(i,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){j(i,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){j(i,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){j(i,'Server did not set Connection header to "upgrade".');return}const n=e.headersList.get("Sec-WebSocket-Accept");const p=de.createHash("sha1").update(v+o).digest("base64");if(n!==p){j(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const f=e.headersList.get("Sec-WebSocket-Extensions");let D;if(f!==null){D=re(f);if(!D.has("permessage-deflate")){j(i,"Sec-WebSocket-Extensions header does not match.");return}}const M=e.headersList.get("Sec-WebSocket-Protocol");if(M!==null){const e=le("sec-websocket-protocol",y.headersList);if(!e.includes(M)){j(i,"Protocol was not set in the opening handshake.");return}}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(ne.open.hasSubscribers){ne.open.publish({address:e.socket.address(),protocol:M,extensions:f})}d(e,D)}});return M}function closeWebSocketConnection(e,t,n,o){if(K(e)||ee(e)){}else if(!te(e)){j(e,"Connection was closed before it was established.");e[y]=i.CLOSING}else if(e[v]===d.NOT_SENT){e[v]=d.PROCESSING;const D=new ue;if(t!==undefined&&n===undefined){D.frameData=Buffer.allocUnsafe(2);D.frameData.writeUInt16BE(t,0)}else if(t!==undefined&&n!==undefined){D.frameData=Buffer.allocUnsafe(2+o);D.frameData.writeUInt16BE(t,0);D.frameData.write(n,2,"utf-8")}else{D.frameData=p}const M=e[U].socket;M.write(D.createFrame(f.CLOSE));e[v]=d.SENT;e[y]=i.CLOSING}else{e[y]=i.CLOSING}}function onSocketData(e){if(!this.ws[D].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const{[U]:t}=e;t.socket.off("data",onSocketData);t.socket.off("close",onSocketClose);t.socket.off("error",onSocketError);const n=e[v]===d.SENT&&e[M];let o=1005;let p="";const f=e[D].closingInfo;if(f&&!f.error){o=f.code??1005;p=f.reason}else if(!e[M]){o=1006}e[y]=i.CLOSED;V("close",e,((e,t)=>new se(e,t)),{wasClean:n,code:o,reason:p});if(ne.close.hasSubscribers){ne.close.publish({websocket:e,code:o,reason:p})}}function onSocketError(e){const{ws:t}=this;t[y]=i.CLOSING;if(ne.socketError.hasSubscribers){ne.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const n={enumerable:true,writable:false,configurable:false};const o={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const i={NOT_SENT:0,PROCESSING:1,SENT:2};const d={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const p=2**16-1;const f={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const y=Buffer.allocUnsafe(0);const v={string:1,typedArray:2,arrayBuffer:3,blob:4};e.exports={uid:t,sentCloseFrameState:i,staticPropertyDescriptors:n,states:o,opcodes:d,maxUnsigned16Bit:p,parserStates:f,emptyBuffer:y,sendHints:v}},5188:(e,t,n)=>{const{webidl:o}=n(5893);const{kEnumerableProperty:i}=n(3440);const{kConstruct:d}=n(6443);const{MessagePort:p}=n(5919);class MessageEvent extends Event{#J;constructor(e,t={}){if(e===d){super(arguments[1],arguments[2]);o.util.markAsUncloneable(this);return}const n="MessageEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.MessageEventInit(t,n,"eventInitDict");super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get data(){o.brandCheck(this,MessageEvent);return this.#J.data}get origin(){o.brandCheck(this,MessageEvent);return this.#J.origin}get lastEventId(){o.brandCheck(this,MessageEvent);return this.#J.lastEventId}get source(){o.brandCheck(this,MessageEvent);return this.#J.source}get ports(){o.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#J.ports)){Object.freeze(this.#J.ports)}return this.#J.ports}initMessageEvent(e,t=false,n=false,i=null,d="",p="",f=null,y=[]){o.brandCheck(this,MessageEvent);o.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(e,{bubbles:t,cancelable:n,data:i,origin:d,lastEventId:p,source:f,ports:y})}static createFastMessageEvent(e,t){const n=new MessageEvent(d,e,t);n.#J=t;n.#J.data??=null;n.#J.origin??="";n.#J.lastEventId??="";n.#J.source??=null;n.#J.ports??=[];return n}}const{createFastMessageEvent:f}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#J;constructor(e,t={}){const n="CloseEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.CloseEventInit(t);super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get wasClean(){o.brandCheck(this,CloseEvent);return this.#J.wasClean}get code(){o.brandCheck(this,CloseEvent);return this.#J.code}get reason(){o.brandCheck(this,CloseEvent);return this.#J.reason}}class ErrorEvent extends Event{#J;constructor(e,t){const n="ErrorEvent constructor";o.argumentLengthCheck(arguments,1,n);super(e,t);o.util.markAsUncloneable(this);e=o.converters.DOMString(e,n,"type");t=o.converters.ErrorEventInit(t??{});this.#J=t}get message(){o.brandCheck(this,ErrorEvent);return this.#J.message}get filename(){o.brandCheck(this,ErrorEvent);return this.#J.filename}get lineno(){o.brandCheck(this,ErrorEvent);return this.#J.lineno}get colno(){o.brandCheck(this,ErrorEvent);return this.#J.colno}get error(){o.brandCheck(this,ErrorEvent);return this.#J.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:i,code:i,wasClean:i});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:i,filename:i,lineno:i,colno:i,error:i});o.converters.MessagePort=o.interfaceConverter(p);o.converters["sequence"]=o.sequenceConverter(o.converters.MessagePort);const y=[{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}];o.converters.MessageEventInit=o.dictionaryConverter([...y,{key:"data",converter:o.converters.any,defaultValue:()=>null},{key:"origin",converter:o.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:o.converters.DOMString,defaultValue:()=>""},{key:"source",converter:o.nullableConverter(o.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:o.converters["sequence"],defaultValue:()=>new Array(0)}]);o.converters.CloseEventInit=o.dictionaryConverter([...y,{key:"wasClean",converter:o.converters.boolean,defaultValue:()=>false},{key:"code",converter:o.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:o.converters.USVString,defaultValue:()=>""}]);o.converters.ErrorEventInit=o.dictionaryConverter([...y,{key:"message",converter:o.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:o.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:o.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:f}},3264:(e,t,n)=>{const{maxUnsigned16Bit:o}=n(736);const i=16386;let d;let p=null;let f=i;try{d=n(7598)}catch{d={randomFillSync:function randomFillSync(e,t,n){for(let t=0;to){p+=8;d=127}else if(i>125){p+=2;d=126}const f=Buffer.allocUnsafe(i+p);f[0]=f[1]=0;f[0]|=128;f[0]=(f[0]&240)+e;
-/*! ws. MIT License. Einar Otto Stangvik */f[p-4]=n[0];f[p-3]=n[1];f[p-2]=n[2];f[p-1]=n[3];f[1]=d;if(d===126){f.writeUInt16BE(i,2)}else if(d===127){f[2]=f[3]=0;f.writeUIntBE(i,4,6)}f[1]|=128;for(let e=0;e{const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=n(8522);const{isValidClientWindowBits:d}=n(8625);const p=Buffer.from([0,0,255,255]);const f=Symbol("kBuffer");const y=Symbol("kLength");class PerMessageDeflate{#W;#p={};constructor(e){this.#p.serverNoContextTakeover=e.has("server_no_context_takeover");this.#p.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,n){if(!this.#W){let e=i;if(this.#p.serverMaxWindowBits){if(!d(this.#p.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#p.serverMaxWindowBits)}this.#W=o({windowBits:e});this.#W[f]=[];this.#W[y]=0;this.#W.on("data",(e=>{this.#W[f].push(e);this.#W[y]+=e.length}));this.#W.on("error",(e=>{this.#W=null;n(e)}))}this.#W.write(e);if(t){this.#W.write(p)}this.#W.flush((()=>{const e=Buffer.concat(this.#W[f],this.#W[y]);this.#W[f].length=0;this.#W[y]=0;n(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,n)=>{const{Writable:o}=n(7075);const i=n(4589);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y,sentCloseFrameState:v}=n(736);const{kReadyState:D,kSentClose:M,kResponse:U,kReceivedClose:V}=n(1216);const{channels:j}=n(2414);const{isValidStatusCode:K,isValidOpcode:ee,failWebsocketConnection:te,websocketMessageReceived:re,utf8Decode:ne,isControlFrame:se,isTextBinaryFrame:oe,isContinuationFrame:ie}=n(8625);const{WebsocketFrameSend:ae}=n(3264);const{closeWebSocketConnection:ce}=n(6897);const{PerMessageDeflate:le}=n(9469);class ByteParser extends o{#K=[];#X=0;#Z=false;#C=d.INFO;#ee={};#te=[];#re;constructor(e,t){super();this.ws=e;this.#re=t==null?new Map:t;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new le(t))}}_write(e,t,n){this.#K.push(e);this.#X+=e.length;this.#Z=true;this.run(n)}run(e){while(this.#Z){if(this.#C===d.INFO){if(this.#X<2){return e()}const t=this.consume(2);const n=(t[0]&128)!==0;const o=t[0]&15;const i=(t[1]&128)===128;const f=!n&&o!==p.CONTINUATION;const y=t[1]&127;const v=t[0]&64;const D=t[0]&32;const M=t[0]&16;if(!ee(o)){te(this.ws,"Invalid opcode received");return e()}if(i){te(this.ws,"Frame cannot be masked");return e()}if(v!==0&&!this.#re.has("permessage-deflate")){te(this.ws,"Expected RSV1 to be clear.");return}if(D!==0||M!==0){te(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(f&&!oe(o)){te(this.ws,"Invalid frame type was fragmented.");return}if(oe(o)&&this.#te.length>0){te(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&f){te(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((y>125||f)&&se(o)){te(this.ws,"Control frame either too large or fragmented");return}if(ie(o)&&this.#te.length===0&&!this.#ee.compressed){te(this.ws,"Unexpected continuation frame");return}if(y<=125){this.#ee.payloadLength=y;this.#C=d.READ_DATA}else if(y===126){this.#C=d.PAYLOADLENGTH_16}else if(y===127){this.#C=d.PAYLOADLENGTH_64}if(oe(o)){this.#ee.binaryType=o;this.#ee.compressed=v!==0}this.#ee.opcode=o;this.#ee.masked=i;this.#ee.fin=n;this.#ee.fragmented=f}else if(this.#C===d.PAYLOADLENGTH_16){if(this.#X<2){return e()}const t=this.consume(2);this.#ee.payloadLength=t.readUInt16BE(0);this.#C=d.READ_DATA}else if(this.#C===d.PAYLOADLENGTH_64){if(this.#X<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){te(this.ws,"Received payload length > 2^31 bytes.");return}const o=t.readUInt32BE(4);this.#ee.payloadLength=(n<<8)+o;this.#C=d.READ_DATA}else if(this.#C===d.READ_DATA){if(this.#X{if(t){ce(this.ws,1007,t.message,t.message.length);return}this.#te.push(n);if(!this.#ee.fin){this.#C=d.INFO;this.#Z=true;this.run(e);return}re(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#C=d.INFO;this.#te.length=0;this.run(e)}));this.#Z=false;break}}}}}consume(e){if(e>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return y}if(this.#K[0].length===e){this.#X-=this.#K[0].length;return this.#K.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const o=this.#K[0];const{length:i}=o;if(i+n===e){t.set(this.#K.shift(),n);break}else if(i+n>e){t.set(o.subarray(0,e-n),n);this.#K[0]=o.subarray(e-n);break}else{t.set(this.#K.shift(),n);n+=o.length}}this.#X-=e;return t}parseCloseBody(e){i(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!K(t)){return{code:1002,reason:"Invalid status code",error:true}}let n=e.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}try{n=ne(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:n,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:n}=this.#ee;if(t===p.CLOSE){if(n===1){te(this.ws,"Received close frame with a 1-byte body.");return false}this.#ee.closeInfo=this.parseCloseBody(e);if(this.#ee.closeInfo.error){const{code:e,reason:t}=this.#ee.closeInfo;ce(this.ws,e,t,t.length);te(this.ws,t);return false}if(this.ws[M]!==v.SENT){let e=y;if(this.#ee.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#ee.closeInfo.code,0)}const t=new ae(e);this.ws[U].socket.write(t.createFrame(p.CLOSE),(e=>{if(!e){this.ws[M]=v.SENT}}))}this.ws[D]=f.CLOSING;this.ws[V]=true;return false}else if(t===p.PING){if(!this.ws[V]){const t=new ae(e);this.ws[U].socket.write(t.createFrame(p.PONG));if(j.ping.hasSubscribers){j.ping.publish({payload:e})}}}else if(t===p.PONG){if(j.pong.hasSubscribers){j.pong.publish({payload:e})}}return true}get closingInfo(){return this.#ee.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,n)=>{const{WebsocketFrameSend:o}=n(3264);const{opcodes:i,sendHints:d}=n(736);const p=n(4660);const f=Buffer[Symbol.species];class SendQueue{#ne=new p;#se=false;#oe;constructor(e){this.#oe=e}add(e,t,n){if(n!==d.blob){const o=createFrame(e,n);if(!this.#se){this.#oe.write(o,t)}else{const e={promise:null,callback:t,frame:o};this.#ne.push(e)}return}const o={promise:e.arrayBuffer().then((e=>{o.promise=null;o.frame=createFrame(e,n)})),callback:t,frame:null};this.#ne.push(o);if(!this.#se){this.#ie()}}async#ie(){this.#se=true;const e=this.#ne;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#oe.write(t.frame,t.callback);t.callback=t.frame=null}this.#se=false}}function createFrame(e,t){return new o(toBuffer(e,t)).createFrame(t===d.string?i.TEXT:i.BINARY)}function toBuffer(e,t){switch(t){case d.string:return Buffer.from(e);case d.arrayBuffer:case d.blob:return new f(e);case d.typedArray:return new f(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,n)=>{const{kReadyState:o,kController:i,kResponse:d,kBinaryType:p,kWebSocketURL:f}=n(1216);const{states:y,opcodes:v}=n(736);const{ErrorEvent:D,createFastMessageEvent:M}=n(5188);const{isUtf8:U}=n(4573);const{collectASequenceOfCodePointsFast:V,removeHTTPWhitespace:j}=n(1900);function isConnecting(e){return e[o]===y.CONNECTING}function isEstablished(e){return e[o]===y.OPEN}function isClosing(e){return e[o]===y.CLOSING}function isClosed(e){return e[o]===y.CLOSED}function fireEvent(e,t,n=(e,t)=>new Event(e,t),o={}){const i=n(e,o);t.dispatchEvent(i)}function websocketMessageReceived(e,t,n){if(e[o]!==y.OPEN){return}let i;if(t===v.TEXT){try{i=te(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===v.BINARY){if(e[p]==="blob"){i=new Blob([n])}else{i=toArrayBuffer(n)}}fireEvent("message",e,M,{origin:e[f].origin,data:i})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[i]:n,[d]:o}=e;n.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new D(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===v.CLOSE||e===v.PING||e===v.PONG}function isContinuationFrame(e){return e===v.CONTINUATION}function isTextBinaryFrame(e){return e===v.TEXT||e===v.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const n=new Map;while(t.position57){return false}}return true}const K=typeof process.versions.icu==="string";const ee=K?new TextDecoder("utf-8",{fatal:true}):undefined;const te=K?ee.decode.bind(ee):function(e){if(U(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:te,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,n)=>{const{webidl:o}=n(5893);const{URLSerializer:i}=n(1900);const{environmentSettingsObject:d}=n(3168);const{staticPropertyDescriptors:p,states:f,sentCloseFrameState:y,sendHints:v}=n(736);const{kWebSocketURL:D,kReadyState:M,kController:U,kBinaryType:V,kResponse:j,kSentClose:K,kByteParser:ee}=n(1216);const{isConnecting:te,isEstablished:re,isClosing:ne,isValidSubprotocol:se,fireEvent:oe}=n(8625);const{establishWebSocketConnection:ie,closeWebSocketConnection:ae}=n(6897);const{ByteParser:ce}=n(1652);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(2581);const{types:Ae}=n(7975);const{ErrorEvent:pe,CloseEvent:me}=n(5188);const{SendQueue:ge}=n(3900);class WebSocket extends EventTarget{#_={open:null,error:null,close:null,message:null};#ae=0;#ce="";#re="";#le;constructor(e,t=[]){super();o.util.markAsUncloneable(this);const n="WebSocket constructor";o.argumentLengthCheck(arguments,1,n);const i=o.converters["DOMString or sequence