From 0382a153a142e7c3529d0404bffc846723b45862 Mon Sep 17 00:00:00 2001 From: inomdzhon <5850354+inomdzhon@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:45:59 +0000 Subject: [PATCH] build(actions): update dist --- VKUI/s3/dist/index.js | 15217 ++++++++++++++++--------------- VKUI/size-upload/dist/index.js | 14993 +++++++++++++++--------------- 2 files changed, 15546 insertions(+), 14664 deletions(-) diff --git a/VKUI/s3/dist/index.js b/VKUI/s3/dist/index.js index 99932aa..b021514 100644 --- a/VKUI/s3/dist/index.js +++ b/VKUI/s3/dist/index.js @@ -69,29 +69,29 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "../../node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -142,11 +142,11 @@ var require_command = __commonJS({ return cmdStr; } }; - function escapeData(s3) { - return (0, utils_1.toCommandValue)(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + function escapeData(s) { + return (0, utils_1.toCommandValue)(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } - function escapeProperty(s3) { - return (0, utils_1.toCommandValue)(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + function escapeProperty(s) { + return (0, utils_1.toCommandValue)(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } } }); @@ -155,29 +155,29 @@ var require_command = __commonJS({ var require_file_command = __commonJS({ "../../node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -237,7 +237,7 @@ var require_proxy = __commonJS({ if (proxyVar) { try { return new URL(proxyVar); - } catch (_a2) { + } catch (_a) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) return new URL(`http://${proxyVar}`); } @@ -270,8 +270,8 @@ var require_proxy = __commonJS({ if (typeof reqPort === "number") { upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); } - for (const upperNoProxyItem of noProxy.split(",").map((x3) => x3.trim().toUpperCase()).filter((x3) => x3)) { - if (upperNoProxyItem === "*" || upperReqHosts.some((x3) => x3 === upperNoProxyItem || x3.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x3.endsWith(`${upperNoProxyItem}`))) { + for (const upperNoProxyItem of noProxy.split(",").map((x) => x.trim().toUpperCase()).filter((x) => x)) { + if (upperNoProxyItem === "*" || upperReqHosts.some((x) => x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x.endsWith(`${upperNoProxyItem}`))) { return true; } } @@ -333,10 +333,10 @@ var require_tunnel = __commonJS({ self2.sockets = []; self2.on("free", function onFree(socket, host, port, localAddress) { var options2 = toOptions(host, port, localAddress); - for (var i3 = 0, len = self2.requests.length; i3 < len; ++i3) { - var pending = self2.requests[i3]; + for (var i = 0, len = self2.requests.length; i < len; ++i) { + var pending = self2.requests[i]; if (pending.host === options2.host && pending.port === options2.port) { - self2.requests.splice(i3, 1); + self2.requests.splice(i, 1); pending.request.onSocket(socket); return; } @@ -482,14 +482,14 @@ var require_tunnel = __commonJS({ return host; } function mergeOptions(target) { - for (var i3 = 1, len = arguments.length; i3 < len; ++i3) { - var overrides = arguments[i3]; + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; if (typeof overrides === "object") { var keys = Object.keys(overrides); - for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { - var k3 = keys[j3]; - if (overrides[k3] !== void 0) { - target[k3] = overrides[k3]; + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; } } } @@ -804,7 +804,7 @@ var require_util = __commonJS({ var { Blob: Blob2 } = require("buffer"); var nodeUtil = require("util"); var { stringify: stringify2 } = require("querystring"); - var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v6) => Number(v6)); + var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v) => Number(v)); function nop() { } function isStream(obj) { @@ -943,26 +943,26 @@ var require_util = __commonJS({ } var KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/; function parseKeepAliveTimeout(val2) { - const m3 = val2.toString().match(KEEPALIVE_TIMEOUT_EXPR); - return m3 ? parseInt(m3[1], 10) * 1e3 : null; + const m = val2.toString().match(KEEPALIVE_TIMEOUT_EXPR); + return m ? parseInt(m[1], 10) * 1e3 : null; } function parseHeaders(headers, obj = {}) { if (!Array.isArray(headers)) return headers; - for (let i3 = 0; i3 < headers.length; i3 += 2) { - const key = headers[i3].toString().toLowerCase(); + for (let i = 0; i < headers.length; i += 2) { + const key = headers[i].toString().toLowerCase(); let val2 = obj[key]; if (!val2) { - if (Array.isArray(headers[i3 + 1])) { - obj[key] = headers[i3 + 1]; + if (Array.isArray(headers[i + 1])) { + obj[key] = headers[i + 1]; } else { - obj[key] = headers[i3 + 1].toString("utf8"); + obj[key] = headers[i + 1].toString("utf8"); } } else { if (!Array.isArray(val2)) { val2 = [val2]; obj[key] = val2; } - val2.push(headers[i3 + 1].toString("utf8")); + val2.push(headers[i + 1].toString("utf8")); } } if ("content-length" in obj && "content-disposition" in obj) { @@ -974,9 +974,9 @@ var require_util = __commonJS({ const ret = []; let hasContentLength = false; let contentDispositionIdx = -1; - for (let n3 = 0; n3 < headers.length; n3 += 2) { - const key = headers[n3 + 0].toString(); - const val2 = headers[n3 + 1].toString("utf8"); + for (let n = 0; n < headers.length; n += 2) { + const key = headers[n + 0].toString(); + const val2 = headers[n + 1].toString("utf8"); if (key.length === 14 && (key === "content-length" || key.toLowerCase() === "content-length")) { ret.push(key, val2); hasContentLength = true; @@ -1277,8 +1277,8 @@ var require_sbmh = __commonJS({ this._needle = needle; this._bufpos = 0; this._lookbehind = Buffer.alloc(needleLength); - for (var i3 = 0; i3 < needleLength - 1; ++i3) { - this._occ[needle[i3]] = needleLength - 1 - i3; + for (var i = 0; i < needleLength - 1; ++i) { + this._occ[needle[i]] = needleLength - 1 - i; } } inherits(SBMH, EventEmitter); @@ -1293,11 +1293,11 @@ var require_sbmh = __commonJS({ } const chlen = chunk.length; this._bufpos = pos || 0; - let r3; - while (r3 !== chlen && this.matches < this.maxMatches) { - r3 = this._sbmh_feed(chunk); + let r; + while (r !== chlen && this.matches < this.maxMatches) { + r = this._sbmh_feed(chunk); } - return r3; + return r; }; SBMH.prototype._sbmh_feed = function(data) { const len = data.length; @@ -1376,8 +1376,8 @@ var require_sbmh = __commonJS({ return pos < 0 ? this._lookbehind[this._lookbehind_size + pos] : data[pos]; }; SBMH.prototype._sbmh_memcmp = function(data, pos, len) { - for (var i3 = 0; i3 < len; ++i3) { - if (this._sbmh_lookup_char(data, pos + i3) !== this._needle[i3]) { + for (var i = 0; i < len; ++i) { + if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false; } } @@ -1397,7 +1397,7 @@ var require_PartStream = __commonJS({ ReadableStream2.call(this, opts); } inherits(PartStream, ReadableStream2); - PartStream.prototype._read = function(n3) { + PartStream.prototype._read = function(n) { }; module2.exports = PartStream; } @@ -1461,9 +1461,9 @@ var require_HeaderParser = __commonJS({ } inherits(HeaderParser, EventEmitter); HeaderParser.prototype.push = function(data) { - const r3 = this.ss.push(data); + const r = this.ss.push(data); if (this.finished) { - return r3; + return r; } }; HeaderParser.prototype.reset = function() { @@ -1491,25 +1491,25 @@ var require_HeaderParser = __commonJS({ } const lines = this.buffer.split(RE_CRLF); const len = lines.length; - let m3, h3; - for (var i3 = 0; i3 < len; ++i3) { - if (lines[i3].length === 0) { + let m, h; + for (var i = 0; i < len; ++i) { + if (lines[i].length === 0) { continue; } - if (lines[i3][0] === " " || lines[i3][0] === " ") { - if (h3) { - this.header[h3][this.header[h3].length - 1] += lines[i3]; + if (lines[i][0] === " " || lines[i][0] === " ") { + if (h) { + this.header[h][this.header[h].length - 1] += lines[i]; continue; } } - const posColon = lines[i3].indexOf(":"); + const posColon = lines[i].indexOf(":"); if (posColon === -1 || posColon === 0) { return; } - m3 = RE_HDR.exec(lines[i3]); - h3 = m3[1].toLowerCase(); - this.header[h3] = this.header[h3] || []; - this.header[h3].push(m3[2] || ""); + m = RE_HDR.exec(lines[i]); + h = m[1].toLowerCase(); + this.header[h] = this.header[h] || []; + this.header[h].push(m[2] || ""); if (++this.npairs === this.maxHeaderPairs) { break; } @@ -1607,9 +1607,9 @@ var require_Dicer = __commonJS({ this._ignore(); } } - const r3 = this._hparser.push(data); - if (!this._inHeader && r3 !== void 0 && r3 < data.length) { - data = data.slice(r3); + const r = this._hparser.push(data); + if (!this._inHeader && r !== void 0 && r < data.length) { + data = data.slice(r); } else { return cb(); } @@ -1647,13 +1647,13 @@ var require_Dicer = __commonJS({ Dicer.prototype._oninfo = function(isMatch, data, start, end) { let buf; const self2 = this; - let i3 = 0; - let r3; + let i = 0; + let r; let shouldWriteMore = true; if (!this._part && this._justMatched && data) { - while (this._dashes < 2 && start + i3 < end) { - if (data[start + i3] === DASH) { - ++i3; + while (this._dashes < 2 && start + i < end) { + if (data[start + i] === DASH) { + ++i; ++this._dashes; } else { if (this._dashes) { @@ -1664,8 +1664,8 @@ var require_Dicer = __commonJS({ } } if (this._dashes === 2) { - if (start + i3 < end && this._events.trailer) { - this.emit("trailer", data.slice(start + i3, end)); + if (start + i < end && this._events.trailer) { + this.emit("trailer", data.slice(start + i, end)); } this.reset(); this._finished = true; @@ -1684,7 +1684,7 @@ var require_Dicer = __commonJS({ } if (!this._part) { this._part = new PartStream(this._partOpts); - this._part._read = function(n3) { + this._part._read = function(n) { self2._unpause(); }; if (this._isPreamble && this._events.preamble) { @@ -1711,9 +1711,9 @@ var require_Dicer = __commonJS({ if (buf) { this._hparser.push(buf); } - r3 = this._hparser.push(data.slice(start, end)); - if (!this._inHeader && r3 !== void 0 && r3 < end) { - this._oninfo(false, data, start + r3, end); + r = this._hparser.push(data.slice(start, end)); + if (!this._inHeader && r !== void 0 && r < end) { + this._oninfo(false, data, start + r, end); } } } @@ -1773,13 +1773,13 @@ var require_decodeText = __commonJS({ if (textDecoders.has(destEncoding)) { try { return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e3) { + } catch (e) { } } else { try { textDecoders.set(destEncoding, new TextDecoder(destEncoding)); return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e3) { + } catch (e) { } } } @@ -1804,10 +1804,10 @@ var require_parseParams = __commonJS({ let charset = ""; let inquote = false; let escaping = false; - let p3 = 0; + let p = 0; let tmp = ""; - for (var i3 = 0, len = str.length; i3 < len; ++i3) { - const char = str[i3]; + for (var i = 0, len = str.length; i < len; ++i) { + const char = str[i]; if (char === "\\" && inquote) { if (escaping) { escaping = false; @@ -1847,7 +1847,7 @@ var require_parseParams = __commonJS({ } else { state2 = "value"; } - res[p3] = [tmp, void 0]; + res[p] = [tmp, void 0]; tmp = ""; continue; } else if (!inquote && char === ";") { @@ -1864,13 +1864,13 @@ var require_parseParams = __commonJS({ } else if (tmp.length) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p3] === void 0) { - res[p3] = tmp; + if (res[p] === void 0) { + res[p] = tmp; } else { - res[p3][1] = tmp; + res[p][1] = tmp; } tmp = ""; - ++p3; + ++p; continue; } else if (!inquote && (char === " " || char === " ")) { continue; @@ -1887,12 +1887,12 @@ var require_parseParams = __commonJS({ } else if (tmp) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p3] === void 0) { + if (res[p] === void 0) { if (tmp) { - res[p3] = tmp; + res[p] = tmp; } } else { - res[p3][1] = tmp; + res[p][1] = tmp; } return res; } @@ -1908,12 +1908,12 @@ var require_basename = __commonJS({ if (typeof path2 !== "string") { return ""; } - for (var i3 = path2.length - 1; i3 >= 0; --i3) { - switch (path2.charCodeAt(i3)) { + for (var i = path2.length - 1; i >= 0; --i) { + switch (path2.charCodeAt(i)) { case 47: // '/' case 92: - path2 = path2.slice(i3 + 1); + path2 = path2.slice(i + 1); return path2 === ".." || path2 === "." ? "" : path2; } } @@ -1940,7 +1940,7 @@ var require_multipart = __commonJS({ var RE_NAME = /^name$/i; Multipart.detect = /^multipart\/form-data/i; function Multipart(boy, cfg) { - let i3; + let i; let len; const self2 = this; let boundary; @@ -1950,9 +1950,9 @@ var require_multipart = __commonJS({ const defCharset = cfg.defCharset || "utf8"; const preservePath = cfg.preservePath; const fileOpts = { highWaterMark: cfg.fileHwm }; - for (i3 = 0, len = parsedConType.length; i3 < len; ++i3) { - if (Array.isArray(parsedConType[i3]) && RE_BOUNDARY.test(parsedConType[i3][0])) { - boundary = parsedConType[i3][1]; + for (i = 0, len = parsedConType.length; i < len; ++i) { + if (Array.isArray(parsedConType[i]) && RE_BOUNDARY.test(parsedConType[i][0])) { + boundary = parsedConType[i][1]; break; } } @@ -2023,9 +2023,9 @@ var require_multipart = __commonJS({ parsed = parseParams(header["content-type"][0]); if (parsed[0]) { contype = parsed[0].toLowerCase(); - for (i3 = 0, len = parsed.length; i3 < len; ++i3) { - if (RE_CHARSET.test(parsed[i3][0])) { - charset = parsed[i3][1].toLowerCase(); + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_CHARSET.test(parsed[i][0])) { + charset = parsed[i][1].toLowerCase(); break; } } @@ -2042,11 +2042,11 @@ var require_multipart = __commonJS({ if (!RE_FIELD.test(parsed[0])) { return skipPart(part); } - for (i3 = 0, len = parsed.length; i3 < len; ++i3) { - if (RE_NAME.test(parsed[i3][0])) { - fieldname = parsed[i3][1]; - } else if (RE_FILENAME.test(parsed[i3][0])) { - filename = parsed[i3][1]; + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_NAME.test(parsed[i][0])) { + fieldname = parsed[i][1]; + } else if (RE_FILENAME.test(parsed[i][0])) { + filename = parsed[i][1]; if (!preservePath) { filename = basename(filename); } @@ -2087,7 +2087,7 @@ var require_multipart = __commonJS({ cb(); } }); - file._read = function(n3) { + file._read = function(n) { if (!self2._pause) { return; } @@ -2168,11 +2168,11 @@ var require_multipart = __commonJS({ }); } Multipart.prototype.write = function(chunk, cb) { - const r3 = this.parser.write(chunk); - if (r3 && !this._pause) { + const r = this.parser.write(chunk); + if (r && !this._pause) { cb(); } else { - this._needDrain = !r3; + this._needDrain = !r; this._cb = cb; } }; @@ -2196,7 +2196,7 @@ var require_multipart = __commonJS({ this.truncated = false; } inherits(FileStream, Readable); - FileStream.prototype._read = function(n3) { + FileStream.prototype._read = function(n) { }; module2.exports = Multipart; } @@ -2343,34 +2343,34 @@ var require_Decoder = __commonJS({ Decoder.prototype.write = function(str) { str = str.replace(RE_PLUS, " "); let res = ""; - let i3 = 0; - let p3 = 0; + let i = 0; + let p = 0; const len = str.length; - for (; i3 < len; ++i3) { + for (; i < len; ++i) { if (this.buffer !== void 0) { - if (!HEX[str.charCodeAt(i3)]) { + if (!HEX[str.charCodeAt(i)]) { res += "%" + this.buffer; this.buffer = void 0; - --i3; + --i; } else { - this.buffer += str[i3]; - ++p3; + this.buffer += str[i]; + ++p; if (this.buffer.length === 2) { res += String.fromCharCode(parseInt(this.buffer, 16)); this.buffer = void 0; } } - } else if (str[i3] === "%") { - if (i3 > p3) { - res += str.substring(p3, i3); - p3 = i3; + } else if (str[i] === "%") { + if (i > p) { + res += str.substring(p, i); + p = i; } this.buffer = ""; - ++p3; + ++p; } } - if (p3 < len && this.buffer === void 0) { - res += str.substring(p3); + if (p < len && this.buffer === void 0) { + res += str.substring(p); } return res; }; @@ -2398,9 +2398,9 @@ var require_urlencoded = __commonJS({ this.fieldNameSizeLimit = getLimit(limits, "fieldNameSize", 100); this.fieldsLimit = getLimit(limits, "fields", Infinity); let charset; - for (var i3 = 0, len = parsedConType.length; i3 < len; ++i3) { - if (Array.isArray(parsedConType[i3]) && RE_CHARSET.test(parsedConType[i3][0])) { - charset = parsedConType[i3][1].toLowerCase(); + for (var i = 0, len = parsedConType.length; i < len; ++i) { + if (Array.isArray(parsedConType[i]) && RE_CHARSET.test(parsedConType[i][0])) { + charset = parsedConType[i][1].toLowerCase(); break; } } @@ -2430,21 +2430,21 @@ var require_urlencoded = __commonJS({ } let idxeq; let idxamp; - let i3; - let p3 = 0; + let i; + let p = 0; const len = data.length; - while (p3 < len) { + while (p < len) { if (this._state === "key") { idxeq = idxamp = void 0; - for (i3 = p3; i3 < len; ++i3) { + for (i = p; i < len; ++i) { if (!this._checkingBytes) { - ++p3; + ++p; } - if (data[i3] === 61) { - idxeq = i3; + if (data[i] === 61) { + idxeq = i; break; - } else if (data[i3] === 38) { - idxamp = i3; + } else if (data[i] === 38) { + idxamp = i; break; } if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) { @@ -2455,8 +2455,8 @@ var require_urlencoded = __commonJS({ } } if (idxeq !== void 0) { - if (idxeq > p3) { - this._key += this.decoder.write(data.toString("binary", p3, idxeq)); + if (idxeq > p) { + this._key += this.decoder.write(data.toString("binary", p, idxeq)); } this._state = "val"; this._hitLimit = false; @@ -2465,13 +2465,13 @@ var require_urlencoded = __commonJS({ this._bytesVal = 0; this._valTrunc = false; this.decoder.reset(); - p3 = idxeq + 1; + p = idxeq + 1; } else if (idxamp !== void 0) { ++this._fields; let key; const keyTrunc = this._keyTrunc; - if (idxamp > p3) { - key = this._key += this.decoder.write(data.toString("binary", p3, idxamp)); + if (idxamp > p) { + key = this._key += this.decoder.write(data.toString("binary", p, idxamp)); } else { key = this._key; } @@ -2490,33 +2490,33 @@ var require_urlencoded = __commonJS({ false ); } - p3 = idxamp + 1; + p = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i3 > p3) { - this._key += this.decoder.write(data.toString("binary", p3, i3)); + if (i > p) { + this._key += this.decoder.write(data.toString("binary", p, i)); } - p3 = i3; + p = i; if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) { this._checkingBytes = false; this._keyTrunc = true; } } else { - if (p3 < len) { - this._key += this.decoder.write(data.toString("binary", p3)); + if (p < len) { + this._key += this.decoder.write(data.toString("binary", p)); } - p3 = len; + p = len; } } else { idxamp = void 0; - for (i3 = p3; i3 < len; ++i3) { + for (i = p; i < len; ++i) { if (!this._checkingBytes) { - ++p3; + ++p; } - if (data[i3] === 38) { - idxamp = i3; + if (data[i] === 38) { + idxamp = i; break; } if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) { @@ -2528,8 +2528,8 @@ var require_urlencoded = __commonJS({ } if (idxamp !== void 0) { ++this._fields; - if (idxamp > p3) { - this._val += this.decoder.write(data.toString("binary", p3, idxamp)); + if (idxamp > p) { + this._val += this.decoder.write(data.toString("binary", p, idxamp)); } this.boy.emit( "field", @@ -2545,24 +2545,24 @@ var require_urlencoded = __commonJS({ this._bytesKey = 0; this._keyTrunc = false; this.decoder.reset(); - p3 = idxamp + 1; + p = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i3 > p3) { - this._val += this.decoder.write(data.toString("binary", p3, i3)); + if (i > p) { + this._val += this.decoder.write(data.toString("binary", p, i)); } - p3 = i3; + p = i; if (this._val === "" && this.fieldSizeLimit === 0 || (this._bytesVal = this._val.length) === this.fieldSizeLimit) { this._checkingBytes = false; this._valTrunc = true; } } else { - if (p3 < len) { - this._val += this.decoder.write(data.toString("binary", p3)); + if (p < len) { + this._val += this.decoder.write(data.toString("binary", p)); } - p3 = len; + p = len; } } } @@ -2943,26 +2943,26 @@ var require_util2 = __commonJS({ return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException"); } function isValidReasonPhrase(statusText) { - for (let i3 = 0; i3 < statusText.length; ++i3) { - const c3 = statusText.charCodeAt(i3); - if (!(c3 === 9 || // HTAB - c3 >= 32 && c3 <= 126 || // SP / VCHAR - c3 >= 128 && c3 <= 255)) { + for (let i = 0; i < statusText.length; ++i) { + const c = statusText.charCodeAt(i); + if (!(c === 9 || // HTAB + c >= 32 && c <= 126 || // SP / VCHAR + c >= 128 && c <= 255)) { return false; } } return true; } - function isTokenChar(c3) { - return !(c3 >= 127 || c3 <= 32 || c3 === "(" || c3 === ")" || c3 === "<" || c3 === ">" || c3 === "@" || c3 === "," || c3 === ";" || c3 === ":" || c3 === "\\" || c3 === '"' || c3 === "/" || c3 === "[" || c3 === "]" || c3 === "?" || c3 === "=" || c3 === "{" || c3 === "}"); + function isTokenChar(c) { + return !(c >= 127 || c <= 32 || c === "(" || c === ")" || c === "<" || c === ">" || c === "@" || c === "," || c === ";" || c === ":" || c === "\\" || c === '"' || c === "/" || c === "[" || c === "]" || c === "?" || c === "=" || c === "{" || c === "}"); } function isValidHTTPToken(characters) { if (!characters || typeof characters !== "string") { return false; } - for (let i3 = 0; i3 < characters.length; ++i3) { - const c3 = characters.charCodeAt(i3); - if (c3 > 127 || !isTokenChar(c3)) { + for (let i = 0; i < characters.length; ++i) { + const c = characters.charCodeAt(i); + if (c > 127 || !isTokenChar(c)) { return false; } } @@ -2988,8 +2988,8 @@ var require_util2 = __commonJS({ const policyHeader = (headersList.get("referrer-policy") ?? "").split(","); let policy = ""; if (policyHeader.length > 0) { - for (let i3 = policyHeader.length; i3 !== 0; i3--) { - const token = policyHeader[i3 - 1].trim(); + for (let i = policyHeader.length; i !== 0; i--) { + const token = policyHeader[i - 1].trim(); if (referrerPolicyTokens.includes(token)) { policy = token; break; @@ -3178,7 +3178,7 @@ var require_util2 = __commonJS({ if (parsedMetadata.length === 0) { return true; } - const list = parsedMetadata.sort((c3, d3) => d3.algo.localeCompare(c3.algo)); + const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo)); const strongest = list[0].algo; const metadata = list.filter((item) => item.algo === strongest); for (const item of metadata) { @@ -3227,11 +3227,11 @@ var require_util2 = __commonJS({ } function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) { } - function sameOrigin(A2, B2) { - if (A2.origin === B2.origin && A2.origin === "null") { + function sameOrigin(A, B) { + if (A.origin === B.origin && A.origin === "null") { return true; } - if (A2.protocol === B2.protocol && A2.hostname === B2.hostname && A2.port === B2.port) { + if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) { return true; } return false; @@ -3269,9 +3269,9 @@ var require_util2 = __commonJS({ kind, target: iterator }; - const i3 = { + const i = { next() { - if (Object.getPrototypeOf(this) !== i3) { + if (Object.getPrototypeOf(this) !== i) { throw new TypeError( `'next' called on an object that does not implement interface ${name} Iterator.` ); @@ -3290,8 +3290,8 @@ var require_util2 = __commonJS({ // result of concatenating the identifier of the interface and the string " Iterator". [Symbol.toStringTag]: `${name} Iterator` }; - Object.setPrototypeOf(i3, esIteratorPrototype); - return Object.setPrototypeOf({}, i3); + Object.setPrototypeOf(i, esIteratorPrototype); + return Object.setPrototypeOf({}, i); } function iteratorResult(pair, kind) { let result; @@ -3317,15 +3317,15 @@ var require_util2 = __commonJS({ let reader; try { reader = body.stream.getReader(); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); return; } try { const result = await readAllBytes(reader); successSteps(result); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); } } var ReadableStream2 = globalThis.ReadableStream; @@ -3352,8 +3352,8 @@ var require_util2 = __commonJS({ } } function isomorphicEncode(input) { - for (let i3 = 0; i3 < input.length; i3++) { - assert(input.charCodeAt(i3) <= 255); + for (let i = 0; i < input.length; i++) { + assert(input.charCodeAt(i) <= 255); } return input; } @@ -3479,11 +3479,11 @@ var require_webidl = __commonJS({ message: `"${context.value}" is an invalid ${context.type}.` }); }; - webidl.brandCheck = function(V, I2, opts = void 0) { - if (opts?.strict !== false && !(V instanceof I2)) { + webidl.brandCheck = function(V, I, opts = void 0) { + if (opts?.strict !== false && !(V instanceof I)) { throw new TypeError("Illegal invocation"); } else { - return V?.[Symbol.toStringTag] === I2.prototype[Symbol.toStringTag]; + return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]; } }; webidl.argumentLengthCheck = function({ length }, min, ctx) { @@ -3540,51 +3540,51 @@ var require_webidl = __commonJS({ lowerBound = Math.pow(-2, bitLength) - 1; upperBound = Math.pow(2, bitLength - 1) - 1; } - let x3 = Number(V); - if (x3 === 0) { - x3 = 0; + let x = Number(V); + if (x === 0) { + x = 0; } if (opts.enforceRange === true) { - if (Number.isNaN(x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) { throw webidl.errors.exception({ header: "Integer conversion", message: `Could not convert ${V} to an integer.` }); } - x3 = webidl.util.IntegerPart(x3); - if (x3 < lowerBound || x3 > upperBound) { + x = webidl.util.IntegerPart(x); + if (x < lowerBound || x > upperBound) { throw webidl.errors.exception({ header: "Integer conversion", - message: `Value must be between ${lowerBound}-${upperBound}, got ${x3}.` + message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.` }); } - return x3; + return x; } - if (!Number.isNaN(x3) && opts.clamp === true) { - x3 = Math.min(Math.max(x3, lowerBound), upperBound); - if (Math.floor(x3) % 2 === 0) { - x3 = Math.floor(x3); + if (!Number.isNaN(x) && opts.clamp === true) { + x = Math.min(Math.max(x, lowerBound), upperBound); + if (Math.floor(x) % 2 === 0) { + x = Math.floor(x); } else { - x3 = Math.ceil(x3); + x = Math.ceil(x); } - return x3; + return x; } - if (Number.isNaN(x3) || x3 === 0 && Object.is(0, x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x) || x === 0 && Object.is(0, x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) { return 0; } - x3 = webidl.util.IntegerPart(x3); - x3 = x3 % Math.pow(2, bitLength); - if (signedness === "signed" && x3 >= Math.pow(2, bitLength) - 1) { - return x3 - Math.pow(2, bitLength); + x = webidl.util.IntegerPart(x); + x = x % Math.pow(2, bitLength); + if (signedness === "signed" && x >= Math.pow(2, bitLength) - 1) { + return x - Math.pow(2, bitLength); } - return x3; + return x; }; - webidl.util.IntegerPart = function(n3) { - const r3 = Math.floor(Math.abs(n3)); - if (n3 < 0) { - return -1 * r3; + webidl.util.IntegerPart = function(n) { + const r = Math.floor(Math.abs(n)); + if (n < 0) { + return -1 * r; } - return r3; + return r; }; webidl.sequenceConverter = function(converter) { return (V) => { @@ -3642,12 +3642,12 @@ var require_webidl = __commonJS({ return result; }; }; - webidl.interfaceConverter = function(i3) { + webidl.interfaceConverter = function(i) { return (V, opts = {}) => { - if (opts.strict !== false && !(V instanceof i3)) { + if (opts.strict !== false && !(V instanceof i)) { throw webidl.errors.exception({ - header: i3.name, - message: `Expected ${V} to be an instance of ${i3.name}.` + header: i.name, + message: `Expected ${V} to be an instance of ${i.name}.` }); } return V; @@ -3712,40 +3712,40 @@ var require_webidl = __commonJS({ return String(V); }; webidl.converters.ByteString = function(V) { - const x3 = webidl.converters.DOMString(V); - for (let index = 0; index < x3.length; index++) { - const charCode = x3.charCodeAt(index); + const x = webidl.converters.DOMString(V); + for (let index = 0; index < x.length; index++) { + const charCode = x.charCodeAt(index); if (charCode > 255) { throw new TypeError( `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${charCode} which is greater than 255.` ); } } - return x3; + return x; }; webidl.converters.USVString = toUSVString; webidl.converters.boolean = function(V) { - const x3 = Boolean(V); - return x3; + const x = Boolean(V); + return x; }; webidl.converters.any = function(V) { return V; }; webidl.converters["long long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 64, "signed"); - return x3; + const x = webidl.util.ConvertToInt(V, 64, "signed"); + return x; }; webidl.converters["unsigned long long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 64, "unsigned"); - return x3; + const x = webidl.util.ConvertToInt(V, 64, "unsigned"); + return x; }; webidl.converters["unsigned long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 32, "unsigned"); - return x3; + const x = webidl.util.ConvertToInt(V, 32, "unsigned"); + return x; }; webidl.converters["unsigned short"] = function(V, opts) { - const x3 = webidl.util.ConvertToInt(V, 16, "unsigned", opts); - return x3; + const x = webidl.util.ConvertToInt(V, 16, "unsigned", opts); + return x; }; webidl.converters.ArrayBuffer = function(V, opts = {}) { if (webidl.util.Type(V) !== "Object" || !types.isAnyArrayBuffer(V)) { @@ -3904,17 +3904,17 @@ var require_dataURL = __commonJS({ } function percentDecode(input) { const output = []; - for (let i3 = 0; i3 < input.length; i3++) { - const byte = input[i3]; + for (let i = 0; i < input.length; i++) { + const byte = input[i]; if (byte !== 37) { output.push(byte); - } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i3 + 1], input[i3 + 2]))) { + } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))) { output.push(37); } else { - const nextTwoBytes = String.fromCharCode(input[i3 + 1], input[i3 + 2]); + const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2]); const bytePoint = Number.parseInt(nextTwoBytes, 16); output.push(bytePoint); - i3 += 2; + i += 2; } } return Uint8Array.from(output); @@ -4127,25 +4127,25 @@ var require_file = __commonJS({ fileBits = webidl.converters["sequence"](fileBits); fileName = webidl.converters.USVString(fileName); options = webidl.converters.FilePropertyBag(options); - const n3 = fileName; - let t3 = options.type; - let d3; + const n = fileName; + let t = options.type; + let d; substep: { - if (t3) { - t3 = parseMIMEType(t3); - if (t3 === "failure") { - t3 = ""; + if (t) { + t = parseMIMEType(t); + if (t === "failure") { + t = ""; break substep; } - t3 = serializeAMimeType(t3).toLowerCase(); + t = serializeAMimeType(t).toLowerCase(); } - d3 = options.lastModified; + d = options.lastModified; } - super(processBlobParts(fileBits, options), { type: t3 }); + super(processBlobParts(fileBits, options), { type: t }); this[kState] = { - name: n3, - lastModified: d3, - type: t3 + name: n, + lastModified: d, + type: t }; } get name() { @@ -4163,14 +4163,14 @@ var require_file = __commonJS({ }; var FileLike = class _FileLike { constructor(blobLike, fileName, options = {}) { - const n3 = fileName; - const t3 = options.type; - const d3 = options.lastModified ?? Date.now(); + const n = fileName; + const t = options.type; + const d = options.lastModified ?? Date.now(); this[kState] = { blobLike, - name: n3, - type: t3, - lastModified: d3 + name: n, + type: t, + lastModified: d }; } stream(...args) { @@ -4262,11 +4262,11 @@ var require_file = __commonJS({ const bytes = []; for (const element of parts) { if (typeof element === "string") { - let s3 = element; + let s = element; if (options.endings === "native") { - s3 = convertLineEndingsNative(s3); + s = convertLineEndingsNative(s); } - bytes.push(new TextEncoder().encode(s3)); + bytes.push(new TextEncoder().encode(s)); } else if (types.isAnyArrayBuffer(element) || types.isTypedArray(element)) { if (!element.buffer) { bytes.push(new Uint8Array(element)); @@ -4281,12 +4281,12 @@ var require_file = __commonJS({ } return bytes; } - function convertLineEndingsNative(s3) { + function convertLineEndingsNative(s) { let nativeLineEnding = "\n"; if (process.platform === "win32") { nativeLineEnding = "\r\n"; } - return s3.replace(/\r?\n/g, nativeLineEnding); + return s.replace(/\r?\n/g, nativeLineEnding); } function isFileLike(object) { return NativeFile && object instanceof NativeFile || object instanceof File || object && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && object[Symbol.toStringTag] === "File"; @@ -4777,8 +4777,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r const successSteps = (data) => { try { promise.resolve(convertBytesToJSValue(data)); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); } }; if (object[kState].body == null) { @@ -4933,13 +4933,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - processHeader(this, headers[i3], headers[i3 + 1]); + for (let i = 0; i < headers.length; i += 2) { + processHeader(this, headers[i], headers[i + 1]); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; processHeader(this, key, headers[key]); } } else if (headers != null) { @@ -5044,13 +5044,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - processHeader(request, headers[i3], headers[i3 + 1], true); + for (let i = 0; i < headers.length; i += 2) { + processHeader(request, headers[i], headers[i + 1], true); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; processHeader(request, key, headers[key], true); } } else if (headers != null) { @@ -5120,12 +5120,12 @@ var require_request = __commonJS({ throw new InvalidArgumentError("invalid header key"); } else { if (Array.isArray(val2)) { - for (let i3 = 0; i3 < val2.length; i3++) { + for (let i = 0; i < val2.length; i++) { if (skipAppend) { - if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val2[i3], skipAppend)}`; - else request.headers[key] = processHeaderValue(key, val2[i3], skipAppend); + if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val2[i], skipAppend)}`; + else request.headers[key] = processHeaderValue(key, val2[i], skipAppend); } else { - request.headers += processHeaderValue(key, val2[i3]); + request.headers += processHeaderValue(key, val2[i]); } } } else { @@ -5193,8 +5193,8 @@ var require_dispatcher_base = __commonJS({ } set interceptors(newInterceptors) { if (newInterceptors) { - for (let i3 = newInterceptors.length - 1; i3 >= 0; i3--) { - const interceptor = this[kInterceptors][i3]; + for (let i = newInterceptors.length - 1; i >= 0; i--) { + const interceptor = this[kInterceptors][i]; if (typeof interceptor !== "function") { throw new InvalidArgumentError("interceptor must be an function"); } @@ -5230,8 +5230,8 @@ var require_dispatcher_base = __commonJS({ const onClosed = () => { const callbacks = this[kOnClosed]; this[kOnClosed] = null; - for (let i3 = 0; i3 < callbacks.length; i3++) { - callbacks[i3](null, null); + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null); } }; this[kClose]().then(() => this.destroy()).then(() => { @@ -5273,8 +5273,8 @@ var require_dispatcher_base = __commonJS({ const onDestroyed = () => { const callbacks = this[kOnDestroyed]; this[kOnDestroyed] = null; - for (let i3 = 0; i3 < callbacks.length; i3++) { - callbacks[i3](null, null); + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null); } }; this[kDestroy](err).then(() => { @@ -5287,8 +5287,8 @@ var require_dispatcher_base = __commonJS({ return this[kDispatch](opts, handler); } let dispatch = this[kDispatch].bind(this); - for (let i3 = this[kInterceptors].length - 1; i3 >= 0; i3--) { - dispatch = this[kInterceptors][i3](dispatch); + for (let i = this[kInterceptors].length - 1; i >= 0; i--) { + dispatch = this[kInterceptors][i](dispatch); } this[kInterceptedDispatch] = dispatch; return dispatch(opts, handler); @@ -5454,11 +5454,11 @@ var require_connect = __commonJS({ }; } let s1 = null; - let s22 = null; + let s2 = null; const timeoutId = setTimeout(() => { s1 = setImmediate(() => { if (process.platform === "win32") { - s22 = setImmediate(() => onConnectTimeout2()); + s2 = setImmediate(() => onConnectTimeout2()); } else { onConnectTimeout2(); } @@ -5467,7 +5467,7 @@ var require_connect = __commonJS({ return () => { clearTimeout(timeoutId); clearImmediate(s1); - clearImmediate(s22); + clearImmediate(s2); }; } function onConnectTimeout(socket) { @@ -5677,9 +5677,9 @@ var require_constants2 = __commonJS({ FINISH2[FINISH2["UNSAFE"] = 2] = "UNSAFE"; })(FINISH = exports2.FINISH || (exports2.FINISH = {})); exports2.ALPHA = []; - for (let i3 = "A".charCodeAt(0); i3 <= "Z".charCodeAt(0); i3++) { - exports2.ALPHA.push(String.fromCharCode(i3)); - exports2.ALPHA.push(String.fromCharCode(i3 + 32)); + for (let i = "A".charCodeAt(0); i <= "Z".charCodeAt(0); i++) { + exports2.ALPHA.push(String.fromCharCode(i)); + exports2.ALPHA.push(String.fromCharCode(i + 32)); } exports2.NUM_MAP = { 0: 0, @@ -5765,8 +5765,8 @@ var require_constants2 = __commonJS({ "~" ].concat(exports2.ALPHANUM); exports2.URL_CHAR = exports2.STRICT_URL_CHAR.concat([" ", "\f"]); - for (let i3 = 128; i3 <= 255; i3++) { - exports2.URL_CHAR.push(i3); + for (let i = 128; i <= 255; i++) { + exports2.URL_CHAR.push(i); } exports2.HEX = exports2.NUM.concat(["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"]); exports2.STRICT_TOKEN = [ @@ -5788,12 +5788,12 @@ var require_constants2 = __commonJS({ ].concat(exports2.ALPHANUM); exports2.TOKEN = exports2.STRICT_TOKEN.concat([" "]); exports2.HEADER_CHARS = [" "]; - for (let i3 = 32; i3 <= 255; i3++) { - if (i3 !== 127) { - exports2.HEADER_CHARS.push(i3); + for (let i = 32; i <= 255; i++) { + if (i !== 127) { + exports2.HEADER_CHARS.push(i); } } - exports2.CONNECTION_TOKEN_CHARS = exports2.HEADER_CHARS.filter((c3) => c3 !== 44); + exports2.CONNECTION_TOKEN_CHARS = exports2.HEADER_CHARS.filter((c) => c !== 44); exports2.MAJOR = exports2.NUM_MAP; exports2.MINOR = exports2.MAJOR; var HEADER_STATE; @@ -5926,9 +5926,9 @@ var require_RedirectHandler = __commonJS({ if (redirectableStatusCodes.indexOf(statusCode) === -1) { return null; } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (headers[i3].toString().toLowerCase() === "location") { - return headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toString().toLowerCase() === "location") { + return headers[i + 1]; } } } @@ -5938,9 +5938,9 @@ var require_RedirectHandler = __commonJS({ function cleanRequestHeaders(headers, removeContent, unknownOrigin) { const ret = []; if (Array.isArray(headers)) { - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (!shouldRemoveHeader(headers[i3], removeContent, unknownOrigin)) { - ret.push(headers[i3], headers[i3 + 1]); + for (let i = 0; i < headers.length; i += 2) { + if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) { + ret.push(headers[i], headers[i + 1]); } } } else if (headers && typeof headers === "object") { @@ -6310,8 +6310,8 @@ var require_client = __commonJS({ async [kDestroy](err) { return new Promise((resolve) => { const requests = this[kQueue].splice(this[kPendingIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(this, request, err); } const callback = () => { @@ -6359,8 +6359,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(this[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(this, request, err); } } else if (client[kRunning] > 0) { @@ -6386,45 +6386,45 @@ var require_client = __commonJS({ let mod; try { mod = await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(), "base64")); - } catch (e3) { + } catch (e) { mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require_llhttp_wasm(), "base64")); } return await WebAssembly.instantiate(mod, { env: { /* eslint-disable camelcase */ - wasm_on_url: (p3, at, len) => { + wasm_on_url: (p, at, len) => { return 0; }, - wasm_on_status: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_status: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_begin: (p3) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_message_begin: (p) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onMessageBegin() || 0; }, - wasm_on_header_field: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_header_field: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_header_value: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_header_value: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_headers_complete: (p3, statusCode, upgrade, shouldKeepAlive) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0; }, - wasm_on_body: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_body: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_complete: (p3) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_message_complete: (p) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onMessageComplete() || 0; } /* eslint-enable camelcase */ @@ -6838,8 +6838,8 @@ var require_client = __commonJS({ if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") { assert(client[kPendingIdx] === client[kRunningIdx]); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(client, request, err); } assert(client[kSize] === 0); @@ -6869,8 +6869,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(client[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(client, request, err); } } else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") { @@ -6932,8 +6932,8 @@ var require_client = __commonJS({ } client[kConnecting] = false; assert(socket); - const isH22 = socket.alpnProtocol === "h2"; - if (isH22) { + const isH2 = socket.alpnProtocol === "h2"; + if (isH2) { if (!h2ExperimentalWarned) { h2ExperimentalWarned = true; process.emitWarning("H2 support is experimental, expect them to change at any time.", { @@ -7508,13 +7508,13 @@ upgrade: ${upgrade}\r } async function writeBlob({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { assert(contentLength === body.size, "blob body must have content length"); - const isH22 = client[kHTTPConnVersion] === "h2"; + const isH2 = client[kHTTPConnVersion] === "h2"; try { if (contentLength != null && contentLength !== body.size) { throw new RequestContentLengthMismatchError(); } const buffer = Buffer.from(await body.arrayBuffer()); - if (isH22) { + if (isH2) { h2stream.cork(); h2stream.write(buffer); h2stream.uncork(); @@ -7533,7 +7533,7 @@ upgrade: ${upgrade}\r } resume(client); } catch (err) { - util.destroy(isH22 ? h2stream : socket, err); + util.destroy(isH2 ? h2stream : socket, err); } } async function writeIterable({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { @@ -7845,7 +7845,7 @@ var require_pool_base = __commonJS({ pool.emit("drain", origin, [pool, ...targets]); } if (pool[kClosedResolve] && queue.isEmpty()) { - Promise.all(pool[kClients].map((c3) => c3.close())).then(pool[kClosedResolve]); + Promise.all(pool[kClients].map((c) => c.close())).then(pool[kClosedResolve]); } }; this[kOnConnect] = (origin, targets) => { @@ -7894,7 +7894,7 @@ var require_pool_base = __commonJS({ } async [kClose]() { if (this[kQueue].isEmpty()) { - return Promise.all(this[kClients].map((c3) => c3.close())); + return Promise.all(this[kClients].map((c) => c.close())); } else { return new Promise((resolve) => { this[kClosedResolve] = resolve; @@ -7909,7 +7909,7 @@ var require_pool_base = __commonJS({ } item.handler.onError(err); } - return Promise.all(this[kClients].map((c3) => c3.destroy(err))); + return Promise.all(this[kClients].map((c) => c.destroy(err))); } [kDispatch](opts, handler) { const dispatcher = this[kGetDispatcher](); @@ -8065,9 +8065,9 @@ var require_balanced_pool = __commonJS({ var kWeight = Symbol("kWeight"); var kMaxWeightPerServer = Symbol("kMaxWeightPerServer"); var kErrorPenalty = Symbol("kErrorPenalty"); - function getGreatestCommonDivisor(a3, b3) { - if (b3 === 0) return a3; - return getGreatestCommonDivisor(b3, a3 % b3); + function getGreatestCommonDivisor(a, b) { + if (b === 0) return a; + return getGreatestCommonDivisor(b, a % b); } function defaultFactory(origin, opts) { return new Pool(origin, opts); @@ -8121,7 +8121,7 @@ var require_balanced_pool = __commonJS({ return this; } _updateBalancedPoolStats() { - this[kGreatestCommonDivisor] = this[kClients].map((p3) => p3[kWeight]).reduce(getGreatestCommonDivisor, 0); + this[kGreatestCommonDivisor] = this[kClients].map((p) => p[kWeight]).reduce(getGreatestCommonDivisor, 0); } removeUpstream(upstream) { const upstreamOrigin = parseOrigin(upstream).origin; @@ -8132,7 +8132,7 @@ var require_balanced_pool = __commonJS({ return this; } get upstreams() { - return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p3) => p3[kUrl].origin); + return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p) => p[kUrl].origin); } [kGetDispatcher]() { if (this[kClients].length === 0) { @@ -8142,7 +8142,7 @@ var require_balanced_pool = __commonJS({ if (!dispatcher) { return; } - const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a3, b3) => a3 && b3, true); + const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a, b) => a && b, true); if (allClientsBusy) { return; } @@ -8685,7 +8685,7 @@ var require_api_request = __commonJS({ var { getResolveErrorBodyCallback } = require_util3(); var { AsyncResource } = require("async_hooks"); var { addSignal, removeSignal } = require_abort_signal(); - var RequestHandler3 = class extends AsyncResource { + var RequestHandler = class extends AsyncResource { constructor(opts, callback) { if (!opts || typeof opts !== "object") { throw new InvalidArgumentError("invalid opts"); @@ -8812,7 +8812,7 @@ var require_api_request = __commonJS({ }); } try { - this.dispatch(opts, new RequestHandler3(opts, callback)); + this.dispatch(opts, new RequestHandler(opts, callback)); } catch (err) { if (typeof callback !== "function") { throw err; @@ -9468,9 +9468,9 @@ var require_mock_utils = __commonJS({ } function getHeaderByName(headers, key) { if (Array.isArray(headers)) { - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (headers[i3].toLocaleLowerCase() === key.toLocaleLowerCase()) { - return headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) { + return headers[i + 1]; } } return void 0; @@ -9590,7 +9590,7 @@ var require_mock_utils = __commonJS({ return Object.entries(data).reduce((keyValuePairs, [key, value]) => [ ...keyValuePairs, Buffer.from(`${key}`), - Array.isArray(value) ? value.map((x3) => Buffer.from(`${x3}`)) : Buffer.from(`${value}`) + Array.isArray(value) ? value.map((x) => Buffer.from(`${x}`)) : Buffer.from(`${value}`) ], []); } function getStatusText(statusCode) { @@ -9626,9 +9626,9 @@ var require_mock_utils = __commonJS({ } else { handleReply(this[kDispatches]); } - function handleReply(mockDispatches, _data3 = data) { + function handleReply(mockDispatches, _data = data) { const optsHeaders = Array.isArray(opts.headers) ? buildHeadersFromArray(opts.headers) : opts.headers; - const body = typeof _data3 === "function" ? _data3({ ...opts, headers: optsHeaders }) : _data3; + const body = typeof _data === "function" ? _data({ ...opts, headers: optsHeaders }) : _data; if (isPromise(body)) { body.then((newData) => handleReply(mockDispatches, newData)); return; @@ -10317,8 +10317,8 @@ var require_proxy_agent = __commonJS({ function buildHeaders(headers) { if (Array.isArray(headers)) { const headersPair = {}; - for (let i3 = 0; i3 < headers.length; i3 += 2) { - headersPair[headers[i3]] = headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + headersPair[headers[i]] = headers[i + 1]; } return headersPair; } @@ -10415,9 +10415,9 @@ var require_headers = __commonJS({ var kHeadersMap = Symbol("headers map"); var kHeadersSortedMap = Symbol("headers map sorted"); function headerValueNormalize(potentialValue) { - let i3 = potentialValue.length; - while (/[\r\n\t ]/.test(potentialValue.charAt(--i3))) ; - return potentialValue.slice(0, i3 + 1).replace(/^[\r\n\t ]+/, ""); + let i = potentialValue.length; + while (/[\r\n\t ]/.test(potentialValue.charAt(--i))) ; + return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, ""); } function fill(headers, object) { if (Array.isArray(object)) { @@ -10649,7 +10649,7 @@ var require_headers = __commonJS({ return this[kHeadersList][kHeadersSortedMap]; } const headers = []; - const names = [...this[kHeadersList]].sort((a3, b3) => a3[0] < b3[0] ? -1 : 1); + const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1); const cookies = this[kHeadersList].cookies; for (const [name, value] of names) { if (name === "set-cookie") { @@ -10987,12 +10987,12 @@ var require_response = __commonJS({ ...state2 }; return new Proxy(response, { - get(target, p3) { - return p3 in state2 ? state2[p3] : target[p3]; + get(target, p) { + return p in state2 ? state2[p] : target[p]; }, - set(target, p3, value) { - assert(!(p3 in state2)); - target[p3] = value; + set(target, p, value) { + assert(!(p in state2)); + target[p] = value; return true; } }); @@ -11864,18 +11864,18 @@ var require_fetch = __commonJS({ }; async function fetch2(input, init = {}) { webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" }); - const p3 = createDeferredPromise(); + const p = createDeferredPromise(); let requestObject; try { requestObject = new Request2(input, init); - } catch (e3) { - p3.reject(e3); - return p3.promise; + } catch (e) { + p.reject(e); + return p.promise; } const request = requestObject[kState]; if (requestObject.signal.aborted) { - abortFetch(p3, request, null, requestObject.signal.reason); - return p3.promise; + abortFetch(p, request, null, requestObject.signal.reason); + return p.promise; } const globalObject = request.client.globalObject; if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") { @@ -11891,7 +11891,7 @@ var require_fetch = __commonJS({ locallyAborted = true; assert(controller != null); controller.abort(requestObject.signal.reason); - abortFetch(p3, request, responseObject, requestObject.signal.reason); + abortFetch(p, request, responseObject, requestObject.signal.reason); } ); const handleFetchDone = (response) => finalizeAndReportTiming(response, "fetch"); @@ -11900,11 +11900,11 @@ var require_fetch = __commonJS({ return; } if (response.aborted) { - abortFetch(p3, request, responseObject, controller.serializedAbortReason); + abortFetch(p, request, responseObject, controller.serializedAbortReason); return; } if (response.type === "error") { - p3.reject( + p.reject( Object.assign(new TypeError("fetch failed"), { cause: response.error }) ); return; @@ -11915,7 +11915,7 @@ var require_fetch = __commonJS({ responseObject[kHeaders][kHeadersList] = response.headersList; responseObject[kHeaders][kGuard] = "immutable"; responseObject[kHeaders][kRealm] = relevantRealm; - p3.resolve(responseObject); + p.resolve(responseObject); }; controller = fetching({ request, @@ -11924,7 +11924,7 @@ var require_fetch = __commonJS({ dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici }); - return p3.promise; + return p.promise; } function finalizeAndReportTiming(response, initiatorType = "other") { if (response.type === "error" && response.aborted) { @@ -11963,11 +11963,11 @@ var require_fetch = __commonJS({ performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState); } } - function abortFetch(p3, request, responseObject, error2) { + function abortFetch(p, request, responseObject, error2) { if (!error2) { error2 = new DOMException2("The operation was aborted.", "AbortError"); } - p3.reject(error2); + p.reject(error2); if (request.body != null && isReadable(request.body?.stream)) { request.body.stream.cancel(error2).catch((err) => { if (err.code === "ERR_INVALID_STATE") { @@ -12532,14 +12532,14 @@ var require_fetch = __commonJS({ fetchParams.processRequestEndOfBody(); } }; - const processBodyError = (e3) => { + const processBodyError = (e) => { if (isCancelled(fetchParams)) { return; } - if (e3.name === "AbortError") { + if (e.name === "AbortError") { fetchParams.controller.abort(); } else { - fetchParams.controller.terminate(e3); + fetchParams.controller.terminate(e); } }; requestBody = async function* () { @@ -12688,11 +12688,11 @@ var require_fetch = __commonJS({ let location = ""; const headers = new Headers2(); if (Array.isArray(headersList)) { - for (let n3 = 0; n3 < headersList.length; n3 += 2) { - const key = headersList[n3 + 0].toString("latin1"); - const val2 = headersList[n3 + 1].toString("latin1"); + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString("latin1"); + const val2 = headersList[n + 1].toString("latin1"); if (key.toLowerCase() === "content-encoding") { - codings = val2.toLowerCase().split(",").map((x3) => x3.trim()); + codings = val2.toLowerCase().split(",").map((x) => x.trim()); } else if (key.toLowerCase() === "location") { location = val2; } @@ -12703,7 +12703,7 @@ var require_fetch = __commonJS({ for (const key of keys) { const val2 = headersList[key]; if (key.toLowerCase() === "content-encoding") { - codings = val2.toLowerCase().split(",").map((x3) => x3.trim()).reverse(); + codings = val2.toLowerCase().split(",").map((x) => x.trim()).reverse(); } else if (key.toLowerCase() === "location") { location = val2; } @@ -12772,9 +12772,9 @@ var require_fetch = __commonJS({ return; } const headers = new Headers2(); - for (let n3 = 0; n3 < headersList.length; n3 += 2) { - const key = headersList[n3 + 0].toString("latin1"); - const val2 = headersList[n3 + 1].toString("latin1"); + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString("latin1"); + const val2 = headersList[n + 1].toString("latin1"); headers.append(key, val2); } resolve({ @@ -13258,8 +13258,8 @@ var require_util4 = __commonJS({ } })(); } - function fireAProgressEvent(e3, reader) { - const event = new ProgressEvent(e3, { + function fireAProgressEvent(e, reader) { + const event = new ProgressEvent(e, { bubbles: false, cancelable: false }); @@ -13324,25 +13324,25 @@ var require_util4 = __commonJS({ return new TextDecoder(encoding).decode(sliced); } function BOMSniffing(ioQueue) { - const [a3, b3, c3] = ioQueue; - if (a3 === 239 && b3 === 187 && c3 === 191) { + const [a, b, c] = ioQueue; + if (a === 239 && b === 187 && c === 191) { return "UTF-8"; - } else if (a3 === 254 && b3 === 255) { + } else if (a === 254 && b === 255) { return "UTF-16BE"; - } else if (a3 === 255 && b3 === 254) { + } else if (a === 255 && b === 254) { return "UTF-16LE"; } return null; } function combineByteSequences(sequences) { - const size = sequences.reduce((a3, b3) => { - return a3 + b3.byteLength; + const size = sequences.reduce((a, b) => { + return a + b.byteLength; }, 0); let offset = 0; - return sequences.reduce((a3, b3) => { - a3.set(b3, offset); - offset += b3.byteLength; - return a3; + return sequences.reduce((a, b) => { + a.set(b, offset); + offset += b.byteLength; + return a; }, new Uint8Array(size)); } module2.exports = { @@ -13629,9 +13629,9 @@ var require_util5 = __commonJS({ var assert = require("assert"); var { URLSerializer } = require_dataURL(); var { isValidHeaderName } = require_util2(); - function urlEquals(A2, B2, excludeFragment = false) { - const serializedA = URLSerializer(A2, excludeFragment); - const serializedB = URLSerializer(B2, excludeFragment); + function urlEquals(A, B, excludeFragment = false) { + const serializedA = URLSerializer(A, excludeFragment); + const serializedB = URLSerializer(B, excludeFragment); return serializedA === serializedB; } function fieldValues(header) { @@ -13688,25 +13688,25 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.match" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - const p3 = await this.matchAll(request, options); - if (p3.length === 0) { + const p = await this.matchAll(request, options); + if (p.length === 0) { return; } - return p3[0]; + return p[0]; } async matchAll(request = void 0, options = {}) { webidl.brandCheck(this, _Cache); if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request !== void 0) { if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } } const responses = []; @@ -13715,7 +13715,7 @@ var require_cache = __commonJS({ responses.push(requestResponse[1]); } } else { - const requestResponses = this.#queryCache(r3, options); + const requestResponses = this.#queryCache(r, options); for (const requestResponse of requestResponses) { responses.push(requestResponse[1]); } @@ -13750,8 +13750,8 @@ var require_cache = __commonJS({ if (typeof request === "string") { continue; } - const r3 = request[kState]; - if (!urlIsHttpHttpsScheme(r3.url) || r3.method !== "GET") { + const r = request[kState]; + if (!urlIsHttpHttpsScheme(r.url) || r.method !== "GET") { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme when method is not GET." @@ -13760,19 +13760,19 @@ var require_cache = __commonJS({ } const fetchControllers = []; for (const request of requests) { - const r3 = new Request2(request)[kState]; - if (!urlIsHttpHttpsScheme(r3.url)) { + const r = new Request2(request)[kState]; + if (!urlIsHttpHttpsScheme(r.url)) { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme." }); } - r3.initiator = "fetch"; - r3.destination = "subresource"; - requestList.push(r3); + r.initiator = "fetch"; + r.destination = "subresource"; + requestList.push(r); const responsePromise = createDeferredPromise(); fetchControllers.push(fetching({ - request: r3, + request: r, dispatcher: getGlobalDispatcher(), processResponse(response) { if (response.type === "error" || response.status === 206 || response.status < 200 || response.status > 299) { @@ -13806,8 +13806,8 @@ var require_cache = __commonJS({ })); responsePromises.push(responsePromise.promise); } - const p3 = Promise.all(responsePromises); - const responses = await p3; + const p = Promise.all(responsePromises); + const responses = await p; const operations = []; let index = 0; for (const response of responses) { @@ -13826,8 +13826,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13906,8 +13906,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13923,20 +13923,20 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.delete" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return false; } } else { assert(typeof request === "string"); - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } const operations = []; const operation = { type: "delete", - request: r3, + request: r, options }; operations.push(operation); @@ -13945,8 +13945,8 @@ var require_cache = __commonJS({ let requestResponses; try { requestResponses = this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13967,15 +13967,15 @@ var require_cache = __commonJS({ webidl.brandCheck(this, _Cache); if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request !== void 0) { if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } } const promise = createDeferredPromise(); @@ -13985,7 +13985,7 @@ var require_cache = __commonJS({ requests.push(requestResponse[0]); } } else { - const requestResponses = this.#queryCache(r3, options); + const requestResponses = this.#queryCache(r, options); for (const requestResponse of requestResponses) { requests.push(requestResponse[0]); } @@ -14010,8 +14010,8 @@ var require_cache = __commonJS({ * @returns {requestResponseList} */ #batchCacheOperations(operations) { - const cache3 = this.#relevantRequestResponseList; - const backupCache = [...cache3]; + const cache = this.#relevantRequestResponseList; + const backupCache = [...cache]; const addedItems = []; const resultList = []; try { @@ -14038,9 +14038,9 @@ var require_cache = __commonJS({ return []; } for (const requestResponse of requestResponses) { - const idx = cache3.indexOf(requestResponse); + const idx = cache.indexOf(requestResponse); assert(idx !== -1); - cache3.splice(idx, 1); + cache.splice(idx, 1); } } else if (operation.type === "put") { if (operation.response == null) { @@ -14049,14 +14049,14 @@ var require_cache = __commonJS({ message: "put operation should have an associated response" }); } - const r3 = operation.request; - if (!urlIsHttpHttpsScheme(r3.url)) { + const r = operation.request; + if (!urlIsHttpHttpsScheme(r.url)) { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "expected http or https scheme" }); } - if (r3.method !== "GET") { + if (r.method !== "GET") { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "not get method" @@ -14070,20 +14070,20 @@ var require_cache = __commonJS({ } requestResponses = this.#queryCache(operation.request); for (const requestResponse of requestResponses) { - const idx = cache3.indexOf(requestResponse); + const idx = cache.indexOf(requestResponse); assert(idx !== -1); - cache3.splice(idx, 1); + cache.splice(idx, 1); } - cache3.push([operation.request, operation.response]); + cache.push([operation.request, operation.response]); addedItems.push([operation.request, operation.response]); } resultList.push([operation.request, operation.response]); } return resultList; - } catch (e3) { + } catch (e) { this.#relevantRequestResponseList.length = 0; this.#relevantRequestResponseList = backupCache; - throw e3; + throw e; } } /** @@ -14214,13 +14214,13 @@ var require_cachestorage = __commonJS({ if (options.cacheName != null) { if (this.#caches.has(options.cacheName)) { const cacheList = this.#caches.get(options.cacheName); - const cache3 = new Cache(kConstruct, cacheList); - return await cache3.match(request, options); + const cache = new Cache(kConstruct, cacheList); + return await cache.match(request, options); } } else { for (const cacheList of this.#caches.values()) { - const cache3 = new Cache(kConstruct, cacheList); - const response = await cache3.match(request, options); + const cache = new Cache(kConstruct, cacheList); + const response = await cache.match(request, options); if (response !== void 0) { return response; } @@ -14248,12 +14248,12 @@ var require_cachestorage = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.open" }); cacheName = webidl.converters.DOMString(cacheName); if (this.#caches.has(cacheName)) { - const cache4 = this.#caches.get(cacheName); - return new Cache(kConstruct, cache4); + const cache2 = this.#caches.get(cacheName); + return new Cache(kConstruct, cache2); } - const cache3 = []; - this.#caches.set(cacheName, cache3); - return new Cache(kConstruct, cache3); + const cache = []; + this.#caches.set(cacheName, cache); + return new Cache(kConstruct, cache); } /** * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete @@ -15053,8 +15053,8 @@ var require_util7 = __commonJS({ function isClosed(ws) { return ws[kReadyState] === states.CLOSED; } - function fireEvent(e3, target, eventConstructor = Event, eventInitDict) { - const event = new eventConstructor(e3, eventInitDict); + function fireEvent(e, target, eventConstructor = Event, eventInitDict) { + const event = new eventConstructor(e, eventInitDict); target.dispatchEvent(event); } function websocketMessageReceived(ws, type, data) { @@ -15320,8 +15320,8 @@ var require_frame = __commonJS({ buffer.writeUIntBE(bodyLength, 4, 6); } buffer[1] |= 128; - for (let i3 = 0; i3 < bodyLength; i3++) { - buffer[offset + i3] = this.frameData[i3] ^ this.maskKey[i3 % 4]; + for (let i = 0; i < bodyLength; i++) { + buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]; } return buffer; } @@ -15359,7 +15359,7 @@ var require_receiver = __commonJS({ * @param {Buffer} chunk * @param {() => void} callback */ - _write(chunk, _2, callback) { + _write(chunk, _, callback) { this.#buffers.push(chunk); this.#byteOffset += chunk.length; this.run(callback); @@ -15503,34 +15503,34 @@ var require_receiver = __commonJS({ * @param {number} n * @returns {Buffer|null} */ - consume(n3) { - if (n3 > this.#byteOffset) { + consume(n) { + if (n > this.#byteOffset) { return null; - } else if (n3 === 0) { + } else if (n === 0) { return emptyBuffer; } - if (this.#buffers[0].length === n3) { + if (this.#buffers[0].length === n) { this.#byteOffset -= this.#buffers[0].length; return this.#buffers.shift(); } - const buffer = Buffer.allocUnsafe(n3); + const buffer = Buffer.allocUnsafe(n); let offset = 0; - while (offset !== n3) { + while (offset !== n) { const next = this.#buffers[0]; const { length } = next; - if (length + offset === n3) { + if (length + offset === n) { buffer.set(this.#buffers.shift(), offset); break; - } else if (length + offset > n3) { - buffer.set(next.subarray(0, n3 - offset), offset); - this.#buffers[0] = next.subarray(n3 - offset); + } else if (length + offset > n) { + buffer.set(next.subarray(0, n - offset), offset); + this.#buffers[0] = next.subarray(n - offset); break; } else { buffer.set(this.#buffers.shift(), offset); offset += next.length; } } - this.#byteOffset -= n3; + this.#byteOffset -= n; return buffer; } parseCloseBody(onlyCode, data) { @@ -15624,8 +15624,8 @@ var require_websocket = __commonJS({ let urlRecord; try { urlRecord = new URL(url, baseURL); - } catch (e3) { - throw new DOMException2(e3, "SyntaxError"); + } catch (e) { + throw new DOMException2(e, "SyntaxError"); } if (urlRecord.protocol === "http:") { urlRecord.protocol = "ws:"; @@ -15644,10 +15644,10 @@ var require_websocket = __commonJS({ if (typeof protocols === "string") { protocols = [protocols]; } - if (protocols.length !== new Set(protocols.map((p3) => p3.toLowerCase())).size) { + if (protocols.length !== new Set(protocols.map((p) => p.toLowerCase())).size) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } - if (protocols.length > 0 && !protocols.every((p3) => isValidSubprotocol(p3))) { + if (protocols.length > 0 && !protocols.every((p) => isValidSubprotocol(p))) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } this[kWebSocketURL] = new URL(urlRecord.href); @@ -16114,29 +16114,29 @@ var require_undici = __commonJS({ var require_lib = __commonJS({ "../../node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -16151,15 +16151,15 @@ var require_lib = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16686,9 +16686,9 @@ var require_lib = __commonJS({ } function dateTimeDeserializer(key, value) { if (typeof value === "string") { - const a3 = new Date(value); - if (!isNaN(a3.valueOf())) { - return a3; + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; } } return value; @@ -16728,7 +16728,7 @@ var require_lib = __commonJS({ } }; exports2.HttpClient = HttpClient; - var lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k3) => (c3[k3.toLowerCase()] = obj[k3], c3), {}); + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {}); } }); @@ -16746,15 +16746,15 @@ var require_auth = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16850,15 +16850,15 @@ var require_oidc_utils = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16895,7 +16895,7 @@ var require_oidc_utils = __commonJS({ return runtimeUrl; } static getCall(id_token_url) { - var _a2; + var _a; return __awaiter2(this, void 0, void 0, function* () { const httpclient = _OidcClient.createHttpClient(); const res = yield httpclient.getJson(id_token_url).catch((error2) => { @@ -16905,7 +16905,7 @@ var require_oidc_utils = __commonJS({ Error Message: ${error2.message}`); }); - const id_token = (_a2 = res.result) === null || _a2 === void 0 ? void 0 : _a2.value; + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { throw new Error("Response json body do not have ID Token field"); } @@ -16948,15 +16948,15 @@ var require_summary = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16993,7 +16993,7 @@ var require_summary = __commonJS({ } try { yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } catch (_a2) { + } catch (_a) { throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } this._filePath = pathFromEnv; @@ -17232,29 +17232,29 @@ var require_summary = __commonJS({ var require_path_utils = __commonJS({ "../../node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17281,25 +17281,25 @@ var require_path_utils = __commonJS({ var require_io_util = __commonJS({ "../../node_modules/@actions/io/lib/io-util.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17314,15 +17314,15 @@ var require_io_util = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17331,12 +17331,12 @@ var require_io_util = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var _a2; + var _a; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getCmdPath = exports2.tryGetExecutablePath = exports2.isRooted = exports2.isDirectory = exports2.exists = exports2.READONLY = exports2.UV_FS_O_EXLOCK = exports2.IS_WINDOWS = exports2.unlink = exports2.symlink = exports2.stat = exports2.rmdir = exports2.rm = exports2.rename = exports2.readlink = exports2.readdir = exports2.open = exports2.mkdir = exports2.lstat = exports2.copyFile = exports2.chmod = void 0; var fs2 = __importStar2(require("fs")); var path2 = __importStar2(require("path")); - _a2 = fs2.promises, exports2.chmod = _a2.chmod, exports2.copyFile = _a2.copyFile, exports2.lstat = _a2.lstat, exports2.mkdir = _a2.mkdir, exports2.open = _a2.open, exports2.readdir = _a2.readdir, exports2.readlink = _a2.readlink, exports2.rename = _a2.rename, exports2.rm = _a2.rm, exports2.rmdir = _a2.rmdir, exports2.stat = _a2.stat, exports2.symlink = _a2.symlink, exports2.unlink = _a2.unlink; + _a = fs2.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.readlink = _a.readlink, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; exports2.IS_WINDOWS = process.platform === "win32"; exports2.UV_FS_O_EXLOCK = 268435456; exports2.READONLY = fs2.constants.O_RDONLY; @@ -17361,15 +17361,15 @@ var require_io_util = __commonJS({ }); } exports2.isDirectory = isDirectory; - function isRooted(p3) { - p3 = normalizeSeparators(p3); - if (!p3) { + function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { throw new Error('isRooted() parameter "p" cannot be empty'); } if (exports2.IS_WINDOWS) { - return p3.startsWith("\\") || /^[A-Z]:/i.test(p3); + return p.startsWith("\\") || /^[A-Z]:/i.test(p); } - return p3.startsWith("/"); + return p.startsWith("/"); } exports2.isRooted = isRooted; function tryGetExecutablePath(filePath, extensions) { @@ -17431,20 +17431,20 @@ var require_io_util = __commonJS({ }); } exports2.tryGetExecutablePath = tryGetExecutablePath; - function normalizeSeparators(p3) { - p3 = p3 || ""; + function normalizeSeparators(p) { + p = p || ""; if (exports2.IS_WINDOWS) { - p3 = p3.replace(/\//g, "\\"); - return p3.replace(/\\\\+/g, "\\"); + p = p.replace(/\//g, "\\"); + return p.replace(/\\\\+/g, "\\"); } - return p3.replace(/\/\/+/g, "/"); + return p.replace(/\/\/+/g, "/"); } function isUnixExecutable(stats) { return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid(); } function getCmdPath() { - var _a3; - return (_a3 = process.env["COMSPEC"]) !== null && _a3 !== void 0 ? _a3 : `cmd.exe`; + var _a2; + return (_a2 = process.env["COMSPEC"]) !== null && _a2 !== void 0 ? _a2 : `cmd.exe`; } exports2.getCmdPath = getCmdPath; } @@ -17454,25 +17454,25 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "../../node_modules/@actions/io/lib/io.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17487,15 +17487,15 @@ var require_io = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17633,9 +17633,9 @@ var require_io = __commonJS({ } const directories = []; if (process.env.PATH) { - for (const p3 of process.env.PATH.split(path2.delimiter)) { - if (p3) { - directories.push(p3); + for (const p of process.env.PATH.split(path2.delimiter)) { + if (p) { + directories.push(p); } } } @@ -17682,8 +17682,8 @@ var require_io = __commonJS({ try { yield ioUtil.lstat(destFile); yield ioUtil.unlink(destFile); - } catch (e3) { - if (e3.code === "EPERM") { + } catch (e) { + if (e.code === "EPERM") { yield ioUtil.chmod(destFile, "0666"); yield ioUtil.unlink(destFile); } @@ -17702,25 +17702,25 @@ var require_io = __commonJS({ var require_toolrunner = __commonJS({ "../../node_modules/@actions/exec/lib/toolrunner.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17735,15 +17735,15 @@ var require_toolrunner = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17784,39 +17784,39 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd += toolPath; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } else if (options.windowsVerbatimArguments) { cmd += `"${toolPath}"`; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } else { cmd += this._windowsQuoteCmdArg(toolPath); - for (const a3 of args) { - cmd += ` ${this._windowsQuoteCmdArg(a3)}`; + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; } } } else { cmd += toolPath; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } return cmd; } _processLineBuffer(data, strBuffer, onLine) { try { - let s3 = strBuffer + data.toString(); - let n3 = s3.indexOf(os.EOL); - while (n3 > -1) { - const line = s3.substring(0, n3); + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); onLine(line); - s3 = s3.substring(n3 + os.EOL.length); - n3 = s3.indexOf(os.EOL); + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); } - return s3; + return s; } catch (err) { this._debug(`error processing line. Failed with error ${err}`); return ""; @@ -17834,9 +17834,9 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a3 of this.args) { + for (const a of this.args) { argline += " "; - argline += options.windowsVerbatimArguments ? a3 : this._windowsQuoteCmdArg(a3); + argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a); } argline += '"'; return [argline]; @@ -17884,7 +17884,7 @@ var require_toolrunner = __commonJS({ ]; let needsQuotes = false; for (const char of arg) { - if (cmdSpecialChars.some((x3) => x3 === char)) { + if (cmdSpecialChars.some((x) => x === char)) { needsQuotes = true; break; } @@ -17894,11 +17894,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i3 = arg.length; i3 > 0; i3--) { - reverse += arg[i3 - 1]; - if (quoteHit && arg[i3 - 1] === "\\") { + for (let i = arg.length; i > 0; i--) { + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === "\\") { reverse += "\\"; - } else if (arg[i3 - 1] === '"') { + } else if (arg[i - 1] === '"') { quoteHit = true; reverse += '"'; } else { @@ -17920,11 +17920,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i3 = arg.length; i3 > 0; i3--) { - reverse += arg[i3 - 1]; - if (quoteHit && arg[i3 - 1] === "\\") { + for (let i = arg.length; i > 0; i--) { + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === "\\") { reverse += "\\"; - } else if (arg[i3 - 1] === '"') { + } else if (arg[i - 1] === '"') { quoteHit = true; reverse += "\\"; } else { @@ -18018,8 +18018,8 @@ var require_toolrunner = __commonJS({ this.options.listeners.stderr(data); } if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) { - const s3 = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; - s3.write(data); + const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; + s.write(data); } errbuffer = this._processLineBuffer(data, errbuffer, (line) => { if (this.options.listeners && this.options.listeners.errline) { @@ -18077,39 +18077,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c3) { - if (escaped && c3 !== '"') { + function append(c) { + if (escaped && c !== '"') { arg += "\\"; } - arg += c3; + arg += c; escaped = false; } - for (let i3 = 0; i3 < argString.length; i3++) { - const c3 = argString.charAt(i3); - if (c3 === '"') { + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c3); + append(c); } continue; } - if (c3 === "\\" && escaped) { - append(c3); + if (c === "\\" && escaped) { + append(c); continue; } - if (c3 === "\\" && inQuotes) { + if (c === "\\" && inQuotes) { escaped = true; continue; } - if (c3 === " " && !inQuotes) { + if (c === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c3); + append(c); } if (arg.length > 0) { args.push(arg.trim()); @@ -18186,25 +18186,25 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "../../node_modules/@actions/exec/lib/exec.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18219,15 +18219,15 @@ var require_exec = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18254,13 +18254,13 @@ var require_exec = __commonJS({ } exports2.exec = exec; function getExecOutput(commandLine, args, options) { - var _a2, _b; + var _a, _b; return __awaiter2(this, void 0, void 0, function* () { let stdout = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); const stderrDecoder = new string_decoder_1.StringDecoder("utf8"); - const originalStdoutListener = (_a2 = options === null || options === void 0 ? void 0 : options.listeners) === null || _a2 === void 0 ? void 0 : _a2.stdout; + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; const stdErrListener = (data) => { stderr += stderrDecoder.write(data); @@ -18293,29 +18293,29 @@ var require_exec = __commonJS({ var require_platform = __commonJS({ "../../node_modules/@actions/core/lib/platform.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18330,15 +18330,15 @@ var require_platform = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18367,11 +18367,11 @@ var require_platform = __commonJS({ }; }); var getMacOsInfo = () => __awaiter2(void 0, void 0, void 0, function* () { - var _a2, _b, _c, _d; + var _a, _b, _c, _d; const { stdout } = yield exec.getExecOutput("sw_vers", void 0, { silent: true }); - const version2 = (_b = (_a2 = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a2 === void 0 ? void 0 : _a2[1]) !== null && _b !== void 0 ? _b : ""; + const version2 = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ""; const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ""; return { name, @@ -18412,29 +18412,29 @@ var require_platform = __commonJS({ var require_core = __commonJS({ "../../node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18449,15 +18449,15 @@ var require_core = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18515,7 +18515,7 @@ var require_core = __commonJS({ } exports2.getInput = getInput2; function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x3) => x3 !== ""); + const inputs = getInput2(name, options).split("\n").filter((x) => x !== ""); if (options && options.trimWhitespace === false) { return inputs; } @@ -18669,7 +18669,7 @@ var require_dist_cjs = __commonJS({ RequestHandlerProtocol: () => RequestHandlerProtocol, SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY4, getDefaultClientConfiguration: () => getDefaultClientConfiguration, - resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig3 + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig }); module2.exports = __toCommonJS2(src_exports); var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => { @@ -18731,7 +18731,7 @@ var require_dist_cjs = __commonJS({ ...getChecksumConfiguration(runtimeConfig) }; }, "getDefaultClientConfiguration"); - var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { ...resolveChecksumRuntimeConfig(config) }; @@ -18785,12 +18785,12 @@ var require_dist_cjs2 = __commonJS({ HttpRequest: () => HttpRequest7, HttpResponse: () => HttpResponse2, IHttpRequest: () => import_types5.HttpRequest, - getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration3, + getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, isValidHostname: () => isValidHostname, - resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig3 + resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig }); module2.exports = __toCommonJS2(src_exports); - var getHttpHandlerExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let httpHandler = runtimeConfig.httpHandler; return { setHttpHandler(handler) { @@ -18807,16 +18807,13 @@ var require_dist_cjs2 = __commonJS({ } }; }, "getHttpHandlerExtensionConfiguration"); - var resolveHttpHandlerRuntimeConfig3 = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { + var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() }; }, "resolveHttpHandlerRuntimeConfig"); var import_types5 = require_dist_cjs(); - var Field = class { - static { - __name(this, "Field"); - } + var _Field = class _Field { constructor({ name, kind = import_types5.FieldPosition.HEADER, values = [] }) { this.name = name; this.kind = kind; @@ -18844,7 +18841,7 @@ var require_dist_cjs2 = __commonJS({ * @param value Value to remove. */ remove(value) { - this.values = this.values.filter((v6) => v6 !== value); + this.values = this.values.filter((v) => v !== value); } /** * Get comma-delimited string. @@ -18852,7 +18849,7 @@ var require_dist_cjs2 = __commonJS({ * @returns String representation of {@link Field}. */ toString() { - return this.values.map((v6) => v6.includes(",") || v6.includes(" ") ? `"${v6}"` : v6).join(", "); + return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", "); } /** * Get string values as a list @@ -18863,15 +18860,14 @@ var require_dist_cjs2 = __commonJS({ return this.values; } }; - var Fields = class { + __name(_Field, "Field"); + var Field = _Field; + var _Fields = class _Fields { constructor({ fields = [], encoding = "utf-8" }) { this.entries = {}; fields.forEach(this.setField.bind(this)); this.encoding = encoding; } - static { - __name(this, "Fields"); - } /** * Set entry for a {@link Field} name. The `name` * attribute will be used to key the collection. @@ -18911,10 +18907,9 @@ var require_dist_cjs2 = __commonJS({ return Object.values(this.entries).filter((field) => field.kind === kind); } }; - var HttpRequest7 = class _HttpRequest { - static { - __name(this, "HttpRequest"); - } + __name(_Fields, "Fields"); + var Fields = _Fields; + var _HttpRequest = class _HttpRequest2 { constructor(options) { this.method = options.method || "GET"; this.hostname = options.hostname || "localhost"; @@ -18932,7 +18927,7 @@ var require_dist_cjs2 = __commonJS({ * Note: this does not deep-clone the body. */ static clone(request) { - const cloned = new _HttpRequest({ + const cloned = new _HttpRequest2({ ...request, headers: { ...request.headers } }); @@ -18961,9 +18956,11 @@ var require_dist_cjs2 = __commonJS({ * asserts that IHttpRequest (interface) objects are of type HttpRequest (class). */ clone() { - return _HttpRequest.clone(this); + return _HttpRequest2.clone(this); } }; + __name(_HttpRequest, "HttpRequest"); + var HttpRequest7 = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -18974,10 +18971,7 @@ var require_dist_cjs2 = __commonJS({ }, {}); } __name(cloneQuery, "cloneQuery"); - var HttpResponse2 = class { - static { - __name(this, "HttpResponse"); - } + var _HttpResponse = class _HttpResponse { constructor(options) { this.statusCode = options.statusCode; this.reason = options.reason; @@ -18991,6 +18985,8 @@ var require_dist_cjs2 = __commonJS({ return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; + __name(_HttpResponse, "HttpResponse"); + var HttpResponse2 = _HttpResponse; function isValidHostname(hostname) { const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; return hostPattern.test(hostname); @@ -19028,12 +19024,13 @@ var require_dist_cjs3 = __commonJS({ getAddExpectContinuePlugin: () => getAddExpectContinuePlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); function addExpectContinueMiddleware(options) { return (next) => async (args) => { + var _a, _b; const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { - if (options.requestHandler?.constructor?.name !== "FetchHttpHandler") { + if (import_protocol_http8.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { + if (((_b = (_a = options.requestHandler) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) !== "FetchHttpHandler") { request.headers = { ...request.headers, Expect: "100-continue" @@ -19315,13 +19312,13 @@ var require_dist_cjs4 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getSmithyContext: () => getSmithyContext6, - normalizeProvider: () => normalizeProvider4 + getSmithyContext: () => getSmithyContext4, + normalizeProvider: () => normalizeProvider2 }); module2.exports = __toCommonJS2(src_exports); var import_types5 = require_dist_cjs(); - var getSmithyContext6 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext"); - var normalizeProvider4 = /* @__PURE__ */ __name((input) => { + var getSmithyContext4 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext"); + var normalizeProvider2 = /* @__PURE__ */ __name((input) => { if (typeof input === "function") return input; const promisified = Promise.resolve(input); @@ -19332,11 +19329,11 @@ var require_dist_cjs4 = __commonJS({ // ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js function convertHttpAuthSchemesToMap(httpAuthSchemes) { - const map2 = /* @__PURE__ */ new Map(); + const map = /* @__PURE__ */ new Map(); for (const scheme of httpAuthSchemes) { - map2.set(scheme.schemeId, scheme); + map.set(scheme.schemeId, scheme); } - return map2; + return map; } var import_types2, import_util_middleware, httpAuthSchemeMiddleware; var init_httpAuthSchemeMiddleware = __esm({ @@ -19426,7 +19423,7 @@ var require_dist_cjs5 = __commonJS({ __export2(src_exports, { deserializerMiddleware: () => deserializerMiddleware, deserializerMiddlewareOption: () => deserializerMiddlewareOption, - getSerdePlugin: () => getSerdePlugin4, + getSerdePlugin: () => getSerdePlugin, serializerMiddleware: () => serializerMiddleware, serializerMiddlewareOption: () => serializerMiddlewareOption2 }); @@ -19456,7 +19453,8 @@ var require_dist_cjs5 = __commonJS({ } }, "deserializerMiddleware"); var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => { - const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; + var _a; + const endpoint = ((_a = context.endpointV2) == null ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; if (!endpoint) { throw new Error("No valid endpoint provider available."); } @@ -19478,7 +19476,7 @@ var require_dist_cjs5 = __commonJS({ tags: ["SERIALIZER"], override: true }; - function getSerdePlugin4(config, serializer, deserializer) { + function getSerdePlugin(config, serializer, deserializer) { return { applyToStack: (commandStack) => { commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); @@ -19486,7 +19484,7 @@ var require_dist_cjs5 = __commonJS({ } }; } - __name(getSerdePlugin4, "getSerdePlugin"); + __name(getSerdePlugin, "getSerdePlugin"); } }); @@ -19602,17 +19600,16 @@ var init_normalizeProvider = __esm({ // ../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) { return async function* paginateOperation(config, input, ...additionalArguments) { - const _input = input; - let token = config.startingToken ?? _input[inputTokenName]; + let token = config.startingToken || void 0; let hasNext = true; let page; while (hasNext) { - _input[inputTokenName] = token; + input[inputTokenName] = token; if (pageSizeTokenName) { - _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize; + input[pageSizeTokenName] = input[pageSizeTokenName] ?? config.pageSize; } if (config.client instanceof ClientCtor) { - page = await makePagedClientRequest(CommandCtor, config.client, input, config.withCommand, ...additionalArguments); + page = await makePagedClientRequest(CommandCtor, config.client, input, ...additionalArguments); } else { throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`); } @@ -19627,10 +19624,8 @@ function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenNam var makePagedClientRequest, get; var init_createPaginator = __esm({ "../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js"() { - makePagedClientRequest = async (CommandCtor, client, input, withCommand = (_2) => _2, ...args) => { - let command = new CommandCtor(input); - command = withCommand(command) ?? command; - return await client.send(command, ...args); + makePagedClientRequest = async (CommandCtor, client, input, ...args) => { + return await client.send(new CommandCtor(input), ...args); }; get = (fromObject, path2) => { let cursor = fromObject; @@ -19728,7 +19723,7 @@ var require_fromBase64 = __commonJS({ exports2.fromBase64 = void 0; var util_buffer_from_1 = require_dist_cjs7(); var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - var fromBase644 = (input) => { + var fromBase642 = (input) => { if (input.length * 3 % 4 !== 0) { throw new TypeError(`Incorrect padding on base64 string.`); } @@ -19738,7 +19733,7 @@ var require_fromBase64 = __commonJS({ const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports2.fromBase64 = fromBase644; + exports2.fromBase64 = fromBase642; } }); @@ -19765,26 +19760,26 @@ var require_dist_cjs8 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - fromUtf8: () => fromUtf83, + fromUtf8: () => fromUtf8, toUint8Array: () => toUint8Array, - toUtf8: () => toUtf83 + toUtf8: () => toUtf8 }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs7(); - var fromUtf83 = /* @__PURE__ */ __name((input) => { + var fromUtf8 = /* @__PURE__ */ __name((input) => { const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); }, "fromUtf8"); var toUint8Array = /* @__PURE__ */ __name((data) => { if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); }, "toUint8Array"); - var toUtf83 = /* @__PURE__ */ __name((input) => { + var toUtf8 = /* @__PURE__ */ __name((input) => { if (typeof input === "string") { return input; } @@ -19804,7 +19799,7 @@ var require_toBase64 = __commonJS({ exports2.toBase64 = void 0; var util_buffer_from_1 = require_dist_cjs7(); var util_utf8_1 = require_dist_cjs8(); - var toBase644 = (_input) => { + var toBase642 = (_input) => { let input; if (typeof _input === "string") { input = (0, util_utf8_1.fromUtf8)(_input); @@ -19816,7 +19811,7 @@ var require_toBase64 = __commonJS({ } return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); }; - exports2.toBase64 = toBase644; + exports2.toBase64 = toBase642; } }); @@ -19913,7 +19908,7 @@ var require_dist_cjs10 = __commonJS({ // AWS percent-encodes some extra non-standard characters in a URI encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode) ), "escapeUri"); - var hexEncode = /* @__PURE__ */ __name((c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); + var hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); var escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath"); } }); @@ -19951,8 +19946,8 @@ var require_dist_cjs11 = __commonJS({ const value = query[key]; key = (0, import_util_uri_escape.escapeUri)(key); if (Array.isArray(value)) { - for (let i3 = 0, iLen = value.length; i3 < iLen; i3++) { - parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i3])}`); + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i])}`); } } else { let qsEntry = key; @@ -20004,10 +19999,10 @@ var require_dist_cjs12 = __commonJS({ DEFAULT_REQUEST_TIMEOUT: () => DEFAULT_REQUEST_TIMEOUT, NodeHttp2Handler: () => NodeHttp2Handler, NodeHttpHandler: () => NodeHttpHandler, - streamCollector: () => streamCollector3 + streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); var import_http = require("http"); var import_https = require("https"); @@ -20039,7 +20034,7 @@ var require_dist_cjs12 = __commonJS({ ); }, timeoutInMs - offset); const doWithSocket = /* @__PURE__ */ __name((socket) => { - if (socket?.connecting) { + if (socket == null ? void 0 : socket.connecting) { socket.on("connect", () => { timing.clearTimeout(timeoutId); }); @@ -20080,7 +20075,7 @@ var require_dist_cjs12 = __commonJS({ return timing.setTimeout(registerListener, deferTimeMs); }, "setSocketKeepAlive"); var DEFER_EVENT_LISTENER_TIME3 = 3e3; - var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT) => { + var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => { const registerTimeout = /* @__PURE__ */ __name((offset) => { const timeout = timeoutInMs - offset; const onTimeout = /* @__PURE__ */ __name(() => { @@ -20103,7 +20098,7 @@ var require_dist_cjs12 = __commonJS({ ); }, "setSocketTimeout"); var import_stream = require("stream"); - var MIN_WAIT_TIME = 6e3; + var MIN_WAIT_TIME = 1e3; async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) { const headers = request.headers ?? {}; const expect = headers["Expect"] || headers["expect"]; @@ -20112,7 +20107,7 @@ var require_dist_cjs12 = __commonJS({ if (expect === "100-continue") { sendBody = await Promise.race([ new Promise((resolve) => { - timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); + timeoutId = Number(timing.setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); }), new Promise((resolve) => { httpRequest.on("continue", () => { @@ -20157,7 +20152,7 @@ var require_dist_cjs12 = __commonJS({ } __name(writeBody, "writeBody"); var DEFAULT_REQUEST_TIMEOUT = 0; - var NodeHttpHandler = class _NodeHttpHandler { + var _NodeHttpHandler = class _NodeHttpHandler2 { constructor(options) { this.socketWarningTimestamp = 0; this.metadata = { handlerProtocol: "http/1.1" }; @@ -20171,18 +20166,15 @@ var require_dist_cjs12 = __commonJS({ } }); } - static { - __name(this, "NodeHttpHandler"); - } /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _NodeHttpHandler(instanceOrOptions); + return new _NodeHttpHandler2(instanceOrOptions); } /** * @internal @@ -20193,6 +20185,7 @@ var require_dist_cjs12 = __commonJS({ * @returns timestamp of last emitted warning. */ static checkSocketUsage(agent, socketWarningTimestamp, logger = console) { + var _a, _b, _c; const { sockets, requests, maxSockets } = agent; if (typeof maxSockets !== "number" || maxSockets === Infinity) { return socketWarningTimestamp; @@ -20203,10 +20196,11 @@ var require_dist_cjs12 = __commonJS({ } if (sockets && requests) { for (const origin in sockets) { - const socketsInUse = sockets[origin]?.length ?? 0; - const requestsEnqueued = requests[origin]?.length ?? 0; + const socketsInUse = ((_a = sockets[origin]) == null ? void 0 : _a.length) ?? 0; + const requestsEnqueued = ((_b = requests[origin]) == null ? void 0 : _b.length) ?? 0; if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) { - logger?.warn?.( + (_c = logger == null ? void 0 : logger.warn) == null ? void 0 : _c.call( + logger, `@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.` @@ -20225,13 +20219,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf connectionTimeout, requestTimeout: requestTimeout ?? socketTimeout, httpAgent: (() => { - if (httpAgent instanceof import_http.Agent || typeof httpAgent?.destroy === "function") { + if (httpAgent instanceof import_http.Agent || typeof (httpAgent == null ? void 0 : httpAgent.destroy) === "function") { return httpAgent; } return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent }); })(), httpsAgent: (() => { - if (httpsAgent instanceof import_https.Agent || typeof httpsAgent?.destroy === "function") { + if (httpsAgent instanceof import_https.Agent || typeof (httpsAgent == null ? void 0 : httpsAgent.destroy) === "function") { return httpsAgent; } return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent }); @@ -20240,8 +20234,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; } destroy() { - this.config?.httpAgent?.destroy(); - this.config?.httpsAgent?.destroy(); + var _a, _b, _c, _d; + (_b = (_a = this.config) == null ? void 0 : _a.httpAgent) == null ? void 0 : _b.destroy(); + (_d = (_c = this.config) == null ? void 0 : _c.httpsAgent) == null ? void 0 : _d.destroy(); } async handle(request, { abortSignal } = {}) { if (!this.config) { @@ -20263,7 +20258,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf if (!this.config) { throw new Error("Node HTTP request handler config is not resolved"); } - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { const abortError = new Error("Request aborted"); abortError.name = "AbortError"; reject(abortError); @@ -20274,7 +20269,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf timeouts.push( timing.setTimeout( () => { - this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage( + this.socketWarningTimestamp = _NodeHttpHandler2.checkSocketUsage( agent, this.socketWarningTimestamp, this.config.logger @@ -20314,7 +20309,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; const requestFunc = isSSL ? import_https.request : import_http.request; const req2 = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new import_protocol_http11.HttpResponse({ + const httpResponse = new import_protocol_http8.HttpResponse({ statusCode: res.statusCode || -1, reason: res.statusMessage, headers: getTransformedHeaders(res.headers), @@ -20357,9 +20352,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }) ); } - writeRequestBodyPromise = writeRequestBody(req2, request, this.config.requestTimeout).catch((e3) => { + writeRequestBodyPromise = writeRequestBody(req2, request, this.config.requestTimeout).catch((e) => { timeouts.forEach(timing.clearTimeout); - return _reject(e3); + return _reject(e); }); }); } @@ -20376,16 +20371,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return this.config ?? {}; } }; + __name(_NodeHttpHandler, "NodeHttpHandler"); + var NodeHttpHandler = _NodeHttpHandler; var import_http22 = require("http2"); var import_http2 = __toESM2(require("http2")); - var NodeHttp2ConnectionPool = class { + var _NodeHttp2ConnectionPool = class _NodeHttp2ConnectionPool { constructor(sessions) { this.sessions = []; this.sessions = sessions ?? []; } - static { - __name(this, "NodeHttp2ConnectionPool"); - } poll() { if (this.sessions.length > 0) { return this.sessions.shift(); @@ -20398,7 +20392,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return this.sessions.includes(session); } remove(session) { - this.sessions = this.sessions.filter((s3) => s3 !== session); + this.sessions = this.sessions.filter((s) => s !== session); } [Symbol.iterator]() { return this.sessions[Symbol.iterator](); @@ -20413,7 +20407,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } } }; - var NodeHttp2ConnectionManager = class { + __name(_NodeHttp2ConnectionPool, "NodeHttp2ConnectionPool"); + var NodeHttp2ConnectionPool = _NodeHttp2ConnectionPool; + var _NodeHttp2ConnectionManager = class _NodeHttp2ConnectionManager { constructor(config) { this.sessionCache = /* @__PURE__ */ new Map(); this.config = config; @@ -20421,9 +20417,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf throw new RangeError("maxConcurrency must be greater than zero."); } } - static { - __name(this, "NodeHttp2ConnectionManager"); - } lease(requestContext, connectionConfiguration) { const url = this.getUrlString(requestContext); const existingPool = this.sessionCache.get(url); @@ -20477,8 +20470,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf this.sessionCache.set(authority, existingConnectionPool); } release(requestContext, session) { + var _a; const cacheKey = this.getUrlString(requestContext); - this.sessionCache.get(cacheKey)?.offerLast(session); + (_a = this.sessionCache.get(cacheKey)) == null ? void 0 : _a.offerLast(session); } destroy() { for (const [key, connectionPool] of this.sessionCache) { @@ -20504,7 +20498,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return request.destination.toString(); } }; - var NodeHttp2Handler = class _NodeHttp2Handler { + __name(_NodeHttp2ConnectionManager, "NodeHttp2ConnectionManager"); + var NodeHttp2ConnectionManager = _NodeHttp2ConnectionManager; + var _NodeHttp2Handler = class _NodeHttp2Handler2 { constructor(options) { this.metadata = { handlerProtocol: "h2" }; this.connectionManager = new NodeHttp2ConnectionManager({}); @@ -20518,18 +20514,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } }); } - static { - __name(this, "NodeHttp2Handler"); - } /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _NodeHttp2Handler(instanceOrOptions); + return new _NodeHttp2Handler2(instanceOrOptions); } destroy() { this.connectionManager.destroy(); @@ -20544,6 +20537,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } const { requestTimeout, disableConcurrentStreams } = this.config; return new Promise((_resolve, _reject) => { + var _a; let fulfilled = false; let writeRequestBodyPromise = void 0; const resolve = /* @__PURE__ */ __name(async (arg) => { @@ -20554,7 +20548,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf await writeRequestBodyPromise; _reject(arg); }, "reject"); - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { fulfilled = true; const abortError = new Error("Request aborted"); abortError.name = "AbortError"; @@ -20571,7 +20565,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; const requestContext = { destination: new URL(authority) }; const session = this.connectionManager.lease(requestContext, { - requestTimeout: this.config?.sessionTimeout, + requestTimeout: (_a = this.config) == null ? void 0 : _a.sessionTimeout, disableConcurrentStreams: disableConcurrentStreams || false }); const rejectWithDestroy = /* @__PURE__ */ __name((err) => { @@ -20596,7 +20590,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }); session.ref(); req2.on("response", (headers) => { - const httpResponse = new import_protocol_http11.HttpResponse({ + const httpResponse = new import_protocol_http8.HttpResponse({ statusCode: headers[":status"] || -1, headers: getTransformedHeaders(headers), body: req2 @@ -20666,7 +20660,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } /** * Destroys a session. - * @param session - the session to destroy. + * @param session The session to destroy. */ destroySession(session) { if (!session.destroyed) { @@ -20674,20 +20668,21 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } } }; - var Collector = class extends import_stream.Writable { + __name(_NodeHttp2Handler, "NodeHttp2Handler"); + var NodeHttp2Handler = _NodeHttp2Handler; + var _Collector = class _Collector extends import_stream.Writable { constructor() { super(...arguments); this.bufferedBytes = []; } - static { - __name(this, "Collector"); - } _write(chunk, encoding, callback) { this.bufferedBytes.push(chunk); callback(); } }; - var streamCollector3 = /* @__PURE__ */ __name((stream) => { + __name(_Collector, "Collector"); + var Collector = _Collector; + var streamCollector = /* @__PURE__ */ __name((stream) => { if (isReadableStreamInstance(stream)) { return collectReadableStream(stream); } @@ -20756,10 +20751,10 @@ var require_dist_cjs13 = __commonJS({ __export2(src_exports, { FetchHttpHandler: () => FetchHttpHandler, keepAliveSupport: () => keepAliveSupport, - streamCollector: () => streamCollector3 + streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); function createRequest(url, requestOptions) { return new Request(url, requestOptions); @@ -20780,19 +20775,16 @@ var require_dist_cjs13 = __commonJS({ var keepAliveSupport = { supported: void 0 }; - var FetchHttpHandler = class _FetchHttpHandler { - static { - __name(this, "FetchHttpHandler"); - } + var _FetchHttpHandler = class _FetchHttpHandler2 { /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _FetchHttpHandler(instanceOrOptions); + return new _FetchHttpHandler2(instanceOrOptions); } constructor(options) { if (typeof options === "function") { @@ -20810,13 +20802,14 @@ var require_dist_cjs13 = __commonJS({ destroy() { } async handle(request, { abortSignal } = {}) { + var _a; if (!this.config) { this.config = await this.configProvider; } const requestTimeoutInMs = this.config.requestTimeout; const keepAlive = this.config.keepAlive === true; const credentials = this.config.credentials; - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { const abortError = new Error("Request aborted"); abortError.name = "AbortError"; return Promise.reject(abortError); @@ -20844,7 +20837,7 @@ var require_dist_cjs13 = __commonJS({ method, credentials }; - if (this.config?.cache) { + if ((_a = this.config) == null ? void 0 : _a.cache) { requestOptions.cache = this.config.cache; } if (body) { @@ -20872,7 +20865,7 @@ var require_dist_cjs13 = __commonJS({ const hasReadableStream = response.body != void 0; if (!hasReadableStream) { return response.blob().then((body2) => ({ - response: new import_protocol_http11.HttpResponse({ + response: new import_protocol_http8.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20881,7 +20874,7 @@ var require_dist_cjs13 = __commonJS({ })); } return { - response: new import_protocol_http11.HttpResponse({ + response: new import_protocol_http8.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20922,9 +20915,12 @@ var require_dist_cjs13 = __commonJS({ return this.config ?? {}; } }; - var import_util_base643 = require_dist_cjs9(); - var streamCollector3 = /* @__PURE__ */ __name(async (stream) => { - if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") { + __name(_FetchHttpHandler, "FetchHttpHandler"); + var FetchHttpHandler = _FetchHttpHandler; + var import_util_base64 = require_dist_cjs9(); + var streamCollector = /* @__PURE__ */ __name(async (stream) => { + var _a; + if (typeof Blob === "function" && stream instanceof Blob || ((_a = stream.constructor) == null ? void 0 : _a.name) === "Blob") { if (Blob.prototype.arrayBuffer !== void 0) { return new Uint8Array(await stream.arrayBuffer()); } @@ -20934,7 +20930,7 @@ var require_dist_cjs13 = __commonJS({ }, "streamCollector"); async function collectBlob(blob) { const base64 = await readToBase64(blob); - const arrayBuffer = (0, import_util_base643.fromBase64)(base64); + const arrayBuffer = (0, import_util_base64.fromBase64)(base64); return new Uint8Array(arrayBuffer); } __name(collectBlob, "collectBlob"); @@ -21010,23 +21006,23 @@ var require_dist_cjs14 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var SHORT_TO_HEX = {}; var HEX_TO_SHORT = {}; - for (let i3 = 0; i3 < 256; i3++) { - let encodedByte = i3.toString(16).toLowerCase(); + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); if (encodedByte.length === 1) { encodedByte = `0${encodedByte}`; } - SHORT_TO_HEX[i3] = encodedByte; - HEX_TO_SHORT[encodedByte] = i3; + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; } function fromHex(encoded) { if (encoded.length % 2 !== 0) { throw new Error("Hex encoded strings must have an even number length"); } const out = new Uint8Array(encoded.length / 2); - for (let i3 = 0; i3 < encoded.length; i3 += 2) { - const encodedByte = encoded.slice(i3, i3 + 2).toLowerCase(); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); if (encodedByte in HEX_TO_SHORT) { - out[i3 / 2] = HEX_TO_SHORT[encodedByte]; + out[i / 2] = HEX_TO_SHORT[encodedByte]; } else { throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); } @@ -21036,8 +21032,8 @@ var require_dist_cjs14 = __commonJS({ __name(fromHex, "fromHex"); function toHex(bytes) { let out = ""; - for (let i3 = 0; i3 < bytes.byteLength; i3++) { - out += SHORT_TO_HEX[bytes[i3]]; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; } return out; } @@ -21052,13 +21048,13 @@ var require_stream_type_check = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.isBlob = exports2.isReadableStream = void 0; var isReadableStream2 = (stream) => { - var _a2; - return typeof ReadableStream === "function" && (((_a2 = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === ReadableStream.name || stream instanceof ReadableStream); + var _a; + return typeof ReadableStream === "function" && (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream); }; exports2.isReadableStream = isReadableStream2; var isBlob2 = (blob) => { - var _a2; - return typeof Blob === "function" && (((_a2 = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === Blob.name || blob instanceof Blob); + var _a; + return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob); }; exports2.isBlob = isBlob2; } @@ -21077,9 +21073,9 @@ var require_sdk_stream_mixin_browser = __commonJS({ var stream_type_check_1 = require_stream_type_check(); var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; var sdkStreamMixin2 = (stream) => { - var _a2, _b; + var _a, _b; if (!isBlobInstance(stream) && !(0, stream_type_check_1.isReadableStream)(stream)) { - const name = ((_b = (_a2 = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; + const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`); } let transformed = false; @@ -21144,12 +21140,12 @@ var require_sdk_stream_mixin = __commonJS({ var sdk_stream_mixin_browser_1 = require_sdk_stream_mixin_browser(); var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; var sdkStreamMixin2 = (stream) => { - var _a2, _b; + var _a, _b; if (!(stream instanceof stream_1.Readable)) { try { return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream); - } catch (e3) { - const name = ((_b = (_a2 = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; + } catch (e) { + const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); } } @@ -21180,7 +21176,7 @@ var require_sdk_stream_mixin = __commonJS({ throw new Error("The stream has been consumed by other callbacks."); } if (typeof stream_1.Readable.toWeb !== "function") { - throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available."); + throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."); } transformed = true; return stream_1.Readable.toWeb(stream); @@ -21238,7 +21234,7 @@ var require_headStream_browser = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.headStream = void 0; async function headStream2(stream, bytes) { - var _a2; + var _a; let byteLengthCounter = 0; const chunks = []; const reader = stream.getReader(); @@ -21247,7 +21243,7 @@ var require_headStream_browser = __commonJS({ const { done, value } = await reader.read(); if (value) { chunks.push(value); - byteLengthCounter += (_a2 = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a2 !== void 0 ? _a2 : 0; + byteLengthCounter += (_a = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a !== void 0 ? _a : 0; } if (byteLengthCounter >= bytes) { break; @@ -21309,9 +21305,9 @@ var require_headStream = __commonJS({ this.bytesBuffered = 0; } _write(chunk, encoding, callback) { - var _a2; + var _a; this.buffers.push(chunk); - this.bytesBuffered += (_a2 = chunk.byteLength) !== null && _a2 !== void 0 ? _a2 : 0; + this.bytesBuffered += (_a = chunk.byteLength) !== null && _a !== void 0 ? _a : 0; if (this.bytesBuffered >= this.limit) { const excess = this.bytesBuffered - this.limit; const tailBuffer = this.buffers[this.buffers.length - 1]; @@ -21334,12 +21330,12 @@ var require_ChecksumStream = __commonJS({ var stream_1 = require("stream"); var ChecksumStream2 = class extends stream_1.Duplex { constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) { - var _a2, _b; + var _a, _b; super(); if (typeof source.pipe === "function") { this.source = source; } else { - throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); + throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); } this.base64Encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64; this.expectedChecksum = expectedChecksum; @@ -21353,8 +21349,8 @@ var require_ChecksumStream = __commonJS({ try { this.checksum.update(chunk); this.push(chunk); - } catch (e3) { - return callback(e3); + } catch (e) { + return callback(e); } return callback(); } @@ -21365,8 +21361,8 @@ var require_ChecksumStream = __commonJS({ if (this.expectedChecksum !== received) { return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}" in response header "${this.checksumSourceLocation}".`)); } - } catch (e3) { - return callback(e3); + } catch (e) { + return callback(e); } this.push(null); return callback(); @@ -21400,9 +21396,9 @@ var require_createChecksumStream_browser = __commonJS({ var stream_type_check_1 = require_stream_type_check(); var ChecksumStream_browser_1 = require_ChecksumStream_browser(); var createChecksumStream2 = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) => { - var _a2, _b; + var _a, _b; if (!(0, stream_type_check_1.isReadableStream)(source)) { - throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); + throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); } const encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64; if (typeof TransformStream !== "function") { @@ -21481,26 +21477,23 @@ var require_dist_cjs15 = __commonJS({ Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter2 }); module2.exports = __toCommonJS2(src_exports); - var import_util_base643 = require_dist_cjs9(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_base64 = require_dist_cjs9(); + var import_util_utf8 = require_dist_cjs8(); function transformToString(payload, encoding = "utf-8") { if (encoding === "base64") { - return (0, import_util_base643.toBase64)(payload); + return (0, import_util_base64.toBase64)(payload); } - return (0, import_util_utf83.toUtf8)(payload); + return (0, import_util_utf8.toUtf8)(payload); } __name(transformToString, "transformToString"); function transformFromString(str, encoding) { if (encoding === "base64") { - return Uint8ArrayBlobAdapter2.mutate((0, import_util_base643.fromBase64)(str)); + return Uint8ArrayBlobAdapter2.mutate((0, import_util_base64.fromBase64)(str)); } - return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf83.fromUtf8)(str)); + return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf8.fromUtf8)(str)); } __name(transformFromString, "transformFromString"); - var Uint8ArrayBlobAdapter2 = class _Uint8ArrayBlobAdapter extends Uint8Array { - static { - __name(this, "Uint8ArrayBlobAdapter"); - } + var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter2 extends Uint8Array { /** * @param source - such as a string or Stream. * @returns a new Uint8ArrayBlobAdapter extending Uint8Array. @@ -21518,7 +21511,7 @@ var require_dist_cjs15 = __commonJS({ * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter. */ static mutate(source) { - Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype); + Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter2.prototype); return source; } /** @@ -21529,6 +21522,8 @@ var require_dist_cjs15 = __commonJS({ return transformToString(this, encoding); } }; + __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter"); + var Uint8ArrayBlobAdapter2 = _Uint8ArrayBlobAdapter; __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports); __reExport(src_exports, require_sdk_stream_mixin(), module2.exports); __reExport(src_exports, require_splitStream(), module2.exports); @@ -21559,8 +21554,8 @@ var init_collect_stream_body = __esm({ // ../../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js function extendedEncodeURIComponent2(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function(c3) { - return "%" + c3.charCodeAt(0).toString(16).toUpperCase(); + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); }); } var init_extended_encode_uri_component = __esm({ @@ -21934,8 +21929,9 @@ var require_dist_cjs16 = __commonJS({ memoize: () => memoize }); module2.exports = __toCommonJS2(src_exports); - var ProviderError2 = class _ProviderError extends Error { + var _ProviderError = class _ProviderError2 extends Error { constructor(message, options = true) { + var _a; let logger; let tryNextLink = true; if (typeof options === "boolean") { @@ -21948,11 +21944,8 @@ var require_dist_cjs16 = __commonJS({ super(message); this.name = "ProviderError"; this.tryNextLink = tryNextLink; - Object.setPrototypeOf(this, _ProviderError.prototype); - logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`); - } - static { - __name(this, "ProviderError"); + Object.setPrototypeOf(this, _ProviderError2.prototype); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, `@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`); } /** * @deprecated use new operator. @@ -21961,32 +21954,32 @@ var require_dist_cjs16 = __commonJS({ return Object.assign(new this(error2.message, options), error2); } }; - var CredentialsProviderError = class _CredentialsProviderError extends ProviderError2 { + __name(_ProviderError, "ProviderError"); + var ProviderError2 = _ProviderError; + var _CredentialsProviderError = class _CredentialsProviderError2 extends ProviderError2 { /** * @override */ constructor(message, options = true) { super(message, options); this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, _CredentialsProviderError.prototype); - } - static { - __name(this, "CredentialsProviderError"); + Object.setPrototypeOf(this, _CredentialsProviderError2.prototype); } }; - var TokenProviderError = class _TokenProviderError extends ProviderError2 { + __name(_CredentialsProviderError, "CredentialsProviderError"); + var CredentialsProviderError = _CredentialsProviderError; + var _TokenProviderError = class _TokenProviderError2 extends ProviderError2 { /** * @override */ constructor(message, options = true) { super(message, options); this.name = "TokenProviderError"; - Object.setPrototypeOf(this, _TokenProviderError.prototype); - } - static { - __name(this, "TokenProviderError"); + Object.setPrototypeOf(this, _TokenProviderError2.prototype); } }; + __name(_TokenProviderError, "TokenProviderError"); + var TokenProviderError = _TokenProviderError; var chain = /* @__PURE__ */ __name((...providers) => async () => { if (providers.length === 0) { throw new ProviderError2("No providers in chain"); @@ -21998,7 +21991,7 @@ var require_dist_cjs16 = __commonJS({ return credentials; } catch (err) { lastProviderError = err; - if (err?.tryNextLink) { + if (err == null ? void 0 : err.tryNextLink) { continue; } throw err; @@ -22027,14 +22020,14 @@ var require_dist_cjs16 = __commonJS({ }, "coalesceProvider"); if (isExpired === void 0) { return async (options) => { - if (!hasResult || options?.forceRefresh) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } return resolved; }; } return async (options) => { - if (!hasResult || options?.forceRefresh) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } if (isConstant) { @@ -22067,7 +22060,7 @@ var init_resolveAwsSdkSigV4AConfig = __esm({ NODE_SIGV4A_CONFIG_OPTIONS = { environmentVariableSelector(env) { if (env.AWS_SIGV4A_SIGNING_REGION_SET) { - return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_2) => _2.trim()); + return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim()); } throw new import_property_provider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", { tryNextLink: true @@ -22075,7 +22068,7 @@ var init_resolveAwsSdkSigV4AConfig = __esm({ }, configFileSelector(profile) { if (profile.sigv4a_signing_region_set) { - return (profile.sigv4a_signing_region_set ?? "").split(",").map((_2) => _2.trim()); + return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim()); } throw new import_property_provider.ProviderError("sigv4a_signing_region_set not set in profile.", { tryNextLink: true @@ -22120,7 +22113,7 @@ var require_dist_cjs17 = __commonJS({ prepareRequest: () => prepareRequest }); module2.exports = __toCommonJS2(src_exports); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var import_util_utf84 = require_dist_cjs8(); var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; @@ -22162,7 +22155,7 @@ var require_dist_cjs17 = __commonJS({ var KEY_TYPE_IDENTIFIER = "aws4_request"; var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; var import_util_hex_encoding = require_dist_cjs14(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var signingKeyCache = {}; var cacheQueue = []; var createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope"); @@ -22190,7 +22183,7 @@ var require_dist_cjs17 = __commonJS({ }, "clearCredentialCache"); var hmac = /* @__PURE__ */ __name((ctor, secret, data) => { const hash = new ctor(secret); - hash.update((0, import_util_utf83.toUint8Array)(data)); + hash.update((0, import_util_utf8.toUint8Array)(data)); return hash.digest(); }, "hmac"); var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => { @@ -22200,7 +22193,7 @@ var require_dist_cjs17 = __commonJS({ continue; } const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders == null ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { continue; } @@ -22229,7 +22222,7 @@ var require_dist_cjs17 = __commonJS({ return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); }, "getCanonicalQuery"); var import_is_array_buffer = require_dist_cjs6(); - var import_util_utf822 = require_dist_cjs8(); + var import_util_utf82 = require_dist_cjs8(); var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => { for (const headerName of Object.keys(headers)) { if (headerName.toLowerCase() === SHA256_HEADER) { @@ -22240,20 +22233,17 @@ var require_dist_cjs17 = __commonJS({ return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) { const hashCtor = new hashConstructor(); - hashCtor.update((0, import_util_utf822.toUint8Array)(body)); + hashCtor.update((0, import_util_utf82.toUint8Array)(body)); return (0, import_util_hex_encoding.toHex)(await hashCtor.digest()); } return UNSIGNED_PAYLOAD; }, "getPayloadHash"); - var import_util_utf832 = require_dist_cjs8(); - var HeaderFormatter = class { - static { - __name(this, "HeaderFormatter"); - } + var import_util_utf83 = require_dist_cjs8(); + var _HeaderFormatter = class _HeaderFormatter { format(headers) { const chunks = []; for (const headerName of Object.keys(headers)) { - const bytes = (0, import_util_utf832.fromUtf8)(headerName); + const bytes = (0, import_util_utf83.fromUtf8)(headerName); chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); } const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); @@ -22308,7 +22298,7 @@ var require_dist_cjs17 = __commonJS({ binBytes.set(header.value, 3); return binBytes; case "string": - const utf8Bytes = (0, import_util_utf832.fromUtf8)(header.value); + const utf8Bytes = (0, import_util_utf83.fromUtf8)(header.value); const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); strView.setUint8( 0, @@ -22335,29 +22325,28 @@ var require_dist_cjs17 = __commonJS({ } } }; + __name(_HeaderFormatter, "HeaderFormatter"); + var HeaderFormatter = _HeaderFormatter; var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; - var Int64 = class _Int64 { + var _Int64 = class _Int642 { constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } - static { - __name(this, "Int64"); - } static fromNumber(number) { if (number > 9223372036854776e3 || number < -9223372036854776e3) { throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); } const bytes = new Uint8Array(8); - for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) { - bytes[i3] = remaining; + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; } if (number < 0) { negate(bytes); } - return new _Int64(bytes); + return new _Int642(bytes); } /** * Called implicitly by infix arithmetic operators. @@ -22374,13 +22363,15 @@ var require_dist_cjs17 = __commonJS({ return String(this.valueOf()); } }; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { - for (let i3 = 0; i3 < 8; i3++) { - bytes[i3] ^= 255; + for (let i = 0; i < 8; i++) { + bytes[i] ^= 255; } - for (let i3 = 7; i3 > -1; i3--) { - bytes[i3]++; - if (bytes[i3] !== 0) + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) break; } } @@ -22394,12 +22385,13 @@ var require_dist_cjs17 = __commonJS({ } return false; }, "hasHeader"); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => { - const { headers, query = {} } = import_protocol_http11.HttpRequest.clone(request); + var _a, _b; + const { headers, query = {} } = import_protocol_http8.HttpRequest.clone(request); for (const name of Object.keys(headers)) { const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) { + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname)) || ((_b = options.hoistableHeaders) == null ? void 0 : _b.has(lname))) { query[name] = headers[name]; delete headers[name]; } @@ -22411,7 +22403,7 @@ var require_dist_cjs17 = __commonJS({ }; }, "moveHeadersToQuery"); var prepareRequest = /* @__PURE__ */ __name((request) => { - request = import_protocol_http11.HttpRequest.clone(request); + request = import_protocol_http8.HttpRequest.clone(request); for (const headerName of Object.keys(request.headers)) { if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; @@ -22432,7 +22424,7 @@ var require_dist_cjs17 = __commonJS({ } return time; }, "toDate"); - var SignatureV42 = class { + var _SignatureV4 = class _SignatureV4 { constructor({ applyChecksum, credentials, @@ -22446,11 +22438,8 @@ var require_dist_cjs17 = __commonJS({ this.sha256 = sha256; this.uriEscapePath = uriEscapePath; this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, import_util_middleware5.normalizeProvider)(region); - this.credentialProvider = (0, import_util_middleware5.normalizeProvider)(credentials); - } - static { - __name(this, "SignatureV4"); + this.regionProvider = (0, import_util_middleware3.normalizeProvider)(region); + this.credentialProvider = (0, import_util_middleware3.normalizeProvider)(credentials); } async presign(originalRequest, options = {}) { const { @@ -22600,7 +22589,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; if (this.uriEscapePath) { const normalizedPathSegments = []; for (const pathSegment of path2.split("/")) { - if (pathSegment?.length === 0) + if ((pathSegment == null ? void 0 : pathSegment.length) === 0) continue; if (pathSegment === ".") continue; @@ -22610,7 +22599,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; normalizedPathSegments.push(pathSegment); } } - const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`; + const normalizedPath = `${(path2 == null ? void 0 : path2.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path2 == null ? void 0 : path2.endsWith("/")) ? "/" : ""}`; const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath); return doubleEncoded.replace(/%2F/g, "/"); } @@ -22633,6 +22622,8 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; } } }; + __name(_SignatureV4, "SignatureV4"); + var SignatureV42 = _SignatureV4; var formatDate = /* @__PURE__ */ __name((now) => { const longDate = iso8601(now).replace(/[\-:]/g, ""); return { @@ -22653,23 +22644,22 @@ var init_resolveAwsSdkSigV4Config = __esm({ import_signature_v4 = __toESM(require_dist_cjs17()); resolveAwsSdkSigV4Config = (config) => { let isUserSupplied = false; - let credentialsProvider; + let normalizedCreds; if (config.credentials) { isUserSupplied = true; - credentialsProvider = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh); + normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh); } - if (!credentialsProvider) { + if (!normalizedCreds) { if (config.credentialDefaultProvider) { - credentialsProvider = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, { + normalizedCreds = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, { parentClientConfig: config }))); } else { - credentialsProvider = async () => { + normalizedCreds = async () => { throw new Error("`credentials` is missing"); }; } } - const boundCredentialsProvider = async () => credentialsProvider({ callerClientConfig: config }); const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256 } = config; let signer; if (config.signer) { @@ -22687,7 +22677,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ config.signingName = config.signingName || signingService || config.serviceId; const params = { ...config, - credentials: boundCredentialsProvider, + credentials: normalizedCreds, region: config.signingRegion, service: config.signingName, sha256, @@ -22710,7 +22700,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ config.signingName = config.signingName || signingService || config.serviceId; const params = { ...config, - credentials: boundCredentialsProvider, + credentials: normalizedCreds, region: config.signingRegion, service: config.signingName, sha256, @@ -22724,7 +22714,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ ...config, systemClockOffset, signingEscapePath, - credentials: isUserSupplied ? async () => boundCredentialsProvider().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e")) : boundCredentialsProvider, + credentials: isUserSupplied ? async () => normalizedCreds().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e")) : normalizedCreds, signer }; }; @@ -22856,7 +22846,7 @@ var require_dist_cjs18 = __commonJS({ let identifyOnResolve = false; const entriesNameSet = /* @__PURE__ */ new Set(); const sort = /* @__PURE__ */ __name((entries) => entries.sort( - (a3, b3) => stepWeights[b3.step] - stepWeights[a3.step] || priorityWeights[b3.priority || "normal"] - priorityWeights[a3.priority || "normal"] + (a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"] ), "sort"); const removeByName = /* @__PURE__ */ __name((toRemove) => { let isRemoved = false; @@ -22892,13 +22882,14 @@ var require_dist_cjs18 = __commonJS({ return isRemoved; }, "removeByReference"); const cloneTo = /* @__PURE__ */ __name((toStack) => { + var _a; absoluteEntries.forEach((entry) => { toStack.add(entry.middleware, { ...entry }); }); relativeEntries.forEach((entry) => { toStack.addRelativeTo(entry.middleware, { ...entry }); }); - toStack.identifyOnResolve?.(stack.identifyOnResolve()); + (_a = toStack.identifyOnResolve) == null ? void 0 : _a.call(toStack, stack.identifyOnResolve()); return toStack; }, "cloneTo"); const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => { @@ -22990,7 +22981,10 @@ var require_dist_cjs18 = __commonJS({ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); for (const alias of aliases) { const toOverrideIndex = absoluteEntries.findIndex( - (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias) + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } ); if (toOverrideIndex === -1) { continue; @@ -23023,7 +23017,10 @@ var require_dist_cjs18 = __commonJS({ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); for (const alias of aliases) { const toOverrideIndex = relativeEntries.findIndex( - (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias) + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } ); if (toOverrideIndex === -1) { continue; @@ -23072,10 +23069,11 @@ var require_dist_cjs18 = __commonJS({ return isRemoved; }, concat: (from) => { + var _a; const cloned = cloneTo(constructStack()); cloned.use(from); cloned.identifyOnResolve( - identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false) + identifyOnResolve || cloned.identifyOnResolve() || (((_a = from.identifyOnResolve) == null ? void 0 : _a.call(from)) ?? false) ); return cloned; }, @@ -23144,16 +23142,16 @@ var require_dist_cjs19 = __commonJS({ Client: () => Client, Command: () => Command, LazyJsonString: () => LazyJsonString, - NoOpLogger: () => NoOpLogger3, - SENSITIVE_STRING: () => SENSITIVE_STRING3, + NoOpLogger: () => NoOpLogger, + SENSITIVE_STRING: () => SENSITIVE_STRING, ServiceException: () => ServiceException, - _json: () => _json2, + _json: () => _json, collectBody: () => import_protocols2.collectBody, convertMap: () => convertMap, - createAggregatedClient: () => createAggregatedClient3, + createAggregatedClient: () => createAggregatedClient, dateToUtcString: () => dateToUtcString, decorateServiceException: () => decorateServiceException, - emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion4, + emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion2, expectBoolean: () => expectBoolean, expectByte: () => expectByte, expectFloat32: () => expectFloat32, @@ -23169,23 +23167,23 @@ var require_dist_cjs19 = __commonJS({ extendedEncodeURIComponent: () => import_protocols2.extendedEncodeURIComponent, getArrayIfSingleItem: () => getArrayIfSingleItem, getDefaultClientConfiguration: () => getDefaultClientConfiguration, - getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration3, + getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, getValueFromTextNode: () => getValueFromTextNode2, handleFloat: () => handleFloat, isSerializableHeaderValue: () => isSerializableHeaderValue, limitedParseDouble: () => limitedParseDouble, limitedParseFloat: () => limitedParseFloat, limitedParseFloat32: () => limitedParseFloat32, - loadConfigsForDefaultMode: () => loadConfigsForDefaultMode3, + loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, logger: () => logger, - map: () => map2, + map: () => map, parseBoolean: () => parseBoolean, parseEpochTimestamp: () => parseEpochTimestamp, parseRfc3339DateTime: () => parseRfc3339DateTime, parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, parseRfc7231DateTime: () => parseRfc7231DateTime, quoteHeader: () => quoteHeader, - resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig3, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, resolvedPath: () => import_protocols2.resolvedPath, serializeDateTime: () => serializeDateTime, serializeFloat: () => serializeFloat, @@ -23199,20 +23197,17 @@ var require_dist_cjs19 = __commonJS({ strictParseInt32: () => strictParseInt32, strictParseLong: () => strictParseLong, strictParseShort: () => strictParseShort, - take: () => take2, - throwDefaultError: () => throwDefaultError3, - withBaseException: () => withBaseException3 + take: () => take, + throwDefaultError: () => throwDefaultError, + withBaseException: () => withBaseException }); module2.exports = __toCommonJS2(src_exports); var import_middleware_stack = require_dist_cjs18(); - var Client = class { + var _Client = class _Client { constructor(config) { this.config = config; this.middlewareStack = (0, import_middleware_stack.constructStack)(); } - static { - __name(this, "Client"); - } send(command, optionsOrCb, cb) { const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; @@ -23248,19 +23243,19 @@ var require_dist_cjs19 = __commonJS({ } } destroy() { - this.config?.requestHandler?.destroy?.(); + var _a, _b, _c; + (_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b); delete this.handlers; } }; + __name(_Client, "Client"); + var Client = _Client; var import_protocols2 = (init_protocols(), __toCommonJS(protocols_exports)); var import_types5 = require_dist_cjs(); - var Command = class { + var _Command = class _Command { constructor() { this.middlewareStack = (0, import_middleware_stack.constructStack)(); } - static { - __name(this, "Command"); - } /** * Factory for Command ClassBuilder. * @internal @@ -23305,7 +23300,9 @@ var require_dist_cjs19 = __commonJS({ ); } }; - var ClassBuilder = class { + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { constructor() { this._init = () => { }; @@ -23315,14 +23312,11 @@ var require_dist_cjs19 = __commonJS({ this._clientName = ""; this._additionalContext = {}; this._smithyContext = {}; - this._inputFilterSensitiveLog = (_2) => _2; - this._outputFilterSensitiveLog = (_2) => _2; + this._inputFilterSensitiveLog = (_) => _; + this._outputFilterSensitiveLog = (_) => _; this._serializer = null; this._deserializer = null; } - static { - __name(this, "ClassBuilder"); - } /** * Optional init callback. */ @@ -23372,7 +23366,7 @@ var require_dist_cjs19 = __commonJS({ /** * Set the input and output sensistive log filters. */ - f(inputFilter = (_2) => _2, outputFilter = (_2) => _2) { + f(inputFilter = (_) => _, outputFilter = (_) => _) { this._inputFilterSensitiveLog = inputFilter; this._outputFilterSensitiveLog = outputFilter; return this; @@ -23395,9 +23389,10 @@ var require_dist_cjs19 = __commonJS({ * @returns a Command class with the classBuilder properties. */ build() { + var _a; const closure = this; let CommandRef; - return CommandRef = class extends Command { + return CommandRef = (_a = class extends Command { /** * @public */ @@ -23408,9 +23403,6 @@ var require_dist_cjs19 = __commonJS({ this.input = input ?? {}; closure._init(this); } - static { - __name(this, "CommandRef"); - } /** * @public */ @@ -23432,13 +23424,15 @@ var require_dist_cjs19 = __commonJS({ additionalContext: closure._additionalContext }); } - }; + }, __name(_a, "CommandRef"), _a); } }; - var SENSITIVE_STRING3 = "***SensitiveInformation***"; - var createAggregatedClient3 = /* @__PURE__ */ __name((commands3, Client2) => { - for (const command of Object.keys(commands3)) { - const CommandCtor = commands3[command]; + __name(_ClassBuilder, "ClassBuilder"); + var ClassBuilder = _ClassBuilder; + var SENSITIVE_STRING = "***SensitiveInformation***"; + var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { + for (const command of Object.keys(commands)) { + const CommandCtor = commands[command]; const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) { const command2 = new CommandCtor(args); if (typeof optionsOrCb === "function") { @@ -23592,7 +23586,7 @@ var require_dist_cjs19 = __commonJS({ return void 0; } const asObject = expectObject(value); - const setKeys = Object.entries(asObject).filter(([, v6]) => v6 != null).map(([k3]) => k3); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); if (setKeys.length === 0) { throw new TypeError(`Unions must have exactly one non-null member. None were found.`); } @@ -23674,7 +23668,7 @@ var require_dist_cjs19 = __commonJS({ return expectByte(value); }, "strictParseByte"); var stackTraceWarning = /* @__PURE__ */ __name((message) => { - return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s3) => !s3.includes("stackTraceWarning")).join("\n"); + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); }, "stackTraceWarning"); var logger = { warn: console.warn @@ -23708,7 +23702,7 @@ var require_dist_cjs19 = __commonJS({ if (!match) { throw new TypeError("Invalid RFC-3339 date-time value"); } - const [_2, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); @@ -23728,7 +23722,7 @@ var require_dist_cjs19 = __commonJS({ if (!match) { throw new TypeError("Invalid RFC-3339 date-time value"); } - const [_2, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); @@ -23756,7 +23750,7 @@ var require_dist_cjs19 = __commonJS({ } let match = IMF_FIXDATE.exec(value); if (match) { - const [_2, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; return buildDate( strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), @@ -23766,7 +23760,7 @@ var require_dist_cjs19 = __commonJS({ } match = RFC_850_DATE.exec(value); if (match) { - const [_2, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; return adjustRfc850Year( buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, @@ -23778,7 +23772,7 @@ var require_dist_cjs19 = __commonJS({ } match = ASC_TIME.exec(value); if (match) { - const [_2, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; return buildDate( strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), @@ -23905,13 +23899,10 @@ var require_dist_cjs19 = __commonJS({ } return value.slice(idx); }, "stripLeadingZeroes"); - var ServiceException = class _ServiceException extends Error { - static { - __name(this, "ServiceException"); - } + var _ServiceException = class _ServiceException2 extends Error { constructor(options) { super(options.message); - Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype); + Object.setPrototypeOf(this, _ServiceException2.prototype); this.name = options.name; this.$fault = options.$fault; this.$metadata = options.$metadata; @@ -23923,31 +23914,15 @@ var require_dist_cjs19 = __commonJS({ if (!value) return false; const candidate = value; - return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server"); - } - /** - * Custom instanceof check to support the operator for ServiceException base class - */ - static [Symbol.hasInstance](instance) { - if (!instance) - return false; - const candidate = instance; - if (this === _ServiceException) { - return _ServiceException.isInstance(instance); - } - if (_ServiceException.isInstance(instance)) { - if (candidate.name && this.name) { - return this.prototype.isPrototypeOf(instance) || candidate.name === this.name; - } - return this.prototype.isPrototypeOf(instance); - } - return false; + return Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server"); } }; + __name(_ServiceException, "ServiceException"); + var ServiceException = _ServiceException; var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => { - Object.entries(additions).filter(([, v6]) => v6 !== void 0).forEach(([k3, v6]) => { - if (exception[k3] == void 0 || exception[k3] === "") { - exception[k3] = v6; + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; } }); const message = exception.message || exception.Message || "UnknownError"; @@ -23955,28 +23930,28 @@ var require_dist_cjs19 = __commonJS({ delete exception.Message; return exception; }, "decorateServiceException"); - var throwDefaultError3 = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata3(output); + var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; const response = new exceptionCtor({ - name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError", + name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", $fault: "client", $metadata }); throw decorateServiceException(response, parsedBody); }, "throwDefaultError"); - var withBaseException3 = /* @__PURE__ */ __name((ExceptionCtor) => { + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { return ({ output, parsedBody, errorCode }) => { - throwDefaultError3({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); }; }, "withBaseException"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }), "deserializeMetadata"); - var loadConfigsForDefaultMode3 = /* @__PURE__ */ __name((mode) => { + var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => { switch (mode) { case "standard": return { @@ -24003,7 +23978,7 @@ var require_dist_cjs19 = __commonJS({ } }, "loadConfigsForDefaultMode"); var warningEmitted = false; - var emitWarningIfUnsupportedVersion4 = /* @__PURE__ */ __name((version2) => { + var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version2) => { if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 16) { warningEmitted = true; } @@ -24053,14 +24028,14 @@ var require_dist_cjs19 = __commonJS({ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); return runtimeConfig; }, "resolveRetryRuntimeConfig"); - var getDefaultExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { return { ...getChecksumConfiguration(runtimeConfig), ...getRetryConfiguration(runtimeConfig) }; }, "getDefaultExtensionConfiguration"); - var getDefaultClientConfiguration = getDefaultExtensionConfiguration3; - var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var getDefaultClientConfiguration = getDefaultExtensionConfiguration; + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { ...resolveChecksumRuntimeConfig(config), ...resolveRetryRuntimeConfig(config) @@ -24104,10 +24079,7 @@ var require_dist_cjs19 = __commonJS({ return LazyJsonString(JSON.stringify(object)); }; LazyJsonString.fromObject = LazyJsonString.from; - var NoOpLogger3 = class { - static { - __name(this, "NoOpLogger"); - } + var _NoOpLogger = class _NoOpLogger { trace() { } debug() { @@ -24119,7 +24091,9 @@ var require_dist_cjs19 = __commonJS({ error() { } }; - function map2(arg0, arg1, arg2) { + __name(_NoOpLogger, "NoOpLogger"); + var NoOpLogger = _NoOpLogger; + function map(arg0, arg1, arg2) { let target; let filter; let instructions; @@ -24145,15 +24119,15 @@ var require_dist_cjs19 = __commonJS({ } return target; } - __name(map2, "map"); + __name(map, "map"); var convertMap = /* @__PURE__ */ __name((target) => { const output = {}; - for (const [k3, v6] of Object.entries(target || {})) { - output[k3] = [, v6]; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; } return output; }, "convertMap"); - var take2 = /* @__PURE__ */ __name((source, instructions) => { + var take = /* @__PURE__ */ __name((source, instructions) => { const out = {}; for (const key in instructions) { applyInstruction(out, source, instructions, key); @@ -24161,7 +24135,7 @@ var require_dist_cjs19 = __commonJS({ return out; }, "take"); var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => { - return map2( + return map( target, Object.entries(instructions).reduce( (_instructions, [key, value]) => { @@ -24210,8 +24184,8 @@ var require_dist_cjs19 = __commonJS({ } } }, "applyInstruction"); - var nonNullish = /* @__PURE__ */ __name((_2) => _2 != null, "nonNullish"); - var pass = /* @__PURE__ */ __name((_2) => _2, "pass"); + var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); + var pass = /* @__PURE__ */ __name((_) => _, "pass"); function quoteHeader(part) { if (part.includes(",") || part.includes('"')) { part = `"${part.replace(/"/g, '\\"')}"`; @@ -24233,12 +24207,12 @@ var require_dist_cjs19 = __commonJS({ } }, "serializeFloat"); var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime"); - var _json2 = /* @__PURE__ */ __name((obj) => { + var _json = /* @__PURE__ */ __name((obj) => { if (obj == null) { return {}; } if (Array.isArray(obj)) { - return obj.filter((_2) => _2 != null).map(_json2); + return obj.filter((_) => _ != null).map(_json); } if (typeof obj === "object") { const target = {}; @@ -24246,7 +24220,7 @@ var require_dist_cjs19 = __commonJS({ if (obj[key] == null) { continue; } - target[key] = _json2(obj[key]); + target[key] = _json(obj[key]); } return target; } @@ -24262,13 +24236,13 @@ var require_dist_cjs19 = __commonJS({ } const compoundSegments = []; let currentSegment = ""; - for (let i3 = 0; i3 < segments.length; i3++) { + for (let i = 0; i < segments.length; i++) { if (currentSegment === "") { - currentSegment = segments[i3]; + currentSegment = segments[i]; } else { - currentSegment += delimiter + segments[i3]; + currentSegment += delimiter + segments[i]; } - if ((i3 + 1) % numDelimiters === 0) { + if ((i + 1) % numDelimiters === 0) { compoundSegments.push(currentSegment); currentSegment = ""; } @@ -24280,13 +24254,13 @@ var require_dist_cjs19 = __commonJS({ } __name(splitEvery, "splitEvery"); var splitHeader = /* @__PURE__ */ __name((value) => { - const z2 = value.length; + const z = value.length; const values = []; let withinQuotes = false; let prevChar = void 0; let anchor = 0; - for (let i3 = 0; i3 < z2; ++i3) { - const char = value[i3]; + for (let i = 0; i < z; ++i) { + const char = value[i]; switch (char) { case `"`: if (prevChar !== "\\") { @@ -24295,8 +24269,8 @@ var require_dist_cjs19 = __commonJS({ break; case ",": if (!withinQuotes) { - values.push(value.slice(anchor, i3)); - anchor = i3 + 1; + values.push(value.slice(anchor, i)); + anchor = i + 1; } break; default: @@ -24304,16 +24278,16 @@ var require_dist_cjs19 = __commonJS({ prevChar = char; } values.push(value.slice(anchor)); - return values.map((v6) => { - v6 = v6.trim(); - const z22 = v6.length; - if (z22 < 2) { - return v6; + return values.map((v) => { + v = v.trim(); + const z2 = v.length; + if (z2 < 2) { + return v; } - if (v6[0] === `"` && v6[z22 - 1] === `"`) { - v6 = v6.slice(1, z22 - 1); + if (v[0] === `"` && v[z2 - 1] === `"`) { + v = v.slice(1, z2 - 1); } - return v6.replace(/\\"/g, '"'); + return v.replace(/\\"/g, '"'); }); }, "splitHeader"); } @@ -24354,13 +24328,13 @@ var init_parseJsonBody = __esm({ if (encoded.length) { try { return JSON.parse(encoded); - } catch (e3) { - if (e3?.name === "SyntaxError") { - Object.defineProperty(e3, "$responseBodyText", { + } catch (e) { + if (e?.name === "SyntaxError") { + Object.defineProperty(e, "$responseBodyText", { value: encoded }); } - throw e3; + throw e; } } return {}; @@ -24371,7 +24345,7 @@ var init_parseJsonBody = __esm({ return value; }; loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k3) => k3.toLowerCase() === key.toLowerCase()); + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); const sanitizeErrorCode = (rawValue) => { let cleanValue = rawValue; if (typeof cleanValue === "number") { @@ -24429,28 +24403,28 @@ var require_util8 = __commonJS({ const match = regexName.exec(string); return !(match === null || typeof match === "undefined"); }; - exports2.isExist = function(v6) { - return typeof v6 !== "undefined"; + exports2.isExist = function(v) { + return typeof v !== "undefined"; }; exports2.isEmptyObject = function(obj) { return Object.keys(obj).length === 0; }; - exports2.merge = function(target, a3, arrayMode) { - if (a3) { - const keys = Object.keys(a3); + exports2.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); const len = keys.length; - for (let i3 = 0; i3 < len; i3++) { + for (let i = 0; i < len; i++) { if (arrayMode === "strict") { - target[keys[i3]] = [a3[keys[i3]]]; + target[keys[i]] = [a[keys[i]]]; } else { - target[keys[i3]] = a3[keys[i3]]; + target[keys[i]] = a[keys[i]]; } } } }; - exports2.getValue = function(v6) { - if (exports2.isExist(v6)) { - return v6; + exports2.getValue = function(v) { + if (exports2.isExist(v)) { + return v; } else { return ""; } @@ -24479,31 +24453,31 @@ var require_validator = __commonJS({ if (xmlData[0] === "\uFEFF") { xmlData = xmlData.substr(1); } - for (let i3 = 0; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<" && xmlData[i3 + 1] === "?") { - i3 += 2; - i3 = readPI(xmlData, i3); - if (i3.err) return i3; - } else if (xmlData[i3] === "<") { - let tagStartPos = i3; - i3++; - if (xmlData[i3] === "!") { - i3 = readCommentAndCDATA(xmlData, i3); + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === "<" && xmlData[i + 1] === "?") { + i += 2; + i = readPI(xmlData, i); + if (i.err) return i; + } else if (xmlData[i] === "<") { + let tagStartPos = i; + i++; + if (xmlData[i] === "!") { + i = readCommentAndCDATA(xmlData, i); continue; } else { let closingTag = false; - if (xmlData[i3] === "/") { + if (xmlData[i] === "/") { closingTag = true; - i3++; + i++; } let tagName = ""; - for (; i3 < xmlData.length && xmlData[i3] !== ">" && xmlData[i3] !== " " && xmlData[i3] !== " " && xmlData[i3] !== "\n" && xmlData[i3] !== "\r"; i3++) { - tagName += xmlData[i3]; + for (; i < xmlData.length && xmlData[i] !== ">" && xmlData[i] !== " " && xmlData[i] !== " " && xmlData[i] !== "\n" && xmlData[i] !== "\r"; i++) { + tagName += xmlData[i]; } tagName = tagName.trim(); if (tagName[tagName.length - 1] === "/") { tagName = tagName.substring(0, tagName.length - 1); - i3--; + i--; } if (!validateTagName(tagName)) { let msg; @@ -24512,16 +24486,16 @@ var require_validator = __commonJS({ } else { msg = "Tag '" + tagName + "' is an invalid name."; } - return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i)); } - const result = readAttributeStr(xmlData, i3); + const result = readAttributeStr(xmlData, i); if (result === false) { - return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i)); } let attrStr = result.value; - i3 = result.index; + i = result.index; if (attrStr[attrStr.length - 1] === "/") { - const attrStrStart = i3 - attrStr.length; + const attrStrStart = i - attrStr.length; attrStr = attrStr.substring(0, attrStr.length - 1); const isValid = validateAttributeString(attrStr, options); if (isValid === true) { @@ -24531,7 +24505,7 @@ var require_validator = __commonJS({ } } else if (closingTag) { if (!result.tagClosed) { - return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i)); } else if (attrStr.trim().length > 0) { return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos)); } else if (tags.length === 0) { @@ -24553,48 +24527,48 @@ var require_validator = __commonJS({ } else { const isValid = validateAttributeString(attrStr, options); if (isValid !== true) { - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i3 - attrStr.length + isValid.err.line)); + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); } if (reachedRoot === true) { - return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i)); } else if (options.unpairedTags.indexOf(tagName) !== -1) { } else { tags.push({ tagName, tagStartPos }); } tagFound = true; } - for (i3++; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { - if (xmlData[i3 + 1] === "!") { - i3++; - i3 = readCommentAndCDATA(xmlData, i3); + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "!") { + i++; + i = readCommentAndCDATA(xmlData, i); continue; - } else if (xmlData[i3 + 1] === "?") { - i3 = readPI(xmlData, ++i3); - if (i3.err) return i3; + } else if (xmlData[i + 1] === "?") { + i = readPI(xmlData, ++i); + if (i.err) return i; } else { break; } - } else if (xmlData[i3] === "&") { - const afterAmp = validateAmpersand(xmlData, i3); + } else if (xmlData[i] === "&") { + const afterAmp = validateAmpersand(xmlData, i); if (afterAmp == -1) - return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i3)); - i3 = afterAmp; + return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); + i = afterAmp; } else { - if (reachedRoot === true && !isWhiteSpace(xmlData[i3])) { - return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i3)); + if (reachedRoot === true && !isWhiteSpace(xmlData[i])) { + return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i)); } } } - if (xmlData[i3] === "<") { - i3--; + if (xmlData[i] === "<") { + i--; } } } else { - if (isWhiteSpace(xmlData[i3])) { + if (isWhiteSpace(xmlData[i])) { continue; } - return getErrorObject("InvalidChar", "char '" + xmlData[i3] + "' is not expected.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i)); } } if (!tagFound) { @@ -24602,88 +24576,88 @@ var require_validator = __commonJS({ } else if (tags.length == 1) { return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos)); } else if (tags.length > 0) { - return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }); + return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t) => t.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }); } return true; }; function isWhiteSpace(char) { return char === " " || char === " " || char === "\n" || char === "\r"; } - function readPI(xmlData, i3) { - const start = i3; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] == "?" || xmlData[i3] == " ") { - const tagname = xmlData.substr(start, i3 - start); - if (i3 > 5 && tagname === "xml") { - return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i3)); - } else if (xmlData[i3] == "?" && xmlData[i3 + 1] == ">") { - i3++; + function readPI(xmlData, i) { + const start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == "?" || xmlData[i] == " ") { + const tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === "xml") { + return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == "?" && xmlData[i + 1] == ">") { + i++; break; } else { continue; } } } - return i3; + return i; } - function readCommentAndCDATA(xmlData, i3) { - if (xmlData.length > i3 + 5 && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === "-") { - for (i3 += 3; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "-" && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === ">") { - i3 += 2; + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === "-" && xmlData[i + 2] === "-") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === "-" && xmlData[i + 1] === "-" && xmlData[i + 2] === ">") { + i += 2; break; } } - } else if (xmlData.length > i3 + 8 && xmlData[i3 + 1] === "D" && xmlData[i3 + 2] === "O" && xmlData[i3 + 3] === "C" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "Y" && xmlData[i3 + 6] === "P" && xmlData[i3 + 7] === "E") { + } else if (xmlData.length > i + 8 && xmlData[i + 1] === "D" && xmlData[i + 2] === "O" && xmlData[i + 3] === "C" && xmlData[i + 4] === "T" && xmlData[i + 5] === "Y" && xmlData[i + 6] === "P" && xmlData[i + 7] === "E") { let angleBracketsCount = 1; - for (i3 += 8; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "<") { angleBracketsCount++; - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { angleBracketsCount--; if (angleBracketsCount === 0) { break; } } } - } else if (xmlData.length > i3 + 9 && xmlData[i3 + 1] === "[" && xmlData[i3 + 2] === "C" && xmlData[i3 + 3] === "D" && xmlData[i3 + 4] === "A" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "A" && xmlData[i3 + 7] === "[") { - for (i3 += 8; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "]" && xmlData[i3 + 1] === "]" && xmlData[i3 + 2] === ">") { - i3 += 2; + } else if (xmlData.length > i + 9 && xmlData[i + 1] === "[" && xmlData[i + 2] === "C" && xmlData[i + 3] === "D" && xmlData[i + 4] === "A" && xmlData[i + 5] === "T" && xmlData[i + 6] === "A" && xmlData[i + 7] === "[") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "]" && xmlData[i + 1] === "]" && xmlData[i + 2] === ">") { + i += 2; break; } } } - return i3; + return i; } var doubleQuote = '"'; var singleQuote = "'"; - function readAttributeStr(xmlData, i3) { + function readAttributeStr(xmlData, i) { let attrStr = ""; let startChar = ""; let tagClosed = false; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === doubleQuote || xmlData[i3] === singleQuote) { + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { if (startChar === "") { - startChar = xmlData[i3]; - } else if (startChar !== xmlData[i3]) { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { } else { startChar = ""; } - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { if (startChar === "") { tagClosed = true; break; } } - attrStr += xmlData[i3]; + attrStr += xmlData[i]; } if (startChar !== "") { return false; } return { value: attrStr, - index: i3, + index: i, tagClosed }; } @@ -24691,57 +24665,57 @@ var require_validator = __commonJS({ function validateAttributeString(attrStr, options) { const matches = util.getAllMatches(attrStr, validAttrStrRegxp); const attrNames = {}; - for (let i3 = 0; i3 < matches.length; i3++) { - if (matches[i3][1].length === 0) { - return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' has no space in starting.", getPositionFromMatch(matches[i3])); - } else if (matches[i3][3] !== void 0 && matches[i3][4] === void 0) { - return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' is without value.", getPositionFromMatch(matches[i3])); - } else if (matches[i3][3] === void 0 && !options.allowBooleanAttributes) { - return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i3][2] + "' is not allowed.", getPositionFromMatch(matches[i3])); - } - const attrName = matches[i3][2]; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(matches[i])); + } else if (matches[i][3] !== void 0 && matches[i][4] === void 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' is without value.", getPositionFromMatch(matches[i])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(matches[i])); + } + const attrName = matches[i][2]; if (!validateAttrName(attrName)) { - return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i3])); + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i])); } if (!attrNames.hasOwnProperty(attrName)) { attrNames[attrName] = 1; } else { - return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i3])); + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i])); } } return true; } - function validateNumberAmpersand(xmlData, i3) { + function validateNumberAmpersand(xmlData, i) { let re = /\d/; - if (xmlData[i3] === "x") { - i3++; + if (xmlData[i] === "x") { + i++; re = /[\da-fA-F]/; } - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === ";") - return i3; - if (!xmlData[i3].match(re)) + for (; i < xmlData.length; i++) { + if (xmlData[i] === ";") + return i; + if (!xmlData[i].match(re)) break; } return -1; } - function validateAmpersand(xmlData, i3) { - i3++; - if (xmlData[i3] === ";") + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === ";") return -1; - if (xmlData[i3] === "#") { - i3++; - return validateNumberAmpersand(xmlData, i3); + if (xmlData[i] === "#") { + i++; + return validateNumberAmpersand(xmlData, i); } let count = 0; - for (; i3 < xmlData.length; i3++, count++) { - if (xmlData[i3].match(/\w/) && count < 20) + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\w/) && count < 20) continue; - if (xmlData[i3] === ";") + if (xmlData[i] === ";") break; return -1; } - return i3; + return i; } function getErrorObject(code, message, lineNumber) { return { @@ -24859,33 +24833,33 @@ var require_xmlNode = __commonJS({ var require_DocTypeReader = __commonJS({ "../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) { var util = require_util8(); - function readDocType(xmlData, i3) { + function readDocType(xmlData, i) { const entities = {}; - if (xmlData[i3 + 3] === "O" && xmlData[i3 + 4] === "C" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "Y" && xmlData[i3 + 7] === "P" && xmlData[i3 + 8] === "E") { - i3 = i3 + 9; + if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") { + i = i + 9; let angleBracketsCount = 1; let hasBody = false, comment = false; let exp = ""; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<" && !comment) { - if (hasBody && isEntity(xmlData, i3)) { - i3 += 7; - [entityName, val, i3] = readEntityExp(xmlData, i3 + 1); + for (; i < xmlData.length; i++) { + if (xmlData[i] === "<" && !comment) { + if (hasBody && isEntity(xmlData, i)) { + i += 7; + [entityName, val, i] = readEntityExp(xmlData, i + 1); if (val.indexOf("&") === -1) entities[validateEntityName(entityName)] = { regx: RegExp(`&${entityName};`, "g"), val }; - } else if (hasBody && isElement(xmlData, i3)) i3 += 8; - else if (hasBody && isAttlist(xmlData, i3)) i3 += 8; - else if (hasBody && isNotation(xmlData, i3)) i3 += 9; + } else if (hasBody && isElement(xmlData, i)) i += 8; + else if (hasBody && isAttlist(xmlData, i)) i += 8; + else if (hasBody && isNotation(xmlData, i)) i += 9; else if (isComment) comment = true; else throw new Error("Invalid DOCTYPE"); angleBracketsCount++; exp = ""; - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { if (comment) { - if (xmlData[i3 - 1] === "-" && xmlData[i3 - 2] === "-") { + if (xmlData[i - 1] === "-" && xmlData[i - 2] === "-") { comment = false; angleBracketsCount--; } @@ -24895,10 +24869,10 @@ var require_DocTypeReader = __commonJS({ if (angleBracketsCount === 0) { break; } - } else if (xmlData[i3] === "[") { + } else if (xmlData[i] === "[") { hasBody = true; } else { - exp += xmlData[i3]; + exp += xmlData[i]; } } if (angleBracketsCount !== 0) { @@ -24907,40 +24881,40 @@ var require_DocTypeReader = __commonJS({ } else { throw new Error(`Invalid Tag instead of DOCTYPE`); } - return { entities, i: i3 }; + return { entities, i }; } - function readEntityExp(xmlData, i3) { + function readEntityExp(xmlData, i) { let entityName2 = ""; - for (; i3 < xmlData.length && (xmlData[i3] !== "'" && xmlData[i3] !== '"'); i3++) { - entityName2 += xmlData[i3]; + for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"'); i++) { + entityName2 += xmlData[i]; } entityName2 = entityName2.trim(); if (entityName2.indexOf(" ") !== -1) throw new Error("External entites are not supported"); - const startChar = xmlData[i3++]; + const startChar = xmlData[i++]; let val2 = ""; - for (; i3 < xmlData.length && xmlData[i3] !== startChar; i3++) { - val2 += xmlData[i3]; + for (; i < xmlData.length && xmlData[i] !== startChar; i++) { + val2 += xmlData[i]; } - return [entityName2, val2, i3]; + return [entityName2, val2, i]; } - function isComment(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "-" && xmlData[i3 + 3] === "-") return true; + function isComment(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-") return true; return false; } - function isEntity(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "E" && xmlData[i3 + 3] === "N" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "I" && xmlData[i3 + 6] === "T" && xmlData[i3 + 7] === "Y") return true; + function isEntity(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") return true; return false; } - function isElement(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "E" && xmlData[i3 + 3] === "L" && xmlData[i3 + 4] === "E" && xmlData[i3 + 5] === "M" && xmlData[i3 + 6] === "E" && xmlData[i3 + 7] === "N" && xmlData[i3 + 8] === "T") return true; + function isElement(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") return true; return false; } - function isAttlist(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "A" && xmlData[i3 + 3] === "T" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "L" && xmlData[i3 + 6] === "I" && xmlData[i3 + 7] === "S" && xmlData[i3 + 8] === "T") return true; + function isAttlist(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") return true; return false; } - function isNotation(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "N" && xmlData[i3 + 3] === "O" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "A" && xmlData[i3 + 6] === "T" && xmlData[i3 + 7] === "I" && xmlData[i3 + 8] === "O" && xmlData[i3 + 9] === "N") return true; + function isNotation(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") return true; return false; } function validateEntityName(name) { @@ -25065,8 +25039,8 @@ var require_OrderedObjParser = __commonJS({ "copyright": { regex: /&(copy|#169);/g, val: "\xA9" }, "reg": { regex: /&(reg|#174);/g, val: "\xAE" }, "inr": { regex: /&(inr|#8377);/g, val: "\u20B9" }, - "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 10)) }, - "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 16)) } + "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 10)) }, + "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 16)) } }; this.addExternalEntities = addExternalEntities; this.parseXml = parseXml; @@ -25082,8 +25056,8 @@ var require_OrderedObjParser = __commonJS({ }; function addExternalEntities(externalEntities) { const entKeys = Object.keys(externalEntities); - for (let i3 = 0; i3 < entKeys.length; i3++) { - const ent = entKeys[i3]; + for (let i = 0; i < entKeys.length; i++) { + const ent = entKeys[i]; this.lastEntities[ent] = { regex: new RegExp("&" + ent + ";", "g"), val: externalEntities[ent] @@ -25134,9 +25108,9 @@ var require_OrderedObjParser = __commonJS({ const matches = util.getAllMatches(attrStr, attrsRegx); const len = matches.length; const attrs = {}; - for (let i3 = 0; i3 < len; i3++) { - const attrName = this.resolveNameSpace(matches[i3][1]); - let oldVal = matches[i3][4]; + for (let i = 0; i < len; i++) { + const attrName = this.resolveNameSpace(matches[i][1]); + let oldVal = matches[i][4]; let aName = this.options.attributeNamePrefix + attrName; if (attrName.length) { if (this.options.transformAttributeName) { @@ -25182,12 +25156,12 @@ var require_OrderedObjParser = __commonJS({ let currentNode = xmlObj; let textData = ""; let jPath = ""; - for (let i3 = 0; i3 < xmlData.length; i3++) { - const ch = xmlData[i3]; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; if (ch === "<") { - if (xmlData[i3 + 1] === "/") { - const closeIndex = findClosingIndex(xmlData, ">", i3, "Closing Tag is not closed."); - let tagName = xmlData.substring(i3 + 2, closeIndex).trim(); + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); if (this.options.removeNSPrefix) { const colonIndex = tagName.indexOf(":"); if (colonIndex !== -1) { @@ -25214,9 +25188,9 @@ var require_OrderedObjParser = __commonJS({ jPath = jPath.substring(0, propIndex); currentNode = this.tagsNodeStack.pop(); textData = ""; - i3 = closeIndex; - } else if (xmlData[i3 + 1] === "?") { - let tagData = readTagExp(xmlData, i3, false, "?>"); + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + let tagData = readTagExp(xmlData, i, false, "?>"); if (!tagData) throw new Error("Pi Tag is not closed."); textData = this.saveTextToParentTag(textData, currentNode, jPath); if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) { @@ -25228,22 +25202,22 @@ var require_OrderedObjParser = __commonJS({ } this.addChild(currentNode, childNode, jPath); } - i3 = tagData.closeIndex + 1; - } else if (xmlData.substr(i3 + 1, 3) === "!--") { - const endIndex = findClosingIndex(xmlData, "-->", i3 + 4, "Comment is not closed."); + i = tagData.closeIndex + 1; + } else if (xmlData.substr(i + 1, 3) === "!--") { + const endIndex = findClosingIndex(xmlData, "-->", i + 4, "Comment is not closed."); if (this.options.commentPropName) { - const comment = xmlData.substring(i3 + 4, endIndex - 2); + const comment = xmlData.substring(i + 4, endIndex - 2); textData = this.saveTextToParentTag(textData, currentNode, jPath); currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]); } - i3 = endIndex; - } else if (xmlData.substr(i3 + 1, 2) === "!D") { - const result = readDocType(xmlData, i3); + i = endIndex; + } else if (xmlData.substr(i + 1, 2) === "!D") { + const result = readDocType(xmlData, i); this.docTypeEntities = result.entities; - i3 = result.i; - } else if (xmlData.substr(i3 + 1, 2) === "![") { - const closeIndex = findClosingIndex(xmlData, "]]>", i3, "CDATA is not closed.") - 2; - const tagExp = xmlData.substring(i3 + 9, closeIndex); + i = result.i; + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); textData = this.saveTextToParentTag(textData, currentNode, jPath); let val2 = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true); if (val2 == void 0) val2 = ""; @@ -25252,9 +25226,9 @@ var require_OrderedObjParser = __commonJS({ } else { currentNode.add(this.options.textNodeName, val2); } - i3 = closeIndex + 2; + i = closeIndex + 2; } else { - let result = readTagExp(xmlData, i3, this.options.removeNSPrefix); + let result = readTagExp(xmlData, i, this.options.removeNSPrefix); let tagName = result.tagName; const rawTagName = result.rawTagName; let tagExp = result.tagExp; @@ -25286,13 +25260,13 @@ var require_OrderedObjParser = __commonJS({ } else { tagExp = tagExp.substr(0, tagExp.length - 1); } - i3 = result.closeIndex; + i = result.closeIndex; } else if (this.options.unpairedTags.indexOf(tagName) !== -1) { - i3 = result.closeIndex; + i = result.closeIndex; } else { const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1); if (!result2) throw new Error(`Unexpected end of ${rawTagName}`); - i3 = result2.i; + i = result2.i; tagContent = result2.tagContent; } const childNode = new xmlNode(tagName); @@ -25333,11 +25307,11 @@ var require_OrderedObjParser = __commonJS({ currentNode = childNode; } textData = ""; - i3 = closeIndex; + i = closeIndex; } } } else { - textData += xmlData[i3]; + textData += xmlData[i]; } } return xmlObj.child; @@ -25397,10 +25371,10 @@ var require_OrderedObjParser = __commonJS({ } return false; } - function tagExpWithClosingIndex(xmlData, i3, closingChar = ">") { + function tagExpWithClosingIndex(xmlData, i, closingChar = ">") { let attrBoundary; let tagExp = ""; - for (let index = i3; index < xmlData.length; index++) { + for (let index = i; index < xmlData.length; index++) { let ch = xmlData[index]; if (attrBoundary) { if (ch === attrBoundary) attrBoundary = ""; @@ -25426,16 +25400,16 @@ var require_OrderedObjParser = __commonJS({ tagExp += ch; } } - function findClosingIndex(xmlData, str, i3, errMsg) { - const closingIndex = xmlData.indexOf(str, i3); + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); if (closingIndex === -1) { throw new Error(errMsg); } else { return closingIndex + str.length - 1; } } - function readTagExp(xmlData, i3, removeNSPrefix, closingChar = ">") { - const result = tagExpWithClosingIndex(xmlData, i3 + 1, closingChar); + function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") { + const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar); if (!result) return; let tagExp = result.data; const closeIndex = result.index; @@ -25462,41 +25436,41 @@ var require_OrderedObjParser = __commonJS({ rawTagName }; } - function readStopNodeData(xmlData, tagName, i3) { - const startIndex = i3; + function readStopNodeData(xmlData, tagName, i) { + const startIndex = i; let openTagCount = 1; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { - if (xmlData[i3 + 1] === "/") { - const closeIndex = findClosingIndex(xmlData, ">", i3, `${tagName} is not closed`); - let closeTagName = xmlData.substring(i3 + 2, closeIndex).trim(); + for (; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, `${tagName} is not closed`); + let closeTagName = xmlData.substring(i + 2, closeIndex).trim(); if (closeTagName === tagName) { openTagCount--; if (openTagCount === 0) { return { - tagContent: xmlData.substring(startIndex, i3), + tagContent: xmlData.substring(startIndex, i), i: closeIndex }; } } - i3 = closeIndex; - } else if (xmlData[i3 + 1] === "?") { - const closeIndex = findClosingIndex(xmlData, "?>", i3 + 1, "StopNode is not closed."); - i3 = closeIndex; - } else if (xmlData.substr(i3 + 1, 3) === "!--") { - const closeIndex = findClosingIndex(xmlData, "-->", i3 + 3, "StopNode is not closed."); - i3 = closeIndex; - } else if (xmlData.substr(i3 + 1, 2) === "![") { - const closeIndex = findClosingIndex(xmlData, "]]>", i3, "StopNode is not closed.") - 2; - i3 = closeIndex; + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + const closeIndex = findClosingIndex(xmlData, "?>", i + 1, "StopNode is not closed."); + i = closeIndex; + } else if (xmlData.substr(i + 1, 3) === "!--") { + const closeIndex = findClosingIndex(xmlData, "-->", i + 3, "StopNode is not closed."); + i = closeIndex; + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2; + i = closeIndex; } else { - const tagData = readTagExp(xmlData, i3, ">"); + const tagData = readTagExp(xmlData, i, ">"); if (tagData) { const openTagName = tagData && tagData.tagName; if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") { openTagCount++; } - i3 = tagData.closeIndex; + i = tagData.closeIndex; } } } @@ -25530,8 +25504,8 @@ var require_node2json = __commonJS({ function compress(arr, options, jPath) { let text; const compressedObj = {}; - for (let i3 = 0; i3 < arr.length; i3++) { - const tagObj = arr[i3]; + for (let i = 0; i < arr.length; i++) { + const tagObj = arr[i]; const property = propName(tagObj); let newJpath = ""; if (jPath === void 0) newJpath = property; @@ -25573,8 +25547,8 @@ var require_node2json = __commonJS({ } function propName(obj) { const keys = Object.keys(obj); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; if (key !== ":@") return key; } } @@ -25582,8 +25556,8 @@ var require_node2json = __commonJS({ if (attrMap) { const keys = Object.keys(attrMap); const len = keys.length; - for (let i3 = 0; i3 < len; i3++) { - const atrrName = keys[i3]; + for (let i = 0; i < len; i++) { + const atrrName = keys[i]; if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) { obj[atrrName] = [attrMap[atrrName]]; } else { @@ -25679,8 +25653,8 @@ var require_orderedJs2Xml = __commonJS({ function arrToStr(arr, options, jPath, indentation) { let xmlStr = ""; let isPreviousElementTag = false; - for (let i3 = 0; i3 < arr.length; i3++) { - const tagObj = arr[i3]; + for (let i = 0; i < arr.length; i++) { + const tagObj = arr[i]; const tagName = propName(tagObj); if (tagName === void 0) continue; let newJPath = ""; @@ -25747,8 +25721,8 @@ var require_orderedJs2Xml = __commonJS({ } function propName(obj) { const keys = Object.keys(obj); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; if (!obj.hasOwnProperty(key)) continue; if (key !== ":@") return key; } @@ -25779,8 +25753,8 @@ var require_orderedJs2Xml = __commonJS({ } function replaceEntitiesValue(textValue, options) { if (textValue && textValue.length > 0 && options.processEntities) { - for (let i3 = 0; i3 < options.entities.length; i3++) { - const entity = options.entities[i3]; + for (let i = 0; i < options.entities.length; i++) { + const entity = options.entities[i]; textValue = textValue.replace(entity.regex, entity.val); } } @@ -25806,11 +25780,11 @@ var require_json2xml = __commonJS({ suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, - tagValueProcessor: function(key, a3) { - return a3; + tagValueProcessor: function(key, a) { + return a; }, - attributeValueProcessor: function(attrName, a3) { - return a3; + attributeValueProcessor: function(attrName, a) { + return a; }, preserveOrder: false, commentPropName: false, @@ -25899,8 +25873,8 @@ var require_json2xml = __commonJS({ const arrLen = jObj[key].length; let listTagVal = ""; let listTagAttr = ""; - for (let j3 = 0; j3 < arrLen; j3++) { - const item = jObj[key][j3]; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; if (typeof item === "undefined") { } else if (item === null) { if (key[0] === "?") val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar; @@ -25933,8 +25907,8 @@ var require_json2xml = __commonJS({ if (this.options.attributesGroupName && key === this.options.attributesGroupName) { const Ks = Object.keys(jObj[key]); const L = Ks.length; - for (let j3 = 0; j3 < L; j3++) { - attrStr += this.buildAttrPairStr(Ks[j3], "" + jObj[key][Ks[j3]]); + for (let j = 0; j < L; j++) { + attrStr += this.buildAttrPairStr(Ks[j], "" + jObj[key][Ks[j]]); } } else { val2 += this.processTextOrObjNode(jObj[key], key, level); @@ -26010,8 +25984,8 @@ var require_json2xml = __commonJS({ }; Builder.prototype.replaceEntitiesValue = function(textValue) { if (textValue && textValue.length > 0 && this.options.processEntities) { - for (let i3 = 0; i3 < this.options.entities.length; i3++) { - const entity = this.options.entities[i3]; + for (let i = 0; i < this.options.entities.length; i++) { + const entity = this.options.entities[i]; textValue = textValue.replace(entity.regex, entity.val); } } @@ -26062,20 +26036,20 @@ var init_parseXmlBody = __esm({ ignoreDeclaration: true, parseTagValue: false, trimValues: false, - tagValueProcessor: (_2, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0 + tagValueProcessor: (_, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0 }); parser.addEntity("#xD", "\r"); parser.addEntity("#10", "\n"); let parsedObj; try { parsedObj = parser.parse(encoded, true); - } catch (e3) { - if (e3 && typeof e3 === "object") { - Object.defineProperty(e3, "$responseBodyText", { + } catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { value: encoded }); } - throw e3; + throw e; } const textNodeName = "#text"; const key = Object.keys(parsedObj)[0]; @@ -26189,31 +26163,31 @@ __export(tslib_es6_exports, { __values: () => __values, default: () => tslib_es6_default }); -function __extends(d3, b3) { - if (typeof b3 !== "function" && b3 !== null) - throw new TypeError("Class extends value " + String(b3) + " is not a constructor or null"); - extendStatics(d3, b3); +function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); function __() { - this.constructor = d3; + this.constructor = d; } - d3.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __()); + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } -function __rest(s3, e3) { - var t3 = {}; - for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3) && e3.indexOf(p3) < 0) - t3[p3] = s3[p3]; - if (s3 != null && typeof Object.getOwnPropertySymbols === "function") - for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s3); i3 < p3.length; i3++) { - if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i3])) - t3[p3[i3]] = s3[p3[i3]]; - } - return t3; +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; } function __decorate(decorators, target, key, desc) { - var c3 = arguments.length, r3 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r3 = Reflect.decorate(decorators, target, key, desc); - else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d3 = decorators[i3]) r3 = (c3 < 3 ? d3(r3) : c3 > 3 ? d3(target, key, r3) : d3(target, key)) || r3; - return c3 > 3 && r3 && Object.defineProperty(target, key, r3), r3; + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function(target, key) { @@ -26221,32 +26195,32 @@ function __param(paramIndex, decorator) { }; } function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f3) { - if (f3 !== void 0 && typeof f3 !== "function") throw new TypeError("Function expected"); - return f3; + function accept(f) { + if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); + return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _2, done = false; - for (var i3 = decorators.length - 1; i3 >= 0; i3--) { + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; - for (var p3 in contextIn) context[p3] = p3 === "access" ? {} : contextIn[p3]; - for (var p3 in contextIn.access) context.access[p3] = contextIn.access[p3]; - context.addInitializer = function(f3) { + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function(f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f3 || null)); + extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i3])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_2 = accept(result.get)) descriptor.get = _2; - if (_2 = accept(result.set)) descriptor.set = _2; - if (_2 = accept(result.init)) initializers.unshift(_2); - } else if (_2 = accept(result)) { - if (kind === "field") initializers.unshift(_2); - else descriptor[key] = _2; + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); @@ -26254,17 +26228,17 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e } function __runInitializers(thisArg, initializers, value) { var useValue = arguments.length > 2; - for (var i3 = 0; i3 < initializers.length; i3++) { - value = useValue ? initializers[i3].call(thisArg, value) : initializers[i3].call(thisArg); + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; } -function __propKey(x3) { - return typeof x3 === "symbol" ? x3 : "".concat(x3); +function __propKey(x) { + return typeof x === "symbol" ? x : "".concat(x); } -function __setFunctionName(f3, name, prefix) { +function __setFunctionName(f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f3, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); @@ -26279,15 +26253,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -26297,151 +26271,151 @@ function __awaiter(thisArg, _arguments, P, generator) { }); } function __generator(thisArg, body) { - var _2 = { label: 0, sent: function() { - if (t3[0] & 1) throw t3[1]; - return t3[1]; - }, trys: [], ops: [] }, f3, y2, t3, g3; - return g3 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g3[Symbol.iterator] = function() { + var _ = { label: 0, sent: function() { + if (t[0] & 1) throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; - }), g3; - function verb(n3) { - return function(v6) { - return step([n3, v6]); + }), g; + function verb(n) { + return function(v) { + return step([n, v]); }; } function step(op) { - if (f3) throw new TypeError("Generator is already executing."); - while (g3 && (g3 = 0, op[0] && (_2 = 0)), _2) try { - if (f3 = 1, y2 && (t3 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t3 = y2["return"]) && t3.call(y2), 0) : y2.next) && !(t3 = t3.call(y2, op[1])).done) return t3; - if (y2 = 0, t3) op = [op[0] & 2, t3.value]; + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: - t3 = op; + t = op; break; case 4: - _2.label++; + _.label++; return { value: op[1], done: false }; case 5: - _2.label++; - y2 = op[1]; + _.label++; + y = op[1]; op = [0]; continue; case 7: - op = _2.ops.pop(); - _2.trys.pop(); + op = _.ops.pop(); + _.trys.pop(); continue; default: - if (!(t3 = _2.trys, t3 = t3.length > 0 && t3[t3.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _2 = 0; + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; continue; } - if (op[0] === 3 && (!t3 || op[1] > t3[0] && op[1] < t3[3])) { - _2.label = op[1]; + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; break; } - if (op[0] === 6 && _2.label < t3[1]) { - _2.label = t3[1]; - t3 = op; + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; break; } - if (t3 && _2.label < t3[2]) { - _2.label = t3[2]; - _2.ops.push(op); + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); break; } - if (t3[2]) _2.ops.pop(); - _2.trys.pop(); + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; } - op = body.call(thisArg, _2); - } catch (e3) { - op = [6, e3]; - y2 = 0; + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; } finally { - f3 = t3 = 0; + f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } -function __exportStar(m3, o3) { - for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(o3, p3)) __createBinding(o3, m3, p3); +function __exportStar(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); } -function __values(o3) { - var s3 = typeof Symbol === "function" && Symbol.iterator, m3 = s3 && o3[s3], i3 = 0; - if (m3) return m3.call(o3); - if (o3 && typeof o3.length === "number") return { +function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { next: function() { - if (o3 && i3 >= o3.length) o3 = void 0; - return { value: o3 && o3[i3++], done: !o3 }; + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; } }; - throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } -function __read(o3, n3) { - var m3 = typeof Symbol === "function" && o3[Symbol.iterator]; - if (!m3) return o3; - var i3 = m3.call(o3), r3, ar = [], e3; +function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; try { - while ((n3 === void 0 || n3-- > 0) && !(r3 = i3.next()).done) ar.push(r3.value); + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error2) { - e3 = { error: error2 }; + e = { error: error2 }; } finally { try { - if (r3 && !r3.done && (m3 = i3["return"])) m3.call(i3); + if (r && !r.done && (m = i["return"])) m.call(i); } finally { - if (e3) throw e3.error; + if (e) throw e.error; } } return ar; } function __spread() { - for (var ar = [], i3 = 0; i3 < arguments.length; i3++) - ar = ar.concat(__read(arguments[i3])); + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); return ar; } function __spreadArrays() { - for (var s3 = 0, i3 = 0, il = arguments.length; i3 < il; i3++) s3 += arguments[i3].length; - for (var r3 = Array(s3), k3 = 0, i3 = 0; i3 < il; i3++) - for (var a3 = arguments[i3], j3 = 0, jl = a3.length; j3 < jl; j3++, k3++) - r3[k3] = a3[j3]; - return r3; + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; } function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i3 = 0, l3 = from.length, ar; i3 < l3; i3++) { - if (ar || !(i3 in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i3); - ar[i3] = from[i3]; + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); } -function __await(v6) { - return this instanceof __await ? (this.v = v6, this) : new __await(v6); +function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g3 = generator.apply(thisArg, _arguments || []), i3, q3 = []; - return i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { return this; - }, i3; - function verb(n3) { - if (g3[n3]) i3[n3] = function(v6) { - return new Promise(function(a3, b3) { - q3.push([n3, v6, a3, b3]) > 1 || resume(n3, v6); + }, i; + function verb(n) { + if (g[n]) i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n3, v6) { + function resume(n, v) { try { - step(g3[n3](v6)); - } catch (e3) { - settle(q3[0][3], e3); + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); } } - function step(r3) { - r3.value instanceof __await ? Promise.resolve(r3.value.v).then(fulfill, reject) : settle(q3[0][2], r3); + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); @@ -26449,39 +26423,39 @@ function __asyncGenerator(thisArg, _arguments, generator) { function reject(value) { resume("throw", value); } - function settle(f3, v6) { - if (f3(v6), q3.shift(), q3.length) resume(q3[0][0], q3[0][1]); + function settle(f, v) { + if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } -function __asyncDelegator(o3) { - var i3, p3; - return i3 = {}, verb("next"), verb("throw", function(e3) { - throw e3; - }), verb("return"), i3[Symbol.iterator] = function() { +function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { return this; - }, i3; - function verb(n3, f3) { - i3[n3] = o3[n3] ? function(v6) { - return (p3 = !p3) ? { value: __await(o3[n3](v6)), done: false } : f3 ? f3(v6) : v6; - } : f3; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; + } : f; } } -function __asyncValues(o3) { +function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m3 = o3[Symbol.asyncIterator], i3; - return m3 ? m3.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { return this; - }, i3); - function verb(n3) { - i3[n3] = o3[n3] && function(v6) { + }, i); + function verb(n) { + i[n] = o[n] && function(v) { return new Promise(function(resolve, reject) { - v6 = o3[n3](v6), settle(resolve, reject, v6.done, v6.value); + v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d3, v6) { - Promise.resolve(v6).then(function(v7) { - resolve({ value: v7, done: d3 }); + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); }, reject); } } @@ -26497,7 +26471,7 @@ function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); } __setModuleDefault(result, mod); return result; @@ -26505,16 +26479,16 @@ function __importStar(mod) { function __importDefault(mod) { return mod && mod.__esModule ? mod : { default: mod }; } -function __classPrivateFieldGet(receiver, state2, kind, f3) { - if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state2.get(receiver); +function __classPrivateFieldGet(receiver, state2, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state2.get(receiver); } -function __classPrivateFieldSet(receiver, state2, value, kind, f3) { +function __classPrivateFieldSet(receiver, state2, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f3.call(receiver, value) : f3 ? f3.value = value : state2.set(receiver, value), value; + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state2.set(receiver, value), value; } function __classPrivateFieldIn(state2, receiver) { if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object"); @@ -26540,8 +26514,8 @@ function __addDisposableResource(env, value, async) { return value; } function __disposeResources(env) { - function fail(e3) { - env.error = env.hasError ? new _SuppressedError(e3, env.error, "An error was suppressed during disposal.") : e3; + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } function next() { @@ -26549,12 +26523,12 @@ function __disposeResources(env) { var rec = env.stack.pop(); try { var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) return Promise.resolve(result).then(next, function(e3) { - fail(e3); + if (rec.async) return Promise.resolve(result).then(next, function(e) { + fail(e); return next(); }); - } catch (e3) { - fail(e3); + } catch (e) { + fail(e); } } if (env.hasError) throw env.error; @@ -26564,45 +26538,45 @@ function __disposeResources(env) { var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default; var init_tslib_es6 = __esm({ "../../node_modules/tslib/tslib.es6.mjs"() { - extendStatics = function(d3, b3) { - extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b4) { - d4.__proto__ = b4; - } || function(d4, b4) { - for (var p3 in b4) if (Object.prototype.hasOwnProperty.call(b4, p3)) d4[p3] = b4[p3]; + extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { + d2.__proto__ = b2; + } || function(d2, b2) { + for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p]; }; - return extendStatics(d3, b3); + return extendStatics(d, b); }; __assign = function() { - __assign = Object.assign || function __assign2(t3) { - for (var s3, i3 = 1, n3 = arguments.length; i3 < n3; i3++) { - s3 = arguments[i3]; - for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3)) t3[p3] = s3[p3]; + __assign = Object.assign || function __assign2(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } - return t3; + return t; }; return __assign.apply(this, arguments); }; - __createBinding = Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }; - __setModuleDefault = Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }; _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) { - var e3 = new Error(message); - return e3.name = "SuppressedError", e3.error = error2, e3.suppressed = suppressed, e3; + var e = new Error(message); + return e.name = "SuppressedError", e.error = error2, e.suppressed = suppressed, e; }; tslib_es6_default = { __extends, @@ -26733,26 +26707,26 @@ var require_dist_cjs22 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - fromUtf8: () => fromUtf83, + fromUtf8: () => fromUtf8, toUint8Array: () => toUint8Array, - toUtf8: () => toUtf83 + toUtf8: () => toUtf8 }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs21(); - var fromUtf83 = /* @__PURE__ */ __name((input) => { + var fromUtf8 = /* @__PURE__ */ __name((input) => { const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); }, "fromUtf8"); var toUint8Array = /* @__PURE__ */ __name((data) => { if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); }, "toUint8Array"); - var toUtf83 = /* @__PURE__ */ __name((input) => { + var toUtf8 = /* @__PURE__ */ __name((input) => { if (typeof input === "string") { return input; } @@ -26771,14 +26745,14 @@ var require_convertToBuffer = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.convertToBuffer = void 0; var util_utf8_1 = require_dist_cjs22(); - var fromUtf83 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { + var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { return Buffer.from(input, "utf8"); } : util_utf8_1.fromUtf8; function convertToBuffer(data) { if (data instanceof Uint8Array) return data; if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); @@ -26892,7 +26866,7 @@ var require_aws_crc32c = __commonJS({ }; AwsCrc32c2.prototype.digest = function() { return tslib_1.__awaiter(this, void 0, void 0, function() { - return tslib_1.__generator(this, function(_a2) { + return tslib_1.__generator(this, function(_a) { return [2, (0, util_1.numToUint8)(this.crc32c.digest())]; }); }); @@ -26926,7 +26900,7 @@ var require_main3 = __commonJS({ this.checksum = 4294967295; } Crc32c2.prototype.update = function(data) { - var e_1, _a2; + var e_1, _a; try { for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { var byte = data_1_1.value; @@ -26936,7 +26910,7 @@ var require_main3 = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1); + if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1); } finally { if (e_1) throw e_1.error; } @@ -27238,7 +27212,7 @@ var require_aws_crc32 = __commonJS({ }; AwsCrc322.prototype.digest = function() { return tslib_1.__awaiter(this, void 0, void 0, function() { - return tslib_1.__generator(this, function(_a2) { + return tslib_1.__generator(this, function(_a) { return [2, (0, util_1.numToUint8)(this.crc32.digest())]; }); }); @@ -27272,7 +27246,7 @@ var require_main4 = __commonJS({ this.checksum = 4294967295; } Crc322.prototype.update = function(data) { - var e_1, _a2; + var e_1, _a; try { for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { var byte = data_1_1.value; @@ -27282,7 +27256,7 @@ var require_main4 = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1); + if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1); } finally { if (e_1) throw e_1.error; } @@ -27573,7 +27547,9 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS({ var util_1 = require_main2(); var zlib = tslib_1.__importStar(require("zlib")); var NodeCrc32 = class { - checksum = 0; + constructor() { + this.checksum = 0; + } update(data) { this.checksum = zlib.crc32(data, this.checksum); } @@ -27648,7 +27624,7 @@ var require_dist_cjs23 = __commonJS({ NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: () => NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, RequestChecksumCalculation: () => RequestChecksumCalculation, ResponseChecksumValidation: () => ResponseChecksumValidation, - crc64NvmeCrtContainer: () => crc64NvmeCrtContainer, + S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM: () => S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM, flexibleChecksumsMiddleware: () => flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions: () => flexibleChecksumsMiddlewareOptions, getFlexibleChecksumsPlugin: () => getFlexibleChecksumsPlugin, @@ -27693,7 +27669,6 @@ var require_dist_cjs23 = __commonJS({ ChecksumAlgorithm3["MD5"] = "MD5"; ChecksumAlgorithm3["CRC32"] = "CRC32"; ChecksumAlgorithm3["CRC32C"] = "CRC32C"; - ChecksumAlgorithm3["CRC64NVME"] = "CRC64NVME"; ChecksumAlgorithm3["SHA1"] = "SHA1"; ChecksumAlgorithm3["SHA256"] = "SHA256"; return ChecksumAlgorithm3; @@ -27703,7 +27678,8 @@ var require_dist_cjs23 = __commonJS({ ChecksumLocation2["TRAILER"] = "trailer"; return ChecksumLocation2; })(ChecksumLocation || {}); - var DEFAULT_CHECKSUM_ALGORITHM = "CRC32"; + var DEFAULT_CHECKSUM_ALGORITHM = "MD5"; + var S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM = "CRC32"; var stringUnionSelector = /* @__PURE__ */ __name((obj, key, union, type) => { if (!(key in obj)) return void 0; @@ -27751,15 +27727,11 @@ var require_dist_cjs23 = __commonJS({ ), default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION }; - var crc64NvmeCrtContainer = { - CrtCrc64Nvme: null - }; - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http11 = require_dist_cjs2(); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_protocol_http8 = require_dist_cjs2(); var CLIENT_SUPPORTED_ALGORITHMS = [ "CRC32", "CRC32C", - "CRC64NVME", "SHA1", "SHA256" /* SHA256 */ @@ -27768,16 +27740,13 @@ var require_dist_cjs23 = __commonJS({ "SHA256", "SHA1", "CRC32", - "CRC32C", - "CRC64NVME" - /* CRC64NVME */ + "CRC32C" + /* CRC32C */ ]; - var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => { - if (!requestAlgorithmMember) { - return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired ? DEFAULT_CHECKSUM_ALGORITHM : void 0; - } - if (!input[requestAlgorithmMember]) { - return void 0; + var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input, { requestChecksumRequired, requestAlgorithmMember }, isS3Express) => { + const defaultAlgorithm = isS3Express ? S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM : DEFAULT_CHECKSUM_ALGORITHM; + if (!requestAlgorithmMember || !input[requestAlgorithmMember]) { + return requestChecksumRequired ? defaultAlgorithm : void 0; } const checksumAlgorithm = input[requestAlgorithmMember]; if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) { @@ -27797,48 +27766,36 @@ var require_dist_cjs23 = __commonJS({ } return false; }, "hasHeader"); - var hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => { - const soughtHeaderPrefix = headerPrefix.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) { - return true; - } - } - return false; - }, "hasHeaderWithPrefix"); var import_is_array_buffer = require_dist_cjs6(); var isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, import_is_array_buffer.isArrayBuffer)(body), "isStreaming"); var import_crc32c = require_main3(); var import_getCrc32ChecksumAlgorithmFunction = require_getCrc32ChecksumAlgorithmFunction(); - var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => { - switch (checksumAlgorithm) { - case "MD5": - return config.md5; - case "CRC32": - return (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)(); - case "CRC32C": - return import_crc32c.AwsCrc32c; - case "CRC64NVME": - if (typeof crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") { - throw new Error( - `Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly. -You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";]. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt` - ); - } - return crc64NvmeCrtContainer.CrtCrc64Nvme; - case "SHA1": - return config.sha1; - case "SHA256": - return config.sha256; - default: - throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`); - } - }, "selectChecksumAlgorithmFunction"); - var import_util_utf83 = require_dist_cjs8(); + var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => ({ + [ + "MD5" + /* MD5 */ + ]: config.md5, + [ + "CRC32" + /* CRC32 */ + ]: (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)(), + [ + "CRC32C" + /* CRC32C */ + ]: import_crc32c.AwsCrc32c, + [ + "SHA1" + /* SHA1 */ + ]: config.sha1, + [ + "SHA256" + /* SHA256 */ + ]: config.sha256 + })[checksumAlgorithm], "selectChecksumAlgorithmFunction"); + var import_util_utf8 = require_dist_cjs8(); var stringHasher = /* @__PURE__ */ __name((checksumAlgorithmFn, body) => { const hash = new checksumAlgorithmFn(); - hash.update((0, import_util_utf83.toUint8Array)(body || "")); + hash.update((0, import_util_utf8.toUint8Array)(body || "")); return hash.digest(); }, "stringHasher"); var flexibleChecksumsMiddlewareOptions = { @@ -27848,50 +27805,36 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona override: true }; var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { - return next(args); - } - if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } const { request, input } = args; const { body: requestBody, headers } = request; const { base64Encoder, streamHasher } = config; const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; - const requestChecksumCalculation = await config.requestChecksumCalculation(); - const requestAlgorithmMemberName = requestAlgorithmMember?.name; - const requestAlgorithmMemberHttpHeader = requestAlgorithmMember?.httpHeader; - if (requestAlgorithmMemberName && !input[requestAlgorithmMemberName]) { - if (requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired) { - input[requestAlgorithmMemberName] = DEFAULT_CHECKSUM_ALGORITHM; - if (requestAlgorithmMemberHttpHeader) { - headers[requestAlgorithmMemberHttpHeader] = DEFAULT_CHECKSUM_ALGORITHM; - } - } - } - const checksumAlgorithm = getChecksumAlgorithmForRequest(input, { - requestChecksumRequired, - requestAlgorithmMember: requestAlgorithmMember?.name, - requestChecksumCalculation - }); + const checksumAlgorithm = getChecksumAlgorithmForRequest( + input, + { + requestChecksumRequired, + requestAlgorithmMember + }, + !!context.isS3ExpressBucket + ); let updatedBody = requestBody; let updatedHeaders = headers; if (checksumAlgorithm) { switch (checksumAlgorithm) { case "CRC32": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U"); break; case "CRC32C": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V"); - break; - case "CRC64NVME": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V"); break; case "SHA1": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X"); break; case "SHA256": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y"); break; } const checksumLocationName = getChecksumLocationName(checksumAlgorithm); @@ -27932,41 +27875,6 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona }); return result; }, "flexibleChecksumsMiddleware"); - var flexibleChecksumsInputMiddlewareOptions = { - name: "flexibleChecksumsInputMiddleware", - toMiddleware: "serializerMiddleware", - relation: "before", - tags: ["BODY_CHECKSUM"], - override: true - }; - var flexibleChecksumsInputMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - const input = args.input; - const { requestValidationModeMember } = middlewareConfig; - const requestChecksumCalculation = await config.requestChecksumCalculation(); - const responseChecksumValidation = await config.responseChecksumValidation(); - switch (requestChecksumCalculation) { - case RequestChecksumCalculation.WHEN_REQUIRED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a"); - break; - case RequestChecksumCalculation.WHEN_SUPPORTED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z"); - break; - } - switch (responseChecksumValidation) { - case ResponseChecksumValidation.WHEN_REQUIRED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c"); - break; - case ResponseChecksumValidation.WHEN_SUPPORTED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b"); - break; - } - if (requestValidationModeMember && !input[requestValidationModeMember]) { - if (responseChecksumValidation === ResponseChecksumValidation.WHEN_SUPPORTED) { - input[requestValidationModeMember] = "ENABLED"; - } - } - return next(args); - }, "flexibleChecksumsInputMiddleware"); var getChecksumAlgorithmListForResponse = /* @__PURE__ */ __name((responseAlgorithms = []) => { const validChecksumAlgorithms = []; for (const algorithm of PRIORITY_ORDER_ALGORITHMS) { @@ -28030,7 +27938,7 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona override: true }; var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } const input = args.input; @@ -28066,23 +27974,19 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config, middlewareConfig) => ({ applyToStack: (clientStack) => { clientStack.add(flexibleChecksumsMiddleware(config, middlewareConfig), flexibleChecksumsMiddlewareOptions); - clientStack.addRelativeTo( - flexibleChecksumsInputMiddleware(config, middlewareConfig), - flexibleChecksumsInputMiddlewareOptions - ); clientStack.addRelativeTo( flexibleChecksumsResponseMiddleware(config, middlewareConfig), flexibleChecksumsResponseMiddlewareOptions ); } }), "getFlexibleChecksumsPlugin"); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var resolveFlexibleChecksumsConfig = /* @__PURE__ */ __name((input) => ({ ...input, - requestChecksumCalculation: (0, import_util_middleware5.normalizeProvider)( + requestChecksumCalculation: (0, import_util_middleware3.normalizeProvider)( input.requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION ), - responseChecksumValidation: (0, import_util_middleware5.normalizeProvider)( + responseChecksumValidation: (0, import_util_middleware3.normalizeProvider)( input.responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION ) }), "resolveFlexibleChecksumsConfig"); @@ -28113,19 +28017,19 @@ var require_dist_cjs24 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getHostHeaderPlugin: () => getHostHeaderPlugin3, + getHostHeaderPlugin: () => getHostHeaderPlugin, hostHeaderMiddleware: () => hostHeaderMiddleware, hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions, - resolveHostHeaderConfig: () => resolveHostHeaderConfig3 + resolveHostHeaderConfig: () => resolveHostHeaderConfig }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); - function resolveHostHeaderConfig3(input) { + var import_protocol_http8 = require_dist_cjs2(); + function resolveHostHeaderConfig(input) { return input; } - __name(resolveHostHeaderConfig3, "resolveHostHeaderConfig"); + __name(resolveHostHeaderConfig, "resolveHostHeaderConfig"); var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) return next(args); const { request } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; @@ -28147,7 +28051,7 @@ var require_dist_cjs24 = __commonJS({ tags: ["HOST"], override: true }; - var getHostHeaderPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getHostHeaderPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); } @@ -28179,12 +28083,13 @@ var require_dist_cjs25 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getLoggerPlugin: () => getLoggerPlugin3, + getLoggerPlugin: () => getLoggerPlugin, loggerMiddleware: () => loggerMiddleware, loggerMiddlewareOptions: () => loggerMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => { + var _a, _b; try { const response = await next(args); const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; @@ -28192,7 +28097,7 @@ var require_dist_cjs25 = __commonJS({ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; - logger?.info?.({ + (_a = logger == null ? void 0 : logger.info) == null ? void 0 : _a.call(logger, { clientName, commandName, input: inputFilterSensitiveLog(args.input), @@ -28204,7 +28109,7 @@ var require_dist_cjs25 = __commonJS({ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; - logger?.error?.({ + (_b = logger == null ? void 0 : logger.error) == null ? void 0 : _b.call(logger, { clientName, commandName, input: inputFilterSensitiveLog(args.input), @@ -28220,7 +28125,7 @@ var require_dist_cjs25 = __commonJS({ step: "initialize", override: true }; - var getLoggerPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getLoggerPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); } @@ -28253,17 +28158,17 @@ var require_dist_cjs26 = __commonJS({ var src_exports = {}; __export2(src_exports, { addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions, - getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3, + getRecursionDetectionPlugin: () => getRecursionDetectionPlugin, recursionDetectionMiddleware: () => recursionDetectionMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { const { request } = args; - if (!import_protocol_http11.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + if (!import_protocol_http8.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { return next(args); } const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; @@ -28284,7 +28189,7 @@ var require_dist_cjs26 = __commonJS({ override: true, priority: "low" }; - var getRecursionDetectionPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions); } @@ -28462,16 +28367,17 @@ var require_dist_cjs29 = __commonJS({ validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); - var import_smithy_client25 = require_dist_cjs19(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); var CONTENT_LENGTH_HEADER = "content-length"; function checkContentLengthHeader() { return (next, context) => async (args) => { + var _a; const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { if (!(CONTENT_LENGTH_HEADER in request.headers)) { const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`; - if (typeof context?.logger?.warn === "function" && !(context.logger instanceof import_smithy_client25.NoOpLogger)) { + if (typeof ((_a = context == null ? void 0 : context.logger) == null ? void 0 : _a.warn) === "function" && !(context.logger instanceof import_smithy_client4.NoOpLogger)) { context.logger.warn(message); } else { console.warn(message); @@ -28521,9 +28427,9 @@ var require_dist_cjs29 = __commonJS({ } } return result; - } catch (e3) { + } catch (e) { unlock(); - throw e3; + throw e; } }; }, "regionRedirectEndpointMiddleware"); @@ -28536,18 +28442,19 @@ var require_dist_cjs29 = __commonJS({ }; function regionRedirectMiddleware(clientConfig) { return (next, context) => async (args) => { + var _a, _b, _c; try { return await next(args); } catch (err) { if (clientConfig.followRegionRedirects) { - if (err?.$metadata?.httpStatusCode === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well - err?.$metadata?.httpStatusCode === 400 && err?.name === "IllegalLocationConstraintException") { + if (((_a = err == null ? void 0 : err.$metadata) == null ? void 0 : _a.httpStatusCode) === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well + ((_b = err == null ? void 0 : err.$metadata) == null ? void 0 : _b.httpStatusCode) === 400 && (err == null ? void 0 : err.name) === "IllegalLocationConstraintException") { try { const actualRegion = err.$response.headers["x-amz-bucket-region"]; - context.logger?.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`); + (_c = context.logger) == null ? void 0 : _c.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`); context.__s3RegionRedirect = actualRegion; - } catch (e3) { - throw new Error("Region redirect failed: " + e3); + } catch (e) { + throw new Error("Region redirect failed: " + e); } return next(args); } @@ -28571,16 +28478,17 @@ var require_dist_cjs29 = __commonJS({ }), "getRegionRedirectMiddlewarePlugin"); var s3ExpiresMiddleware = /* @__PURE__ */ __name((config) => { return (next, context) => async (args) => { + var _a; const result = await next(args); const { response } = result; - if (import_protocol_http11.HttpResponse.isInstance(response)) { + if (import_protocol_http8.HttpResponse.isInstance(response)) { if (response.headers.expires) { response.headers.expiresstring = response.headers.expires; try { - (0, import_smithy_client25.parseRfc7231DateTime)(response.headers.expires); - } catch (e3) { - context.logger?.warn( - `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e3}` + (0, import_smithy_client4.parseRfc7231DateTime)(response.headers.expires); + } catch (e) { + (_a = context.logger) == null ? void 0 : _a.warn( + `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e}` ); delete response.headers.expires; } @@ -28601,15 +28509,11 @@ var require_dist_cjs29 = __commonJS({ clientStack.addRelativeTo(s3ExpiresMiddleware(clientConfig), s3ExpiresMiddlewareOptions); } }), "getS3ExpiresMiddlewarePlugin"); - var S3ExpressIdentityCache = class _S3ExpressIdentityCache { + var _S3ExpressIdentityCache = class _S3ExpressIdentityCache2 { constructor(data = {}) { this.data = data; + this.lastPurgeTime = Date.now(); } - static { - __name(this, "S3ExpressIdentityCache"); - } - lastPurgeTime = Date.now(); - static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4; get(key) { const entry = this.data[key]; if (!entry) { @@ -28626,7 +28530,7 @@ var require_dist_cjs29 = __commonJS({ } async purgeExpired() { const now = Date.now(); - if (this.lastPurgeTime + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) { + if (this.lastPurgeTime + _S3ExpressIdentityCache2.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) { return; } for (const key in this.data) { @@ -28642,7 +28546,10 @@ var require_dist_cjs29 = __commonJS({ } } }; - var S3ExpressIdentityCacheEntry = class { + __name(_S3ExpressIdentityCache, "S3ExpressIdentityCache"); + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4; + var S3ExpressIdentityCache = _S3ExpressIdentityCache; + var _S3ExpressIdentityCacheEntry = class _S3ExpressIdentityCacheEntry { /** * @param identity - stored identity. * @param accessed - timestamp of last access in epoch ms. @@ -28653,51 +28560,48 @@ var require_dist_cjs29 = __commonJS({ this.isRefreshing = isRefreshing; this.accessed = accessed; } - static { - __name(this, "S3ExpressIdentityCacheEntry"); - } get identity() { this.accessed = Date.now(); return this._identity; } }; - var S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl { - constructor(createSessionFn, cache3 = new S3ExpressIdentityCache()) { + __name(_S3ExpressIdentityCacheEntry, "S3ExpressIdentityCacheEntry"); + var S3ExpressIdentityCacheEntry = _S3ExpressIdentityCacheEntry; + var _S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl2 { + constructor(createSessionFn, cache = new S3ExpressIdentityCache()) { this.createSessionFn = createSessionFn; - this.cache = cache3; + this.cache = cache; } - static { - __name(this, "S3ExpressIdentityProviderImpl"); - } - static REFRESH_WINDOW_MS = 6e4; async getS3ExpressIdentity(awsIdentity, identityProperties) { const key = identityProperties.Bucket; - const { cache: cache3 } = this; - const entry = cache3.get(key); + const { cache } = this; + const entry = cache.get(key); if (entry) { return entry.identity.then((identity) => { - const isExpired = (identity.expiration?.getTime() ?? 0) < Date.now(); + var _a, _b; + const isExpired = (((_a = identity.expiration) == null ? void 0 : _a.getTime()) ?? 0) < Date.now(); if (isExpired) { - return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; + return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } - const isExpiringSoon = (identity.expiration?.getTime() ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS; + const isExpiringSoon = (((_b = identity.expiration) == null ? void 0 : _b.getTime()) ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl2.REFRESH_WINDOW_MS; if (isExpiringSoon && !entry.isRefreshing) { entry.isRefreshing = true; this.getIdentity(key).then((id) => { - cache3.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id))); + cache.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id))); }); } return identity; }); } - return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; + return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } async getIdentity(key) { + var _a, _b; await this.cache.purgeExpired().catch((error2) => { console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error2); }); const session = await this.createSessionFn(key); - if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) { + if (!((_a = session.Credentials) == null ? void 0 : _a.AccessKeyId) || !((_b = session.Credentials) == null ? void 0 : _b.SecretAccessKey)) { throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey."); } const identity = { @@ -28709,6 +28613,9 @@ var require_dist_cjs29 = __commonJS({ return identity; } }; + __name(_S3ExpressIdentityProviderImpl, "S3ExpressIdentityProviderImpl"); + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS = 6e4; + var S3ExpressIdentityProviderImpl = _S3ExpressIdentityProviderImpl; var import_signature_v42 = require_dist_cjs17(); var import_util_config_provider = require_dist_cjs27(); var S3_EXPRESS_BUCKET_TYPE = "Directory"; @@ -28723,10 +28630,7 @@ var require_dist_cjs29 = __commonJS({ configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, import_util_config_provider.SelectorType.CONFIG), default: false }; - var SignatureV4S3Express = class extends import_signature_v42.SignatureV4 { - static { - __name(this, "SignatureV4S3Express"); - } + var _SignatureV4S3Express = class _SignatureV4S3Express extends import_signature_v42.SignatureV4 { /** * Signs with alternate provided credentials instead of those provided in the * constructor. @@ -28755,6 +28659,8 @@ var require_dist_cjs29 = __commonJS({ return this.presign(requestToSign, options); } }; + __name(_SignatureV4S3Express, "SignatureV4S3Express"); + var SignatureV4S3Express = _SignatureV4S3Express; function getCredentialsWithoutSessionToken(credentials) { const credentialsWithoutSessionToken = { accessKeyId: credentials.accessKeyId, @@ -28777,15 +28683,16 @@ var require_dist_cjs29 = __commonJS({ privateAccess.credentialProvider = overrideCredentialsProviderOnce; } __name(setSingleOverride, "setSingleOverride"); - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var s3ExpressMiddleware = /* @__PURE__ */ __name((options) => { return (next, context) => async (args) => { + var _a, _b, _c, _d, _e; if (context.endpointV2) { const endpoint = context.endpointV2; - const isS3ExpressAuth = endpoint.properties?.authSchemes?.[0]?.name === S3_EXPRESS_AUTH_SCHEME; - const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND || endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE; + const isS3ExpressAuth = ((_c = (_b = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes) == null ? void 0 : _b[0]) == null ? void 0 : _c.name) === S3_EXPRESS_AUTH_SCHEME; + const isS3ExpressBucket = ((_d = endpoint.properties) == null ? void 0 : _d.backend) === S3_EXPRESS_BACKEND || ((_e = endpoint.properties) == null ? void 0 : _e.bucketType) === S3_EXPRESS_BUCKET_TYPE; if (isS3ExpressBucket) { - (0, import_core17.setFeature)(context, "S3_EXPRESS_BUCKET", "J"); + (0, import_core3.setFeature)(context, "S3_EXPRESS_BUCKET", "J"); context.isS3ExpressBucket = true; } if (isS3ExpressAuth) { @@ -28798,7 +28705,7 @@ var require_dist_cjs29 = __commonJS({ } ); context.s3ExpressIdentity = s3ExpressIdentity; - if (import_protocol_http11.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { + if (import_protocol_http8.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken; } } @@ -28819,7 +28726,7 @@ var require_dist_cjs29 = __commonJS({ } }), "getS3ExpressPlugin"); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var signS3Express = /* @__PURE__ */ __name(async (s3ExpressIdentity, signingOptions, request, sigV4MultiRegionSigner) => { const signedRequest = await sigV4MultiRegionSigner.signWithCredentials(request, s3ExpressIdentity, {}); if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) { @@ -28834,10 +28741,10 @@ var require_dist_cjs29 = __commonJS({ }, "defaultSuccessHandler"); var s3ExpressHttpSigningMiddlewareOptions = import_core22.httpSigningMiddlewareOptions; var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } - const smithyContext = (0, import_util_middleware5.getSmithyContext)(context); + const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); const scheme = smithyContext.selectedHttpAuthScheme; if (!scheme) { throw new Error(`No HttpAuthScheme was selected: unable to sign request`); @@ -28904,14 +28811,14 @@ var require_dist_cjs29 = __commonJS({ var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { const result = await next(args); const { response } = result; - if (!import_protocol_http11.HttpResponse.isInstance(response)) { + if (!import_protocol_http8.HttpResponse.isInstance(response)) { return result; } const { statusCode, body: sourceBody } = response; if (statusCode < 200 || statusCode >= 300) { return result; } - const isSplittableStream = typeof sourceBody?.stream === "function" || typeof sourceBody?.pipe === "function" || typeof sourceBody?.tee === "function"; + const isSplittableStream = typeof (sourceBody == null ? void 0 : sourceBody.stream) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.pipe) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.tee) === "function"; if (!isSplittableStream) { return result; } @@ -28921,12 +28828,12 @@ var require_dist_cjs29 = __commonJS({ [bodyCopy, body] = await (0, import_util_stream2.splitStream)(sourceBody); } response.body = body; - const bodyBytes = await collectBody6(bodyCopy, { + const bodyBytes = await collectBody4(bodyCopy, { streamCollector: async (stream) => { return (0, import_util_stream2.headStream)(stream, MAX_BYTES_TO_INSPECT); } }); - if (typeof bodyCopy?.destroy === "function") { + if (typeof (bodyCopy == null ? void 0 : bodyCopy.destroy) === "function") { bodyCopy.destroy(); } const bodyStringTail = config.utf8Encoder(bodyBytes.subarray(bodyBytes.length - 16)); @@ -28940,7 +28847,7 @@ var require_dist_cjs29 = __commonJS({ } return result; }, "throw200ExceptionsMiddleware"); - var collectBody6 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { + var collectBody4 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } @@ -28961,6 +28868,7 @@ var require_dist_cjs29 = __commonJS({ var import_util_arn_parser = require_dist_cjs28(); function bucketEndpointMiddleware(options) { return (next, context) => async (args) => { + var _a, _b, _c, _d; if (options.bucketEndpoint) { const endpoint = context.endpointV2; if (endpoint) { @@ -28972,14 +28880,14 @@ var require_dist_cjs29 = __commonJS({ ...endpoint, url: bucketEndpointUrl }; - } catch (e3) { + } catch (e) { const warning = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`; - if (context.logger?.constructor?.name === "NoOpLogger") { + if (((_b = (_a = context.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger") { console.warn(warning); } else { - context.logger?.warn?.(warning); + (_d = (_c = context.logger) == null ? void 0 : _c.warn) == null ? void 0 : _d.call(_c, warning); } - throw e3; + throw e; } } } @@ -29046,15 +28954,15 @@ var require_dist_cjs30 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - EndpointCache: () => EndpointCache3, + EndpointCache: () => EndpointCache, EndpointError: () => EndpointError2, - customEndpointFunctions: () => customEndpointFunctions3, + customEndpointFunctions: () => customEndpointFunctions, isIpAddress: () => isIpAddress2, isValidHostLabel: () => isValidHostLabel, - resolveEndpoint: () => resolveEndpoint4 + resolveEndpoint: () => resolveEndpoint2 }); module2.exports = __toCommonJS2(src_exports); - var EndpointCache3 = class { + var _EndpointCache = class _EndpointCache { /** * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed * before keys are dropped. @@ -29071,9 +28979,6 @@ var require_dist_cjs30 = __commonJS({ this.parameters = params; } } - static { - __name(this, "EndpointCache"); - } /** * @param endpointParams - query for endpoint. * @param resolver - provider of the value if not present. @@ -29087,11 +28992,11 @@ var require_dist_cjs30 = __commonJS({ if (!this.data.has(key)) { if (this.data.size > this.capacity + 10) { const keys = this.data.keys(); - let i3 = 0; + let i = 0; while (true) { const { value, done } = keys.next(); this.data.delete(value); - if (done || ++i3 > 10) { + if (done || ++i > 10) { break; } } @@ -29122,6 +29027,8 @@ var require_dist_cjs30 = __commonJS({ return buffer; } }; + __name(_EndpointCache, "EndpointCache"); + var EndpointCache = _EndpointCache; var IP_V4_REGEX = new RegExp( `^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$` ); @@ -29139,7 +29046,7 @@ var require_dist_cjs30 = __commonJS({ } return true; }, "isValidHostLabel"); - var customEndpointFunctions3 = {}; + var customEndpointFunctions = {}; var debugId = "endpoints"; function toDebugString(input) { if (typeof input !== "object" || input == null) { @@ -29154,15 +29061,14 @@ var require_dist_cjs30 = __commonJS({ return JSON.stringify(input, null, 2); } __name(toDebugString, "toDebugString"); - var EndpointError2 = class extends Error { - static { - __name(this, "EndpointError"); - } + var _EndpointError = class _EndpointError extends Error { constructor(message) { super(message); this.name = "EndpointError"; } }; + __name(_EndpointError, "EndpointError"); + var EndpointError2 = _EndpointError; var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals"); var getAttrPathList = /* @__PURE__ */ __name((path2) => { const parts = path2.split("."); @@ -29211,7 +29117,7 @@ var require_dist_cjs30 = __commonJS({ if (typeof value === "object" && "hostname" in value) { const { hostname: hostname2, port, protocol: protocol2 = "", path: path2 = "", query = {} } = value; const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path2}`); - url.search = Object.entries(query).map(([k3, v6]) => `${k3}=${v6}`).join("&"); + url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&"); return url; } return new URL(value); @@ -29253,7 +29159,7 @@ var require_dist_cjs30 = __commonJS({ } return input.substring(input.length - stop, input.length - start); }, "substring"); - var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode"); + var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode"); var endpointFunctions = { booleanEquals, getAttr, @@ -29321,23 +29227,25 @@ var require_dist_cjs30 = __commonJS({ (arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options) ); const fnSegments = fn.split("."); - if (fnSegments[0] in customEndpointFunctions3 && fnSegments[1] != null) { - return customEndpointFunctions3[fnSegments[0]][fnSegments[1]](...evaluatedArgs); + if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) { + return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs); } return endpointFunctions[fn](...evaluatedArgs); }, "callFunction"); var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => { + var _a, _b; if (assign && assign in options.referenceRecord) { throw new EndpointError2(`'${assign}' is already defined in Reference Record.`); } const value = callFunction(fnArgs, options); - options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`); return { result: value === "" ? true : !!value, ...assign != null && { toAssign: { name: assign, value } } }; }, "evaluateCondition"); var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => { + var _a, _b; const conditionsReferenceRecord = {}; for (const condition of conditions) { const { result, toAssign } = evaluateCondition(condition, { @@ -29352,7 +29260,7 @@ var require_dist_cjs30 = __commonJS({ } if (toAssign) { conditionsReferenceRecord[toAssign.name] = toAssign.value; - options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); } } return { result: true, referenceRecord: conditionsReferenceRecord }; @@ -29408,6 +29316,7 @@ var require_dist_cjs30 = __commonJS({ throw new EndpointError2(`Endpoint URL must be a string, got ${typeof expression}`); }, "getEndpointUrl"); var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => { + var _a, _b; const { conditions, endpoint } = endpointRule; const { result, referenceRecord } = evaluateConditions(conditions, options); if (!result) { @@ -29418,7 +29327,7 @@ var require_dist_cjs30 = __commonJS({ referenceRecord: { ...options.referenceRecord, ...referenceRecord } }; const { url, properties, headers } = endpoint; - options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`); return { ...headers != void 0 && { headers: getEndpointHeaders(headers, endpointRuleOptions) @@ -29473,24 +29382,25 @@ var require_dist_cjs30 = __commonJS({ } throw new EndpointError2(`Rules evaluation failed`); }, "evaluateRules"); - var resolveEndpoint4 = /* @__PURE__ */ __name((ruleSetObject, options) => { + var resolveEndpoint2 = /* @__PURE__ */ __name((ruleSetObject, options) => { + var _a, _b, _c, _d; const { endpointParams, logger } = options; const { parameters, rules } = ruleSetObject; - options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); - const paramsWithDefault = Object.entries(parameters).filter(([, v6]) => v6.default != null).map(([k3, v6]) => [k3, v6.default]); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); + const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]); if (paramsWithDefault.length > 0) { for (const [paramKey, paramDefaultValue] of paramsWithDefault) { endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue; } } - const requiredParams = Object.entries(parameters).filter(([, v6]) => v6.required).map(([k3]) => k3); + const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k); for (const requiredParam of requiredParams) { if (endpointParams[requiredParam] == null) { throw new EndpointError2(`Missing required parameter: '${requiredParam}'`); } } const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} }); - options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); + (_d = (_c = options.logger) == null ? void 0 : _c.debug) == null ? void 0 : _d.call(_c, `${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); return endpoint; }, "resolveEndpoint"); } @@ -29520,37 +29430,37 @@ var require_dist_cjs31 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - ConditionObject: () => import_util_endpoints5.ConditionObject, - DeprecatedObject: () => import_util_endpoints5.DeprecatedObject, - EndpointError: () => import_util_endpoints5.EndpointError, - EndpointObject: () => import_util_endpoints5.EndpointObject, - EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders, - EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties, - EndpointParams: () => import_util_endpoints5.EndpointParams, - EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions, - EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject, - ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject, - EvaluateOptions: () => import_util_endpoints5.EvaluateOptions, - Expression: () => import_util_endpoints5.Expression, - FunctionArgv: () => import_util_endpoints5.FunctionArgv, - FunctionObject: () => import_util_endpoints5.FunctionObject, - FunctionReturn: () => import_util_endpoints5.FunctionReturn, - ParameterObject: () => import_util_endpoints5.ParameterObject, - ReferenceObject: () => import_util_endpoints5.ReferenceObject, - ReferenceRecord: () => import_util_endpoints5.ReferenceRecord, - RuleSetObject: () => import_util_endpoints5.RuleSetObject, - RuleSetRules: () => import_util_endpoints5.RuleSetRules, - TreeRuleObject: () => import_util_endpoints5.TreeRuleObject, - awsEndpointFunctions: () => awsEndpointFunctions3, + ConditionObject: () => import_util_endpoints.ConditionObject, + DeprecatedObject: () => import_util_endpoints.DeprecatedObject, + EndpointError: () => import_util_endpoints.EndpointError, + EndpointObject: () => import_util_endpoints.EndpointObject, + EndpointObjectHeaders: () => import_util_endpoints.EndpointObjectHeaders, + EndpointObjectProperties: () => import_util_endpoints.EndpointObjectProperties, + EndpointParams: () => import_util_endpoints.EndpointParams, + EndpointResolverOptions: () => import_util_endpoints.EndpointResolverOptions, + EndpointRuleObject: () => import_util_endpoints.EndpointRuleObject, + ErrorRuleObject: () => import_util_endpoints.ErrorRuleObject, + EvaluateOptions: () => import_util_endpoints.EvaluateOptions, + Expression: () => import_util_endpoints.Expression, + FunctionArgv: () => import_util_endpoints.FunctionArgv, + FunctionObject: () => import_util_endpoints.FunctionObject, + FunctionReturn: () => import_util_endpoints.FunctionReturn, + ParameterObject: () => import_util_endpoints.ParameterObject, + ReferenceObject: () => import_util_endpoints.ReferenceObject, + ReferenceRecord: () => import_util_endpoints.ReferenceRecord, + RuleSetObject: () => import_util_endpoints.RuleSetObject, + RuleSetRules: () => import_util_endpoints.RuleSetRules, + TreeRuleObject: () => import_util_endpoints.TreeRuleObject, + awsEndpointFunctions: () => awsEndpointFunctions, getUserAgentPrefix: () => getUserAgentPrefix, - isIpAddress: () => import_util_endpoints5.isIpAddress, + isIpAddress: () => import_util_endpoints.isIpAddress, partition: () => partition, - resolveEndpoint: () => import_util_endpoints5.resolveEndpoint, + resolveEndpoint: () => import_util_endpoints.resolveEndpoint, setPartitionInfo: () => setPartitionInfo, useDefaultPartitionInfo: () => useDefaultPartitionInfo }); module2.exports = __toCommonJS2(src_exports); - var import_util_endpoints5 = require_dist_cjs30(); + var import_util_endpoints = require_dist_cjs30(); var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => { if (allowSubDomains) { for (const label of value.split(".")) { @@ -29560,7 +29470,7 @@ var require_dist_cjs31 = __commonJS({ } return true; } - if (!(0, import_util_endpoints5.isValidHostLabel)(value)) { + if (!(0, import_util_endpoints.isValidHostLabel)(value)) { return false; } if (value.length < 3 || value.length > 63) { @@ -29569,7 +29479,7 @@ var require_dist_cjs31 = __commonJS({ if (value !== value.toLowerCase()) { return false; } - if ((0, import_util_endpoints5.isIpAddress)(value)) { + if ((0, import_util_endpoints.isIpAddress)(value)) { return false; } return true; @@ -29641,9 +29551,6 @@ var require_dist_cjs31 = __commonJS({ "ap-southeast-5": { description: "Asia Pacific (Malaysia)" }, - "ap-southeast-7": { - description: "Asia Pacific (Thailand)" - }, "aws-global": { description: "AWS Standard global region" }, @@ -29686,9 +29593,6 @@ var require_dist_cjs31 = __commonJS({ "me-south-1": { description: "Middle East (Bahrain)" }, - "mx-central-1": { - description: "Mexico (Central)" - }, "sa-east-1": { description: "South America (Sao Paulo)" }, @@ -29862,12 +29766,12 @@ var require_dist_cjs31 = __commonJS({ setPartitionInfo(partitions_default, ""); }, "useDefaultPartitionInfo"); var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix"); - var awsEndpointFunctions3 = { + var awsEndpointFunctions = { isVirtualHostableS3Bucket, parseArn, partition }; - import_util_endpoints5.customEndpointFunctions.aws = awsEndpointFunctions3; + import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions; } }); @@ -29897,12 +29801,12 @@ var require_dist_cjs32 = __commonJS({ __export2(src_exports, { DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID, getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions, - getUserAgentPlugin: () => getUserAgentPlugin3, - resolveUserAgentConfig: () => resolveUserAgentConfig3, + getUserAgentPlugin: () => getUserAgentPlugin, + resolveUserAgentConfig: () => resolveUserAgentConfig, userAgentMiddleware: () => userAgentMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var DEFAULT_UA_APP_ID = void 0; function isValidUserAgentAppId(appId) { if (appId === void 0) { @@ -29911,39 +29815,41 @@ var require_dist_cjs32 = __commonJS({ return typeof appId === "string" && appId.length <= 50; } __name(isValidUserAgentAppId, "isValidUserAgentAppId"); - function resolveUserAgentConfig3(input) { - const normalizedAppIdProvider = (0, import_core17.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID); + function resolveUserAgentConfig(input) { + const normalizedAppIdProvider = (0, import_core3.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID); return { ...input, customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, userAgentAppId: async () => { + var _a, _b; const appId = await normalizedAppIdProvider(); if (!isValidUserAgentAppId(appId)) { - const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger; + const logger = ((_b = (_a = input.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger" || !input.logger ? console : input.logger; if (typeof appId !== "string") { - logger?.warn("userAgentAppId must be a string or undefined."); + logger == null ? void 0 : logger.warn("userAgentAppId must be a string or undefined."); } else if (appId.length > 50) { - logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); + logger == null ? void 0 : logger.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); } } return appId; } }; } - __name(resolveUserAgentConfig3, "resolveUserAgentConfig"); - var import_util_endpoints5 = require_dist_cjs31(); - var import_protocol_http11 = require_dist_cjs2(); + __name(resolveUserAgentConfig, "resolveUserAgentConfig"); + var import_util_endpoints = require_dist_cjs31(); + var import_protocol_http8 = require_dist_cjs2(); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; async function checkFeatures(context, config, args) { + var _a, _b, _c, _d, _e, _f, _g; const request = args.request; - if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") { + if (((_a = request == null ? void 0 : request.headers) == null ? void 0 : _a["smithy-protocol"]) === "rpc-v2-cbor") { (0, import_core22.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M"); } if (typeof config.retryStrategy === "function") { const retryStrategy = await config.retryStrategy(); if (typeof retryStrategy.acquireInitialRetryToken === "function") { - if (retryStrategy.constructor?.name?.includes("Adaptive")) { + if ((_c = (_b = retryStrategy.constructor) == null ? void 0 : _b.name) == null ? void 0 : _c.includes("Adaptive")) { (0, import_core22.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F"); } else { (0, import_core22.setFeature)(context, "RETRY_MODE_STANDARD", "E"); @@ -29954,10 +29860,10 @@ var require_dist_cjs32 = __commonJS({ } if (typeof config.accountIdEndpointMode === "function") { const endpointV2 = context.endpointV2; - if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { + if (String((_d = endpointV2 == null ? void 0 : endpointV2.url) == null ? void 0 : _d.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { (0, import_core22.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O"); } - switch (await config.accountIdEndpointMode?.()) { + switch (await ((_e = config.accountIdEndpointMode) == null ? void 0 : _e.call(config))) { case "disabled": (0, import_core22.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q"); break; @@ -29969,8 +29875,8 @@ var require_dist_cjs32 = __commonJS({ break; } } - const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity; - if (identity?.$source) { + const identity = (_g = (_f = context.__smithy_context) == null ? void 0 : _f.selectedHttpAuthScheme) == null ? void 0 : _g.identity; + if (identity == null ? void 0 : identity.$source) { const credentials = identity; if (credentials.accountId) { (0, import_core22.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T"); @@ -30007,26 +29913,27 @@ var require_dist_cjs32 = __commonJS({ } __name(encodeFeatures, "encodeFeatures"); var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { + var _a, _b, _c, _d; const { request } = args; - if (!import_protocol_http11.HttpRequest.isInstance(request)) { + if (!import_protocol_http8.HttpRequest.isInstance(request)) { return next(args); } const { headers } = request; - const userAgent = context?.userAgent?.map(escapeUserAgent) || []; + const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || []; const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); await checkFeatures(context, options, args); const awsContext = context; defaultUserAgent.push( `m/${encodeFeatures( - Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features) + Object.assign({}, (_b = context.__smithy_context) == null ? void 0 : _b.features, (_c = awsContext.__aws_sdk_context) == null ? void 0 : _c.features) )}` ); - const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; + const customUserAgent = ((_d = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _d.map(escapeUserAgent)) || []; const appId = await options.userAgentAppId(); if (appId) { defaultUserAgent.push(escapeUserAgent([`app/${appId}`])); } - const prefix = (0, import_util_endpoints5.getUserAgentPrefix)(); + const prefix = (0, import_util_endpoints.getUserAgentPrefix)(); const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE); const normalUAValue = [ ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), @@ -30046,8 +29953,9 @@ var require_dist_cjs32 = __commonJS({ }); }, "userAgentMiddleware"); var escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => { + var _a; const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR); - const version2 = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); + const version2 = (_a = userAgentPair[1]) == null ? void 0 : _a.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR); const prefix = name.substring(0, prefixSeparatorIndex); let uaName = name.substring(prefixSeparatorIndex + 1); @@ -30072,7 +29980,7 @@ var require_dist_cjs32 = __commonJS({ tags: ["SET_USER_AGENT", "USER_AGENT"], override: true }; - var getUserAgentPlugin3 = /* @__PURE__ */ __name((config) => ({ + var getUserAgentPlugin = /* @__PURE__ */ __name((config) => ({ applyToStack: (clientStack) => { clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions); } @@ -30109,23 +30017,23 @@ var require_dist_cjs33 = __commonJS({ DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT, ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT, ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT, - NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3, - NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3, - NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3, - NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3, + NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, + NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, + NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, REGION_ENV_NAME: () => REGION_ENV_NAME, REGION_INI_NAME: () => REGION_INI_NAME, getRegionInfo: () => getRegionInfo, resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig, resolveEndpointsConfig: () => resolveEndpointsConfig, - resolveRegionConfig: () => resolveRegionConfig3 + resolveRegionConfig: () => resolveRegionConfig }); module2.exports = __toCommonJS2(src_exports); var import_util_config_provider = require_dist_cjs27(); var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; var DEFAULT_USE_DUALSTACK_ENDPOINT = false; - var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3 = { + var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV), configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false @@ -30133,20 +30041,20 @@ var require_dist_cjs33 = __commonJS({ var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; var DEFAULT_USE_FIPS_ENDPOINT = false; - var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3 = { + var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV), configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false }; - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => { const { endpoint, urlParser } = input; return { ...input, tls: input.tls ?? true, - endpoint: (0, import_util_middleware5.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + endpoint: (0, import_util_middleware3.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), isCustomEndpoint: true, - useDualstackEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false) + useDualstackEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false) }; }, "resolveCustomEndpointsConfig"); var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => { @@ -30165,31 +30073,31 @@ var require_dist_cjs33 = __commonJS({ return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); }, "getEndpointFromRegion"); var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => { - const useDualstackEndpoint = (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false); + const useDualstackEndpoint = (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false); const { endpoint, useFipsEndpoint, urlParser } = input; return { ...input, tls: input.tls ?? true, - endpoint: endpoint ? (0, import_util_middleware5.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), + endpoint: endpoint ? (0, import_util_middleware3.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), isCustomEndpoint: !!endpoint, useDualstackEndpoint }; }, "resolveEndpointsConfig"); var REGION_ENV_NAME = "AWS_REGION"; var REGION_INI_NAME = "region"; - var NODE_REGION_CONFIG_OPTIONS3 = { + var NODE_REGION_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[REGION_ENV_NAME], configFileSelector: (profile) => profile[REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - var NODE_REGION_CONFIG_FILE_OPTIONS3 = { + var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion"); var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion"); - var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRegionConfig = /* @__PURE__ */ __name((input) => { const { region, useFipsEndpoint } = input; if (!region) { throw new Error("Region is missing"); @@ -30212,9 +30120,12 @@ var require_dist_cjs33 = __commonJS({ } }; }, "resolveRegionConfig"); - var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find( - ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack") - )?.hostname, "getHostnameFromVariants"); + var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find( + ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack") + )) == null ? void 0 : _a.hostname; + }, "getHostnameFromVariants"); var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname"); var getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition"); var getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { @@ -30235,17 +30146,18 @@ var require_dist_cjs33 = __commonJS({ regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e; const partition = getResolvedPartition(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region; + const resolvedRegion = region in regionHash ? region : ((_a = partitionHash[partition]) == null ? void 0 : _a.endpoint) ?? region; const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions); - const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions); + const regionHostname = getHostnameFromVariants((_b = regionHash[resolvedRegion]) == null ? void 0 : _b.variants, hostnameOptions); + const partitionHostname = getHostnameFromVariants((_c = partitionHash[partition]) == null ? void 0 : _c.variants, hostnameOptions); const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); if (hostname === void 0) { throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); } const signingRegion = getResolvedSigningRegion(hostname, { - signingRegion: regionHash[resolvedRegion]?.signingRegion, + signingRegion: (_d = regionHash[resolvedRegion]) == null ? void 0 : _d.signingRegion, regionRegex: partitionHash[partition].regionRegex, useFipsEndpoint }); @@ -30254,7 +30166,7 @@ var require_dist_cjs33 = __commonJS({ signingService, hostname, ...signingRegion && { signingRegion }, - ...regionHash[resolvedRegion]?.signingService && { + ...((_e = regionHash[resolvedRegion]) == null ? void 0 : _e.signingService) && { signingService: regionHash[resolvedRegion].signingService } }; @@ -30320,15 +30232,15 @@ var require_dist_cjs35 = __commonJS({ __export2(src_exports, { contentLengthMiddleware: () => contentLengthMiddleware, contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions, - getContentLengthPlugin: () => getContentLengthPlugin3 + getContentLengthPlugin: () => getContentLengthPlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var CONTENT_LENGTH_HEADER = "content-length"; function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request = args.request; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { const { body, headers } = request; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { @@ -30354,7 +30266,7 @@ var require_dist_cjs35 = __commonJS({ name: "contentLengthMiddleware", override: true }; - var getContentLengthPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); } @@ -30415,8 +30327,8 @@ var init_stringify = __esm({ "../../node_modules/uuid/dist/esm-node/stringify.js"() { init_validate(); byteToHex = []; - for (let i3 = 0; i3 < 256; ++i3) { - byteToHex.push((i3 + 256).toString(16).slice(1)); + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).slice(1)); } stringify_default = stringify; } @@ -30424,8 +30336,8 @@ var init_stringify = __esm({ // ../../node_modules/uuid/dist/esm-node/v1.js function v1(options, buf, offset) { - let i3 = buf && offset || 0; - const b3 = buf || new Array(16); + let i = buf && offset || 0; + const b = buf || new Array(16); options = options || {}; let node = options.node || _nodeId; let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; @@ -30455,21 +30367,21 @@ function v1(options, buf, offset) { _clockseq = clockseq; msecs += 122192928e5; const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b3[i3++] = tl >>> 24 & 255; - b3[i3++] = tl >>> 16 & 255; - b3[i3++] = tl >>> 8 & 255; - b3[i3++] = tl & 255; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; const tmh = msecs / 4294967296 * 1e4 & 268435455; - b3[i3++] = tmh >>> 8 & 255; - b3[i3++] = tmh & 255; - b3[i3++] = tmh >>> 24 & 15 | 16; - b3[i3++] = tmh >>> 16 & 255; - b3[i3++] = clockseq >>> 8 | 128; - b3[i3++] = clockseq & 255; - for (let n3 = 0; n3 < 6; ++n3) { - b3[i3 + n3] = node[n3]; - } - return buf || unsafeStringify(b3); + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || unsafeStringify(b); } var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; var init_v1 = __esm({ @@ -30487,24 +30399,24 @@ function parse(uuid) { if (!validate_default(uuid)) { throw TypeError("Invalid UUID"); } - let v6; + let v; const arr = new Uint8Array(16); - arr[0] = (v6 = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v6 >>> 16 & 255; - arr[2] = v6 >>> 8 & 255; - arr[3] = v6 & 255; - arr[4] = (v6 = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v6 & 255; - arr[6] = (v6 = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v6 & 255; - arr[8] = (v6 = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v6 & 255; - arr[10] = (v6 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v6 / 4294967296 & 255; - arr[12] = v6 >>> 24 & 255; - arr[13] = v6 >>> 16 & 255; - arr[14] = v6 >>> 8 & 255; - arr[15] = v6 & 255; + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; return arr; } var parse_default; @@ -30519,8 +30431,8 @@ var init_parse = __esm({ function stringToBytes(str) { str = unescape(encodeURIComponent(str)); const bytes = []; - for (let i3 = 0; i3 < str.length; ++i3) { - bytes.push(str.charCodeAt(i3)); + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); } return bytes; } @@ -30544,8 +30456,8 @@ function v35(name, version2, hashfunc) { bytes[8] = bytes[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i3 = 0; i3 < 16; ++i3) { - buf[offset + i3] = bytes[i3]; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; } return buf; } @@ -30619,8 +30531,8 @@ function v4(options, buf, offset) { rnds[8] = rnds[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i3 = 0; i3 < 16; ++i3) { - buf[offset + i3] = rnds[i3]; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; } return buf; } @@ -30775,11 +30687,21 @@ var require_dist_cjs36 = __commonJS({ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; var isRetryableByTrait = /* @__PURE__ */ __name((error2) => error2.$retryable !== void 0, "isRetryableByTrait"); var isClockSkewError = /* @__PURE__ */ __name((error2) => CLOCK_SKEW_ERROR_CODES.includes(error2.name), "isClockSkewError"); - var isClockSkewCorrectedError = /* @__PURE__ */ __name((error2) => error2.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError"); - var isThrottlingError = /* @__PURE__ */ __name((error2) => error2.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error2.name) || error2.$retryable?.throttling == true, "isThrottlingError"); - var isTransientError = /* @__PURE__ */ __name((error2, depth = 0) => isClockSkewCorrectedError(error2) || TRANSIENT_ERROR_CODES.includes(error2.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error2?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error2.$metadata?.httpStatusCode || 0) || error2.cause !== void 0 && depth <= 10 && isTransientError(error2.cause, depth + 1), "isTransientError"); + var isClockSkewCorrectedError = /* @__PURE__ */ __name((error2) => { + var _a; + return (_a = error2.$metadata) == null ? void 0 : _a.clockSkewCorrected; + }, "isClockSkewCorrectedError"); + var isThrottlingError = /* @__PURE__ */ __name((error2) => { + var _a, _b; + return ((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error2.name) || ((_b = error2.$retryable) == null ? void 0 : _b.throttling) == true; + }, "isThrottlingError"); + var isTransientError = /* @__PURE__ */ __name((error2, depth = 0) => { + var _a; + return isClockSkewCorrectedError(error2) || TRANSIENT_ERROR_CODES.includes(error2.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error2 == null ? void 0 : error2.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) || 0) || error2.cause !== void 0 && depth <= 10 && isTransientError(error2.cause, depth + 1); + }, "isTransientError"); var isServerError = /* @__PURE__ */ __name((error2) => { - if (error2.$metadata?.httpStatusCode !== void 0) { + var _a; + if (((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) !== void 0) { const statusCode = error2.$metadata.httpStatusCode; if (500 <= statusCode && statusCode <= 599 && !isTransientError(error2)) { return true; @@ -30818,7 +30740,7 @@ var require_dist_cjs37 = __commonJS({ ConfiguredRetryStrategy: () => ConfiguredRetryStrategy, DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE, - DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE3, + DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE, DefaultRateLimiter: () => DefaultRateLimiter, INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER, @@ -30838,9 +30760,9 @@ var require_dist_cjs37 = __commonJS({ return RETRY_MODES2; })(RETRY_MODES || {}); var DEFAULT_MAX_ATTEMPTS = 3; - var DEFAULT_RETRY_MODE3 = "standard"; + var DEFAULT_RETRY_MODE = "standard"; var import_service_error_classification = require_dist_cjs36(); - var DefaultRateLimiter = class _DefaultRateLimiter { + var _DefaultRateLimiter = class _DefaultRateLimiter2 { constructor(options) { this.currentCapacity = 0; this.enabled = false; @@ -30849,23 +30771,17 @@ var require_dist_cjs37 = __commonJS({ this.requestCount = 0; this.lastTimestamp = 0; this.timeWindow = 0; - this.beta = options?.beta ?? 0.7; - this.minCapacity = options?.minCapacity ?? 1; - this.minFillRate = options?.minFillRate ?? 0.5; - this.scaleConstant = options?.scaleConstant ?? 0.4; - this.smooth = options?.smooth ?? 0.8; + this.beta = (options == null ? void 0 : options.beta) ?? 0.7; + this.minCapacity = (options == null ? void 0 : options.minCapacity) ?? 1; + this.minFillRate = (options == null ? void 0 : options.minFillRate) ?? 0.5; + this.scaleConstant = (options == null ? void 0 : options.scaleConstant) ?? 0.4; + this.smooth = (options == null ? void 0 : options.smooth) ?? 0.8; const currentTimeInSeconds = this.getCurrentTimeInSeconds(); this.lastThrottleTime = currentTimeInSeconds; this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); this.fillRate = this.minFillRate; this.maxCapacity = this.minCapacity; } - static { - __name(this, "DefaultRateLimiter"); - } - static { - this.setTimeoutFn = setTimeout; - } getCurrentTimeInSeconds() { return Date.now() / 1e3; } @@ -30879,7 +30795,7 @@ var require_dist_cjs37 = __commonJS({ this.refillTokenBucket(); if (amount > this.currentCapacity) { const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay)); + await new Promise((resolve) => _DefaultRateLimiter2.setTimeoutFn(resolve, delay)); } this.currentCapacity = this.currentCapacity - amount; } @@ -30931,8 +30847,8 @@ var require_dist_cjs37 = __commonJS({ this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); } updateMeasuredRate() { - const t3 = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t3 * 2) / 2; + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; this.requestCount++; if (timeBucket > this.lastTxRateBucket) { const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); @@ -30945,6 +30861,9 @@ var require_dist_cjs37 = __commonJS({ return parseFloat(num.toFixed(8)); } }; + __name(_DefaultRateLimiter, "DefaultRateLimiter"); + _DefaultRateLimiter.setTimeoutFn = setTimeout; + var DefaultRateLimiter = _DefaultRateLimiter; var DEFAULT_RETRY_DELAY_BASE = 100; var MAXIMUM_RETRY_DELAY = 20 * 1e3; var THROTTLING_RETRY_DELAY_BASE = 500; @@ -30981,7 +30900,7 @@ var require_dist_cjs37 = __commonJS({ getRetryCost }; }, "createDefaultRetryToken"); - var StandardRetryStrategy = class { + var _StandardRetryStrategy = class _StandardRetryStrategy { constructor(maxAttempts) { this.maxAttempts = maxAttempts; this.mode = "standard"; @@ -30989,9 +30908,6 @@ var require_dist_cjs37 = __commonJS({ this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; } - static { - __name(this, "StandardRetryStrategy"); - } // eslint-disable-next-line @typescript-eslint/no-unused-vars async acquireInitialRetryToken(retryTokenScope) { return createDefaultRetryToken({ @@ -31048,7 +30964,9 @@ var require_dist_cjs37 = __commonJS({ return errorType === "THROTTLING" || errorType === "TRANSIENT"; } }; - var AdaptiveRetryStrategy = class { + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { constructor(maxAttemptsProvider, options) { this.maxAttemptsProvider = maxAttemptsProvider; this.mode = "adaptive"; @@ -31056,9 +30974,6 @@ var require_dist_cjs37 = __commonJS({ this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); } - static { - __name(this, "AdaptiveRetryStrategy"); - } async acquireInitialRetryToken(retryTokenScope) { await this.rateLimiter.getSendToken(); return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); @@ -31072,10 +30987,9 @@ var require_dist_cjs37 = __commonJS({ this.standardRetryStrategy.recordSuccess(token); } }; - var ConfiguredRetryStrategy = class extends StandardRetryStrategy { - static { - __name(this, "ConfiguredRetryStrategy"); - } + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { /** * @param maxAttempts - the maximum number of retry attempts allowed. * e.g., if set to 3, then 4 total requests are possible. @@ -31109,6 +31023,8 @@ var require_dist_cjs37 = __commonJS({ return token; } }; + __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); + var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; } }); @@ -31152,29 +31068,29 @@ var require_dist_cjs38 = __commonJS({ CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE, ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS, ENV_RETRY_MODE: () => ENV_RETRY_MODE, - NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS3, - NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS3, + NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS, + NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS, StandardRetryStrategy: () => StandardRetryStrategy, defaultDelayDecider: () => defaultDelayDecider, defaultRetryDecider: () => defaultRetryDecider, getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin, getRetryAfterHint: () => getRetryAfterHint, - getRetryPlugin: () => getRetryPlugin3, + getRetryPlugin: () => getRetryPlugin, omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions, - resolveRetryConfig: () => resolveRetryConfig3, + resolveRetryConfig: () => resolveRetryConfig, retryMiddleware: () => retryMiddleware, retryMiddlewareOptions: () => retryMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports)); - var import_util_retry3 = require_dist_cjs37(); + var import_util_retry = require_dist_cjs37(); var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry3.NO_RETRY_INCREMENT; - const retryCost = options?.retryCost ?? import_util_retry3.RETRY_COST; - const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry3.TIMEOUT_RETRY_COST; + const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ?? import_util_retry.NO_RETRY_INCREMENT; + const retryCost = (options == null ? void 0 : options.retryCost) ?? import_util_retry.RETRY_COST; + const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ?? import_util_retry.TIMEOUT_RETRY_COST; let availableCapacity = initialRetryTokens; const getCapacityAmount = /* @__PURE__ */ __name((error2) => error2.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount"); const hasRetryTokens = /* @__PURE__ */ __name((error2) => getCapacityAmount(error2) <= availableCapacity, "hasRetryTokens"); @@ -31196,7 +31112,7 @@ var require_dist_cjs38 = __commonJS({ releaseRetryTokens }); }, "getDefaultRetryQuota"); - var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry3.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); + var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); var import_service_error_classification = require_dist_cjs36(); var defaultRetryDecider = /* @__PURE__ */ __name((error2) => { if (!error2) { @@ -31213,16 +31129,13 @@ var require_dist_cjs38 = __commonJS({ return new Error(error2); return new Error(`AWS SDK error wrapper for ${error2}`); }, "asSdkError"); - var StandardRetryStrategy = class { + var _StandardRetryStrategy = class _StandardRetryStrategy { constructor(maxAttemptsProvider, options) { this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = import_util_retry3.RETRY_MODES.STANDARD; - this.retryDecider = options?.retryDecider ?? defaultRetryDecider; - this.delayDecider = options?.delayDecider ?? defaultDelayDecider; - this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry3.INITIAL_RETRY_TOKENS); - } - static { - __name(this, "StandardRetryStrategy"); + this.mode = import_util_retry.RETRY_MODES.STANDARD; + this.retryDecider = (options == null ? void 0 : options.retryDecider) ?? defaultRetryDecider; + this.delayDecider = (options == null ? void 0 : options.delayDecider) ?? defaultDelayDecider; + this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS); } shouldRetry(error2, attempts, maxAttempts) { return attempts < maxAttempts && this.retryDecider(error2) && this.retryQuota.hasRetryTokens(error2); @@ -31232,7 +31145,7 @@ var require_dist_cjs38 = __commonJS({ try { maxAttempts = await this.maxAttemptsProvider(); } catch (error2) { - maxAttempts = import_util_retry3.DEFAULT_MAX_ATTEMPTS; + maxAttempts = import_util_retry.DEFAULT_MAX_ATTEMPTS; } return maxAttempts; } @@ -31242,32 +31155,32 @@ var require_dist_cjs38 = __commonJS({ let totalDelay = 0; const maxAttempts = await this.getMaxAttempts(); const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { - request.headers[import_util_retry3.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + if (import_protocol_http8.HttpRequest.isInstance(request)) { + request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { - if (import_protocol_http11.HttpRequest.isInstance(request)) { - request.headers[import_util_retry3.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + if (import_protocol_http8.HttpRequest.isInstance(request)) { + request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } - if (options?.beforeRequest) { + if (options == null ? void 0 : options.beforeRequest) { await options.beforeRequest(); } const { response, output } = await next(args); - if (options?.afterRequest) { + if (options == null ? void 0 : options.afterRequest) { options.afterRequest(response); } this.retryQuota.releaseRetryTokens(retryTokenAmount); output.$metadata.attempts = attempts + 1; output.$metadata.totalRetryDelay = totalDelay; return { response, output }; - } catch (e3) { - const err = asSdkError(e3); + } catch (e) { + const err = asSdkError(e); attempts++; if (this.shouldRetry(err, attempts, maxAttempts)) { retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); const delayFromDecider = this.delayDecider( - (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry3.THROTTLING_RETRY_DELAY_BASE : import_util_retry3.DEFAULT_RETRY_DELAY_BASE, + (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry.THROTTLING_RETRY_DELAY_BASE : import_util_retry.DEFAULT_RETRY_DELAY_BASE, attempts ); const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); @@ -31286,8 +31199,10 @@ var require_dist_cjs38 = __commonJS({ } } }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http11.HttpResponse.isInstance(response)) + if (!import_protocol_http8.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31299,15 +31214,12 @@ var require_dist_cjs38 = __commonJS({ const retryAfterDate = new Date(retryAfter); return retryAfterDate.getTime() - Date.now(); }, "getDelayFromRetryAfterHeader"); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy { - static { - __name(this, "AdaptiveRetryStrategy"); - } + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryStrategy { constructor(maxAttemptsProvider, options) { const { rateLimiter, ...superOptions } = options ?? {}; super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter ?? new import_util_retry3.DefaultRateLimiter(); - this.mode = import_util_retry3.RETRY_MODES.ADAPTIVE; + this.rateLimiter = rateLimiter ?? new import_util_retry.DefaultRateLimiter(); + this.mode = import_util_retry.RETRY_MODES.ADAPTIVE; } async retry(next, args) { return super.retry(next, args, { @@ -31320,10 +31232,12 @@ var require_dist_cjs38 = __commonJS({ }); } }; - var import_util_middleware5 = require_dist_cjs4(); + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var import_util_middleware3 = require_dist_cjs4(); var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; var CONFIG_MAX_ATTEMPTS = "max_attempts"; - var NODE_MAX_ATTEMPT_CONFIG_OPTIONS3 = { + var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => { const value = env[ENV_MAX_ATTEMPTS]; if (!value) @@ -31344,11 +31258,11 @@ var require_dist_cjs38 = __commonJS({ } return maxAttempt; }, - default: import_util_retry3.DEFAULT_MAX_ATTEMPTS + default: import_util_retry.DEFAULT_MAX_ATTEMPTS }; - var resolveRetryConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRetryConfig = /* @__PURE__ */ __name((input) => { const { retryStrategy } = input; - const maxAttempts = (0, import_util_middleware5.normalizeProvider)(input.maxAttempts ?? import_util_retry3.DEFAULT_MAX_ATTEMPTS); + const maxAttempts = (0, import_util_middleware3.normalizeProvider)(input.maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS); return { ...input, maxAttempts, @@ -31356,26 +31270,26 @@ var require_dist_cjs38 = __commonJS({ if (retryStrategy) { return retryStrategy; } - const retryMode = await (0, import_util_middleware5.normalizeProvider)(input.retryMode)(); - if (retryMode === import_util_retry3.RETRY_MODES.ADAPTIVE) { - return new import_util_retry3.AdaptiveRetryStrategy(maxAttempts); + const retryMode = await (0, import_util_middleware3.normalizeProvider)(input.retryMode)(); + if (retryMode === import_util_retry.RETRY_MODES.ADAPTIVE) { + return new import_util_retry.AdaptiveRetryStrategy(maxAttempts); } - return new import_util_retry3.StandardRetryStrategy(maxAttempts); + return new import_util_retry.StandardRetryStrategy(maxAttempts); } }; }, "resolveRetryConfig"); var ENV_RETRY_MODE = "AWS_RETRY_MODE"; var CONFIG_RETRY_MODE = "retry_mode"; - var NODE_RETRY_MODE_CONFIG_OPTIONS3 = { + var NODE_RETRY_MODE_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[ENV_RETRY_MODE], configFileSelector: (profile) => profile[CONFIG_RETRY_MODE], - default: import_util_retry3.DEFAULT_RETRY_MODE + default: import_util_retry.DEFAULT_RETRY_MODE }; var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { - delete request.headers[import_util_retry3.INVOCATION_ID_HEADER]; - delete request.headers[import_util_retry3.REQUEST_HEADER]; + if (import_protocol_http8.HttpRequest.isInstance(request)) { + delete request.headers[import_util_retry.INVOCATION_ID_HEADER]; + delete request.headers[import_util_retry.REQUEST_HEADER]; } return next(args); }, "omitRetryHeadersMiddleware"); @@ -31391,9 +31305,10 @@ var require_dist_cjs38 = __commonJS({ clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); } }), "getOmitRetryHeadersPlugin"); - var import_smithy_client25 = require_dist_cjs19(); + var import_smithy_client4 = require_dist_cjs19(); var import_isStreamingPayload = require_isStreamingPayload(); var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { + var _a; let retryStrategy = await options.retryStrategy(); const maxAttempts = await options.maxAttempts(); if (isRetryStrategyV2(retryStrategy)) { @@ -31403,25 +31318,25 @@ var require_dist_cjs38 = __commonJS({ let attempts = 0; let totalRetryDelay = 0; const { request } = args; - const isRequest = import_protocol_http11.HttpRequest.isInstance(request); + const isRequest = import_protocol_http8.HttpRequest.isInstance(request); if (isRequest) { - request.headers[import_util_retry3.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { if (isRequest) { - request.headers[import_util_retry3.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } const { response, output } = await next(args); retryStrategy.recordSuccess(retryToken); output.$metadata.attempts = attempts + 1; output.$metadata.totalRetryDelay = totalRetryDelay; return { response, output }; - } catch (e3) { - const retryErrorInfo = getRetryErrorInfo(e3); - lastError = asSdkError(e3); + } catch (e) { + const retryErrorInfo = getRetryErrorInfo(e); + lastError = asSdkError(e); if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) { - (context.logger instanceof import_smithy_client25.NoOpLogger ? console : context.logger)?.warn( + (_a = context.logger instanceof import_smithy_client4.NoOpLogger ? console : context.logger) == null ? void 0 : _a.warn( "An error was encountered in a non-retryable streaming request." ); throw lastError; @@ -31444,7 +31359,7 @@ var require_dist_cjs38 = __commonJS({ } } else { retryStrategy = retryStrategy; - if (retryStrategy?.mode) + if (retryStrategy == null ? void 0 : retryStrategy.mode) context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; return retryStrategy.retry(next, args); } @@ -31477,13 +31392,13 @@ var require_dist_cjs38 = __commonJS({ priority: "high", override: true }; - var getRetryPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getRetryPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(retryMiddleware(options), retryMiddlewareOptions); } }), "getRetryPlugin"); var getRetryAfterHint = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http11.HttpResponse.isInstance(response)) + if (!import_protocol_http8.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31530,13 +31445,7 @@ var require_dist_cjs39 = __commonJS({ var signatureV4CrtContainer = { CrtSignerV4: null }; - var SignatureV4MultiRegion = class { - static { - __name(this, "SignatureV4MultiRegion"); - } - sigv4aSigner; - sigv4Signer; - signerOptions; + var _SignatureV4MultiRegion = class _SignatureV4MultiRegion { constructor(options) { this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options); this.signerOptions = options; @@ -31581,12 +31490,12 @@ var require_dist_cjs39 = __commonJS({ CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; if (typeof CrtSignerV4 !== "function") throw new Error(); - } catch (e3) { - e3.message = `${e3.message} + } catch (e) { + e.message = `${e.message} Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`; - throw e3; + throw e; } this.sigv4aSigner = new CrtSignerV4({ ...this.signerOptions, @@ -31596,6 +31505,8 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona return this.sigv4aSigner; } }; + __name(_SignatureV4MultiRegion, "SignatureV4MultiRegion"); + var SignatureV4MultiRegion = _SignatureV4MultiRegion; } }); @@ -31755,7 +31666,7 @@ var require_dist_cjs40 = __commonJS({ var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/; var profileNameBlockList = ["__proto__", "profile __proto__"]; var parseIni = /* @__PURE__ */ __name((iniData) => { - const map2 = {}; + const map = {}; let currentSection; let currentSubSection; for (const iniLine of iniData.split(/\r?\n/)) { @@ -31790,14 +31701,14 @@ var require_dist_cjs40 = __commonJS({ if (currentSubSection && iniLine.trimStart() === iniLine) { currentSubSection = void 0; } - map2[currentSection] = map2[currentSection] || {}; + map[currentSection] = map[currentSection] || {}; const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; - map2[currentSection][key] = value; + map[currentSection][key] = value; } } } } - return map2; + return map; }, "parseIni"); var import_slurpFile = require_slurpFile(); var swallowError = /* @__PURE__ */ __name(() => ({}), "swallowError"); @@ -31885,7 +31796,7 @@ var require_dist_cjs41 = __commonJS({ constants.delete("CONFIG_PREFIX_SEPARATOR"); constants.delete("ENV"); return [...constants].join(", "); - } catch (e3) { + } catch (e) { return functionString; } } @@ -31897,9 +31808,9 @@ var require_dist_cjs41 = __commonJS({ throw new Error(); } return config; - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError( - e3.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, + e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger } ); } @@ -31918,9 +31829,9 @@ var require_dist_cjs41 = __commonJS({ throw new Error(); } return configValue; - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError( - e3.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, + e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger } ); } @@ -31948,7 +31859,7 @@ var require_getEndpointUrlConfig = __commonJS({ var CONFIG_ENDPOINT_URL = "endpoint_url"; var getEndpointUrlConfig = (serviceId) => ({ environmentVariableSelector: (env) => { - const serviceSuffixParts = serviceId.split(" ").map((w3) => w3.toUpperCase()); + const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; if (serviceEndpointUrl) return serviceEndpointUrl; @@ -31961,7 +31872,7 @@ var require_getEndpointUrlConfig = __commonJS({ if (config && profile.services) { const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; if (servicesSection) { - const servicePrefixParts = serviceId.split(" ").map((w3) => w3.toLowerCase()); + const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); const endpointUrl2 = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; if (endpointUrl2) return endpointUrl2; @@ -32065,13 +31976,13 @@ var require_dist_cjs43 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - parseUrl: () => parseUrl3 + parseUrl: () => parseUrl }); module2.exports = __toCommonJS2(src_exports); var import_querystring_parser = require_dist_cjs42(); - var parseUrl3 = /* @__PURE__ */ __name((url) => { + var parseUrl = /* @__PURE__ */ __name((url) => { if (typeof url === "string") { - return parseUrl3(new URL(url)); + return parseUrl(new URL(url)); } const { hostname, pathname, port, protocol, search } = url; let query; @@ -32115,14 +32026,14 @@ var require_dist_cjs44 = __commonJS({ endpointMiddleware: () => endpointMiddleware, endpointMiddlewareOptions: () => endpointMiddlewareOptions, getEndpointFromInstructions: () => getEndpointFromInstructions, - getEndpointPlugin: () => getEndpointPlugin4, - resolveEndpointConfig: () => resolveEndpointConfig3, + getEndpointPlugin: () => getEndpointPlugin, + resolveEndpointConfig: () => resolveEndpointConfig, resolveParams: () => resolveParams, toEndpointV1: () => toEndpointV1 }); module2.exports = __toCommonJS2(src_exports); var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => { - const bucket = endpointParams?.Bucket || ""; + const bucket = (endpointParams == null ? void 0 : endpointParams.Bucket) || ""; if (typeof endpointParams.Bucket === "string") { endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); } @@ -32163,14 +32074,14 @@ var require_dist_cjs44 = __commonJS({ if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { return async () => { const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; - const configValue = credentials?.credentialScope ?? credentials?.CredentialScope; + const configValue = (credentials == null ? void 0 : credentials.credentialScope) ?? (credentials == null ? void 0 : credentials.CredentialScope); return configValue; }; } if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") { return async () => { const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; - const configValue = credentials?.accountId ?? credentials?.AccountId; + const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId); return configValue; }; } @@ -32192,15 +32103,15 @@ var require_dist_cjs44 = __commonJS({ return configProvider; }, "createConfigValueProvider"); var import_getEndpointFromConfig = require_getEndpointFromConfig(); - var import_url_parser3 = require_dist_cjs43(); + var import_url_parser = require_dist_cjs43(); var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => { if (typeof endpoint === "object") { if ("url" in endpoint) { - return (0, import_url_parser3.parseUrl)(endpoint.url); + return (0, import_url_parser.parseUrl)(endpoint.url); } return endpoint; } - return (0, import_url_parser3.parseUrl)(endpoint); + return (0, import_url_parser.parseUrl)(endpoint); }, "toEndpointV1"); var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => { if (!clientConfig.endpoint) { @@ -32222,8 +32133,9 @@ var require_dist_cjs44 = __commonJS({ return endpoint; }, "getEndpointFromInstructions"); var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => { + var _a; const endpointParams = {}; - const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {}; + const instructions = ((_a = instructionsSupplier == null ? void 0 : instructionsSupplier.getEndpointParameterInstructions) == null ? void 0 : _a.call(instructionsSupplier)) || {}; for (const [name, instruction] of Object.entries(instructions)) { switch (instruction.type) { case "staticContextParams": @@ -32251,15 +32163,16 @@ var require_dist_cjs44 = __commonJS({ } return endpointParams; }, "resolveParams"); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_util_middleware5 = require_dist_cjs4(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_util_middleware3 = require_dist_cjs4(); var endpointMiddleware = /* @__PURE__ */ __name(({ config, instructions }) => { return (next, context) => async (args) => { + var _a, _b, _c; if (config.endpoint) { - (0, import_core17.setFeature)(context, "ENDPOINT_OVERRIDE", "N"); + (0, import_core3.setFeature)(context, "ENDPOINT_OVERRIDE", "N"); } const endpoint = await getEndpointFromInstructions( args.input, @@ -32272,13 +32185,13 @@ var require_dist_cjs44 = __commonJS({ context ); context.endpointV2 = endpoint; - context.authSchemes = endpoint.properties?.authSchemes; - const authScheme = context.authSchemes?.[0]; + context.authSchemes = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes; + const authScheme = (_b = context.authSchemes) == null ? void 0 : _b[0]; if (authScheme) { context["signing_region"] = authScheme.signingRegion; context["signing_service"] = authScheme.signingName; - const smithyContext = (0, import_util_middleware5.getSmithyContext)(context); - const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption; + const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); + const httpAuthOption = (_c = smithyContext == null ? void 0 : smithyContext.selectedHttpAuthScheme) == null ? void 0 : _c.httpAuthOption; if (httpAuthOption) { httpAuthOption.signingProperties = Object.assign( httpAuthOption.signingProperties || {}, @@ -32298,16 +32211,16 @@ var require_dist_cjs44 = __commonJS({ }); }; }, "endpointMiddleware"); - var import_middleware_serde5 = require_dist_cjs5(); + var import_middleware_serde2 = require_dist_cjs5(); var endpointMiddlewareOptions = { step: "serialize", tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], name: "endpointV2Middleware", override: true, relation: "before", - toMiddleware: import_middleware_serde5.serializerMiddlewareOption.name + toMiddleware: import_middleware_serde2.serializerMiddlewareOption.name }; - var getEndpointPlugin4 = /* @__PURE__ */ __name((config, instructions) => ({ + var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({ applyToStack: (clientStack) => { clientStack.addRelativeTo( endpointMiddleware({ @@ -32319,18 +32232,18 @@ var require_dist_cjs44 = __commonJS({ } }), "getEndpointPlugin"); var import_getEndpointFromConfig2 = require_getEndpointFromConfig(); - var resolveEndpointConfig3 = /* @__PURE__ */ __name((input) => { + var resolveEndpointConfig = /* @__PURE__ */ __name((input) => { const tls = input.tls ?? true; const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware5.normalizeProvider)(endpoint)()) : void 0; + const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware3.normalizeProvider)(endpoint)()) : void 0; const isCustomEndpoint = !!endpoint; const resolvedConfig = { ...input, endpoint: customEndpointProvider, tls, isCustomEndpoint, - useDualstackEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false), - useFipsEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useFipsEndpoint ?? false) + useDualstackEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false), + useFipsEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useFipsEndpoint ?? false) }; let configuredEndpointPromise = void 0; resolvedConfig.serviceConfiguredEndpoint = async () => { @@ -32366,42 +32279,42 @@ var require_ruleset = __commonJS({ var cv = "signingRegion"; var cw = "headers"; var cx = "signingRegionSet"; - var a3 = 6; - var b3 = false; - var c3 = true; - var d3 = "isSet"; - var e3 = "booleanEquals"; - var f3 = "error"; - var g3 = "aws.partition"; - var h3 = "stringEquals"; - var i3 = "getAttr"; - var j3 = "name"; - var k3 = "substring"; - var l3 = "bucketSuffix"; - var m3 = "parseURL"; - var n3 = "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}"; - var o3 = "endpoint"; - var p3 = "tree"; - var q3 = "aws.isVirtualHostableS3Bucket"; - var r3 = "{url#scheme}://{Bucket}.{url#authority}{url#path}"; - var s3 = "not"; - var t3 = "{url#scheme}://{url#authority}{url#path}"; - var u3 = "hardwareType"; - var v6 = "regionPrefix"; - var w3 = "bucketAliasSuffix"; - var x3 = "outpostId"; - var y2 = "isValidHostLabel"; - var z2 = "sigv4a"; - var A2 = "s3-outposts"; - var B2 = "s3"; - var C2 = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}"; - var D2 = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}"; - var E2 = "https://{Bucket}.s3.{partitionResult#dnsSuffix}"; - var F2 = "aws.parseArn"; - var G2 = "bucketArn"; - var H2 = "arnType"; - var I2 = ""; - var J2 = "s3-object-lambda"; + var a = 6; + var b = false; + var c = true; + var d = "isSet"; + var e = "booleanEquals"; + var f = "error"; + var g = "aws.partition"; + var h = "stringEquals"; + var i = "getAttr"; + var j = "name"; + var k = "substring"; + var l = "bucketSuffix"; + var m = "parseURL"; + var n = "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}"; + var o = "endpoint"; + var p = "tree"; + var q = "aws.isVirtualHostableS3Bucket"; + var r = "{url#scheme}://{Bucket}.{url#authority}{url#path}"; + var s = "not"; + var t = "{url#scheme}://{url#authority}{url#path}"; + var u = "hardwareType"; + var v = "regionPrefix"; + var w = "bucketAliasSuffix"; + var x = "outpostId"; + var y = "isValidHostLabel"; + var z = "sigv4a"; + var A = "s3-outposts"; + var B = "s3"; + var C = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}"; + var D = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}"; + var E = "https://{Bucket}.s3.{partitionResult#dnsSuffix}"; + var F = "aws.parseArn"; + var G = "bucketArn"; + var H = "arnType"; + var I = ""; + var J = "s3-object-lambda"; var K = "accesspoint"; var L = "accessPointName"; var M = "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}"; @@ -32414,84 +32327,84 @@ var require_ruleset = __commonJS({ var T = { [ci]: false, [cj]: "String" }; var U = { [ci]: true, "default": false, [cj]: "Boolean" }; var V = { [ci]: false, [cj]: "Boolean" }; - var W = { [cl]: e3, [cm]: [{ [cn]: "Accelerate" }, true] }; - var X = { [cl]: e3, [cm]: [{ [cn]: "UseFIPS" }, true] }; - var Y = { [cl]: e3, [cm]: [{ [cn]: "UseDualStack" }, true] }; - var Z = { [cl]: d3, [cm]: [{ [cn]: "Endpoint" }] }; - var aa = { [cl]: g3, [cm]: [{ [cn]: "Region" }], [co]: "partitionResult" }; - var ab = { [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: "partitionResult" }, j3] }, "aws-cn"] }; - var ac = { [cl]: d3, [cm]: [{ [cn]: "Bucket" }] }; + var W = { [cl]: e, [cm]: [{ [cn]: "Accelerate" }, true] }; + var X = { [cl]: e, [cm]: [{ [cn]: "UseFIPS" }, true] }; + var Y = { [cl]: e, [cm]: [{ [cn]: "UseDualStack" }, true] }; + var Z = { [cl]: d, [cm]: [{ [cn]: "Endpoint" }] }; + var aa = { [cl]: g, [cm]: [{ [cn]: "Region" }], [co]: "partitionResult" }; + var ab = { [cl]: h, [cm]: [{ [cl]: i, [cm]: [{ [cn]: "partitionResult" }, j] }, "aws-cn"] }; + var ac = { [cl]: d, [cm]: [{ [cn]: "Bucket" }] }; var ad = { [cn]: "Bucket" }; - var ae = { [cl]: m3, [cm]: [{ [cn]: "Endpoint" }], [co]: "url" }; - var af = { [cl]: e3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: "url" }, "isIp"] }, true] }; + var ae = { [cl]: m, [cm]: [{ [cn]: "Endpoint" }], [co]: "url" }; + var af = { [cl]: e, [cm]: [{ [cl]: i, [cm]: [{ [cn]: "url" }, "isIp"] }, true] }; var ag = { [cn]: "url" }; var ah = { [cl]: "uriEncode", [cm]: [ad], [co]: "uri_encoded_bucket" }; - var ai = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: "s3express", [cv]: "{Region}" }] }; + var ai = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: "s3express", [cv]: "{Region}" }] }; var aj = {}; - var ak = { [cl]: q3, [cm]: [ad, false] }; - var al = { [f3]: "S3Express bucket name is not a valid virtual hostable name.", [cj]: f3 }; - var am = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j3]: "sigv4-s3express", [cu]: "s3express", [cv]: "{Region}" }] }; - var an = { [cl]: d3, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }] }; - var ao = { [cl]: e3, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }, true] }; - var ap = { [cl]: s3, [cm]: [Z] }; - var aq = { [f3]: "Unrecognized S3Express bucket name format.", [cj]: f3 }; - var ar = { [cl]: s3, [cm]: [ac] }; - var as = { [cn]: u3 }; - var at = { [ck]: [ap], [f3]: "Expected a endpoint to be specified but no endpoint was found", [cj]: f3 }; - var au = { [cs]: [{ [ct]: true, [j3]: z2, [cu]: A2, [cx]: ["*"] }, { [ct]: true, [j3]: "sigv4", [cu]: A2, [cv]: "{Region}" }] }; - var av = { [cl]: e3, [cm]: [{ [cn]: "ForcePathStyle" }, false] }; + var ak = { [cl]: q, [cm]: [ad, false] }; + var al = { [f]: "S3Express bucket name is not a valid virtual hostable name.", [cj]: f }; + var am = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j]: "sigv4-s3express", [cu]: "s3express", [cv]: "{Region}" }] }; + var an = { [cl]: d, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }] }; + var ao = { [cl]: e, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }, true] }; + var ap = { [cl]: s, [cm]: [Z] }; + var aq = { [f]: "Unrecognized S3Express bucket name format.", [cj]: f }; + var ar = { [cl]: s, [cm]: [ac] }; + var as = { [cn]: u }; + var at = { [ck]: [ap], [f]: "Expected a endpoint to be specified but no endpoint was found", [cj]: f }; + var au = { [cs]: [{ [ct]: true, [j]: z, [cu]: A, [cx]: ["*"] }, { [ct]: true, [j]: "sigv4", [cu]: A, [cv]: "{Region}" }] }; + var av = { [cl]: e, [cm]: [{ [cn]: "ForcePathStyle" }, false] }; var aw = { [cn]: "ForcePathStyle" }; - var ax = { [cl]: e3, [cm]: [{ [cn]: "Accelerate" }, false] }; - var ay = { [cl]: h3, [cm]: [{ [cn]: "Region" }, "aws-global"] }; - var az = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "us-east-1" }] }; - var aA = { [cl]: s3, [cm]: [ay] }; - var aB = { [cl]: e3, [cm]: [{ [cn]: "UseGlobalEndpoint" }, true] }; - var aC = { [cp]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] }, [cw]: {} }; - var aD = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] }; - var aE = { [cl]: e3, [cm]: [{ [cn]: "UseGlobalEndpoint" }, false] }; - var aF = { [cl]: e3, [cm]: [{ [cn]: "UseDualStack" }, false] }; + var ax = { [cl]: e, [cm]: [{ [cn]: "Accelerate" }, false] }; + var ay = { [cl]: h, [cm]: [{ [cn]: "Region" }, "aws-global"] }; + var az = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "us-east-1" }] }; + var aA = { [cl]: s, [cm]: [ay] }; + var aB = { [cl]: e, [cm]: [{ [cn]: "UseGlobalEndpoint" }, true] }; + var aC = { [cp]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{Region}" }] }, [cw]: {} }; + var aD = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{Region}" }] }; + var aE = { [cl]: e, [cm]: [{ [cn]: "UseGlobalEndpoint" }, false] }; + var aF = { [cl]: e, [cm]: [{ [cn]: "UseDualStack" }, false] }; var aG = { [cp]: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aH = { [cl]: e3, [cm]: [{ [cn]: "UseFIPS" }, false] }; + var aH = { [cl]: e, [cm]: [{ [cn]: "UseFIPS" }, false] }; var aI = { [cp]: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var aJ = { [cp]: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aK = { [cl]: e3, [cm]: [{ [cl]: i3, [cm]: [ag, "isIp"] }, false] }; - var aL = { [cp]: C2, [cq]: aD, [cw]: {} }; - var aM = { [cp]: r3, [cq]: aD, [cw]: {} }; - var aN = { [o3]: aM, [cj]: o3 }; - var aO = { [cp]: D2, [cq]: aD, [cw]: {} }; + var aK = { [cl]: e, [cm]: [{ [cl]: i, [cm]: [ag, "isIp"] }, false] }; + var aL = { [cp]: C, [cq]: aD, [cw]: {} }; + var aM = { [cp]: r, [cq]: aD, [cw]: {} }; + var aN = { [o]: aM, [cj]: o }; + var aO = { [cp]: D, [cq]: aD, [cw]: {} }; var aP = { [cp]: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aQ = { [f3]: "Invalid region: region was not a valid DNS name.", [cj]: f3 }; - var aR = { [cn]: G2 }; - var aS = { [cn]: H2 }; - var aT = { [cl]: i3, [cm]: [aR, "service"] }; + var aQ = { [f]: "Invalid region: region was not a valid DNS name.", [cj]: f }; + var aR = { [cn]: G }; + var aS = { [cn]: H }; + var aT = { [cl]: i, [cm]: [aR, "service"] }; var aU = { [cn]: L }; - var aV = { [ck]: [Y], [f3]: "S3 Object Lambda does not support Dual-stack", [cj]: f3 }; - var aW = { [ck]: [W], [f3]: "S3 Object Lambda does not support S3 Accelerate", [cj]: f3 }; - var aX = { [ck]: [{ [cl]: d3, [cm]: [{ [cn]: "DisableAccessPoints" }] }, { [cl]: e3, [cm]: [{ [cn]: "DisableAccessPoints" }, true] }], [f3]: "Access points are not supported for this operation", [cj]: f3 }; - var aY = { [ck]: [{ [cl]: d3, [cm]: [{ [cn]: "UseArnRegion" }] }, { [cl]: e3, [cm]: [{ [cn]: "UseArnRegion" }, false] }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, "{Region}"] }] }], [f3]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cj]: f3 }; - var aZ = { [cl]: i3, [cm]: [{ [cn]: "bucketPartition" }, j3] }; - var ba = { [cl]: i3, [cm]: [aR, "accountId"] }; - var bb = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: J2, [cv]: "{bucketArn#region}" }] }; - var bc = { [f3]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cj]: f3 }; - var bd = { [f3]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cj]: f3 }; - var be = { [f3]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cj]: f3 }; - var bf = { [f3]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cj]: f3 }; - var bg = { [f3]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cj]: f3 }; - var bh = { [f3]: "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", [cj]: f3 }; - var bi = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{bucketArn#region}" }] }; - var bj = { [cs]: [{ [ct]: true, [j3]: z2, [cu]: A2, [cx]: ["*"] }, { [ct]: true, [j3]: "sigv4", [cu]: A2, [cv]: "{bucketArn#region}" }] }; - var bk = { [cl]: F2, [cm]: [ad] }; + var aV = { [ck]: [Y], [f]: "S3 Object Lambda does not support Dual-stack", [cj]: f }; + var aW = { [ck]: [W], [f]: "S3 Object Lambda does not support S3 Accelerate", [cj]: f }; + var aX = { [ck]: [{ [cl]: d, [cm]: [{ [cn]: "DisableAccessPoints" }] }, { [cl]: e, [cm]: [{ [cn]: "DisableAccessPoints" }, true] }], [f]: "Access points are not supported for this operation", [cj]: f }; + var aY = { [ck]: [{ [cl]: d, [cm]: [{ [cn]: "UseArnRegion" }] }, { [cl]: e, [cm]: [{ [cn]: "UseArnRegion" }, false] }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, "{Region}"] }] }], [f]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cj]: f }; + var aZ = { [cl]: i, [cm]: [{ [cn]: "bucketPartition" }, j] }; + var ba = { [cl]: i, [cm]: [aR, "accountId"] }; + var bb = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: J, [cv]: "{bucketArn#region}" }] }; + var bc = { [f]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cj]: f }; + var bd = { [f]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cj]: f }; + var be = { [f]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cj]: f }; + var bf = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cj]: f }; + var bg = { [f]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cj]: f }; + var bh = { [f]: "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", [cj]: f }; + var bi = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{bucketArn#region}" }] }; + var bj = { [cs]: [{ [ct]: true, [j]: z, [cu]: A, [cx]: ["*"] }, { [ct]: true, [j]: "sigv4", [cu]: A, [cv]: "{bucketArn#region}" }] }; + var bk = { [cl]: F, [cm]: [ad] }; var bl = { [cp]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bm = { [cp]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bn = { [cp]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bo = { [cp]: Q, [cq]: aD, [cw]: {} }; var bp = { [cp]: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bq = { [cn]: "UseObjectLambdaEndpoint" }; - var br = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: J2, [cv]: "{Region}" }] }; + var br = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: J, [cv]: "{Region}" }] }; var bs = { [cp]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bt = { [cp]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bu = { [cp]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var bv = { [cp]: t3, [cq]: aD, [cw]: {} }; + var bv = { [cp]: t, [cq]: aD, [cw]: {} }; var bw = { [cp]: "https://s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bx = [{ [cn]: "Region" }]; var by = [{ [cn]: "Endpoint" }]; @@ -32499,39 +32412,39 @@ var require_ruleset = __commonJS({ var bA = [Y]; var bB = [W]; var bC = [Z, ae]; - var bD = [{ [cl]: d3, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }] }, { [cl]: e3, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }, true] }]; + var bD = [{ [cl]: d, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }] }, { [cl]: e, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }, true] }]; var bE = [af]; var bF = [ah]; var bG = [ak]; var bH = [X]; - var bI = [{ [cl]: k3, [cm]: [ad, 6, 14, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 14, 16, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bJ = [{ [ck]: [X], [o3]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }]; - var bK = [{ [cl]: k3, [cm]: [ad, 6, 15, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 15, 17, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bL = [{ [cl]: k3, [cm]: [ad, 6, 19, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 19, 21, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bM = [{ [cl]: k3, [cm]: [ad, 6, 20, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 20, 22, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bN = [{ [cl]: k3, [cm]: [ad, 6, 26, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 26, 28, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bO = [{ [ck]: [X], [o3]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }]; + var bI = [{ [cl]: k, [cm]: [ad, 6, 14, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 14, 16, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bJ = [{ [ck]: [X], [o]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o }, { [o]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o }]; + var bK = [{ [cl]: k, [cm]: [ad, 6, 15, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 15, 17, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bL = [{ [cl]: k, [cm]: [ad, 6, 19, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 19, 21, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bM = [{ [cl]: k, [cm]: [ad, 6, 20, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 20, 22, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bN = [{ [cl]: k, [cm]: [ad, 6, 26, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 26, 28, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bO = [{ [ck]: [X], [o]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o }, { [o]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o }]; var bP = [ac]; - var bQ = [{ [cl]: y2, [cm]: [{ [cn]: x3 }, false] }]; - var bR = [{ [cl]: h3, [cm]: [{ [cn]: v6 }, "beta"] }]; + var bQ = [{ [cl]: y, [cm]: [{ [cn]: x }, false] }]; + var bR = [{ [cl]: h, [cm]: [{ [cn]: v }, "beta"] }]; var bS = ["*"]; var bT = [aa]; - var bU = [{ [cl]: y2, [cm]: [{ [cn]: "Region" }, false] }]; - var bV = [{ [cl]: h3, [cm]: [{ [cn]: "Region" }, "us-east-1"] }]; - var bW = [{ [cl]: h3, [cm]: [aS, K] }]; - var bX = [{ [cl]: i3, [cm]: [aR, "resourceId[1]"], [co]: L }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [aU, I2] }] }]; + var bU = [{ [cl]: y, [cm]: [{ [cn]: "Region" }, false] }]; + var bV = [{ [cl]: h, [cm]: [{ [cn]: "Region" }, "us-east-1"] }]; + var bW = [{ [cl]: h, [cm]: [aS, K] }]; + var bX = [{ [cl]: i, [cm]: [aR, "resourceId[1]"], [co]: L }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [aU, I] }] }]; var bY = [aR, "resourceId[1]"]; - var bZ = [{ [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, I2] }] }]; - var ca = [{ [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[2]"] }] }] }]; + var bZ = [{ [cl]: s, [cm]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, I] }] }]; + var ca = [{ [cl]: s, [cm]: [{ [cl]: d, [cm]: [{ [cl]: i, [cm]: [aR, "resourceId[2]"] }] }] }]; var cb = [aR, "resourceId[2]"]; - var cc = [{ [cl]: g3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }], [co]: "bucketPartition" }]; - var cd = [{ [cl]: h3, [cm]: [aZ, { [cl]: i3, [cm]: [{ [cn]: "partitionResult" }, j3] }] }]; - var ce = [{ [cl]: y2, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, true] }]; - var cf = [{ [cl]: y2, [cm]: [ba, false] }]; - var cg = [{ [cl]: y2, [cm]: [aU, false] }]; - var ch = [{ [cl]: y2, [cm]: [{ [cn]: "Region" }, true] }]; - var _data3 = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, rules: [{ [ck]: [{ [cl]: d3, [cm]: bx }], rules: [{ [ck]: [W, X], error: "Accelerate cannot be used with FIPS", [cj]: f3 }, { [ck]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f3 }, { [ck]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cj]: f3 }, { [ck]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f3 }, { [ck]: [X, aa, ab], error: "Partition does not support FIPS", [cj]: f3 }, { [ck]: [ac, { [cl]: k3, [cm]: [ad, 0, a3, c3], [co]: l3 }, { [cl]: h3, [cm]: [{ [cn]: l3 }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f3 }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f3 }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp]: r3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp]: r3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p3 }, { [ck]: bK, rules: bJ, [cj]: p3 }, { [ck]: bL, rules: bJ, [cj]: p3 }, { [ck]: bM, rules: bJ, [cj]: p3 }, { [ck]: bN, rules: bJ, [cj]: p3 }, aq], [cj]: p3 }, { [ck]: bI, rules: bO, [cj]: p3 }, { [ck]: bK, rules: bO, [cj]: p3 }, { [ck]: bL, rules: bO, [cj]: p3 }, { [ck]: bM, rules: bO, [cj]: p3 }, { [ck]: bN, rules: bO, [cj]: p3 }, aq], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [ar, an, ao], rules: [{ [ck]: bC, endpoint: { [cp]: t3, [cq]: ai, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [ac, { [cl]: k3, [cm]: [ad, 49, 50, c3], [co]: u3 }, { [cl]: k3, [cm]: [ad, 8, 12, c3], [co]: v6 }, { [cl]: k3, [cm]: [ad, 0, 7, c3], [co]: w3 }, { [cl]: k3, [cm]: [ad, 32, 49, c3], [co]: x3 }, { [cl]: g3, [cm]: bx, [co]: "regionPartition" }, { [cl]: h3, [cm]: [{ [cn]: w3 }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h3, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [{ [cl]: h3, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f3 }], [cj]: p3 }, { [ck]: bP, rules: [{ [ck]: [Z, { [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [{ [cl]: m3, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f3 }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f3 }, { [ck]: [Y, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, X, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, X, ax, ap, aA, aE], endpoint: aC, [cj]: o3 }, { [ck]: [aF, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, X, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, X, ax, ap, aA, aE], endpoint: aG, [cj]: o3 }, { [ck]: [Y, aH, W, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, aH, W, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, aH, W, ap, aA, aE], endpoint: aI, [cj]: o3 }, { [ck]: [Y, aH, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, af, ay], endpoint: { [cp]: C2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, aK, ay], endpoint: { [cp]: r3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o3 }, { endpoint: aL, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o3 }, aN], [cj]: p3 }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aE], endpoint: aL, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aE], endpoint: aM, [cj]: o3 }, { [ck]: [aF, aH, W, ap, ay], endpoint: { [cp]: D2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, W, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o3 }, { endpoint: aO, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, W, ap, aA, aE], endpoint: aO, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp]: E2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: E2, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: aP, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [Z, ae, { [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q3, [cm]: [ad, c3] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [av, { [cl]: F2, [cm]: bz, [co]: G2 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[0]"], [co]: H2 }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [aS, I2] }] }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [aT, J2] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h3, [cm]: [ba, I2] }], error: "Invalid ARN: Missing account id", [cj]: f3 }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp]: M, [cq]: bb, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f3 }], [cj]: p3 }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h3, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h3, [cm]: [aT, B2] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f3 }, { [ck]: [X, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [X, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z, ae], endpoint: { [cp]: M, [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f3 }], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: y2, [cm]: [aU, c3] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: e3, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c3] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f3 }, { [ck]: [{ [cl]: g3, [cm]: bx, [co]: N }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: N }, j3] }, { [cl]: i3, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct]: c3, name: z2, [cu]: B2, [cx]: bS }] }, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid Access Point Name", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { [ck]: [{ [cl]: h3, [cm]: [aT, A2] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: d3, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f3 }, { [ck]: [{ [cl]: i3, [cm]: bY, [co]: x3 }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i3, [cm]: cb, [co]: O }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[3]"], [co]: L }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [{ [cn]: O }, K] }], rules: [{ [ck]: bC, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: expected an access point name", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f3 }], [cj]: p3 }, bd], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: No ARN type specified", [cj]: f3 }], [cj]: p3 }, { [ck]: [{ [cl]: k3, [cm]: [ad, 0, 4, b3], [co]: P }, { [cl]: h3, [cm]: [{ [cn]: P }, "arn:"] }, { [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f3 }, { [ck]: [{ [cl]: e3, [cm]: [aw, c3] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f3 }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y, ap, X, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, ap, X, aA, aB], rules: [{ endpoint: bl, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, ap, X, aA, aE], endpoint: bl, [cj]: o3 }, { [ck]: [aF, ap, X, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, X, aA, aB], rules: [{ endpoint: bm, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, X, aA, aE], endpoint: bm, [cj]: o3 }, { [ck]: [Y, ap, aH, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, ap, aH, aA, aE], endpoint: bn, [cj]: o3 }, { [ck]: [aF, Z, ae, aH, ay], endpoint: { [cp]: Q, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, Z, ae, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o3 }, { endpoint: bo, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, Z, ae, aH, aA, aE], endpoint: bo, [cj]: o3 }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp]: R, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: R, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bp, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o3 }], [cj]: p3 }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: d3, [cm]: [bq] }, { [cl]: e3, [cm]: [bq, c3] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp]: t3, [cq]: br, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [ar], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X, Y, ap, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X, Y, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o3 }], [cj]: p3 }, { [ck]: [X, Y, ap, aA, aE], endpoint: bs, [cj]: o3 }, { [ck]: [X, aF, ap, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X, aF, ap, aA, aB], rules: [{ endpoint: bt, [cj]: o3 }], [cj]: p3 }, { [ck]: [X, aF, ap, aA, aE], endpoint: bt, [cj]: o3 }, { [ck]: [aH, Y, ap, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, Y, ap, aA, aE], endpoint: bu, [cj]: o3 }, { [ck]: [aH, aF, Z, ae, ay], endpoint: { [cp]: t3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z, ae, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o3 }, { endpoint: bv, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, Z, ae, aA, aE], endpoint: bv, [cj]: o3 }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp]: S, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: S, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bw, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "A region must be set when sending requests to S3.", [cj]: f3 }] }; - exports2.ruleSet = _data3; + var cc = [{ [cl]: g, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }], [co]: "bucketPartition" }]; + var cd = [{ [cl]: h, [cm]: [aZ, { [cl]: i, [cm]: [{ [cn]: "partitionResult" }, j] }] }]; + var ce = [{ [cl]: y, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, true] }]; + var cf = [{ [cl]: y, [cm]: [ba, false] }]; + var cg = [{ [cl]: y, [cm]: [aU, false] }]; + var ch = [{ [cl]: y, [cm]: [{ [cn]: "Region" }, true] }]; + var _data = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, rules: [{ [ck]: [{ [cl]: d, [cm]: bx }], rules: [{ [ck]: [W, X], error: "Accelerate cannot be used with FIPS", [cj]: f }, { [ck]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f }, { [ck]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cj]: f }, { [ck]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f }, { [ck]: [X, aa, ab], error: "Partition does not support FIPS", [cj]: f }, { [ck]: [ac, { [cl]: k, [cm]: [ad, 0, a, c], [co]: l }, { [cl]: h, [cm]: [{ [cn]: l }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n, [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ endpoint: { [cp]: r, [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }, al], [cj]: p }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n, [cq]: am, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ endpoint: { [cp]: r, [cq]: am, [cw]: aj }, [cj]: o }], [cj]: p }, al], [cj]: p }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p }, { [ck]: bK, rules: bJ, [cj]: p }, { [ck]: bL, rules: bJ, [cj]: p }, { [ck]: bM, rules: bJ, [cj]: p }, { [ck]: bN, rules: bJ, [cj]: p }, aq], [cj]: p }, { [ck]: bI, rules: bO, [cj]: p }, { [ck]: bK, rules: bO, [cj]: p }, { [ck]: bL, rules: bO, [cj]: p }, { [ck]: bM, rules: bO, [cj]: p }, { [ck]: bN, rules: bO, [cj]: p }, aq], [cj]: p }, al], [cj]: p }, { [ck]: [ar, an, ao], rules: [{ [ck]: bC, endpoint: { [cp]: t, [cq]: ai, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }, { [ck]: [ac, { [cl]: k, [cm]: [ad, 49, 50, c], [co]: u }, { [cl]: k, [cm]: [ad, 8, 12, c], [co]: v }, { [cl]: k, [cm]: [ad, 0, 7, c], [co]: w }, { [cl]: k, [cm]: [ad, 32, 49, c], [co]: x }, { [cl]: g, [cm]: bx, [co]: "regionPartition" }, { [cl]: h, [cm]: [{ [cn]: w }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { endpoint: { [cp]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { [ck]: [{ [cl]: h, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f }], [cj]: p }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f }], [cj]: p }, { [ck]: bP, rules: [{ [ck]: [Z, { [cl]: s, [cm]: [{ [cl]: d, [cm]: [{ [cl]: m, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f }, { [ck]: [Y, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, X, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o }], [cj]: p }, { [ck]: [Y, X, ax, ap, aA, aE], endpoint: aC, [cj]: o }, { [ck]: [aF, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, X, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o }], [cj]: p }, { [ck]: [aF, X, ax, ap, aA, aE], endpoint: aG, [cj]: o }, { [ck]: [Y, aH, W, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, aH, W, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o }], [cj]: p }, { [ck]: [Y, aH, W, ap, aA, aE], endpoint: aI, [cj]: o }, { [ck]: [Y, aH, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o }], [cj]: p }, { [ck]: [Y, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, af, ay], endpoint: { [cp]: C, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, aK, ay], endpoint: { [cp]: r, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o }, { endpoint: aL, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o }, aN], [cj]: p }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aE], endpoint: aL, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aE], endpoint: aM, [cj]: o }, { [ck]: [aF, aH, W, ap, ay], endpoint: { [cp]: D, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, W, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o }, { endpoint: aO, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, W, ap, aA, aE], endpoint: aO, [cj]: o }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp]: E, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: E, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: aP, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [Z, ae, { [cl]: h, [cm]: [{ [cl]: i, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q, [cm]: [ad, c] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [av, { [cl]: F, [cm]: bz, [co]: G }], rules: [{ [ck]: [{ [cl]: i, [cm]: [aR, "resourceId[0]"], [co]: H }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [aS, I] }] }], rules: [{ [ck]: [{ [cl]: h, [cm]: [aT, J] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h, [cm]: [ba, I] }], error: "Invalid ARN: Missing account id", [cj]: f }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp]: M, [cq]: bb, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o }], [cj]: p }, bc], [cj]: p }, bd], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, bg], [cj]: p }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f }], [cj]: p }, bh], [cj]: p }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f }], [cj]: p }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h, [cm]: [aT, B] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f }, { [ck]: [X, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [X, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, Z, ae], endpoint: { [cp]: M, [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }], [cj]: p }, bc], [cj]: p }, bd], [cj]: p }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f }], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, bg], [cj]: p }], [cj]: p }], [cj]: p }, { [ck]: [{ [cl]: y, [cm]: [aU, c] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f }, { [ck]: [{ [cl]: e, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f }, { [ck]: [{ [cl]: g, [cm]: bx, [co]: N }], rules: [{ [ck]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [{ [cn]: N }, j] }, { [cl]: i, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct]: c, name: z, [cu]: B, [cx]: bS }] }, [cw]: aj }, [cj]: o }], [cj]: p }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f }], [cj]: p }], [cj]: p }, { error: "Invalid Access Point Name", [cj]: f }], [cj]: p }, bh], [cj]: p }, { [ck]: [{ [cl]: h, [cm]: [aT, A] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f }, { [ck]: [{ [cl]: d, [cm]: [{ [cl]: i, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f }, { [ck]: [{ [cl]: i, [cm]: bY, [co]: x }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i, [cm]: cb, [co]: O }], rules: [{ [ck]: [{ [cl]: i, [cm]: [aR, "resourceId[3]"], [co]: L }], rules: [{ [ck]: [{ [cl]: h, [cm]: [{ [cn]: O }, K] }], rules: [{ [ck]: bC, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o }], [cj]: p }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f }], [cj]: p }, { error: "Invalid ARN: expected an access point name", [cj]: f }], [cj]: p }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f }], [cj]: p }, bd], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f }], [cj]: p }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f }], [cj]: p }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f }], [cj]: p }, { error: "Invalid ARN: No ARN type specified", [cj]: f }], [cj]: p }, { [ck]: [{ [cl]: k, [cm]: [ad, 0, 4, b], [co]: P }, { [cl]: h, [cm]: [{ [cn]: P }, "arn:"] }, { [cl]: s, [cm]: [{ [cl]: d, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f }, { [ck]: [{ [cl]: e, [cm]: [aw, c] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y, ap, X, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, ap, X, aA, aB], rules: [{ endpoint: bl, [cj]: o }], [cj]: p }, { [ck]: [Y, ap, X, aA, aE], endpoint: bl, [cj]: o }, { [ck]: [aF, ap, X, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, ap, X, aA, aB], rules: [{ endpoint: bm, [cj]: o }], [cj]: p }, { [ck]: [aF, ap, X, aA, aE], endpoint: bm, [cj]: o }, { [ck]: [Y, ap, aH, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o }], [cj]: p }, { [ck]: [Y, ap, aH, aA, aE], endpoint: bn, [cj]: o }, { [ck]: [aF, Z, ae, aH, ay], endpoint: { [cp]: Q, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, Z, ae, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o }, { endpoint: bo, [cj]: o }], [cj]: p }, { [ck]: [aF, Z, ae, aH, aA, aE], endpoint: bo, [cj]: o }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp]: R, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: R, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: bp, [cj]: o }], [cj]: p }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o }], [cj]: p }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f }], [cj]: p }], [cj]: p }], [cj]: p }, { [ck]: [{ [cl]: d, [cm]: [bq] }, { [cl]: e, [cm]: [bq, c] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp]: t, [cq]: br, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [ar], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X, Y, ap, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [X, Y, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o }], [cj]: p }, { [ck]: [X, Y, ap, aA, aE], endpoint: bs, [cj]: o }, { [ck]: [X, aF, ap, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [X, aF, ap, aA, aB], rules: [{ endpoint: bt, [cj]: o }], [cj]: p }, { [ck]: [X, aF, ap, aA, aE], endpoint: bt, [cj]: o }, { [ck]: [aH, Y, ap, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, Y, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o }], [cj]: p }, { [ck]: [aH, Y, ap, aA, aE], endpoint: bu, [cj]: o }, { [ck]: [aH, aF, Z, ae, ay], endpoint: { [cp]: t, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, Z, ae, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o }, { endpoint: bv, [cj]: o }], [cj]: p }, { [ck]: [aH, aF, Z, ae, aA, aE], endpoint: bv, [cj]: o }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp]: S, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: S, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: bw, [cj]: o }], [cj]: p }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }], [cj]: p }, { error: "A region must be set when sending requests to S3.", [cj]: f }] }; + exports2.ruleSet = _data; } }); @@ -32544,7 +32457,7 @@ var require_endpointResolver = __commonJS({ var util_endpoints_1 = require_dist_cjs31(); var util_endpoints_2 = require_dist_cjs30(); var ruleset_1 = require_ruleset(); - var cache3 = new util_endpoints_2.EndpointCache({ + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: [ "Accelerate", @@ -32563,13 +32476,13 @@ var require_endpointResolver = __commonJS({ "UseS3ExpressControlEndpoint" ] }); - var defaultEndpointResolver3 = (endpointParams, context = {}) => { - return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - exports2.defaultEndpointResolver = defaultEndpointResolver3; + exports2.defaultEndpointResolver = defaultEndpointResolver; util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); @@ -32606,7 +32519,7 @@ var require_httpAuthSchemeProvider = __commonJS({ }; }; exports2.defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider); - function createAwsAuthSigv4HttpAuthOption3(authParameters) { + function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { @@ -32636,9 +32549,9 @@ var require_httpAuthSchemeProvider = __commonJS({ }) }; } - var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver3, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { + var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => { - const endpoint = defaultEndpointResolver3(authParameters); + const endpoint = defaultEndpointResolver(authParameters); const authSchemes = endpoint.properties?.authSchemes; if (!authSchemes) { return defaultHttpAuthSchemeResolver(authParameters); @@ -32653,8 +32566,8 @@ var require_httpAuthSchemeProvider = __commonJS({ let schemeId; if (name === "sigv4a") { schemeId = "aws.auth#sigv4a"; - const sigv4Present = authSchemes.find((s3) => { - const name2 = s3.name.toLowerCase(); + const sigv4Present = authSchemes.find((s) => { + const name2 = s.name.toLowerCase(); return name2 !== "sigv4a" && name2.startsWith("sigv4"); }); if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) { @@ -32682,24 +32595,24 @@ var require_httpAuthSchemeProvider = __commonJS({ const options = []; switch (authParameters.operation) { default: { - options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); } } return options; }; exports2.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, { - "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption3, + "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption, "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption }); - var resolveHttpAuthSchemeConfig3 = (config) => { + var resolveHttpAuthSchemeConfig = (config) => { const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0); return { ...config_1 }; }; - exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); @@ -32739,28 +32652,24 @@ var require_dist_cjs45 = __commonJS({ return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">").replace(/\r/g, " ").replace(/\n/g, " ").replace(/\u0085/g, "…").replace(/\u2028/, "
"); } __name(escapeElement, "escapeElement"); - var XmlText = class { + var _XmlText = class _XmlText { constructor(value) { this.value = value; } - static { - __name(this, "XmlText"); - } toString() { return escapeElement("" + this.value); } }; - var XmlNode = class _XmlNode { + __name(_XmlText, "XmlText"); + var XmlText = _XmlText; + var _XmlNode = class _XmlNode2 { constructor(name, children = []) { this.name = name; this.children = children; + this.attributes = {}; } - static { - __name(this, "XmlNode"); - } - attributes = {}; static of(name, childText, withName) { - const node = new _XmlNode(name); + const node = new _XmlNode2(name); if (childText !== void 0) { node.addChildNode(new XmlText(childText)); } @@ -32818,7 +32727,7 @@ var require_dist_cjs45 = __commonJS({ */ cc(input, field, withName = field) { if (input[field] != null) { - const node = _XmlNode.of(field, input[field]).withName(withName); + const node = _XmlNode2.of(field, input[field]).withName(withName); this.c(node); } } @@ -32842,7 +32751,7 @@ var require_dist_cjs45 = __commonJS({ lc(input, listName, memberName, valueProvider) { if (input[listName] != null) { const nodes = valueProvider(); - const containerNode = new _XmlNode(memberName); + const containerNode = new _XmlNode2(memberName); nodes.map((node) => { containerNode.c(node); }); @@ -32859,9 +32768,11 @@ var require_dist_cjs45 = __commonJS({ xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`; } } - return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}`; + return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}`; } }; + __name(_XmlNode, "XmlNode"); + var XmlNode = _XmlNode; } }); @@ -32871,7 +32782,7 @@ var require_package = __commonJS({ module2.exports = { name: "@aws-sdk/client-s3", description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native", - version: "3.731.1", + version: "3.705.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-s3", @@ -32883,9 +32794,9 @@ var require_package = __commonJS({ "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo s3", test: "yarn g:vitest run", - "test:browser": "node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts", + "test:browser": "node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts --mode development", "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts", - "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser", "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts", "test:watch": "yarn g:vitest watch" }, @@ -32897,71 +32808,73 @@ var require_package = __commonJS({ "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.731.0", - "@aws-sdk/credential-provider-node": "3.731.1", - "@aws-sdk/middleware-bucket-endpoint": "3.731.0", - "@aws-sdk/middleware-expect-continue": "3.731.0", - "@aws-sdk/middleware-flexible-checksums": "3.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-location-constraint": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-sdk-s3": "3.731.0", - "@aws-sdk/middleware-ssec": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/signature-v4-multi-region": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@aws-sdk/xml-builder": "3.723.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/eventstream-serde-browser": "^4.0.0", - "@smithy/eventstream-serde-config-resolver": "^4.0.0", - "@smithy/eventstream-serde-node": "^4.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-blob-browser": "^4.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/hash-stream-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/md5-js": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-stream": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", - "@smithy/util-waiter": "^4.0.0", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/client-sts": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-bucket-endpoint": "3.696.0", + "@aws-sdk/middleware-expect-continue": "3.696.0", + "@aws-sdk/middleware-flexible-checksums": "3.701.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-location-constraint": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-sdk-s3": "3.696.0", + "@aws-sdk/middleware-ssec": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/signature-v4-multi-region": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@aws-sdk/xml-builder": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/eventstream-serde-browser": "^3.0.13", + "@smithy/eventstream-serde-config-resolver": "^3.0.10", + "@smithy/eventstream-serde-node": "^3.0.12", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-blob-browser": "^3.1.9", + "@smithy/hash-node": "^3.0.10", + "@smithy/hash-stream-node": "^3.1.9", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/md5-js": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-stream": "^3.3.1", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.9", tslib: "^2.6.2" }, devDependencies: { - "@aws-sdk/signature-v4-crt": "3.731.0", - "@tsconfig/node18": "18.2.4", - "@types/node": "^18.19.69", + "@aws-sdk/signature-v4-crt": "3.696.0", + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" }, engines: { - node: ">=18.0.0" + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -33027,7 +32940,7 @@ var require_dist_cjs46 = __commonJS({ fromEnv: () => fromEnv }); module2.exports = __toCommonJS2(src_exports); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var ENV_KEY = "AWS_ACCESS_KEY_ID"; var ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; @@ -33036,7 +32949,8 @@ var require_dist_cjs46 = __commonJS({ var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE"; var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID"; var fromEnv = /* @__PURE__ */ __name((init) => async () => { - init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv"); + var _a; + (_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env - fromEnv"); const accessKeyId = process.env[ENV_KEY]; const secretAccessKey = process.env[ENV_SECRET]; const sessionToken = process.env[ENV_SESSION]; @@ -33052,10 +32966,10 @@ var require_dist_cjs46 = __commonJS({ ...credentialScope && { credentialScope }, ...accountId && { accountId } }; - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g"); return credentials; } - throw new import_property_provider2.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger }); + throw new import_property_provider2.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init == null ? void 0 : init.logger }); }, "fromEnv"); } }); @@ -33102,12 +33016,13 @@ var require_dist_cjs47 = __commonJS({ var import_http = require("http"); function httpRequest(options) { return new Promise((resolve, reject) => { + var _a; const req2 = (0, import_http.request)({ method: "GET", ...options, // Node.js http module doesn't accept hostname with square brackets // Refs: https://github.com/nodejs/node/issues/39738 - hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1") + hostname: (_a = options.hostname) == null ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") }); req2.on("error", (err) => { reject(Object.assign(new import_property_provider2.ProviderError("Unable to connect to instance metadata service"), err)); @@ -33154,7 +33069,7 @@ var require_dist_cjs47 = __commonJS({ }) => ({ maxRetries, timeout }), "providerConfigFromInit"); var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => { let promise = toRetry(); - for (let i3 = 0; i3 < maxRetries; i3++) { + for (let i = 0; i < maxRetries; i++) { promise = promise.catch(toRetry); } return promise; @@ -33231,19 +33146,18 @@ var require_dist_cjs47 = __commonJS({ } ); }, "getCmdsUri"); - var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider2.CredentialsProviderError { + var _InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError2 extends import_property_provider2.CredentialsProviderError { constructor(message, tryNextLink = true) { super(message, tryNextLink); this.tryNextLink = tryNextLink; this.name = "InstanceMetadataV1FallbackError"; - Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype); - } - static { - __name(this, "InstanceMetadataV1FallbackError"); + Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError2.prototype); } }; - var import_node_config_provider3 = require_dist_cjs41(); - var import_url_parser3 = require_dist_cjs43(); + __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); + var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; + var import_node_config_provider = require_dist_cjs41(); + var import_url_parser = require_dist_cjs43(); var Endpoint = /* @__PURE__ */ ((Endpoint2) => { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; @@ -33269,10 +33183,10 @@ var require_dist_cjs47 = __commonJS({ default: "IPv4" /* IPv4 */ }; - var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser3.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); - var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider3.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); + var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); + var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => { - const endpointMode = await (0, import_node_config_provider3.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)(); + const endpointMode = await (0, import_node_config_provider.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)(); switch (endpointMode) { case "IPv4": return "http://169.254.169.254"; @@ -33300,7 +33214,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL }; }, "getExtendedInstanceMetadataCredentials"); var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => { - const logger = options?.logger || console; + const logger = (options == null ? void 0 : options.logger) || console; let pastCredentials; return async () => { let credentials; @@ -33309,12 +33223,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { credentials = getExtendedInstanceMetadataCredentials(credentials, logger); } - } catch (e3) { + } catch (e) { if (pastCredentials) { - logger.warn("Credential renew failed: ", e3); + logger.warn("Credential renew failed: ", e); credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); } else { - throw e3; + throw e; } } pastCredentials = credentials; @@ -33332,11 +33246,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL const { logger, profile } = init; const { timeout, maxRetries } = providerConfigFromInit(init); const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => { - const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null; + var _a; + const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) == null ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null; if (isImdsV1Fallback) { let fallbackBlockedFromProfile = false; let fallbackBlockedFromProcessEnv = false; - const configValue = await (0, import_node_config_provider3.loadConfig)( + const configValue = await (0, import_node_config_provider.loadConfig)( { environmentVariableSelector: (env) => { const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; @@ -33403,21 +33318,21 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL return async () => { const endpoint = await getInstanceMetadataEndpoint(); if (disableFetchToken) { - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } else { let token; try { token = (await getMetadataToken({ ...endpoint, timeout })).toString(); } catch (error2) { - if (error2?.statusCode === 400) { + if ((error2 == null ? void 0 : error2.statusCode) === 400) { throw Object.assign(error2, { message: "EC2 Metadata token request returned error" }); } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) { disableFetchToken = true; } - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } return getCredentials(maxRetries, { @@ -33515,8 +33430,8 @@ var require_requestHelpers = __commonJS({ hostname: url.hostname, port: Number(url.port), path: url.pathname, - query: Array.from(url.searchParams.entries()).reduce((acc, [k3, v6]) => { - acc[k3] = v6; + query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => { + acc[k] = v; return acc; }, {}), fragment: url.hash @@ -33542,7 +33457,7 @@ var require_requestHelpers = __commonJS({ let parsedBody = {}; try { parsedBody = JSON.parse(str); - } catch (e3) { + } catch (e) { } throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), { Code: parsedBody.Code, @@ -33563,10 +33478,10 @@ var require_retry_wrapper = __commonJS({ exports2.retryWrapper = void 0; var retryWrapper = (toRetry, maxRetries, delayMs) => { return async () => { - for (let i3 = 0; i3 < maxRetries; ++i3) { + for (let i = 0; i < maxRetries; ++i) { try { return await toRetry(); - } catch (e3) { + } catch (e) { await new Promise((resolve) => setTimeout(resolve, delayMs)); } } @@ -33636,8 +33551,8 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI try { const result = await requestHandler.handle(request); return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z")); - } catch (e3) { - throw new property_provider_1.CredentialsProviderError(String(e3), { logger: options.logger }); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger }); } }, options.maxRetries ?? 3, options.timeout ?? 1e3); }; @@ -33675,7 +33590,7 @@ var require_httpAuthSchemeProvider2 = __commonJS({ }; }; exports2.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider; - function createAwsAuthSigv4HttpAuthOption3(authParameters) { + function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { @@ -33690,7 +33605,7 @@ var require_httpAuthSchemeProvider2 = __commonJS({ }) }; } - function createSmithyApiNoAuthHttpAuthOption3(authParameters) { + function createSmithyApiNoAuthHttpAuthOption(authParameters) { return { schemeId: "smithy.api#noAuth" }; @@ -33699,35 +33614,35 @@ var require_httpAuthSchemeProvider2 = __commonJS({ const options = []; switch (authParameters.operation) { case "GetRoleCredentials": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "ListAccountRoles": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "ListAccounts": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "Logout": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } default: { - options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; exports2.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider; - var resolveHttpAuthSchemeConfig3 = (config) => { + var resolveHttpAuthSchemeConfig = (config) => { const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); return { ...config_0 }; }; - exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); @@ -33737,7 +33652,7 @@ var require_package2 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso", description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.731.0", + version: "3.696.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso", @@ -33756,53 +33671,53 @@ var require_package2 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, devDependencies: { - "@tsconfig/node18": "18.2.4", - "@types/node": "^18.19.69", + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" }, engines: { - node: ">=18.0.0" + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -33859,10 +33774,10 @@ var require_dist_cjs49 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS3, + NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS, UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME, - createDefaultUserAgentProvider: () => createDefaultUserAgentProvider3, + createDefaultUserAgentProvider: () => createDefaultUserAgentProvider, crtAvailability: () => crtAvailability, defaultUserAgent: () => defaultUserAgent }); @@ -33878,8 +33793,9 @@ var require_dist_cjs49 = __commonJS({ } return null; }, "isCrtAvailable"); - var createDefaultUserAgentProvider3 = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => { + var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => { return async (config) => { + var _a; const sections = [ // sdk-metadata ["aws-sdk-js", clientVersion], @@ -33902,20 +33818,19 @@ var require_dist_cjs49 = __commonJS({ if (import_process.env.AWS_EXECUTION_ENV) { sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]); } - const appId = await config?.userAgentAppId?.(); + const appId = await ((_a = config == null ? void 0 : config.userAgentAppId) == null ? void 0 : _a.call(config)); const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; return resolvedUserAgent; }; }, "createDefaultUserAgentProvider"); - var defaultUserAgent = createDefaultUserAgentProvider3; - var import_middleware_user_agent3 = require_dist_cjs32(); + var defaultUserAgent = createDefaultUserAgentProvider; + var import_middleware_user_agent = require_dist_cjs32(); var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; - var UA_APP_ID_INI_NAME = "sdk_ua_app_id"; - var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id"; - var NODE_APP_ID_CONFIG_OPTIONS3 = { + var UA_APP_ID_INI_NAME = "sdk-ua-app-id"; + var NODE_APP_ID_CONFIG_OPTIONS = { environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], - default: import_middleware_user_agent3.DEFAULT_UA_APP_ID + configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME], + default: import_middleware_user_agent.DEFAULT_UA_APP_ID }; } }); @@ -33943,24 +33858,21 @@ var require_dist_cjs50 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - Hash: () => Hash3 + Hash: () => Hash }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs7(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var import_buffer = require("buffer"); var import_crypto5 = require("crypto"); - var Hash3 = class { - static { - __name(this, "Hash"); - } + var _Hash = class _Hash { constructor(algorithmIdentifier, secret) { this.algorithmIdentifier = algorithmIdentifier; this.secret = secret; this.reset(); } update(toHash, encoding) { - this.hash.update((0, import_util_utf83.toUint8Array)(castSourceData(toHash, encoding))); + this.hash.update((0, import_util_utf8.toUint8Array)(castSourceData(toHash, encoding))); } digest() { return Promise.resolve(this.hash.digest()); @@ -33969,6 +33881,8 @@ var require_dist_cjs50 = __commonJS({ this.hash = this.secret ? (0, import_crypto5.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto5.createHash)(this.algorithmIdentifier); } }; + __name(_Hash, "Hash"); + var Hash = _Hash; function castSourceData(toCast, encoding) { if (import_buffer.Buffer.isBuffer(toCast)) { return toCast; @@ -34008,11 +33922,11 @@ var require_dist_cjs51 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - calculateBodyLength: () => calculateBodyLength3 + calculateBodyLength: () => calculateBodyLength }); module2.exports = __toCommonJS2(src_exports); var import_fs2 = require("fs"); - var calculateBodyLength3 = /* @__PURE__ */ __name((body) => { + var calculateBodyLength = /* @__PURE__ */ __name((body) => { if (!body) { return 0; } @@ -34040,32 +33954,32 @@ var require_ruleset2 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.ruleSet = void 0; - var u3 = "required"; - var v6 = "fn"; - var w3 = "argv"; - var x3 = "ref"; - var a3 = true; - var b3 = "isSet"; - var c3 = "booleanEquals"; - var d3 = "error"; - var e3 = "endpoint"; - var f3 = "tree"; - var g3 = "PartitionResult"; - var h3 = "getAttr"; - var i3 = { [u3]: false, "type": "String" }; - var j3 = { [u3]: true, "default": false, "type": "Boolean" }; - var k3 = { [x3]: "Endpoint" }; - var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] }; - var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] }; - var n3 = {}; - var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] }; - var p3 = { [x3]: g3 }; - var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] }; - var r3 = [l3]; - var s3 = [m3]; - var t3 = [{ [x3]: "Region" }]; - var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] }; - exports2.ruleSet = _data3; + var u = "required"; + var v = "fn"; + var w = "argv"; + var x = "ref"; + var a = true; + var b = "isSet"; + var c = "booleanEquals"; + var d = "error"; + var e = "endpoint"; + var f = "tree"; + var g = "PartitionResult"; + var h = "getAttr"; + var i = { [u]: false, "type": "String" }; + var j = { [u]: true, "default": false, "type": "Boolean" }; + var k = { [x]: "Endpoint" }; + var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }; + var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }; + var n = {}; + var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }; + var p = { [x]: g }; + var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }; + var r = [l]; + var s = [m]; + var t = [{ [x]: "Region" }]; + var _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 }] }; + exports2.ruleSet = _data; } }); @@ -34078,17 +33992,17 @@ var require_endpointResolver2 = __commonJS({ var util_endpoints_1 = require_dist_cjs31(); var util_endpoints_2 = require_dist_cjs30(); var ruleset_1 = require_ruleset2(); - var cache3 = new util_endpoints_2.EndpointCache({ + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); - var defaultEndpointResolver3 = (endpointParams, context = {}) => { - return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - exports2.defaultEndpointResolver = defaultEndpointResolver3; + exports2.defaultEndpointResolver = defaultEndpointResolver; util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); @@ -34107,7 +34021,7 @@ var require_runtimeConfig_shared = __commonJS({ var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider2(); var endpointResolver_1 = require_endpointResolver2(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { return { apiVersion: "2019-06-10", base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, @@ -34135,7 +34049,7 @@ var require_runtimeConfig_shared = __commonJS({ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); @@ -34172,11 +34086,11 @@ var require_dist_cjs52 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - resolveDefaultsModeConfig: () => resolveDefaultsModeConfig3 + resolveDefaultsModeConfig: () => resolveDefaultsModeConfig }); module2.exports = __toCommonJS2(src_exports); - var import_config_resolver5 = require_dist_cjs33(); - var import_node_config_provider3 = require_dist_cjs41(); + var import_config_resolver = require_dist_cjs33(); + var import_node_config_provider = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; var AWS_REGION_ENV = "AWS_REGION"; @@ -34195,12 +34109,12 @@ var require_dist_cjs52 = __commonJS({ }, default: "legacy" }; - var resolveDefaultsModeConfig3 = /* @__PURE__ */ __name(({ - region = (0, import_node_config_provider3.loadConfig)(import_config_resolver5.NODE_REGION_CONFIG_OPTIONS), - defaultsMode = (0, import_node_config_provider3.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) + var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({ + region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS), + defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, import_property_provider2.memoize)(async () => { const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode?.toLowerCase()) { + switch (mode == null ? void 0 : mode.toLowerCase()) { case "auto": return resolveNodeDefaultsModeAuto(region); case "in-region": @@ -34208,7 +34122,7 @@ var require_dist_cjs52 = __commonJS({ case "mobile": case "standard": case "legacy": - return Promise.resolve(mode?.toLocaleLowerCase()); + return Promise.resolve(mode == null ? void 0 : mode.toLocaleLowerCase()); case void 0: return Promise.resolve("legacy"); default: @@ -34241,7 +34155,7 @@ var require_dist_cjs52 = __commonJS({ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); const endpoint = await getInstanceMetadataEndpoint(); return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); - } catch (e3) { + } catch (e) { } } }, "inferPhysicalRegion"); @@ -34269,13 +34183,12 @@ var require_runtimeConfig = __commonJS({ var smithy_client_1 = require_dist_cjs19(); var util_defaults_mode_node_1 = require_dist_cjs52(); var smithy_client_2 = require_dist_cjs19(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { (0, smithy_client_2.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 profileConfig = { profile: config?.profile }; return { ...clientSharedValues, ...config, @@ -34283,21 +34196,21 @@ var require_runtimeConfig = __commonJS({ defaultsMode, 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, ...profileConfig }), + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), 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, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); @@ -34325,16 +34238,16 @@ var require_dist_cjs53 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3, - NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3, + NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, REGION_ENV_NAME: () => REGION_ENV_NAME, REGION_INI_NAME: () => REGION_INI_NAME, - getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3, - resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3, - resolveRegionConfig: () => resolveRegionConfig3 + getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration, + resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration, + resolveRegionConfig: () => resolveRegionConfig }); module2.exports = __toCommonJS2(src_exports); - var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let runtimeConfigRegion = /* @__PURE__ */ __name(async () => { if (runtimeConfig.region === void 0) { throw new Error("Region is missing from runtimeConfig"); @@ -34354,26 +34267,26 @@ var require_dist_cjs53 = __commonJS({ } }; }, "getAwsRegionExtensionConfiguration"); - var resolveAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => { + var resolveAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => { return { region: awsRegionExtensionConfiguration.region() }; }, "resolveAwsRegionExtensionConfiguration"); var REGION_ENV_NAME = "AWS_REGION"; var REGION_INI_NAME = "region"; - var NODE_REGION_CONFIG_OPTIONS3 = { + var NODE_REGION_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[REGION_ENV_NAME], configFileSelector: (profile) => profile[REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - var NODE_REGION_CONFIG_FILE_OPTIONS3 = { + var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion"); var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion"); - var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRegionConfig = /* @__PURE__ */ __name((input) => { const { region, useFipsEndpoint } = input; if (!region) { throw new Error("Region is missing"); @@ -34426,7 +34339,7 @@ var require_dist_cjs54 = __commonJS({ GetRoleCredentialsCommand: () => GetRoleCredentialsCommand, GetRoleCredentialsRequestFilterSensitiveLog: () => GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog: () => GetRoleCredentialsResponseFilterSensitiveLog, - InvalidRequestException: () => InvalidRequestException2, + InvalidRequestException: () => InvalidRequestException, ListAccountRolesCommand: () => ListAccountRolesCommand, ListAccountRolesRequestFilterSensitiveLog: () => ListAccountRolesRequestFilterSensitiveLog, ListAccountsCommand: () => ListAccountsCommand, @@ -34440,22 +34353,22 @@ var require_dist_cjs54 = __commonJS({ SSOServiceException: () => SSOServiceException, TooManyRequestsException: () => TooManyRequestsException, UnauthorizedException: () => UnauthorizedException, - __Client: () => import_smithy_client25.Client, + __Client: () => import_smithy_client4.Client, paginateListAccountRoles: () => paginateListAccountRoles, paginateListAccounts: () => paginateListAccounts }); module2.exports = __toCommonJS2(src_exports); - var import_middleware_host_header3 = require_dist_cjs24(); - var import_middleware_logger3 = require_dist_cjs25(); - var import_middleware_recursion_detection3 = require_dist_cjs26(); - var import_middleware_user_agent3 = require_dist_cjs32(); - var import_config_resolver5 = require_dist_cjs33(); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_middleware_content_length3 = require_dist_cjs35(); - var import_middleware_endpoint6 = require_dist_cjs44(); - var import_middleware_retry5 = require_dist_cjs38(); - var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider2(); - var resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => { + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider2(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { ...options, useDualstackEndpoint: options.useDualstackEndpoint ?? false, @@ -34463,17 +34376,17 @@ var require_dist_cjs54 = __commonJS({ defaultSigningName: "awsssoportal" }; }, "resolveClientEndpointParameters"); - var commonParams3 = { + var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; - var import_runtimeConfig5 = require_runtimeConfig(); - var import_region_config_resolver3 = require_dist_cjs53(); - var import_protocol_http11 = require_dist_cjs2(); - var import_smithy_client25 = require_dist_cjs19(); - var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var import_runtimeConfig = require_runtimeConfig(); + var import_region_config_resolver = require_dist_cjs53(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -34503,65 +34416,58 @@ var require_dist_cjs54 = __commonJS({ } }; }, "getHttpAuthExtensionConfiguration"); - var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }, "resolveHttpAuthRuntimeConfig"); - var asPartial3 = /* @__PURE__ */ __name((t3) => t3, "asPartial"); - var resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial3((0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_smithy_client25.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_protocol_http11.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial3(getHttpAuthExtensionConfiguration3(runtimeConfig)) + ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client25.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http11.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig3(extensionConfiguration) + ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); - var SSOClient = class extends import_smithy_client25.Client { - static { - __name(this, "SSOClient"); - } - /** - * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}. - */ - config; + var _SSOClient = class _SSOClient extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters3(_config_0); - const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver5.resolveRegionConfig)(_config_3); - const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, import_middleware_endpoint6.resolveEndpointConfig)(_config_5); - const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6); - const _config_8 = resolveRuntimeExtensions3(_config_7, configuration2?.extensions || []); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); + const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); + const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); + const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); + const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); + const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_8); this.config = _config_8; - this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( - (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { - httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSSOHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new import_core17.DefaultIdentityProviderConfig({ + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }) }) ); - this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config)); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. @@ -34572,25 +34478,21 @@ var require_dist_cjs54 = __commonJS({ super.destroy(); } }; - var import_middleware_serde5 = require_dist_cjs5(); - var SSOServiceException = class _SSOServiceException extends import_smithy_client25.ServiceException { - static { - __name(this, "SSOServiceException"); - } + __name(_SSOClient, "SSOClient"); + var SSOClient = _SSOClient; + var import_middleware_serde2 = require_dist_cjs5(); + var _SSOServiceException = class _SSOServiceException2 extends import_smithy_client4.ServiceException { /** * @internal */ constructor(options) { super(options); - Object.setPrototypeOf(this, _SSOServiceException.prototype); + Object.setPrototypeOf(this, _SSOServiceException2.prototype); } }; - var InvalidRequestException2 = class _InvalidRequestException extends SSOServiceException { - static { - __name(this, "InvalidRequestException"); - } - name = "InvalidRequestException"; - $fault = "client"; + __name(_SSOServiceException, "SSOServiceException"); + var SSOServiceException = _SSOServiceException; + var _InvalidRequestException = class _InvalidRequestException2 extends SSOServiceException { /** * @internal */ @@ -34600,15 +34502,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequestException.prototype); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestException2.prototype); } }; - var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException { - static { - __name(this, "ResourceNotFoundException"); - } - name = "ResourceNotFoundException"; - $fault = "client"; + __name(_InvalidRequestException, "InvalidRequestException"); + var InvalidRequestException = _InvalidRequestException; + var _ResourceNotFoundException = class _ResourceNotFoundException2 extends SSOServiceException { /** * @internal */ @@ -34618,15 +34519,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); + this.name = "ResourceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ResourceNotFoundException2.prototype); } }; - var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException { - static { - __name(this, "TooManyRequestsException"); - } - name = "TooManyRequestsException"; - $fault = "client"; + __name(_ResourceNotFoundException, "ResourceNotFoundException"); + var ResourceNotFoundException = _ResourceNotFoundException; + var _TooManyRequestsException = class _TooManyRequestsException2 extends SSOServiceException { /** * @internal */ @@ -34636,15 +34536,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _TooManyRequestsException.prototype); + this.name = "TooManyRequestsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyRequestsException2.prototype); } }; - var UnauthorizedException = class _UnauthorizedException extends SSOServiceException { - static { - __name(this, "UnauthorizedException"); - } - name = "UnauthorizedException"; - $fault = "client"; + __name(_TooManyRequestsException, "TooManyRequestsException"); + var TooManyRequestsException = _TooManyRequestsException; + var _UnauthorizedException = class _UnauthorizedException2 extends SSOServiceException { /** * @internal */ @@ -34654,17 +34553,21 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnauthorizedException.prototype); + this.name = "UnauthorizedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnauthorizedException2.prototype); } }; + __name(_UnauthorizedException, "UnauthorizedException"); + var UnauthorizedException = _UnauthorizedException; var GetRoleCredentialsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "GetRoleCredentialsRequestFilterSensitiveLog"); var RoleCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.secretAccessKey && { secretAccessKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.sessionToken && { sessionToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.secretAccessKey && { secretAccessKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: import_smithy_client4.SENSITIVE_STRING } }), "RoleCredentialsFilterSensitiveLog"); var GetRoleCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -34672,125 +34575,125 @@ var require_dist_cjs54 = __commonJS({ }), "GetRoleCredentialsResponseFilterSensitiveLog"); var ListAccountRolesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "ListAccountRolesRequestFilterSensitiveLog"); var ListAccountsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "ListAccountsRequestFilterSensitiveLog"); var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "LogoutRequestFilterSensitiveLog"); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/federation/credentials"); - const query = (0, import_smithy_client25.map)({ - [_rn]: [, (0, import_smithy_client25.expectNonNull)(input[_rN], `roleName`)], - [_ai]: [, (0, import_smithy_client25.expectNonNull)(input[_aI], `accountId`)] + b.bp("/federation/credentials"); + const query = (0, import_smithy_client4.map)({ + [_rn]: [, (0, import_smithy_client4.expectNonNull)(input[_rN], `roleName`)], + [_ai]: [, (0, import_smithy_client4.expectNonNull)(input[_aI], `accountId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetRoleCredentialsCommand"); var se_ListAccountRolesCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/assignment/roles"); - const query = (0, import_smithy_client25.map)({ + b.bp("/assignment/roles"); + const query = (0, import_smithy_client4.map)({ [_nt]: [, input[_nT]], [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()], - [_ai]: [, (0, import_smithy_client25.expectNonNull)(input[_aI], `accountId`)] + [_ai]: [, (0, import_smithy_client4.expectNonNull)(input[_aI], `accountId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListAccountRolesCommand"); var se_ListAccountsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/assignment/accounts"); - const query = (0, import_smithy_client25.map)({ + b.bp("/assignment/accounts"); + const query = (0, import_smithy_client4.map)({ [_nt]: [, input[_nT]], [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListAccountsCommand"); var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/logout"); + b.bp("/logout"); let body; - b3.m("POST").h(headers).b(body); - return b3.build(); + b.m("POST").h(headers).b(body); + return b.build(); }, "se_LogoutCommand"); var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - roleCredentials: import_smithy_client25._json + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + roleCredentials: import_smithy_client4._json }); Object.assign(contents, doc); return contents; }, "de_GetRoleCredentialsCommand"); var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - nextToken: import_smithy_client25.expectString, - roleList: import_smithy_client25._json + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + nextToken: import_smithy_client4.expectString, + roleList: import_smithy_client4._json }); Object.assign(contents, doc); return contents; }, "de_ListAccountRolesCommand"); var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - accountList: import_smithy_client25._json, - nextToken: import_smithy_client25.expectString + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accountList: import_smithy_client4._json, + nextToken: import_smithy_client4.expectString }); Object.assign(contents, doc); return contents; }, "de_ListAccountsCommand"); var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_LogoutCommand"); - var de_CommandError3 = /* @__PURE__ */ __name(async (output, context) => { + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core22.parseJsonErrorBody)(output.body, context) @@ -34799,7 +34702,7 @@ var require_dist_cjs54 = __commonJS({ switch (errorCode) { case "InvalidRequestException": case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes2(parsedOutput, context); + throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.sso#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -34811,67 +34714,67 @@ var require_dist_cjs54 = __commonJS({ throw await de_UnauthorizedExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError3({ + return throwDefaultError({ output, parsedBody, errorCode }); } }, "de_CommandError"); - var throwDefaultError3 = (0, import_smithy_client25.withBaseException)(SSOServiceException); - var de_InvalidRequestExceptionRes2 = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(SSOServiceException); + var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); - const exception = new InvalidRequestException2({ - $metadata: deserializeMetadata3(parsedOutput), + const exception = new InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidRequestExceptionRes"); var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ResourceNotFoundExceptionRes"); var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new TooManyRequestsException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_TooManyRequestsExceptionRes"); var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnauthorizedException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_UnauthorizedExceptionRes"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], @@ -34887,216 +34790,200 @@ var require_dist_cjs54 = __commonJS({ var _rN = "roleName"; var _rn = "role_name"; var _xasbt = "x-amz-sso_bearer_token"; - var GetRoleCredentialsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() { - static { - __name(this, "GetRoleCredentialsCommand"); - } }; - var ListAccountRolesCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_GetRoleCredentialsCommand, "GetRoleCredentialsCommand"); + var GetRoleCredentialsCommand = _GetRoleCredentialsCommand; + var _ListAccountRolesCommand = class _ListAccountRolesCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "ListAccountRoles", {}).n("SSOClient", "ListAccountRolesCommand").f(ListAccountRolesRequestFilterSensitiveLog, void 0).ser(se_ListAccountRolesCommand).de(de_ListAccountRolesCommand).build() { - static { - __name(this, "ListAccountRolesCommand"); - } }; - var ListAccountsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_ListAccountRolesCommand, "ListAccountRolesCommand"); + var ListAccountRolesCommand = _ListAccountRolesCommand; + var _ListAccountsCommand = class _ListAccountsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "ListAccounts", {}).n("SSOClient", "ListAccountsCommand").f(ListAccountsRequestFilterSensitiveLog, void 0).ser(se_ListAccountsCommand).de(de_ListAccountsCommand).build() { - static { - __name(this, "ListAccountsCommand"); - } }; - var LogoutCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_ListAccountsCommand, "ListAccountsCommand"); + var ListAccountsCommand = _ListAccountsCommand; + var _LogoutCommand = class _LogoutCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "Logout", {}).n("SSOClient", "LogoutCommand").f(LogoutRequestFilterSensitiveLog, void 0).ser(se_LogoutCommand).de(de_LogoutCommand).build() { - static { - __name(this, "LogoutCommand"); - } }; - var commands3 = { + __name(_LogoutCommand, "LogoutCommand"); + var LogoutCommand = _LogoutCommand; + var commands = { GetRoleCredentialsCommand, ListAccountRolesCommand, ListAccountsCommand, LogoutCommand }; - var SSO = class extends SSOClient { - static { - __name(this, "SSO"); - } + var _SSO = class _SSO extends SSOClient { }; - (0, import_smithy_client25.createAggregatedClient)(commands3, SSO); - var paginateListAccountRoles = (0, import_core17.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults"); - var paginateListAccounts = (0, import_core17.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults"); + __name(_SSO, "SSO"); + var SSO = _SSO; + (0, import_smithy_client4.createAggregatedClient)(commands, SSO); + var paginateListAccountRoles = (0, import_core3.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults"); + var paginateListAccounts = (0, import_core3.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults"); } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js -function createAwsAuthSigv4HttpAuthOption(authParameters) { - return { - schemeId: "aws.auth#sigv4", - signingProperties: { - name: "sso-oauth", - region: authParameters.region - }, - propertiesExtractor: (config, context) => ({ - signingProperties: { - config, - context - } - }) - }; -} -function createSmithyApiNoAuthHttpAuthOption(authParameters) { - return { - schemeId: "smithy.api#noAuth" - }; -} -var import_util_middleware3, defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig; -var init_httpAuthSchemeProvider = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js"() { - init_dist_es2(); - import_util_middleware3 = __toESM(require_dist_cjs4()); - defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +var require_httpAuthSchemeProvider3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var util_middleware_1 = require_dist_cjs4(); + var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { return { - operation: (0, import_util_middleware3.getSmithyContext)(context).operation, - region: await (0, import_util_middleware3.normalizeProvider)(config.region)() || (() => { + 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`"); })() }; }; - defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => { + exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider; + function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "sso-oauth", + region: authParameters.region + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context + } + }) + }; + } + function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth" + }; + } + var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { case "CreateToken": { options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } + case "RegisterClient": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } + case "StartDeviceAuthorization": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; - resolveHttpAuthSchemeConfig = (config) => { - const config_0 = resolveAwsSdkSigV4Config(config); + exports2.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider; + var resolveHttpAuthSchemeConfig = (config) => { + const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); return { ...config_0 }; }; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js -var resolveClientEndpointParameters, commonParams; -var init_EndpointParameters = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js"() { - resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "sso-oauth" - }; - }; - commonParams = { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/package.json -var package_default; -var init_package = __esm({ - "../../node_modules/@aws-sdk/nested-clients/package.json"() { - package_default = { - name: "@aws-sdk/nested-clients", - version: "3.731.1", - description: "Nested clients for AWS SDK packages.", - main: "./dist-cjs/index.js", - module: "./dist-es/index.js", - types: "./dist-types/index.d.ts", +// ../../node_modules/@aws-sdk/client-sso-oidc/package.json +var require_package3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) { + module2.exports = { + name: "@aws-sdk/client-sso-oidc", + description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", + version: "3.699.0", scripts: { - build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "node ../../scripts/compilation/inline nested-clients", + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc", "build:es": "tsc -p tsconfig.es.json", "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", - lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients", - test: "yarn g:vitest run", - "test:watch": "yarn g:vitest watch" - }, - engines: { - node: ">=18.0.0" - }, - author: { - name: "AWS SDK for JavaScript Team", - url: "https://aws.amazon.com/javascript/" + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sso-oidc" }, - license: "Apache-2.0", + 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.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, devDependencies: { + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" + }, + engines: { + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -35106,293 +34993,274 @@ var init_package = __esm({ } }, files: [ - "./sso-oidc.d.ts", - "./sso-oidc.js", - "./sts.d.ts", - "./sts.js", "dist-*/**" ], + author: { + name: "AWS SDK for JavaScript Team", + url: "https://aws.amazon.com/javascript/" + }, + license: "Apache-2.0", + peerDependencies: { + "@aws-sdk/client-sts": "^3.699.0" + }, 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" + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, - "react-native": {}, - homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients", + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc", repository: { type: "git", url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: "packages/nested-clients" - }, - exports: { - "./sso-oidc": { - 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", - types: "./dist-types/submodules/sso-oidc/index.d.ts" - }, - "./sts": { - 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", - types: "./dist-types/submodules/sts/index.d.ts" - } - } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js -var u, v, w, x, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, _data, ruleSet; -var init_ruleset = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js"() { - u = "required"; - v = "fn"; - w = "argv"; - x = "ref"; - 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" }]; - _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 } - ] + directory: "clients/client-sso-oidc" + } }; - ruleSet = _data; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js -var import_util_endpoints, import_util_endpoints2, cache, defaultEndpointResolver; -var init_endpointResolver = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"() { - import_util_endpoints = __toESM(require_dist_cjs31()); - import_util_endpoints2 = __toESM(require_dist_cjs30()); - init_ruleset(); - cache = new import_util_endpoints2.EndpointCache({ +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +var require_ruleset3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; + var u = "required"; + var v = "fn"; + var w = "argv"; + var x = "ref"; + var a = true; + var b = "isSet"; + var c = "booleanEquals"; + var d = "error"; + var e = "endpoint"; + var f = "tree"; + var g = "PartitionResult"; + var h = "getAttr"; + var i = { [u]: false, "type": "String" }; + var j = { [u]: true, "default": false, "type": "Boolean" }; + var k = { [x]: "Endpoint" }; + var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }; + var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }; + var n = {}; + var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }; + var p = { [x]: g }; + var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }; + var r = [l]; + var s = [m]; + var t = [{ [x]: "Region" }]; + var _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 }] }; + exports2.ruleSet = _data; + } +}); + +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +var require_endpointResolver3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; + var util_endpoints_1 = require_dist_cjs31(); + var util_endpoints_2 = require_dist_cjs30(); + var ruleset_1 = require_ruleset3(); + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); - defaultEndpointResolver = (endpointParams, context = {}) => { - return cache.get(endpointParams, () => (0, import_util_endpoints2.resolveEndpoint)(ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - import_util_endpoints2.customEndpointFunctions.aws = import_util_endpoints.awsEndpointFunctions; + exports2.defaultEndpointResolver = defaultEndpointResolver; + util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js -var import_smithy_client4, import_url_parser, import_util_base64, import_util_utf8, getRuntimeConfig; -var init_runtimeConfig_shared = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client4 = __toESM(require_dist_cjs19()); - import_url_parser = __toESM(require_dist_cjs43()); - import_util_base64 = __toESM(require_dist_cjs9()); - import_util_utf8 = __toESM(require_dist_cjs8()); - init_httpAuthSchemeProvider(); - init_endpointResolver(); - getRuntimeConfig = (config) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var smithy_client_1 = require_dist_cjs19(); + var url_parser_1 = require_dist_cjs43(); + var util_base64_1 = require_dist_cjs9(); + var util_utf8_1 = require_dist_cjs8(); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider3(); + var endpointResolver_1 = require_endpointResolver3(); + var getRuntimeConfig = (config) => { return { apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64, - base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64, + base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, + base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, extensions: config?.extensions ?? [], - httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider, + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), - signer: new AwsSdkSigV4Signer() + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - logger: config?.logger ?? new import_smithy_client4.NoOpLogger(), + logger: config?.logger ?? new smithy_client_1.NoOpLogger(), serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? import_url_parser.parseUrl, - utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8 + urlParser: config?.urlParser ?? url_parser_1.parseUrl, + utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, + utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js -var import_util_user_agent_node, import_config_resolver, import_hash_node, import_middleware_retry, import_node_config_provider, import_node_http_handler, import_util_body_length_node, import_util_retry, import_smithy_client5, import_util_defaults_mode_node, import_smithy_client6, getRuntimeConfig2; -var init_runtimeConfig = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js"() { - init_package(); - init_dist_es2(); - import_util_user_agent_node = __toESM(require_dist_cjs49()); - import_config_resolver = __toESM(require_dist_cjs33()); - import_hash_node = __toESM(require_dist_cjs50()); - import_middleware_retry = __toESM(require_dist_cjs38()); - import_node_config_provider = __toESM(require_dist_cjs41()); - import_node_http_handler = __toESM(require_dist_cjs12()); - import_util_body_length_node = __toESM(require_dist_cjs51()); - import_util_retry = __toESM(require_dist_cjs37()); - init_runtimeConfig_shared(); - import_smithy_client5 = __toESM(require_dist_cjs19()); - import_util_defaults_mode_node = __toESM(require_dist_cjs52()); - import_smithy_client6 = __toESM(require_dist_cjs19()); - getRuntimeConfig2 = (config) => { - (0, import_smithy_client6.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, import_util_defaults_mode_node.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(import_smithy_client5.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - emitWarningIfUnsupportedVersion(process.version); - const profileConfig = { profile: config?.profile }; +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var credential_provider_node_1 = require_dist_cjs62(); + var util_user_agent_node_1 = require_dist_cjs49(); + var config_resolver_1 = require_dist_cjs33(); + var hash_node_1 = require_dist_cjs50(); + var middleware_retry_1 = require_dist_cjs38(); + var node_config_provider_1 = require_dist_cjs41(); + var node_http_handler_1 = require_dist_cjs12(); + var util_body_length_node_1 = require_dist_cjs51(); + var util_retry_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs52(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + (0, smithy_client_2.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); return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider.loadConfig)(import_middleware_retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), - region: config?.region ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestHandler: import_node_http_handler.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: config?.retryMode ?? (0, import_node_config_provider.loadConfig)({ - ...import_middleware_retry.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || import_util_retry.DEFAULT_RETRY_MODE - }, config), - sha256: config?.sha256 ?? import_hash_node.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? import_node_http_handler.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider.loadConfig)(import_util_user_agent_node.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, + 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), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + 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 + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js -var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig; -var init_httpAuthExtensionConfiguration = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js"() { - getHttpAuthExtensionConfiguration = (runtimeConfig) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +var require_dist_cjs55 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) { + "use strict"; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AccessDeniedException: () => AccessDeniedException, + AuthorizationPendingException: () => AuthorizationPendingException, + CreateTokenCommand: () => CreateTokenCommand, + CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog, + CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog, + CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand, + CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog, + CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog, + ExpiredTokenException: () => ExpiredTokenException, + InternalServerException: () => InternalServerException, + InvalidClientException: () => InvalidClientException, + InvalidClientMetadataException: () => InvalidClientMetadataException, + InvalidGrantException: () => InvalidGrantException, + InvalidRedirectUriException: () => InvalidRedirectUriException, + InvalidRequestException: () => InvalidRequestException, + InvalidRequestRegionException: () => InvalidRequestRegionException, + InvalidScopeException: () => InvalidScopeException, + RegisterClientCommand: () => RegisterClientCommand, + RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog, + SSOOIDC: () => SSOOIDC, + SSOOIDCClient: () => SSOOIDCClient, + SSOOIDCServiceException: () => SSOOIDCServiceException, + SlowDownException: () => SlowDownException, + StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand, + StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog, + UnauthorizedClientException: () => UnauthorizedClientException, + UnsupportedGrantTypeException: () => UnsupportedGrantTypeException, + __Client: () => import_smithy_client4.Client + }); + module2.exports = __toCommonJS2(src_exports); + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider3(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "sso-oauth" + }; + }, "resolveClientEndpointParameters"); + var commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } + }; + var import_runtimeConfig = require_runtimeConfig2(); + var import_region_config_resolver = require_dist_cjs53(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -35421,30 +35289,19 @@ var init_httpAuthExtensionConfiguration = __esm({ return _credentials; } }; - }; - resolveHttpAuthRuntimeConfig = (config) => { + }, "getHttpAuthExtensionConfiguration"); + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js -var import_region_config_resolver, import_protocol_http8, import_smithy_client7, asPartial, resolveRuntimeExtensions; -var init_runtimeExtensions = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() { - import_region_config_resolver = __toESM(require_dist_cjs53()); - import_protocol_http8 = __toESM(require_dist_cjs2()); - import_smithy_client7 = __toESM(require_dist_cjs19()); - init_httpAuthExtensionConfiguration(); - asPartial = (t3) => t3; - resolveRuntimeExtensions = (runtimeConfig, extensions) => { + }, "resolveHttpAuthRuntimeConfig"); + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_smithy_client7.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; @@ -35452,332 +35309,536 @@ var init_runtimeExtensions = __esm({ return { ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client7.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js -var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver2, import_middleware_content_length, import_middleware_endpoint, import_middleware_retry2, import_smithy_client8, SSOOIDCClient; -var init_SSOOIDCClient = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js"() { - import_middleware_host_header = __toESM(require_dist_cjs24()); - import_middleware_logger = __toESM(require_dist_cjs25()); - import_middleware_recursion_detection = __toESM(require_dist_cjs26()); - import_middleware_user_agent = __toESM(require_dist_cjs32()); - import_config_resolver2 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_middleware_content_length = __toESM(require_dist_cjs35()); - import_middleware_endpoint = __toESM(require_dist_cjs44()); - import_middleware_retry2 = __toESM(require_dist_cjs38()); - import_smithy_client8 = __toESM(require_dist_cjs19()); - init_httpAuthSchemeProvider(); - init_EndpointParameters(); - init_runtimeConfig(); - init_runtimeExtensions(); - SSOOIDCClient = class extends import_smithy_client8.Client { - config; + }, "resolveRuntimeExtensions"); + var _SSOOIDCClient = class _SSOOIDCClient extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = getRuntimeConfig2(configuration2 || {}); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry2.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver2.resolveRegionConfig)(_config_3); + const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); + const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); - const _config_7 = resolveHttpAuthSchemeConfig(_config_6); - const _config_8 = resolveRuntimeExtensions(_config_7, configuration2?.extensions || []); + const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_8); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry2.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { - httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ - "aws.auth#sigv4": config.credentials + this.middlewareStack.use( + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials + }) }) - })); - this.middlewareStack.use(getHttpSigningPlugin(this.config)); + ); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); } + /** + * Destroy underlying resources, like sockets. It's usually not necessary to do this. + * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. + * Otherwise, sockets might stay open for quite a long time before the server terminates them. + */ destroy() { super.destroy(); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js -var import_smithy_client9, SSOOIDCServiceException; -var init_SSOOIDCServiceException = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"() { - import_smithy_client9 = __toESM(require_dist_cjs19()); - SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client9.ServiceException { + __name(_SSOOIDCClient, "SSOOIDCClient"); + var SSOOIDCClient = _SSOOIDCClient; + var import_middleware_serde2 = require_dist_cjs5(); + var _SSOOIDCServiceException = class _SSOOIDCServiceException2 extends import_smithy_client4.ServiceException { + /** + * @internal + */ constructor(options) { super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); + Object.setPrototypeOf(this, _SSOOIDCServiceException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js -var import_smithy_client10, AccessDeniedException, AuthorizationPendingException, CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException; -var init_models_0 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js"() { - import_smithy_client10 = __toESM(require_dist_cjs19()); - init_SSOOIDCServiceException(); - AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - name = "AccessDeniedException"; - $fault = "client"; - error; - error_description; + __name(_SSOOIDCServiceException, "SSOOIDCServiceException"); + var SSOOIDCServiceException = _SSOOIDCServiceException; + var _AccessDeniedException = class _AccessDeniedException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _AccessDeniedException.prototype); + this.name = "AccessDeniedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _AccessDeniedException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - name = "AuthorizationPendingException"; - $fault = "client"; - error; - error_description; + __name(_AccessDeniedException, "AccessDeniedException"); + var AccessDeniedException = _AccessDeniedException; + var _AuthorizationPendingException = class _AuthorizationPendingException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "AuthorizationPendingException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); + this.name = "AuthorizationPendingException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _AuthorizationPendingException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - CreateTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.clientSecret && { clientSecret: import_smithy_client10.SENSITIVE_STRING }, - ...obj.refreshToken && { refreshToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.codeVerifier && { codeVerifier: import_smithy_client10.SENSITIVE_STRING } - }); - CreateTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.refreshToken && { refreshToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.idToken && { idToken: import_smithy_client10.SENSITIVE_STRING } - }); - ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - name = "ExpiredTokenException"; - $fault = "client"; - error; - error_description; + __name(_AuthorizationPendingException, "AuthorizationPendingException"); + var AuthorizationPendingException = _AuthorizationPendingException; + var _ExpiredTokenException = class _ExpiredTokenException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ExpiredTokenException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - name = "InternalServerException"; - $fault = "server"; - error; - error_description; + __name(_ExpiredTokenException, "ExpiredTokenException"); + var ExpiredTokenException = _ExpiredTokenException; + var _InternalServerException = class _InternalServerException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); - Object.setPrototypeOf(this, _InternalServerException.prototype); + this.name = "InternalServerException"; + this.$fault = "server"; + Object.setPrototypeOf(this, _InternalServerException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - name = "InvalidClientException"; - $fault = "client"; - error; - error_description; + __name(_InternalServerException, "InternalServerException"); + var InternalServerException = _InternalServerException; + var _InvalidClientException = class _InvalidClientException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidClientException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidClientException.prototype); + this.name = "InvalidClientException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidClientException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - name = "InvalidGrantException"; - $fault = "client"; - error; - error_description; + __name(_InvalidClientException, "InvalidClientException"); + var InvalidClientException = _InvalidClientException; + var _InvalidGrantException = class _InvalidGrantException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidGrantException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidGrantException.prototype); + this.name = "InvalidGrantException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidGrantException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - name = "InvalidRequestException"; - $fault = "client"; - error; - error_description; + __name(_InvalidGrantException, "InvalidGrantException"); + var InvalidGrantException = _InvalidGrantException; + var _InvalidRequestException = class _InvalidRequestException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequestException.prototype); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - name = "InvalidScopeException"; - $fault = "client"; - error; - error_description; + __name(_InvalidRequestException, "InvalidRequestException"); + var InvalidRequestException = _InvalidRequestException; + var _InvalidScopeException = class _InvalidScopeException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidScopeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidScopeException.prototype); + this.name = "InvalidScopeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidScopeException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - name = "SlowDownException"; - $fault = "client"; - error; - error_description; + __name(_InvalidScopeException, "InvalidScopeException"); + var InvalidScopeException = _InvalidScopeException; + var _SlowDownException = class _SlowDownException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "SlowDownException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _SlowDownException.prototype); + this.name = "SlowDownException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _SlowDownException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - name = "UnauthorizedClientException"; - $fault = "client"; - error; - error_description; + __name(_SlowDownException, "SlowDownException"); + var SlowDownException = _SlowDownException; + var _UnauthorizedClientException = class _UnauthorizedClientException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "UnauthorizedClientException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); + this.name = "UnauthorizedClientException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnauthorizedClientException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - name = "UnsupportedGrantTypeException"; - $fault = "client"; - error; - error_description; + __name(_UnauthorizedClientException, "UnauthorizedClientException"); + var UnauthorizedClientException = _UnauthorizedClientException; + var _UnsupportedGrantTypeException = class _UnsupportedGrantTypeException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "UnsupportedGrantTypeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); + this.name = "UnsupportedGrantTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnsupportedGrantTypeException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js -var import_smithy_client11, se_CreateTokenCommand, de_CreateTokenCommand, de_CommandError, throwDefaultError, de_AccessDeniedExceptionRes, de_AuthorizationPendingExceptionRes, de_ExpiredTokenExceptionRes, de_InternalServerExceptionRes, de_InvalidClientExceptionRes, de_InvalidGrantExceptionRes, de_InvalidRequestExceptionRes, de_InvalidScopeExceptionRes, de_SlowDownExceptionRes, de_UnauthorizedClientExceptionRes, de_UnsupportedGrantTypeExceptionRes, deserializeMetadata; -var init_Aws_restJson1 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client11 = __toESM(require_dist_cjs19()); - init_models_0(); - init_SSOOIDCServiceException(); - se_CreateTokenCommand = async (input, context) => { - const b3 = requestBuilder(input, context); + __name(_UnsupportedGrantTypeException, "UnsupportedGrantTypeException"); + var UnsupportedGrantTypeException = _UnsupportedGrantTypeException; + var _InvalidRequestRegionException = class _InvalidRequestRegionException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRequestRegionException", + $fault: "client", + ...opts + }); + this.name = "InvalidRequestRegionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestRegionException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + this.endpoint = opts.endpoint; + this.region = opts.region; + } + }; + __name(_InvalidRequestRegionException, "InvalidRequestRegionException"); + var InvalidRequestRegionException = _InvalidRequestRegionException; + var _InvalidClientMetadataException = class _InvalidClientMetadataException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidClientMetadataException", + $fault: "client", + ...opts + }); + this.name = "InvalidClientMetadataException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidClientMetadataException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } + }; + __name(_InvalidClientMetadataException, "InvalidClientMetadataException"); + var InvalidClientMetadataException = _InvalidClientMetadataException; + var _InvalidRedirectUriException = class _InvalidRedirectUriException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRedirectUriException", + $fault: "client", + ...opts + }); + this.name = "InvalidRedirectUriException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRedirectUriException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } + }; + __name(_InvalidRedirectUriException, "InvalidRedirectUriException"); + var InvalidRedirectUriException = _InvalidRedirectUriException; + var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenRequestFilterSensitiveLog"); + var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenResponseFilterSensitiveLog"); + var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.assertion && { assertion: import_smithy_client4.SENSITIVE_STRING }, + ...obj.subjectToken && { subjectToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenWithIAMRequestFilterSensitiveLog"); + var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenWithIAMResponseFilterSensitiveLog"); + var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING } + }), "RegisterClientResponseFilterSensitiveLog"); + var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING } + }), "StartDeviceAuthorizationRequestFilterSensitiveLog"); + var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; - b3.bp("/token"); + b.bp("/token"); let body; - body = JSON.stringify((0, import_smithy_client11.take)(input, { - clientId: [], - clientSecret: [], - code: [], - codeVerifier: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_2) => (0, import_smithy_client11._json)(_2) - })); - b3.m("POST").h(headers).b(body); - return b3.build(); - }; - de_CreateTokenCommand = async (output, context) => { + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientId: [], + clientSecret: [], + code: [], + codeVerifier: [], + deviceCode: [], + grantType: [], + redirectUri: [], + refreshToken: [], + scope: (_) => (0, import_smithy_client4._json)(_) + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_CreateTokenCommand"); + var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/token"); + const query = (0, import_smithy_client4.map)({ + [_ai]: [, "t"] + }); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + assertion: [], + clientId: [], + code: [], + codeVerifier: [], + grantType: [], + redirectUri: [], + refreshToken: [], + requestedTokenType: [], + scope: (_) => (0, import_smithy_client4._json)(_), + subjectToken: [], + subjectTokenType: [] + }) + ); + b.m("POST").h(headers).q(query).b(body); + return b.build(); + }, "se_CreateTokenWithIAMCommand"); + var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/client/register"); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientName: [], + clientType: [], + entitledApplicationArn: [], + grantTypes: (_) => (0, import_smithy_client4._json)(_), + issuerUrl: [], + redirectUris: (_) => (0, import_smithy_client4._json)(_), + scopes: (_) => (0, import_smithy_client4._json)(_) + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_RegisterClientCommand"); + var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/device_authorization"); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientId: [], + clientSecret: [], + startUrl: [] + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_StartDeviceAuthorizationCommand"); + var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } - const contents = (0, import_smithy_client11.map)({ + const contents = (0, import_smithy_client4.map)({ $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client11.expectNonNull)((0, import_smithy_client11.expectObject)(await parseJsonBody(output.body, context)), "body"); - const doc = (0, import_smithy_client11.take)(data, { - accessToken: import_smithy_client11.expectString, - expiresIn: import_smithy_client11.expectInt32, - idToken: import_smithy_client11.expectString, - refreshToken: import_smithy_client11.expectString, - tokenType: import_smithy_client11.expectString + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accessToken: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + idToken: import_smithy_client4.expectString, + refreshToken: import_smithy_client4.expectString, + tokenType: import_smithy_client4.expectString }); Object.assign(contents, doc); return contents; - }; - de_CommandError = async (output, context) => { + }, "de_CreateTokenCommand"); + var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accessToken: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + idToken: import_smithy_client4.expectString, + issuedTokenType: import_smithy_client4.expectString, + refreshToken: import_smithy_client4.expectString, + scope: import_smithy_client4._json, + tokenType: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_CreateTokenWithIAMCommand"); + var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + authorizationEndpoint: import_smithy_client4.expectString, + clientId: import_smithy_client4.expectString, + clientIdIssuedAt: import_smithy_client4.expectLong, + clientSecret: import_smithy_client4.expectString, + clientSecretExpiresAt: import_smithy_client4.expectLong, + tokenEndpoint: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_RegisterClientCommand"); + var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + deviceCode: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + interval: import_smithy_client4.expectInt32, + userCode: import_smithy_client4.expectString, + verificationUri: import_smithy_client4.expectString, + verificationUriComplete: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_StartDeviceAuthorizationCommand"); + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await parseJsonErrorBody(output.body, context) + body: await (0, import_core22.parseJsonErrorBody)(output.body, context) }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.ssooidc#AccessDeniedException": @@ -35812,6 +35873,15 @@ var init_Aws_restJson1 = __esm({ case "UnsupportedGrantTypeException": case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); + case "InvalidRequestRegionException": + case "com.amazonaws.ssooidc#InvalidRequestRegionException": + throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context); + case "InvalidClientMetadataException": + case "com.amazonaws.ssooidc#InvalidClientMetadataException": + throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); + case "InvalidRedirectUriException": + case "com.amazonaws.ssooidc#InvalidRedirectUriException": + throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -35820,256 +35890,265 @@ var init_Aws_restJson1 = __esm({ errorCode }); } - }; - throwDefaultError = (0, import_smithy_client11.withBaseException)(SSOOIDCServiceException); - de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + }, "de_CommandError"); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(SSOOIDCServiceException); + var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_AccessDeniedExceptionRes"); + var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new AuthorizationPendingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_AuthorizationPendingExceptionRes"); + var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new ExpiredTokenException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_ExpiredTokenExceptionRes"); + var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InternalServerExceptionRes"); + var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidClientException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidClientExceptionRes"); + var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidClientMetadataException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidClientMetadataExceptionRes"); + var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidGrantException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidGrantExceptionRes"); + var de_InvalidRedirectUriExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidRedirectUriException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRedirectUriExceptionRes"); + var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidRequestException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestExceptionRes"); + var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + endpoint: import_smithy_client4.expectString, + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString, + region: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidRequestRegionException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestRegionExceptionRes"); + var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidScopeException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidScopeExceptionRes"); + var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new SlowDownException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_SlowDownExceptionRes"); + var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnauthorizedClientException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_UnauthorizedClientExceptionRes"); + var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnsupportedGrantTypeException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - deserializeMetadata = (output) => ({ + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_UnsupportedGrantTypeExceptionRes"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] - }); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js -var import_middleware_endpoint2, import_middleware_serde2, import_smithy_client12, CreateTokenCommand; -var init_CreateTokenCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js"() { - import_middleware_endpoint2 = __toESM(require_dist_cjs44()); - import_middleware_serde2 = __toESM(require_dist_cjs5()); - import_smithy_client12 = __toESM(require_dist_cjs19()); - init_EndpointParameters(); - init_models_0(); - init_Aws_restJson1(); - CreateTokenCommand = class extends import_smithy_client12.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o3) { + }), "deserializeMetadata"); + var _ai = "aws_iam"; + var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js -var import_smithy_client13, commands, SSOOIDC; -var init_SSOOIDC = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js"() { - import_smithy_client13 = __toESM(require_dist_cjs19()); - init_CreateTokenCommand(); - init_SSOOIDCClient(); - commands = { - CreateTokenCommand + __name(_CreateTokenCommand, "CreateTokenCommand"); + var CreateTokenCommand = _CreateTokenCommand; + var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() { }; - SSOOIDC = class extends SSOOIDCClient { + __name(_CreateTokenWithIAMCommand, "CreateTokenWithIAMCommand"); + var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand; + var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() { }; - (0, import_smithy_client13.createAggregatedClient)(commands, SSOOIDC); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js -var init_commands = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js"() { - init_CreateTokenCommand(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js -var init_models = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js"() { - init_models_0(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js -var sso_oidc_exports = {}; -__export(sso_oidc_exports, { - $Command: () => import_smithy_client12.Command, - AccessDeniedException: () => AccessDeniedException, - AuthorizationPendingException: () => AuthorizationPendingException, - CreateTokenCommand: () => CreateTokenCommand, - CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog, - CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog, - ExpiredTokenException: () => ExpiredTokenException, - InternalServerException: () => InternalServerException, - InvalidClientException: () => InvalidClientException, - InvalidGrantException: () => InvalidGrantException, - InvalidRequestException: () => InvalidRequestException, - InvalidScopeException: () => InvalidScopeException, - SSOOIDC: () => SSOOIDC, - SSOOIDCClient: () => SSOOIDCClient, - SSOOIDCServiceException: () => SSOOIDCServiceException, - SlowDownException: () => SlowDownException, - UnauthorizedClientException: () => UnauthorizedClientException, - UnsupportedGrantTypeException: () => UnsupportedGrantTypeException, - __Client: () => import_smithy_client8.Client -}); -var init_sso_oidc = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"() { - init_SSOOIDCClient(); - init_SSOOIDC(); - init_commands(); - init_models(); - init_SSOOIDCServiceException(); + __name(_RegisterClientCommand, "RegisterClientCommand"); + var RegisterClientCommand = _RegisterClientCommand; + var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() { + }; + __name(_StartDeviceAuthorizationCommand, "StartDeviceAuthorizationCommand"); + var StartDeviceAuthorizationCommand = _StartDeviceAuthorizationCommand; + var commands = { + CreateTokenCommand, + CreateTokenWithIAMCommand, + RegisterClientCommand, + StartDeviceAuthorizationCommand + }; + var _SSOOIDC = class _SSOOIDC extends SSOOIDCClient { + }; + __name(_SSOOIDC, "SSOOIDC"); + var SSOOIDC = _SSOOIDC; + (0, import_smithy_client4.createAggregatedClient)(commands, SSOOIDC); } }); // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js -var require_dist_cjs55 = __commonJS({ +var require_dist_cjs56 = __commonJS({ "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -36110,20 +36189,21 @@ var require_dist_cjs55 = __commonJS({ var EXPIRE_WINDOW_MS = 5 * 60 * 1e3; var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => { - const { SSOOIDCClient: SSOOIDCClient2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports)))); - const ssoOidcClient = new SSOOIDCClient2( + var _a, _b, _c; + const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); + const ssoOidcClient = new SSOOIDCClient( Object.assign({}, init.clientConfig ?? {}, { - region: ssoRegion ?? init.clientConfig?.region, - logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger + region: ssoRegion ?? ((_a = init.clientConfig) == null ? void 0 : _a.region), + logger: ((_b = init.clientConfig) == null ? void 0 : _b.logger) ?? ((_c = init.parentClientConfig) == null ? void 0 : _c.logger) }) ); return ssoOidcClient; }, "getSsoOidcClient"); var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init = {}) => { - const { CreateTokenCommand: CreateTokenCommand2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports)))); + const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); const ssoOidcClient = await getSsoOidcClient(ssoRegion, init); return ssoOidcClient.send( - new CreateTokenCommand2({ + new CreateTokenCommand({ clientId: ssoToken.clientId, clientSecret: ssoToken.clientSecret, refreshToken: ssoToken.refreshToken, @@ -36154,19 +36234,11 @@ var require_dist_cjs55 = __commonJS({ return writeFile(tokenFilepath, tokenString); }, "writeSSOTokenToFile"); var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0); - var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => { - const init = { - ..._init, - parentClientConfig: { - ...callerClientConfig, - ..._init.parentClientConfig - } - }; - init.logger?.debug("@aws-sdk/token-providers - fromSso"); + var fromSso = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - const profileName = (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }); + const profileName = (0, import_shared_ini_file_loader.getProfileName)(init); const profile = profiles[profileName]; if (!profile) { throw new import_property_provider2.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); @@ -36195,7 +36267,7 @@ var require_dist_cjs55 = __commonJS({ let ssoToken; try { ssoToken = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoSessionName); - } catch (e3) { + } catch (e) { throw new import_property_provider2.TokenProviderError( `The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false @@ -36240,7 +36312,7 @@ var require_dist_cjs55 = __commonJS({ } }, "fromSso"); var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => { - logger?.debug("@aws-sdk/token-providers - fromStatic"); + logger == null ? void 0 : logger.debug("@aws-sdk/token-providers - fromStatic"); if (!token || !token.token) { throw new import_property_provider2.TokenProviderError(`Please pass a valid token to fromStatic`, false); } @@ -36257,7 +36329,7 @@ var require_dist_cjs55 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs56 = __commonJS({ +var require_dist_cjs57 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -36301,8 +36373,8 @@ var require_dist_cjs56 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); - var import_client3 = (init_client(), __toCommonJS(client_exports)); - var import_token_providers = require_dist_cjs55(); + var import_client2 = (init_client(), __toCommonJS(client_exports)); + var import_token_providers = require_dist_cjs56(); var import_property_provider2 = require_dist_cjs16(); var import_shared_ini_file_loader = require_dist_cjs40(); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; @@ -36327,8 +36399,8 @@ var require_dist_cjs56 = __commonJS({ accessToken: _token.token, expiresAt: new Date(_token.expiration).toISOString() }; - } catch (e3) { - throw new import_property_provider2.CredentialsProviderError(e3.message, { + } catch (e) { + throw new import_property_provider2.CredentialsProviderError(e.message, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); @@ -36336,7 +36408,7 @@ var require_dist_cjs56 = __commonJS({ } else { try { token = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoStartUrl); - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger @@ -36353,8 +36425,8 @@ var require_dist_cjs56 = __commonJS({ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports)); const sso = ssoClient || new SSOClient2( Object.assign({}, clientConfig ?? {}, { - logger: clientConfig?.logger ?? parentClientConfig?.logger, - region: clientConfig?.region ?? ssoRegion + logger: (clientConfig == null ? void 0 : clientConfig.logger) ?? (parentClientConfig == null ? void 0 : parentClientConfig.logger), + region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion }) ); let ssoResp; @@ -36366,8 +36438,8 @@ var require_dist_cjs56 = __commonJS({ accessToken }) ); - } catch (e3) { - throw new import_property_provider2.CredentialsProviderError(e3, { + } catch (e) { + throw new import_property_provider2.CredentialsProviderError(e, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); @@ -36390,9 +36462,9 @@ var require_dist_cjs56 = __commonJS({ ...accountId && { accountId } }; if (ssoSession) { - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s"); } else { - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u"); } return credentials; }, "resolveSSOCredentials"); @@ -36409,13 +36481,12 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } return profile; }, "validateSsoProfile"); - var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => { - init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO"); + var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; const { ssoClient } = init; - const profileName = (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }); + const profileName = (0, import_shared_ini_file_loader.getProfileName)(init); if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); const profile = profiles[profileName]; @@ -36427,7 +36498,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht logger: init.logger }); } - if (profile?.sso_session) { + if (profile == null ? void 0 : profile.sso_session) { const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init); const session = ssoSessions[profile.sso_session]; const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; @@ -36483,73 +36554,85 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js -function createAwsAuthSigv4HttpAuthOption2(authParameters) { - return { - schemeId: "aws.auth#sigv4", - signingProperties: { - name: "sts", - region: authParameters.region - }, - propertiesExtractor: (config, context) => ({ - signingProperties: { - config, - context - } - }) - }; -} -function createSmithyApiNoAuthHttpAuthOption2(authParameters) { - return { - schemeId: "smithy.api#noAuth" - }; -} -var import_util_middleware4, defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeProvider, resolveStsAuthConfig, resolveHttpAuthSchemeConfig2; -var init_httpAuthSchemeProvider2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js"() { - init_dist_es2(); - import_util_middleware4 = __toESM(require_dist_cjs4()); - init_STSClient(); - defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +var require_httpAuthSchemeProvider4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var util_middleware_1 = require_dist_cjs4(); + var STSClient_1 = require_STSClient(); + var defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => { return { - operation: (0, import_util_middleware4.getSmithyContext)(context).operation, - region: await (0, import_util_middleware4.normalizeProvider)(config.region)() || (() => { + 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`"); })() }; }; - defaultSTSHttpAuthSchemeProvider = (authParameters) => { + exports2.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" + }; + } + var defaultSTSHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { + case "AssumeRoleWithSAML": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } case "AssumeRoleWithWebIdentity": { - options.push(createSmithyApiNoAuthHttpAuthOption2(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } default: { - options.push(createAwsAuthSigv4HttpAuthOption2(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; - resolveStsAuthConfig = (input) => ({ + exports2.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider; + var resolveStsAuthConfig = (input) => ({ ...input, - stsClientCtor: STSClient + stsClientCtor: STSClient_1.STSClient }); - resolveHttpAuthSchemeConfig2 = (config) => { - const config_0 = resolveStsAuthConfig(config); - const config_1 = resolveAwsSdkSigV4Config(config_0); + exports2.resolveStsAuthConfig = resolveStsAuthConfig; + var resolveHttpAuthSchemeConfig = (config) => { + const config_0 = (0, exports2.resolveStsAuthConfig)(config); + const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0); return { ...config_1 }; }; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js -var resolveClientEndpointParameters2, commonParams2; -var init_EndpointParameters2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js"() { - resolveClientEndpointParameters2 = (options) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +var require_EndpointParameters = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.commonParams = exports2.resolveClientEndpointParameters = void 0; + var resolveClientEndpointParameters = (options) => { return { ...options, useDualstackEndpoint: options.useDualstackEndpoint ?? false, @@ -36558,7 +36641,8 @@ var init_EndpointParameters2 = __esm({ defaultSigningName: "sts" }; }; - commonParams2 = { + exports2.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports2.commonParams = { UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, @@ -36568,320 +36652,305 @@ var init_EndpointParameters2 = __esm({ } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js -var F, G, H, I, J, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2, q2, r2, s2, t2, u2, v2, w2, x2, y, z, A, B, C, D, E, _data2, ruleSet2; -var init_ruleset2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js"() { - F = "required"; - G = "type"; - H = "fn"; - I = "argv"; - J = "ref"; - a2 = false; - b2 = true; - c2 = "booleanEquals"; - d2 = "stringEquals"; - e2 = "sigv4"; - f2 = "sts"; - g2 = "us-east-1"; - h2 = "endpoint"; - i2 = "https://sts.{Region}.{PartitionResult#dnsSuffix}"; - j2 = "tree"; - k2 = "error"; - l2 = "getAttr"; - m2 = { [F]: false, [G]: "String" }; - n2 = { [F]: true, default: false, [G]: "Boolean" }; - o2 = { [J]: "Endpoint" }; - p2 = { [H]: "isSet", [I]: [{ [J]: "Region" }] }; - q2 = { [J]: "Region" }; - r2 = { [H]: "aws.partition", [I]: [q2], assign: "PartitionResult" }; - s2 = { [J]: "UseFIPS" }; - t2 = { [J]: "UseDualStack" }; - u2 = { - url: "https://sts.amazonaws.com", - properties: { authSchemes: [{ name: e2, signingName: f2, signingRegion: g2 }] }, - headers: {} - }; - v2 = {}; - w2 = { conditions: [{ [H]: d2, [I]: [q2, "aws-global"] }], [h2]: u2, [G]: h2 }; - x2 = { [H]: c2, [I]: [s2, true] }; - y = { [H]: c2, [I]: [t2, true] }; - z = { [H]: l2, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }; - A = { [J]: "PartitionResult" }; - B = { [H]: c2, [I]: [true, { [H]: l2, [I]: [A, "supportsDualStack"] }] }; - C = [{ [H]: "isSet", [I]: [o2] }]; - D = [x2]; - E = [y]; - _data2 = { - version: "1.0", - parameters: { Region: m2, UseDualStack: n2, UseFIPS: n2, Endpoint: m2, UseGlobalEndpoint: n2 }, - rules: [ - { - conditions: [ - { [H]: c2, [I]: [{ [J]: "UseGlobalEndpoint" }, b2] }, - { [H]: "not", [I]: C }, - p2, - r2, - { [H]: c2, [I]: [s2, a2] }, - { [H]: c2, [I]: [t2, a2] } - ], - rules: [ - { conditions: [{ [H]: d2, [I]: [q2, "ap-northeast-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-south-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-2"] }], endpoint: u2, [G]: h2 }, - w2, - { conditions: [{ [H]: d2, [I]: [q2, "ca-central-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-central-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-north-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-2"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-3"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "sa-east-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, g2] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-east-2"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-west-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-west-2"] }], endpoint: u2, [G]: h2 }, - { - endpoint: { - url: i2, - properties: { authSchemes: [{ name: e2, signingName: f2, signingRegion: "{Region}" }] }, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { - conditions: C, - rules: [ - { conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k2 }, - { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k2 }, - { endpoint: { url: o2, properties: v2, headers: v2 }, [G]: h2 } - ], - [G]: j2 - }, - { - conditions: [p2], - rules: [ - { - conditions: [r2], - rules: [ - { - conditions: [x2, y], - rules: [ - { - conditions: [{ [H]: c2, [I]: [b2, z] }, B], - rules: [ - { - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k2 } - ], - [G]: j2 - }, - { - conditions: D, - rules: [ - { - conditions: [{ [H]: c2, [I]: [z, b2] }], - rules: [ - { - conditions: [{ [H]: d2, [I]: [{ [H]: l2, [I]: [A, "name"] }, "aws-us-gov"] }], - endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v2, headers: v2 }, - [G]: h2 - }, - { - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "FIPS is enabled but this partition does not support FIPS", [G]: k2 } - ], - [G]: j2 - }, - { - conditions: E, - rules: [ - { - conditions: [B], - rules: [ - { - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "DualStack is enabled but this partition does not support DualStack", [G]: k2 } - ], - [G]: j2 - }, - w2, - { endpoint: { url: i2, properties: v2, headers: v2 }, [G]: h2 } - ], - [G]: j2 - } - ], - [G]: j2 - }, - { error: "Invalid Configuration: Missing Region", [G]: k2 } - ] +// ../../node_modules/@aws-sdk/client-sts/package.json +var require_package4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) { + module2.exports = { + name: "@aws-sdk/client-sts", + description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", + version: "3.699.0", + scripts: { + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "node ../../scripts/compilation/inline client-sts", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", + test: "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" + }, + 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/client-sso-oidc": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", + tslib: "^2.6.2" + }, + devDependencies: { + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typescript: "~4.9.5" + }, + engines: { + node: ">=16.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-sts", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-sts" + } }; - ruleSet2 = _data2; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js -var import_util_endpoints3, import_util_endpoints4, cache2, defaultEndpointResolver2; -var init_endpointResolver2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js"() { - import_util_endpoints3 = __toESM(require_dist_cjs31()); - import_util_endpoints4 = __toESM(require_dist_cjs30()); - init_ruleset2(); - cache2 = new import_util_endpoints4.EndpointCache({ +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +var require_ruleset4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; + var F = "required"; + var G = "type"; + var H = "fn"; + var I = "argv"; + var J = "ref"; + var a = false; + var b = true; + var c = "booleanEquals"; + var d = "stringEquals"; + var e = "sigv4"; + var f = "sts"; + var g = "us-east-1"; + var h = "endpoint"; + var i = "https://sts.{Region}.{PartitionResult#dnsSuffix}"; + var j = "tree"; + var k = "error"; + var l = "getAttr"; + var m = { [F]: false, [G]: "String" }; + var n = { [F]: true, "default": false, [G]: "Boolean" }; + var o = { [J]: "Endpoint" }; + var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }; + var q = { [J]: "Region" }; + var r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }; + var s = { [J]: "UseFIPS" }; + var t = { [J]: "UseDualStack" }; + var u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }; + var v = {}; + var w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }; + var x = { [H]: c, [I]: [s, true] }; + var y = { [H]: c, [I]: [t, true] }; + var z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }; + var A = { [J]: "PartitionResult" }; + var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }; + var C = [{ [H]: "isSet", [I]: [o] }]; + var D = [x]; + var E = [y]; + var _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 }] }; + exports2.ruleSet = _data; + } +}); + +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +var require_endpointResolver4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; + var util_endpoints_1 = require_dist_cjs31(); + var util_endpoints_2 = require_dist_cjs30(); + var ruleset_1 = require_ruleset4(); + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"] }); - defaultEndpointResolver2 = (endpointParams, context = {}) => { - return cache2.get(endpointParams, () => (0, import_util_endpoints4.resolveEndpoint)(ruleSet2, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - import_util_endpoints4.customEndpointFunctions.aws = import_util_endpoints3.awsEndpointFunctions; + exports2.defaultEndpointResolver = defaultEndpointResolver; + util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js -var import_smithy_client14, import_url_parser2, import_util_base642, import_util_utf82, getRuntimeConfig3; -var init_runtimeConfig_shared2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client14 = __toESM(require_dist_cjs19()); - import_url_parser2 = __toESM(require_dist_cjs43()); - import_util_base642 = __toESM(require_dist_cjs9()); - import_util_utf82 = __toESM(require_dist_cjs8()); - init_httpAuthSchemeProvider2(); - init_endpointResolver2(); - getRuntimeConfig3 = (config) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var smithy_client_1 = require_dist_cjs19(); + var url_parser_1 = require_dist_cjs43(); + var util_base64_1 = require_dist_cjs9(); + var util_utf8_1 = require_dist_cjs8(); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); + var endpointResolver_1 = require_endpointResolver4(); + var getRuntimeConfig = (config) => { return { apiVersion: "2011-06-15", - base64Decoder: config?.base64Decoder ?? import_util_base642.fromBase64, - base64Encoder: config?.base64Encoder ?? import_util_base642.toBase64, + base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, + base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver2, + endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, extensions: config?.extensions ?? [], - httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider, + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), - signer: new AwsSdkSigV4Signer() + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - logger: config?.logger ?? new import_smithy_client14.NoOpLogger(), + logger: config?.logger ?? new smithy_client_1.NoOpLogger(), serviceId: config?.serviceId ?? "STS", - urlParser: config?.urlParser ?? import_url_parser2.parseUrl, - utf8Decoder: config?.utf8Decoder ?? import_util_utf82.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? import_util_utf82.toUtf8 + urlParser: config?.urlParser ?? url_parser_1.parseUrl, + utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, + utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js -var import_util_user_agent_node2, import_config_resolver3, import_hash_node2, import_middleware_retry3, import_node_config_provider2, import_node_http_handler2, import_util_body_length_node2, import_util_retry2, import_smithy_client15, import_util_defaults_mode_node2, import_smithy_client16, getRuntimeConfig4; -var init_runtimeConfig2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js"() { - init_package(); - init_dist_es2(); - import_util_user_agent_node2 = __toESM(require_dist_cjs49()); - import_config_resolver3 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_hash_node2 = __toESM(require_dist_cjs50()); - import_middleware_retry3 = __toESM(require_dist_cjs38()); - import_node_config_provider2 = __toESM(require_dist_cjs41()); - import_node_http_handler2 = __toESM(require_dist_cjs12()); - import_util_body_length_node2 = __toESM(require_dist_cjs51()); - import_util_retry2 = __toESM(require_dist_cjs37()); - init_runtimeConfig_shared2(); - import_smithy_client15 = __toESM(require_dist_cjs19()); - import_util_defaults_mode_node2 = __toESM(require_dist_cjs52()); - import_smithy_client16 = __toESM(require_dist_cjs19()); - getRuntimeConfig4 = (config) => { - (0, import_smithy_client16.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, import_util_defaults_mode_node2.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(import_smithy_client15.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig3(config); - emitWarningIfUnsupportedVersion(process.version); - const profileConfig = { profile: config?.profile }; +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var package_json_1 = tslib_1.__importDefault(require_package4()); + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var credential_provider_node_1 = require_dist_cjs62(); + var util_user_agent_node_1 = require_dist_cjs49(); + var config_resolver_1 = require_dist_cjs33(); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var hash_node_1 = require_dist_cjs50(); + var middleware_retry_1 = require_dist_cjs38(); + var node_config_provider_1 = require_dist_cjs41(); + var node_http_handler_1 = require_dist_cjs12(); + var util_body_length_node_1 = require_dist_cjs51(); + var util_retry_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs52(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + (0, smithy_client_2.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); return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node2.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node2.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, + 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 AwsSdkSigV4Signer() + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await (0, credential_provider_node_1.defaultProvider)(idProps?.__config || {})()), + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider2.loadConfig)(import_middleware_retry3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), - region: config?.region ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver3.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestHandler: import_node_http_handler2.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: config?.retryMode ?? (0, import_node_config_provider2.loadConfig)({ - ...import_middleware_retry3.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || import_util_retry2.DEFAULT_RETRY_MODE - }, config), - sha256: config?.sha256 ?? import_hash_node2.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? import_node_http_handler2.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider2.loadConfig)(import_util_user_agent_node2.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + 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 + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js -var getHttpAuthExtensionConfiguration2, resolveHttpAuthRuntimeConfig2; -var init_httpAuthExtensionConfiguration2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js"() { - getHttpAuthExtensionConfiguration2 = (runtimeConfig) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +var require_httpAuthExtensionConfiguration = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0; + var getHttpAuthExtensionConfiguration = (runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -36911,230 +36980,357 @@ var init_httpAuthExtensionConfiguration2 = __esm({ } }; }; - resolveHttpAuthRuntimeConfig2 = (config) => { + exports2.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration; + var resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }; + exports2.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js -var import_region_config_resolver2, import_protocol_http9, import_smithy_client17, asPartial2, resolveRuntimeExtensions2; -var init_runtimeExtensions2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() { - import_region_config_resolver2 = __toESM(require_dist_cjs53()); - import_protocol_http9 = __toESM(require_dist_cjs2()); - import_smithy_client17 = __toESM(require_dist_cjs19()); - init_httpAuthExtensionConfiguration2(); - asPartial2 = (t3) => t3; - resolveRuntimeExtensions2 = (runtimeConfig, extensions) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +var require_runtimeExtensions = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRuntimeExtensions = void 0; + var region_config_resolver_1 = require_dist_cjs53(); + var protocol_http_1 = require_dist_cjs2(); + var smithy_client_1 = require_dist_cjs19(); + var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration(); + var asPartial = (t) => t; + var resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial2((0, import_region_config_resolver2.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial2((0, import_smithy_client17.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial2((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial2(getHttpAuthExtensionConfiguration2(runtimeConfig)) + ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver2.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client17.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig2(extensionConfiguration) + ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration) }; }; + exports2.resolveRuntimeExtensions = resolveRuntimeExtensions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js -var import_middleware_host_header2, import_middleware_logger2, import_middleware_recursion_detection2, import_middleware_user_agent2, import_config_resolver4, import_middleware_content_length2, import_middleware_endpoint3, import_middleware_retry4, import_smithy_client18, STSClient; -var init_STSClient = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js"() { - import_middleware_host_header2 = __toESM(require_dist_cjs24()); - import_middleware_logger2 = __toESM(require_dist_cjs25()); - import_middleware_recursion_detection2 = __toESM(require_dist_cjs26()); - import_middleware_user_agent2 = __toESM(require_dist_cjs32()); - import_config_resolver4 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_middleware_content_length2 = __toESM(require_dist_cjs35()); - import_middleware_endpoint3 = __toESM(require_dist_cjs44()); - import_middleware_retry4 = __toESM(require_dist_cjs38()); - import_smithy_client18 = __toESM(require_dist_cjs19()); - init_httpAuthSchemeProvider2(); - init_EndpointParameters2(); - init_runtimeConfig2(); - init_runtimeExtensions2(); - STSClient = class extends import_smithy_client18.Client { - config; +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STSClient = exports2.__Client = void 0; + var middleware_host_header_1 = require_dist_cjs24(); + var middleware_logger_1 = require_dist_cjs25(); + var middleware_recursion_detection_1 = require_dist_cjs26(); + var middleware_user_agent_1 = require_dist_cjs32(); + var config_resolver_1 = require_dist_cjs33(); + var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var middleware_content_length_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs44(); + var middleware_retry_1 = require_dist_cjs38(); + var smithy_client_1 = require_dist_cjs19(); + Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { + return smithy_client_1.Client; + } }); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); + var EndpointParameters_1 = require_EndpointParameters(); + var runtimeConfig_1 = require_runtimeConfig3(); + var runtimeExtensions_1 = require_runtimeExtensions(); + var STSClient2 = class extends smithy_client_1.Client { constructor(...[configuration2]) { - const _config_0 = getRuntimeConfig4(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters2(_config_0); - const _config_2 = (0, import_middleware_user_agent2.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry4.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver4.resolveRegionConfig)(_config_3); - const _config_5 = (0, import_middleware_host_header2.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, import_middleware_endpoint3.resolveEndpointConfig)(_config_5); - const _config_7 = resolveHttpAuthSchemeConfig2(_config_6); - const _config_8 = resolveRuntimeExtensions2(_config_7, configuration2?.extensions || []); + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration2 || {}); + 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, configuration2?.extensions || []); super(_config_8); this.config = _config_8; - this.middlewareStack.use((0, import_middleware_user_agent2.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry4.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length2.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header2.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger2.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection2.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { - httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + 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(getHttpSigningPlugin(this.config)); + this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config)); } destroy() { super.destroy(); } }; + exports2.STSClient = STSClient2; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js -var import_smithy_client19, STSServiceException; -var init_STSServiceException = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"() { - import_smithy_client19 = __toESM(require_dist_cjs19()); - STSServiceException = class _STSServiceException extends import_smithy_client19.ServiceException { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs58 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) { + "use strict"; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AssumeRoleCommand: () => AssumeRoleCommand, + AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog, + AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand, + AssumeRoleWithSAMLRequestFilterSensitiveLog: () => AssumeRoleWithSAMLRequestFilterSensitiveLog, + AssumeRoleWithSAMLResponseFilterSensitiveLog: () => AssumeRoleWithSAMLResponseFilterSensitiveLog, + AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand, + AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog, + AssumeRootCommand: () => AssumeRootCommand, + AssumeRootResponseFilterSensitiveLog: () => AssumeRootResponseFilterSensitiveLog, + ClientInputEndpointParameters: () => import_EndpointParameters10.ClientInputEndpointParameters, + CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog, + DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand, + ExpiredTokenException: () => ExpiredTokenException, + GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand, + GetCallerIdentityCommand: () => GetCallerIdentityCommand, + GetFederationTokenCommand: () => GetFederationTokenCommand, + GetFederationTokenResponseFilterSensitiveLog: () => GetFederationTokenResponseFilterSensitiveLog, + GetSessionTokenCommand: () => GetSessionTokenCommand, + GetSessionTokenResponseFilterSensitiveLog: () => GetSessionTokenResponseFilterSensitiveLog, + IDPCommunicationErrorException: () => IDPCommunicationErrorException, + IDPRejectedClaimException: () => IDPRejectedClaimException, + InvalidAuthorizationMessageException: () => InvalidAuthorizationMessageException, + InvalidIdentityTokenException: () => InvalidIdentityTokenException, + MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, + PackedPolicyTooLargeException: () => PackedPolicyTooLargeException, + RegionDisabledException: () => RegionDisabledException, + STS: () => STS, + STSServiceException: () => STSServiceException, + decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider, + getDefaultRoleAssumer: () => getDefaultRoleAssumer2, + getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2 + }); + module2.exports = __toCommonJS2(src_exports); + __reExport(src_exports, require_STSClient(), module2.exports); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_serde2 = require_dist_cjs5(); + var import_EndpointParameters = require_EndpointParameters(); + var import_smithy_client4 = require_dist_cjs19(); + var _STSServiceException = class _STSServiceException2 extends import_smithy_client4.ServiceException { + /** + * @internal + */ constructor(options) { super(options); - Object.setPrototypeOf(this, _STSServiceException.prototype); + Object.setPrototypeOf(this, _STSServiceException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js -var import_smithy_client20, CredentialsFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, IDPCommunicationErrorException; -var init_models_02 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js"() { - import_smithy_client20 = __toESM(require_dist_cjs19()); - init_STSServiceException(); - CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client20.SENSITIVE_STRING } - }); - AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } - }); - ExpiredTokenException2 = class _ExpiredTokenException extends STSServiceException { - name = "ExpiredTokenException"; - $fault = "client"; + __name(_STSServiceException, "STSServiceException"); + var STSServiceException = _STSServiceException; + var _ExpiredTokenException = class _ExpiredTokenException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ExpiredTokenException2.prototype); } }; - MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException { - name = "MalformedPolicyDocumentException"; - $fault = "client"; + __name(_ExpiredTokenException, "ExpiredTokenException"); + var ExpiredTokenException = _ExpiredTokenException; + var _MalformedPolicyDocumentException = class _MalformedPolicyDocumentException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "MalformedPolicyDocumentException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _MalformedPolicyDocumentException2.prototype); } }; - PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException { - name = "PackedPolicyTooLargeException"; - $fault = "client"; + __name(_MalformedPolicyDocumentException, "MalformedPolicyDocumentException"); + var MalformedPolicyDocumentException = _MalformedPolicyDocumentException; + var _PackedPolicyTooLargeException = class _PackedPolicyTooLargeException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "PackedPolicyTooLargeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _PackedPolicyTooLargeException2.prototype); } }; - RegionDisabledException = class _RegionDisabledException extends STSServiceException { - name = "RegionDisabledException"; - $fault = "client"; + __name(_PackedPolicyTooLargeException, "PackedPolicyTooLargeException"); + var PackedPolicyTooLargeException = _PackedPolicyTooLargeException; + var _RegionDisabledException = class _RegionDisabledException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "RegionDisabledException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _RegionDisabledException.prototype); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _RegionDisabledException2.prototype); } }; - IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException { - name = "IDPRejectedClaimException"; - $fault = "client"; + __name(_RegionDisabledException, "RegionDisabledException"); + var RegionDisabledException = _RegionDisabledException; + var _IDPRejectedClaimException = class _IDPRejectedClaimException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "IDPRejectedClaimException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _IDPRejectedClaimException2.prototype); } }; - InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException { - name = "InvalidIdentityTokenException"; - $fault = "client"; + __name(_IDPRejectedClaimException, "IDPRejectedClaimException"); + var IDPRejectedClaimException = _IDPRejectedClaimException; + var _InvalidIdentityTokenException = class _InvalidIdentityTokenException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidIdentityTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidIdentityTokenException2.prototype); } }; - AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client20.SENSITIVE_STRING } - }); - AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } - }); - IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException { - name = "IDPCommunicationErrorException"; - $fault = "client"; + __name(_InvalidIdentityTokenException, "InvalidIdentityTokenException"); + var InvalidIdentityTokenException = _InvalidIdentityTokenException; + var _IDPCommunicationErrorException = class _IDPCommunicationErrorException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "IDPCommunicationErrorException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _IDPCommunicationErrorException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js -var import_protocol_http10, import_smithy_client21, se_AssumeRoleCommand, se_AssumeRoleWithWebIdentityCommand, de_AssumeRoleCommand, de_AssumeRoleWithWebIdentityCommand, de_CommandError2, de_ExpiredTokenExceptionRes2, de_IDPCommunicationErrorExceptionRes, de_IDPRejectedClaimExceptionRes, de_InvalidIdentityTokenExceptionRes, de_MalformedPolicyDocumentExceptionRes, de_PackedPolicyTooLargeExceptionRes, de_RegionDisabledExceptionRes, se_AssumeRoleRequest, se_AssumeRoleWithWebIdentityRequest, se_policyDescriptorListType, se_PolicyDescriptorType, se_ProvidedContext, se_ProvidedContextsListType, se_Tag, se_tagKeyListType, se_tagListType, de_AssumedRoleUser, de_AssumeRoleResponse, de_AssumeRoleWithWebIdentityResponse, de_Credentials, de_ExpiredTokenException, de_IDPCommunicationErrorException, de_IDPRejectedClaimException, de_InvalidIdentityTokenException, de_MalformedPolicyDocumentException, de_PackedPolicyTooLargeException, de_RegionDisabledException, deserializeMetadata2, throwDefaultError2, buildHttpRpcRequest, SHARED_HEADERS, _, _A, _AKI, _AR, _ARI, _ARU, _ARWWI, _Ar, _Au, _C, _CA, _DS, _E, _EI, _K, _P, _PA, _PAr, _PC, _PI, _PPS, _Pr, _RA, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _T, _TC, _TTK, _V, _Va, _WIT, _a, _m, buildFormUrlencodedString, loadQueryErrorCode; -var init_Aws_query = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js"() { - init_dist_es2(); - import_protocol_http10 = __toESM(require_dist_cjs2()); - import_smithy_client21 = __toESM(require_dist_cjs19()); - init_models_02(); - init_STSServiceException(); - se_AssumeRoleCommand = async (input, context) => { + __name(_IDPCommunicationErrorException, "IDPCommunicationErrorException"); + var IDPCommunicationErrorException = _IDPCommunicationErrorException; + var _InvalidAuthorizationMessageException = class _InvalidAuthorizationMessageException2 extends STSServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidAuthorizationMessageException2.prototype); + } + }; + __name(_InvalidAuthorizationMessageException, "InvalidAuthorizationMessageException"); + var InvalidAuthorizationMessageException = _InvalidAuthorizationMessageException; + var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client4.SENSITIVE_STRING } + }), "CredentialsFilterSensitiveLog"); + var AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleResponseFilterSensitiveLog"); + var AssumeRoleWithSAMLRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.SAMLAssertion && { SAMLAssertion: import_smithy_client4.SENSITIVE_STRING } + }), "AssumeRoleWithSAMLRequestFilterSensitiveLog"); + var AssumeRoleWithSAMLResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleWithSAMLResponseFilterSensitiveLog"); + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client4.SENSITIVE_STRING } + }), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog"); + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog"); + var AssumeRootResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRootResponseFilterSensitiveLog"); + var GetFederationTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "GetFederationTokenResponseFilterSensitiveLog"); + var GetSessionTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "GetSessionTokenResponseFilterSensitiveLog"); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_protocol_http8 = require_dist_cjs2(); + var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; body = buildFormUrlencodedString({ @@ -37143,8 +37339,18 @@ var init_Aws_query = __esm({ [_V]: _ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - se_AssumeRoleWithWebIdentityCommand = async (input, context) => { + }, "se_AssumeRoleCommand"); + var se_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AssumeRoleWithSAMLRequest(input, context), + [_A]: _ARWSAML, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_AssumeRoleWithSAMLCommand"); + var se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; body = buildFormUrlencodedString({ @@ -37153,43 +37359,194 @@ var init_Aws_query = __esm({ [_V]: _ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - de_AssumeRoleCommand = async (output, context) => { + }, "se_AssumeRoleWithWebIdentityCommand"); + var se_AssumeRootCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AssumeRootRequest(input, context), + [_A]: _ARs, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_AssumeRootCommand"); + var se_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DecodeAuthorizationMessageRequest(input, context), + [_A]: _DAM, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_DecodeAuthorizationMessageCommand"); + var se_GetAccessKeyInfoCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetAccessKeyInfoRequest(input, context), + [_A]: _GAKI, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetAccessKeyInfoCommand"); + var se_GetCallerIdentityCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetCallerIdentityRequest(input, context), + [_A]: _GCI, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetCallerIdentityCommand"); + var se_GetFederationTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetFederationTokenRequest(input, context), + [_A]: _GFT, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetFederationTokenCommand"); + var se_GetSessionTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetSessionTokenRequest(input, context), + [_A]: _GST, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetSessionTokenCommand"); + var de_AssumeRoleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { - return de_CommandError2(output, context); + return de_CommandError(output, context); } - const data = await parseXmlBody(output.body, context); + const data = await (0, import_core3.parseXmlBody)(output.body, context); let contents = {}; contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); const response = { - $metadata: deserializeMetadata2(output), + $metadata: deserializeMetadata(output), ...contents }; return response; - }; - de_AssumeRoleWithWebIdentityCommand = async (output, context) => { + }, "de_AssumeRoleCommand"); + var de_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { - return de_CommandError2(output, context); + return de_CommandError(output, context); } - const data = await parseXmlBody(output.body, context); + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_AssumeRoleWithSAMLCommand"); + var de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); let contents = {}; contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); const response = { - $metadata: deserializeMetadata2(output), + $metadata: deserializeMetadata(output), ...contents }; return response; - }; - de_CommandError2 = async (output, context) => { + }, "de_AssumeRoleWithWebIdentityCommand"); + var de_AssumeRootCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_AssumeRootResponse(data.AssumeRootResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_AssumeRootCommand"); + var de_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_DecodeAuthorizationMessageCommand"); + var de_GetAccessKeyInfoCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetAccessKeyInfoCommand"); + var de_GetCallerIdentityCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetCallerIdentityCommand"); + var de_GetFederationTokenCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetFederationTokenCommand"); + var de_GetSessionTokenCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetSessionTokenCommand"); + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await parseXmlErrorBody(output.body, context) + body: await (0, import_core3.parseXmlErrorBody)(output.body, context) }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { case "ExpiredTokenException": case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes2(parsedOutput, context); + throw await de_ExpiredTokenExceptionRes(parsedOutput, context); case "MalformedPolicyDocument": case "com.amazonaws.sts#MalformedPolicyDocumentException": throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); @@ -37199,88 +37556,101 @@ var init_Aws_query = __esm({ case "RegionDisabledException": case "com.amazonaws.sts#RegionDisabledException": throw await de_RegionDisabledExceptionRes(parsedOutput, context); - case "IDPCommunicationError": - case "com.amazonaws.sts#IDPCommunicationErrorException": - throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); case "IDPRejectedClaim": case "com.amazonaws.sts#IDPRejectedClaimException": throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); case "InvalidIdentityToken": case "com.amazonaws.sts#InvalidIdentityTokenException": throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); + case "IDPCommunicationError": + case "com.amazonaws.sts#IDPCommunicationErrorException": + throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); + case "InvalidAuthorizationMessageException": + case "com.amazonaws.sts#InvalidAuthorizationMessageException": + throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError2({ + return throwDefaultError({ output, parsedBody: parsedBody.Error, errorCode }); } - }; - de_ExpiredTokenExceptionRes2 = async (parsedOutput, context) => { + }, "de_CommandError"); + var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new ExpiredTokenException2({ - $metadata: deserializeMetadata2(parsedOutput), + const exception = new ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_ExpiredTokenExceptionRes"); + var de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_IDPCommunicationErrorException(body.Error, context); const exception = new IDPCommunicationErrorException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_IDPCommunicationErrorExceptionRes"); + var de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_IDPRejectedClaimException(body.Error, context); const exception = new IDPRejectedClaimException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_IDPRejectedClaimExceptionRes"); + var de_InvalidAuthorizationMessageExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); + const exception = new InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_InvalidAuthorizationMessageExceptionRes"); + var de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_InvalidIdentityTokenException(body.Error, context); const exception = new InvalidIdentityTokenException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_InvalidIdentityTokenExceptionRes"); + var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_MalformedPolicyDocumentException(body.Error, context); const exception = new MalformedPolicyDocumentException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_MalformedPolicyDocumentExceptionRes"); + var de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_PackedPolicyTooLargeException(body.Error, context); const exception = new PackedPolicyTooLargeException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_RegionDisabledExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_PackedPolicyTooLargeExceptionRes"); + var de_RegionDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_RegionDisabledException(body.Error, context); const exception = new RegionDisabledException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - se_AssumeRoleRequest = (input, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_RegionDisabledExceptionRes"); + var se_AssumeRoleRequest = /* @__PURE__ */ __name((input, context) => { + var _a2, _b, _c, _d; const entries = {}; if (input[_RA] != null) { entries[_RA] = input[_RA]; @@ -37290,7 +37660,7 @@ var init_Aws_query = __esm({ } if (input[_PA] != null) { const memberEntries = se_policyDescriptorListType(input[_PA], context); - if (input[_PA]?.length === 0) { + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37306,7 +37676,7 @@ var init_Aws_query = __esm({ } if (input[_T] != null) { const memberEntries = se_tagListType(input[_T], context); - if (input[_T]?.length === 0) { + if (((_b = input[_T]) == null ? void 0 : _b.length) === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37316,7 +37686,7 @@ var init_Aws_query = __esm({ } if (input[_TTK] != null) { const memberEntries = se_tagKeyListType(input[_TTK], context); - if (input[_TTK]?.length === 0) { + if (((_c = input[_TTK]) == null ? void 0 : _c.length) === 0) { entries.TransitiveTagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37338,7 +37708,7 @@ var init_Aws_query = __esm({ } if (input[_PC] != null) { const memberEntries = se_ProvidedContextsListType(input[_PC], context); - if (input[_PC]?.length === 0) { + if (((_d = input[_PC]) == null ? void 0 : _d.length) === 0) { entries.ProvidedContexts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37347,8 +37717,39 @@ var init_Aws_query = __esm({ }); } return entries; - }; - se_AssumeRoleWithWebIdentityRequest = (input, context) => { + }, "se_AssumeRoleRequest"); + var se_AssumeRoleWithSAMLRequest = /* @__PURE__ */ __name((input, context) => { + var _a2; + const entries = {}; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; + } + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; + } + if (input[_SAMLA] != null) { + entries[_SAMLA] = input[_SAMLA]; + } + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { + entries.PolicyArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input[_P] != null) { + entries[_P] = input[_P]; + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + return entries; + }, "se_AssumeRoleWithSAMLRequest"); + var se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ __name((input, context) => { + var _a2; const entries = {}; if (input[_RA] != null) { entries[_RA] = input[_RA]; @@ -37364,7 +37765,7 @@ var init_Aws_query = __esm({ } if (input[_PA] != null) { const memberEntries = se_policyDescriptorListType(input[_PA], context); - if (input[_PA]?.length === 0) { + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37379,8 +37780,90 @@ var init_Aws_query = __esm({ entries[_DS] = input[_DS]; } return entries; - }; - se_policyDescriptorListType = (input, context) => { + }, "se_AssumeRoleWithWebIdentityRequest"); + var se_AssumeRootRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; + } + if (input[_TPA] != null) { + const memberEntries = se_PolicyDescriptorType(input[_TPA], context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TaskPolicyArn.${key}`; + entries[loc] = value; + }); + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + return entries; + }, "se_AssumeRootRequest"); + var se_DecodeAuthorizationMessageRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_EM] != null) { + entries[_EM] = input[_EM]; + } + return entries; + }, "se_DecodeAuthorizationMessageRequest"); + var se_GetAccessKeyInfoRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; + } + return entries; + }, "se_GetAccessKeyInfoRequest"); + var se_GetCallerIdentityRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + return entries; + }, "se_GetCallerIdentityRequest"); + var se_GetFederationTokenRequest = /* @__PURE__ */ __name((input, context) => { + var _a2, _b; + const entries = {}; + if (input[_N] != null) { + entries[_N] = input[_N]; + } + if (input[_P] != null) { + entries[_P] = input[_P]; + } + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { + entries.PolicyArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (((_b = input[_T]) == null ? void 0 : _b.length) === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; + }, "se_GetFederationTokenRequest"); + var se_GetSessionTokenRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + if (input[_SN] != null) { + entries[_SN] = input[_SN]; + } + if (input[_TC] != null) { + entries[_TC] = input[_TC]; + } + return entries; + }, "se_GetSessionTokenRequest"); + var se_policyDescriptorListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37394,25 +37877,25 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_PolicyDescriptorType = (input, context) => { + }, "se_policyDescriptorListType"); + var se_PolicyDescriptorType = /* @__PURE__ */ __name((input, context) => { const entries = {}; if (input[_a] != null) { entries[_a] = input[_a]; } return entries; - }; - se_ProvidedContext = (input, context) => { + }, "se_PolicyDescriptorType"); + var se_ProvidedContext = /* @__PURE__ */ __name((input, context) => { const entries = {}; - if (input[_PAr] != null) { - entries[_PAr] = input[_PAr]; + if (input[_PAro] != null) { + entries[_PAro] = input[_PAro]; } if (input[_CA] != null) { entries[_CA] = input[_CA]; } return entries; - }; - se_ProvidedContextsListType = (input, context) => { + }, "se_ProvidedContext"); + var se_ProvidedContextsListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37426,8 +37909,8 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_Tag = (input, context) => { + }, "se_ProvidedContextsListType"); + var se_Tag = /* @__PURE__ */ __name((input, context) => { const entries = {}; if (input[_K] != null) { entries[_K] = input[_K]; @@ -37436,8 +37919,8 @@ var init_Aws_query = __esm({ entries[_Va] = input[_Va]; } return entries; - }; - se_tagKeyListType = (input, context) => { + }, "se_Tag"); + var se_tagKeyListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37448,8 +37931,8 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_tagListType = (input, context) => { + }, "se_tagKeyListType"); + var se_tagListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37463,18 +37946,18 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - de_AssumedRoleUser = (output, context) => { + }, "se_tagListType"); + var de_AssumedRoleUser = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ARI] != null) { - contents[_ARI] = (0, import_smithy_client21.expectString)(output[_ARI]); + contents[_ARI] = (0, import_smithy_client4.expectString)(output[_ARI]); } if (output[_Ar] != null) { - contents[_Ar] = (0, import_smithy_client21.expectString)(output[_Ar]); + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); } return contents; - }; - de_AssumeRoleResponse = (output, context) => { + }, "de_AssumedRoleUser"); + var de_AssumeRoleResponse = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_C] != null) { contents[_C] = de_Credentials(output[_C], context); @@ -37483,111 +37966,216 @@ var init_Aws_query = __esm({ contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } if (output[_PPS] != null) { - contents[_PPS] = (0, import_smithy_client21.strictParseInt32)(output[_PPS]); + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); } if (output[_SI] != null) { - contents[_SI] = (0, import_smithy_client21.expectString)(output[_SI]); + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); } return contents; - }; - de_AssumeRoleWithWebIdentityResponse = (output, context) => { + }, "de_AssumeRoleResponse"); + var de_AssumeRoleWithSAMLResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_ARU] != null) { + contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); + } + if (output[_PPS] != null) { + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); + } + if (output[_S] != null) { + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); + } + if (output[_ST] != null) { + contents[_ST] = (0, import_smithy_client4.expectString)(output[_ST]); + } + if (output[_I] != null) { + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); + } + if (output[_Au] != null) { + contents[_Au] = (0, import_smithy_client4.expectString)(output[_Au]); + } + if (output[_NQ] != null) { + contents[_NQ] = (0, import_smithy_client4.expectString)(output[_NQ]); + } + if (output[_SI] != null) { + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); + } + return contents; + }, "de_AssumeRoleWithSAMLResponse"); + var de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_C] != null) { contents[_C] = de_Credentials(output[_C], context); } if (output[_SFWIT] != null) { - contents[_SFWIT] = (0, import_smithy_client21.expectString)(output[_SFWIT]); + contents[_SFWIT] = (0, import_smithy_client4.expectString)(output[_SFWIT]); } if (output[_ARU] != null) { contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } if (output[_PPS] != null) { - contents[_PPS] = (0, import_smithy_client21.strictParseInt32)(output[_PPS]); + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); } if (output[_Pr] != null) { - contents[_Pr] = (0, import_smithy_client21.expectString)(output[_Pr]); + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } if (output[_Au] != null) { - contents[_Au] = (0, import_smithy_client21.expectString)(output[_Au]); + contents[_Au] = (0, import_smithy_client4.expectString)(output[_Au]); } if (output[_SI] != null) { - contents[_SI] = (0, import_smithy_client21.expectString)(output[_SI]); + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); } return contents; - }; - de_Credentials = (output, context) => { + }, "de_AssumeRoleWithWebIdentityResponse"); + var de_AssumeRootResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_SI] != null) { + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); + } + return contents; + }, "de_AssumeRootResponse"); + var de_Credentials = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_AKI] != null) { - contents[_AKI] = (0, import_smithy_client21.expectString)(output[_AKI]); + contents[_AKI] = (0, import_smithy_client4.expectString)(output[_AKI]); } if (output[_SAK] != null) { - contents[_SAK] = (0, import_smithy_client21.expectString)(output[_SAK]); + contents[_SAK] = (0, import_smithy_client4.expectString)(output[_SAK]); } - if (output[_ST] != null) { - contents[_ST] = (0, import_smithy_client21.expectString)(output[_ST]); + if (output[_STe] != null) { + contents[_STe] = (0, import_smithy_client4.expectString)(output[_STe]); } if (output[_E] != null) { - contents[_E] = (0, import_smithy_client21.expectNonNull)((0, import_smithy_client21.parseRfc3339DateTimeWithOffset)(output[_E])); + contents[_E] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_E])); } return contents; - }; - de_ExpiredTokenException = (output, context) => { + }, "de_Credentials"); + var de_DecodeAuthorizationMessageResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_DM] != null) { + contents[_DM] = (0, import_smithy_client4.expectString)(output[_DM]); + } + return contents; + }, "de_DecodeAuthorizationMessageResponse"); + var de_ExpiredTokenException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_IDPCommunicationErrorException = (output, context) => { + }, "de_ExpiredTokenException"); + var de_FederatedUser = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_FUI] != null) { + contents[_FUI] = (0, import_smithy_client4.expectString)(output[_FUI]); + } + if (output[_Ar] != null) { + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); + } + return contents; + }, "de_FederatedUser"); + var de_GetAccessKeyInfoResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_Ac] != null) { + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); + } + return contents; + }, "de_GetAccessKeyInfoResponse"); + var de_GetCallerIdentityResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_UI] != null) { + contents[_UI] = (0, import_smithy_client4.expectString)(output[_UI]); + } + if (output[_Ac] != null) { + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); + } + if (output[_Ar] != null) { + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); + } + return contents; + }, "de_GetCallerIdentityResponse"); + var de_GetFederationTokenResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_FU] != null) { + contents[_FU] = de_FederatedUser(output[_FU], context); + } + if (output[_PPS] != null) { + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); + } + return contents; + }, "de_GetFederationTokenResponse"); + var de_GetSessionTokenResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + return contents; + }, "de_GetSessionTokenResponse"); + var de_IDPCommunicationErrorException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_IDPRejectedClaimException = (output, context) => { + }, "de_IDPCommunicationErrorException"); + var de_IDPRejectedClaimException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_InvalidIdentityTokenException = (output, context) => { + }, "de_IDPRejectedClaimException"); + var de_InvalidAuthorizationMessageException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_MalformedPolicyDocumentException = (output, context) => { + }, "de_InvalidAuthorizationMessageException"); + var de_InvalidIdentityTokenException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_PackedPolicyTooLargeException = (output, context) => { + }, "de_InvalidIdentityTokenException"); + var de_MalformedPolicyDocumentException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_RegionDisabledException = (output, context) => { + }, "de_MalformedPolicyDocumentException"); + var de_PackedPolicyTooLargeException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - deserializeMetadata2 = (output) => ({ + }, "de_PackedPolicyTooLargeException"); + var de_RegionDisabledException = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_m] != null) { + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); + } + return contents; + }, "de_RegionDisabledException"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] - }); - throwDefaultError2 = (0, import_smithy_client21.withBaseException)(STSServiceException); - buildHttpRpcRequest = async (context, headers, path2, resolvedHostname, body) => { + }), "deserializeMetadata"); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(STSServiceException); + var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path2, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents = { protocol, @@ -37603,195 +38191,273 @@ var init_Aws_query = __esm({ if (body !== void 0) { contents.body = body; } - return new import_protocol_http10.HttpRequest(contents); - }; - SHARED_HEADERS = { + return new import_protocol_http8.HttpRequest(contents); + }, "buildHttpRpcRequest"); + var SHARED_HEADERS = { "content-type": "application/x-www-form-urlencoded" }; - _ = "2011-06-15"; - _A = "Action"; - _AKI = "AccessKeyId"; - _AR = "AssumeRole"; - _ARI = "AssumedRoleId"; - _ARU = "AssumedRoleUser"; - _ARWWI = "AssumeRoleWithWebIdentity"; - _Ar = "Arn"; - _Au = "Audience"; - _C = "Credentials"; - _CA = "ContextAssertion"; - _DS = "DurationSeconds"; - _E = "Expiration"; - _EI = "ExternalId"; - _K = "Key"; - _P = "Policy"; - _PA = "PolicyArns"; - _PAr = "ProviderArn"; - _PC = "ProvidedContexts"; - _PI = "ProviderId"; - _PPS = "PackedPolicySize"; - _Pr = "Provider"; - _RA = "RoleArn"; - _RSN = "RoleSessionName"; - _SAK = "SecretAccessKey"; - _SFWIT = "SubjectFromWebIdentityToken"; - _SI = "SourceIdentity"; - _SN = "SerialNumber"; - _ST = "SessionToken"; - _T = "Tags"; - _TC = "TokenCode"; - _TTK = "TransitiveTagKeys"; - _V = "Version"; - _Va = "Value"; - _WIT = "WebIdentityToken"; - _a = "arn"; - _m = "message"; - buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client21.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client21.extendedEncodeURIComponent)(value)).join("&"); - loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== void 0) { + var _ = "2011-06-15"; + var _A = "Action"; + var _AKI = "AccessKeyId"; + var _AR = "AssumeRole"; + var _ARI = "AssumedRoleId"; + var _ARU = "AssumedRoleUser"; + var _ARWSAML = "AssumeRoleWithSAML"; + var _ARWWI = "AssumeRoleWithWebIdentity"; + var _ARs = "AssumeRoot"; + var _Ac = "Account"; + var _Ar = "Arn"; + var _Au = "Audience"; + var _C = "Credentials"; + var _CA = "ContextAssertion"; + var _DAM = "DecodeAuthorizationMessage"; + var _DM = "DecodedMessage"; + var _DS = "DurationSeconds"; + var _E = "Expiration"; + var _EI = "ExternalId"; + var _EM = "EncodedMessage"; + var _FU = "FederatedUser"; + var _FUI = "FederatedUserId"; + var _GAKI = "GetAccessKeyInfo"; + var _GCI = "GetCallerIdentity"; + var _GFT = "GetFederationToken"; + var _GST = "GetSessionToken"; + var _I = "Issuer"; + var _K = "Key"; + var _N = "Name"; + var _NQ = "NameQualifier"; + var _P = "Policy"; + var _PA = "PolicyArns"; + var _PAr = "PrincipalArn"; + var _PAro = "ProviderArn"; + var _PC = "ProvidedContexts"; + var _PI = "ProviderId"; + var _PPS = "PackedPolicySize"; + var _Pr = "Provider"; + var _RA = "RoleArn"; + var _RSN = "RoleSessionName"; + var _S = "Subject"; + var _SAK = "SecretAccessKey"; + var _SAMLA = "SAMLAssertion"; + var _SFWIT = "SubjectFromWebIdentityToken"; + var _SI = "SourceIdentity"; + var _SN = "SerialNumber"; + var _ST = "SubjectType"; + var _STe = "SessionToken"; + var _T = "Tags"; + var _TC = "TokenCode"; + var _TP = "TargetPrincipal"; + var _TPA = "TaskPolicyArn"; + var _TTK = "TransitiveTagKeys"; + var _UI = "UserId"; + var _V = "Version"; + var _Va = "Value"; + var _WIT = "WebIdentityToken"; + var _a = "arn"; + var _m = "message"; + var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client4.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client4.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString"); + var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => { + var _a2; + if (((_a2 = data.Error) == null ? void 0 : _a2.Code) !== void 0) { return data.Error.Code; } if (output.statusCode == 404) { return "NotFound"; } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js -var import_middleware_endpoint4, import_middleware_serde3, import_smithy_client22, AssumeRoleCommand; -var init_AssumeRoleCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js"() { - import_middleware_endpoint4 = __toESM(require_dist_cjs44()); - import_middleware_serde3 = __toESM(require_dist_cjs5()); - import_smithy_client22 = __toESM(require_dist_cjs19()); - init_EndpointParameters2(); - init_models_02(); - init_Aws_query(); - AssumeRoleCommand = class extends import_smithy_client22.Command.classBuilder().ep(commonParams2).m(function(Command, cs, config, o3) { + }, "loadQueryErrorCode"); + var _AssumeRoleCommand = class _AssumeRoleCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters.commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde3.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint4.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js -var import_middleware_endpoint5, import_middleware_serde4, import_smithy_client23, AssumeRoleWithWebIdentityCommand; -var init_AssumeRoleWithWebIdentityCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js"() { - import_middleware_endpoint5 = __toESM(require_dist_cjs44()); - import_middleware_serde4 = __toESM(require_dist_cjs5()); - import_smithy_client23 = __toESM(require_dist_cjs19()); - init_EndpointParameters2(); - init_models_02(); - init_Aws_query(); - AssumeRoleWithWebIdentityCommand = class extends import_smithy_client23.Command.classBuilder().ep(commonParams2).m(function(Command, cs, config, o3) { + __name(_AssumeRoleCommand, "AssumeRoleCommand"); + var AssumeRoleCommand = _AssumeRoleCommand; + var import_EndpointParameters2 = require_EndpointParameters(); + var _AssumeRoleWithSAMLCommand = class _AssumeRoleWithSAMLCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde4.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint5.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(se_AssumeRoleWithSAMLCommand).de(de_AssumeRoleWithSAMLCommand).build() { + }; + __name(_AssumeRoleWithSAMLCommand, "AssumeRoleWithSAMLCommand"); + var AssumeRoleWithSAMLCommand = _AssumeRoleWithSAMLCommand; + var import_EndpointParameters3 = require_EndpointParameters(); + var _AssumeRoleWithWebIdentityCommand = class _AssumeRoleWithWebIdentityCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters3.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js -var import_smithy_client24, commands2, STS; -var init_STS = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js"() { - import_smithy_client24 = __toESM(require_dist_cjs19()); - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - init_STSClient(); - commands2 = { - AssumeRoleCommand, - AssumeRoleWithWebIdentityCommand + __name(_AssumeRoleWithWebIdentityCommand, "AssumeRoleWithWebIdentityCommand"); + var AssumeRoleWithWebIdentityCommand = _AssumeRoleWithWebIdentityCommand; + var import_EndpointParameters4 = require_EndpointParameters(); + var _AssumeRootCommand = class _AssumeRootCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters4.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}).n("STSClient", "AssumeRootCommand").f(void 0, AssumeRootResponseFilterSensitiveLog).ser(se_AssumeRootCommand).de(de_AssumeRootCommand).build() { }; - STS = class extends STSClient { + __name(_AssumeRootCommand, "AssumeRootCommand"); + var AssumeRootCommand = _AssumeRootCommand; + var import_EndpointParameters5 = require_EndpointParameters(); + var _DecodeAuthorizationMessageCommand = class _DecodeAuthorizationMessageCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters5.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(void 0, void 0).ser(se_DecodeAuthorizationMessageCommand).de(de_DecodeAuthorizationMessageCommand).build() { }; - (0, import_smithy_client24.createAggregatedClient)(commands2, STS); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js -var init_commands2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js"() { - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js -var init_models2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js"() { - init_models_02(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js -var ASSUME_ROLE_DEFAULT_REGION, getAccountIdFromAssumedRoleUser, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, isH2; -var init_defaultStsRoleAssumers = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() { - init_client(); - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; - getAccountIdFromAssumedRoleUser = (assumedRoleUser) => { - if (typeof assumedRoleUser?.Arn === "string") { + __name(_DecodeAuthorizationMessageCommand, "DecodeAuthorizationMessageCommand"); + var DecodeAuthorizationMessageCommand = _DecodeAuthorizationMessageCommand; + var import_EndpointParameters6 = require_EndpointParameters(); + var _GetAccessKeyInfoCommand = class _GetAccessKeyInfoCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters6.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(void 0, void 0).ser(se_GetAccessKeyInfoCommand).de(de_GetAccessKeyInfoCommand).build() { + }; + __name(_GetAccessKeyInfoCommand, "GetAccessKeyInfoCommand"); + var GetAccessKeyInfoCommand = _GetAccessKeyInfoCommand; + var import_EndpointParameters7 = require_EndpointParameters(); + var _GetCallerIdentityCommand = class _GetCallerIdentityCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters7.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(void 0, void 0).ser(se_GetCallerIdentityCommand).de(de_GetCallerIdentityCommand).build() { + }; + __name(_GetCallerIdentityCommand, "GetCallerIdentityCommand"); + var GetCallerIdentityCommand = _GetCallerIdentityCommand; + var import_EndpointParameters8 = require_EndpointParameters(); + var _GetFederationTokenCommand = class _GetFederationTokenCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters8.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(void 0, GetFederationTokenResponseFilterSensitiveLog).ser(se_GetFederationTokenCommand).de(de_GetFederationTokenCommand).build() { + }; + __name(_GetFederationTokenCommand, "GetFederationTokenCommand"); + var GetFederationTokenCommand = _GetFederationTokenCommand; + var import_EndpointParameters9 = require_EndpointParameters(); + var _GetSessionTokenCommand = class _GetSessionTokenCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters9.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(void 0, GetSessionTokenResponseFilterSensitiveLog).ser(se_GetSessionTokenCommand).de(de_GetSessionTokenCommand).build() { + }; + __name(_GetSessionTokenCommand, "GetSessionTokenCommand"); + var GetSessionTokenCommand = _GetSessionTokenCommand; + var import_STSClient = require_STSClient(); + var commands = { + AssumeRoleCommand, + AssumeRoleWithSAMLCommand, + AssumeRoleWithWebIdentityCommand, + AssumeRootCommand, + DecodeAuthorizationMessageCommand, + GetAccessKeyInfoCommand, + GetCallerIdentityCommand, + GetFederationTokenCommand, + GetSessionTokenCommand + }; + var _STS = class _STS extends import_STSClient.STSClient { + }; + __name(_STS, "STS"); + var STS = _STS; + (0, import_smithy_client4.createAggregatedClient)(commands, STS); + var import_EndpointParameters10 = require_EndpointParameters(); + var import_client2 = (init_client(), __toCommonJS(client_exports)); + var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; + var getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => { + if (typeof (assumedRoleUser == null ? void 0 : assumedRoleUser.Arn) === "string") { const arnComponents = assumedRoleUser.Arn.split(":"); if (arnComponents.length > 4 && arnComponents[4] !== "") { return arnComponents[4]; } } return void 0; - }; - resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => { + }, "getAccountIdFromAssumedRoleUser"); + var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => { + var _a2; const region = typeof _region === "function" ? await _region() : _region; const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion; - credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`); + (_a2 = credentialProviderLogger == null ? void 0 : credentialProviderLogger.debug) == null ? void 0 : _a2.call( + credentialProviderLogger, + "@aws-sdk/client-sts::resolveRegion", + "accepting first of:", + `${region} (provider)`, + `${parentRegion} (parent client)`, + `${ASSUME_ROLE_DEFAULT_REGION} (STS default)` + ); return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION; - }; - getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + }, "resolveRegion"); + var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => { let stsClient; let closureSourceCreds; return async (sourceCreds, params) => { + var _a2, _b, _c; closureSourceCreds = sourceCreds; if (!stsClient) { - const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions; - const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); + const { + logger = (_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.logger, + region, + requestHandler = (_b = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _b.requestHandler, + credentialProviderLogger + } = stsOptions; + const resolvedRegion = await resolveRegion( + region, + (_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region, + credentialProviderLogger + ); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new stsClientCtor({ + // A hack to make sts client uses the credential in current closure. credentialDefaultProvider: () => async () => closureSourceCreds, region: resolvedRegion, requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, logger }); } - const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleCommand(params)); + if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); } - const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2); const credentials = { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, + accessKeyId: Credentials2.AccessKeyId, + secretAccessKey: Credentials2.SecretAccessKey, + sessionToken: Credentials2.SessionToken, + expiration: Credentials2.Expiration, + // TODO(credentialScope): access normally when shape is updated. + ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope }, ...accountId && { accountId } }; - setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); return credentials; }; - }; - getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + }, "getDefaultRoleAssumer"); + var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => { let stsClient; return async (params) => { + var _a2, _b, _c; if (!stsClient) { - const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions; - const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); + const { + logger = (_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.logger, + region, + requestHandler = (_b = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _b.requestHandler, + credentialProviderLogger + } = stsOptions; + const resolvedRegion = await resolveRegion( + region, + (_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region, + credentialProviderLogger + ); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new stsClientCtor({ region: resolvedRegion, @@ -37799,98 +38465,58 @@ var init_defaultStsRoleAssumers = __esm({ logger }); } - const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); } - const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2); const credentials = { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, + accessKeyId: Credentials2.AccessKeyId, + secretAccessKey: Credentials2.SecretAccessKey, + sessionToken: Credentials2.SessionToken, + expiration: Credentials2.Expiration, + // TODO(credentialScope): access normally when shape is updated. + ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope }, ...accountId && { accountId } }; if (accountId) { - setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); + (0, import_client2.setCredentialFeature)(credentials, "RESOLVED_ACCOUNT_ID", "T"); } - setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); return credentials; }; - }; - isH2 = (requestHandler) => { - return requestHandler?.metadata?.handlerProtocol === "h2"; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js -var getCustomizableStsClientCtor, getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity2, decorateDefaultCredentialProvider; -var init_defaultRoleAssumers = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js"() { - init_defaultStsRoleAssumers(); - init_STSClient(); - getCustomizableStsClientCtor = (baseCtor, customizations) => { + }, "getDefaultRoleAssumerWithWebIdentity"); + var isH2 = /* @__PURE__ */ __name((requestHandler) => { + var _a2; + return ((_a2 = requestHandler == null ? void 0 : requestHandler.metadata) == null ? void 0 : _a2.handlerProtocol) === "h2"; + }, "isH2"); + var import_STSClient2 = require_STSClient(); + var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => { + var _a2; if (!customizations) return baseCtor; else - return class CustomizableSTSClient extends baseCtor { + return _a2 = class extends baseCtor { constructor(config) { super(config); for (const customization of customizations) { this.middlewareStack.use(customization); } } - }; - }; - getDefaultRoleAssumer2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); - getDefaultRoleAssumerWithWebIdentity2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); - decorateDefaultCredentialProvider = (provider) => (input) => provider({ + }, __name(_a2, "CustomizableSTSClient"), _a2; + }, "getCustomizableStsClientCtor"); + var getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer"); + var getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity"); + var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({ roleAssumer: getDefaultRoleAssumer2(input), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input), ...input - }); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js -var sts_exports = {}; -__export(sts_exports, { - AssumeRoleCommand: () => AssumeRoleCommand, - AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog, - AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand, - AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog, - ExpiredTokenException: () => ExpiredTokenException2, - IDPCommunicationErrorException: () => IDPCommunicationErrorException, - IDPRejectedClaimException: () => IDPRejectedClaimException, - InvalidIdentityTokenException: () => InvalidIdentityTokenException, - MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, - PackedPolicyTooLargeException: () => PackedPolicyTooLargeException, - RegionDisabledException: () => RegionDisabledException, - STS: () => STS, - STSClient: () => STSClient, - STSServiceException: () => STSServiceException, - __Client: () => import_smithy_client18.Client, - decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider, - getDefaultRoleAssumer: () => getDefaultRoleAssumer2, - getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2 -}); -var init_sts = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js"() { - init_STSClient(); - init_STS(); - init_commands2(); - init_models2(); - init_defaultRoleAssumers(); - init_STSServiceException(); + }), "decorateDefaultCredentialProvider"); } }); // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs57 = __commonJS({ +var require_dist_cjs59 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -37920,8 +38546,9 @@ var require_dist_cjs57 = __commonJS({ var import_property_provider2 = require_dist_cjs16(); var import_child_process = require("child_process"); var import_util = require("util"); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data, profiles) => { + var _a; if (data.Version !== 1) { throw Error(`Profile ${profileName} credential_process did not return Version 1.`); } @@ -37936,7 +38563,7 @@ var require_dist_cjs57 = __commonJS({ } } let accountId = data.AccountId; - if (!accountId && profiles?.[profileName]?.aws_account_id) { + if (!accountId && ((_a = profiles == null ? void 0 : profiles[profileName]) == null ? void 0 : _a.aws_account_id)) { accountId = profiles[profileName].aws_account_id; } const credentials = { @@ -37947,7 +38574,7 @@ var require_dist_cjs57 = __commonJS({ ...data.CredentialScope && { credentialScope: data.CredentialScope }, ...accountId && { accountId } }; - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w"); return credentials; }, "getValidatedProcessCredentials"); var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles, logger) => { @@ -37977,16 +38604,11 @@ var require_dist_cjs57 = __commonJS({ }); } }, "resolveProcessCredentials"); - var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => { - init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess"); + var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - return resolveProcessCredentials( - (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }), - profiles, - init.logger - ); + return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init.logger); }, "fromProcess"); } }); @@ -37995,48 +38617,45 @@ var require_dist_cjs57 = __commonJS({ var require_fromWebToken = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.fromWebToken = void 0; - var fromWebToken2 = (init) => async (awsIdentityProperties) => { + var fromWebToken2 = (init) => async () => { init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; let { roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { - const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = await Promise.resolve().then(() => __importStar2((init_sts(), __toCommonJS(sts_exports)))); - roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3({ + const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs58())); + roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({ ...init.clientConfig, credentialProviderLogger: init.logger, - parentClientConfig: { - ...awsIdentityProperties?.callerClientConfig, - ...init.parentClientConfig - } + parentClientConfig: init.parentClientConfig }, init.clientPlugins); } return roleAssumerWithWebIdentity({ @@ -38092,7 +38711,7 @@ var require_fromTokenFile = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs58 = __commonJS({ +var require_dist_cjs60 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38117,7 +38736,7 @@ var require_dist_cjs58 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs59 = __commonJS({ +var require_dist_cjs61 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38154,23 +38773,23 @@ var require_dist_cjs59 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_shared_ini_file_loader = require_dist_cjs40(); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => { const sourceProvidersMap = { EcsContainer: async (options) => { const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); return async () => (0, import_property_provider2.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); }, Ec2InstanceMetadata: async (options) => { - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); return async () => fromInstanceMetadata(options)().then(setNamedProvider); }, Environment: async (options) => { - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs46())); return async () => fromEnv(options)().then(setNamedProvider); } @@ -38184,49 +38803,49 @@ var require_dist_cjs59 = __commonJS({ ); } }, "resolveCredentialSource"); - var setNamedProvider = /* @__PURE__ */ __name((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider"); + var setNamedProvider = /* @__PURE__ */ __name((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider"); var isAssumeRoleProfile = /* @__PURE__ */ __name((arg, { profile = "default", logger } = {}) => { return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })); }, "isAssumeRoleProfile"); var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { + var _a; const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; if (withSourceProfile) { - logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, ` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); } return withSourceProfile; }, "isAssumeRoleWithSourceProfile"); var isCredentialSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { + var _a; const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; if (withProviderProfile) { - logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, ` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); } return withProviderProfile; }, "isCredentialSourceProfile"); var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => { - options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); - const profileData = profiles[profileName]; - const { source_profile, region } = profileData; + var _a, _b; + (_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); + const data = profiles[profileName]; if (!options.roleAssumer) { - const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = await Promise.resolve().then(() => __toESM2((init_sts(), __toCommonJS(sts_exports)))); - options.roleAssumer = getDefaultRoleAssumer3( + const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + options.roleAssumer = getDefaultRoleAssumer( { ...options.clientConfig, credentialProviderLogger: options.logger, - parentClientConfig: { - ...options?.parentClientConfig, - region: region ?? options?.parentClientConfig?.region - } + parentClientConfig: options == null ? void 0 : options.parentClientConfig }, options.clientPlugins ); } + const { source_profile } = data; if (source_profile && source_profile in visitedProfiles) { throw new import_property_provider2.CredentialsProviderError( `Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger } ); } - options.logger?.debug( + (_b = options.logger) == null ? void 0 : _b.debug( `@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}` ); const sourceCredsProvider = source_profile ? resolveProfileData( @@ -38238,17 +38857,17 @@ var require_dist_cjs59 = __commonJS({ [source_profile]: true }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}) - ) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))(); - if (isCredentialSourceWithoutRoleArn(profileData)) { - return sourceCredsProvider.then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); + ) : (await resolveCredentialSource(data.credential_source, profileName, options.logger)(options))(); + if (isCredentialSourceWithoutRoleArn(data)) { + return sourceCredsProvider.then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); } else { const params = { - RoleArn: profileData.role_arn, - RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: profileData.external_id, - DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10) + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id, + DurationSeconds: parseInt(data.duration_seconds || "3600", 10) }; - const { mfa_serial } = profileData; + const { mfa_serial } = data; if (mfa_serial) { if (!options.mfaCodeProvider) { throw new import_property_provider2.CredentialsProviderError( @@ -38261,7 +38880,7 @@ var require_dist_cjs59 = __commonJS({ } const sourceCreds = await sourceCredsProvider; return options.roleAssumer(sourceCreds, params).then( - (creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o") + (creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o") ); } }, "resolveAssumeRoleCredentials"); @@ -38269,14 +38888,14 @@ var require_dist_cjs59 = __commonJS({ return !section.role_arn && !!section.credential_source; }, "isCredentialSourceWithoutRoleArn"); var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile"); - var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs57())).then( + var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs59())).then( ({ fromProcess }) => fromProcess({ ...options, profile - })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) + })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) ), "resolveProcessCredentials"); var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}) => { - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); return fromSSO({ profile, logger: options.logger, @@ -38284,16 +38903,17 @@ var require_dist_cjs59 = __commonJS({ clientConfig: options.clientConfig })().then((creds) => { if (profileData.sso_session) { - return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); + return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); } else { - return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); + return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); } }); }, "resolveSsoCredentials"); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile"); var resolveStaticCredentials = /* @__PURE__ */ __name(async (profile, options) => { - options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); + var _a; + (_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); const credentials = { accessKeyId: profile.aws_access_key_id, secretAccessKey: profile.aws_secret_access_key, @@ -38301,10 +38921,10 @@ var require_dist_cjs59 = __commonJS({ ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }, ...profile.aws_account_id && { accountId: profile.aws_account_id } }; - return (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); + return (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); }, "resolveStaticCredentials"); var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile"); - var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs58())).then( + var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, @@ -38312,7 +38932,7 @@ var require_dist_cjs59 = __commonJS({ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, logger: options.logger, parentClientConfig: options.parentClientConfig - })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")) + })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")) ), "resolveWebIdentityCredentials"); var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => { const data = profiles[profileName]; @@ -38339,29 +38959,17 @@ var require_dist_cjs59 = __commonJS({ { logger: options.logger } ); }, "resolveProfileData"); - var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => { - const init = { - ..._init, - parentClientConfig: { - ...callerClientConfig, - ..._init.parentClientConfig - } - }; - init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni"); + var fromIni = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - fromIni"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - return resolveProfileData( - (0, import_shared_ini_file_loader.getProfileName)({ - profile: _init.profile ?? callerClientConfig?.profile - }), - profiles, - init - ); + return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init); }, "fromIni"); } }); // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs60 = __commonJS({ +var require_dist_cjs62 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38404,9 +39012,10 @@ var require_dist_cjs60 = __commonJS({ var import_property_provider2 = require_dist_cjs16(); var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = /* @__PURE__ */ __name(async (init) => { + var _a, _b; const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { - init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); return (0, import_property_provider2.chain)(fromHttp(init), fromContainerMetadata(init)); } @@ -38415,19 +39024,20 @@ var require_dist_cjs60 = __commonJS({ throw new import_property_provider2.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger }); }; } - init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); + (_b = init.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); return fromInstanceMetadata(init); }, "remoteProvider"); var multipleCredentialSourceWarningEmitted = false; var defaultProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_provider2.memoize)( (0, import_property_provider2.chain)( async () => { + var _a, _b, _c, _d; const profile = init.profile ?? process.env[import_shared_ini_file_loader.ENV_PROFILE]; if (profile) { const envStaticCredentialsAreSet = process.env[import_credential_provider_env.ENV_KEY] && process.env[import_credential_provider_env.ENV_SECRET]; if (envStaticCredentialsAreSet) { if (!multipleCredentialSourceWarningEmitted) { - const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn; + const warnFn = ((_a = init.logger) == null ? void 0 : _a.warn) && ((_c = (_b = init.logger) == null ? void 0 : _b.constructor) == null ? void 0 : _c.name) !== "NoOpLogger" ? init.logger.warn : console.warn; warnFn( `@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: Multiple credential sources detected: @@ -38447,11 +39057,12 @@ var require_dist_cjs60 = __commonJS({ tryNextLink: true }); } - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); + (_d = init.logger) == null ? void 0 : _d.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); return (0, import_credential_provider_env.fromEnv)(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { throw new import_property_provider2.CredentialsProviderError( @@ -38459,26 +39070,30 @@ var require_dist_cjs60 = __commonJS({ { logger: init.logger } ); } - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); return fromSSO(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); - const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); + const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); return fromIni(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); - const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); + const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); return fromProcess(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); - const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); + const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); return fromTokenFile2(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); return (await remoteProvider(init))(); }, async () => { @@ -38491,13 +39106,13 @@ var require_dist_cjs60 = __commonJS({ credentialsTreatedAsExpired, credentialsWillNeedRefresh ), "defaultProvider"); - var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh"); - var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired"); + var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => (credentials == null ? void 0 : credentials.expiration) !== void 0, "credentialsWillNeedRefresh"); + var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => (credentials == null ? void 0 : credentials.expiration) !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired"); } }); // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js -var require_dist_cjs61 = __commonJS({ +var require_dist_cjs63 = __commonJS({ "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38558,7 +39173,7 @@ var require_dist_cjs61 = __commonJS({ default: false }; var import_util_arn_parser = require_dist_cjs28(); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; var DOTS_PATTERN = /\.\./; @@ -38632,7 +39247,7 @@ var require_dist_cjs61 = __commonJS({ } }, "validateAccountId"); var validateDNSHostLabel = /* @__PURE__ */ __name((label, options = { tlsCompatible: true }) => { - if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || options?.tlsCompatible && DOT_PATTERN.test(label)) { + if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || (options == null ? void 0 : options.tlsCompatible) && DOT_PATTERN.test(label)) { throw new Error(`Invalid DNS label ${label}`); } }, "validateDNSHostLabel"); @@ -38658,7 +39273,7 @@ var require_dist_cjs61 = __commonJS({ `Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}` ); } - const [outpostId, _2, accesspointName] = rest; + const [outpostId, _, accesspointName] = rest; return { outpostId, accesspointName }; } else { throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`); @@ -38677,7 +39292,7 @@ var require_dist_cjs61 = __commonJS({ name.split(".").forEach((label) => { validateDNSHostLabel(label); }); - } catch (e3) { + } catch (e) { throw new Error(`"${name}" is not a DNS compatible name.`); } }, "validateMrapAlias"); @@ -38863,7 +39478,7 @@ var require_dist_cjs61 = __commonJS({ const { Bucket: bucketName } = args.input; let replaceBucketInPath = options.bucketEndpoint; const request = args.request; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { if (options.bucketEndpoint) { request.hostname = bucketName; } else if ((0, import_util_arn_parser.validate)(bucketName)) { @@ -38962,7 +39577,7 @@ var require_dist_cjs61 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs62 = __commonJS({ +var require_dist_cjs64 = __commonJS({ "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -38995,28 +39610,25 @@ var require_dist_cjs62 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var import_crc322 = require_main4(); var import_util_hex_encoding = require_dist_cjs14(); - var Int64 = class _Int64 { + var _Int64 = class _Int642 { constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } - static { - __name(this, "Int64"); - } static fromNumber(number) { if (number > 9223372036854776e3 || number < -9223372036854776e3) { throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); } const bytes = new Uint8Array(8); - for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) { - bytes[i3] = remaining; + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; } if (number < 0) { negate(bytes); } - return new _Int64(bytes); + return new _Int642(bytes); } /** * Called implicitly by infix arithmetic operators. @@ -39033,24 +39645,23 @@ var require_dist_cjs62 = __commonJS({ return String(this.valueOf()); } }; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { - for (let i3 = 0; i3 < 8; i3++) { - bytes[i3] ^= 255; + for (let i = 0; i < 8; i++) { + bytes[i] ^= 255; } - for (let i3 = 7; i3 > -1; i3--) { - bytes[i3]++; - if (bytes[i3] !== 0) + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) break; } } __name(negate, "negate"); - var HeaderMarshaller = class { - constructor(toUtf83, fromUtf83) { - this.toUtf8 = toUtf83; - this.fromUtf8 = fromUtf83; - } - static { - __name(this, "HeaderMarshaller"); + var _HeaderMarshaller = class _HeaderMarshaller { + constructor(toUtf8, fromUtf8) { + this.toUtf8 = toUtf8; + this.fromUtf8 = fromUtf8; } format(headers) { const chunks = []; @@ -39225,6 +39836,8 @@ var require_dist_cjs62 = __commonJS({ return out; } }; + __name(_HeaderMarshaller, "HeaderMarshaller"); + var HeaderMarshaller = _HeaderMarshaller; var BOOLEAN_TAG = "boolean"; var BYTE_TAG = "byte"; var SHORT_TAG = "short"; @@ -39276,12 +39889,9 @@ var require_dist_cjs62 = __commonJS({ }; } __name(splitMessage, "splitMessage"); - var EventStreamCodec = class { - static { - __name(this, "EventStreamCodec"); - } - constructor(toUtf83, fromUtf83) { - this.headerMarshaller = new HeaderMarshaller(toUtf83, fromUtf83); + var _EventStreamCodec = class _EventStreamCodec { + constructor(toUtf8, fromUtf8) { + this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); this.messageBuffer = []; this.isEndOfStream = false; } @@ -39350,13 +39960,12 @@ var require_dist_cjs62 = __commonJS({ return this.headerMarshaller.format(rawHeaders); } }; - var MessageDecoderStream = class { + __name(_EventStreamCodec, "EventStreamCodec"); + var EventStreamCodec = _EventStreamCodec; + var _MessageDecoderStream = class _MessageDecoderStream { constructor(options) { this.options = options; } - static { - __name(this, "MessageDecoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39367,13 +39976,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var MessageEncoderStream = class { + __name(_MessageDecoderStream, "MessageDecoderStream"); + var MessageDecoderStream = _MessageDecoderStream; + var _MessageEncoderStream = class _MessageEncoderStream { constructor(options) { this.options = options; } - static { - __name(this, "MessageEncoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39387,13 +39995,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var SmithyMessageDecoderStream = class { + __name(_MessageEncoderStream, "MessageEncoderStream"); + var MessageEncoderStream = _MessageEncoderStream; + var _SmithyMessageDecoderStream = class _SmithyMessageDecoderStream { constructor(options) { this.options = options; } - static { - __name(this, "SmithyMessageDecoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39406,13 +40013,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var SmithyMessageEncoderStream = class { + __name(_SmithyMessageDecoderStream, "SmithyMessageDecoderStream"); + var SmithyMessageDecoderStream = _SmithyMessageDecoderStream; + var _SmithyMessageEncoderStream = class _SmithyMessageEncoderStream { constructor(options) { this.options = options; } - static { - __name(this, "SmithyMessageEncoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39423,11 +40029,13 @@ var require_dist_cjs62 = __commonJS({ } } }; + __name(_SmithyMessageEncoderStream, "SmithyMessageEncoderStream"); + var SmithyMessageEncoderStream = _SmithyMessageEncoderStream; } }); // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js -var require_dist_cjs63 = __commonJS({ +var require_dist_cjs65 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39453,7 +40061,7 @@ var require_dist_cjs63 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_codec = require_dist_cjs62(); + var import_eventstream_codec = require_dist_cjs64(); function getChunkedStream(source) { let currentMessageTotalLength = 0; let currentMessagePendingLength = 0; @@ -39537,7 +40145,7 @@ var require_dist_cjs63 = __commonJS({ }; } __name(getChunkedStream, "getChunkedStream"); - function getMessageUnmarshaller(deserializer, toUtf83) { + function getMessageUnmarshaller(deserializer, toUtf8) { return async function(message) { const { value: messageType } = message.headers[":message-type"]; if (messageType === "error") { @@ -39549,7 +40157,7 @@ var require_dist_cjs63 = __commonJS({ const exception = { [code]: message }; const deserializedException = await deserializer(exception); if (deserializedException.$unknown) { - const error2 = new Error(toUtf83(message.body)); + const error2 = new Error(toUtf8(message.body)); error2.name = code; throw error2; } @@ -39568,10 +40176,7 @@ var require_dist_cjs63 = __commonJS({ }; } __name(getMessageUnmarshaller, "getMessageUnmarshaller"); - var EventStreamMarshaller = class { - static { - __name(this, "EventStreamMarshaller"); - } + var _EventStreamMarshaller = class _EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(utf8Encoder, utf8Decoder); this.utfEncoder = utf8Encoder; @@ -39592,12 +40197,14 @@ var require_dist_cjs63 = __commonJS({ }); } }; + __name(_EventStreamMarshaller, "EventStreamMarshaller"); + var EventStreamMarshaller = _EventStreamMarshaller; var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider"); } }); // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js -var require_dist_cjs64 = __commonJS({ +var require_dist_cjs66 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39623,7 +40230,7 @@ var require_dist_cjs64 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_serde_universal = require_dist_cjs63(); + var import_eventstream_serde_universal = require_dist_cjs65(); var import_stream = require("stream"); async function* readabletoIterable(readStream) { let streamEnded = false; @@ -39652,10 +40259,7 @@ var require_dist_cjs64 = __commonJS({ } } __name(readabletoIterable, "readabletoIterable"); - var EventStreamMarshaller = class { - static { - __name(this, "EventStreamMarshaller"); - } + var _EventStreamMarshaller = class _EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.universalMarshaller = new import_eventstream_serde_universal.EventStreamMarshaller({ utf8Decoder, @@ -39670,12 +40274,14 @@ var require_dist_cjs64 = __commonJS({ return import_stream.Readable.from(this.universalMarshaller.serialize(input, serializer)); } }; + __name(_EventStreamMarshaller, "EventStreamMarshaller"); + var EventStreamMarshaller = _EventStreamMarshaller; var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider"); } }); // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js -var require_dist_cjs65 = __commonJS({ +var require_dist_cjs67 = __commonJS({ "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39702,25 +40308,24 @@ var require_dist_cjs65 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_fs2 = require("fs"); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var import_stream = require("stream"); - var HashCalculator = class extends import_stream.Writable { + var _HashCalculator = class _HashCalculator extends import_stream.Writable { constructor(hash, options) { super(options); this.hash = hash; } - static { - __name(this, "HashCalculator"); - } _write(chunk, encoding, callback) { try { - this.hash.update((0, import_util_utf83.toUint8Array)(chunk)); + this.hash.update((0, import_util_utf8.toUint8Array)(chunk)); } catch (err) { return callback(err); } callback(); } }; + __name(_HashCalculator, "HashCalculator"); + var HashCalculator = _HashCalculator; var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve, reject) => { if (!isReadStream(fileStream)) { reject(new Error("Unable to calculate hash for non-file streams.")); @@ -39765,7 +40370,7 @@ var require_dist_cjs65 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared2 = __commonJS({ +var require_runtimeConfig_shared4 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -39779,7 +40384,7 @@ var require_runtimeConfig_shared2 = __commonJS({ var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider(); var endpointResolver_1 = require_endpointResolver(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { return { apiVersion: "2006-03-01", base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, @@ -39812,12 +40417,12 @@ var require_runtimeConfig_shared2 = __commonJS({ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js -var require_runtimeConfig2 = __commonJS({ +var require_runtimeConfig4 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -39825,31 +40430,30 @@ var require_runtimeConfig2 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs60(); - var middleware_bucket_endpoint_1 = require_dist_cjs61(); + var credential_provider_node_1 = require_dist_cjs62(); + var middleware_bucket_endpoint_1 = require_dist_cjs63(); var middleware_flexible_checksums_1 = require_dist_cjs23(); var middleware_sdk_s3_1 = require_dist_cjs29(); var util_user_agent_node_1 = require_dist_cjs49(); var config_resolver_1 = require_dist_cjs33(); - var eventstream_serde_node_1 = require_dist_cjs64(); + var eventstream_serde_node_1 = require_dist_cjs66(); var hash_node_1 = require_dist_cjs50(); - var hash_stream_node_1 = require_dist_cjs65(); + var hash_stream_node_1 = require_dist_cjs67(); var middleware_retry_1 = require_dist_cjs38(); var node_config_provider_1 = require_dist_cjs41(); var node_http_handler_1 = require_dist_cjs12(); var util_body_length_node_1 = require_dist_cjs51(); var util_retry_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared4(); var smithy_client_1 = require_dist_cjs19(); var util_defaults_mode_node_1 = require_dist_cjs52(); var smithy_client_2 = require_dist_cjs19(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { (0, smithy_client_2.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 profileConfig = { profile: config?.profile }; return { ...clientSharedValues, ...config, @@ -39858,35 +40462,35 @@ var require_runtimeConfig2 = __commonJS({ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig), + disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS), eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider, - maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestChecksumCalculation: config?.requestChecksumCalculation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestChecksumCalculation: config?.requestChecksumCalculation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - responseChecksumValidation: config?.responseChecksumValidation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig), + responseChecksumValidation: config?.responseChecksumValidation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS), 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), + }), sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig), + sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher, - useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig), - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js -var require_dist_cjs66 = __commonJS({ +var require_dist_cjs68 = __commonJS({ "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -39982,7 +40586,7 @@ var require_dist_cjs66 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js -var require_dist_cjs67 = __commonJS({ +var require_dist_cjs69 = __commonJS({ "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40014,7 +40618,7 @@ var require_dist_cjs67 = __commonJS({ return (next) => async (args) => { const { CreateBucketConfiguration } = args.input; const region = await options.region(); - if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) { + if (!(CreateBucketConfiguration == null ? void 0 : CreateBucketConfiguration.LocationConstraint) && !(CreateBucketConfiguration == null ? void 0 : CreateBucketConfiguration.Location)) { args = { ...args, input: { @@ -40042,7 +40646,7 @@ var require_dist_cjs67 = __commonJS({ }); // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js -var require_dist_cjs68 = __commonJS({ +var require_dist_cjs70 = __commonJS({ "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40117,6 +40721,7 @@ var require_dist_cjs68 = __commonJS({ }, "exponentialBackoffWithJitter"); var randomInRange = /* @__PURE__ */ __name((min, max) => min + Math.random() * (max - min), "randomInRange"); var runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; const observedResponses = {}; const { state: state2, reason } = await acceptorChecks(client, input); if (reason) { @@ -40131,7 +40736,7 @@ var require_dist_cjs68 = __commonJS({ const waitUntil = Date.now() + maxWaitTime * 1e3; const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; while (true) { - if (abortController?.signal?.aborted || abortSignal?.aborted) { + if (((_a = abortController == null ? void 0 : abortController.signal) == null ? void 0 : _a.aborted) || (abortSignal == null ? void 0 : abortSignal.aborted)) { const message = "AbortController signal aborted."; observedResponses[message] |= 0; observedResponses[message] += 1; @@ -40155,23 +40760,24 @@ var require_dist_cjs68 = __commonJS({ } }, "runPolling"); var createMessageFromResponse = /* @__PURE__ */ __name((reason) => { - if (reason?.$responseBodyText) { + var _a; + if (reason == null ? void 0 : reason.$responseBodyText) { return `Deserialization error for body: ${reason.$responseBodyText}`; } - if (reason?.$metadata?.httpStatusCode) { + if ((_a = reason == null ? void 0 : reason.$metadata) == null ? void 0 : _a.httpStatusCode) { if (reason.$response || reason.message) { return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? "Unknown"}: ${reason.message}`; } return `${reason.$metadata.httpStatusCode}: OK`; } - return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown"); + return String((reason == null ? void 0 : reason.message) ?? JSON.stringify(reason) ?? "Unknown"); }, "createMessageFromResponse"); var validateWaiterOptions = /* @__PURE__ */ __name((options) => { - if (options.maxWaitTime <= 0) { + if (options.maxWaitTime < 1) { throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } else if (options.minDelay <= 0) { + } else if (options.minDelay < 1) { throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } else if (options.maxDelay <= 0) { + } else if (options.maxDelay < 1) { throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); } else if (options.maxWaitTime <= options.minDelay) { throw new Error( @@ -40215,7 +40821,7 @@ var require_dist_cjs68 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js -var require_dist_cjs69 = __commonJS({ +var require_dist_cjs71 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40252,7 +40858,6 @@ var require_dist_cjs69 = __commonJS({ BucketVersioningStatus: () => BucketVersioningStatus, ChecksumAlgorithm: () => ChecksumAlgorithm, ChecksumMode: () => ChecksumMode, - ChecksumType: () => ChecksumType, CompleteMultipartUploadCommand: () => CompleteMultipartUploadCommand, CompleteMultipartUploadOutputFilterSensitiveLog: () => CompleteMultipartUploadOutputFilterSensitiveLog, CompleteMultipartUploadRequestFilterSensitiveLog: () => CompleteMultipartUploadRequestFilterSensitiveLog, @@ -40465,7 +41070,7 @@ var require_dist_cjs69 = __commonJS({ UploadPartRequestFilterSensitiveLog: () => UploadPartRequestFilterSensitiveLog, WriteGetObjectResponseCommand: () => WriteGetObjectResponseCommand, WriteGetObjectResponseRequestFilterSensitiveLog: () => WriteGetObjectResponseRequestFilterSensitiveLog, - __Client: () => import_smithy_client25.Client, + __Client: () => import_smithy_client4.Client, paginateListBuckets: () => paginateListBuckets, paginateListDirectoryBuckets: () => paginateListDirectoryBuckets, paginateListObjectsV2: () => paginateListObjectsV2, @@ -40482,21 +41087,21 @@ var require_dist_cjs69 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var import_middleware_expect_continue = require_dist_cjs3(); var import_middleware_flexible_checksums = require_dist_cjs23(); - var import_middleware_host_header3 = require_dist_cjs24(); - var import_middleware_logger3 = require_dist_cjs25(); - var import_middleware_recursion_detection3 = require_dist_cjs26(); + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); var import_middleware_sdk_s32 = require_dist_cjs29(); - var import_middleware_user_agent3 = require_dist_cjs32(); - var import_config_resolver5 = require_dist_cjs33(); - var import_core32 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_eventstream_serde_config_resolver = require_dist_cjs34(); - var import_middleware_content_length3 = require_dist_cjs35(); - var import_middleware_retry5 = require_dist_cjs38(); - var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider(); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider(); var import_middleware_sdk_s3 = require_dist_cjs29(); - var import_middleware_endpoint6 = require_dist_cjs44(); - var import_middleware_serde5 = require_dist_cjs5(); - var resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => { + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_serde2 = require_dist_cjs5(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { ...options, useFipsEndpoint: options.useFipsEndpoint ?? false, @@ -40508,7 +41113,7 @@ var require_dist_cjs69 = __commonJS({ defaultSigningName: "s3" }; }, "resolveClientEndpointParameters"); - var commonParams3 = { + var commonParams = { ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" }, UseArnRegion: { type: "clientContextParams", name: "useArnRegion" }, DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" }, @@ -40520,31 +41125,25 @@ var require_dist_cjs69 = __commonJS({ Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; - var import_smithy_client25 = require_dist_cjs19(); - var S3ServiceException = class _S3ServiceException extends import_smithy_client25.ServiceException { - static { - __name(this, "S3ServiceException"); - } + var import_smithy_client4 = require_dist_cjs19(); + var _S3ServiceException = class _S3ServiceException2 extends import_smithy_client4.ServiceException { /** * @internal */ constructor(options) { super(options); - Object.setPrototypeOf(this, _S3ServiceException.prototype); + Object.setPrototypeOf(this, _S3ServiceException2.prototype); } }; + __name(_S3ServiceException, "S3ServiceException"); + var S3ServiceException = _S3ServiceException; var RequestCharged = { requester: "requester" }; var RequestPayer = { requester: "requester" }; - var NoSuchUpload = class _NoSuchUpload extends S3ServiceException { - static { - __name(this, "NoSuchUpload"); - } - name = "NoSuchUpload"; - $fault = "client"; + var _NoSuchUpload = class _NoSuchUpload2 extends S3ServiceException { /** * @internal */ @@ -40554,9 +41153,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchUpload.prototype); + this.name = "NoSuchUpload"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchUpload2.prototype); } }; + __name(_NoSuchUpload, "NoSuchUpload"); + var NoSuchUpload = _NoSuchUpload; var BucketAccelerateStatus = { Enabled: "Enabled", Suspended: "Suspended" @@ -40576,10 +41179,6 @@ var require_dist_cjs69 = __commonJS({ var OwnerOverride = { Destination: "Destination" }; - var ChecksumType = { - COMPOSITE: "COMPOSITE", - FULL_OBJECT: "FULL_OBJECT" - }; var ServerSideEncryption = { AES256: "AES256", aws_kms: "aws:kms", @@ -40597,7 +41196,6 @@ var require_dist_cjs69 = __commonJS({ var ChecksumAlgorithm = { CRC32: "CRC32", CRC32C: "CRC32C", - CRC64NVME: "CRC64NVME", SHA1: "SHA1", SHA256: "SHA256" }; @@ -40630,12 +41228,7 @@ var require_dist_cjs69 = __commonJS({ COPY: "COPY", REPLACE: "REPLACE" }; - var ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException { - static { - __name(this, "ObjectNotInActiveTierError"); - } - name = "ObjectNotInActiveTierError"; - $fault = "client"; + var _ObjectNotInActiveTierError = class _ObjectNotInActiveTierError2 extends S3ServiceException { /** * @internal */ @@ -40645,15 +41238,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype); + this.name = "ObjectNotInActiveTierError"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ObjectNotInActiveTierError2.prototype); } }; - var BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException { - static { - __name(this, "BucketAlreadyExists"); - } - name = "BucketAlreadyExists"; - $fault = "client"; + __name(_ObjectNotInActiveTierError, "ObjectNotInActiveTierError"); + var ObjectNotInActiveTierError = _ObjectNotInActiveTierError; + var _BucketAlreadyExists = class _BucketAlreadyExists2 extends S3ServiceException { /** * @internal */ @@ -40663,15 +41255,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _BucketAlreadyExists.prototype); + this.name = "BucketAlreadyExists"; + this.$fault = "client"; + Object.setPrototypeOf(this, _BucketAlreadyExists2.prototype); } }; - var BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException { - static { - __name(this, "BucketAlreadyOwnedByYou"); - } - name = "BucketAlreadyOwnedByYou"; - $fault = "client"; + __name(_BucketAlreadyExists, "BucketAlreadyExists"); + var BucketAlreadyExists = _BucketAlreadyExists; + var _BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou2 extends S3ServiceException { /** * @internal */ @@ -40681,9 +41272,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype); + this.name = "BucketAlreadyOwnedByYou"; + this.$fault = "client"; + Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou2.prototype); } }; + __name(_BucketAlreadyOwnedByYou, "BucketAlreadyOwnedByYou"); + var BucketAlreadyOwnedByYou = _BucketAlreadyOwnedByYou; var BucketCannedACL = { authenticated_read: "authenticated-read", private: "private", @@ -40740,12 +41335,7 @@ var require_dist_cjs69 = __commonJS({ ReadOnly: "ReadOnly", ReadWrite: "ReadWrite" }; - var NoSuchBucket = class _NoSuchBucket extends S3ServiceException { - static { - __name(this, "NoSuchBucket"); - } - name = "NoSuchBucket"; - $fault = "client"; + var _NoSuchBucket = class _NoSuchBucket2 extends S3ServiceException { /** * @internal */ @@ -40755,9 +41345,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchBucket.prototype); + this.name = "NoSuchBucket"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchBucket2.prototype); } }; + __name(_NoSuchBucket, "NoSuchBucket"); + var NoSuchBucket = _NoSuchBucket; var AnalyticsFilter; ((AnalyticsFilter2) => { AnalyticsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => { @@ -40940,14 +41534,7 @@ var require_dist_cjs69 = __commonJS({ var ChecksumMode = { ENABLED: "ENABLED" }; - var InvalidObjectState = class _InvalidObjectState extends S3ServiceException { - static { - __name(this, "InvalidObjectState"); - } - name = "InvalidObjectState"; - $fault = "client"; - StorageClass; - AccessTier; + var _InvalidObjectState = class _InvalidObjectState2 extends S3ServiceException { /** * @internal */ @@ -40957,17 +41544,16 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidObjectState.prototype); + this.name = "InvalidObjectState"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidObjectState2.prototype); this.StorageClass = opts.StorageClass; this.AccessTier = opts.AccessTier; } }; - var NoSuchKey = class _NoSuchKey extends S3ServiceException { - static { - __name(this, "NoSuchKey"); - } - name = "NoSuchKey"; - $fault = "client"; + __name(_InvalidObjectState, "InvalidObjectState"); + var InvalidObjectState = _InvalidObjectState; + var _NoSuchKey = class _NoSuchKey2 extends S3ServiceException { /** * @internal */ @@ -40977,9 +41563,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchKey.prototype); + this.name = "NoSuchKey"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchKey2.prototype); } }; + __name(_NoSuchKey, "NoSuchKey"); + var NoSuchKey = _NoSuchKey; var ObjectAttributes = { CHECKSUM: "Checksum", ETAG: "ETag", @@ -40994,12 +41584,7 @@ var require_dist_cjs69 = __commonJS({ COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE" }; - var NotFound = class _NotFound extends S3ServiceException { - static { - __name(this, "NotFound"); - } - name = "NotFound"; - $fault = "client"; + var _NotFound = class _NotFound2 extends S3ServiceException { /** * @internal */ @@ -41009,9 +41594,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NotFound.prototype); + this.name = "NotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NotFound2.prototype); } }; + __name(_NotFound, "NotFound"); + var NotFound = _NotFound; var ArchiveStatus = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS" @@ -41040,54 +41629,54 @@ var require_dist_cjs69 = __commonJS({ }; var CompleteMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "CompleteMultipartUploadOutputFilterSensitiveLog"); var CompleteMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "CompleteMultipartUploadRequestFilterSensitiveLog"); var CopyObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CopyObjectOutputFilterSensitiveLog"); var CopyObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING }, - ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING }, + ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "CopyObjectRequestFilterSensitiveLog"); var CreateMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateMultipartUploadOutputFilterSensitiveLog"); var CreateMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateMultipartUploadRequestFilterSensitiveLog"); var SessionCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SessionToken && { SessionToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SessionToken && { SessionToken: import_smithy_client4.SENSITIVE_STRING } }), "SessionCredentialsFilterSensitiveLog"); var CreateSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING }, ...obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) } }), "CreateSessionOutputFilterSensitiveLog"); var CreateSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateSessionRequestFilterSensitiveLog"); var ServerSideEncryptionByDefaultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client25.SENSITIVE_STRING } + ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client4.SENSITIVE_STRING } }), "ServerSideEncryptionByDefaultFilterSensitiveLog"); var ServerSideEncryptionRuleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41111,7 +41700,7 @@ var require_dist_cjs69 = __commonJS({ }), "GetBucketEncryptionOutputFilterSensitiveLog"); var SSEKMSFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KeyId && { KeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.KeyId && { KeyId: import_smithy_client4.SENSITIVE_STRING } }), "SSEKMSFilterSensitiveLog"); var InventoryEncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41139,26 +41728,26 @@ var require_dist_cjs69 = __commonJS({ }), "GetBucketInventoryConfigurationOutputFilterSensitiveLog"); var GetObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectOutputFilterSensitiveLog"); var GetObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectRequestFilterSensitiveLog"); var GetObjectAttributesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectAttributesRequestFilterSensitiveLog"); var GetObjectTorrentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj }), "GetObjectTorrentOutputFilterSensitiveLog"); var HeadObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "HeadObjectOutputFilterSensitiveLog"); var HeadObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "HeadObjectRequestFilterSensitiveLog"); var ListBucketInventoryConfigurationsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41170,22 +41759,17 @@ var require_dist_cjs69 = __commonJS({ }), "ListBucketInventoryConfigurationsOutputFilterSensitiveLog"); var ListPartsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "ListPartsRequestFilterSensitiveLog"); - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_core4 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var import_xml_builder = require_dist_cjs45(); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var MFADelete = { Disabled: "Disabled", Enabled: "Enabled" }; - var EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException { - static { - __name(this, "EncryptionTypeMismatch"); - } - name = "EncryptionTypeMismatch"; - $fault = "client"; + var _EncryptionTypeMismatch = class _EncryptionTypeMismatch2 extends S3ServiceException { /** * @internal */ @@ -41195,15 +41779,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype); + this.name = "EncryptionTypeMismatch"; + this.$fault = "client"; + Object.setPrototypeOf(this, _EncryptionTypeMismatch2.prototype); } }; - var InvalidRequest = class _InvalidRequest extends S3ServiceException { - static { - __name(this, "InvalidRequest"); - } - name = "InvalidRequest"; - $fault = "client"; + __name(_EncryptionTypeMismatch, "EncryptionTypeMismatch"); + var EncryptionTypeMismatch = _EncryptionTypeMismatch; + var _InvalidRequest = class _InvalidRequest2 extends S3ServiceException { /** * @internal */ @@ -41213,15 +41796,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequest.prototype); + this.name = "InvalidRequest"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequest2.prototype); } }; - var InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException { - static { - __name(this, "InvalidWriteOffset"); - } - name = "InvalidWriteOffset"; - $fault = "client"; + __name(_InvalidRequest, "InvalidRequest"); + var InvalidRequest = _InvalidRequest; + var _InvalidWriteOffset = class _InvalidWriteOffset2 extends S3ServiceException { /** * @internal */ @@ -41231,15 +41813,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidWriteOffset.prototype); + this.name = "InvalidWriteOffset"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidWriteOffset2.prototype); } }; - var TooManyParts = class _TooManyParts extends S3ServiceException { - static { - __name(this, "TooManyParts"); - } - name = "TooManyParts"; - $fault = "client"; + __name(_InvalidWriteOffset, "InvalidWriteOffset"); + var InvalidWriteOffset = _InvalidWriteOffset; + var _TooManyParts = class _TooManyParts2 extends S3ServiceException { /** * @internal */ @@ -41249,15 +41830,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _TooManyParts.prototype); + this.name = "TooManyParts"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyParts2.prototype); } }; - var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException { - static { - __name(this, "ObjectAlreadyInActiveTierError"); - } - name = "ObjectAlreadyInActiveTierError"; - $fault = "client"; + __name(_TooManyParts, "TooManyParts"); + var TooManyParts = _TooManyParts; + var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError2 extends S3ServiceException { /** * @internal */ @@ -41267,9 +41847,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype); + this.name = "ObjectAlreadyInActiveTierError"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError2.prototype); } }; + __name(_ObjectAlreadyInActiveTierError, "ObjectAlreadyInActiveTierError"); + var ObjectAlreadyInActiveTierError = _ObjectAlreadyInActiveTierError; var Tier = { Bulk: "Bulk", Expedited: "Expedited", @@ -41331,18 +41915,18 @@ var require_dist_cjs69 = __commonJS({ }), "PutBucketInventoryConfigurationRequestFilterSensitiveLog"); var PutObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "PutObjectOutputFilterSensitiveLog"); var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "PutObjectRequestFilterSensitiveLog"); var EncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KMSKeyId && { KMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.KMSKeyId && { KMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "EncryptionFilterSensitiveLog"); var S3LocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41380,58 +41964,55 @@ var require_dist_cjs69 = __commonJS({ }), "SelectObjectContentOutputFilterSensitiveLog"); var SelectObjectContentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "SelectObjectContentRequestFilterSensitiveLog"); var UploadPartOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartOutputFilterSensitiveLog"); var UploadPartRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartRequestFilterSensitiveLog"); var UploadPartCopyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartCopyOutputFilterSensitiveLog"); var UploadPartCopyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartCopyRequestFilterSensitiveLog"); var WriteGetObjectResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "WriteGetObjectResponseRequestFilterSensitiveLog"); var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaimit]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMIT]).toString()] + [_xaimit]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMIT]).toString()] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "AbortMultipartUpload"], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_AbortMultipartUploadCommand"); var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], - [_xact]: input[_CT], - [_xamos]: input[_MOS], [_xarp]: input[_RP], [_xaebo]: input[_EBO], [_im]: input[_IM], @@ -41440,11 +42021,11 @@ var require_dist_cjs69 = __commonJS({ [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; let contents; @@ -41455,25 +42036,25 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CompleteMultipartUploadCommand"); var se_CopyObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaa]: input[_ACL], [_cc]: input[_CC], - [_xaca]: input[_CA2], + [_xaca]: input[_CA], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_ct]: input[_CTo], + [_ct]: input[_CT], [_xacs__]: input[_CS], [_xacsim]: input[_CSIM], - [_xacsims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIMS]).toString()], + [_xacsims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIMS]).toString()], [_xacsinm]: input[_CSINM], - [_xacsius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIUS]).toString()], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_xacsius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIUS]).toString()], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -41488,14 +42069,14 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xacssseca]: input[_CSSSECA], [_xacssseck]: input[_CSSSECK], [_xacssseckm]: input[_CSSSECKMD], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], [_xasebo]: input[_ESBO], @@ -41504,19 +42085,19 @@ var require_dist_cjs69 = __commonJS({ return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "CopyObject"] }); let body; - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_CopyObjectCommand"); var se_CreateBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_xagfc]: input[_GFC], @@ -41524,11 +42105,11 @@ var require_dist_cjs69 = __commonJS({ [_xagra]: input[_GRACP], [_xagw]: input[_GW], [_xagwa]: input[_GWACP], - [_xabole]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()], + [_xabole]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()], [_xaoo]: input[_OO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; let contents; if (input.CreateBucketConfiguration !== void 0) { @@ -41537,20 +42118,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).b(body); - return b3.build(); + b.m("PUT").h(headers).b(body); + return b.build(); }, "se_CreateBucketCommand"); var se_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; @@ -41561,19 +42142,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CreateBucketMetadataTableConfigurationCommand"); var se_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaa]: input[_ACL], [_cc]: input[_CC], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_ct]: input[_CTo], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_ct]: input[_CT], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -41586,278 +42167,277 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], - [_xaca]: input[_CA2], - [_xact]: input[_CT], + [_xaca]: input[_CA], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix]; return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_u]: [, ""] }); let body; - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CreateMultipartUploadCommand"); var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xacsm]: input[_SM], [_xasse]: input[_SSE], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()] + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_s]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_CreateSessionCommand"); var se_DeleteBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; - b3.m("DELETE").h(headers).b(body); - return b3.build(); + b.m("DELETE").h(headers).b(body); + return b.build(); }, "se_DeleteBucketCommand"); var se_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketAnalyticsConfigurationCommand"); var se_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketCorsCommand"); var se_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketEncryptionCommand"); var se_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketIntelligentTieringConfigurationCommand"); var se_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketInventoryConfigurationCommand"); var se_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketLifecycleCommand"); var se_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketMetadataTableConfigurationCommand"); var se_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketMetricsConfigurationCommand"); var se_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketOwnershipControlsCommand"); var se_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketPolicyCommand"); var se_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketReplicationCommand"); var se_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketTaggingCommand"); var se_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketWebsiteCommand"); var se_DeleteObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xam]: input[_MFA], [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_xaebo]: input[_EBO], [_im]: input[_IM], - [_xaimlmt]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMLMT]).toString()], - [_xaims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] + [_xaimlmt]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMLMT]).toString()], + [_xaims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "DeleteObject"], [_vI]: [, input[_VI]] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectCommand"); var se_DeleteObjectsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xam]: input[_MFA], [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_xaebo]: input[_EBO], - [_xasca]: input[_CA2] + [_xasca]: input[_CA] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_d]: [, ""] }); let body; @@ -41868,347 +42448,347 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectsCommand"); var se_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectTaggingCommand"); var se_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeletePublicAccessBlockCommand"); var se_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ac]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAccelerateConfigurationCommand"); var se_GetBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAclCommand"); var se_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], [_xi]: [, "GetBucketAnalyticsConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAnalyticsConfigurationCommand"); var se_GetBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketCorsCommand"); var se_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketEncryptionCommand"); var se_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], [_xi]: [, "GetBucketIntelligentTieringConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketIntelligentTieringConfigurationCommand"); var se_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], [_xi]: [, "GetBucketInventoryConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketInventoryConfigurationCommand"); var se_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLifecycleConfigurationCommand"); var se_GetBucketLocationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_lo]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLocationCommand"); var se_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_log]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLoggingCommand"); var se_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketMetadataTableConfigurationCommand"); var se_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], [_xi]: [, "GetBucketMetricsConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketMetricsConfigurationCommand"); var se_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_n]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketNotificationConfigurationCommand"); var se_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketOwnershipControlsCommand"); var se_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketPolicyCommand"); var se_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pS]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketPolicyStatusCommand"); var se_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketReplicationCommand"); var se_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_rP]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketRequestPaymentCommand"); var se_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketTaggingCommand"); var se_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_v]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketVersioningCommand"); var se_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketWebsiteCommand"); var se_GetObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMSf]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], - [_ius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_IUS]).toString()], + [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -42217,177 +42797,177 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xacm]: input[_CM] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "GetObject"], [_rcc]: [, input[_RCC]], [_rcd]: [, input[_RCD]], [_rce]: [, input[_RCE]], [_rcl]: [, input[_RCL]], [_rct]: [, input[_RCT]], - [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client25.dateToUtcString)(input[_RE]).toString()], + [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client4.dateToUtcString)(input[_RE]).toString()], [_vI]: [, input[_VI]], [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectCommand"); var se_GetObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectAclCommand"); var se_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { - [_xamp]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()], + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { + [_xamp]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()], [_xapnm]: input[_PNM], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD], [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaoa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaoa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_at]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectAttributesCommand"); var se_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_lh]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectLegalHoldCommand"); var se_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ol]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectLockConfigurationCommand"); var se_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_ret]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectRetentionCommand"); var se_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectTaggingCommand"); var se_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_to]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectTorrentCommand"); var se_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetPublicAccessBlockCommand"); var se_HeadBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; - b3.m("HEAD").h(headers).b(body); - return b3.build(); + b.m("HEAD").h(headers).b(body); + return b.build(); }, "se_HeadBucketCommand"); var se_HeadObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMSf]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], - [_ius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_IUS]).toString()], + [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -42396,231 +42976,231 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xacm]: input[_CM] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_rcc]: [, input[_RCC]], [_rcd]: [, input[_RCD]], [_rce]: [, input[_RCE]], [_rcl]: [, input[_RCL]], [_rct]: [, input[_RCT]], - [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client25.dateToUtcString)(input[_RE]).toString()], + [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client4.dateToUtcString)(input[_RE]).toString()], [_vI]: [, input[_VI]], [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()] }); let body; - b3.m("HEAD").h(headers).q(query).b(body); - return b3.build(); + b.m("HEAD").h(headers).q(query).b(body); + return b.build(); }, "se_HeadObjectCommand"); var se_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], [_xi]: [, "ListBucketAnalyticsConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketAnalyticsConfigurationsCommand"); var se_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], [_xi]: [, "ListBucketIntelligentTieringConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketIntelligentTieringConfigurationsCommand"); var se_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], [_xi]: [, "ListBucketInventoryConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketInventoryConfigurationsCommand"); var se_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], [_xi]: [, "ListBucketMetricsConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketMetricsConfigurationsCommand"); var se_ListBucketsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListBuckets"], [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()], - [_ct_]: [, input[_CTon]], - [_pr]: [, input[_P2]], + [_ct_]: [, input[_CTo]], + [_pr]: [, input[_P]], [_br]: [, input[_BR]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketsCommand"); var se_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListDirectoryBuckets"], - [_ct_]: [, input[_CTon]], + [_ct_]: [, input[_CTo]], [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListDirectoryBucketsCommand"); var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_u]: [, ""], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_km]: [, input[_KM]], [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU].toString()], - [_pr]: [, input[_P2]], + [_pr]: [, input[_P]], [_uim]: [, input[_UIM]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListMultipartUploadsCommand"); var se_ListObjectsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_de]: [, input[_D]], [_et]: [, input[_ET]], [_ma]: [, input[_M]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]] + [_pr]: [, input[_P]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectsCommand"); var se_ListObjectsV2Command = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_lt]: [, "2"], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]], - [_ct_]: [, input[_CTon]], + [_pr]: [, input[_P]], + [_ct_]: [, input[_CTo]], [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO].toString()], [_sa]: [, input[_SA]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectsV2Command"); var se_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ver]: [, ""], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_km]: [, input[_KM]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]], + [_pr]: [, input[_P]], [_vim]: [, input[_VIM]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectVersionsCommand"); var se_ListPartsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListParts"], [_mp]: [() => input.MaxParts !== void 0, () => input[_MP].toString()], [_pnm]: [, input[_PNM]], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListPartsCommand"); var se_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO], - [_xasca]: input[_CA2] + [_xasca]: input[_CA] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ac]: [, ""] }); let body; @@ -42631,16 +43211,16 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAccelerateConfigurationCommand"); var se_PutBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -42648,9 +43228,9 @@ var require_dist_cjs69 = __commonJS({ [_xagwa]: input[_GWACP], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""] }); let body; @@ -42661,20 +43241,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAclCommand"); var se_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42684,20 +43264,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAnalyticsConfigurationCommand"); var se_PutBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; @@ -42708,20 +43288,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketCorsCommand"); var se_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; @@ -42732,19 +43312,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketEncryptionCommand"); var se_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = { "content-type": "application/xml" }; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42754,20 +43334,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketIntelligentTieringConfigurationCommand"); var se_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42777,20 +43357,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketInventoryConfigurationCommand"); var se_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO], [_xatdmos]: input[_TDMOS] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; @@ -42802,20 +43382,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketLifecycleConfigurationCommand"); var se_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_log]: [, ""] }); let body; @@ -42826,20 +43406,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketLoggingCommand"); var se_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42849,19 +43429,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketMetricsConfigurationCommand"); var se_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO], - [_xasdv]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()] + [_xasdv]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_n]: [, ""] }); let body; @@ -42872,19 +43452,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketNotificationConfigurationCommand"); var se_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; @@ -42895,21 +43475,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketOwnershipControlsCommand"); var se_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "text/plain", [_cm]: input[_CMD], - [_xasca]: input[_CA2], - [_xacrsba]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()], + [_xasca]: input[_CA], + [_xacrsba]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; @@ -42918,21 +43498,21 @@ var require_dist_cjs69 = __commonJS({ contents = input.Policy; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketPolicyCommand"); var se_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xabolt]: input[_To], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; @@ -42943,20 +43523,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketReplicationCommand"); var se_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_rP]: [, ""] }); let body; @@ -42967,20 +43547,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketRequestPaymentCommand"); var se_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; @@ -42991,21 +43571,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketTaggingCommand"); var se_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xam]: input[_MFA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_v]: [, ""] }); let body; @@ -43016,20 +43596,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketVersioningCommand"); var se_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; @@ -43040,34 +43620,33 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketWebsiteCommand"); var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { - [_ct]: input[_CTo] || "application/octet-stream", + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { + [_ct]: input[_CT] || "application/octet-stream", [_xaa]: input[_ACL], [_cc]: input[_CC], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_im]: input[_IM], [_inm]: input[_INM], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], [_xagwa]: input[_GWACP], - [_xawob]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], + [_xawob]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], [_xasse]: input[_SSE], [_xasc]: input[_SC], [_xawrl]: input[_WRL], @@ -43076,11 +43655,11 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { @@ -43088,10 +43667,10 @@ var require_dist_cjs69 = __commonJS({ return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "PutObject"] }); let body; @@ -43100,16 +43679,16 @@ var require_dist_cjs69 = __commonJS({ contents = input.Body; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectCommand"); var se_PutObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -43118,10 +43697,10 @@ var require_dist_cjs69 = __commonJS({ [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""], [_vI]: [, input[_VI]] }); @@ -43133,22 +43712,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectAclCommand"); var se_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_lh]: [, ""], [_vI]: [, input[_VI]] }); @@ -43161,22 +43740,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectLegalHoldCommand"); var se_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], [_xabolt]: input[_To], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ol]: [, ""] }); let body; @@ -43187,23 +43766,23 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectLockConfigurationCommand"); var se_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_ret]: [, ""], [_vI]: [, input[_VI]] }); @@ -43216,22 +43795,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectRetentionCommand"); var se_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); @@ -43243,20 +43822,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectTaggingCommand"); var se_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; @@ -43267,21 +43846,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutPublicAccessBlockCommand"); var se_RestoreObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_res]: [, ""], [_vI]: [, input[_VI]] }); @@ -43293,22 +43872,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_RestoreObjectCommand"); var se_SelectObjectContentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_se]: [, ""], [_st]: [, "2"] }); @@ -43331,19 +43910,18 @@ var require_dist_cjs69 = __commonJS({ bn.c(se_ScanRange(input[_SR], context).n(_SR)); } body += bn.toString(); - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_SelectObjectContentCommand"); var se_UploadPartCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/octet-stream", - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], [_xasseca]: input[_SSECA], @@ -43352,13 +43930,13 @@ var require_dist_cjs69 = __commonJS({ [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "UploadPart"], - [_pN]: [(0, import_smithy_client25.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_pN]: [(0, import_smithy_client4.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; let contents; @@ -43366,17 +43944,17 @@ var require_dist_cjs69 = __commonJS({ contents = input.Body; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_UploadPartCommand"); var se_UploadPartCopyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xacs__]: input[_CS], [_xacsim]: input[_CSIM], - [_xacsims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIMS]).toString()], + [_xacsims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIMS]).toString()], [_xacsinm]: input[_CSINM], - [_xacsius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIUS]).toString()], + [_xacsius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIUS]).toString()], [_xacsr]: input[_CSR], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -43388,54 +43966,53 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xasebo]: input[_ESBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "UploadPartCopy"], - [_pN]: [(0, import_smithy_client25.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_pN]: [(0, import_smithy_client4.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_UploadPartCopyCommand"); var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", [_xarr]: input[_RR], [_xart]: input[_RT], - [_xafs]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()], + [_xafs]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()], [_xafec]: input[_EC], [_xafem]: input[_EM], - [_xafhar]: input[_AR2], + [_xafhar]: input[_AR], [_xafhcc]: input[_CC], [_xafhcd]: input[_CD], [_xafhce]: input[_CE], [_xafhcl]: input[_CL], - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_xafhcr]: input[_CR], - [_xafhct]: input[_CTo], + [_xafhct]: input[_CT], [_xafhxacc]: input[_CCRC], [_xafhxacc_]: input[_CCRCC], - [_xafhxacc__]: input[_CCRCNVME], [_xafhxacs]: input[_CSHA], [_xafhxacs_]: input[_CSHAh], - [_xafhxadm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()], + [_xafhxadm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()], [_xafhe]: input[_ETa], - [_xafhe_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_xafhe_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xafhxae]: input[_Exp], - [_xafhlm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client25.dateToUtcString)(input[_LM]).toString()], - [_xafhxamm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()], + [_xafhlm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client4.dateToUtcString)(input[_LM]).toString()], + [_xafhxamm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()], [_xafhxaolm]: input[_OLM], [_xafhxaollh]: input[_OLLHS], [_xafhxaolrud]: [ - () => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), - () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString() + () => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), + () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString() ], - [_xafhxampc]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_PC2]), () => input[_PC2].toString()], + [_xafhxampc]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_PC]), () => input[_PC].toString()], [_xafhxars]: input[_RS], [_xafhxarc]: input[_RC], [_xafhxar]: input[_Re], @@ -43444,15 +44021,15 @@ var require_dist_cjs69 = __commonJS({ [_xafhxasseakki]: input[_SSEKMSKI], [_xafhxasseckm]: input[_SSECKMD], [_xafhxasc]: input[_SC], - [_xafhxatc]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_TC2]), () => input[_TC2].toString()], + [_xafhxatc]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_TC]), () => input[_TC].toString()], [_xafhxavi]: input[_VI], - [_xafhxassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xafhxassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix]; return acc; }, {}) }); - b3.bp("/WriteGetObjectResponse"); + b.bp("/WriteGetObjectResponse"); let body; let contents; if (input.Body !== void 0) { @@ -43466,77 +44043,71 @@ var require_dist_cjs69 = __commonJS({ throw new Error("Empty value provided for input host prefix: RequestRoute."); } resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute); - if (!(0, import_protocol_http11.isValidHostname)(resolvedHostname)) { + if (!(0, import_protocol_http8.isValidHostname)(resolvedHostname)) { throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - b3.hn(resolvedHostname); - b3.m("POST").h(headers).b(body); - return b3.build(); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }, "se_WriteGetObjectResponseCommand"); var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_AbortMultipartUploadCommand"); var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_SSE]: [, output.headers[_xasse]], [_VI]: [, output.headers[_xavi]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } if (data[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(data[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(data[_CCRC]); } if (data[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(data[_CCRCC]); - } - if (data[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(data[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(data[_CCRCC]); } if (data[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(data[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(data[_CSHA]); } if (data[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(data[_CSHAh]); - } - if (data[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(data[_CT]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(data[_CSHAh]); } if (data[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(data[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(data[_ETa]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_L] != null) { - contents[_L] = (0, import_smithy_client25.expectString)(data[_L]); + contents[_L] = (0, import_smithy_client4.expectString)(data[_L]); } return contents; }, "de_CompleteMultipartUploadCommand"); var de_CopyObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_CSVI]: [, output.headers[_xacsvi]], [_VI]: [, output.headers[_xavi]], @@ -43545,305 +44116,304 @@ var require_dist_cjs69 = __commonJS({ [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.CopyObjectResult = de_CopyObjectResult(data, context); return contents; }, "de_CopyObjectCommand"); var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_L]: [, output.headers[_lo]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_CreateBucketCommand"); var de_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_CreateBucketMetadataTableConfigurationCommand"); var de_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_AD]: [ () => void 0 !== output.headers[_xaad], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_xaad])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_xaad])) ], - [_ARI2]: [, output.headers[_xaari]], + [_ARI]: [, output.headers[_xaari]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]], - [_CA2]: [, output.headers[_xaca]], - [_CT]: [, output.headers[_xact]] + [_CA]: [, output.headers[_xaca]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(data[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(data[_UI]); } return contents; }, "de_CreateMultipartUploadCommand"); var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_SSE]: [, output.headers[_xasse]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])] + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_C2] != null) { - contents[_C2] = de_SessionCredentials(data[_C2], context); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_C] != null) { + contents[_C] = de_SessionCredentials(data[_C], context); } return contents; }, "de_CreateSessionCommand"); var de_DeleteBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketCommand"); var de_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketAnalyticsConfigurationCommand"); var de_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketCorsCommand"); var de_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketEncryptionCommand"); var de_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketIntelligentTieringConfigurationCommand"); var de_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketInventoryConfigurationCommand"); var de_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketLifecycleCommand"); var de_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketMetadataTableConfigurationCommand"); var de_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketMetricsConfigurationCommand"); var de_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketOwnershipControlsCommand"); var de_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketPolicyCommand"); var de_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketReplicationCommand"); var de_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketTaggingCommand"); var de_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketWebsiteCommand"); var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], [_VI]: [, output.headers[_xavi]], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteObjectCommand"); var de_DeleteObjectsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Deleted === "") { contents[_De] = []; } else if (data[_De] != null) { - contents[_De] = de_DeletedObjects((0, import_smithy_client25.getArrayIfSingleItem)(data[_De]), context); + contents[_De] = de_DeletedObjects((0, import_smithy_client4.getArrayIfSingleItem)(data[_De]), context); } if (data.Error === "") { contents[_Err] = []; } else if (data[_Er] != null) { - contents[_Err] = de_Errors((0, import_smithy_client25.getArrayIfSingleItem)(data[_Er]), context); + contents[_Err] = de_Errors((0, import_smithy_client4.getArrayIfSingleItem)(data[_Er]), context); } return contents; }, "de_DeleteObjectsCommand"); var de_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteObjectTaggingCommand"); var de_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeletePublicAccessBlockCommand"); var de_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(data[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(data[_S]); } return contents; }, "de_GetBucketAccelerateConfigurationCommand"); var de_GetBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AccessControlList === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants((0, import_smithy_client25.getArrayIfSingleItem)(data[_ACLc][_G]), context); + contents[_Gr] = de_Grants((0, import_smithy_client4.getArrayIfSingleItem)(data[_ACLc][_G]), context); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); @@ -43852,100 +44422,100 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketAclCommand"); var de_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data, context); return contents; }, "de_GetBucketAnalyticsConfigurationCommand"); var de_GetBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CORSRule === "") { contents[_CORSRu] = []; } else if (data[_CORSR] != null) { - contents[_CORSRu] = de_CORSRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_CORSR]), context); + contents[_CORSRu] = de_CORSRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_CORSR]), context); } return contents; }, "de_GetBucketCorsCommand"); var de_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data, context); return contents; }, "de_GetBucketEncryptionCommand"); var de_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data, context); return contents; }, "de_GetBucketIntelligentTieringConfigurationCommand"); var de_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.InventoryConfiguration = de_InventoryConfiguration(data, context); return contents; }, "de_GetBucketInventoryConfigurationCommand"); var de_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_TDMOS]: [, output.headers[_xatdmos]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Rule === "") { contents[_Rul] = []; } else if (data[_Ru] != null) { - contents[_Rul] = de_LifecycleRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_Ru]), context); + contents[_Rul] = de_LifecycleRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_Ru]), context); } return contents; }, "de_GetBucketLifecycleConfigurationCommand"); var de_GetBucketLocationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_LC] != null) { - contents[_LC] = (0, import_smithy_client25.expectString)(data[_LC]); + contents[_LC] = (0, import_smithy_client4.expectString)(data[_LC]); } return contents; }, "de_GetBucketLocationCommand"); var de_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_LE] != null) { contents[_LE] = de_LoggingEnabled(data[_LE], context); } @@ -43953,150 +44523,150 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketLoggingCommand"); var de_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data, context); return contents; }, "de_GetBucketMetadataTableConfigurationCommand"); var de_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.MetricsConfiguration = de_MetricsConfiguration(data, context); return contents; }, "de_GetBucketMetricsConfigurationCommand"); var de_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_EBC] != null) { contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); } if (data.CloudFunctionConfiguration === "") { contents[_LFC] = []; } else if (data[_CFC] != null) { - contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CFC]), context); + contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CFC]), context); } if (data.QueueConfiguration === "") { contents[_QCu] = []; } else if (data[_QC] != null) { - contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_QC]), context); + contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_QC]), context); } if (data.TopicConfiguration === "") { contents[_TCop] = []; } else if (data[_TCo] != null) { - contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_TCo]), context); + contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_TCo]), context); } return contents; }, "de_GetBucketNotificationConfigurationCommand"); var de_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.OwnershipControls = de_OwnershipControls(data, context); return contents; }, "de_GetBucketOwnershipControlsCommand"); var de_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); const data = await collectBodyString2(output.body, context); - contents.Policy = (0, import_smithy_client25.expectString)(data); + contents.Policy = (0, import_smithy_client4.expectString)(data); return contents; }, "de_GetBucketPolicyCommand"); var de_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.PolicyStatus = de_PolicyStatus(data, context); return contents; }, "de_GetBucketPolicyStatusCommand"); var de_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ReplicationConfiguration = de_ReplicationConfiguration(data, context); return contents; }, "de_GetBucketReplicationCommand"); var de_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_Pa] != null) { - contents[_Pa] = (0, import_smithy_client25.expectString)(data[_Pa]); + contents[_Pa] = (0, import_smithy_client4.expectString)(data[_Pa]); } return contents; }, "de_GetBucketRequestPaymentCommand"); var de_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.TagSet === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(data[_TS][_Ta]), context); + contents[_TS] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(data[_TS][_Ta]), context); } return contents; }, "de_GetBucketTaggingCommand"); var de_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_MDf] != null) { - contents[_MFAD] = (0, import_smithy_client25.expectString)(data[_MDf]); + contents[_MFAD] = (0, import_smithy_client4.expectString)(data[_MDf]); } if (data[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(data[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(data[_S]); } return contents; }, "de_GetBucketVersioningCommand"); var de_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_ED] != null) { contents[_ED] = de_ErrorDocument(data[_ED], context); } @@ -44109,54 +44679,52 @@ var require_dist_cjs69 = __commonJS({ if (data.RoutingRules === "") { contents[_RRo] = []; } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { - contents[_RRo] = de_RoutingRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_RRo][_RRou]), context); + contents[_RRo] = de_RoutingRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_RRo][_RRou]), context); } return contents; }, "de_GetBucketWebsiteCommand"); var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_AR2]: [, output.headers[_ar]], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], [_Exp]: [, output.headers[_xae]], [_Re]: [, output.headers[_xar]], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client25.strictParseLong)(output.headers[_cl_])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client4.strictParseLong)(output.headers[_cl_])], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xamm])], + [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xamm])], [_VI]: [, output.headers[_xavi]], [_CC]: [, output.headers[_cc]], [_CD]: [, output.headers[_cd]], [_CE]: [, output.headers[_ce]], [_CL]: [, output.headers[_cl]], [_CR]: [, output.headers[_cr]], - [_CTo]: [, output.headers[_ct]], - [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_e]))], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_e]))], [_ES]: [, output.headers[_ex]], [_WRL]: [, output.headers[_xawrl]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_SC]: [, output.headers[_xasc]], [_RC]: [, output.headers[_xarc]], [_RS]: [, output.headers[_xars]], - [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xampc])], - [_TC2]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xatc])], + [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xampc])], + [_TC]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xatc])], [_OLM]: [, output.headers[_xaolm]], [_OLRUD]: [ () => void 0 !== output.headers[_xaolrud], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) ], [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ @@ -44174,17 +44742,17 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectCommand"); var de_GetObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AccessControlList === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants((0, import_smithy_client25.getArrayIfSingleItem)(data[_ACLc][_G]), context); + contents[_Gr] = de_Grants((0, import_smithy_client4.getArrayIfSingleItem)(data[_ACLc][_G]), context); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); @@ -44193,88 +44761,88 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectAclCommand"); var de_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], [_VI]: [, output.headers[_xavi]], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_Ch] != null) { contents[_Ch] = de_Checksum(data[_Ch], context); } if (data[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(data[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(data[_ETa]); } if (data[_OP] != null) { contents[_OP] = de_GetObjectAttributesParts(data[_OP], context); } if (data[_OSb] != null) { - contents[_OSb] = (0, import_smithy_client25.strictParseLong)(data[_OSb]); + contents[_OSb] = (0, import_smithy_client4.strictParseLong)(data[_OSb]); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } return contents; }, "de_GetObjectAttributesCommand"); var de_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.LegalHold = de_ObjectLockLegalHold(data, context); return contents; }, "de_GetObjectLegalHoldCommand"); var de_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data, context); return contents; }, "de_GetObjectLockConfigurationCommand"); var de_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.Retention = de_ObjectLockRetention(data, context); return contents; }, "de_GetObjectRetentionCommand"); var de_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.TagSet === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(data[_TS][_Ta]), context); + contents[_TS] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(data[_TS][_Ta]), context); } return contents; }, "de_GetObjectTaggingCommand"); var de_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); const data = output.body; @@ -44284,72 +44852,70 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectTorrentCommand"); var de_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data, context); return contents; }, "de_GetPublicAccessBlockCommand"); var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_BLT]: [, output.headers[_xablt]], [_BLN]: [, output.headers[_xabln]], [_BR]: [, output.headers[_xabr]], - [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xaapa])] + [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xaapa])] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_HeadBucketCommand"); var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_AR2]: [, output.headers[_ar]], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], [_Exp]: [, output.headers[_xae]], [_Re]: [, output.headers[_xar]], [_AS]: [, output.headers[_xaas]], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client25.strictParseLong)(output.headers[_cl_])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client4.strictParseLong)(output.headers[_cl_])], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], [_ETa]: [, output.headers[_eta]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xamm])], + [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xamm])], [_VI]: [, output.headers[_xavi]], [_CC]: [, output.headers[_cc]], [_CD]: [, output.headers[_cd]], [_CE]: [, output.headers[_ce]], [_CL]: [, output.headers[_cl]], - [_CTo]: [, output.headers[_ct]], - [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_e]))], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_e]))], [_ES]: [, output.headers[_ex]], [_WRL]: [, output.headers[_xawrl]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_SC]: [, output.headers[_xasc]], [_RC]: [, output.headers[_xarc]], [_RS]: [, output.headers[_xars]], - [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xampc])], + [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xampc])], [_OLM]: [, output.headers[_xaolm]], [_OLRUD]: [ () => void 0 !== output.headers[_xaolrud], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) ], [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ @@ -44360,698 +44926,693 @@ var require_dist_cjs69 = __commonJS({ }, {}) ] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_HeadObjectCommand"); var de_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AnalyticsConfiguration === "") { contents[_ACLn] = []; } else if (data[_AC] != null) { - contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_AC]), context); + contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_AC]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketAnalyticsConfigurationsCommand"); var de_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data.IntelligentTieringConfiguration === "") { contents[_ITCL] = []; } else if (data[_ITC] != null) { - contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_ITC]), context); + contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_ITC]), context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketIntelligentTieringConfigurationsCommand"); var de_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data.InventoryConfiguration === "") { contents[_ICL] = []; } else if (data[_IC] != null) { - contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_IC]), context); + contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_IC]), context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketInventoryConfigurationsCommand"); var de_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data.MetricsConfiguration === "") { contents[_MCL] = []; } else if (data[_MC] != null) { - contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_MC]), context); + contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_MC]), context); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketMetricsConfigurationsCommand"); var de_ListBucketsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Buckets === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets((0, import_smithy_client25.getArrayIfSingleItem)(data[_Bu][_B]), context); + contents[_Bu] = de_Buckets((0, import_smithy_client4.getArrayIfSingleItem)(data[_Bu][_B]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } return contents; }, "de_ListBucketsCommand"); var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Buckets === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets((0, import_smithy_client25.getArrayIfSingleItem)(data[_Bu][_B]), context); + contents[_Bu] = de_Buckets((0, import_smithy_client4.getArrayIfSingleItem)(data[_Bu][_B]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } return contents; }, "de_ListDirectoryBucketsCommand"); var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KM] != null) { - contents[_KM] = (0, import_smithy_client25.expectString)(data[_KM]); + contents[_KM] = (0, import_smithy_client4.expectString)(data[_KM]); } if (data[_MU] != null) { - contents[_MU] = (0, import_smithy_client25.strictParseInt32)(data[_MU]); + contents[_MU] = (0, import_smithy_client4.strictParseInt32)(data[_MU]); } if (data[_NKM] != null) { - contents[_NKM] = (0, import_smithy_client25.expectString)(data[_NKM]); + contents[_NKM] = (0, import_smithy_client4.expectString)(data[_NKM]); } if (data[_NUIM] != null) { - contents[_NUIM] = (0, import_smithy_client25.expectString)(data[_NUIM]); + contents[_NUIM] = (0, import_smithy_client4.expectString)(data[_NUIM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_UIM] != null) { - contents[_UIM] = (0, import_smithy_client25.expectString)(data[_UIM]); + contents[_UIM] = (0, import_smithy_client4.expectString)(data[_UIM]); } if (data.Upload === "") { contents[_Up] = []; } else if (data[_U] != null) { - contents[_Up] = de_MultipartUploadList((0, import_smithy_client25.getArrayIfSingleItem)(data[_U]), context); + contents[_Up] = de_MultipartUploadList((0, import_smithy_client4.getArrayIfSingleItem)(data[_U]), context); } return contents; }, "de_ListMultipartUploadsCommand"); var de_ListObjectsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.Contents === "") { contents[_Co] = []; } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList((0, import_smithy_client25.getArrayIfSingleItem)(data[_Co]), context); + contents[_Co] = de_ObjectList((0, import_smithy_client4.getArrayIfSingleItem)(data[_Co]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_M] != null) { - contents[_M] = (0, import_smithy_client25.expectString)(data[_M]); + contents[_M] = (0, import_smithy_client4.expectString)(data[_M]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NM] != null) { - contents[_NM] = (0, import_smithy_client25.expectString)(data[_NM]); + contents[_NM] = (0, import_smithy_client4.expectString)(data[_NM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } return contents; }, "de_ListObjectsCommand"); var de_ListObjectsV2Command = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.Contents === "") { contents[_Co] = []; } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList((0, import_smithy_client25.getArrayIfSingleItem)(data[_Co]), context); + contents[_Co] = de_ObjectList((0, import_smithy_client4.getArrayIfSingleItem)(data[_Co]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KC] != null) { - contents[_KC] = (0, import_smithy_client25.strictParseInt32)(data[_KC]); + contents[_KC] = (0, import_smithy_client4.strictParseInt32)(data[_KC]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_SA] != null) { - contents[_SA] = (0, import_smithy_client25.expectString)(data[_SA]); + contents[_SA] = (0, import_smithy_client4.expectString)(data[_SA]); } return contents; }, "de_ListObjectsV2Command"); var de_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.DeleteMarker === "") { contents[_DMe] = []; } else if (data[_DM] != null) { - contents[_DMe] = de_DeleteMarkers((0, import_smithy_client25.getArrayIfSingleItem)(data[_DM]), context); + contents[_DMe] = de_DeleteMarkers((0, import_smithy_client4.getArrayIfSingleItem)(data[_DM]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KM] != null) { - contents[_KM] = (0, import_smithy_client25.expectString)(data[_KM]); + contents[_KM] = (0, import_smithy_client4.expectString)(data[_KM]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NKM] != null) { - contents[_NKM] = (0, import_smithy_client25.expectString)(data[_NKM]); + contents[_NKM] = (0, import_smithy_client4.expectString)(data[_NKM]); } if (data[_NVIM] != null) { - contents[_NVIM] = (0, import_smithy_client25.expectString)(data[_NVIM]); + contents[_NVIM] = (0, import_smithy_client4.expectString)(data[_NVIM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_VIM] != null) { - contents[_VIM] = (0, import_smithy_client25.expectString)(data[_VIM]); + contents[_VIM] = (0, import_smithy_client4.expectString)(data[_VIM]); } if (data.Version === "") { contents[_Ve] = []; - } else if (data[_V2] != null) { - contents[_Ve] = de_ObjectVersionList((0, import_smithy_client25.getArrayIfSingleItem)(data[_V2]), context); + } else if (data[_V] != null) { + contents[_Ve] = de_ObjectVersionList((0, import_smithy_client4.getArrayIfSingleItem)(data[_V]), context); } return contents; }, "de_ListObjectVersionsCommand"); var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_AD]: [ () => void 0 !== output.headers[_xaad], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_xaad])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_xaad])) ], - [_ARI2]: [, output.headers[_xaari]], + [_ARI]: [, output.headers[_xaari]], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); - } - if (data[_CA2] != null) { - contents[_CA2] = (0, import_smithy_client25.expectString)(data[_CA2]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } - if (data[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(data[_CT]); + if (data[_CA] != null) { + contents[_CA] = (0, import_smithy_client4.expectString)(data[_CA]); } if (data[_In] != null) { contents[_In] = de_Initiator(data[_In], context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_MP] != null) { - contents[_MP] = (0, import_smithy_client25.strictParseInt32)(data[_MP]); + contents[_MP] = (0, import_smithy_client4.strictParseInt32)(data[_MP]); } if (data[_NPNM] != null) { - contents[_NPNM] = (0, import_smithy_client25.expectString)(data[_NPNM]); + contents[_NPNM] = (0, import_smithy_client4.expectString)(data[_NPNM]); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); } if (data[_PNM] != null) { - contents[_PNM] = (0, import_smithy_client25.expectString)(data[_PNM]); + contents[_PNM] = (0, import_smithy_client4.expectString)(data[_PNM]); } if (data.Part === "") { contents[_Part] = []; } else if (data[_Par] != null) { - contents[_Part] = de_Parts((0, import_smithy_client25.getArrayIfSingleItem)(data[_Par]), context); + contents[_Part] = de_Parts((0, import_smithy_client4.getArrayIfSingleItem)(data[_Par]), context); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } if (data[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(data[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(data[_UI]); } return contents; }, "de_ListPartsCommand"); var de_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAccelerateConfigurationCommand"); var de_PutBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAclCommand"); var de_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAnalyticsConfigurationCommand"); var de_PutBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketCorsCommand"); var de_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketEncryptionCommand"); var de_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketIntelligentTieringConfigurationCommand"); var de_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketInventoryConfigurationCommand"); var de_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_TDMOS]: [, output.headers[_xatdmos]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketLifecycleConfigurationCommand"); var de_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketLoggingCommand"); var de_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketMetricsConfigurationCommand"); var de_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketNotificationConfigurationCommand"); var de_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketOwnershipControlsCommand"); var de_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketPolicyCommand"); var de_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketReplicationCommand"); var de_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketRequestPaymentCommand"); var de_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketTaggingCommand"); var de_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketVersioningCommand"); var de_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketWebsiteCommand"); var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], [_SSE]: [, output.headers[_xasse]], [_VI]: [, output.headers[_xavi]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], - [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client25.strictParseLong)(output.headers[_xaos])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], + [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client4.strictParseLong)(output.headers[_xaos])], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectCommand"); var de_PutObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectAclCommand"); var de_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectLegalHoldCommand"); var de_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectLockConfigurationCommand"); var de_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectRetentionCommand"); var de_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectTaggingCommand"); var de_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutPublicAccessBlockCommand"); var de_RestoreObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]], [_ROP]: [, output.headers[_xarop]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_RestoreObjectCommand"); var de_SelectObjectContentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); const data = output.body; contents.Payload = de_SelectObjectContentEventStream(data, context); @@ -45059,60 +45620,59 @@ var require_dist_cjs69 = __commonJS({ }, "de_SelectObjectContentCommand"); var de_UploadPartCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_SSE]: [, output.headers[_xasse]], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_UploadPartCommand"); var de_UploadPartCopyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_CSVI]: [, output.headers[_xacsvi]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.CopyPartResult = de_CopyPartResult(data, context); return contents; }, "de_UploadPartCopyCommand"); var de_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_WriteGetObjectResponseCommand"); - var de_CommandError3 = /* @__PURE__ */ __name(async (output, context) => { + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await (0, import_core17.parseXmlErrorBody)(output.body, context) + body: await (0, import_core4.parseXmlErrorBody)(output.body, context) }; - const errorCode = (0, import_core17.loadRestXmlErrorCode)(output, parsedOutput.body); + const errorCode = (0, import_core4.loadRestXmlErrorCode)(output, parsedOutput.body); switch (errorCode) { case "NoSuchUpload": case "com.amazonaws.s3#NoSuchUpload": @@ -45155,136 +45715,136 @@ var require_dist_cjs69 = __commonJS({ throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError3({ + return throwDefaultError({ output, parsedBody, errorCode }); } }, "de_CommandError"); - var throwDefaultError3 = (0, import_smithy_client25.withBaseException)(S3ServiceException); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(S3ServiceException); var de_BucketAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new BucketAlreadyExists({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyExistsRes"); var de_BucketAlreadyOwnedByYouRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new BucketAlreadyOwnedByYou({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyOwnedByYouRes"); var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new EncryptionTypeMismatch({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_EncryptionTypeMismatchRes"); var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; if (data[_AT] != null) { - contents[_AT] = (0, import_smithy_client25.expectString)(data[_AT]); + contents[_AT] = (0, import_smithy_client4.expectString)(data[_AT]); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } const exception = new InvalidObjectState({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidObjectStateRes"); var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new InvalidRequest({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidRequestRes"); var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new InvalidWriteOffset({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidWriteOffsetRes"); var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchBucket({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchBucketRes"); var de_NoSuchKeyRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchKey({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchKeyRes"); var de_NoSuchUploadRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchUpload({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchUploadRes"); var de_NotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NotFound({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NotFoundRes"); var de_ObjectAlreadyInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new ObjectAlreadyInActiveTierError({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectAlreadyInActiveTierErrorRes"); var de_ObjectNotInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new ObjectNotInActiveTierError({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectNotInActiveTierErrorRes"); var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new TooManyParts({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_TooManyPartsRes"); var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => { return context.eventStreamMarshaller.deserialize(output, async (event) => { @@ -45318,19 +45878,19 @@ var require_dist_cjs69 = __commonJS({ }, "de_SelectObjectContentEventStream"); var de_ContinuationEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); Object.assign(contents, de_ContinuationEvent(data, context)); return contents; }, "de_ContinuationEvent_event"); var de_EndEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); Object.assign(contents, de_EndEvent(data, context)); return contents; }, "de_EndEvent_event"); var de_ProgressEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); contents.Details = de_Progress(data, context); return contents; }, "de_ProgressEvent_event"); @@ -45341,7 +45901,7 @@ var require_dist_cjs69 = __commonJS({ }, "de_RecordsEvent_event"); var de_StatsEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); contents.Details = de_Stats(data, context); return contents; }, "de_StatsEvent_event"); @@ -45375,26 +45935,26 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_AccessControlTranslation"); var se_AllowedHeaders = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AH, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AH, entry); + return n.n(_me); }); }, "se_AllowedHeaders"); var se_AllowedMethods = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AM, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AM, entry); + return n.n(_me); }); }, "se_AllowedMethods"); var se_AllowedOrigins = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AO, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AO, entry); + return n.n(_me); }); }, "se_AllowedOrigins"); var se_AnalyticsAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_AAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_AnalyticsAndOperator"); @@ -45422,18 +45982,18 @@ var require_dist_cjs69 = __commonJS({ const bn = new import_xml_builder.XmlNode(_AF); AnalyticsFilter.visit(input, { Prefix: (value) => { - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_P2, value).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P)); } }, Tag: (value) => { if (input[_Ta] != null) { - bn.c(se_Tag2(value, context).n(_Ta)); + bn.c(se_Tag(value, context).n(_Ta)); } }, And: (value) => { - if (input[_A2] != null) { - bn.c(se_AnalyticsAndOperator(value, context).n(_A2)); + if (input[_A] != null) { + bn.c(se_AnalyticsAndOperator(value, context).n(_A)); } }, _: (name, value) => { @@ -45456,7 +46016,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_B] != null) { bn.c(import_xml_builder.XmlNode.of(_BN, input[_B]).n(_B)); } - bn.cc(input, _P2); + bn.cc(input, _P); return bn; }, "se_AnalyticsS3BucketDestination"); var se_BucketInfo = /* @__PURE__ */ __name((input, context) => { @@ -45489,7 +46049,6 @@ var require_dist_cjs69 = __commonJS({ bn.cc(input, _ETa); bn.cc(input, _CCRC); bn.cc(input, _CCRCC); - bn.cc(input, _CCRCNVME); bn.cc(input, _CSHA); bn.cc(input, _CSHAh); if (input[_PN] != null) { @@ -45498,9 +46057,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_CompletedPart"); var se_CompletedPartList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_CompletedPart(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_CompletedPart(entry, context); + return n.n(_me); }); }, "se_CompletedPartList"); var se_Condition = /* @__PURE__ */ __name((input, context) => { @@ -45527,9 +46086,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_CORSRule"); var se_CORSRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_CORSRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_CORSRule(entry, context); + return n.n(_me); }); }, "se_CORSRules"); var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -45636,8 +46195,8 @@ var require_dist_cjs69 = __commonJS({ }, "se_EncryptionConfiguration"); var se_ErrorDocument = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ED); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } return bn; }, "se_ErrorDocument"); @@ -45646,9 +46205,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_EventBridgeConfiguration"); var se_EventList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_Ev, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_Ev, entry); + return n.n(_me); }); }, "se_EventList"); var se_ExistingObjectReplication = /* @__PURE__ */ __name((input, context) => { @@ -45659,9 +46218,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ExistingObjectReplication"); var se_ExposeHeaders = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_EHx, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_EHx, entry); + return n.n(_me); }); }, "se_ExposeHeaders"); var se_FilterRule = /* @__PURE__ */ __name((input, context) => { @@ -45669,15 +46228,15 @@ var require_dist_cjs69 = __commonJS({ if (input[_N] != null) { bn.c(import_xml_builder.XmlNode.of(_FRN, input[_N]).n(_N)); } - if (input[_Va2] != null) { - bn.c(import_xml_builder.XmlNode.of(_FRV, input[_Va2]).n(_Va2)); + if (input[_Va] != null) { + bn.c(import_xml_builder.XmlNode.of(_FRV, input[_Va]).n(_Va)); } return bn; }, "se_FilterRule"); var se_FilterRuleList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_FilterRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_FilterRule(entry, context); + return n.n(_me); }); }, "se_FilterRuleList"); var se_GlacierJobParameters = /* @__PURE__ */ __name((input, context) => { @@ -45688,9 +46247,9 @@ var require_dist_cjs69 = __commonJS({ var se_Grant = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_G); if (input[_Gra] != null) { - const n3 = se_Grantee(input[_Gra], context).n(_Gra); - n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n3); + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } bn.cc(input, _Pe); return bn; @@ -45705,9 +46264,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Grantee"); var se_Grants = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Grant(entry, context); - return n3.n(_G); + return input.filter((e) => e != null).map((entry) => { + const n = se_Grant(entry, context); + return n.n(_G); }); }, "se_Grants"); var se_IndexDocument = /* @__PURE__ */ __name((input, context) => { @@ -45731,7 +46290,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_InputSerialization"); var se_IntelligentTieringAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ITAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_IntelligentTieringAndOperator"); @@ -45751,12 +46310,12 @@ var require_dist_cjs69 = __commonJS({ }, "se_IntelligentTieringConfiguration"); var se_IntelligentTieringFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ITF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } - if (input[_A2] != null) { - bn.c(se_IntelligentTieringAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A)); } return bn; }, "se_IntelligentTieringFilter"); @@ -45802,13 +46361,13 @@ var require_dist_cjs69 = __commonJS({ }, "se_InventoryEncryption"); var se_InventoryFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_IF); - bn.cc(input, _P2); + bn.cc(input, _P); return bn; }, "se_InventoryFilter"); var se_InventoryOptionalFields = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_IOF, entry); - return n3.n(_Fi); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_IOF, entry); + return n.n(_Fi); }); }, "se_InventoryOptionalFields"); var se_InventoryS3BucketDestination = /* @__PURE__ */ __name((input, context) => { @@ -45820,7 +46379,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_Fo] != null) { bn.c(import_xml_builder.XmlNode.of(_IFn, input[_Fo]).n(_Fo)); } - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_En] != null) { bn.c(se_InventoryEncryption(input[_En], context).n(_En)); } @@ -45860,15 +46419,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_LambdaFunctionConfiguration"); var se_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_LambdaFunctionConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_LambdaFunctionConfiguration(entry, context); + return n.n(_me); }); }, "se_LambdaFunctionConfigurationList"); var se_LifecycleExpiration = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LEi); if (input[_Dat] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); } if (input[_Da] != null) { bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da)); @@ -45884,7 +46443,7 @@ var require_dist_cjs69 = __commonJS({ bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); } bn.cc(input, _ID_); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_F] != null) { bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F)); } @@ -45908,7 +46467,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_LifecycleRule"); var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LRAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); if (input[_OSGT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); @@ -45920,9 +46479,9 @@ var require_dist_cjs69 = __commonJS({ }, "se_LifecycleRuleAndOperator"); var se_LifecycleRuleFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LRF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } if (input[_OSGT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); @@ -45930,15 +46489,15 @@ var require_dist_cjs69 = __commonJS({ if (input[_OSLT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); } - if (input[_A2] != null) { - bn.c(se_LifecycleRuleAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A)); } return bn; }, "se_LifecycleRuleFilter"); var se_LifecycleRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_LifecycleRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_LifecycleRule(entry, context); + return n.n(_me); }); }, "se_LifecycleRules"); var se_LocationInfo = /* @__PURE__ */ __name((input, context) => { @@ -45966,8 +46525,8 @@ var require_dist_cjs69 = __commonJS({ if (input[_N] != null) { bn.c(import_xml_builder.XmlNode.of(_MKe, input[_N]).n(_N)); } - if (input[_Va2] != null) { - bn.c(import_xml_builder.XmlNode.of(_MV, input[_Va2]).n(_Va2)); + if (input[_Va] != null) { + bn.c(import_xml_builder.XmlNode.of(_MV, input[_Va]).n(_Va)); } return bn; }, "se_MetadataEntry"); @@ -45990,7 +46549,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_Metrics"); var se_MetricsAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_MAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); bn.cc(input, _APAc); return bn; @@ -46009,13 +46568,13 @@ var require_dist_cjs69 = __commonJS({ const bn = new import_xml_builder.XmlNode(_MF); MetricsFilter.visit(input, { Prefix: (value) => { - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_P2, value).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P)); } }, Tag: (value) => { if (input[_Ta] != null) { - bn.c(se_Tag2(value, context).n(_Ta)); + bn.c(se_Tag(value, context).n(_Ta)); } }, AccessPointArn: (value) => { @@ -46024,8 +46583,8 @@ var require_dist_cjs69 = __commonJS({ } }, And: (value) => { - if (input[_A2] != null) { - bn.c(se_MetricsAndOperator(value, context).n(_A2)); + if (input[_A] != null) { + bn.c(se_MetricsAndOperator(value, context).n(_A)); } }, _: (name, value) => { @@ -46061,9 +46620,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_NoncurrentVersionTransition"); var se_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_NoncurrentVersionTransition(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_NoncurrentVersionTransition(entry, context); + return n.n(_me); }); }, "se_NoncurrentVersionTransitionList"); var se_NotificationConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46083,22 +46642,22 @@ var require_dist_cjs69 = __commonJS({ }, "se_NotificationConfiguration"); var se_NotificationConfigurationFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_NCF); - if (input[_K2] != null) { - bn.c(se_S3KeyFilter(input[_K2], context).n(_SKe)); + if (input[_K] != null) { + bn.c(se_S3KeyFilter(input[_K], context).n(_SKe)); } return bn; }, "se_NotificationConfigurationFilter"); var se_ObjectIdentifier = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_OI); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } if (input[_VI] != null) { bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI)); } bn.cc(input, _ETa); if (input[_LMT] != null) { - bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client25.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); + bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client4.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); } if (input[_Si] != null) { bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si)); @@ -46106,9 +46665,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ObjectIdentifier"); var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ObjectIdentifier(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ObjectIdentifier(entry, context); + return n.n(_me); }); }, "se_ObjectIdentifierList"); var se_ObjectLockConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46132,7 +46691,7 @@ var require_dist_cjs69 = __commonJS({ bn.c(import_xml_builder.XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); } if (input[_RUD] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_RUD]).toString()).n(_RUD)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_RUD]).toString()).n(_RUD)); } return bn; }, "se_ObjectLockRetention"); @@ -46177,13 +46736,13 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_OwnershipControlsRule"); var se_OwnershipControlsRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_OwnershipControlsRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_OwnershipControlsRule(entry, context); + return n.n(_me); }); }, "se_OwnershipControlsRules"); var se_ParquetInput = /* @__PURE__ */ __name((input, context) => { - const bn = new import_xml_builder.XmlNode(_PI2); + const bn = new import_xml_builder.XmlNode(_PI); return bn; }, "se_ParquetInput"); var se_PartitionedPrefix = /* @__PURE__ */ __name((input, context) => { @@ -46222,16 +46781,16 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_QueueConfiguration"); var se_QueueConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_QueueConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_QueueConfiguration(entry, context); + return n.n(_me); }); }, "se_QueueConfigurationList"); var se_Redirect = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Red); bn.cc(input, _HN); bn.cc(input, _HRC); - bn.cc(input, _Pr2); + bn.cc(input, _Pr); bn.cc(input, _RKPW); bn.cc(input, _RKW); return bn; @@ -46239,7 +46798,7 @@ var require_dist_cjs69 = __commonJS({ var se_RedirectAllRequestsTo = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RART); bn.cc(input, _HN); - bn.cc(input, _Pr2); + bn.cc(input, _Pr); return bn; }, "se_RedirectAllRequestsTo"); var se_ReplicaModifications = /* @__PURE__ */ __name((input, context) => { @@ -46261,7 +46820,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_Pri] != null) { bn.c(import_xml_builder.XmlNode.of(_Pri, String(input[_Pri])).n(_Pri)); } - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_F] != null) { bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F)); } @@ -46284,25 +46843,25 @@ var require_dist_cjs69 = __commonJS({ }, "se_ReplicationRule"); var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RRAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_ReplicationRuleAndOperator"); var se_ReplicationRuleFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RRF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } - if (input[_A2] != null) { - bn.c(se_ReplicationRuleAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A)); } return bn; }, "se_ReplicationRuleFilter"); var se_ReplicationRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ReplicationRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ReplicationRule(entry, context); + return n.n(_me); }); }, "se_ReplicationRules"); var se_ReplicationTime = /* @__PURE__ */ __name((input, context) => { @@ -46366,9 +46925,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_RoutingRule"); var se_RoutingRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_RoutingRule(entry, context); - return n3.n(_RRou); + return input.filter((e) => e != null).map((entry) => { + const n = se_RoutingRule(entry, context); + return n.n(_RRou); }); }, "se_RoutingRules"); var se_S3KeyFilter = /* @__PURE__ */ __name((input, context) => { @@ -46379,8 +46938,8 @@ var require_dist_cjs69 = __commonJS({ var se_S3Location = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_SL); bn.cc(input, _BN); - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_LP, input[_P2]).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_LP, input[_P]).n(_P)); } if (input[_En] != null) { bn.c(se_Encryption(input[_En], context).n(_En)); @@ -46389,8 +46948,8 @@ var require_dist_cjs69 = __commonJS({ bn.c(import_xml_builder.XmlNode.of(_OCACL, input[_CACL]).n(_CACL)); } bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc], context)); - if (input[_T2] != null) { - bn.c(se_Tagging(input[_T2], context).n(_T2)); + if (input[_T] != null) { + bn.c(se_Tagging(input[_T], context).n(_T)); } bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM], context)); bn.cc(input, _SC); @@ -46454,9 +47013,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ServerSideEncryptionRule"); var se_ServerSideEncryptionRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ServerSideEncryptionRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ServerSideEncryptionRule(entry, context); + return n.n(_me); }); }, "se_ServerSideEncryptionRules"); var se_SimplePrefix = /* @__PURE__ */ __name((input, context) => { @@ -46508,31 +47067,31 @@ var require_dist_cjs69 = __commonJS({ } return bn; }, "se_StorageClassAnalysisDataExport"); - var se_Tag2 = /* @__PURE__ */ __name((input, context) => { + var se_Tag = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Ta); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } - bn.cc(input, _Va2); + bn.cc(input, _Va); return bn; }, "se_Tag"); var se_Tagging = /* @__PURE__ */ __name((input, context) => { - const bn = new import_xml_builder.XmlNode(_T2); + const bn = new import_xml_builder.XmlNode(_T); bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS], context)); return bn; }, "se_Tagging"); var se_TagSet = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Tag2(entry, context); - return n3.n(_Ta); + return input.filter((e) => e != null).map((entry) => { + const n = se_Tag(entry, context); + return n.n(_Ta); }); }, "se_TagSet"); var se_TargetGrant = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_TGa); if (input[_Gra] != null) { - const n3 = se_Grantee(input[_Gra], context).n(_Gra); - n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n3); + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } if (input[_Pe] != null) { bn.c(import_xml_builder.XmlNode.of(_BLP, input[_Pe]).n(_Pe)); @@ -46540,9 +47099,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_TargetGrant"); var se_TargetGrants = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_TargetGrant(entry, context); - return n3.n(_G); + return input.filter((e) => e != null).map((entry) => { + const n = se_TargetGrant(entry, context); + return n.n(_G); }); }, "se_TargetGrants"); var se_TargetObjectKeyFormat = /* @__PURE__ */ __name((input, context) => { @@ -46566,9 +47125,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Tiering"); var se_TieringList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Tiering(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_Tiering(entry, context); + return n.n(_me); }); }, "se_TieringList"); var se_TopicConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46586,15 +47145,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_TopicConfiguration"); var se_TopicConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_TopicConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_TopicConfiguration(entry, context); + return n.n(_me); }); }, "se_TopicConfigurationList"); var se_Transition = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Tra); if (input[_Dat] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); } if (input[_Da] != null) { bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da)); @@ -46605,15 +47164,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Transition"); var se_TransitionList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Transition(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_Transition(entry, context); + return n.n(_me); }); }, "se_TransitionList"); var se_UserMetadata = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_MetadataEntry(entry, context); - return n3.n(_ME); + return input.filter((e) => e != null).map((entry) => { + const n = se_MetadataEntry(entry, context); + return n.n(_ME); }); }, "se_UserMetadata"); var se_VersioningConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46643,52 +47202,52 @@ var require_dist_cjs69 = __commonJS({ var de_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DAI] != null) { - contents[_DAI] = (0, import_smithy_client25.strictParseInt32)(output[_DAI]); + contents[_DAI] = (0, import_smithy_client4.strictParseInt32)(output[_DAI]); } return contents; }, "de_AbortIncompleteMultipartUpload"); var de_AccessControlTranslation = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_O] != null) { - contents[_O] = (0, import_smithy_client25.expectString)(output[_O]); + contents[_O] = (0, import_smithy_client4.expectString)(output[_O]); } return contents; }, "de_AccessControlTranslation"); var de_AllowedHeaders = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedHeaders"); var de_AllowedMethods = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedMethods"); var de_AllowedOrigins = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedOrigins"); var de_AnalyticsAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_AnalyticsAndOperator"); var de_AnalyticsConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output.Filter === "") { } else if (output[_F] != null) { - contents[_F] = de_AnalyticsFilter((0, import_smithy_client25.expectUnion)(output[_F]), context); + contents[_F] = de_AnalyticsFilter((0, import_smithy_client4.expectUnion)(output[_F]), context); } if (output[_SCA] != null) { contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context); @@ -46696,7 +47255,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_AnalyticsConfiguration"); var de_AnalyticsConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_AnalyticsConfiguration(entry, context); }); }, "de_AnalyticsConfigurationList"); @@ -46708,9 +47267,9 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_AnalyticsExportDestination"); var de_AnalyticsFilter = /* @__PURE__ */ __name((output, context) => { - if (output[_P2] != null) { + if (output[_P] != null) { return { - Prefix: (0, import_smithy_client25.expectString)(output[_P2]) + Prefix: (0, import_smithy_client4.expectString)(output[_P]) }; } if (output[_Ta] != null) { @@ -46718,9 +47277,9 @@ var require_dist_cjs69 = __commonJS({ Tag: de_Tag(output[_Ta], context) }; } - if (output[_A2] != null) { + if (output[_A] != null) { return { - And: de_AnalyticsAndOperator(output[_A2], context) + And: de_AnalyticsAndOperator(output[_A], context) }; } return { $unknown: Object.entries(output)[0] }; @@ -46728,83 +47287,77 @@ var require_dist_cjs69 = __commonJS({ var de_AnalyticsS3BucketDestination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Fo] != null) { - contents[_Fo] = (0, import_smithy_client25.expectString)(output[_Fo]); + contents[_Fo] = (0, import_smithy_client4.expectString)(output[_Fo]); } if (output[_BAI] != null) { - contents[_BAI] = (0, import_smithy_client25.expectString)(output[_BAI]); + contents[_BAI] = (0, import_smithy_client4.expectString)(output[_BAI]); } if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_AnalyticsS3BucketDestination"); var de_Bucket = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(output[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(output[_N]); } if (output[_CDr] != null) { - contents[_CDr] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_CDr])); + contents[_CDr] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_CDr])); } if (output[_BR] != null) { - contents[_BR] = (0, import_smithy_client25.expectString)(output[_BR]); + contents[_BR] = (0, import_smithy_client4.expectString)(output[_BR]); } return contents; }, "de_Bucket"); var de_Buckets = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Bucket(entry, context); }); }, "de_Buckets"); var de_Checksum = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_Checksum"); var de_ChecksumAlgorithmList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_ChecksumAlgorithmList"); var de_CommonPrefix = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_CommonPrefix"); var de_CommonPrefixList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_CommonPrefix(entry, context); }); }, "de_CommonPrefixList"); var de_Condition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HECRE] != null) { - contents[_HECRE] = (0, import_smithy_client25.expectString)(output[_HECRE]); + contents[_HECRE] = (0, import_smithy_client4.expectString)(output[_HECRE]); } if (output[_KPE] != null) { - contents[_KPE] = (0, import_smithy_client25.expectString)(output[_KPE]); + contents[_KPE] = (0, import_smithy_client4.expectString)(output[_KPE]); } return contents; }, "de_Condition"); @@ -46815,122 +47368,113 @@ var require_dist_cjs69 = __commonJS({ var de_CopyObjectResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_CopyObjectResult"); var de_CopyPartResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_CopyPartResult"); var de_CORSRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output.AllowedHeader === "") { contents[_AHl] = []; } else if (output[_AH] != null) { - contents[_AHl] = de_AllowedHeaders((0, import_smithy_client25.getArrayIfSingleItem)(output[_AH]), context); + contents[_AHl] = de_AllowedHeaders((0, import_smithy_client4.getArrayIfSingleItem)(output[_AH]), context); } if (output.AllowedMethod === "") { contents[_AMl] = []; } else if (output[_AM] != null) { - contents[_AMl] = de_AllowedMethods((0, import_smithy_client25.getArrayIfSingleItem)(output[_AM]), context); + contents[_AMl] = de_AllowedMethods((0, import_smithy_client4.getArrayIfSingleItem)(output[_AM]), context); } if (output.AllowedOrigin === "") { contents[_AOl] = []; } else if (output[_AO] != null) { - contents[_AOl] = de_AllowedOrigins((0, import_smithy_client25.getArrayIfSingleItem)(output[_AO]), context); + contents[_AOl] = de_AllowedOrigins((0, import_smithy_client4.getArrayIfSingleItem)(output[_AO]), context); } if (output.ExposeHeader === "") { contents[_EH] = []; } else if (output[_EHx] != null) { - contents[_EH] = de_ExposeHeaders((0, import_smithy_client25.getArrayIfSingleItem)(output[_EHx]), context); + contents[_EH] = de_ExposeHeaders((0, import_smithy_client4.getArrayIfSingleItem)(output[_EHx]), context); } if (output[_MAS] != null) { - contents[_MAS] = (0, import_smithy_client25.strictParseInt32)(output[_MAS]); + contents[_MAS] = (0, import_smithy_client4.strictParseInt32)(output[_MAS]); } return contents; }, "de_CORSRule"); var de_CORSRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_CORSRule(entry, context); }); }, "de_CORSRules"); var de_DefaultRetention = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mo] != null) { - contents[_Mo] = (0, import_smithy_client25.expectString)(output[_Mo]); + contents[_Mo] = (0, import_smithy_client4.expectString)(output[_Mo]); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_Y] != null) { - contents[_Y] = (0, import_smithy_client25.strictParseInt32)(output[_Y]); + contents[_Y] = (0, import_smithy_client4.strictParseInt32)(output[_Y]); } return contents; }, "de_DefaultRetention"); var de_DeletedObject = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_DM] != null) { - contents[_DM] = (0, import_smithy_client25.parseBoolean)(output[_DM]); + contents[_DM] = (0, import_smithy_client4.parseBoolean)(output[_DM]); } if (output[_DMVI] != null) { - contents[_DMVI] = (0, import_smithy_client25.expectString)(output[_DMVI]); + contents[_DMVI] = (0, import_smithy_client4.expectString)(output[_DMVI]); } return contents; }, "de_DeletedObject"); var de_DeletedObjects = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_DeletedObject(entry, context); }); }, "de_DeletedObjects"); @@ -46939,42 +47483,42 @@ var require_dist_cjs69 = __commonJS({ if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_IL] != null) { - contents[_IL] = (0, import_smithy_client25.parseBoolean)(output[_IL]); + contents[_IL] = (0, import_smithy_client4.parseBoolean)(output[_IL]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } return contents; }, "de_DeleteMarkerEntry"); var de_DeleteMarkerReplication = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_DeleteMarkerReplication"); var de_DeleteMarkers = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_DeleteMarkerEntry(entry, context); }); }, "de_DeleteMarkers"); var de_Destination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } if (output[_Ac] != null) { - contents[_Ac] = (0, import_smithy_client25.expectString)(output[_Ac]); + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_ACT] != null) { contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); @@ -46993,7 +47537,7 @@ var require_dist_cjs69 = __commonJS({ var de_EncryptionConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_RKKID] != null) { - contents[_RKKID] = (0, import_smithy_client25.expectString)(output[_RKKID]); + contents[_RKKID] = (0, import_smithy_client4.expectString)(output[_RKKID]); } return contents; }, "de_EncryptionConfiguration"); @@ -47003,39 +47547,39 @@ var require_dist_cjs69 = __commonJS({ }, "de_EndEvent"); var de__Error = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_Cod] != null) { - contents[_Cod] = (0, import_smithy_client25.expectString)(output[_Cod]); + contents[_Cod] = (0, import_smithy_client4.expectString)(output[_Cod]); } if (output[_Mes] != null) { - contents[_Mes] = (0, import_smithy_client25.expectString)(output[_Mes]); + contents[_Mes] = (0, import_smithy_client4.expectString)(output[_Mes]); } return contents; }, "de__Error"); var de_ErrorDetails = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_EC] != null) { - contents[_EC] = (0, import_smithy_client25.expectString)(output[_EC]); + contents[_EC] = (0, import_smithy_client4.expectString)(output[_EC]); } if (output[_EM] != null) { - contents[_EM] = (0, import_smithy_client25.expectString)(output[_EM]); + contents[_EM] = (0, import_smithy_client4.expectString)(output[_EM]); } return contents; }, "de_ErrorDetails"); var de_ErrorDocument = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } return contents; }, "de_ErrorDocument"); var de_Errors = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de__Error(entry, context); }); }, "de_Errors"); @@ -47044,34 +47588,34 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_EventBridgeConfiguration"); var de_EventList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_EventList"); var de_ExistingObjectReplication = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ExistingObjectReplication"); var de_ExposeHeaders = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_ExposeHeaders"); var de_FilterRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(output[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(output[_N]); } - if (output[_Va2] != null) { - contents[_Va2] = (0, import_smithy_client25.expectString)(output[_Va2]); + if (output[_Va] != null) { + contents[_Va] = (0, import_smithy_client4.expectString)(output[_Va]); } return contents; }, "de_FilterRule"); var de_FilterRuleList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_FilterRule(entry, context); }); }, "de_FilterRuleList"); @@ -47081,7 +47625,7 @@ var require_dist_cjs69 = __commonJS({ contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_Er] != null) { contents[_Er] = de_ErrorDetails(output[_Er], context); @@ -47090,25 +47634,25 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketMetadataTableConfigurationResult"); var de_GetObjectAttributesParts = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_PC2] != null) { - contents[_TPC] = (0, import_smithy_client25.strictParseInt32)(output[_PC2]); + if (output[_PC] != null) { + contents[_TPC] = (0, import_smithy_client4.strictParseInt32)(output[_PC]); } if (output[_PNM] != null) { - contents[_PNM] = (0, import_smithy_client25.expectString)(output[_PNM]); + contents[_PNM] = (0, import_smithy_client4.expectString)(output[_PNM]); } if (output[_NPNM] != null) { - contents[_NPNM] = (0, import_smithy_client25.expectString)(output[_NPNM]); + contents[_NPNM] = (0, import_smithy_client4.expectString)(output[_NPNM]); } if (output[_MP] != null) { - contents[_MP] = (0, import_smithy_client25.strictParseInt32)(output[_MP]); + contents[_MP] = (0, import_smithy_client4.strictParseInt32)(output[_MP]); } if (output[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(output[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(output[_IT]); } if (output.Part === "") { contents[_Part] = []; } else if (output[_Par] != null) { - contents[_Part] = de_PartsList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Par]), context); + contents[_Part] = de_PartsList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Par]), context); } return contents; }, "de_GetObjectAttributesParts"); @@ -47118,96 +47662,96 @@ var require_dist_cjs69 = __commonJS({ contents[_Gra] = de_Grantee(output[_Gra], context); } if (output[_Pe] != null) { - contents[_Pe] = (0, import_smithy_client25.expectString)(output[_Pe]); + contents[_Pe] = (0, import_smithy_client4.expectString)(output[_Pe]); } return contents; }, "de_Grant"); var de_Grantee = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } if (output[_EA] != null) { - contents[_EA] = (0, import_smithy_client25.expectString)(output[_EA]); + contents[_EA] = (0, import_smithy_client4.expectString)(output[_EA]); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_URI] != null) { - contents[_URI] = (0, import_smithy_client25.expectString)(output[_URI]); + contents[_URI] = (0, import_smithy_client4.expectString)(output[_URI]); } if (output[_x] != null) { - contents[_Ty] = (0, import_smithy_client25.expectString)(output[_x]); + contents[_Ty] = (0, import_smithy_client4.expectString)(output[_x]); } return contents; }, "de_Grantee"); var de_Grants = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Grant(entry, context); }); }, "de_Grants"); var de_IndexDocument = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Su] != null) { - contents[_Su] = (0, import_smithy_client25.expectString)(output[_Su]); + contents[_Su] = (0, import_smithy_client4.expectString)(output[_Su]); } return contents; }, "de_IndexDocument"); var de_Initiator = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } return contents; }, "de_Initiator"); var de_IntelligentTieringAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_IntelligentTieringAndOperator"); var de_IntelligentTieringConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_F] != null) { contents[_F] = de_IntelligentTieringFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output.Tiering === "") { contents[_Tie] = []; } else if (output[_Tier] != null) { - contents[_Tie] = de_TieringList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Tier]), context); + contents[_Tie] = de_TieringList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Tier]), context); } return contents; }, "de_IntelligentTieringConfiguration"); var de_IntelligentTieringConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_IntelligentTieringConfiguration(entry, context); }); }, "de_IntelligentTieringConfigurationList"); var de_IntelligentTieringFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } - if (output[_A2] != null) { - contents[_A2] = de_IntelligentTieringAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_IntelligentTieringAndOperator(output[_A], context); } return contents; }, "de_IntelligentTieringFilter"); @@ -47217,21 +47761,21 @@ var require_dist_cjs69 = __commonJS({ contents[_Des] = de_InventoryDestination(output[_Des], context); } if (output[_IE] != null) { - contents[_IE] = (0, import_smithy_client25.parseBoolean)(output[_IE]); + contents[_IE] = (0, import_smithy_client4.parseBoolean)(output[_IE]); } if (output[_F] != null) { contents[_F] = de_InventoryFilter(output[_F], context); } if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_IOV] != null) { - contents[_IOV] = (0, import_smithy_client25.expectString)(output[_IOV]); + contents[_IOV] = (0, import_smithy_client4.expectString)(output[_IOV]); } if (output.OptionalFields === "") { contents[_OF] = []; } else if (output[_OF] != null && output[_OF][_Fi] != null) { - contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client25.getArrayIfSingleItem)(output[_OF][_Fi]), context); + contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client4.getArrayIfSingleItem)(output[_OF][_Fi]), context); } if (output[_Sc] != null) { contents[_Sc] = de_InventorySchedule(output[_Sc], context); @@ -47239,7 +47783,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_InventoryConfiguration"); var de_InventoryConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_InventoryConfiguration(entry, context); }); }, "de_InventoryConfigurationList"); @@ -47262,29 +47806,29 @@ var require_dist_cjs69 = __commonJS({ }, "de_InventoryEncryption"); var de_InventoryFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_InventoryFilter"); var de_InventoryOptionalFields = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_InventoryOptionalFields"); var de_InventoryS3BucketDestination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_AIc] != null) { - contents[_AIc] = (0, import_smithy_client25.expectString)(output[_AIc]); + contents[_AIc] = (0, import_smithy_client4.expectString)(output[_AIc]); } if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } if (output[_Fo] != null) { - contents[_Fo] = (0, import_smithy_client25.expectString)(output[_Fo]); + contents[_Fo] = (0, import_smithy_client4.expectString)(output[_Fo]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_En] != null) { contents[_En] = de_InventoryEncryption(output[_En], context); @@ -47294,22 +47838,22 @@ var require_dist_cjs69 = __commonJS({ var de_InventorySchedule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Fr] != null) { - contents[_Fr] = (0, import_smithy_client25.expectString)(output[_Fr]); + contents[_Fr] = (0, import_smithy_client4.expectString)(output[_Fr]); } return contents; }, "de_InventorySchedule"); var de_LambdaFunctionConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_CF] != null) { - contents[_LFA] = (0, import_smithy_client25.expectString)(output[_CF]); + contents[_LFA] = (0, import_smithy_client4.expectString)(output[_CF]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -47317,20 +47861,20 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_LambdaFunctionConfiguration"); var de_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_LambdaFunctionConfiguration(entry, context); }); }, "de_LambdaFunctionConfigurationList"); var de_LifecycleExpiration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Dat] != null) { - contents[_Dat] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Dat])); + contents[_Dat] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Dat])); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_EODM] != null) { - contents[_EODM] = (0, import_smithy_client25.parseBoolean)(output[_EODM]); + contents[_EODM] = (0, import_smithy_client4.parseBoolean)(output[_EODM]); } return contents; }, "de_LifecycleExpiration"); @@ -47340,26 +47884,26 @@ var require_dist_cjs69 = __commonJS({ contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_F] != null) { contents[_F] = de_LifecycleRuleFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output.Transition === "") { contents[_Tr] = []; } else if (output[_Tra] != null) { - contents[_Tr] = de_TransitionList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Tra]), context); + contents[_Tr] = de_TransitionList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Tra]), context); } if (output.NoncurrentVersionTransition === "") { contents[_NVT] = []; } else if (output[_NVTo] != null) { - contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client25.getArrayIfSingleItem)(output[_NVTo]), context); + contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client4.getArrayIfSingleItem)(output[_NVTo]), context); } if (output[_NVE] != null) { contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); @@ -47371,58 +47915,58 @@ var require_dist_cjs69 = __commonJS({ }, "de_LifecycleRule"); var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } if (output[_OSGT] != null) { - contents[_OSGT] = (0, import_smithy_client25.strictParseLong)(output[_OSGT]); + contents[_OSGT] = (0, import_smithy_client4.strictParseLong)(output[_OSGT]); } if (output[_OSLT] != null) { - contents[_OSLT] = (0, import_smithy_client25.strictParseLong)(output[_OSLT]); + contents[_OSLT] = (0, import_smithy_client4.strictParseLong)(output[_OSLT]); } return contents; }, "de_LifecycleRuleAndOperator"); var de_LifecycleRuleFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } if (output[_OSGT] != null) { - contents[_OSGT] = (0, import_smithy_client25.strictParseLong)(output[_OSGT]); + contents[_OSGT] = (0, import_smithy_client4.strictParseLong)(output[_OSGT]); } if (output[_OSLT] != null) { - contents[_OSLT] = (0, import_smithy_client25.strictParseLong)(output[_OSLT]); + contents[_OSLT] = (0, import_smithy_client4.strictParseLong)(output[_OSLT]); } - if (output[_A2] != null) { - contents[_A2] = de_LifecycleRuleAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_LifecycleRuleAndOperator(output[_A], context); } return contents; }, "de_LifecycleRuleFilter"); var de_LifecycleRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_LifecycleRule(entry, context); }); }, "de_LifecycleRules"); var de_LoggingEnabled = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_TB] != null) { - contents[_TB] = (0, import_smithy_client25.expectString)(output[_TB]); + contents[_TB] = (0, import_smithy_client4.expectString)(output[_TB]); } if (output.TargetGrants === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_G] != null) { - contents[_TG] = de_TargetGrants((0, import_smithy_client25.getArrayIfSingleItem)(output[_TG][_G]), context); + contents[_TG] = de_TargetGrants((0, import_smithy_client4.getArrayIfSingleItem)(output[_TG][_G]), context); } if (output[_TP] != null) { - contents[_TP] = (0, import_smithy_client25.expectString)(output[_TP]); + contents[_TP] = (0, import_smithy_client4.expectString)(output[_TP]); } if (output[_TOKF] != null) { contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context); @@ -47439,7 +47983,7 @@ var require_dist_cjs69 = __commonJS({ var de_Metrics = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_ETv] != null) { contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); @@ -47448,39 +47992,39 @@ var require_dist_cjs69 = __commonJS({ }, "de_Metrics"); var de_MetricsAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } if (output[_APAc] != null) { - contents[_APAc] = (0, import_smithy_client25.expectString)(output[_APAc]); + contents[_APAc] = (0, import_smithy_client4.expectString)(output[_APAc]); } return contents; }, "de_MetricsAndOperator"); var de_MetricsConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output.Filter === "") { } else if (output[_F] != null) { - contents[_F] = de_MetricsFilter((0, import_smithy_client25.expectUnion)(output[_F]), context); + contents[_F] = de_MetricsFilter((0, import_smithy_client4.expectUnion)(output[_F]), context); } return contents; }, "de_MetricsConfiguration"); var de_MetricsConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_MetricsConfiguration(entry, context); }); }, "de_MetricsConfigurationList"); var de_MetricsFilter = /* @__PURE__ */ __name((output, context) => { - if (output[_P2] != null) { + if (output[_P] != null) { return { - Prefix: (0, import_smithy_client25.expectString)(output[_P2]) + Prefix: (0, import_smithy_client4.expectString)(output[_P]) }; } if (output[_Ta] != null) { @@ -47490,12 +48034,12 @@ var require_dist_cjs69 = __commonJS({ } if (output[_APAc] != null) { return { - AccessPointArn: (0, import_smithy_client25.expectString)(output[_APAc]) + AccessPointArn: (0, import_smithy_client4.expectString)(output[_APAc]) }; } - if (output[_A2] != null) { + if (output[_A] != null) { return { - And: de_MetricsAndOperator(output[_A2], context) + And: de_MetricsAndOperator(output[_A], context) }; } return { $unknown: Object.entries(output)[0] }; @@ -47503,16 +48047,16 @@ var require_dist_cjs69 = __commonJS({ var de_MultipartUpload = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(output[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(output[_UI]); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_Ini] != null) { - contents[_Ini] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Ini])); + contents[_Ini] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Ini])); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47520,78 +48064,72 @@ var require_dist_cjs69 = __commonJS({ if (output[_In] != null) { contents[_In] = de_Initiator(output[_In], context); } - if (output[_CA2] != null) { - contents[_CA2] = (0, import_smithy_client25.expectString)(output[_CA2]); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + if (output[_CA] != null) { + contents[_CA] = (0, import_smithy_client4.expectString)(output[_CA]); } return contents; }, "de_MultipartUpload"); var de_MultipartUploadList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_MultipartUpload(entry, context); }); }, "de_MultipartUploadList"); var de_NoncurrentVersionExpiration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ND] != null) { - contents[_ND] = (0, import_smithy_client25.strictParseInt32)(output[_ND]); + contents[_ND] = (0, import_smithy_client4.strictParseInt32)(output[_ND]); } if (output[_NNV] != null) { - contents[_NNV] = (0, import_smithy_client25.strictParseInt32)(output[_NNV]); + contents[_NNV] = (0, import_smithy_client4.strictParseInt32)(output[_NNV]); } return contents; }, "de_NoncurrentVersionExpiration"); var de_NoncurrentVersionTransition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ND] != null) { - contents[_ND] = (0, import_smithy_client25.strictParseInt32)(output[_ND]); + contents[_ND] = (0, import_smithy_client4.strictParseInt32)(output[_ND]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_NNV] != null) { - contents[_NNV] = (0, import_smithy_client25.strictParseInt32)(output[_NNV]); + contents[_NNV] = (0, import_smithy_client4.strictParseInt32)(output[_NNV]); } return contents; }, "de_NoncurrentVersionTransition"); var de_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_NoncurrentVersionTransition(entry, context); }); }, "de_NoncurrentVersionTransitionList"); var de_NotificationConfigurationFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_SKe] != null) { - contents[_K2] = de_S3KeyFilter(output[_SKe], context); + contents[_K] = de_S3KeyFilter(output[_SKe], context); } return contents; }, "de_NotificationConfigurationFilter"); var de__Object = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents[_CA2] = []; - } else if (output[_CA2] != null) { - contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client25.getArrayIfSingleItem)(output[_CA2]), context); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client4.getArrayIfSingleItem)(output[_CA]), context); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47602,14 +48140,14 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de__Object"); var de_ObjectList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de__Object(entry, context); }); }, "de_ObjectList"); var de_ObjectLockConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OLE] != null) { - contents[_OLE] = (0, import_smithy_client25.expectString)(output[_OLE]); + contents[_OLE] = (0, import_smithy_client4.expectString)(output[_OLE]); } if (output[_Ru] != null) { contents[_Ru] = de_ObjectLockRule(output[_Ru], context); @@ -47619,17 +48157,17 @@ var require_dist_cjs69 = __commonJS({ var de_ObjectLockLegalHold = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ObjectLockLegalHold"); var de_ObjectLockRetention = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mo] != null) { - contents[_Mo] = (0, import_smithy_client25.expectString)(output[_Mo]); + contents[_Mo] = (0, import_smithy_client4.expectString)(output[_Mo]); } if (output[_RUD] != null) { - contents[_RUD] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_RUD])); + contents[_RUD] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_RUD])); } return contents; }, "de_ObjectLockRetention"); @@ -47643,58 +48181,52 @@ var require_dist_cjs69 = __commonJS({ var de_ObjectPart = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PN] != null) { - contents[_PN] = (0, import_smithy_client25.strictParseInt32)(output[_PN]); + contents[_PN] = (0, import_smithy_client4.strictParseInt32)(output[_PN]); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_ObjectPart"); var de_ObjectVersion = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents[_CA2] = []; - } else if (output[_CA2] != null) { - contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client25.getArrayIfSingleItem)(output[_CA2]), context); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client4.getArrayIfSingleItem)(output[_CA]), context); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_IL] != null) { - contents[_IL] = (0, import_smithy_client25.parseBoolean)(output[_IL]); + contents[_IL] = (0, import_smithy_client4.parseBoolean)(output[_IL]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47705,17 +48237,17 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_ObjectVersion"); var de_ObjectVersionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ObjectVersion(entry, context); }); }, "de_ObjectVersionList"); var de_Owner = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } return contents; }, "de_Owner"); @@ -47724,118 +48256,115 @@ var require_dist_cjs69 = __commonJS({ if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_OwnershipControls"); var de_OwnershipControlsRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OO] != null) { - contents[_OO] = (0, import_smithy_client25.expectString)(output[_OO]); + contents[_OO] = (0, import_smithy_client4.expectString)(output[_OO]); } return contents; }, "de_OwnershipControlsRule"); var de_OwnershipControlsRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_OwnershipControlsRule(entry, context); }); }, "de_OwnershipControlsRules"); var de_Part = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PN] != null) { - contents[_PN] = (0, import_smithy_client25.strictParseInt32)(output[_PN]); + contents[_PN] = (0, import_smithy_client4.strictParseInt32)(output[_PN]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_Part"); var de_PartitionedPrefix = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PDS] != null) { - contents[_PDS] = (0, import_smithy_client25.expectString)(output[_PDS]); + contents[_PDS] = (0, import_smithy_client4.expectString)(output[_PDS]); } return contents; }, "de_PartitionedPrefix"); var de_Parts = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Part(entry, context); }); }, "de_Parts"); var de_PartsList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ObjectPart(entry, context); }); }, "de_PartsList"); var de_PolicyStatus = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_IP] != null) { - contents[_IP] = (0, import_smithy_client25.parseBoolean)(output[_IP]); + contents[_IP] = (0, import_smithy_client4.parseBoolean)(output[_IP]); } return contents; }, "de_PolicyStatus"); var de_Progress = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BS] != null) { - contents[_BS] = (0, import_smithy_client25.strictParseLong)(output[_BS]); + contents[_BS] = (0, import_smithy_client4.strictParseLong)(output[_BS]); } if (output[_BP] != null) { - contents[_BP] = (0, import_smithy_client25.strictParseLong)(output[_BP]); + contents[_BP] = (0, import_smithy_client4.strictParseLong)(output[_BP]); } if (output[_BRy] != null) { - contents[_BRy] = (0, import_smithy_client25.strictParseLong)(output[_BRy]); + contents[_BRy] = (0, import_smithy_client4.strictParseLong)(output[_BRy]); } return contents; }, "de_Progress"); var de_PublicAccessBlockConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BPA] != null) { - contents[_BPA] = (0, import_smithy_client25.parseBoolean)(output[_BPA]); + contents[_BPA] = (0, import_smithy_client4.parseBoolean)(output[_BPA]); } if (output[_IPA] != null) { - contents[_IPA] = (0, import_smithy_client25.parseBoolean)(output[_IPA]); + contents[_IPA] = (0, import_smithy_client4.parseBoolean)(output[_IPA]); } if (output[_BPP] != null) { - contents[_BPP] = (0, import_smithy_client25.parseBoolean)(output[_BPP]); + contents[_BPP] = (0, import_smithy_client4.parseBoolean)(output[_BPP]); } if (output[_RPB] != null) { - contents[_RPB] = (0, import_smithy_client25.parseBoolean)(output[_RPB]); + contents[_RPB] = (0, import_smithy_client4.parseBoolean)(output[_RPB]); } return contents; }, "de_PublicAccessBlockConfiguration"); var de_QueueConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_Qu] != null) { - contents[_QA] = (0, import_smithy_client25.expectString)(output[_Qu]); + contents[_QA] = (0, import_smithy_client4.expectString)(output[_Qu]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -47843,74 +48372,74 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_QueueConfiguration"); var de_QueueConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_QueueConfiguration(entry, context); }); }, "de_QueueConfigurationList"); var de_Redirect = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HN] != null) { - contents[_HN] = (0, import_smithy_client25.expectString)(output[_HN]); + contents[_HN] = (0, import_smithy_client4.expectString)(output[_HN]); } if (output[_HRC] != null) { - contents[_HRC] = (0, import_smithy_client25.expectString)(output[_HRC]); + contents[_HRC] = (0, import_smithy_client4.expectString)(output[_HRC]); } - if (output[_Pr2] != null) { - contents[_Pr2] = (0, import_smithy_client25.expectString)(output[_Pr2]); + if (output[_Pr] != null) { + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } if (output[_RKPW] != null) { - contents[_RKPW] = (0, import_smithy_client25.expectString)(output[_RKPW]); + contents[_RKPW] = (0, import_smithy_client4.expectString)(output[_RKPW]); } if (output[_RKW] != null) { - contents[_RKW] = (0, import_smithy_client25.expectString)(output[_RKW]); + contents[_RKW] = (0, import_smithy_client4.expectString)(output[_RKW]); } return contents; }, "de_Redirect"); var de_RedirectAllRequestsTo = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HN] != null) { - contents[_HN] = (0, import_smithy_client25.expectString)(output[_HN]); + contents[_HN] = (0, import_smithy_client4.expectString)(output[_HN]); } - if (output[_Pr2] != null) { - contents[_Pr2] = (0, import_smithy_client25.expectString)(output[_Pr2]); + if (output[_Pr] != null) { + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } return contents; }, "de_RedirectAllRequestsTo"); var de_ReplicaModifications = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ReplicaModifications"); var de_ReplicationConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Ro] != null) { - contents[_Ro] = (0, import_smithy_client25.expectString)(output[_Ro]); + contents[_Ro] = (0, import_smithy_client4.expectString)(output[_Ro]); } if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_ReplicationRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_ReplicationRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_ReplicationConfiguration"); var de_ReplicationRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_Pri] != null) { - contents[_Pri] = (0, import_smithy_client25.strictParseInt32)(output[_Pri]); + contents[_Pri] = (0, import_smithy_client4.strictParseInt32)(output[_Pri]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_F] != null) { contents[_F] = de_ReplicationRuleFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_SSC] != null) { contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); @@ -47928,38 +48457,38 @@ var require_dist_cjs69 = __commonJS({ }, "de_ReplicationRule"); var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_ReplicationRuleAndOperator"); var de_ReplicationRuleFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } - if (output[_A2] != null) { - contents[_A2] = de_ReplicationRuleAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_ReplicationRuleAndOperator(output[_A], context); } return contents; }, "de_ReplicationRuleFilter"); var de_ReplicationRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ReplicationRule(entry, context); }); }, "de_ReplicationRules"); var de_ReplicationTime = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_Tim] != null) { contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context); @@ -47969,17 +48498,17 @@ var require_dist_cjs69 = __commonJS({ var de_ReplicationTimeValue = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mi] != null) { - contents[_Mi] = (0, import_smithy_client25.strictParseInt32)(output[_Mi]); + contents[_Mi] = (0, import_smithy_client4.strictParseInt32)(output[_Mi]); } return contents; }, "de_ReplicationTimeValue"); var de_RestoreStatus = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_IRIP] != null) { - contents[_IRIP] = (0, import_smithy_client25.parseBoolean)(output[_IRIP]); + contents[_IRIP] = (0, import_smithy_client4.parseBoolean)(output[_IRIP]); } if (output[_RED] != null) { - contents[_RED] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_RED])); + contents[_RED] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_RED])); } return contents; }, "de_RestoreStatus"); @@ -47994,7 +48523,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_RoutingRule"); var de_RoutingRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_RoutingRule(entry, context); }); }, "de_RoutingRules"); @@ -48003,33 +48532,33 @@ var require_dist_cjs69 = __commonJS({ if (output.FilterRule === "") { contents[_FRi] = []; } else if (output[_FR] != null) { - contents[_FRi] = de_FilterRuleList((0, import_smithy_client25.getArrayIfSingleItem)(output[_FR]), context); + contents[_FRi] = de_FilterRuleList((0, import_smithy_client4.getArrayIfSingleItem)(output[_FR]), context); } return contents; }, "de_S3KeyFilter"); var de_S3TablesDestinationResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_TBA] != null) { - contents[_TBA] = (0, import_smithy_client25.expectString)(output[_TBA]); + contents[_TBA] = (0, import_smithy_client4.expectString)(output[_TBA]); } if (output[_TN] != null) { - contents[_TN] = (0, import_smithy_client25.expectString)(output[_TN]); + contents[_TN] = (0, import_smithy_client4.expectString)(output[_TN]); } if (output[_TAa] != null) { - contents[_TAa] = (0, import_smithy_client25.expectString)(output[_TAa]); + contents[_TAa] = (0, import_smithy_client4.expectString)(output[_TAa]); } if (output[_TNa] != null) { - contents[_TNa] = (0, import_smithy_client25.expectString)(output[_TNa]); + contents[_TNa] = (0, import_smithy_client4.expectString)(output[_TNa]); } return contents; }, "de_S3TablesDestinationResult"); var de_ServerSideEncryptionByDefault = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_SSEA] != null) { - contents[_SSEA] = (0, import_smithy_client25.expectString)(output[_SSEA]); + contents[_SSEA] = (0, import_smithy_client4.expectString)(output[_SSEA]); } if (output[_KMSMKID] != null) { - contents[_KMSMKID] = (0, import_smithy_client25.expectString)(output[_KMSMKID]); + contents[_KMSMKID] = (0, import_smithy_client4.expectString)(output[_KMSMKID]); } return contents; }, "de_ServerSideEncryptionByDefault"); @@ -48038,7 +48567,7 @@ var require_dist_cjs69 = __commonJS({ if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_ServerSideEncryptionConfiguration"); @@ -48048,28 +48577,28 @@ var require_dist_cjs69 = __commonJS({ contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context); } if (output[_BKE] != null) { - contents[_BKE] = (0, import_smithy_client25.parseBoolean)(output[_BKE]); + contents[_BKE] = (0, import_smithy_client4.parseBoolean)(output[_BKE]); } return contents; }, "de_ServerSideEncryptionRule"); var de_ServerSideEncryptionRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ServerSideEncryptionRule(entry, context); }); }, "de_ServerSideEncryptionRules"); var de_SessionCredentials = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_AKI2] != null) { - contents[_AKI2] = (0, import_smithy_client25.expectString)(output[_AKI2]); + if (output[_AKI] != null) { + contents[_AKI] = (0, import_smithy_client4.expectString)(output[_AKI]); } - if (output[_SAK2] != null) { - contents[_SAK2] = (0, import_smithy_client25.expectString)(output[_SAK2]); + if (output[_SAK] != null) { + contents[_SAK] = (0, import_smithy_client4.expectString)(output[_SAK]); } - if (output[_ST2] != null) { - contents[_ST2] = (0, import_smithy_client25.expectString)(output[_ST2]); + if (output[_ST] != null) { + contents[_ST] = (0, import_smithy_client4.expectString)(output[_ST]); } if (output[_Exp] != null) { - contents[_Exp] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Exp])); + contents[_Exp] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Exp])); } return contents; }, "de_SessionCredentials"); @@ -48090,14 +48619,14 @@ var require_dist_cjs69 = __commonJS({ var de_SSEKMS = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_KI] != null) { - contents[_KI] = (0, import_smithy_client25.expectString)(output[_KI]); + contents[_KI] = (0, import_smithy_client4.expectString)(output[_KI]); } return contents; }, "de_SSEKMS"); var de_SseKmsEncryptedObjects = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_SseKmsEncryptedObjects"); @@ -48108,13 +48637,13 @@ var require_dist_cjs69 = __commonJS({ var de_Stats = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BS] != null) { - contents[_BS] = (0, import_smithy_client25.strictParseLong)(output[_BS]); + contents[_BS] = (0, import_smithy_client4.strictParseLong)(output[_BS]); } if (output[_BP] != null) { - contents[_BP] = (0, import_smithy_client25.strictParseLong)(output[_BP]); + contents[_BP] = (0, import_smithy_client4.strictParseLong)(output[_BP]); } if (output[_BRy] != null) { - contents[_BRy] = (0, import_smithy_client25.strictParseLong)(output[_BRy]); + contents[_BRy] = (0, import_smithy_client4.strictParseLong)(output[_BRy]); } return contents; }, "de_Stats"); @@ -48128,7 +48657,7 @@ var require_dist_cjs69 = __commonJS({ var de_StorageClassAnalysisDataExport = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OSV] != null) { - contents[_OSV] = (0, import_smithy_client25.expectString)(output[_OSV]); + contents[_OSV] = (0, import_smithy_client4.expectString)(output[_OSV]); } if (output[_Des] != null) { contents[_Des] = de_AnalyticsExportDestination(output[_Des], context); @@ -48137,16 +48666,16 @@ var require_dist_cjs69 = __commonJS({ }, "de_StorageClassAnalysisDataExport"); var de_Tag = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } - if (output[_Va2] != null) { - contents[_Va2] = (0, import_smithy_client25.expectString)(output[_Va2]); + if (output[_Va] != null) { + contents[_Va] = (0, import_smithy_client4.expectString)(output[_Va]); } return contents; }, "de_Tag"); var de_TagSet = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Tag(entry, context); }); }, "de_TagSet"); @@ -48156,12 +48685,12 @@ var require_dist_cjs69 = __commonJS({ contents[_Gra] = de_Grantee(output[_Gra], context); } if (output[_Pe] != null) { - contents[_Pe] = (0, import_smithy_client25.expectString)(output[_Pe]); + contents[_Pe] = (0, import_smithy_client4.expectString)(output[_Pe]); } return contents; }, "de_TargetGrant"); var de_TargetGrants = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_TargetGrant(entry, context); }); }, "de_TargetGrants"); @@ -48178,30 +48707,30 @@ var require_dist_cjs69 = __commonJS({ var de_Tiering = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_AT] != null) { - contents[_AT] = (0, import_smithy_client25.expectString)(output[_AT]); + contents[_AT] = (0, import_smithy_client4.expectString)(output[_AT]); } return contents; }, "de_Tiering"); var de_TieringList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Tiering(entry, context); }); }, "de_TieringList"); var de_TopicConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_Top] != null) { - contents[_TA] = (0, import_smithy_client25.expectString)(output[_Top]); + contents[_TA] = (0, import_smithy_client4.expectString)(output[_Top]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -48209,36 +48738,36 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_TopicConfiguration"); var de_TopicConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_TopicConfiguration(entry, context); }); }, "de_TopicConfigurationList"); var de_Transition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Dat] != null) { - contents[_Dat] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Dat])); + contents[_Dat] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Dat])); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } return contents; }, "de_Transition"); var de_TransitionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Transition(entry, context); }); }, "de_TransitionList"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }), "deserializeMetadata"); - var collectBodyString2 = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client25.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); - var _A2 = "And"; + var collectBodyString2 = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client4.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); + var _A = "And"; var _AAO = "AnalyticsAndOperator"; var _AC = "AnalyticsConfiguration"; var _ACL = "ACL"; @@ -48255,7 +48784,7 @@ var require_dist_cjs69 = __commonJS({ var _AI = "AnalyticsId"; var _AIMU = "AbortIncompleteMultipartUpload"; var _AIc = "AccountId"; - var _AKI2 = "AccessKeyId"; + var _AKI = "AccessKeyId"; var _AM = "AllowedMethod"; var _AMl = "AllowedMethods"; var _AO = "AllowedOrigin"; @@ -48263,8 +48792,8 @@ var require_dist_cjs69 = __commonJS({ var _APA = "AccessPointAlias"; var _APAc = "AccessPointArn"; var _AQRD = "AllowQuotedRecordDelimiter"; - var _AR2 = "AcceptRanges"; - var _ARI2 = "AbortRuleId"; + var _AR = "AcceptRanges"; + var _ARI = "AbortRuleId"; var _AS = "ArchiveStatus"; var _ASBD = "AnalyticsS3BucketDestination"; var _ASEFF = "AnalyticsS3ExportFileFormat"; @@ -48293,14 +48822,13 @@ var require_dist_cjs69 = __commonJS({ var _BT = "BucketType"; var _BVS = "BucketVersioningStatus"; var _Bu = "Buckets"; - var _C2 = "Credentials"; - var _CA2 = "ChecksumAlgorithm"; + var _C = "Credentials"; + var _CA = "ChecksumAlgorithm"; var _CACL = "CannedACL"; var _CBC = "CreateBucketConfiguration"; var _CC = "CacheControl"; var _CCRC = "ChecksumCRC32"; var _CCRCC = "ChecksumCRC32C"; - var _CCRCNVME = "ChecksumCRC64NVME"; var _CD = "ContentDisposition"; var _CDr = "CreationDate"; var _CE = "ContentEncoding"; @@ -48333,10 +48861,9 @@ var require_dist_cjs69 = __commonJS({ var _CSVI = "CopySourceVersionId"; var _CSVIn = "CSVInput"; var _CSVO = "CSVOutput"; - var _CT = "ChecksumType"; - var _CTo = "ContentType"; + var _CT = "ContentType"; + var _CTo = "ContinuationToken"; var _CTom = "CompressionType"; - var _CTon = "ContinuationToken"; var _Ch = "Checksum"; var _Co = "Contents"; var _Cod = "Code"; @@ -48359,7 +48886,7 @@ var require_dist_cjs69 = __commonJS({ var _Del = "Delete"; var _Des = "Destination"; var _Desc = "Description"; - var _E2 = "Expires"; + var _E = "Expires"; var _EA = "EmailAddress"; var _EBC = "EventBridgeConfiguration"; var _EBO = "ExpectedBucketOwner"; @@ -48457,7 +48984,7 @@ var require_dist_cjs69 = __commonJS({ var _JSONI = "JSONInput"; var _JSONO = "JSONOutput"; var _JSONT = "JSONType"; - var _K2 = "Key"; + var _K = "Key"; var _KC = "KeyCount"; var _KI = "KeyId"; var _KM = "KeyMarker"; @@ -48498,7 +49025,6 @@ var require_dist_cjs69 = __commonJS({ var _MK = "MaxKeys"; var _MKe = "MetadataKey"; var _MM = "MissingMeta"; - var _MOS = "MpuObjectSize"; var _MP = "MaxParts"; var _MS = "MetricsStatus"; var _MTC = "MetadataTableConfiguration"; @@ -48556,11 +49082,11 @@ var require_dist_cjs69 = __commonJS({ var _OSb = "ObjectSize"; var _OVI = "ObjectVersionId"; var _Ob = "Objects"; - var _P2 = "Prefix"; + var _P = "Prefix"; var _PABC = "PublicAccessBlockConfiguration"; - var _PC2 = "PartsCount"; + var _PC = "PartsCount"; var _PDS = "PartitionDateSource"; - var _PI2 = "ParquetInput"; + var _PI = "ParquetInput"; var _PN = "PartNumber"; var _PNM = "PartNumberMarker"; var _PP = "PartitionedPrefix"; @@ -48569,7 +49095,7 @@ var require_dist_cjs69 = __commonJS({ var _Parq = "Parquet"; var _Part = "Parts"; var _Pe = "Permission"; - var _Pr2 = "Protocol"; + var _Pr = "Protocol"; var _Pri = "Priority"; var _Q = "Quiet"; var _QA = "QueueArn"; @@ -48624,7 +49150,7 @@ var require_dist_cjs69 = __commonJS({ var _Rul = "Rules"; var _S = "Status"; var _SA = "StartAfter"; - var _SAK2 = "SecretAccessKey"; + var _SAK = "SecretAccessKey"; var _SBD = "S3BucketDestination"; var _SC = "StorageClass"; var _SCA = "StorageClassAnalysis"; @@ -48657,7 +49183,7 @@ var require_dist_cjs69 = __commonJS({ var _SSEKMSKI = "SSEKMSKeyId"; var _SSER = "ServerSideEncryptionRule"; var _SSES = "SSES3"; - var _ST2 = "SessionToken"; + var _ST = "SessionToken"; var _STBA = "S3TablesBucketArn"; var _STD = "S3TablesDestination"; var _STDR = "S3TablesDestinationResult"; @@ -48668,12 +49194,12 @@ var require_dist_cjs69 = __commonJS({ var _Si = "Size"; var _St = "Start"; var _Su = "Suffix"; - var _T2 = "Tagging"; + var _T = "Tagging"; var _TA = "TopicArn"; var _TAa = "TableArn"; var _TB = "TargetBucket"; var _TBA = "TableBucketArn"; - var _TC2 = "TagCount"; + var _TC = "TagCount"; var _TCo = "TopicConfiguration"; var _TCop = "TopicConfigurations"; var _TD = "TaggingDirective"; @@ -48704,18 +49230,18 @@ var require_dist_cjs69 = __commonJS({ var _UM = "UserMetadata"; var _URI = "URI"; var _Up = "Uploads"; - var _V2 = "Version"; + var _V = "Version"; var _VC = "VersionCount"; var _VCe = "VersioningConfiguration"; var _VI = "VersionId"; var _VIM = "VersionIdMarker"; - var _Va2 = "Value"; + var _Va = "Value"; var _Ve = "Versions"; var _WC = "WebsiteConfiguration"; var _WOB = "WriteOffsetBytes"; var _WRL = "WebsiteRedirectLocation"; var _Y = "Years"; - var _a2 = "analytics"; + var _a = "analytics"; var _ac = "accelerate"; var _acl = "acl"; var _ar = "accept-ranges"; @@ -48753,7 +49279,7 @@ var require_dist_cjs69 = __commonJS({ var _lo = "location"; var _log = "logging"; var _lt = "list-type"; - var _m2 = "metrics"; + var _m = "metrics"; var _mT = "metadataTable"; var _ma = "marker"; var _mb = "max-buckets"; @@ -48812,7 +49338,6 @@ var require_dist_cjs69 = __commonJS({ var _xaca = "x-amz-checksum-algorithm"; var _xacc = "x-amz-checksum-crc32"; var _xacc_ = "x-amz-checksum-crc32c"; - var _xacc__ = "x-amz-checksum-crc64nvme"; var _xacm = "x-amz-checksum-mode"; var _xacrsba = "x-amz-confirm-remove-self-bucket-access"; var _xacs = "x-amz-checksum-sha1"; @@ -48828,7 +49353,6 @@ var require_dist_cjs69 = __commonJS({ var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; var _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5"; var _xacsvi = "x-amz-copy-source-version-id"; - var _xact = "x-amz-checksum-type"; var _xadm = "x-amz-delete-marker"; var _xae = "x-amz-expiration"; var _xaebo = "x-amz-expected-bucket-owner"; @@ -48846,7 +49370,6 @@ var require_dist_cjs69 = __commonJS({ var _xafhlm = "x-amz-fwd-header-last-modified"; var _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; var _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; - var _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; var _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; var _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; var _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; @@ -48879,7 +49402,6 @@ var require_dist_cjs69 = __commonJS({ var _xam = "x-amz-mfa"; var _xamd = "x-amz-metadata-directive"; var _xamm = "x-amz-missing-meta"; - var _xamos = "x-amz-mp-object-size"; var _xamp = "x-amz-max-parts"; var _xampc = "x-amz-mp-parts-count"; var _xaoa = "x-amz-object-attributes"; @@ -48916,24 +49438,23 @@ var require_dist_cjs69 = __commonJS({ var _xawob = "x-amz-write-offset-bytes"; var _xawrl = "x-amz-website-redirect-location"; var _xi = "x-id"; - var CreateSessionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s3.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "CreateSession", {}).n("S3Client", "CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() { - static { - __name(this, "CreateSessionCommand"); - } }; - var import_runtimeConfig5 = require_runtimeConfig2(); - var import_region_config_resolver3 = require_dist_cjs53(); - var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + __name(_CreateSessionCommand, "CreateSessionCommand"); + var CreateSessionCommand = _CreateSessionCommand; + var import_runtimeConfig = require_runtimeConfig4(); + var import_region_config_resolver = require_dist_cjs53(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -48963,69 +49484,62 @@ var require_dist_cjs69 = __commonJS({ } }; }, "getHttpAuthExtensionConfiguration"); - var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }, "resolveHttpAuthRuntimeConfig"); - var asPartial3 = /* @__PURE__ */ __name((t3) => t3, "asPartial"); - var resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial3((0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_smithy_client25.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_protocol_http11.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial3(getHttpAuthExtensionConfiguration3(runtimeConfig)) + ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client25.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http11.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig3(extensionConfiguration) + ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); - var S3Client = class extends import_smithy_client25.Client { - static { - __name(this, "S3Client"); - } - /** - * The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}. - */ - config; + var _S3Client = class _S3Client extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters3(_config_0); - const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_flexible_checksums.resolveFlexibleChecksumsConfig)(_config_2); - const _config_4 = (0, import_middleware_retry5.resolveRetryConfig)(_config_3); - const _config_5 = (0, import_config_resolver5.resolveRegionConfig)(_config_4); - const _config_6 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_5); - const _config_7 = (0, import_middleware_endpoint6.resolveEndpointConfig)(_config_6); + const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3); + const _config_5 = (0, import_config_resolver.resolveRegionConfig)(_config_4); + const _config_6 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_5); + const _config_7 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_6); const _config_8 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_7); - const _config_9 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_8); + const _config_9 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_8); const _config_10 = (0, import_middleware_sdk_s32.resolveS3Config)(_config_9, { session: [() => this, CreateSessionCommand] }); - const _config_11 = resolveRuntimeExtensions3(_config_10, configuration2?.extensions || []); + const _config_11 = resolveRuntimeExtensions(_config_10, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_11); this.config = _config_11; - this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( - (0, import_core32.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { - httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultS3HttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new import_core32.DefaultIdentityProviderConfig({ + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultS3HttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, "aws.auth#sigv4a": config.credentials }) }) ); - this.middlewareStack.use((0, import_core32.getHttpSigningPlugin)(this.config)); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_sdk_s32.getValidateBucketNamePlugin)(this.config)); this.middlewareStack.use((0, import_middleware_expect_continue.getAddExpectContinuePlugin)(this.config)); this.middlewareStack.use((0, import_middleware_sdk_s32.getRegionRedirectMiddlewarePlugin)(this.config)); @@ -49041,1392 +49555,1324 @@ var require_dist_cjs69 = __commonJS({ super.destroy(); } }; + __name(_S3Client, "S3Client"); + var S3Client = _S3Client; var import_middleware_sdk_s33 = require_dist_cjs29(); - var AbortMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _AbortMultipartUploadCommand = class _AbortMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s33.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "AbortMultipartUpload", {}).n("S3Client", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() { - static { - __name(this, "AbortMultipartUploadCommand"); - } }; + __name(_AbortMultipartUploadCommand, "AbortMultipartUploadCommand"); + var AbortMultipartUploadCommand = _AbortMultipartUploadCommand; var import_middleware_sdk_s34 = require_dist_cjs29(); - var import_middleware_ssec = require_dist_cjs66(); - var CompleteMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var import_middleware_ssec = require_dist_cjs68(); + var _CompleteMultipartUploadCommand = class _CompleteMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s34.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CompleteMultipartUpload", {}).n("S3Client", "CompleteMultipartUploadCommand").f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() { - static { - __name(this, "CompleteMultipartUploadCommand"); - } }; + __name(_CompleteMultipartUploadCommand, "CompleteMultipartUploadCommand"); + var CompleteMultipartUploadCommand = _CompleteMultipartUploadCommand; var import_middleware_sdk_s35 = require_dist_cjs29(); - var CopyObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CopyObjectCommand = class _CopyObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, CopySource: { type: "contextParams", name: "CopySource" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s35.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CopyObject", {}).n("S3Client", "CopyObjectCommand").f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog).ser(se_CopyObjectCommand).de(de_CopyObjectCommand).build() { - static { - __name(this, "CopyObjectCommand"); - } }; - var import_middleware_location_constraint = require_dist_cjs67(); + __name(_CopyObjectCommand, "CopyObjectCommand"); + var CopyObjectCommand = _CopyObjectCommand; + var import_middleware_location_constraint = require_dist_cjs69(); var import_middleware_sdk_s36 = require_dist_cjs29(); - var CreateBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateBucketCommand = class _CreateBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, DisableAccessPoints: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s36.getThrow200ExceptionsPlugin)(config), (0, import_middleware_location_constraint.getLocationConstraintPlugin)(config) ]; }).s("AmazonS3", "CreateBucket", {}).n("S3Client", "CreateBucketCommand").f(void 0, void 0).ser(se_CreateBucketCommand).de(de_CreateBucketCommand).build() { - static { - __name(this, "CreateBucketCommand"); - } }; - var CreateBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_CreateBucketCommand, "CreateBucketCommand"); + var CreateBucketCommand = _CreateBucketCommand; + var _CreateBucketMetadataTableConfigurationCommand = class _CreateBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}).n("S3Client", "CreateBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_CreateBucketMetadataTableConfigurationCommand).de(de_CreateBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "CreateBucketMetadataTableConfigurationCommand"); - } }; + __name(_CreateBucketMetadataTableConfigurationCommand, "CreateBucketMetadataTableConfigurationCommand"); + var CreateBucketMetadataTableConfigurationCommand = _CreateBucketMetadataTableConfigurationCommand; var import_middleware_sdk_s37 = require_dist_cjs29(); - var CreateMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateMultipartUploadCommand = class _CreateMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s37.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CreateMultipartUpload", {}).n("S3Client", "CreateMultipartUploadCommand").f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog).ser(se_CreateMultipartUploadCommand).de(de_CreateMultipartUploadCommand).build() { - static { - __name(this, "CreateMultipartUploadCommand"); - } }; - var DeleteBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_CreateMultipartUploadCommand, "CreateMultipartUploadCommand"); + var CreateMultipartUploadCommand = _CreateMultipartUploadCommand; + var _DeleteBucketAnalyticsConfigurationCommand = class _DeleteBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}).n("S3Client", "DeleteBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketAnalyticsConfigurationCommand).de(de_DeleteBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "DeleteBucketAnalyticsConfigurationCommand"); - } }; - var DeleteBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketAnalyticsConfigurationCommand, "DeleteBucketAnalyticsConfigurationCommand"); + var DeleteBucketAnalyticsConfigurationCommand = _DeleteBucketAnalyticsConfigurationCommand; + var _DeleteBucketCommand = class _DeleteBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucket", {}).n("S3Client", "DeleteBucketCommand").f(void 0, void 0).ser(se_DeleteBucketCommand).de(de_DeleteBucketCommand).build() { - static { - __name(this, "DeleteBucketCommand"); - } }; - var DeleteBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketCommand, "DeleteBucketCommand"); + var DeleteBucketCommand = _DeleteBucketCommand; + var _DeleteBucketCorsCommand = class _DeleteBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketCors", {}).n("S3Client", "DeleteBucketCorsCommand").f(void 0, void 0).ser(se_DeleteBucketCorsCommand).de(de_DeleteBucketCorsCommand).build() { - static { - __name(this, "DeleteBucketCorsCommand"); - } }; - var DeleteBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketCorsCommand, "DeleteBucketCorsCommand"); + var DeleteBucketCorsCommand = _DeleteBucketCorsCommand; + var _DeleteBucketEncryptionCommand = class _DeleteBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketEncryption", {}).n("S3Client", "DeleteBucketEncryptionCommand").f(void 0, void 0).ser(se_DeleteBucketEncryptionCommand).de(de_DeleteBucketEncryptionCommand).build() { - static { - __name(this, "DeleteBucketEncryptionCommand"); - } }; - var DeleteBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketEncryptionCommand, "DeleteBucketEncryptionCommand"); + var DeleteBucketEncryptionCommand = _DeleteBucketEncryptionCommand; + var _DeleteBucketIntelligentTieringConfigurationCommand = class _DeleteBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}).n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketIntelligentTieringConfigurationCommand).de(de_DeleteBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "DeleteBucketIntelligentTieringConfigurationCommand"); - } }; - var DeleteBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketIntelligentTieringConfigurationCommand, "DeleteBucketIntelligentTieringConfigurationCommand"); + var DeleteBucketIntelligentTieringConfigurationCommand = _DeleteBucketIntelligentTieringConfigurationCommand; + var _DeleteBucketInventoryConfigurationCommand = class _DeleteBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketInventoryConfiguration", {}).n("S3Client", "DeleteBucketInventoryConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketInventoryConfigurationCommand).de(de_DeleteBucketInventoryConfigurationCommand).build() { - static { - __name(this, "DeleteBucketInventoryConfigurationCommand"); - } }; - var DeleteBucketLifecycleCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketInventoryConfigurationCommand, "DeleteBucketInventoryConfigurationCommand"); + var DeleteBucketInventoryConfigurationCommand = _DeleteBucketInventoryConfigurationCommand; + var _DeleteBucketLifecycleCommand = class _DeleteBucketLifecycleCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketLifecycle", {}).n("S3Client", "DeleteBucketLifecycleCommand").f(void 0, void 0).ser(se_DeleteBucketLifecycleCommand).de(de_DeleteBucketLifecycleCommand).build() { - static { - __name(this, "DeleteBucketLifecycleCommand"); - } }; - var DeleteBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketLifecycleCommand, "DeleteBucketLifecycleCommand"); + var DeleteBucketLifecycleCommand = _DeleteBucketLifecycleCommand; + var _DeleteBucketMetadataTableConfigurationCommand = class _DeleteBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}).n("S3Client", "DeleteBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetadataTableConfigurationCommand).de(de_DeleteBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "DeleteBucketMetadataTableConfigurationCommand"); - } }; - var DeleteBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketMetadataTableConfigurationCommand, "DeleteBucketMetadataTableConfigurationCommand"); + var DeleteBucketMetadataTableConfigurationCommand = _DeleteBucketMetadataTableConfigurationCommand; + var _DeleteBucketMetricsConfigurationCommand = class _DeleteBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketMetricsConfiguration", {}).n("S3Client", "DeleteBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetricsConfigurationCommand).de(de_DeleteBucketMetricsConfigurationCommand).build() { - static { - __name(this, "DeleteBucketMetricsConfigurationCommand"); - } }; - var DeleteBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketMetricsConfigurationCommand, "DeleteBucketMetricsConfigurationCommand"); + var DeleteBucketMetricsConfigurationCommand = _DeleteBucketMetricsConfigurationCommand; + var _DeleteBucketOwnershipControlsCommand = class _DeleteBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketOwnershipControls", {}).n("S3Client", "DeleteBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_DeleteBucketOwnershipControlsCommand).de(de_DeleteBucketOwnershipControlsCommand).build() { - static { - __name(this, "DeleteBucketOwnershipControlsCommand"); - } }; - var DeleteBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketOwnershipControlsCommand, "DeleteBucketOwnershipControlsCommand"); + var DeleteBucketOwnershipControlsCommand = _DeleteBucketOwnershipControlsCommand; + var _DeleteBucketPolicyCommand = class _DeleteBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketPolicy", {}).n("S3Client", "DeleteBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteBucketPolicyCommand).de(de_DeleteBucketPolicyCommand).build() { - static { - __name(this, "DeleteBucketPolicyCommand"); - } }; - var DeleteBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketPolicyCommand, "DeleteBucketPolicyCommand"); + var DeleteBucketPolicyCommand = _DeleteBucketPolicyCommand; + var _DeleteBucketReplicationCommand = class _DeleteBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketReplication", {}).n("S3Client", "DeleteBucketReplicationCommand").f(void 0, void 0).ser(se_DeleteBucketReplicationCommand).de(de_DeleteBucketReplicationCommand).build() { - static { - __name(this, "DeleteBucketReplicationCommand"); - } }; - var DeleteBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketReplicationCommand, "DeleteBucketReplicationCommand"); + var DeleteBucketReplicationCommand = _DeleteBucketReplicationCommand; + var _DeleteBucketTaggingCommand = class _DeleteBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketTagging", {}).n("S3Client", "DeleteBucketTaggingCommand").f(void 0, void 0).ser(se_DeleteBucketTaggingCommand).de(de_DeleteBucketTaggingCommand).build() { - static { - __name(this, "DeleteBucketTaggingCommand"); - } }; - var DeleteBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketTaggingCommand, "DeleteBucketTaggingCommand"); + var DeleteBucketTaggingCommand = _DeleteBucketTaggingCommand; + var _DeleteBucketWebsiteCommand = class _DeleteBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketWebsite", {}).n("S3Client", "DeleteBucketWebsiteCommand").f(void 0, void 0).ser(se_DeleteBucketWebsiteCommand).de(de_DeleteBucketWebsiteCommand).build() { - static { - __name(this, "DeleteBucketWebsiteCommand"); - } }; + __name(_DeleteBucketWebsiteCommand, "DeleteBucketWebsiteCommand"); + var DeleteBucketWebsiteCommand = _DeleteBucketWebsiteCommand; var import_middleware_sdk_s38 = require_dist_cjs29(); - var DeleteObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectCommand = class _DeleteObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s38.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObject", {}).n("S3Client", "DeleteObjectCommand").f(void 0, void 0).ser(se_DeleteObjectCommand).de(de_DeleteObjectCommand).build() { - static { - __name(this, "DeleteObjectCommand"); - } }; + __name(_DeleteObjectCommand, "DeleteObjectCommand"); + var DeleteObjectCommand = _DeleteObjectCommand; var import_middleware_sdk_s39 = require_dist_cjs29(); - var DeleteObjectsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectsCommand = class _DeleteObjectsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObjects", {}).n("S3Client", "DeleteObjectsCommand").f(void 0, void 0).ser(se_DeleteObjectsCommand).de(de_DeleteObjectsCommand).build() { - static { - __name(this, "DeleteObjectsCommand"); - } }; + __name(_DeleteObjectsCommand, "DeleteObjectsCommand"); + var DeleteObjectsCommand = _DeleteObjectsCommand; var import_middleware_sdk_s310 = require_dist_cjs29(); - var DeleteObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectTaggingCommand = class _DeleteObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s310.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObjectTagging", {}).n("S3Client", "DeleteObjectTaggingCommand").f(void 0, void 0).ser(se_DeleteObjectTaggingCommand).de(de_DeleteObjectTaggingCommand).build() { - static { - __name(this, "DeleteObjectTaggingCommand"); - } }; - var DeletePublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteObjectTaggingCommand, "DeleteObjectTaggingCommand"); + var DeleteObjectTaggingCommand = _DeleteObjectTaggingCommand; + var _DeletePublicAccessBlockCommand = class _DeletePublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeletePublicAccessBlock", {}).n("S3Client", "DeletePublicAccessBlockCommand").f(void 0, void 0).ser(se_DeletePublicAccessBlockCommand).de(de_DeletePublicAccessBlockCommand).build() { - static { - __name(this, "DeletePublicAccessBlockCommand"); - } }; + __name(_DeletePublicAccessBlockCommand, "DeletePublicAccessBlockCommand"); + var DeletePublicAccessBlockCommand = _DeletePublicAccessBlockCommand; var import_middleware_sdk_s311 = require_dist_cjs29(); - var GetBucketAccelerateConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAccelerateConfigurationCommand = class _GetBucketAccelerateConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s311.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAccelerateConfiguration", {}).n("S3Client", "GetBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAccelerateConfigurationCommand).de(de_GetBucketAccelerateConfigurationCommand).build() { - static { - __name(this, "GetBucketAccelerateConfigurationCommand"); - } }; + __name(_GetBucketAccelerateConfigurationCommand, "GetBucketAccelerateConfigurationCommand"); + var GetBucketAccelerateConfigurationCommand = _GetBucketAccelerateConfigurationCommand; var import_middleware_sdk_s312 = require_dist_cjs29(); - var GetBucketAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAclCommand = class _GetBucketAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s312.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAcl", {}).n("S3Client", "GetBucketAclCommand").f(void 0, void 0).ser(se_GetBucketAclCommand).de(de_GetBucketAclCommand).build() { - static { - __name(this, "GetBucketAclCommand"); - } }; + __name(_GetBucketAclCommand, "GetBucketAclCommand"); + var GetBucketAclCommand = _GetBucketAclCommand; var import_middleware_sdk_s313 = require_dist_cjs29(); - var GetBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAnalyticsConfigurationCommand = class _GetBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s313.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAnalyticsConfiguration", {}).n("S3Client", "GetBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAnalyticsConfigurationCommand).de(de_GetBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "GetBucketAnalyticsConfigurationCommand"); - } }; + __name(_GetBucketAnalyticsConfigurationCommand, "GetBucketAnalyticsConfigurationCommand"); + var GetBucketAnalyticsConfigurationCommand = _GetBucketAnalyticsConfigurationCommand; var import_middleware_sdk_s314 = require_dist_cjs29(); - var GetBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketCorsCommand = class _GetBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s314.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketCors", {}).n("S3Client", "GetBucketCorsCommand").f(void 0, void 0).ser(se_GetBucketCorsCommand).de(de_GetBucketCorsCommand).build() { - static { - __name(this, "GetBucketCorsCommand"); - } }; + __name(_GetBucketCorsCommand, "GetBucketCorsCommand"); + var GetBucketCorsCommand = _GetBucketCorsCommand; var import_middleware_sdk_s315 = require_dist_cjs29(); - var GetBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketEncryptionCommand = class _GetBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s315.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketEncryption", {}).n("S3Client", "GetBucketEncryptionCommand").f(void 0, GetBucketEncryptionOutputFilterSensitiveLog).ser(se_GetBucketEncryptionCommand).de(de_GetBucketEncryptionCommand).build() { - static { - __name(this, "GetBucketEncryptionCommand"); - } }; + __name(_GetBucketEncryptionCommand, "GetBucketEncryptionCommand"); + var GetBucketEncryptionCommand = _GetBucketEncryptionCommand; var import_middleware_sdk_s316 = require_dist_cjs29(); - var GetBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketIntelligentTieringConfigurationCommand = class _GetBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s316.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}).n("S3Client", "GetBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_GetBucketIntelligentTieringConfigurationCommand).de(de_GetBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "GetBucketIntelligentTieringConfigurationCommand"); - } }; + __name(_GetBucketIntelligentTieringConfigurationCommand, "GetBucketIntelligentTieringConfigurationCommand"); + var GetBucketIntelligentTieringConfigurationCommand = _GetBucketIntelligentTieringConfigurationCommand; var import_middleware_sdk_s317 = require_dist_cjs29(); - var GetBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketInventoryConfigurationCommand = class _GetBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s317.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketInventoryConfiguration", {}).n("S3Client", "GetBucketInventoryConfigurationCommand").f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog).ser(se_GetBucketInventoryConfigurationCommand).de(de_GetBucketInventoryConfigurationCommand).build() { - static { - __name(this, "GetBucketInventoryConfigurationCommand"); - } }; + __name(_GetBucketInventoryConfigurationCommand, "GetBucketInventoryConfigurationCommand"); + var GetBucketInventoryConfigurationCommand = _GetBucketInventoryConfigurationCommand; var import_middleware_sdk_s318 = require_dist_cjs29(); - var GetBucketLifecycleConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLifecycleConfigurationCommand = class _GetBucketLifecycleConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s318.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLifecycleConfiguration", {}).n("S3Client", "GetBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_GetBucketLifecycleConfigurationCommand).de(de_GetBucketLifecycleConfigurationCommand).build() { - static { - __name(this, "GetBucketLifecycleConfigurationCommand"); - } }; + __name(_GetBucketLifecycleConfigurationCommand, "GetBucketLifecycleConfigurationCommand"); + var GetBucketLifecycleConfigurationCommand = _GetBucketLifecycleConfigurationCommand; var import_middleware_sdk_s319 = require_dist_cjs29(); - var GetBucketLocationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLocationCommand = class _GetBucketLocationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s319.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLocation", {}).n("S3Client", "GetBucketLocationCommand").f(void 0, void 0).ser(se_GetBucketLocationCommand).de(de_GetBucketLocationCommand).build() { - static { - __name(this, "GetBucketLocationCommand"); - } }; + __name(_GetBucketLocationCommand, "GetBucketLocationCommand"); + var GetBucketLocationCommand = _GetBucketLocationCommand; var import_middleware_sdk_s320 = require_dist_cjs29(); - var GetBucketLoggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLoggingCommand = class _GetBucketLoggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s320.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLogging", {}).n("S3Client", "GetBucketLoggingCommand").f(void 0, void 0).ser(se_GetBucketLoggingCommand).de(de_GetBucketLoggingCommand).build() { - static { - __name(this, "GetBucketLoggingCommand"); - } }; + __name(_GetBucketLoggingCommand, "GetBucketLoggingCommand"); + var GetBucketLoggingCommand = _GetBucketLoggingCommand; var import_middleware_sdk_s321 = require_dist_cjs29(); - var GetBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketMetadataTableConfigurationCommand = class _GetBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s321.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketMetadataTableConfiguration", {}).n("S3Client", "GetBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetadataTableConfigurationCommand).de(de_GetBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "GetBucketMetadataTableConfigurationCommand"); - } }; + __name(_GetBucketMetadataTableConfigurationCommand, "GetBucketMetadataTableConfigurationCommand"); + var GetBucketMetadataTableConfigurationCommand = _GetBucketMetadataTableConfigurationCommand; var import_middleware_sdk_s322 = require_dist_cjs29(); - var GetBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketMetricsConfigurationCommand = class _GetBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s322.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketMetricsConfiguration", {}).n("S3Client", "GetBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetricsConfigurationCommand).de(de_GetBucketMetricsConfigurationCommand).build() { - static { - __name(this, "GetBucketMetricsConfigurationCommand"); - } }; + __name(_GetBucketMetricsConfigurationCommand, "GetBucketMetricsConfigurationCommand"); + var GetBucketMetricsConfigurationCommand = _GetBucketMetricsConfigurationCommand; var import_middleware_sdk_s323 = require_dist_cjs29(); - var GetBucketNotificationConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketNotificationConfigurationCommand = class _GetBucketNotificationConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s323.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketNotificationConfiguration", {}).n("S3Client", "GetBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_GetBucketNotificationConfigurationCommand).de(de_GetBucketNotificationConfigurationCommand).build() { - static { - __name(this, "GetBucketNotificationConfigurationCommand"); - } }; + __name(_GetBucketNotificationConfigurationCommand, "GetBucketNotificationConfigurationCommand"); + var GetBucketNotificationConfigurationCommand = _GetBucketNotificationConfigurationCommand; var import_middleware_sdk_s324 = require_dist_cjs29(); - var GetBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketOwnershipControlsCommand = class _GetBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s324.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketOwnershipControls", {}).n("S3Client", "GetBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_GetBucketOwnershipControlsCommand).de(de_GetBucketOwnershipControlsCommand).build() { - static { - __name(this, "GetBucketOwnershipControlsCommand"); - } }; + __name(_GetBucketOwnershipControlsCommand, "GetBucketOwnershipControlsCommand"); + var GetBucketOwnershipControlsCommand = _GetBucketOwnershipControlsCommand; var import_middleware_sdk_s325 = require_dist_cjs29(); - var GetBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketPolicyCommand = class _GetBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s325.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketPolicy", {}).n("S3Client", "GetBucketPolicyCommand").f(void 0, void 0).ser(se_GetBucketPolicyCommand).de(de_GetBucketPolicyCommand).build() { - static { - __name(this, "GetBucketPolicyCommand"); - } }; + __name(_GetBucketPolicyCommand, "GetBucketPolicyCommand"); + var GetBucketPolicyCommand = _GetBucketPolicyCommand; var import_middleware_sdk_s326 = require_dist_cjs29(); - var GetBucketPolicyStatusCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketPolicyStatusCommand = class _GetBucketPolicyStatusCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s326.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketPolicyStatus", {}).n("S3Client", "GetBucketPolicyStatusCommand").f(void 0, void 0).ser(se_GetBucketPolicyStatusCommand).de(de_GetBucketPolicyStatusCommand).build() { - static { - __name(this, "GetBucketPolicyStatusCommand"); - } }; + __name(_GetBucketPolicyStatusCommand, "GetBucketPolicyStatusCommand"); + var GetBucketPolicyStatusCommand = _GetBucketPolicyStatusCommand; var import_middleware_sdk_s327 = require_dist_cjs29(); - var GetBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketReplicationCommand = class _GetBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s327.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketReplication", {}).n("S3Client", "GetBucketReplicationCommand").f(void 0, void 0).ser(se_GetBucketReplicationCommand).de(de_GetBucketReplicationCommand).build() { - static { - __name(this, "GetBucketReplicationCommand"); - } }; + __name(_GetBucketReplicationCommand, "GetBucketReplicationCommand"); + var GetBucketReplicationCommand = _GetBucketReplicationCommand; var import_middleware_sdk_s328 = require_dist_cjs29(); - var GetBucketRequestPaymentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketRequestPaymentCommand = class _GetBucketRequestPaymentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s328.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketRequestPayment", {}).n("S3Client", "GetBucketRequestPaymentCommand").f(void 0, void 0).ser(se_GetBucketRequestPaymentCommand).de(de_GetBucketRequestPaymentCommand).build() { - static { - __name(this, "GetBucketRequestPaymentCommand"); - } }; + __name(_GetBucketRequestPaymentCommand, "GetBucketRequestPaymentCommand"); + var GetBucketRequestPaymentCommand = _GetBucketRequestPaymentCommand; var import_middleware_sdk_s329 = require_dist_cjs29(); - var GetBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketTaggingCommand = class _GetBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s329.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketTagging", {}).n("S3Client", "GetBucketTaggingCommand").f(void 0, void 0).ser(se_GetBucketTaggingCommand).de(de_GetBucketTaggingCommand).build() { - static { - __name(this, "GetBucketTaggingCommand"); - } }; + __name(_GetBucketTaggingCommand, "GetBucketTaggingCommand"); + var GetBucketTaggingCommand = _GetBucketTaggingCommand; var import_middleware_sdk_s330 = require_dist_cjs29(); - var GetBucketVersioningCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketVersioningCommand = class _GetBucketVersioningCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s330.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketVersioning", {}).n("S3Client", "GetBucketVersioningCommand").f(void 0, void 0).ser(se_GetBucketVersioningCommand).de(de_GetBucketVersioningCommand).build() { - static { - __name(this, "GetBucketVersioningCommand"); - } }; + __name(_GetBucketVersioningCommand, "GetBucketVersioningCommand"); + var GetBucketVersioningCommand = _GetBucketVersioningCommand; var import_middleware_sdk_s331 = require_dist_cjs29(); - var GetBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketWebsiteCommand = class _GetBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s331.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketWebsite", {}).n("S3Client", "GetBucketWebsiteCommand").f(void 0, void 0).ser(se_GetBucketWebsiteCommand).de(de_GetBucketWebsiteCommand).build() { - static { - __name(this, "GetBucketWebsiteCommand"); - } }; + __name(_GetBucketWebsiteCommand, "GetBucketWebsiteCommand"); + var GetBucketWebsiteCommand = _GetBucketWebsiteCommand; var import_middleware_sdk_s332 = require_dist_cjs29(); - var GetObjectAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectAclCommand = class _GetObjectAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s332.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectAcl", {}).n("S3Client", "GetObjectAclCommand").f(void 0, void 0).ser(se_GetObjectAclCommand).de(de_GetObjectAclCommand).build() { - static { - __name(this, "GetObjectAclCommand"); - } }; + __name(_GetObjectAclCommand, "GetObjectAclCommand"); + var GetObjectAclCommand = _GetObjectAclCommand; var import_middleware_sdk_s333 = require_dist_cjs29(); - var GetObjectAttributesCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectAttributesCommand = class _GetObjectAttributesCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s333.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "GetObjectAttributes", {}).n("S3Client", "GetObjectAttributesCommand").f(GetObjectAttributesRequestFilterSensitiveLog, void 0).ser(se_GetObjectAttributesCommand).de(de_GetObjectAttributesCommand).build() { - static { - __name(this, "GetObjectAttributesCommand"); - } }; + __name(_GetObjectAttributesCommand, "GetObjectAttributesCommand"); + var GetObjectAttributesCommand = _GetObjectAttributesCommand; var import_middleware_sdk_s334 = require_dist_cjs29(); - var GetObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectCommand = class _GetObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", - responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1"] + responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"] }), (0, import_middleware_ssec.getSsecPlugin)(config), (0, import_middleware_sdk_s334.getS3ExpiresMiddlewarePlugin)(config) ]; }).s("AmazonS3", "GetObject", {}).n("S3Client", "GetObjectCommand").f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog).ser(se_GetObjectCommand).de(de_GetObjectCommand).build() { - static { - __name(this, "GetObjectCommand"); - } }; + __name(_GetObjectCommand, "GetObjectCommand"); + var GetObjectCommand = _GetObjectCommand; var import_middleware_sdk_s335 = require_dist_cjs29(); - var GetObjectLegalHoldCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectLegalHoldCommand = class _GetObjectLegalHoldCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s335.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectLegalHold", {}).n("S3Client", "GetObjectLegalHoldCommand").f(void 0, void 0).ser(se_GetObjectLegalHoldCommand).de(de_GetObjectLegalHoldCommand).build() { - static { - __name(this, "GetObjectLegalHoldCommand"); - } }; + __name(_GetObjectLegalHoldCommand, "GetObjectLegalHoldCommand"); + var GetObjectLegalHoldCommand = _GetObjectLegalHoldCommand; var import_middleware_sdk_s336 = require_dist_cjs29(); - var GetObjectLockConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectLockConfigurationCommand = class _GetObjectLockConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s336.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectLockConfiguration", {}).n("S3Client", "GetObjectLockConfigurationCommand").f(void 0, void 0).ser(se_GetObjectLockConfigurationCommand).de(de_GetObjectLockConfigurationCommand).build() { - static { - __name(this, "GetObjectLockConfigurationCommand"); - } }; + __name(_GetObjectLockConfigurationCommand, "GetObjectLockConfigurationCommand"); + var GetObjectLockConfigurationCommand = _GetObjectLockConfigurationCommand; var import_middleware_sdk_s337 = require_dist_cjs29(); - var GetObjectRetentionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectRetentionCommand = class _GetObjectRetentionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s337.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectRetention", {}).n("S3Client", "GetObjectRetentionCommand").f(void 0, void 0).ser(se_GetObjectRetentionCommand).de(de_GetObjectRetentionCommand).build() { - static { - __name(this, "GetObjectRetentionCommand"); - } }; + __name(_GetObjectRetentionCommand, "GetObjectRetentionCommand"); + var GetObjectRetentionCommand = _GetObjectRetentionCommand; var import_middleware_sdk_s338 = require_dist_cjs29(); - var GetObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectTaggingCommand = class _GetObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s338.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectTagging", {}).n("S3Client", "GetObjectTaggingCommand").f(void 0, void 0).ser(se_GetObjectTaggingCommand).de(de_GetObjectTaggingCommand).build() { - static { - __name(this, "GetObjectTaggingCommand"); - } }; - var GetObjectTorrentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_GetObjectTaggingCommand, "GetObjectTaggingCommand"); + var GetObjectTaggingCommand = _GetObjectTaggingCommand; + var _GetObjectTorrentCommand = class _GetObjectTorrentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "GetObjectTorrent", {}).n("S3Client", "GetObjectTorrentCommand").f(void 0, GetObjectTorrentOutputFilterSensitiveLog).ser(se_GetObjectTorrentCommand).de(de_GetObjectTorrentCommand).build() { - static { - __name(this, "GetObjectTorrentCommand"); - } }; + __name(_GetObjectTorrentCommand, "GetObjectTorrentCommand"); + var GetObjectTorrentCommand = _GetObjectTorrentCommand; var import_middleware_sdk_s339 = require_dist_cjs29(); - var GetPublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetPublicAccessBlockCommand = class _GetPublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s339.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetPublicAccessBlock", {}).n("S3Client", "GetPublicAccessBlockCommand").f(void 0, void 0).ser(se_GetPublicAccessBlockCommand).de(de_GetPublicAccessBlockCommand).build() { - static { - __name(this, "GetPublicAccessBlockCommand"); - } }; + __name(_GetPublicAccessBlockCommand, "GetPublicAccessBlockCommand"); + var GetPublicAccessBlockCommand = _GetPublicAccessBlockCommand; var import_middleware_sdk_s340 = require_dist_cjs29(); - var HeadBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _HeadBucketCommand = class _HeadBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s340.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "HeadBucket", {}).n("S3Client", "HeadBucketCommand").f(void 0, void 0).ser(se_HeadBucketCommand).de(de_HeadBucketCommand).build() { - static { - __name(this, "HeadBucketCommand"); - } }; + __name(_HeadBucketCommand, "HeadBucketCommand"); + var HeadBucketCommand = _HeadBucketCommand; var import_middleware_sdk_s341 = require_dist_cjs29(); - var HeadObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _HeadObjectCommand = class _HeadObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s341.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config), (0, import_middleware_sdk_s341.getS3ExpiresMiddlewarePlugin)(config) ]; }).s("AmazonS3", "HeadObject", {}).n("S3Client", "HeadObjectCommand").f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog).ser(se_HeadObjectCommand).de(de_HeadObjectCommand).build() { - static { - __name(this, "HeadObjectCommand"); - } }; + __name(_HeadObjectCommand, "HeadObjectCommand"); + var HeadObjectCommand = _HeadObjectCommand; var import_middleware_sdk_s342 = require_dist_cjs29(); - var ListBucketAnalyticsConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketAnalyticsConfigurationsCommand = class _ListBucketAnalyticsConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s342.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketAnalyticsConfigurations", {}).n("S3Client", "ListBucketAnalyticsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketAnalyticsConfigurationsCommand).de(de_ListBucketAnalyticsConfigurationsCommand).build() { - static { - __name(this, "ListBucketAnalyticsConfigurationsCommand"); - } }; + __name(_ListBucketAnalyticsConfigurationsCommand, "ListBucketAnalyticsConfigurationsCommand"); + var ListBucketAnalyticsConfigurationsCommand = _ListBucketAnalyticsConfigurationsCommand; var import_middleware_sdk_s343 = require_dist_cjs29(); - var ListBucketIntelligentTieringConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketIntelligentTieringConfigurationsCommand = class _ListBucketIntelligentTieringConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s343.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}).n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketIntelligentTieringConfigurationsCommand).de(de_ListBucketIntelligentTieringConfigurationsCommand).build() { - static { - __name(this, "ListBucketIntelligentTieringConfigurationsCommand"); - } }; + __name(_ListBucketIntelligentTieringConfigurationsCommand, "ListBucketIntelligentTieringConfigurationsCommand"); + var ListBucketIntelligentTieringConfigurationsCommand = _ListBucketIntelligentTieringConfigurationsCommand; var import_middleware_sdk_s344 = require_dist_cjs29(); - var ListBucketInventoryConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketInventoryConfigurationsCommand = class _ListBucketInventoryConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s344.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketInventoryConfigurations", {}).n("S3Client", "ListBucketInventoryConfigurationsCommand").f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog).ser(se_ListBucketInventoryConfigurationsCommand).de(de_ListBucketInventoryConfigurationsCommand).build() { - static { - __name(this, "ListBucketInventoryConfigurationsCommand"); - } }; + __name(_ListBucketInventoryConfigurationsCommand, "ListBucketInventoryConfigurationsCommand"); + var ListBucketInventoryConfigurationsCommand = _ListBucketInventoryConfigurationsCommand; var import_middleware_sdk_s345 = require_dist_cjs29(); - var ListBucketMetricsConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketMetricsConfigurationsCommand = class _ListBucketMetricsConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s345.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketMetricsConfigurations", {}).n("S3Client", "ListBucketMetricsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketMetricsConfigurationsCommand).de(de_ListBucketMetricsConfigurationsCommand).build() { - static { - __name(this, "ListBucketMetricsConfigurationsCommand"); - } }; + __name(_ListBucketMetricsConfigurationsCommand, "ListBucketMetricsConfigurationsCommand"); + var ListBucketMetricsConfigurationsCommand = _ListBucketMetricsConfigurationsCommand; var import_middleware_sdk_s346 = require_dist_cjs29(); - var ListBucketsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + var _ListBucketsCommand = class _ListBucketsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s346.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBuckets", {}).n("S3Client", "ListBucketsCommand").f(void 0, void 0).ser(se_ListBucketsCommand).de(de_ListBucketsCommand).build() { - static { - __name(this, "ListBucketsCommand"); - } }; + __name(_ListBucketsCommand, "ListBucketsCommand"); + var ListBucketsCommand = _ListBucketsCommand; var import_middleware_sdk_s347 = require_dist_cjs29(); - var ListDirectoryBucketsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListDirectoryBucketsCommand = class _ListDirectoryBucketsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s347.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListDirectoryBuckets", {}).n("S3Client", "ListDirectoryBucketsCommand").f(void 0, void 0).ser(se_ListDirectoryBucketsCommand).de(de_ListDirectoryBucketsCommand).build() { - static { - __name(this, "ListDirectoryBucketsCommand"); - } }; + __name(_ListDirectoryBucketsCommand, "ListDirectoryBucketsCommand"); + var ListDirectoryBucketsCommand = _ListDirectoryBucketsCommand; var import_middleware_sdk_s348 = require_dist_cjs29(); - var ListMultipartUploadsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListMultipartUploadsCommand = class _ListMultipartUploadsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s348.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListMultipartUploads", {}).n("S3Client", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() { - static { - __name(this, "ListMultipartUploadsCommand"); - } }; + __name(_ListMultipartUploadsCommand, "ListMultipartUploadsCommand"); + var ListMultipartUploadsCommand = _ListMultipartUploadsCommand; var import_middleware_sdk_s349 = require_dist_cjs29(); - var ListObjectsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectsCommand = class _ListObjectsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s349.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjects", {}).n("S3Client", "ListObjectsCommand").f(void 0, void 0).ser(se_ListObjectsCommand).de(de_ListObjectsCommand).build() { - static { - __name(this, "ListObjectsCommand"); - } }; + __name(_ListObjectsCommand, "ListObjectsCommand"); + var ListObjectsCommand = _ListObjectsCommand; var import_middleware_sdk_s350 = require_dist_cjs29(); - var ListObjectsV2Command = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectsV2Command = class _ListObjectsV2Command extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s350.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjectsV2", {}).n("S3Client", "ListObjectsV2Command").f(void 0, void 0).ser(se_ListObjectsV2Command).de(de_ListObjectsV2Command).build() { - static { - __name(this, "ListObjectsV2Command"); - } }; + __name(_ListObjectsV2Command, "ListObjectsV2Command"); + var ListObjectsV2Command = _ListObjectsV2Command; var import_middleware_sdk_s351 = require_dist_cjs29(); - var ListObjectVersionsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectVersionsCommand = class _ListObjectVersionsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s351.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjectVersions", {}).n("S3Client", "ListObjectVersionsCommand").f(void 0, void 0).ser(se_ListObjectVersionsCommand).de(de_ListObjectVersionsCommand).build() { - static { - __name(this, "ListObjectVersionsCommand"); - } }; + __name(_ListObjectVersionsCommand, "ListObjectVersionsCommand"); + var ListObjectVersionsCommand = _ListObjectVersionsCommand; var import_middleware_sdk_s352 = require_dist_cjs29(); - var ListPartsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListPartsCommand = class _ListPartsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s352.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "ListParts", {}).n("S3Client", "ListPartsCommand").f(ListPartsRequestFilterSensitiveLog, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() { - static { - __name(this, "ListPartsCommand"); - } }; - var PutBucketAccelerateConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_ListPartsCommand, "ListPartsCommand"); + var ListPartsCommand = _ListPartsCommand; + var _PutBucketAccelerateConfigurationCommand = class _PutBucketAccelerateConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }) ]; }).s("AmazonS3", "PutBucketAccelerateConfiguration", {}).n("S3Client", "PutBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAccelerateConfigurationCommand).de(de_PutBucketAccelerateConfigurationCommand).build() { - static { - __name(this, "PutBucketAccelerateConfigurationCommand"); - } }; - var PutBucketAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAccelerateConfigurationCommand, "PutBucketAccelerateConfigurationCommand"); + var PutBucketAccelerateConfigurationCommand = _PutBucketAccelerateConfigurationCommand; + var _PutBucketAclCommand = class _PutBucketAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketAcl", {}).n("S3Client", "PutBucketAclCommand").f(void 0, void 0).ser(se_PutBucketAclCommand).de(de_PutBucketAclCommand).build() { - static { - __name(this, "PutBucketAclCommand"); - } }; - var PutBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAclCommand, "PutBucketAclCommand"); + var PutBucketAclCommand = _PutBucketAclCommand; + var _PutBucketAnalyticsConfigurationCommand = class _PutBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketAnalyticsConfiguration", {}).n("S3Client", "PutBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAnalyticsConfigurationCommand).de(de_PutBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "PutBucketAnalyticsConfigurationCommand"); - } }; - var PutBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAnalyticsConfigurationCommand, "PutBucketAnalyticsConfigurationCommand"); + var PutBucketAnalyticsConfigurationCommand = _PutBucketAnalyticsConfigurationCommand; + var _PutBucketCorsCommand = class _PutBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketCors", {}).n("S3Client", "PutBucketCorsCommand").f(void 0, void 0).ser(se_PutBucketCorsCommand).de(de_PutBucketCorsCommand).build() { - static { - __name(this, "PutBucketCorsCommand"); - } }; - var PutBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketCorsCommand, "PutBucketCorsCommand"); + var PutBucketCorsCommand = _PutBucketCorsCommand; + var _PutBucketEncryptionCommand = class _PutBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketEncryption", {}).n("S3Client", "PutBucketEncryptionCommand").f(PutBucketEncryptionRequestFilterSensitiveLog, void 0).ser(se_PutBucketEncryptionCommand).de(de_PutBucketEncryptionCommand).build() { - static { - __name(this, "PutBucketEncryptionCommand"); - } }; - var PutBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketEncryptionCommand, "PutBucketEncryptionCommand"); + var PutBucketEncryptionCommand = _PutBucketEncryptionCommand; + var _PutBucketIntelligentTieringConfigurationCommand = class _PutBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}).n("S3Client", "PutBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_PutBucketIntelligentTieringConfigurationCommand).de(de_PutBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "PutBucketIntelligentTieringConfigurationCommand"); - } }; - var PutBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketIntelligentTieringConfigurationCommand, "PutBucketIntelligentTieringConfigurationCommand"); + var PutBucketIntelligentTieringConfigurationCommand = _PutBucketIntelligentTieringConfigurationCommand; + var _PutBucketInventoryConfigurationCommand = class _PutBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketInventoryConfiguration", {}).n("S3Client", "PutBucketInventoryConfigurationCommand").f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0).ser(se_PutBucketInventoryConfigurationCommand).de(de_PutBucketInventoryConfigurationCommand).build() { - static { - __name(this, "PutBucketInventoryConfigurationCommand"); - } }; + __name(_PutBucketInventoryConfigurationCommand, "PutBucketInventoryConfigurationCommand"); + var PutBucketInventoryConfigurationCommand = _PutBucketInventoryConfigurationCommand; var import_middleware_sdk_s353 = require_dist_cjs29(); - var PutBucketLifecycleConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutBucketLifecycleConfigurationCommand = class _PutBucketLifecycleConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutBucketLifecycleConfiguration", {}).n("S3Client", "PutBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_PutBucketLifecycleConfigurationCommand).de(de_PutBucketLifecycleConfigurationCommand).build() { - static { - __name(this, "PutBucketLifecycleConfigurationCommand"); - } }; - var PutBucketLoggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketLifecycleConfigurationCommand, "PutBucketLifecycleConfigurationCommand"); + var PutBucketLifecycleConfigurationCommand = _PutBucketLifecycleConfigurationCommand; + var _PutBucketLoggingCommand = class _PutBucketLoggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketLogging", {}).n("S3Client", "PutBucketLoggingCommand").f(void 0, void 0).ser(se_PutBucketLoggingCommand).de(de_PutBucketLoggingCommand).build() { - static { - __name(this, "PutBucketLoggingCommand"); - } }; - var PutBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketLoggingCommand, "PutBucketLoggingCommand"); + var PutBucketLoggingCommand = _PutBucketLoggingCommand; + var _PutBucketMetricsConfigurationCommand = class _PutBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketMetricsConfiguration", {}).n("S3Client", "PutBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketMetricsConfigurationCommand).de(de_PutBucketMetricsConfigurationCommand).build() { - static { - __name(this, "PutBucketMetricsConfigurationCommand"); - } }; - var PutBucketNotificationConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketMetricsConfigurationCommand, "PutBucketMetricsConfigurationCommand"); + var PutBucketMetricsConfigurationCommand = _PutBucketMetricsConfigurationCommand; + var _PutBucketNotificationConfigurationCommand = class _PutBucketNotificationConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketNotificationConfiguration", {}).n("S3Client", "PutBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_PutBucketNotificationConfigurationCommand).de(de_PutBucketNotificationConfigurationCommand).build() { - static { - __name(this, "PutBucketNotificationConfigurationCommand"); - } }; - var PutBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketNotificationConfigurationCommand, "PutBucketNotificationConfigurationCommand"); + var PutBucketNotificationConfigurationCommand = _PutBucketNotificationConfigurationCommand; + var _PutBucketOwnershipControlsCommand = class _PutBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketOwnershipControls", {}).n("S3Client", "PutBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_PutBucketOwnershipControlsCommand).de(de_PutBucketOwnershipControlsCommand).build() { - static { - __name(this, "PutBucketOwnershipControlsCommand"); - } }; - var PutBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketOwnershipControlsCommand, "PutBucketOwnershipControlsCommand"); + var PutBucketOwnershipControlsCommand = _PutBucketOwnershipControlsCommand; + var _PutBucketPolicyCommand = class _PutBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketPolicy", {}).n("S3Client", "PutBucketPolicyCommand").f(void 0, void 0).ser(se_PutBucketPolicyCommand).de(de_PutBucketPolicyCommand).build() { - static { - __name(this, "PutBucketPolicyCommand"); - } }; - var PutBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketPolicyCommand, "PutBucketPolicyCommand"); + var PutBucketPolicyCommand = _PutBucketPolicyCommand; + var _PutBucketReplicationCommand = class _PutBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketReplication", {}).n("S3Client", "PutBucketReplicationCommand").f(void 0, void 0).ser(se_PutBucketReplicationCommand).de(de_PutBucketReplicationCommand).build() { - static { - __name(this, "PutBucketReplicationCommand"); - } }; - var PutBucketRequestPaymentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketReplicationCommand, "PutBucketReplicationCommand"); + var PutBucketReplicationCommand = _PutBucketReplicationCommand; + var _PutBucketRequestPaymentCommand = class _PutBucketRequestPaymentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketRequestPayment", {}).n("S3Client", "PutBucketRequestPaymentCommand").f(void 0, void 0).ser(se_PutBucketRequestPaymentCommand).de(de_PutBucketRequestPaymentCommand).build() { - static { - __name(this, "PutBucketRequestPaymentCommand"); - } }; - var PutBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketRequestPaymentCommand, "PutBucketRequestPaymentCommand"); + var PutBucketRequestPaymentCommand = _PutBucketRequestPaymentCommand; + var _PutBucketTaggingCommand = class _PutBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketTagging", {}).n("S3Client", "PutBucketTaggingCommand").f(void 0, void 0).ser(se_PutBucketTaggingCommand).de(de_PutBucketTaggingCommand).build() { - static { - __name(this, "PutBucketTaggingCommand"); - } }; - var PutBucketVersioningCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketTaggingCommand, "PutBucketTaggingCommand"); + var PutBucketTaggingCommand = _PutBucketTaggingCommand; + var _PutBucketVersioningCommand = class _PutBucketVersioningCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketVersioning", {}).n("S3Client", "PutBucketVersioningCommand").f(void 0, void 0).ser(se_PutBucketVersioningCommand).de(de_PutBucketVersioningCommand).build() { - static { - __name(this, "PutBucketVersioningCommand"); - } }; - var PutBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketVersioningCommand, "PutBucketVersioningCommand"); + var PutBucketVersioningCommand = _PutBucketVersioningCommand; + var _PutBucketWebsiteCommand = class _PutBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketWebsite", {}).n("S3Client", "PutBucketWebsiteCommand").f(void 0, void 0).ser(se_PutBucketWebsiteCommand).de(de_PutBucketWebsiteCommand).build() { - static { - __name(this, "PutBucketWebsiteCommand"); - } }; + __name(_PutBucketWebsiteCommand, "PutBucketWebsiteCommand"); + var PutBucketWebsiteCommand = _PutBucketWebsiteCommand; var import_middleware_sdk_s354 = require_dist_cjs29(); - var PutObjectAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectAclCommand = class _PutObjectAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s354.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectAcl", {}).n("S3Client", "PutObjectAclCommand").f(void 0, void 0).ser(se_PutObjectAclCommand).de(de_PutObjectAclCommand).build() { - static { - __name(this, "PutObjectAclCommand"); - } }; + __name(_PutObjectAclCommand, "PutObjectAclCommand"); + var PutObjectAclCommand = _PutObjectAclCommand; var import_middleware_sdk_s355 = require_dist_cjs29(); - var PutObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s355.getCheckContentLengthHeaderPlugin)(config), @@ -50434,131 +50880,130 @@ var require_dist_cjs69 = __commonJS({ (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "PutObject", {}).n("S3Client", "PutObjectCommand").f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build() { - static { - __name(this, "PutObjectCommand"); - } }; + __name(_PutObjectCommand, "PutObjectCommand"); + var PutObjectCommand = _PutObjectCommand; var import_middleware_sdk_s356 = require_dist_cjs29(); - var PutObjectLegalHoldCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectLegalHoldCommand = class _PutObjectLegalHoldCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectLegalHold", {}).n("S3Client", "PutObjectLegalHoldCommand").f(void 0, void 0).ser(se_PutObjectLegalHoldCommand).de(de_PutObjectLegalHoldCommand).build() { - static { - __name(this, "PutObjectLegalHoldCommand"); - } }; + __name(_PutObjectLegalHoldCommand, "PutObjectLegalHoldCommand"); + var PutObjectLegalHoldCommand = _PutObjectLegalHoldCommand; var import_middleware_sdk_s357 = require_dist_cjs29(); - var PutObjectLockConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectLockConfigurationCommand = class _PutObjectLockConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectLockConfiguration", {}).n("S3Client", "PutObjectLockConfigurationCommand").f(void 0, void 0).ser(se_PutObjectLockConfigurationCommand).de(de_PutObjectLockConfigurationCommand).build() { - static { - __name(this, "PutObjectLockConfigurationCommand"); - } }; + __name(_PutObjectLockConfigurationCommand, "PutObjectLockConfigurationCommand"); + var PutObjectLockConfigurationCommand = _PutObjectLockConfigurationCommand; var import_middleware_sdk_s358 = require_dist_cjs29(); - var PutObjectRetentionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectRetentionCommand = class _PutObjectRetentionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectRetention", {}).n("S3Client", "PutObjectRetentionCommand").f(void 0, void 0).ser(se_PutObjectRetentionCommand).de(de_PutObjectRetentionCommand).build() { - static { - __name(this, "PutObjectRetentionCommand"); - } }; + __name(_PutObjectRetentionCommand, "PutObjectRetentionCommand"); + var PutObjectRetentionCommand = _PutObjectRetentionCommand; var import_middleware_sdk_s359 = require_dist_cjs29(); - var PutObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectTaggingCommand = class _PutObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectTagging", {}).n("S3Client", "PutObjectTaggingCommand").f(void 0, void 0).ser(se_PutObjectTaggingCommand).de(de_PutObjectTaggingCommand).build() { - static { - __name(this, "PutObjectTaggingCommand"); - } }; - var PutPublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutObjectTaggingCommand, "PutObjectTaggingCommand"); + var PutObjectTaggingCommand = _PutObjectTaggingCommand; + var _PutPublicAccessBlockCommand = class _PutPublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutPublicAccessBlock", {}).n("S3Client", "PutPublicAccessBlockCommand").f(void 0, void 0).ser(se_PutPublicAccessBlockCommand).de(de_PutPublicAccessBlockCommand).build() { - static { - __name(this, "PutPublicAccessBlockCommand"); - } }; + __name(_PutPublicAccessBlockCommand, "PutPublicAccessBlockCommand"); + var PutPublicAccessBlockCommand = _PutPublicAccessBlockCommand; var import_middleware_sdk_s360 = require_dist_cjs29(); - var RestoreObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _RestoreObjectCommand = class _RestoreObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "RestoreObject", {}).n("S3Client", "RestoreObjectCommand").f(RestoreObjectRequestFilterSensitiveLog, void 0).ser(se_RestoreObjectCommand).de(de_RestoreObjectCommand).build() { - static { - __name(this, "RestoreObjectCommand"); - } }; + __name(_RestoreObjectCommand, "RestoreObjectCommand"); + var RestoreObjectCommand = _RestoreObjectCommand; var import_middleware_sdk_s361 = require_dist_cjs29(); - var SelectObjectContentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _SelectObjectContentCommand = class _SelectObjectContentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; @@ -50570,62 +51015,59 @@ var require_dist_cjs69 = __commonJS({ output: true } }).n("S3Client", "SelectObjectContentCommand").f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog).ser(se_SelectObjectContentCommand).de(de_SelectObjectContentCommand).build() { - static { - __name(this, "SelectObjectContentCommand"); - } }; + __name(_SelectObjectContentCommand, "SelectObjectContentCommand"); + var SelectObjectContentCommand = _SelectObjectContentCommand; var import_middleware_sdk_s362 = require_dist_cjs29(); - var UploadPartCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _UploadPartCommand = class _UploadPartCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "UploadPart", {}).n("S3Client", "UploadPartCommand").f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog).ser(se_UploadPartCommand).de(de_UploadPartCommand).build() { - static { - __name(this, "UploadPartCommand"); - } }; + __name(_UploadPartCommand, "UploadPartCommand"); + var UploadPartCommand = _UploadPartCommand; var import_middleware_sdk_s363 = require_dist_cjs29(); - var UploadPartCopyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _UploadPartCopyCommand = class _UploadPartCopyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() { - static { - __name(this, "UploadPartCopyCommand"); - } }; - var WriteGetObjectResponseCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_UploadPartCopyCommand, "UploadPartCopyCommand"); + var UploadPartCopyCommand = _UploadPartCopyCommand; + var _WriteGetObjectResponseCommand = class _WriteGetObjectResponseCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseObjectLambdaEndpoint: { type: "staticContextParams", value: true } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "WriteGetObjectResponse", {}).n("S3Client", "WriteGetObjectResponseCommand").f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0).ser(se_WriteGetObjectResponseCommand).de(de_WriteGetObjectResponseCommand).build() { - static { - __name(this, "WriteGetObjectResponseCommand"); - } }; - var commands3 = { + __name(_WriteGetObjectResponseCommand, "WriteGetObjectResponseCommand"); + var WriteGetObjectResponseCommand = _WriteGetObjectResponseCommand; + var commands = { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, @@ -50725,21 +51167,20 @@ var require_dist_cjs69 = __commonJS({ UploadPartCopyCommand, WriteGetObjectResponseCommand }; - var S32 = class extends S3Client { - static { - __name(this, "S3"); - } + var _S3 = class _S3 extends S3Client { }; - (0, import_smithy_client25.createAggregatedClient)(commands3, S32); + __name(_S3, "S3"); + var S32 = _S3; + (0, import_smithy_client4.createAggregatedClient)(commands, S32); var import_core42 = (init_dist_es(), __toCommonJS(dist_es_exports)); var paginateListBuckets = (0, import_core42.createPaginator)(S3Client, ListBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxBuckets"); - var import_core52 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListDirectoryBuckets = (0, import_core52.createPaginator)(S3Client, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets"); - var import_core62 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListObjectsV2 = (0, import_core62.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); - var import_core72 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListParts = (0, import_core72.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); - var import_util_waiter = require_dist_cjs68(); + var import_core5 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListDirectoryBuckets = (0, import_core5.createPaginator)(S3Client, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets"); + var import_core6 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListObjectsV2 = (0, import_core6.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); + var import_core7 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListParts = (0, import_core7.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); + var import_util_waiter = require_dist_cjs70(); var checkState = /* @__PURE__ */ __name(async (client, input) => { let reason; try { @@ -51174,7 +51615,7 @@ var require_lodash = __commonJS({ return types; } return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e3) { + } catch (e) { } }(); var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; @@ -51371,9 +51812,9 @@ var require_lodash = __commonJS({ } return result; } - function baseTimes(n3, iteratee) { - var index = -1, result = Array(n3); - while (++index < n3) { + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { result[index] = iteratee(index); } return result; @@ -51396,8 +51837,8 @@ var require_lodash = __commonJS({ return object[key]; }); } - function cacheHas(cache3, key) { - return cache3.has(key); + function cacheHas(cache, key) { + return cache.has(key); } function charsStartIndex(strSymbols, chrSymbols) { var index = -1, length = strSymbols.length; @@ -51441,9 +51882,9 @@ var require_lodash = __commonJS({ } return result; } - function mapToArray(map2) { - var index = -1, result = Array(map2.size); - map2.forEach(function(value, key) { + function mapToArray(map) { + var index = -1, result = Array(map.size); + map.forEach(function(value, key) { result[++index] = [key, value]; }); return result; @@ -51523,7 +51964,7 @@ var require_lodash = __commonJS({ return string.match(reUnicodeWord) || []; } var runInContext = function runInContext2(context) { - context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps)); + context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; var coreJsData = context["__core-js_shared__"]; @@ -51546,7 +51987,7 @@ var require_lodash = __commonJS({ var func = getNative(Object2, "defineProperty"); func({}, "", {}); return func; - } catch (e3) { + } catch (e) { } }(); var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; @@ -51699,7 +52140,7 @@ var require_lodash = __commonJS({ } LazyWrapper.prototype = baseCreate(baseLodash.prototype); LazyWrapper.prototype.constructor = LazyWrapper; - function Hash3(entries) { + function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { @@ -51734,11 +52175,11 @@ var require_lodash = __commonJS({ data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; return this; } - Hash3.prototype.clear = hashClear; - Hash3.prototype["delete"] = hashDelete; - Hash3.prototype.get = hashGet; - Hash3.prototype.has = hashHas; - Hash3.prototype.set = hashSet; + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); @@ -51798,9 +52239,9 @@ var require_lodash = __commonJS({ function mapCacheClear() { this.size = 0; this.__data__ = { - "hash": new Hash3(), + "hash": new Hash(), "map": new (Map2 || ListCache)(), - "string": new Hash3() + "string": new Hash() }; } function mapCacheDelete(key) { @@ -51897,8 +52338,8 @@ var require_lodash = __commonJS({ var length = array.length; return length ? array[baseRandom(0, length - 1)] : undefined2; } - function arraySampleSize(array, n3) { - return shuffleSelf(copyArray(array), baseClamp(n3, 0, array.length)); + function arraySampleSize(array, n) { + return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); } function arrayShuffle(array) { return shuffleSelf(copyArray(array)); @@ -52212,8 +52653,8 @@ var require_lodash = __commonJS({ if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { othIndex = othLength; while (--othIndex) { - var cache3 = caches[othIndex]; - if (!(cache3 ? cacheHas(cache3, computed) : includes2(arrays[othIndex], computed, comparator))) { + var cache = caches[othIndex]; + if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { continue outer; } } @@ -52459,13 +52900,13 @@ var require_lodash = __commonJS({ } assignMergeValue(object, key, newValue); } - function baseNth(array, n3) { + function baseNth(array, n) { var length = array.length; if (!length) { return; } - n3 += n3 < 0 ? length : 0; - return isIndex(n3, length) ? array[n3] : undefined2; + n += n < 0 ? length : 0; + return isIndex(n, length) ? array[n] : undefined2; } function baseOrderBy(collection, iteratees, orders) { if (iteratees.length) { @@ -52557,20 +52998,20 @@ var require_lodash = __commonJS({ } return result2; } - function baseRepeat(string, n3) { + function baseRepeat(string, n) { var result2 = ""; - if (!string || n3 < 1 || n3 > MAX_SAFE_INTEGER) { + if (!string || n < 1 || n > MAX_SAFE_INTEGER) { return result2; } do { - if (n3 % 2) { + if (n % 2) { result2 += string; } - n3 = nativeFloor(n3 / 2); - if (n3) { + n = nativeFloor(n / 2); + if (n) { string += string; } - } while (n3); + } while (n); return result2; } function baseRest(func, start) { @@ -52579,9 +53020,9 @@ var require_lodash = __commonJS({ function baseSample(collection) { return arraySample(values(collection)); } - function baseSampleSize(collection, n3) { + function baseSampleSize(collection, n) { var array = values(collection); - return shuffleSelf(array, baseClamp(n3, 0, array.length)); + return shuffleSelf(array, baseClamp(n, 0, array.length)); } function baseSet(object, path2, value, customizer) { if (!isObject(object)) { @@ -53557,8 +53998,8 @@ var require_lodash = __commonJS({ result2 = result2 === iteratee ? baseIteratee : result2; return arguments.length ? result2(arguments[0], arguments[1]) : result2; } - function getMapData(map3, key) { - var data = map3.__data__; + function getMapData(map2, key) { + var data = map2.__data__; return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } function getMatchData(object) { @@ -53578,7 +54019,7 @@ var require_lodash = __commonJS({ try { value[symToStringTag] = undefined2; var unmasked = true; - } catch (e3) { + } catch (e) { } var result2 = nativeObjectToString.call(value); if (unmasked) { @@ -53787,12 +54228,12 @@ var require_lodash = __commonJS({ } function memoizeCapped(func) { var result2 = memoize(func, function(key) { - if (cache3.size === MAX_MEMOIZE_SIZE) { - cache3.clear(); + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); } return key; }); - var cache3 = result2.cache; + var cache = result2.cache; return result2; } function mergeData(data, source) { @@ -53935,11 +54376,11 @@ var require_lodash = __commonJS({ if (func != null) { try { return funcToString.call(func); - } catch (e3) { + } catch (e) { } try { return func + ""; - } catch (e3) { + } catch (e) { } } return ""; @@ -54017,22 +54458,22 @@ var require_lodash = __commonJS({ } return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : []; }); - function drop(array, n3, guard) { + function drop(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } - n3 = guard || n3 === undefined2 ? 1 : toInteger(n3); - return baseSlice(array, n3 < 0 ? 0 : n3, length); + n = guard || n === undefined2 ? 1 : toInteger(n); + return baseSlice(array, n < 0 ? 0 : n, length); } - function dropRight(array, n3, guard) { + function dropRight(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } - n3 = guard || n3 === undefined2 ? 1 : toInteger(n3); - n3 = length - n3; - return baseSlice(array, 0, n3 < 0 ? 0 : n3); + n = guard || n === undefined2 ? 1 : toInteger(n); + n = length - n; + return baseSlice(array, 0, n < 0 ? 0 : n); } function dropRightWhile(array, predicate) { return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; @@ -54156,8 +54597,8 @@ var require_lodash = __commonJS({ } return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); } - function nth(array, n3) { - return array && array.length ? baseNth(array, toInteger(n3)) : undefined2; + function nth(array, n) { + return array && array.length ? baseNth(array, toInteger(n)) : undefined2; } var pull = baseRest(pullAll); function pullAll(array, values2) { @@ -54252,21 +54693,21 @@ var require_lodash = __commonJS({ var length = array == null ? 0 : array.length; return length ? baseSlice(array, 1, length) : []; } - function take2(array, n3, guard) { + function take(array, n, guard) { if (!(array && array.length)) { return []; } - n3 = guard || n3 === undefined2 ? 1 : toInteger(n3); - return baseSlice(array, 0, n3 < 0 ? 0 : n3); + n = guard || n === undefined2 ? 1 : toInteger(n); + return baseSlice(array, 0, n < 0 ? 0 : n); } - function takeRight(array, n3, guard) { + function takeRight(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } - n3 = guard || n3 === undefined2 ? 1 : toInteger(n3); - n3 = length - n3; - return baseSlice(array, n3 < 0 ? 0 : n3, length); + n = guard || n === undefined2 ? 1 : toInteger(n); + n = length - n; + return baseSlice(array, n < 0 ? 0 : n, length); } function takeRightWhile(array, predicate) { return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; @@ -54462,14 +54903,14 @@ var require_lodash = __commonJS({ var find = createFind(findIndex); var findLast = createFind(findLastIndex); function flatMap(collection, iteratee2) { - return baseFlatten(map2(collection, iteratee2), 1); + return baseFlatten(map(collection, iteratee2), 1); } function flatMapDeep(collection, iteratee2) { - return baseFlatten(map2(collection, iteratee2), INFINITY); + return baseFlatten(map(collection, iteratee2), INFINITY); } function flatMapDepth(collection, iteratee2, depth) { depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(map2(collection, iteratee2), depth); + return baseFlatten(map(collection, iteratee2), depth); } function forEach(collection, iteratee2) { var func = isArray(collection) ? arrayEach : baseEach; @@ -54505,7 +54946,7 @@ var require_lodash = __commonJS({ var keyBy = createAggregator(function(result2, value, key) { baseAssignValue(result2, key, value); }); - function map2(collection, iteratee2) { + function map(collection, iteratee2) { var func = isArray(collection) ? arrayMap : baseMap; return func(collection, getIteratee(iteratee2, 3)); } @@ -54543,14 +54984,14 @@ var require_lodash = __commonJS({ var func = isArray(collection) ? arraySample : baseSample; return func(collection); } - function sampleSize(collection, n3, guard) { - if (guard ? isIterateeCall(collection, n3, guard) : n3 === undefined2) { - n3 = 1; + function sampleSize(collection, n, guard) { + if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) { + n = 1; } else { - n3 = toInteger(n3); + n = toInteger(n); } var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n3); + return func(collection, n); } function shuffle(collection) { var func = isArray(collection) ? arrayShuffle : baseShuffle; @@ -54591,33 +55032,33 @@ var require_lodash = __commonJS({ var now = ctxNow || function() { return root.Date.now(); }; - function after(n3, func) { + function after(n, func) { if (typeof func != "function") { throw new TypeError2(FUNC_ERROR_TEXT); } - n3 = toInteger(n3); + n = toInteger(n); return function() { - if (--n3 < 1) { + if (--n < 1) { return func.apply(this, arguments); } }; } - function ary(func, n3, guard) { - n3 = guard ? undefined2 : n3; - n3 = func && n3 == null ? func.length : n3; - return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n3); + function ary(func, n, guard) { + n = guard ? undefined2 : n; + n = func && n == null ? func.length : n; + return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n); } - function before(n3, func) { + function before(n, func) { var result2; if (typeof func != "function") { throw new TypeError2(FUNC_ERROR_TEXT); } - n3 = toInteger(n3); + n = toInteger(n); return function() { - if (--n3 > 0) { + if (--n > 0) { result2 = func.apply(this, arguments); } - if (n3 <= 1) { + if (n <= 1) { func = undefined2; } return result2; @@ -54746,12 +55187,12 @@ var require_lodash = __commonJS({ throw new TypeError2(FUNC_ERROR_TEXT); } var memoized = function() { - var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache3 = memoized.cache; - if (cache3.has(key)) { - return cache3.get(key); + var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; + if (cache.has(key)) { + return cache.get(key); } var result2 = func.apply(this, args); - memoized.cache = cache3.set(key, result2) || cache3; + memoized.cache = cache.set(key, result2) || cache; return result2; }; memoized.cache = new (memoize.Cache || MapCache)(); @@ -55431,13 +55872,13 @@ var require_lodash = __commonJS({ } return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); } - function repeat(string, n3, guard) { - if (guard ? isIterateeCall(string, n3, guard) : n3 === undefined2) { - n3 = 1; + function repeat(string, n, guard) { + if (guard ? isIterateeCall(string, n, guard) : n === undefined2) { + n = 1; } else { - n3 = toInteger(n3); + n = toInteger(n); } - return baseRepeat(toString(string), n3); + return baseRepeat(toString(string), n); } function replace() { var args = arguments, string = toString(args[0]); @@ -55626,8 +56067,8 @@ var require_lodash = __commonJS({ var attempt = baseRest(function(func, args) { try { return apply(func, undefined2, args); - } catch (e3) { - return isError(e3) ? e3 : new Error2(e3); + } catch (e) { + return isError(e) ? e : new Error2(e); } }); var bindAll = flatRest(function(object, methodNames) { @@ -55725,10 +56166,10 @@ var require_lodash = __commonJS({ } function noop() { } - function nthArg(n3) { - n3 = toInteger(n3); + function nthArg(n) { + n = toInteger(n); return baseRest(function(args) { - return baseNth(args, n3); + return baseNth(args, n); }); } var over = createOver(arrayMap); @@ -55759,16 +56200,16 @@ var require_lodash = __commonJS({ function stubTrue() { return true; } - function times(n3, iteratee2) { - n3 = toInteger(n3); - if (n3 < 1 || n3 > MAX_SAFE_INTEGER) { + function times(n, iteratee2) { + n = toInteger(n); + if (n < 1 || n > MAX_SAFE_INTEGER) { return []; } - var index = MAX_ARRAY_LENGTH, length = nativeMin(n3, MAX_ARRAY_LENGTH); + var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH); iteratee2 = getIteratee(iteratee2); - n3 -= MAX_ARRAY_LENGTH; + n -= MAX_ARRAY_LENGTH; var result2 = baseTimes(length, iteratee2); - while (++index < n3) { + while (++index < n) { iteratee2(index); } return result2; @@ -55883,7 +56324,7 @@ var require_lodash = __commonJS({ lodash2.keyBy = keyBy; lodash2.keys = keys; lodash2.keysIn = keysIn; - lodash2.map = map2; + lodash2.map = map; lodash2.mapKeys = mapKeys; lodash2.mapValues = mapValues; lodash2.matches = matches; @@ -55934,7 +56375,7 @@ var require_lodash = __commonJS({ lodash2.split = split; lodash2.spread = spread; lodash2.tail = tail; - lodash2.take = take2; + lodash2.take = take; lodash2.takeRight = takeRight; lodash2.takeRightWhile = takeRightWhile; lodash2.takeWhile = takeWhile; @@ -56142,21 +56583,21 @@ var require_lodash = __commonJS({ lodash2[methodName].placeholder = lodash2; }); arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n3) { - n3 = n3 === undefined2 ? 1 : nativeMax(toInteger(n3), 0); + LazyWrapper.prototype[methodName] = function(n) { + n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0); var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n3, result2.__takeCount__); + result2.__takeCount__ = nativeMin(n, result2.__takeCount__); } else { result2.__views__.push({ - "size": nativeMin(n3, MAX_ARRAY_LENGTH), + "size": nativeMin(n, MAX_ARRAY_LENGTH), "type": methodName + (result2.__dir__ < 0 ? "Right" : "") }); } return result2; }; - LazyWrapper.prototype[methodName + "Right"] = function(n3) { - return this.reverse()[methodName](n3).reverse(); + LazyWrapper.prototype[methodName + "Right"] = function(n) { + return this.reverse()[methodName](n).reverse(); }; }); arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { @@ -56297,17 +56738,17 @@ var require_lodash = __commonJS({ } return lodash2; }; - var _2 = runInContext(); + var _ = runInContext(); if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _2; + root._ = _; define(function() { - return _2; + return _; }); } else if (freeModule) { - (freeModule.exports = _2)._ = _2; - freeExports._ = _2; + (freeModule.exports = _)._ = _; + freeExports._ = _; } else { - root._ = _2; + root._ = _; } }).call(exports2); } @@ -64919,8 +65360,8 @@ var require_mime_types = __commonJS({ return; } extensions[type] = exts; - for (var i3 = 0; i3 < exts.length; i3++) { - var extension2 = exts[i3]; + for (var i = 0; i < exts.length; i++) { + var extension2 = exts[i]; if (types[extension2]) { var from = preference.indexOf(db[types[extension2]].source); var to = preference.indexOf(mime.source); @@ -64939,7 +65380,7 @@ var require_mime_types = __commonJS({ var import_fs = __toESM(require("fs")); var import_path = __toESM(require("path")); var core = __toESM(require_core()); -var import_client_s3 = __toESM(require_dist_cjs69()); +var import_client_s3 = __toESM(require_dist_cjs71()); var import_lodash = __toESM(require_lodash()); var import_mime_types = __toESM(require_mime_types()); var maxConcurrentUploadFiles = 2; diff --git a/VKUI/size-upload/dist/index.js b/VKUI/size-upload/dist/index.js index ab25d1e..139612e 100644 --- a/VKUI/size-upload/dist/index.js +++ b/VKUI/size-upload/dist/index.js @@ -69,29 +69,29 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "../../node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -142,11 +142,11 @@ var require_command = __commonJS({ return cmdStr; } }; - function escapeData(s3) { - return (0, utils_1.toCommandValue)(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + function escapeData(s) { + return (0, utils_1.toCommandValue)(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } - function escapeProperty(s3) { - return (0, utils_1.toCommandValue)(s3).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + function escapeProperty(s) { + return (0, utils_1.toCommandValue)(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } } }); @@ -155,29 +155,29 @@ var require_command = __commonJS({ var require_file_command = __commonJS({ "../../node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -237,7 +237,7 @@ var require_proxy = __commonJS({ if (proxyVar) { try { return new URL(proxyVar); - } catch (_a2) { + } catch (_a) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) return new URL(`http://${proxyVar}`); } @@ -270,8 +270,8 @@ var require_proxy = __commonJS({ if (typeof reqPort === "number") { upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); } - for (const upperNoProxyItem of noProxy.split(",").map((x3) => x3.trim().toUpperCase()).filter((x3) => x3)) { - if (upperNoProxyItem === "*" || upperReqHosts.some((x3) => x3 === upperNoProxyItem || x3.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x3.endsWith(`${upperNoProxyItem}`))) { + for (const upperNoProxyItem of noProxy.split(",").map((x) => x.trim().toUpperCase()).filter((x) => x)) { + if (upperNoProxyItem === "*" || upperReqHosts.some((x) => x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x.endsWith(`${upperNoProxyItem}`))) { return true; } } @@ -333,10 +333,10 @@ var require_tunnel = __commonJS({ self.sockets = []; self.on("free", function onFree(socket, host, port, localAddress) { var options2 = toOptions(host, port, localAddress); - for (var i3 = 0, len = self.requests.length; i3 < len; ++i3) { - var pending = self.requests[i3]; + for (var i = 0, len = self.requests.length; i < len; ++i) { + var pending = self.requests[i]; if (pending.host === options2.host && pending.port === options2.port) { - self.requests.splice(i3, 1); + self.requests.splice(i, 1); pending.request.onSocket(socket); return; } @@ -482,14 +482,14 @@ var require_tunnel = __commonJS({ return host; } function mergeOptions(target) { - for (var i3 = 1, len = arguments.length; i3 < len; ++i3) { - var overrides = arguments[i3]; + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; if (typeof overrides === "object") { var keys = Object.keys(overrides); - for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { - var k3 = keys[j3]; - if (overrides[k3] !== void 0) { - target[k3] = overrides[k3]; + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; } } } @@ -804,7 +804,7 @@ var require_util = __commonJS({ var { Blob: Blob2 } = require("buffer"); var nodeUtil = require("util"); var { stringify: stringify2 } = require("querystring"); - var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v6) => Number(v6)); + var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v) => Number(v)); function nop() { } function isStream(obj) { @@ -943,26 +943,26 @@ var require_util = __commonJS({ } var KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/; function parseKeepAliveTimeout(val2) { - const m3 = val2.toString().match(KEEPALIVE_TIMEOUT_EXPR); - return m3 ? parseInt(m3[1], 10) * 1e3 : null; + const m = val2.toString().match(KEEPALIVE_TIMEOUT_EXPR); + return m ? parseInt(m[1], 10) * 1e3 : null; } function parseHeaders(headers, obj = {}) { if (!Array.isArray(headers)) return headers; - for (let i3 = 0; i3 < headers.length; i3 += 2) { - const key = headers[i3].toString().toLowerCase(); + for (let i = 0; i < headers.length; i += 2) { + const key = headers[i].toString().toLowerCase(); let val2 = obj[key]; if (!val2) { - if (Array.isArray(headers[i3 + 1])) { - obj[key] = headers[i3 + 1]; + if (Array.isArray(headers[i + 1])) { + obj[key] = headers[i + 1]; } else { - obj[key] = headers[i3 + 1].toString("utf8"); + obj[key] = headers[i + 1].toString("utf8"); } } else { if (!Array.isArray(val2)) { val2 = [val2]; obj[key] = val2; } - val2.push(headers[i3 + 1].toString("utf8")); + val2.push(headers[i + 1].toString("utf8")); } } if ("content-length" in obj && "content-disposition" in obj) { @@ -974,9 +974,9 @@ var require_util = __commonJS({ const ret = []; let hasContentLength = false; let contentDispositionIdx = -1; - for (let n3 = 0; n3 < headers.length; n3 += 2) { - const key = headers[n3 + 0].toString(); - const val2 = headers[n3 + 1].toString("utf8"); + for (let n = 0; n < headers.length; n += 2) { + const key = headers[n + 0].toString(); + const val2 = headers[n + 1].toString("utf8"); if (key.length === 14 && (key === "content-length" || key.toLowerCase() === "content-length")) { ret.push(key, val2); hasContentLength = true; @@ -1277,8 +1277,8 @@ var require_sbmh = __commonJS({ this._needle = needle; this._bufpos = 0; this._lookbehind = Buffer.alloc(needleLength); - for (var i3 = 0; i3 < needleLength - 1; ++i3) { - this._occ[needle[i3]] = needleLength - 1 - i3; + for (var i = 0; i < needleLength - 1; ++i) { + this._occ[needle[i]] = needleLength - 1 - i; } } inherits(SBMH, EventEmitter); @@ -1293,11 +1293,11 @@ var require_sbmh = __commonJS({ } const chlen = chunk.length; this._bufpos = pos || 0; - let r3; - while (r3 !== chlen && this.matches < this.maxMatches) { - r3 = this._sbmh_feed(chunk); + let r; + while (r !== chlen && this.matches < this.maxMatches) { + r = this._sbmh_feed(chunk); } - return r3; + return r; }; SBMH.prototype._sbmh_feed = function(data) { const len = data.length; @@ -1376,8 +1376,8 @@ var require_sbmh = __commonJS({ return pos < 0 ? this._lookbehind[this._lookbehind_size + pos] : data[pos]; }; SBMH.prototype._sbmh_memcmp = function(data, pos, len) { - for (var i3 = 0; i3 < len; ++i3) { - if (this._sbmh_lookup_char(data, pos + i3) !== this._needle[i3]) { + for (var i = 0; i < len; ++i) { + if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false; } } @@ -1397,7 +1397,7 @@ var require_PartStream = __commonJS({ ReadableStream2.call(this, opts); } inherits(PartStream, ReadableStream2); - PartStream.prototype._read = function(n3) { + PartStream.prototype._read = function(n) { }; module2.exports = PartStream; } @@ -1461,9 +1461,9 @@ var require_HeaderParser = __commonJS({ } inherits(HeaderParser, EventEmitter); HeaderParser.prototype.push = function(data) { - const r3 = this.ss.push(data); + const r = this.ss.push(data); if (this.finished) { - return r3; + return r; } }; HeaderParser.prototype.reset = function() { @@ -1491,25 +1491,25 @@ var require_HeaderParser = __commonJS({ } const lines = this.buffer.split(RE_CRLF); const len = lines.length; - let m3, h3; - for (var i3 = 0; i3 < len; ++i3) { - if (lines[i3].length === 0) { + let m, h; + for (var i = 0; i < len; ++i) { + if (lines[i].length === 0) { continue; } - if (lines[i3][0] === " " || lines[i3][0] === " ") { - if (h3) { - this.header[h3][this.header[h3].length - 1] += lines[i3]; + if (lines[i][0] === " " || lines[i][0] === " ") { + if (h) { + this.header[h][this.header[h].length - 1] += lines[i]; continue; } } - const posColon = lines[i3].indexOf(":"); + const posColon = lines[i].indexOf(":"); if (posColon === -1 || posColon === 0) { return; } - m3 = RE_HDR.exec(lines[i3]); - h3 = m3[1].toLowerCase(); - this.header[h3] = this.header[h3] || []; - this.header[h3].push(m3[2] || ""); + m = RE_HDR.exec(lines[i]); + h = m[1].toLowerCase(); + this.header[h] = this.header[h] || []; + this.header[h].push(m[2] || ""); if (++this.npairs === this.maxHeaderPairs) { break; } @@ -1607,9 +1607,9 @@ var require_Dicer = __commonJS({ this._ignore(); } } - const r3 = this._hparser.push(data); - if (!this._inHeader && r3 !== void 0 && r3 < data.length) { - data = data.slice(r3); + const r = this._hparser.push(data); + if (!this._inHeader && r !== void 0 && r < data.length) { + data = data.slice(r); } else { return cb(); } @@ -1647,13 +1647,13 @@ var require_Dicer = __commonJS({ Dicer.prototype._oninfo = function(isMatch, data, start, end) { let buf; const self = this; - let i3 = 0; - let r3; + let i = 0; + let r; let shouldWriteMore = true; if (!this._part && this._justMatched && data) { - while (this._dashes < 2 && start + i3 < end) { - if (data[start + i3] === DASH) { - ++i3; + while (this._dashes < 2 && start + i < end) { + if (data[start + i] === DASH) { + ++i; ++this._dashes; } else { if (this._dashes) { @@ -1664,8 +1664,8 @@ var require_Dicer = __commonJS({ } } if (this._dashes === 2) { - if (start + i3 < end && this._events.trailer) { - this.emit("trailer", data.slice(start + i3, end)); + if (start + i < end && this._events.trailer) { + this.emit("trailer", data.slice(start + i, end)); } this.reset(); this._finished = true; @@ -1684,7 +1684,7 @@ var require_Dicer = __commonJS({ } if (!this._part) { this._part = new PartStream(this._partOpts); - this._part._read = function(n3) { + this._part._read = function(n) { self._unpause(); }; if (this._isPreamble && this._events.preamble) { @@ -1711,9 +1711,9 @@ var require_Dicer = __commonJS({ if (buf) { this._hparser.push(buf); } - r3 = this._hparser.push(data.slice(start, end)); - if (!this._inHeader && r3 !== void 0 && r3 < end) { - this._oninfo(false, data, start + r3, end); + r = this._hparser.push(data.slice(start, end)); + if (!this._inHeader && r !== void 0 && r < end) { + this._oninfo(false, data, start + r, end); } } } @@ -1773,13 +1773,13 @@ var require_decodeText = __commonJS({ if (textDecoders.has(destEncoding)) { try { return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e3) { + } catch (e) { } } else { try { textDecoders.set(destEncoding, new TextDecoder(destEncoding)); return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding)); - } catch (e3) { + } catch (e) { } } } @@ -1804,10 +1804,10 @@ var require_parseParams = __commonJS({ let charset = ""; let inquote = false; let escaping = false; - let p3 = 0; + let p = 0; let tmp = ""; - for (var i3 = 0, len = str.length; i3 < len; ++i3) { - const char = str[i3]; + for (var i = 0, len = str.length; i < len; ++i) { + const char = str[i]; if (char === "\\" && inquote) { if (escaping) { escaping = false; @@ -1847,7 +1847,7 @@ var require_parseParams = __commonJS({ } else { state2 = "value"; } - res[p3] = [tmp, void 0]; + res[p] = [tmp, void 0]; tmp = ""; continue; } else if (!inquote && char === ";") { @@ -1864,13 +1864,13 @@ var require_parseParams = __commonJS({ } else if (tmp.length) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p3] === void 0) { - res[p3] = tmp; + if (res[p] === void 0) { + res[p] = tmp; } else { - res[p3][1] = tmp; + res[p][1] = tmp; } tmp = ""; - ++p3; + ++p; continue; } else if (!inquote && (char === " " || char === " ")) { continue; @@ -1887,12 +1887,12 @@ var require_parseParams = __commonJS({ } else if (tmp) { tmp = decodeText(tmp, "binary", "utf8"); } - if (res[p3] === void 0) { + if (res[p] === void 0) { if (tmp) { - res[p3] = tmp; + res[p] = tmp; } } else { - res[p3][1] = tmp; + res[p][1] = tmp; } return res; } @@ -1908,12 +1908,12 @@ var require_basename = __commonJS({ if (typeof path2 !== "string") { return ""; } - for (var i3 = path2.length - 1; i3 >= 0; --i3) { - switch (path2.charCodeAt(i3)) { + for (var i = path2.length - 1; i >= 0; --i) { + switch (path2.charCodeAt(i)) { case 47: // '/' case 92: - path2 = path2.slice(i3 + 1); + path2 = path2.slice(i + 1); return path2 === ".." || path2 === "." ? "" : path2; } } @@ -1940,7 +1940,7 @@ var require_multipart = __commonJS({ var RE_NAME = /^name$/i; Multipart.detect = /^multipart\/form-data/i; function Multipart(boy, cfg) { - let i3; + let i; let len; const self = this; let boundary; @@ -1950,9 +1950,9 @@ var require_multipart = __commonJS({ const defCharset = cfg.defCharset || "utf8"; const preservePath = cfg.preservePath; const fileOpts = { highWaterMark: cfg.fileHwm }; - for (i3 = 0, len = parsedConType.length; i3 < len; ++i3) { - if (Array.isArray(parsedConType[i3]) && RE_BOUNDARY.test(parsedConType[i3][0])) { - boundary = parsedConType[i3][1]; + for (i = 0, len = parsedConType.length; i < len; ++i) { + if (Array.isArray(parsedConType[i]) && RE_BOUNDARY.test(parsedConType[i][0])) { + boundary = parsedConType[i][1]; break; } } @@ -2023,9 +2023,9 @@ var require_multipart = __commonJS({ parsed = parseParams(header["content-type"][0]); if (parsed[0]) { contype = parsed[0].toLowerCase(); - for (i3 = 0, len = parsed.length; i3 < len; ++i3) { - if (RE_CHARSET.test(parsed[i3][0])) { - charset = parsed[i3][1].toLowerCase(); + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_CHARSET.test(parsed[i][0])) { + charset = parsed[i][1].toLowerCase(); break; } } @@ -2042,11 +2042,11 @@ var require_multipart = __commonJS({ if (!RE_FIELD.test(parsed[0])) { return skipPart(part); } - for (i3 = 0, len = parsed.length; i3 < len; ++i3) { - if (RE_NAME.test(parsed[i3][0])) { - fieldname = parsed[i3][1]; - } else if (RE_FILENAME.test(parsed[i3][0])) { - filename = parsed[i3][1]; + for (i = 0, len = parsed.length; i < len; ++i) { + if (RE_NAME.test(parsed[i][0])) { + fieldname = parsed[i][1]; + } else if (RE_FILENAME.test(parsed[i][0])) { + filename = parsed[i][1]; if (!preservePath) { filename = basename(filename); } @@ -2087,7 +2087,7 @@ var require_multipart = __commonJS({ cb(); } }); - file._read = function(n3) { + file._read = function(n) { if (!self._pause) { return; } @@ -2168,11 +2168,11 @@ var require_multipart = __commonJS({ }); } Multipart.prototype.write = function(chunk, cb) { - const r3 = this.parser.write(chunk); - if (r3 && !this._pause) { + const r = this.parser.write(chunk); + if (r && !this._pause) { cb(); } else { - this._needDrain = !r3; + this._needDrain = !r; this._cb = cb; } }; @@ -2196,7 +2196,7 @@ var require_multipart = __commonJS({ this.truncated = false; } inherits(FileStream, Readable); - FileStream.prototype._read = function(n3) { + FileStream.prototype._read = function(n) { }; module2.exports = Multipart; } @@ -2343,34 +2343,34 @@ var require_Decoder = __commonJS({ Decoder.prototype.write = function(str) { str = str.replace(RE_PLUS, " "); let res = ""; - let i3 = 0; - let p3 = 0; + let i = 0; + let p = 0; const len = str.length; - for (; i3 < len; ++i3) { + for (; i < len; ++i) { if (this.buffer !== void 0) { - if (!HEX[str.charCodeAt(i3)]) { + if (!HEX[str.charCodeAt(i)]) { res += "%" + this.buffer; this.buffer = void 0; - --i3; + --i; } else { - this.buffer += str[i3]; - ++p3; + this.buffer += str[i]; + ++p; if (this.buffer.length === 2) { res += String.fromCharCode(parseInt(this.buffer, 16)); this.buffer = void 0; } } - } else if (str[i3] === "%") { - if (i3 > p3) { - res += str.substring(p3, i3); - p3 = i3; + } else if (str[i] === "%") { + if (i > p) { + res += str.substring(p, i); + p = i; } this.buffer = ""; - ++p3; + ++p; } } - if (p3 < len && this.buffer === void 0) { - res += str.substring(p3); + if (p < len && this.buffer === void 0) { + res += str.substring(p); } return res; }; @@ -2398,9 +2398,9 @@ var require_urlencoded = __commonJS({ this.fieldNameSizeLimit = getLimit(limits, "fieldNameSize", 100); this.fieldsLimit = getLimit(limits, "fields", Infinity); let charset; - for (var i3 = 0, len = parsedConType.length; i3 < len; ++i3) { - if (Array.isArray(parsedConType[i3]) && RE_CHARSET.test(parsedConType[i3][0])) { - charset = parsedConType[i3][1].toLowerCase(); + for (var i = 0, len = parsedConType.length; i < len; ++i) { + if (Array.isArray(parsedConType[i]) && RE_CHARSET.test(parsedConType[i][0])) { + charset = parsedConType[i][1].toLowerCase(); break; } } @@ -2430,21 +2430,21 @@ var require_urlencoded = __commonJS({ } let idxeq; let idxamp; - let i3; - let p3 = 0; + let i; + let p = 0; const len = data.length; - while (p3 < len) { + while (p < len) { if (this._state === "key") { idxeq = idxamp = void 0; - for (i3 = p3; i3 < len; ++i3) { + for (i = p; i < len; ++i) { if (!this._checkingBytes) { - ++p3; + ++p; } - if (data[i3] === 61) { - idxeq = i3; + if (data[i] === 61) { + idxeq = i; break; - } else if (data[i3] === 38) { - idxamp = i3; + } else if (data[i] === 38) { + idxamp = i; break; } if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) { @@ -2455,8 +2455,8 @@ var require_urlencoded = __commonJS({ } } if (idxeq !== void 0) { - if (idxeq > p3) { - this._key += this.decoder.write(data.toString("binary", p3, idxeq)); + if (idxeq > p) { + this._key += this.decoder.write(data.toString("binary", p, idxeq)); } this._state = "val"; this._hitLimit = false; @@ -2465,13 +2465,13 @@ var require_urlencoded = __commonJS({ this._bytesVal = 0; this._valTrunc = false; this.decoder.reset(); - p3 = idxeq + 1; + p = idxeq + 1; } else if (idxamp !== void 0) { ++this._fields; let key; const keyTrunc = this._keyTrunc; - if (idxamp > p3) { - key = this._key += this.decoder.write(data.toString("binary", p3, idxamp)); + if (idxamp > p) { + key = this._key += this.decoder.write(data.toString("binary", p, idxamp)); } else { key = this._key; } @@ -2490,33 +2490,33 @@ var require_urlencoded = __commonJS({ false ); } - p3 = idxamp + 1; + p = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i3 > p3) { - this._key += this.decoder.write(data.toString("binary", p3, i3)); + if (i > p) { + this._key += this.decoder.write(data.toString("binary", p, i)); } - p3 = i3; + p = i; if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) { this._checkingBytes = false; this._keyTrunc = true; } } else { - if (p3 < len) { - this._key += this.decoder.write(data.toString("binary", p3)); + if (p < len) { + this._key += this.decoder.write(data.toString("binary", p)); } - p3 = len; + p = len; } } else { idxamp = void 0; - for (i3 = p3; i3 < len; ++i3) { + for (i = p; i < len; ++i) { if (!this._checkingBytes) { - ++p3; + ++p; } - if (data[i3] === 38) { - idxamp = i3; + if (data[i] === 38) { + idxamp = i; break; } if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) { @@ -2528,8 +2528,8 @@ var require_urlencoded = __commonJS({ } if (idxamp !== void 0) { ++this._fields; - if (idxamp > p3) { - this._val += this.decoder.write(data.toString("binary", p3, idxamp)); + if (idxamp > p) { + this._val += this.decoder.write(data.toString("binary", p, idxamp)); } this.boy.emit( "field", @@ -2545,24 +2545,24 @@ var require_urlencoded = __commonJS({ this._bytesKey = 0; this._keyTrunc = false; this.decoder.reset(); - p3 = idxamp + 1; + p = idxamp + 1; if (this._fields === this.fieldsLimit) { return cb(); } } else if (this._hitLimit) { - if (i3 > p3) { - this._val += this.decoder.write(data.toString("binary", p3, i3)); + if (i > p) { + this._val += this.decoder.write(data.toString("binary", p, i)); } - p3 = i3; + p = i; if (this._val === "" && this.fieldSizeLimit === 0 || (this._bytesVal = this._val.length) === this.fieldSizeLimit) { this._checkingBytes = false; this._valTrunc = true; } } else { - if (p3 < len) { - this._val += this.decoder.write(data.toString("binary", p3)); + if (p < len) { + this._val += this.decoder.write(data.toString("binary", p)); } - p3 = len; + p = len; } } } @@ -2943,26 +2943,26 @@ var require_util2 = __commonJS({ return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException"); } function isValidReasonPhrase(statusText) { - for (let i3 = 0; i3 < statusText.length; ++i3) { - const c3 = statusText.charCodeAt(i3); - if (!(c3 === 9 || // HTAB - c3 >= 32 && c3 <= 126 || // SP / VCHAR - c3 >= 128 && c3 <= 255)) { + for (let i = 0; i < statusText.length; ++i) { + const c = statusText.charCodeAt(i); + if (!(c === 9 || // HTAB + c >= 32 && c <= 126 || // SP / VCHAR + c >= 128 && c <= 255)) { return false; } } return true; } - function isTokenChar(c3) { - return !(c3 >= 127 || c3 <= 32 || c3 === "(" || c3 === ")" || c3 === "<" || c3 === ">" || c3 === "@" || c3 === "," || c3 === ";" || c3 === ":" || c3 === "\\" || c3 === '"' || c3 === "/" || c3 === "[" || c3 === "]" || c3 === "?" || c3 === "=" || c3 === "{" || c3 === "}"); + function isTokenChar(c) { + return !(c >= 127 || c <= 32 || c === "(" || c === ")" || c === "<" || c === ">" || c === "@" || c === "," || c === ";" || c === ":" || c === "\\" || c === '"' || c === "/" || c === "[" || c === "]" || c === "?" || c === "=" || c === "{" || c === "}"); } function isValidHTTPToken(characters) { if (!characters || typeof characters !== "string") { return false; } - for (let i3 = 0; i3 < characters.length; ++i3) { - const c3 = characters.charCodeAt(i3); - if (c3 > 127 || !isTokenChar(c3)) { + for (let i = 0; i < characters.length; ++i) { + const c = characters.charCodeAt(i); + if (c > 127 || !isTokenChar(c)) { return false; } } @@ -2988,8 +2988,8 @@ var require_util2 = __commonJS({ const policyHeader = (headersList.get("referrer-policy") ?? "").split(","); let policy = ""; if (policyHeader.length > 0) { - for (let i3 = policyHeader.length; i3 !== 0; i3--) { - const token = policyHeader[i3 - 1].trim(); + for (let i = policyHeader.length; i !== 0; i--) { + const token = policyHeader[i - 1].trim(); if (referrerPolicyTokens.includes(token)) { policy = token; break; @@ -3178,7 +3178,7 @@ var require_util2 = __commonJS({ if (parsedMetadata.length === 0) { return true; } - const list = parsedMetadata.sort((c3, d3) => d3.algo.localeCompare(c3.algo)); + const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo)); const strongest = list[0].algo; const metadata = list.filter((item) => item.algo === strongest); for (const item of metadata) { @@ -3227,11 +3227,11 @@ var require_util2 = __commonJS({ } function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) { } - function sameOrigin(A2, B2) { - if (A2.origin === B2.origin && A2.origin === "null") { + function sameOrigin(A, B) { + if (A.origin === B.origin && A.origin === "null") { return true; } - if (A2.protocol === B2.protocol && A2.hostname === B2.hostname && A2.port === B2.port) { + if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) { return true; } return false; @@ -3269,9 +3269,9 @@ var require_util2 = __commonJS({ kind, target: iterator }; - const i3 = { + const i = { next() { - if (Object.getPrototypeOf(this) !== i3) { + if (Object.getPrototypeOf(this) !== i) { throw new TypeError( `'next' called on an object that does not implement interface ${name} Iterator.` ); @@ -3290,8 +3290,8 @@ var require_util2 = __commonJS({ // result of concatenating the identifier of the interface and the string " Iterator". [Symbol.toStringTag]: `${name} Iterator` }; - Object.setPrototypeOf(i3, esIteratorPrototype); - return Object.setPrototypeOf({}, i3); + Object.setPrototypeOf(i, esIteratorPrototype); + return Object.setPrototypeOf({}, i); } function iteratorResult(pair, kind) { let result; @@ -3317,15 +3317,15 @@ var require_util2 = __commonJS({ let reader; try { reader = body.stream.getReader(); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); return; } try { const result = await readAllBytes(reader); successSteps(result); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); } } var ReadableStream2 = globalThis.ReadableStream; @@ -3352,8 +3352,8 @@ var require_util2 = __commonJS({ } } function isomorphicEncode(input) { - for (let i3 = 0; i3 < input.length; i3++) { - assert(input.charCodeAt(i3) <= 255); + for (let i = 0; i < input.length; i++) { + assert(input.charCodeAt(i) <= 255); } return input; } @@ -3479,11 +3479,11 @@ var require_webidl = __commonJS({ message: `"${context.value}" is an invalid ${context.type}.` }); }; - webidl.brandCheck = function(V, I2, opts = void 0) { - if (opts?.strict !== false && !(V instanceof I2)) { + webidl.brandCheck = function(V, I, opts = void 0) { + if (opts?.strict !== false && !(V instanceof I)) { throw new TypeError("Illegal invocation"); } else { - return V?.[Symbol.toStringTag] === I2.prototype[Symbol.toStringTag]; + return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]; } }; webidl.argumentLengthCheck = function({ length }, min, ctx) { @@ -3540,51 +3540,51 @@ var require_webidl = __commonJS({ lowerBound = Math.pow(-2, bitLength) - 1; upperBound = Math.pow(2, bitLength - 1) - 1; } - let x3 = Number(V); - if (x3 === 0) { - x3 = 0; + let x = Number(V); + if (x === 0) { + x = 0; } if (opts.enforceRange === true) { - if (Number.isNaN(x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) { throw webidl.errors.exception({ header: "Integer conversion", message: `Could not convert ${V} to an integer.` }); } - x3 = webidl.util.IntegerPart(x3); - if (x3 < lowerBound || x3 > upperBound) { + x = webidl.util.IntegerPart(x); + if (x < lowerBound || x > upperBound) { throw webidl.errors.exception({ header: "Integer conversion", - message: `Value must be between ${lowerBound}-${upperBound}, got ${x3}.` + message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.` }); } - return x3; + return x; } - if (!Number.isNaN(x3) && opts.clamp === true) { - x3 = Math.min(Math.max(x3, lowerBound), upperBound); - if (Math.floor(x3) % 2 === 0) { - x3 = Math.floor(x3); + if (!Number.isNaN(x) && opts.clamp === true) { + x = Math.min(Math.max(x, lowerBound), upperBound); + if (Math.floor(x) % 2 === 0) { + x = Math.floor(x); } else { - x3 = Math.ceil(x3); + x = Math.ceil(x); } - return x3; + return x; } - if (Number.isNaN(x3) || x3 === 0 && Object.is(0, x3) || x3 === Number.POSITIVE_INFINITY || x3 === Number.NEGATIVE_INFINITY) { + if (Number.isNaN(x) || x === 0 && Object.is(0, x) || x === Number.POSITIVE_INFINITY || x === Number.NEGATIVE_INFINITY) { return 0; } - x3 = webidl.util.IntegerPart(x3); - x3 = x3 % Math.pow(2, bitLength); - if (signedness === "signed" && x3 >= Math.pow(2, bitLength) - 1) { - return x3 - Math.pow(2, bitLength); + x = webidl.util.IntegerPart(x); + x = x % Math.pow(2, bitLength); + if (signedness === "signed" && x >= Math.pow(2, bitLength) - 1) { + return x - Math.pow(2, bitLength); } - return x3; + return x; }; - webidl.util.IntegerPart = function(n3) { - const r3 = Math.floor(Math.abs(n3)); - if (n3 < 0) { - return -1 * r3; + webidl.util.IntegerPart = function(n) { + const r = Math.floor(Math.abs(n)); + if (n < 0) { + return -1 * r; } - return r3; + return r; }; webidl.sequenceConverter = function(converter) { return (V) => { @@ -3642,12 +3642,12 @@ var require_webidl = __commonJS({ return result; }; }; - webidl.interfaceConverter = function(i3) { + webidl.interfaceConverter = function(i) { return (V, opts = {}) => { - if (opts.strict !== false && !(V instanceof i3)) { + if (opts.strict !== false && !(V instanceof i)) { throw webidl.errors.exception({ - header: i3.name, - message: `Expected ${V} to be an instance of ${i3.name}.` + header: i.name, + message: `Expected ${V} to be an instance of ${i.name}.` }); } return V; @@ -3712,40 +3712,40 @@ var require_webidl = __commonJS({ return String(V); }; webidl.converters.ByteString = function(V) { - const x3 = webidl.converters.DOMString(V); - for (let index = 0; index < x3.length; index++) { - const charCode = x3.charCodeAt(index); + const x = webidl.converters.DOMString(V); + for (let index = 0; index < x.length; index++) { + const charCode = x.charCodeAt(index); if (charCode > 255) { throw new TypeError( `Cannot convert argument to a ByteString because the character at index ${index} has a value of ${charCode} which is greater than 255.` ); } } - return x3; + return x; }; webidl.converters.USVString = toUSVString; webidl.converters.boolean = function(V) { - const x3 = Boolean(V); - return x3; + const x = Boolean(V); + return x; }; webidl.converters.any = function(V) { return V; }; webidl.converters["long long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 64, "signed"); - return x3; + const x = webidl.util.ConvertToInt(V, 64, "signed"); + return x; }; webidl.converters["unsigned long long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 64, "unsigned"); - return x3; + const x = webidl.util.ConvertToInt(V, 64, "unsigned"); + return x; }; webidl.converters["unsigned long"] = function(V) { - const x3 = webidl.util.ConvertToInt(V, 32, "unsigned"); - return x3; + const x = webidl.util.ConvertToInt(V, 32, "unsigned"); + return x; }; webidl.converters["unsigned short"] = function(V, opts) { - const x3 = webidl.util.ConvertToInt(V, 16, "unsigned", opts); - return x3; + const x = webidl.util.ConvertToInt(V, 16, "unsigned", opts); + return x; }; webidl.converters.ArrayBuffer = function(V, opts = {}) { if (webidl.util.Type(V) !== "Object" || !types.isAnyArrayBuffer(V)) { @@ -3904,17 +3904,17 @@ var require_dataURL = __commonJS({ } function percentDecode(input) { const output = []; - for (let i3 = 0; i3 < input.length; i3++) { - const byte = input[i3]; + for (let i = 0; i < input.length; i++) { + const byte = input[i]; if (byte !== 37) { output.push(byte); - } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i3 + 1], input[i3 + 2]))) { + } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))) { output.push(37); } else { - const nextTwoBytes = String.fromCharCode(input[i3 + 1], input[i3 + 2]); + const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2]); const bytePoint = Number.parseInt(nextTwoBytes, 16); output.push(bytePoint); - i3 += 2; + i += 2; } } return Uint8Array.from(output); @@ -4127,25 +4127,25 @@ var require_file = __commonJS({ fileBits = webidl.converters["sequence"](fileBits); fileName = webidl.converters.USVString(fileName); options = webidl.converters.FilePropertyBag(options); - const n3 = fileName; - let t3 = options.type; - let d3; + const n = fileName; + let t = options.type; + let d; substep: { - if (t3) { - t3 = parseMIMEType(t3); - if (t3 === "failure") { - t3 = ""; + if (t) { + t = parseMIMEType(t); + if (t === "failure") { + t = ""; break substep; } - t3 = serializeAMimeType(t3).toLowerCase(); + t = serializeAMimeType(t).toLowerCase(); } - d3 = options.lastModified; + d = options.lastModified; } - super(processBlobParts(fileBits, options), { type: t3 }); + super(processBlobParts(fileBits, options), { type: t }); this[kState] = { - name: n3, - lastModified: d3, - type: t3 + name: n, + lastModified: d, + type: t }; } get name() { @@ -4163,14 +4163,14 @@ var require_file = __commonJS({ }; var FileLike = class _FileLike { constructor(blobLike, fileName, options = {}) { - const n3 = fileName; - const t3 = options.type; - const d3 = options.lastModified ?? Date.now(); + const n = fileName; + const t = options.type; + const d = options.lastModified ?? Date.now(); this[kState] = { blobLike, - name: n3, - type: t3, - lastModified: d3 + name: n, + type: t, + lastModified: d }; } stream(...args) { @@ -4262,11 +4262,11 @@ var require_file = __commonJS({ const bytes = []; for (const element of parts) { if (typeof element === "string") { - let s3 = element; + let s = element; if (options.endings === "native") { - s3 = convertLineEndingsNative(s3); + s = convertLineEndingsNative(s); } - bytes.push(new TextEncoder().encode(s3)); + bytes.push(new TextEncoder().encode(s)); } else if (types.isAnyArrayBuffer(element) || types.isTypedArray(element)) { if (!element.buffer) { bytes.push(new Uint8Array(element)); @@ -4281,12 +4281,12 @@ var require_file = __commonJS({ } return bytes; } - function convertLineEndingsNative(s3) { + function convertLineEndingsNative(s) { let nativeLineEnding = "\n"; if (process.platform === "win32") { nativeLineEnding = "\r\n"; } - return s3.replace(/\r?\n/g, nativeLineEnding); + return s.replace(/\r?\n/g, nativeLineEnding); } function isFileLike(object) { return NativeFile && object instanceof NativeFile || object instanceof File || object && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && object[Symbol.toStringTag] === "File"; @@ -4777,8 +4777,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r const successSteps = (data) => { try { promise.resolve(convertBytesToJSValue(data)); - } catch (e3) { - errorSteps(e3); + } catch (e) { + errorSteps(e); } }; if (object[kState].body == null) { @@ -4933,13 +4933,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - processHeader(this, headers[i3], headers[i3 + 1]); + for (let i = 0; i < headers.length; i += 2) { + processHeader(this, headers[i], headers[i + 1]); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; processHeader(this, key, headers[key]); } } else if (headers != null) { @@ -5044,13 +5044,13 @@ var require_request = __commonJS({ if (headers.length % 2 !== 0) { throw new InvalidArgumentError("headers array must be even"); } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - processHeader(request, headers[i3], headers[i3 + 1], true); + for (let i = 0; i < headers.length; i += 2) { + processHeader(request, headers[i], headers[i + 1], true); } } else if (headers && typeof headers === "object") { const keys = Object.keys(headers); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; processHeader(request, key, headers[key], true); } } else if (headers != null) { @@ -5120,12 +5120,12 @@ var require_request = __commonJS({ throw new InvalidArgumentError("invalid header key"); } else { if (Array.isArray(val2)) { - for (let i3 = 0; i3 < val2.length; i3++) { + for (let i = 0; i < val2.length; i++) { if (skipAppend) { - if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val2[i3], skipAppend)}`; - else request.headers[key] = processHeaderValue(key, val2[i3], skipAppend); + if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val2[i], skipAppend)}`; + else request.headers[key] = processHeaderValue(key, val2[i], skipAppend); } else { - request.headers += processHeaderValue(key, val2[i3]); + request.headers += processHeaderValue(key, val2[i]); } } } else { @@ -5193,8 +5193,8 @@ var require_dispatcher_base = __commonJS({ } set interceptors(newInterceptors) { if (newInterceptors) { - for (let i3 = newInterceptors.length - 1; i3 >= 0; i3--) { - const interceptor = this[kInterceptors][i3]; + for (let i = newInterceptors.length - 1; i >= 0; i--) { + const interceptor = this[kInterceptors][i]; if (typeof interceptor !== "function") { throw new InvalidArgumentError("interceptor must be an function"); } @@ -5230,8 +5230,8 @@ var require_dispatcher_base = __commonJS({ const onClosed = () => { const callbacks = this[kOnClosed]; this[kOnClosed] = null; - for (let i3 = 0; i3 < callbacks.length; i3++) { - callbacks[i3](null, null); + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null); } }; this[kClose]().then(() => this.destroy()).then(() => { @@ -5273,8 +5273,8 @@ var require_dispatcher_base = __commonJS({ const onDestroyed = () => { const callbacks = this[kOnDestroyed]; this[kOnDestroyed] = null; - for (let i3 = 0; i3 < callbacks.length; i3++) { - callbacks[i3](null, null); + for (let i = 0; i < callbacks.length; i++) { + callbacks[i](null, null); } }; this[kDestroy](err).then(() => { @@ -5287,8 +5287,8 @@ var require_dispatcher_base = __commonJS({ return this[kDispatch](opts, handler); } let dispatch = this[kDispatch].bind(this); - for (let i3 = this[kInterceptors].length - 1; i3 >= 0; i3--) { - dispatch = this[kInterceptors][i3](dispatch); + for (let i = this[kInterceptors].length - 1; i >= 0; i--) { + dispatch = this[kInterceptors][i](dispatch); } this[kInterceptedDispatch] = dispatch; return dispatch(opts, handler); @@ -5454,11 +5454,11 @@ var require_connect = __commonJS({ }; } let s1 = null; - let s22 = null; + let s2 = null; const timeoutId = setTimeout(() => { s1 = setImmediate(() => { if (process.platform === "win32") { - s22 = setImmediate(() => onConnectTimeout2()); + s2 = setImmediate(() => onConnectTimeout2()); } else { onConnectTimeout2(); } @@ -5467,7 +5467,7 @@ var require_connect = __commonJS({ return () => { clearTimeout(timeoutId); clearImmediate(s1); - clearImmediate(s22); + clearImmediate(s2); }; } function onConnectTimeout(socket) { @@ -5677,9 +5677,9 @@ var require_constants2 = __commonJS({ FINISH2[FINISH2["UNSAFE"] = 2] = "UNSAFE"; })(FINISH = exports2.FINISH || (exports2.FINISH = {})); exports2.ALPHA = []; - for (let i3 = "A".charCodeAt(0); i3 <= "Z".charCodeAt(0); i3++) { - exports2.ALPHA.push(String.fromCharCode(i3)); - exports2.ALPHA.push(String.fromCharCode(i3 + 32)); + for (let i = "A".charCodeAt(0); i <= "Z".charCodeAt(0); i++) { + exports2.ALPHA.push(String.fromCharCode(i)); + exports2.ALPHA.push(String.fromCharCode(i + 32)); } exports2.NUM_MAP = { 0: 0, @@ -5765,8 +5765,8 @@ var require_constants2 = __commonJS({ "~" ].concat(exports2.ALPHANUM); exports2.URL_CHAR = exports2.STRICT_URL_CHAR.concat([" ", "\f"]); - for (let i3 = 128; i3 <= 255; i3++) { - exports2.URL_CHAR.push(i3); + for (let i = 128; i <= 255; i++) { + exports2.URL_CHAR.push(i); } exports2.HEX = exports2.NUM.concat(["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"]); exports2.STRICT_TOKEN = [ @@ -5788,12 +5788,12 @@ var require_constants2 = __commonJS({ ].concat(exports2.ALPHANUM); exports2.TOKEN = exports2.STRICT_TOKEN.concat([" "]); exports2.HEADER_CHARS = [" "]; - for (let i3 = 32; i3 <= 255; i3++) { - if (i3 !== 127) { - exports2.HEADER_CHARS.push(i3); + for (let i = 32; i <= 255; i++) { + if (i !== 127) { + exports2.HEADER_CHARS.push(i); } } - exports2.CONNECTION_TOKEN_CHARS = exports2.HEADER_CHARS.filter((c3) => c3 !== 44); + exports2.CONNECTION_TOKEN_CHARS = exports2.HEADER_CHARS.filter((c) => c !== 44); exports2.MAJOR = exports2.NUM_MAP; exports2.MINOR = exports2.MAJOR; var HEADER_STATE; @@ -5926,9 +5926,9 @@ var require_RedirectHandler = __commonJS({ if (redirectableStatusCodes.indexOf(statusCode) === -1) { return null; } - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (headers[i3].toString().toLowerCase() === "location") { - return headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toString().toLowerCase() === "location") { + return headers[i + 1]; } } } @@ -5938,9 +5938,9 @@ var require_RedirectHandler = __commonJS({ function cleanRequestHeaders(headers, removeContent, unknownOrigin) { const ret = []; if (Array.isArray(headers)) { - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (!shouldRemoveHeader(headers[i3], removeContent, unknownOrigin)) { - ret.push(headers[i3], headers[i3 + 1]); + for (let i = 0; i < headers.length; i += 2) { + if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) { + ret.push(headers[i], headers[i + 1]); } } } else if (headers && typeof headers === "object") { @@ -6310,8 +6310,8 @@ var require_client = __commonJS({ async [kDestroy](err) { return new Promise((resolve) => { const requests = this[kQueue].splice(this[kPendingIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(this, request, err); } const callback = () => { @@ -6359,8 +6359,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(this[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(this, request, err); } } else if (client[kRunning] > 0) { @@ -6386,45 +6386,45 @@ var require_client = __commonJS({ let mod; try { mod = await WebAssembly.compile(Buffer.from(require_llhttp_simd_wasm(), "base64")); - } catch (e3) { + } catch (e) { mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require_llhttp_wasm(), "base64")); } return await WebAssembly.instantiate(mod, { env: { /* eslint-disable camelcase */ - wasm_on_url: (p3, at, len) => { + wasm_on_url: (p, at, len) => { return 0; }, - wasm_on_status: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_status: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_begin: (p3) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_message_begin: (p) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onMessageBegin() || 0; }, - wasm_on_header_field: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_header_field: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_header_value: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_header_value: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_headers_complete: (p3, statusCode, upgrade, shouldKeepAlive) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0; }, - wasm_on_body: (p3, at, len) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_body: (p, at, len) => { + assert.strictEqual(currentParser.ptr, p); const start = at - currentBufferPtr + currentBufferRef.byteOffset; return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0; }, - wasm_on_message_complete: (p3) => { - assert.strictEqual(currentParser.ptr, p3); + wasm_on_message_complete: (p) => { + assert.strictEqual(currentParser.ptr, p); return currentParser.onMessageComplete() || 0; } /* eslint-enable camelcase */ @@ -6838,8 +6838,8 @@ var require_client = __commonJS({ if (client[kRunning] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") { assert(client[kPendingIdx] === client[kRunningIdx]); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(client, request, err); } assert(client[kSize] === 0); @@ -6869,8 +6869,8 @@ var require_client = __commonJS({ if (client.destroyed) { assert(client[kPending] === 0); const requests = client[kQueue].splice(client[kRunningIdx]); - for (let i3 = 0; i3 < requests.length; i3++) { - const request = requests[i3]; + for (let i = 0; i < requests.length; i++) { + const request = requests[i]; errorRequest(client, request, err); } } else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") { @@ -6932,8 +6932,8 @@ var require_client = __commonJS({ } client[kConnecting] = false; assert(socket); - const isH22 = socket.alpnProtocol === "h2"; - if (isH22) { + const isH2 = socket.alpnProtocol === "h2"; + if (isH2) { if (!h2ExperimentalWarned) { h2ExperimentalWarned = true; process.emitWarning("H2 support is experimental, expect them to change at any time.", { @@ -7508,13 +7508,13 @@ upgrade: ${upgrade}\r } async function writeBlob({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { assert(contentLength === body.size, "blob body must have content length"); - const isH22 = client[kHTTPConnVersion] === "h2"; + const isH2 = client[kHTTPConnVersion] === "h2"; try { if (contentLength != null && contentLength !== body.size) { throw new RequestContentLengthMismatchError(); } const buffer = Buffer.from(await body.arrayBuffer()); - if (isH22) { + if (isH2) { h2stream.cork(); h2stream.write(buffer); h2stream.uncork(); @@ -7533,7 +7533,7 @@ upgrade: ${upgrade}\r } resume(client); } catch (err) { - util.destroy(isH22 ? h2stream : socket, err); + util.destroy(isH2 ? h2stream : socket, err); } } async function writeIterable({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) { @@ -7845,7 +7845,7 @@ var require_pool_base = __commonJS({ pool.emit("drain", origin, [pool, ...targets]); } if (pool[kClosedResolve] && queue.isEmpty()) { - Promise.all(pool[kClients].map((c3) => c3.close())).then(pool[kClosedResolve]); + Promise.all(pool[kClients].map((c) => c.close())).then(pool[kClosedResolve]); } }; this[kOnConnect] = (origin, targets) => { @@ -7894,7 +7894,7 @@ var require_pool_base = __commonJS({ } async [kClose]() { if (this[kQueue].isEmpty()) { - return Promise.all(this[kClients].map((c3) => c3.close())); + return Promise.all(this[kClients].map((c) => c.close())); } else { return new Promise((resolve) => { this[kClosedResolve] = resolve; @@ -7909,7 +7909,7 @@ var require_pool_base = __commonJS({ } item.handler.onError(err); } - return Promise.all(this[kClients].map((c3) => c3.destroy(err))); + return Promise.all(this[kClients].map((c) => c.destroy(err))); } [kDispatch](opts, handler) { const dispatcher = this[kGetDispatcher](); @@ -8065,9 +8065,9 @@ var require_balanced_pool = __commonJS({ var kWeight = Symbol("kWeight"); var kMaxWeightPerServer = Symbol("kMaxWeightPerServer"); var kErrorPenalty = Symbol("kErrorPenalty"); - function getGreatestCommonDivisor(a3, b3) { - if (b3 === 0) return a3; - return getGreatestCommonDivisor(b3, a3 % b3); + function getGreatestCommonDivisor(a, b) { + if (b === 0) return a; + return getGreatestCommonDivisor(b, a % b); } function defaultFactory(origin, opts) { return new Pool(origin, opts); @@ -8121,7 +8121,7 @@ var require_balanced_pool = __commonJS({ return this; } _updateBalancedPoolStats() { - this[kGreatestCommonDivisor] = this[kClients].map((p3) => p3[kWeight]).reduce(getGreatestCommonDivisor, 0); + this[kGreatestCommonDivisor] = this[kClients].map((p) => p[kWeight]).reduce(getGreatestCommonDivisor, 0); } removeUpstream(upstream) { const upstreamOrigin = parseOrigin(upstream).origin; @@ -8132,7 +8132,7 @@ var require_balanced_pool = __commonJS({ return this; } get upstreams() { - return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p3) => p3[kUrl].origin); + return this[kClients].filter((dispatcher) => dispatcher.closed !== true && dispatcher.destroyed !== true).map((p) => p[kUrl].origin); } [kGetDispatcher]() { if (this[kClients].length === 0) { @@ -8142,7 +8142,7 @@ var require_balanced_pool = __commonJS({ if (!dispatcher) { return; } - const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a3, b3) => a3 && b3, true); + const allClientsBusy = this[kClients].map((pool) => pool[kNeedDrain]).reduce((a, b) => a && b, true); if (allClientsBusy) { return; } @@ -8685,7 +8685,7 @@ var require_api_request = __commonJS({ var { getResolveErrorBodyCallback } = require_util3(); var { AsyncResource } = require("async_hooks"); var { addSignal, removeSignal } = require_abort_signal(); - var RequestHandler3 = class extends AsyncResource { + var RequestHandler = class extends AsyncResource { constructor(opts, callback) { if (!opts || typeof opts !== "object") { throw new InvalidArgumentError("invalid opts"); @@ -8812,7 +8812,7 @@ var require_api_request = __commonJS({ }); } try { - this.dispatch(opts, new RequestHandler3(opts, callback)); + this.dispatch(opts, new RequestHandler(opts, callback)); } catch (err) { if (typeof callback !== "function") { throw err; @@ -9468,9 +9468,9 @@ var require_mock_utils = __commonJS({ } function getHeaderByName(headers, key) { if (Array.isArray(headers)) { - for (let i3 = 0; i3 < headers.length; i3 += 2) { - if (headers[i3].toLocaleLowerCase() === key.toLocaleLowerCase()) { - return headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) { + return headers[i + 1]; } } return void 0; @@ -9590,7 +9590,7 @@ var require_mock_utils = __commonJS({ return Object.entries(data).reduce((keyValuePairs, [key, value]) => [ ...keyValuePairs, Buffer.from(`${key}`), - Array.isArray(value) ? value.map((x3) => Buffer.from(`${x3}`)) : Buffer.from(`${value}`) + Array.isArray(value) ? value.map((x) => Buffer.from(`${x}`)) : Buffer.from(`${value}`) ], []); } function getStatusText(statusCode) { @@ -9626,9 +9626,9 @@ var require_mock_utils = __commonJS({ } else { handleReply(this[kDispatches]); } - function handleReply(mockDispatches, _data3 = data) { + function handleReply(mockDispatches, _data = data) { const optsHeaders = Array.isArray(opts.headers) ? buildHeadersFromArray(opts.headers) : opts.headers; - const body = typeof _data3 === "function" ? _data3({ ...opts, headers: optsHeaders }) : _data3; + const body = typeof _data === "function" ? _data({ ...opts, headers: optsHeaders }) : _data; if (isPromise(body)) { body.then((newData) => handleReply(mockDispatches, newData)); return; @@ -10317,8 +10317,8 @@ var require_proxy_agent = __commonJS({ function buildHeaders(headers) { if (Array.isArray(headers)) { const headersPair = {}; - for (let i3 = 0; i3 < headers.length; i3 += 2) { - headersPair[headers[i3]] = headers[i3 + 1]; + for (let i = 0; i < headers.length; i += 2) { + headersPair[headers[i]] = headers[i + 1]; } return headersPair; } @@ -10415,9 +10415,9 @@ var require_headers = __commonJS({ var kHeadersMap = Symbol("headers map"); var kHeadersSortedMap = Symbol("headers map sorted"); function headerValueNormalize(potentialValue) { - let i3 = potentialValue.length; - while (/[\r\n\t ]/.test(potentialValue.charAt(--i3))) ; - return potentialValue.slice(0, i3 + 1).replace(/^[\r\n\t ]+/, ""); + let i = potentialValue.length; + while (/[\r\n\t ]/.test(potentialValue.charAt(--i))) ; + return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, ""); } function fill(headers, object) { if (Array.isArray(object)) { @@ -10649,7 +10649,7 @@ var require_headers = __commonJS({ return this[kHeadersList][kHeadersSortedMap]; } const headers = []; - const names = [...this[kHeadersList]].sort((a3, b3) => a3[0] < b3[0] ? -1 : 1); + const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1); const cookies = this[kHeadersList].cookies; for (const [name, value] of names) { if (name === "set-cookie") { @@ -10987,12 +10987,12 @@ var require_response = __commonJS({ ...state2 }; return new Proxy(response, { - get(target, p3) { - return p3 in state2 ? state2[p3] : target[p3]; + get(target, p) { + return p in state2 ? state2[p] : target[p]; }, - set(target, p3, value) { - assert(!(p3 in state2)); - target[p3] = value; + set(target, p, value) { + assert(!(p in state2)); + target[p] = value; return true; } }); @@ -11864,18 +11864,18 @@ var require_fetch = __commonJS({ }; async function fetch2(input, init = {}) { webidl.argumentLengthCheck(arguments, 1, { header: "globalThis.fetch" }); - const p3 = createDeferredPromise(); + const p = createDeferredPromise(); let requestObject; try { requestObject = new Request2(input, init); - } catch (e3) { - p3.reject(e3); - return p3.promise; + } catch (e) { + p.reject(e); + return p.promise; } const request = requestObject[kState]; if (requestObject.signal.aborted) { - abortFetch(p3, request, null, requestObject.signal.reason); - return p3.promise; + abortFetch(p, request, null, requestObject.signal.reason); + return p.promise; } const globalObject = request.client.globalObject; if (globalObject?.constructor?.name === "ServiceWorkerGlobalScope") { @@ -11891,7 +11891,7 @@ var require_fetch = __commonJS({ locallyAborted = true; assert(controller != null); controller.abort(requestObject.signal.reason); - abortFetch(p3, request, responseObject, requestObject.signal.reason); + abortFetch(p, request, responseObject, requestObject.signal.reason); } ); const handleFetchDone = (response) => finalizeAndReportTiming(response, "fetch"); @@ -11900,11 +11900,11 @@ var require_fetch = __commonJS({ return; } if (response.aborted) { - abortFetch(p3, request, responseObject, controller.serializedAbortReason); + abortFetch(p, request, responseObject, controller.serializedAbortReason); return; } if (response.type === "error") { - p3.reject( + p.reject( Object.assign(new TypeError("fetch failed"), { cause: response.error }) ); return; @@ -11915,7 +11915,7 @@ var require_fetch = __commonJS({ responseObject[kHeaders][kHeadersList] = response.headersList; responseObject[kHeaders][kGuard] = "immutable"; responseObject[kHeaders][kRealm] = relevantRealm; - p3.resolve(responseObject); + p.resolve(responseObject); }; controller = fetching({ request, @@ -11924,7 +11924,7 @@ var require_fetch = __commonJS({ dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici }); - return p3.promise; + return p.promise; } function finalizeAndReportTiming(response, initiatorType = "other") { if (response.type === "error" && response.aborted) { @@ -11963,11 +11963,11 @@ var require_fetch = __commonJS({ performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState); } } - function abortFetch(p3, request, responseObject, error2) { + function abortFetch(p, request, responseObject, error2) { if (!error2) { error2 = new DOMException2("The operation was aborted.", "AbortError"); } - p3.reject(error2); + p.reject(error2); if (request.body != null && isReadable(request.body?.stream)) { request.body.stream.cancel(error2).catch((err) => { if (err.code === "ERR_INVALID_STATE") { @@ -12532,14 +12532,14 @@ var require_fetch = __commonJS({ fetchParams.processRequestEndOfBody(); } }; - const processBodyError = (e3) => { + const processBodyError = (e) => { if (isCancelled(fetchParams)) { return; } - if (e3.name === "AbortError") { + if (e.name === "AbortError") { fetchParams.controller.abort(); } else { - fetchParams.controller.terminate(e3); + fetchParams.controller.terminate(e); } }; requestBody = async function* () { @@ -12688,11 +12688,11 @@ var require_fetch = __commonJS({ let location = ""; const headers = new Headers2(); if (Array.isArray(headersList)) { - for (let n3 = 0; n3 < headersList.length; n3 += 2) { - const key = headersList[n3 + 0].toString("latin1"); - const val2 = headersList[n3 + 1].toString("latin1"); + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString("latin1"); + const val2 = headersList[n + 1].toString("latin1"); if (key.toLowerCase() === "content-encoding") { - codings = val2.toLowerCase().split(",").map((x3) => x3.trim()); + codings = val2.toLowerCase().split(",").map((x) => x.trim()); } else if (key.toLowerCase() === "location") { location = val2; } @@ -12703,7 +12703,7 @@ var require_fetch = __commonJS({ for (const key of keys) { const val2 = headersList[key]; if (key.toLowerCase() === "content-encoding") { - codings = val2.toLowerCase().split(",").map((x3) => x3.trim()).reverse(); + codings = val2.toLowerCase().split(",").map((x) => x.trim()).reverse(); } else if (key.toLowerCase() === "location") { location = val2; } @@ -12772,9 +12772,9 @@ var require_fetch = __commonJS({ return; } const headers = new Headers2(); - for (let n3 = 0; n3 < headersList.length; n3 += 2) { - const key = headersList[n3 + 0].toString("latin1"); - const val2 = headersList[n3 + 1].toString("latin1"); + for (let n = 0; n < headersList.length; n += 2) { + const key = headersList[n + 0].toString("latin1"); + const val2 = headersList[n + 1].toString("latin1"); headers.append(key, val2); } resolve({ @@ -13258,8 +13258,8 @@ var require_util4 = __commonJS({ } })(); } - function fireAProgressEvent(e3, reader) { - const event = new ProgressEvent(e3, { + function fireAProgressEvent(e, reader) { + const event = new ProgressEvent(e, { bubbles: false, cancelable: false }); @@ -13324,25 +13324,25 @@ var require_util4 = __commonJS({ return new TextDecoder(encoding).decode(sliced); } function BOMSniffing(ioQueue) { - const [a3, b3, c3] = ioQueue; - if (a3 === 239 && b3 === 187 && c3 === 191) { + const [a, b, c] = ioQueue; + if (a === 239 && b === 187 && c === 191) { return "UTF-8"; - } else if (a3 === 254 && b3 === 255) { + } else if (a === 254 && b === 255) { return "UTF-16BE"; - } else if (a3 === 255 && b3 === 254) { + } else if (a === 255 && b === 254) { return "UTF-16LE"; } return null; } function combineByteSequences(sequences) { - const size = sequences.reduce((a3, b3) => { - return a3 + b3.byteLength; + const size = sequences.reduce((a, b) => { + return a + b.byteLength; }, 0); let offset = 0; - return sequences.reduce((a3, b3) => { - a3.set(b3, offset); - offset += b3.byteLength; - return a3; + return sequences.reduce((a, b) => { + a.set(b, offset); + offset += b.byteLength; + return a; }, new Uint8Array(size)); } module2.exports = { @@ -13629,9 +13629,9 @@ var require_util5 = __commonJS({ var assert = require("assert"); var { URLSerializer } = require_dataURL(); var { isValidHeaderName } = require_util2(); - function urlEquals(A2, B2, excludeFragment = false) { - const serializedA = URLSerializer(A2, excludeFragment); - const serializedB = URLSerializer(B2, excludeFragment); + function urlEquals(A, B, excludeFragment = false) { + const serializedA = URLSerializer(A, excludeFragment); + const serializedB = URLSerializer(B, excludeFragment); return serializedA === serializedB; } function fieldValues(header) { @@ -13688,25 +13688,25 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.match" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - const p3 = await this.matchAll(request, options); - if (p3.length === 0) { + const p = await this.matchAll(request, options); + if (p.length === 0) { return; } - return p3[0]; + return p[0]; } async matchAll(request = void 0, options = {}) { webidl.brandCheck(this, _Cache); if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request !== void 0) { if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } } const responses = []; @@ -13715,7 +13715,7 @@ var require_cache = __commonJS({ responses.push(requestResponse[1]); } } else { - const requestResponses = this.#queryCache(r3, options); + const requestResponses = this.#queryCache(r, options); for (const requestResponse of requestResponses) { responses.push(requestResponse[1]); } @@ -13750,8 +13750,8 @@ var require_cache = __commonJS({ if (typeof request === "string") { continue; } - const r3 = request[kState]; - if (!urlIsHttpHttpsScheme(r3.url) || r3.method !== "GET") { + const r = request[kState]; + if (!urlIsHttpHttpsScheme(r.url) || r.method !== "GET") { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme when method is not GET." @@ -13760,19 +13760,19 @@ var require_cache = __commonJS({ } const fetchControllers = []; for (const request of requests) { - const r3 = new Request2(request)[kState]; - if (!urlIsHttpHttpsScheme(r3.url)) { + const r = new Request2(request)[kState]; + if (!urlIsHttpHttpsScheme(r.url)) { throw webidl.errors.exception({ header: "Cache.addAll", message: "Expected http/s scheme." }); } - r3.initiator = "fetch"; - r3.destination = "subresource"; - requestList.push(r3); + r.initiator = "fetch"; + r.destination = "subresource"; + requestList.push(r); const responsePromise = createDeferredPromise(); fetchControllers.push(fetching({ - request: r3, + request: r, dispatcher: getGlobalDispatcher(), processResponse(response) { if (response.type === "error" || response.status === 206 || response.status < 200 || response.status > 299) { @@ -13806,8 +13806,8 @@ var require_cache = __commonJS({ })); responsePromises.push(responsePromise.promise); } - const p3 = Promise.all(responsePromises); - const responses = await p3; + const p = Promise.all(responsePromises); + const responses = await p; const operations = []; let index = 0; for (const response of responses) { @@ -13826,8 +13826,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13906,8 +13906,8 @@ var require_cache = __commonJS({ let errorData = null; try { this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13923,20 +13923,20 @@ var require_cache = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "Cache.delete" }); request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return false; } } else { assert(typeof request === "string"); - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } const operations = []; const operation = { type: "delete", - request: r3, + request: r, options }; operations.push(operation); @@ -13945,8 +13945,8 @@ var require_cache = __commonJS({ let requestResponses; try { requestResponses = this.#batchCacheOperations(operations); - } catch (e3) { - errorData = e3; + } catch (e) { + errorData = e; } queueMicrotask(() => { if (errorData === null) { @@ -13967,15 +13967,15 @@ var require_cache = __commonJS({ webidl.brandCheck(this, _Cache); if (request !== void 0) request = webidl.converters.RequestInfo(request); options = webidl.converters.CacheQueryOptions(options); - let r3 = null; + let r = null; if (request !== void 0) { if (request instanceof Request2) { - r3 = request[kState]; - if (r3.method !== "GET" && !options.ignoreMethod) { + r = request[kState]; + if (r.method !== "GET" && !options.ignoreMethod) { return []; } } else if (typeof request === "string") { - r3 = new Request2(request)[kState]; + r = new Request2(request)[kState]; } } const promise = createDeferredPromise(); @@ -13985,7 +13985,7 @@ var require_cache = __commonJS({ requests.push(requestResponse[0]); } } else { - const requestResponses = this.#queryCache(r3, options); + const requestResponses = this.#queryCache(r, options); for (const requestResponse of requestResponses) { requests.push(requestResponse[0]); } @@ -14010,8 +14010,8 @@ var require_cache = __commonJS({ * @returns {requestResponseList} */ #batchCacheOperations(operations) { - const cache3 = this.#relevantRequestResponseList; - const backupCache = [...cache3]; + const cache = this.#relevantRequestResponseList; + const backupCache = [...cache]; const addedItems = []; const resultList = []; try { @@ -14038,9 +14038,9 @@ var require_cache = __commonJS({ return []; } for (const requestResponse of requestResponses) { - const idx = cache3.indexOf(requestResponse); + const idx = cache.indexOf(requestResponse); assert(idx !== -1); - cache3.splice(idx, 1); + cache.splice(idx, 1); } } else if (operation.type === "put") { if (operation.response == null) { @@ -14049,14 +14049,14 @@ var require_cache = __commonJS({ message: "put operation should have an associated response" }); } - const r3 = operation.request; - if (!urlIsHttpHttpsScheme(r3.url)) { + const r = operation.request; + if (!urlIsHttpHttpsScheme(r.url)) { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "expected http or https scheme" }); } - if (r3.method !== "GET") { + if (r.method !== "GET") { throw webidl.errors.exception({ header: "Cache.#batchCacheOperations", message: "not get method" @@ -14070,20 +14070,20 @@ var require_cache = __commonJS({ } requestResponses = this.#queryCache(operation.request); for (const requestResponse of requestResponses) { - const idx = cache3.indexOf(requestResponse); + const idx = cache.indexOf(requestResponse); assert(idx !== -1); - cache3.splice(idx, 1); + cache.splice(idx, 1); } - cache3.push([operation.request, operation.response]); + cache.push([operation.request, operation.response]); addedItems.push([operation.request, operation.response]); } resultList.push([operation.request, operation.response]); } return resultList; - } catch (e3) { + } catch (e) { this.#relevantRequestResponseList.length = 0; this.#relevantRequestResponseList = backupCache; - throw e3; + throw e; } } /** @@ -14214,13 +14214,13 @@ var require_cachestorage = __commonJS({ if (options.cacheName != null) { if (this.#caches.has(options.cacheName)) { const cacheList = this.#caches.get(options.cacheName); - const cache3 = new Cache(kConstruct, cacheList); - return await cache3.match(request, options); + const cache = new Cache(kConstruct, cacheList); + return await cache.match(request, options); } } else { for (const cacheList of this.#caches.values()) { - const cache3 = new Cache(kConstruct, cacheList); - const response = await cache3.match(request, options); + const cache = new Cache(kConstruct, cacheList); + const response = await cache.match(request, options); if (response !== void 0) { return response; } @@ -14248,12 +14248,12 @@ var require_cachestorage = __commonJS({ webidl.argumentLengthCheck(arguments, 1, { header: "CacheStorage.open" }); cacheName = webidl.converters.DOMString(cacheName); if (this.#caches.has(cacheName)) { - const cache4 = this.#caches.get(cacheName); - return new Cache(kConstruct, cache4); + const cache2 = this.#caches.get(cacheName); + return new Cache(kConstruct, cache2); } - const cache3 = []; - this.#caches.set(cacheName, cache3); - return new Cache(kConstruct, cache3); + const cache = []; + this.#caches.set(cacheName, cache); + return new Cache(kConstruct, cache); } /** * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete @@ -15053,8 +15053,8 @@ var require_util7 = __commonJS({ function isClosed(ws) { return ws[kReadyState] === states.CLOSED; } - function fireEvent(e3, target, eventConstructor = Event, eventInitDict) { - const event = new eventConstructor(e3, eventInitDict); + function fireEvent(e, target, eventConstructor = Event, eventInitDict) { + const event = new eventConstructor(e, eventInitDict); target.dispatchEvent(event); } function websocketMessageReceived(ws, type, data) { @@ -15320,8 +15320,8 @@ var require_frame = __commonJS({ buffer.writeUIntBE(bodyLength, 4, 6); } buffer[1] |= 128; - for (let i3 = 0; i3 < bodyLength; i3++) { - buffer[offset + i3] = this.frameData[i3] ^ this.maskKey[i3 % 4]; + for (let i = 0; i < bodyLength; i++) { + buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]; } return buffer; } @@ -15359,7 +15359,7 @@ var require_receiver = __commonJS({ * @param {Buffer} chunk * @param {() => void} callback */ - _write(chunk, _2, callback) { + _write(chunk, _, callback) { this.#buffers.push(chunk); this.#byteOffset += chunk.length; this.run(callback); @@ -15503,34 +15503,34 @@ var require_receiver = __commonJS({ * @param {number} n * @returns {Buffer|null} */ - consume(n3) { - if (n3 > this.#byteOffset) { + consume(n) { + if (n > this.#byteOffset) { return null; - } else if (n3 === 0) { + } else if (n === 0) { return emptyBuffer; } - if (this.#buffers[0].length === n3) { + if (this.#buffers[0].length === n) { this.#byteOffset -= this.#buffers[0].length; return this.#buffers.shift(); } - const buffer = Buffer.allocUnsafe(n3); + const buffer = Buffer.allocUnsafe(n); let offset = 0; - while (offset !== n3) { + while (offset !== n) { const next = this.#buffers[0]; const { length } = next; - if (length + offset === n3) { + if (length + offset === n) { buffer.set(this.#buffers.shift(), offset); break; - } else if (length + offset > n3) { - buffer.set(next.subarray(0, n3 - offset), offset); - this.#buffers[0] = next.subarray(n3 - offset); + } else if (length + offset > n) { + buffer.set(next.subarray(0, n - offset), offset); + this.#buffers[0] = next.subarray(n - offset); break; } else { buffer.set(this.#buffers.shift(), offset); offset += next.length; } } - this.#byteOffset -= n3; + this.#byteOffset -= n; return buffer; } parseCloseBody(onlyCode, data) { @@ -15624,8 +15624,8 @@ var require_websocket = __commonJS({ let urlRecord; try { urlRecord = new URL(url, baseURL); - } catch (e3) { - throw new DOMException2(e3, "SyntaxError"); + } catch (e) { + throw new DOMException2(e, "SyntaxError"); } if (urlRecord.protocol === "http:") { urlRecord.protocol = "ws:"; @@ -15644,10 +15644,10 @@ var require_websocket = __commonJS({ if (typeof protocols === "string") { protocols = [protocols]; } - if (protocols.length !== new Set(protocols.map((p3) => p3.toLowerCase())).size) { + if (protocols.length !== new Set(protocols.map((p) => p.toLowerCase())).size) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } - if (protocols.length > 0 && !protocols.every((p3) => isValidSubprotocol(p3))) { + if (protocols.length > 0 && !protocols.every((p) => isValidSubprotocol(p))) { throw new DOMException2("Invalid Sec-WebSocket-Protocol value", "SyntaxError"); } this[kWebSocketURL] = new URL(urlRecord.href); @@ -16114,29 +16114,29 @@ var require_undici = __commonJS({ var require_lib = __commonJS({ "../../node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -16151,15 +16151,15 @@ var require_lib = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16686,9 +16686,9 @@ var require_lib = __commonJS({ } function dateTimeDeserializer(key, value) { if (typeof value === "string") { - const a3 = new Date(value); - if (!isNaN(a3.valueOf())) { - return a3; + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; } } return value; @@ -16728,7 +16728,7 @@ var require_lib = __commonJS({ } }; exports2.HttpClient = HttpClient; - var lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k3) => (c3[k3.toLowerCase()] = obj[k3], c3), {}); + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {}); } }); @@ -16746,15 +16746,15 @@ var require_auth = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16850,15 +16850,15 @@ var require_oidc_utils = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16895,7 +16895,7 @@ var require_oidc_utils = __commonJS({ return runtimeUrl; } static getCall(id_token_url) { - var _a2; + var _a; return __awaiter2(this, void 0, void 0, function* () { const httpclient = _OidcClient.createHttpClient(); const res = yield httpclient.getJson(id_token_url).catch((error2) => { @@ -16905,7 +16905,7 @@ var require_oidc_utils = __commonJS({ Error Message: ${error2.message}`); }); - const id_token = (_a2 = res.result) === null || _a2 === void 0 ? void 0 : _a2.value; + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { throw new Error("Response json body do not have ID Token field"); } @@ -16948,15 +16948,15 @@ var require_summary = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -16993,7 +16993,7 @@ var require_summary = __commonJS({ } try { yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } catch (_a2) { + } catch (_a) { throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } this._filePath = pathFromEnv; @@ -17232,29 +17232,29 @@ var require_summary = __commonJS({ var require_path_utils = __commonJS({ "../../node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17281,25 +17281,25 @@ var require_path_utils = __commonJS({ var require_io_util = __commonJS({ "../../node_modules/@actions/io/lib/io-util.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17314,15 +17314,15 @@ var require_io_util = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17331,12 +17331,12 @@ var require_io_util = __commonJS({ step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - var _a2; + var _a; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getCmdPath = exports2.tryGetExecutablePath = exports2.isRooted = exports2.isDirectory = exports2.exists = exports2.READONLY = exports2.UV_FS_O_EXLOCK = exports2.IS_WINDOWS = exports2.unlink = exports2.symlink = exports2.stat = exports2.rmdir = exports2.rm = exports2.rename = exports2.readlink = exports2.readdir = exports2.open = exports2.mkdir = exports2.lstat = exports2.copyFile = exports2.chmod = void 0; var fs2 = __importStar2(require("fs")); var path2 = __importStar2(require("path")); - _a2 = fs2.promises, exports2.chmod = _a2.chmod, exports2.copyFile = _a2.copyFile, exports2.lstat = _a2.lstat, exports2.mkdir = _a2.mkdir, exports2.open = _a2.open, exports2.readdir = _a2.readdir, exports2.readlink = _a2.readlink, exports2.rename = _a2.rename, exports2.rm = _a2.rm, exports2.rmdir = _a2.rmdir, exports2.stat = _a2.stat, exports2.symlink = _a2.symlink, exports2.unlink = _a2.unlink; + _a = fs2.promises, exports2.chmod = _a.chmod, exports2.copyFile = _a.copyFile, exports2.lstat = _a.lstat, exports2.mkdir = _a.mkdir, exports2.open = _a.open, exports2.readdir = _a.readdir, exports2.readlink = _a.readlink, exports2.rename = _a.rename, exports2.rm = _a.rm, exports2.rmdir = _a.rmdir, exports2.stat = _a.stat, exports2.symlink = _a.symlink, exports2.unlink = _a.unlink; exports2.IS_WINDOWS = process.platform === "win32"; exports2.UV_FS_O_EXLOCK = 268435456; exports2.READONLY = fs2.constants.O_RDONLY; @@ -17361,15 +17361,15 @@ var require_io_util = __commonJS({ }); } exports2.isDirectory = isDirectory; - function isRooted(p3) { - p3 = normalizeSeparators(p3); - if (!p3) { + function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { throw new Error('isRooted() parameter "p" cannot be empty'); } if (exports2.IS_WINDOWS) { - return p3.startsWith("\\") || /^[A-Z]:/i.test(p3); + return p.startsWith("\\") || /^[A-Z]:/i.test(p); } - return p3.startsWith("/"); + return p.startsWith("/"); } exports2.isRooted = isRooted; function tryGetExecutablePath(filePath, extensions) { @@ -17431,20 +17431,20 @@ var require_io_util = __commonJS({ }); } exports2.tryGetExecutablePath = tryGetExecutablePath; - function normalizeSeparators(p3) { - p3 = p3 || ""; + function normalizeSeparators(p) { + p = p || ""; if (exports2.IS_WINDOWS) { - p3 = p3.replace(/\//g, "\\"); - return p3.replace(/\\\\+/g, "\\"); + p = p.replace(/\//g, "\\"); + return p.replace(/\\\\+/g, "\\"); } - return p3.replace(/\/\/+/g, "/"); + return p.replace(/\/\/+/g, "/"); } function isUnixExecutable(stats) { return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid(); } function getCmdPath() { - var _a3; - return (_a3 = process.env["COMSPEC"]) !== null && _a3 !== void 0 ? _a3 : `cmd.exe`; + var _a2; + return (_a2 = process.env["COMSPEC"]) !== null && _a2 !== void 0 ? _a2 : `cmd.exe`; } exports2.getCmdPath = getCmdPath; } @@ -17454,25 +17454,25 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "../../node_modules/@actions/io/lib/io.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17487,15 +17487,15 @@ var require_io = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17633,9 +17633,9 @@ var require_io = __commonJS({ } const directories = []; if (process.env.PATH) { - for (const p3 of process.env.PATH.split(path2.delimiter)) { - if (p3) { - directories.push(p3); + for (const p of process.env.PATH.split(path2.delimiter)) { + if (p) { + directories.push(p); } } } @@ -17682,8 +17682,8 @@ var require_io = __commonJS({ try { yield ioUtil.lstat(destFile); yield ioUtil.unlink(destFile); - } catch (e3) { - if (e3.code === "EPERM") { + } catch (e) { + if (e.code === "EPERM") { yield ioUtil.chmod(destFile, "0666"); yield ioUtil.unlink(destFile); } @@ -17702,25 +17702,25 @@ var require_io = __commonJS({ var require_toolrunner = __commonJS({ "../../node_modules/@actions/exec/lib/toolrunner.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -17735,15 +17735,15 @@ var require_toolrunner = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -17784,39 +17784,39 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd += toolPath; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } else if (options.windowsVerbatimArguments) { cmd += `"${toolPath}"`; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } else { cmd += this._windowsQuoteCmdArg(toolPath); - for (const a3 of args) { - cmd += ` ${this._windowsQuoteCmdArg(a3)}`; + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; } } } else { cmd += toolPath; - for (const a3 of args) { - cmd += ` ${a3}`; + for (const a of args) { + cmd += ` ${a}`; } } return cmd; } _processLineBuffer(data, strBuffer, onLine) { try { - let s3 = strBuffer + data.toString(); - let n3 = s3.indexOf(os.EOL); - while (n3 > -1) { - const line = s3.substring(0, n3); + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); onLine(line); - s3 = s3.substring(n3 + os.EOL.length); - n3 = s3.indexOf(os.EOL); + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); } - return s3; + return s; } catch (err) { this._debug(`error processing line. Failed with error ${err}`); return ""; @@ -17834,9 +17834,9 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a3 of this.args) { + for (const a of this.args) { argline += " "; - argline += options.windowsVerbatimArguments ? a3 : this._windowsQuoteCmdArg(a3); + argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a); } argline += '"'; return [argline]; @@ -17884,7 +17884,7 @@ var require_toolrunner = __commonJS({ ]; let needsQuotes = false; for (const char of arg) { - if (cmdSpecialChars.some((x3) => x3 === char)) { + if (cmdSpecialChars.some((x) => x === char)) { needsQuotes = true; break; } @@ -17894,11 +17894,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i3 = arg.length; i3 > 0; i3--) { - reverse += arg[i3 - 1]; - if (quoteHit && arg[i3 - 1] === "\\") { + for (let i = arg.length; i > 0; i--) { + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === "\\") { reverse += "\\"; - } else if (arg[i3 - 1] === '"') { + } else if (arg[i - 1] === '"') { quoteHit = true; reverse += '"'; } else { @@ -17920,11 +17920,11 @@ var require_toolrunner = __commonJS({ } let reverse = '"'; let quoteHit = true; - for (let i3 = arg.length; i3 > 0; i3--) { - reverse += arg[i3 - 1]; - if (quoteHit && arg[i3 - 1] === "\\") { + for (let i = arg.length; i > 0; i--) { + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === "\\") { reverse += "\\"; - } else if (arg[i3 - 1] === '"') { + } else if (arg[i - 1] === '"') { quoteHit = true; reverse += "\\"; } else { @@ -18018,8 +18018,8 @@ var require_toolrunner = __commonJS({ this.options.listeners.stderr(data); } if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) { - const s3 = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; - s3.write(data); + const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream; + s.write(data); } errbuffer = this._processLineBuffer(data, errbuffer, (line) => { if (this.options.listeners && this.options.listeners.errline) { @@ -18077,39 +18077,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c3) { - if (escaped && c3 !== '"') { + function append(c) { + if (escaped && c !== '"') { arg += "\\"; } - arg += c3; + arg += c; escaped = false; } - for (let i3 = 0; i3 < argString.length; i3++) { - const c3 = argString.charAt(i3); - if (c3 === '"') { + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c3); + append(c); } continue; } - if (c3 === "\\" && escaped) { - append(c3); + if (c === "\\" && escaped) { + append(c); continue; } - if (c3 === "\\" && inQuotes) { + if (c === "\\" && inQuotes) { escaped = true; continue; } - if (c3 === " " && !inQuotes) { + if (c === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c3); + append(c); } if (arg.length > 0) { args.push(arg.trim()); @@ -18186,25 +18186,25 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "../../node_modules/@actions/exec/lib/exec.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - Object.defineProperty(o3, k22, { enumerable: true, get: function() { - return m3[k3]; + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m[k]; } }); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18219,15 +18219,15 @@ var require_exec = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18254,13 +18254,13 @@ var require_exec = __commonJS({ } exports2.exec = exec2; function getExecOutput2(commandLine, args, options) { - var _a2, _b; + var _a, _b; return __awaiter2(this, void 0, void 0, function* () { let stdout = ""; let stderr = ""; const stdoutDecoder = new string_decoder_1.StringDecoder("utf8"); const stderrDecoder = new string_decoder_1.StringDecoder("utf8"); - const originalStdoutListener = (_a2 = options === null || options === void 0 ? void 0 : options.listeners) === null || _a2 === void 0 ? void 0 : _a2.stdout; + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; const stdErrListener = (data) => { stderr += stderrDecoder.write(data); @@ -18293,29 +18293,29 @@ var require_exec = __commonJS({ var require_platform = __commonJS({ "../../node_modules/@actions/core/lib/platform.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18330,15 +18330,15 @@ var require_platform = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18367,11 +18367,11 @@ var require_platform = __commonJS({ }; }); var getMacOsInfo = () => __awaiter2(void 0, void 0, void 0, function* () { - var _a2, _b, _c, _d; + var _a, _b, _c, _d; const { stdout } = yield exec2.getExecOutput("sw_vers", void 0, { silent: true }); - const version2 = (_b = (_a2 = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a2 === void 0 ? void 0 : _a2[1]) !== null && _b !== void 0 ? _b : ""; + const version2 = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ""; const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ""; return { name, @@ -18412,29 +18412,29 @@ var require_platform = __commonJS({ var require_core = __commonJS({ "../../node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; @@ -18449,15 +18449,15 @@ var require_core = __commonJS({ function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -18515,7 +18515,7 @@ var require_core = __commonJS({ } exports2.getInput = getInput2; function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x3) => x3 !== ""); + const inputs = getInput2(name, options).split("\n").filter((x) => x !== ""); if (options && options.trimWhitespace === false) { return inputs; } @@ -18669,7 +18669,7 @@ var require_dist_cjs = __commonJS({ RequestHandlerProtocol: () => RequestHandlerProtocol, SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY4, getDefaultClientConfiguration: () => getDefaultClientConfiguration, - resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig3 + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig }); module2.exports = __toCommonJS2(src_exports); var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => { @@ -18731,7 +18731,7 @@ var require_dist_cjs = __commonJS({ ...getChecksumConfiguration(runtimeConfig) }; }, "getDefaultClientConfiguration"); - var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { ...resolveChecksumRuntimeConfig(config) }; @@ -18785,12 +18785,12 @@ var require_dist_cjs2 = __commonJS({ HttpRequest: () => HttpRequest7, HttpResponse: () => HttpResponse2, IHttpRequest: () => import_types5.HttpRequest, - getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration3, + getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, isValidHostname: () => isValidHostname, - resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig3 + resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig }); module2.exports = __toCommonJS2(src_exports); - var getHttpHandlerExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let httpHandler = runtimeConfig.httpHandler; return { setHttpHandler(handler) { @@ -18807,16 +18807,13 @@ var require_dist_cjs2 = __commonJS({ } }; }, "getHttpHandlerExtensionConfiguration"); - var resolveHttpHandlerRuntimeConfig3 = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { + var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() }; }, "resolveHttpHandlerRuntimeConfig"); var import_types5 = require_dist_cjs(); - var Field = class { - static { - __name(this, "Field"); - } + var _Field = class _Field { constructor({ name, kind = import_types5.FieldPosition.HEADER, values = [] }) { this.name = name; this.kind = kind; @@ -18844,7 +18841,7 @@ var require_dist_cjs2 = __commonJS({ * @param value Value to remove. */ remove(value) { - this.values = this.values.filter((v6) => v6 !== value); + this.values = this.values.filter((v) => v !== value); } /** * Get comma-delimited string. @@ -18852,7 +18849,7 @@ var require_dist_cjs2 = __commonJS({ * @returns String representation of {@link Field}. */ toString() { - return this.values.map((v6) => v6.includes(",") || v6.includes(" ") ? `"${v6}"` : v6).join(", "); + return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", "); } /** * Get string values as a list @@ -18863,15 +18860,14 @@ var require_dist_cjs2 = __commonJS({ return this.values; } }; - var Fields = class { + __name(_Field, "Field"); + var Field = _Field; + var _Fields = class _Fields { constructor({ fields = [], encoding = "utf-8" }) { this.entries = {}; fields.forEach(this.setField.bind(this)); this.encoding = encoding; } - static { - __name(this, "Fields"); - } /** * Set entry for a {@link Field} name. The `name` * attribute will be used to key the collection. @@ -18911,10 +18907,9 @@ var require_dist_cjs2 = __commonJS({ return Object.values(this.entries).filter((field) => field.kind === kind); } }; - var HttpRequest7 = class _HttpRequest { - static { - __name(this, "HttpRequest"); - } + __name(_Fields, "Fields"); + var Fields = _Fields; + var _HttpRequest = class _HttpRequest2 { constructor(options) { this.method = options.method || "GET"; this.hostname = options.hostname || "localhost"; @@ -18932,7 +18927,7 @@ var require_dist_cjs2 = __commonJS({ * Note: this does not deep-clone the body. */ static clone(request) { - const cloned = new _HttpRequest({ + const cloned = new _HttpRequest2({ ...request, headers: { ...request.headers } }); @@ -18961,9 +18956,11 @@ var require_dist_cjs2 = __commonJS({ * asserts that IHttpRequest (interface) objects are of type HttpRequest (class). */ clone() { - return _HttpRequest.clone(this); + return _HttpRequest2.clone(this); } }; + __name(_HttpRequest, "HttpRequest"); + var HttpRequest7 = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -18974,10 +18971,7 @@ var require_dist_cjs2 = __commonJS({ }, {}); } __name(cloneQuery, "cloneQuery"); - var HttpResponse2 = class { - static { - __name(this, "HttpResponse"); - } + var _HttpResponse = class _HttpResponse { constructor(options) { this.statusCode = options.statusCode; this.reason = options.reason; @@ -18991,6 +18985,8 @@ var require_dist_cjs2 = __commonJS({ return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; + __name(_HttpResponse, "HttpResponse"); + var HttpResponse2 = _HttpResponse; function isValidHostname(hostname) { const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; return hostPattern.test(hostname); @@ -19028,12 +19024,13 @@ var require_dist_cjs3 = __commonJS({ getAddExpectContinuePlugin: () => getAddExpectContinuePlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); function addExpectContinueMiddleware(options) { return (next) => async (args) => { + var _a, _b; const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { - if (options.requestHandler?.constructor?.name !== "FetchHttpHandler") { + if (import_protocol_http8.HttpRequest.isInstance(request) && request.body && options.runtime === "node") { + if (((_b = (_a = options.requestHandler) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) !== "FetchHttpHandler") { request.headers = { ...request.headers, Expect: "100-continue" @@ -19315,13 +19312,13 @@ var require_dist_cjs4 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getSmithyContext: () => getSmithyContext6, - normalizeProvider: () => normalizeProvider4 + getSmithyContext: () => getSmithyContext4, + normalizeProvider: () => normalizeProvider2 }); module2.exports = __toCommonJS2(src_exports); var import_types5 = require_dist_cjs(); - var getSmithyContext6 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext"); - var normalizeProvider4 = /* @__PURE__ */ __name((input) => { + var getSmithyContext4 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext"); + var normalizeProvider2 = /* @__PURE__ */ __name((input) => { if (typeof input === "function") return input; const promisified = Promise.resolve(input); @@ -19332,11 +19329,11 @@ var require_dist_cjs4 = __commonJS({ // ../../node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js function convertHttpAuthSchemesToMap(httpAuthSchemes) { - const map2 = /* @__PURE__ */ new Map(); + const map = /* @__PURE__ */ new Map(); for (const scheme of httpAuthSchemes) { - map2.set(scheme.schemeId, scheme); + map.set(scheme.schemeId, scheme); } - return map2; + return map; } var import_types2, import_util_middleware, httpAuthSchemeMiddleware; var init_httpAuthSchemeMiddleware = __esm({ @@ -19426,7 +19423,7 @@ var require_dist_cjs5 = __commonJS({ __export2(src_exports, { deserializerMiddleware: () => deserializerMiddleware, deserializerMiddlewareOption: () => deserializerMiddlewareOption, - getSerdePlugin: () => getSerdePlugin4, + getSerdePlugin: () => getSerdePlugin, serializerMiddleware: () => serializerMiddleware, serializerMiddlewareOption: () => serializerMiddlewareOption2 }); @@ -19456,7 +19453,8 @@ var require_dist_cjs5 = __commonJS({ } }, "deserializerMiddleware"); var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => { - const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; + var _a; + const endpoint = ((_a = context.endpointV2) == null ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; if (!endpoint) { throw new Error("No valid endpoint provider available."); } @@ -19478,7 +19476,7 @@ var require_dist_cjs5 = __commonJS({ tags: ["SERIALIZER"], override: true }; - function getSerdePlugin4(config, serializer, deserializer) { + function getSerdePlugin(config, serializer, deserializer) { return { applyToStack: (commandStack) => { commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); @@ -19486,7 +19484,7 @@ var require_dist_cjs5 = __commonJS({ } }; } - __name(getSerdePlugin4, "getSerdePlugin"); + __name(getSerdePlugin, "getSerdePlugin"); } }); @@ -19602,17 +19600,16 @@ var init_normalizeProvider = __esm({ // ../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) { return async function* paginateOperation(config, input, ...additionalArguments) { - const _input = input; - let token = config.startingToken ?? _input[inputTokenName]; + let token = config.startingToken || void 0; let hasNext = true; let page; while (hasNext) { - _input[inputTokenName] = token; + input[inputTokenName] = token; if (pageSizeTokenName) { - _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize; + input[pageSizeTokenName] = input[pageSizeTokenName] ?? config.pageSize; } if (config.client instanceof ClientCtor) { - page = await makePagedClientRequest(CommandCtor, config.client, input, config.withCommand, ...additionalArguments); + page = await makePagedClientRequest(CommandCtor, config.client, input, ...additionalArguments); } else { throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`); } @@ -19627,10 +19624,8 @@ function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenNam var makePagedClientRequest, get; var init_createPaginator = __esm({ "../../node_modules/@smithy/core/dist-es/pagination/createPaginator.js"() { - makePagedClientRequest = async (CommandCtor, client, input, withCommand = (_2) => _2, ...args) => { - let command = new CommandCtor(input); - command = withCommand(command) ?? command; - return await client.send(command, ...args); + makePagedClientRequest = async (CommandCtor, client, input, ...args) => { + return await client.send(new CommandCtor(input), ...args); }; get = (fromObject, path2) => { let cursor = fromObject; @@ -19728,7 +19723,7 @@ var require_fromBase64 = __commonJS({ exports2.fromBase64 = void 0; var util_buffer_from_1 = require_dist_cjs7(); var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - var fromBase644 = (input) => { + var fromBase642 = (input) => { if (input.length * 3 % 4 !== 0) { throw new TypeError(`Incorrect padding on base64 string.`); } @@ -19738,7 +19733,7 @@ var require_fromBase64 = __commonJS({ const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports2.fromBase64 = fromBase644; + exports2.fromBase64 = fromBase642; } }); @@ -19765,26 +19760,26 @@ var require_dist_cjs8 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - fromUtf8: () => fromUtf83, + fromUtf8: () => fromUtf8, toUint8Array: () => toUint8Array, - toUtf8: () => toUtf83 + toUtf8: () => toUtf8 }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs7(); - var fromUtf83 = /* @__PURE__ */ __name((input) => { + var fromUtf8 = /* @__PURE__ */ __name((input) => { const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); }, "fromUtf8"); var toUint8Array = /* @__PURE__ */ __name((data) => { if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); }, "toUint8Array"); - var toUtf83 = /* @__PURE__ */ __name((input) => { + var toUtf8 = /* @__PURE__ */ __name((input) => { if (typeof input === "string") { return input; } @@ -19804,7 +19799,7 @@ var require_toBase64 = __commonJS({ exports2.toBase64 = void 0; var util_buffer_from_1 = require_dist_cjs7(); var util_utf8_1 = require_dist_cjs8(); - var toBase644 = (_input) => { + var toBase642 = (_input) => { let input; if (typeof _input === "string") { input = (0, util_utf8_1.fromUtf8)(_input); @@ -19816,7 +19811,7 @@ var require_toBase64 = __commonJS({ } return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); }; - exports2.toBase64 = toBase644; + exports2.toBase64 = toBase642; } }); @@ -19913,7 +19908,7 @@ var require_dist_cjs10 = __commonJS({ // AWS percent-encodes some extra non-standard characters in a URI encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode) ), "escapeUri"); - var hexEncode = /* @__PURE__ */ __name((c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); + var hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); var escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath"); } }); @@ -19951,8 +19946,8 @@ var require_dist_cjs11 = __commonJS({ const value = query[key]; key = (0, import_util_uri_escape.escapeUri)(key); if (Array.isArray(value)) { - for (let i3 = 0, iLen = value.length; i3 < iLen; i3++) { - parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i3])}`); + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i])}`); } } else { let qsEntry = key; @@ -20004,10 +19999,10 @@ var require_dist_cjs12 = __commonJS({ DEFAULT_REQUEST_TIMEOUT: () => DEFAULT_REQUEST_TIMEOUT, NodeHttp2Handler: () => NodeHttp2Handler, NodeHttpHandler: () => NodeHttpHandler, - streamCollector: () => streamCollector3 + streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); var import_http = require("http"); var import_https = require("https"); @@ -20039,7 +20034,7 @@ var require_dist_cjs12 = __commonJS({ ); }, timeoutInMs - offset); const doWithSocket = /* @__PURE__ */ __name((socket) => { - if (socket?.connecting) { + if (socket == null ? void 0 : socket.connecting) { socket.on("connect", () => { timing.clearTimeout(timeoutId); }); @@ -20080,7 +20075,7 @@ var require_dist_cjs12 = __commonJS({ return timing.setTimeout(registerListener, deferTimeMs); }, "setSocketKeepAlive"); var DEFER_EVENT_LISTENER_TIME3 = 3e3; - var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT) => { + var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => { const registerTimeout = /* @__PURE__ */ __name((offset) => { const timeout = timeoutInMs - offset; const onTimeout = /* @__PURE__ */ __name(() => { @@ -20103,7 +20098,7 @@ var require_dist_cjs12 = __commonJS({ ); }, "setSocketTimeout"); var import_stream = require("stream"); - var MIN_WAIT_TIME = 6e3; + var MIN_WAIT_TIME = 1e3; async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) { const headers = request.headers ?? {}; const expect = headers["Expect"] || headers["expect"]; @@ -20112,7 +20107,7 @@ var require_dist_cjs12 = __commonJS({ if (expect === "100-continue") { sendBody = await Promise.race([ new Promise((resolve) => { - timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); + timeoutId = Number(timing.setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); }), new Promise((resolve) => { httpRequest.on("continue", () => { @@ -20157,7 +20152,7 @@ var require_dist_cjs12 = __commonJS({ } __name(writeBody, "writeBody"); var DEFAULT_REQUEST_TIMEOUT = 0; - var NodeHttpHandler = class _NodeHttpHandler { + var _NodeHttpHandler = class _NodeHttpHandler2 { constructor(options) { this.socketWarningTimestamp = 0; this.metadata = { handlerProtocol: "http/1.1" }; @@ -20171,18 +20166,15 @@ var require_dist_cjs12 = __commonJS({ } }); } - static { - __name(this, "NodeHttpHandler"); - } /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _NodeHttpHandler(instanceOrOptions); + return new _NodeHttpHandler2(instanceOrOptions); } /** * @internal @@ -20193,6 +20185,7 @@ var require_dist_cjs12 = __commonJS({ * @returns timestamp of last emitted warning. */ static checkSocketUsage(agent, socketWarningTimestamp, logger = console) { + var _a, _b, _c; const { sockets, requests, maxSockets } = agent; if (typeof maxSockets !== "number" || maxSockets === Infinity) { return socketWarningTimestamp; @@ -20203,10 +20196,11 @@ var require_dist_cjs12 = __commonJS({ } if (sockets && requests) { for (const origin in sockets) { - const socketsInUse = sockets[origin]?.length ?? 0; - const requestsEnqueued = requests[origin]?.length ?? 0; + const socketsInUse = ((_a = sockets[origin]) == null ? void 0 : _a.length) ?? 0; + const requestsEnqueued = ((_b = requests[origin]) == null ? void 0 : _b.length) ?? 0; if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) { - logger?.warn?.( + (_c = logger == null ? void 0 : logger.warn) == null ? void 0 : _c.call( + logger, `@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.` @@ -20225,13 +20219,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf connectionTimeout, requestTimeout: requestTimeout ?? socketTimeout, httpAgent: (() => { - if (httpAgent instanceof import_http.Agent || typeof httpAgent?.destroy === "function") { + if (httpAgent instanceof import_http.Agent || typeof (httpAgent == null ? void 0 : httpAgent.destroy) === "function") { return httpAgent; } return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent }); })(), httpsAgent: (() => { - if (httpsAgent instanceof import_https.Agent || typeof httpsAgent?.destroy === "function") { + if (httpsAgent instanceof import_https.Agent || typeof (httpsAgent == null ? void 0 : httpsAgent.destroy) === "function") { return httpsAgent; } return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent }); @@ -20240,8 +20234,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; } destroy() { - this.config?.httpAgent?.destroy(); - this.config?.httpsAgent?.destroy(); + var _a, _b, _c, _d; + (_b = (_a = this.config) == null ? void 0 : _a.httpAgent) == null ? void 0 : _b.destroy(); + (_d = (_c = this.config) == null ? void 0 : _c.httpsAgent) == null ? void 0 : _d.destroy(); } async handle(request, { abortSignal } = {}) { if (!this.config) { @@ -20263,7 +20258,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf if (!this.config) { throw new Error("Node HTTP request handler config is not resolved"); } - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { const abortError = new Error("Request aborted"); abortError.name = "AbortError"; reject(abortError); @@ -20274,7 +20269,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf timeouts.push( timing.setTimeout( () => { - this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage( + this.socketWarningTimestamp = _NodeHttpHandler2.checkSocketUsage( agent, this.socketWarningTimestamp, this.config.logger @@ -20314,7 +20309,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }; const requestFunc = isSSL ? import_https.request : import_http.request; const req2 = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new import_protocol_http11.HttpResponse({ + const httpResponse = new import_protocol_http8.HttpResponse({ statusCode: res.statusCode || -1, reason: res.statusMessage, headers: getTransformedHeaders(res.headers), @@ -20357,9 +20352,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }) ); } - writeRequestBodyPromise = writeRequestBody(req2, request, this.config.requestTimeout).catch((e3) => { + writeRequestBodyPromise = writeRequestBody(req2, request, this.config.requestTimeout).catch((e) => { timeouts.forEach(timing.clearTimeout); - return _reject(e3); + return _reject(e); }); }); } @@ -20376,16 +20371,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return this.config ?? {}; } }; + __name(_NodeHttpHandler, "NodeHttpHandler"); + var NodeHttpHandler = _NodeHttpHandler; var import_http22 = require("http2"); var import_http2 = __toESM2(require("http2")); - var NodeHttp2ConnectionPool = class { + var _NodeHttp2ConnectionPool = class _NodeHttp2ConnectionPool { constructor(sessions) { this.sessions = []; this.sessions = sessions ?? []; } - static { - __name(this, "NodeHttp2ConnectionPool"); - } poll() { if (this.sessions.length > 0) { return this.sessions.shift(); @@ -20398,7 +20392,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return this.sessions.includes(session); } remove(session) { - this.sessions = this.sessions.filter((s3) => s3 !== session); + this.sessions = this.sessions.filter((s) => s !== session); } [Symbol.iterator]() { return this.sessions[Symbol.iterator](); @@ -20413,7 +20407,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } } }; - var NodeHttp2ConnectionManager = class { + __name(_NodeHttp2ConnectionPool, "NodeHttp2ConnectionPool"); + var NodeHttp2ConnectionPool = _NodeHttp2ConnectionPool; + var _NodeHttp2ConnectionManager = class _NodeHttp2ConnectionManager { constructor(config) { this.sessionCache = /* @__PURE__ */ new Map(); this.config = config; @@ -20421,9 +20417,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf throw new RangeError("maxConcurrency must be greater than zero."); } } - static { - __name(this, "NodeHttp2ConnectionManager"); - } lease(requestContext, connectionConfiguration) { const url = this.getUrlString(requestContext); const existingPool = this.sessionCache.get(url); @@ -20477,8 +20470,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf this.sessionCache.set(authority, existingConnectionPool); } release(requestContext, session) { + var _a; const cacheKey = this.getUrlString(requestContext); - this.sessionCache.get(cacheKey)?.offerLast(session); + (_a = this.sessionCache.get(cacheKey)) == null ? void 0 : _a.offerLast(session); } destroy() { for (const [key, connectionPool] of this.sessionCache) { @@ -20504,7 +20498,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf return request.destination.toString(); } }; - var NodeHttp2Handler = class _NodeHttp2Handler { + __name(_NodeHttp2ConnectionManager, "NodeHttp2ConnectionManager"); + var NodeHttp2ConnectionManager = _NodeHttp2ConnectionManager; + var _NodeHttp2Handler = class _NodeHttp2Handler2 { constructor(options) { this.metadata = { handlerProtocol: "h2" }; this.connectionManager = new NodeHttp2ConnectionManager({}); @@ -20518,18 +20514,15 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } }); } - static { - __name(this, "NodeHttp2Handler"); - } /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _NodeHttp2Handler(instanceOrOptions); + return new _NodeHttp2Handler2(instanceOrOptions); } destroy() { this.connectionManager.destroy(); @@ -20544,6 +20537,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } const { requestTimeout, disableConcurrentStreams } = this.config; return new Promise((_resolve, _reject) => { + var _a; let fulfilled = false; let writeRequestBodyPromise = void 0; const resolve = /* @__PURE__ */ __name(async (arg) => { @@ -20554,7 +20548,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf await writeRequestBodyPromise; _reject(arg); }, "reject"); - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { fulfilled = true; const abortError = new Error("Request aborted"); abortError.name = "AbortError"; @@ -20571,7 +20565,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; const requestContext = { destination: new URL(authority) }; const session = this.connectionManager.lease(requestContext, { - requestTimeout: this.config?.sessionTimeout, + requestTimeout: (_a = this.config) == null ? void 0 : _a.sessionTimeout, disableConcurrentStreams: disableConcurrentStreams || false }); const rejectWithDestroy = /* @__PURE__ */ __name((err) => { @@ -20596,7 +20590,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf }); session.ref(); req2.on("response", (headers) => { - const httpResponse = new import_protocol_http11.HttpResponse({ + const httpResponse = new import_protocol_http8.HttpResponse({ statusCode: headers[":status"] || -1, headers: getTransformedHeaders(headers), body: req2 @@ -20666,7 +20660,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } /** * Destroys a session. - * @param session - the session to destroy. + * @param session The session to destroy. */ destroySession(session) { if (!session.destroyed) { @@ -20674,20 +20668,21 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf } } }; - var Collector = class extends import_stream.Writable { + __name(_NodeHttp2Handler, "NodeHttp2Handler"); + var NodeHttp2Handler = _NodeHttp2Handler; + var _Collector = class _Collector extends import_stream.Writable { constructor() { super(...arguments); this.bufferedBytes = []; } - static { - __name(this, "Collector"); - } _write(chunk, encoding, callback) { this.bufferedBytes.push(chunk); callback(); } }; - var streamCollector3 = /* @__PURE__ */ __name((stream) => { + __name(_Collector, "Collector"); + var Collector = _Collector; + var streamCollector = /* @__PURE__ */ __name((stream) => { if (isReadableStreamInstance(stream)) { return collectReadableStream(stream); } @@ -20756,10 +20751,10 @@ var require_dist_cjs13 = __commonJS({ __export2(src_exports, { FetchHttpHandler: () => FetchHttpHandler, keepAliveSupport: () => keepAliveSupport, - streamCollector: () => streamCollector3 + streamCollector: () => streamCollector }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_querystring_builder = require_dist_cjs11(); function createRequest(url, requestOptions) { return new Request(url, requestOptions); @@ -20780,19 +20775,16 @@ var require_dist_cjs13 = __commonJS({ var keepAliveSupport = { supported: void 0 }; - var FetchHttpHandler = class _FetchHttpHandler { - static { - __name(this, "FetchHttpHandler"); - } + var _FetchHttpHandler = class _FetchHttpHandler2 { /** * @returns the input if it is an HttpHandler of any class, * or instantiates a new instance of this handler. */ static create(instanceOrOptions) { - if (typeof instanceOrOptions?.handle === "function") { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { return instanceOrOptions; } - return new _FetchHttpHandler(instanceOrOptions); + return new _FetchHttpHandler2(instanceOrOptions); } constructor(options) { if (typeof options === "function") { @@ -20810,13 +20802,14 @@ var require_dist_cjs13 = __commonJS({ destroy() { } async handle(request, { abortSignal } = {}) { + var _a; if (!this.config) { this.config = await this.configProvider; } const requestTimeoutInMs = this.config.requestTimeout; const keepAlive = this.config.keepAlive === true; const credentials = this.config.credentials; - if (abortSignal?.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { const abortError = new Error("Request aborted"); abortError.name = "AbortError"; return Promise.reject(abortError); @@ -20844,7 +20837,7 @@ var require_dist_cjs13 = __commonJS({ method, credentials }; - if (this.config?.cache) { + if ((_a = this.config) == null ? void 0 : _a.cache) { requestOptions.cache = this.config.cache; } if (body) { @@ -20872,7 +20865,7 @@ var require_dist_cjs13 = __commonJS({ const hasReadableStream = response.body != void 0; if (!hasReadableStream) { return response.blob().then((body2) => ({ - response: new import_protocol_http11.HttpResponse({ + response: new import_protocol_http8.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20881,7 +20874,7 @@ var require_dist_cjs13 = __commonJS({ })); } return { - response: new import_protocol_http11.HttpResponse({ + response: new import_protocol_http8.HttpResponse({ headers: transformedHeaders, reason: response.statusText, statusCode: response.status, @@ -20922,9 +20915,12 @@ var require_dist_cjs13 = __commonJS({ return this.config ?? {}; } }; - var import_util_base643 = require_dist_cjs9(); - var streamCollector3 = /* @__PURE__ */ __name(async (stream) => { - if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") { + __name(_FetchHttpHandler, "FetchHttpHandler"); + var FetchHttpHandler = _FetchHttpHandler; + var import_util_base64 = require_dist_cjs9(); + var streamCollector = /* @__PURE__ */ __name(async (stream) => { + var _a; + if (typeof Blob === "function" && stream instanceof Blob || ((_a = stream.constructor) == null ? void 0 : _a.name) === "Blob") { if (Blob.prototype.arrayBuffer !== void 0) { return new Uint8Array(await stream.arrayBuffer()); } @@ -20934,7 +20930,7 @@ var require_dist_cjs13 = __commonJS({ }, "streamCollector"); async function collectBlob(blob) { const base64 = await readToBase64(blob); - const arrayBuffer = (0, import_util_base643.fromBase64)(base64); + const arrayBuffer = (0, import_util_base64.fromBase64)(base64); return new Uint8Array(arrayBuffer); } __name(collectBlob, "collectBlob"); @@ -21010,23 +21006,23 @@ var require_dist_cjs14 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var SHORT_TO_HEX = {}; var HEX_TO_SHORT = {}; - for (let i3 = 0; i3 < 256; i3++) { - let encodedByte = i3.toString(16).toLowerCase(); + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); if (encodedByte.length === 1) { encodedByte = `0${encodedByte}`; } - SHORT_TO_HEX[i3] = encodedByte; - HEX_TO_SHORT[encodedByte] = i3; + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; } function fromHex(encoded) { if (encoded.length % 2 !== 0) { throw new Error("Hex encoded strings must have an even number length"); } const out = new Uint8Array(encoded.length / 2); - for (let i3 = 0; i3 < encoded.length; i3 += 2) { - const encodedByte = encoded.slice(i3, i3 + 2).toLowerCase(); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); if (encodedByte in HEX_TO_SHORT) { - out[i3 / 2] = HEX_TO_SHORT[encodedByte]; + out[i / 2] = HEX_TO_SHORT[encodedByte]; } else { throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); } @@ -21036,8 +21032,8 @@ var require_dist_cjs14 = __commonJS({ __name(fromHex, "fromHex"); function toHex(bytes) { let out = ""; - for (let i3 = 0; i3 < bytes.byteLength; i3++) { - out += SHORT_TO_HEX[bytes[i3]]; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; } return out; } @@ -21052,13 +21048,13 @@ var require_stream_type_check = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.isBlob = exports2.isReadableStream = void 0; var isReadableStream2 = (stream) => { - var _a2; - return typeof ReadableStream === "function" && (((_a2 = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === ReadableStream.name || stream instanceof ReadableStream); + var _a; + return typeof ReadableStream === "function" && (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream); }; exports2.isReadableStream = isReadableStream2; var isBlob2 = (blob) => { - var _a2; - return typeof Blob === "function" && (((_a2 = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === Blob.name || blob instanceof Blob); + var _a; + return typeof Blob === "function" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob); }; exports2.isBlob = isBlob2; } @@ -21077,9 +21073,9 @@ var require_sdk_stream_mixin_browser = __commonJS({ var stream_type_check_1 = require_stream_type_check(); var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; var sdkStreamMixin2 = (stream) => { - var _a2, _b; + var _a, _b; if (!isBlobInstance(stream) && !(0, stream_type_check_1.isReadableStream)(stream)) { - const name = ((_b = (_a2 = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; + const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`); } let transformed = false; @@ -21144,12 +21140,12 @@ var require_sdk_stream_mixin = __commonJS({ var sdk_stream_mixin_browser_1 = require_sdk_stream_mixin_browser(); var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; var sdkStreamMixin2 = (stream) => { - var _a2, _b; + var _a, _b; if (!(stream instanceof stream_1.Readable)) { try { return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream); - } catch (e3) { - const name = ((_b = (_a2 = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a2 === void 0 ? void 0 : _a2.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; + } catch (e) { + const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); } } @@ -21180,7 +21176,7 @@ var require_sdk_stream_mixin = __commonJS({ throw new Error("The stream has been consumed by other callbacks."); } if (typeof stream_1.Readable.toWeb !== "function") { - throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available."); + throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."); } transformed = true; return stream_1.Readable.toWeb(stream); @@ -21238,7 +21234,7 @@ var require_headStream_browser = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.headStream = void 0; async function headStream2(stream, bytes) { - var _a2; + var _a; let byteLengthCounter = 0; const chunks = []; const reader = stream.getReader(); @@ -21247,7 +21243,7 @@ var require_headStream_browser = __commonJS({ const { done, value } = await reader.read(); if (value) { chunks.push(value); - byteLengthCounter += (_a2 = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a2 !== void 0 ? _a2 : 0; + byteLengthCounter += (_a = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a !== void 0 ? _a : 0; } if (byteLengthCounter >= bytes) { break; @@ -21309,9 +21305,9 @@ var require_headStream = __commonJS({ this.bytesBuffered = 0; } _write(chunk, encoding, callback) { - var _a2; + var _a; this.buffers.push(chunk); - this.bytesBuffered += (_a2 = chunk.byteLength) !== null && _a2 !== void 0 ? _a2 : 0; + this.bytesBuffered += (_a = chunk.byteLength) !== null && _a !== void 0 ? _a : 0; if (this.bytesBuffered >= this.limit) { const excess = this.bytesBuffered - this.limit; const tailBuffer = this.buffers[this.buffers.length - 1]; @@ -21334,12 +21330,12 @@ var require_ChecksumStream = __commonJS({ var stream_1 = require("stream"); var ChecksumStream2 = class extends stream_1.Duplex { constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) { - var _a2, _b; + var _a, _b; super(); if (typeof source.pipe === "function") { this.source = source; } else { - throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); + throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); } this.base64Encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64; this.expectedChecksum = expectedChecksum; @@ -21353,8 +21349,8 @@ var require_ChecksumStream = __commonJS({ try { this.checksum.update(chunk); this.push(chunk); - } catch (e3) { - return callback(e3); + } catch (e) { + return callback(e); } return callback(); } @@ -21365,8 +21361,8 @@ var require_ChecksumStream = __commonJS({ if (this.expectedChecksum !== received) { return callback(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}" in response header "${this.checksumSourceLocation}".`)); } - } catch (e3) { - return callback(e3); + } catch (e) { + return callback(e); } this.push(null); return callback(); @@ -21400,9 +21396,9 @@ var require_createChecksumStream_browser = __commonJS({ var stream_type_check_1 = require_stream_type_check(); var ChecksumStream_browser_1 = require_ChecksumStream_browser(); var createChecksumStream2 = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder }) => { - var _a2, _b; + var _a, _b; if (!(0, stream_type_check_1.isReadableStream)(source)) { - throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a2 = source === null || source === void 0 ? void 0 : source.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); + throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`); } const encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64; if (typeof TransformStream !== "function") { @@ -21481,26 +21477,23 @@ var require_dist_cjs15 = __commonJS({ Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter2 }); module2.exports = __toCommonJS2(src_exports); - var import_util_base643 = require_dist_cjs9(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_base64 = require_dist_cjs9(); + var import_util_utf8 = require_dist_cjs8(); function transformToString(payload, encoding = "utf-8") { if (encoding === "base64") { - return (0, import_util_base643.toBase64)(payload); + return (0, import_util_base64.toBase64)(payload); } - return (0, import_util_utf83.toUtf8)(payload); + return (0, import_util_utf8.toUtf8)(payload); } __name(transformToString, "transformToString"); function transformFromString(str, encoding) { if (encoding === "base64") { - return Uint8ArrayBlobAdapter2.mutate((0, import_util_base643.fromBase64)(str)); + return Uint8ArrayBlobAdapter2.mutate((0, import_util_base64.fromBase64)(str)); } - return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf83.fromUtf8)(str)); + return Uint8ArrayBlobAdapter2.mutate((0, import_util_utf8.fromUtf8)(str)); } __name(transformFromString, "transformFromString"); - var Uint8ArrayBlobAdapter2 = class _Uint8ArrayBlobAdapter extends Uint8Array { - static { - __name(this, "Uint8ArrayBlobAdapter"); - } + var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter2 extends Uint8Array { /** * @param source - such as a string or Stream. * @returns a new Uint8ArrayBlobAdapter extending Uint8Array. @@ -21518,7 +21511,7 @@ var require_dist_cjs15 = __commonJS({ * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter. */ static mutate(source) { - Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype); + Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter2.prototype); return source; } /** @@ -21529,6 +21522,8 @@ var require_dist_cjs15 = __commonJS({ return transformToString(this, encoding); } }; + __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter"); + var Uint8ArrayBlobAdapter2 = _Uint8ArrayBlobAdapter; __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports); __reExport(src_exports, require_sdk_stream_mixin(), module2.exports); __reExport(src_exports, require_splitStream(), module2.exports); @@ -21559,8 +21554,8 @@ var init_collect_stream_body = __esm({ // ../../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js function extendedEncodeURIComponent2(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function(c3) { - return "%" + c3.charCodeAt(0).toString(16).toUpperCase(); + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); }); } var init_extended_encode_uri_component = __esm({ @@ -21934,8 +21929,9 @@ var require_dist_cjs16 = __commonJS({ memoize: () => memoize }); module2.exports = __toCommonJS2(src_exports); - var ProviderError2 = class _ProviderError extends Error { + var _ProviderError = class _ProviderError2 extends Error { constructor(message, options = true) { + var _a; let logger; let tryNextLink = true; if (typeof options === "boolean") { @@ -21948,11 +21944,8 @@ var require_dist_cjs16 = __commonJS({ super(message); this.name = "ProviderError"; this.tryNextLink = tryNextLink; - Object.setPrototypeOf(this, _ProviderError.prototype); - logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`); - } - static { - __name(this, "ProviderError"); + Object.setPrototypeOf(this, _ProviderError2.prototype); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, `@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`); } /** * @deprecated use new operator. @@ -21961,32 +21954,32 @@ var require_dist_cjs16 = __commonJS({ return Object.assign(new this(error2.message, options), error2); } }; - var CredentialsProviderError = class _CredentialsProviderError extends ProviderError2 { + __name(_ProviderError, "ProviderError"); + var ProviderError2 = _ProviderError; + var _CredentialsProviderError = class _CredentialsProviderError2 extends ProviderError2 { /** * @override */ constructor(message, options = true) { super(message, options); this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, _CredentialsProviderError.prototype); - } - static { - __name(this, "CredentialsProviderError"); + Object.setPrototypeOf(this, _CredentialsProviderError2.prototype); } }; - var TokenProviderError = class _TokenProviderError extends ProviderError2 { + __name(_CredentialsProviderError, "CredentialsProviderError"); + var CredentialsProviderError = _CredentialsProviderError; + var _TokenProviderError = class _TokenProviderError2 extends ProviderError2 { /** * @override */ constructor(message, options = true) { super(message, options); this.name = "TokenProviderError"; - Object.setPrototypeOf(this, _TokenProviderError.prototype); - } - static { - __name(this, "TokenProviderError"); + Object.setPrototypeOf(this, _TokenProviderError2.prototype); } }; + __name(_TokenProviderError, "TokenProviderError"); + var TokenProviderError = _TokenProviderError; var chain = /* @__PURE__ */ __name((...providers) => async () => { if (providers.length === 0) { throw new ProviderError2("No providers in chain"); @@ -21998,7 +21991,7 @@ var require_dist_cjs16 = __commonJS({ return credentials; } catch (err) { lastProviderError = err; - if (err?.tryNextLink) { + if (err == null ? void 0 : err.tryNextLink) { continue; } throw err; @@ -22027,14 +22020,14 @@ var require_dist_cjs16 = __commonJS({ }, "coalesceProvider"); if (isExpired === void 0) { return async (options) => { - if (!hasResult || options?.forceRefresh) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } return resolved; }; } return async (options) => { - if (!hasResult || options?.forceRefresh) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } if (isConstant) { @@ -22067,7 +22060,7 @@ var init_resolveAwsSdkSigV4AConfig = __esm({ NODE_SIGV4A_CONFIG_OPTIONS = { environmentVariableSelector(env) { if (env.AWS_SIGV4A_SIGNING_REGION_SET) { - return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_2) => _2.trim()); + return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim()); } throw new import_property_provider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", { tryNextLink: true @@ -22075,7 +22068,7 @@ var init_resolveAwsSdkSigV4AConfig = __esm({ }, configFileSelector(profile) { if (profile.sigv4a_signing_region_set) { - return (profile.sigv4a_signing_region_set ?? "").split(",").map((_2) => _2.trim()); + return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim()); } throw new import_property_provider.ProviderError("sigv4a_signing_region_set not set in profile.", { tryNextLink: true @@ -22120,7 +22113,7 @@ var require_dist_cjs17 = __commonJS({ prepareRequest: () => prepareRequest }); module2.exports = __toCommonJS2(src_exports); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var import_util_utf84 = require_dist_cjs8(); var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; @@ -22162,7 +22155,7 @@ var require_dist_cjs17 = __commonJS({ var KEY_TYPE_IDENTIFIER = "aws4_request"; var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; var import_util_hex_encoding = require_dist_cjs14(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var signingKeyCache = {}; var cacheQueue = []; var createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope"); @@ -22190,7 +22183,7 @@ var require_dist_cjs17 = __commonJS({ }, "clearCredentialCache"); var hmac = /* @__PURE__ */ __name((ctor, secret, data) => { const hash = new ctor(secret); - hash.update((0, import_util_utf83.toUint8Array)(data)); + hash.update((0, import_util_utf8.toUint8Array)(data)); return hash.digest(); }, "hmac"); var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => { @@ -22200,7 +22193,7 @@ var require_dist_cjs17 = __commonJS({ continue; } const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders == null ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { continue; } @@ -22229,7 +22222,7 @@ var require_dist_cjs17 = __commonJS({ return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); }, "getCanonicalQuery"); var import_is_array_buffer = require_dist_cjs6(); - var import_util_utf822 = require_dist_cjs8(); + var import_util_utf82 = require_dist_cjs8(); var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => { for (const headerName of Object.keys(headers)) { if (headerName.toLowerCase() === SHA256_HEADER) { @@ -22240,20 +22233,17 @@ var require_dist_cjs17 = __commonJS({ return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) { const hashCtor = new hashConstructor(); - hashCtor.update((0, import_util_utf822.toUint8Array)(body)); + hashCtor.update((0, import_util_utf82.toUint8Array)(body)); return (0, import_util_hex_encoding.toHex)(await hashCtor.digest()); } return UNSIGNED_PAYLOAD; }, "getPayloadHash"); - var import_util_utf832 = require_dist_cjs8(); - var HeaderFormatter = class { - static { - __name(this, "HeaderFormatter"); - } + var import_util_utf83 = require_dist_cjs8(); + var _HeaderFormatter = class _HeaderFormatter { format(headers) { const chunks = []; for (const headerName of Object.keys(headers)) { - const bytes = (0, import_util_utf832.fromUtf8)(headerName); + const bytes = (0, import_util_utf83.fromUtf8)(headerName); chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); } const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); @@ -22308,7 +22298,7 @@ var require_dist_cjs17 = __commonJS({ binBytes.set(header.value, 3); return binBytes; case "string": - const utf8Bytes = (0, import_util_utf832.fromUtf8)(header.value); + const utf8Bytes = (0, import_util_utf83.fromUtf8)(header.value); const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); strView.setUint8( 0, @@ -22335,29 +22325,28 @@ var require_dist_cjs17 = __commonJS({ } } }; + __name(_HeaderFormatter, "HeaderFormatter"); + var HeaderFormatter = _HeaderFormatter; var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; - var Int64 = class _Int64 { + var _Int64 = class _Int642 { constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } - static { - __name(this, "Int64"); - } static fromNumber(number) { if (number > 9223372036854776e3 || number < -9223372036854776e3) { throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); } const bytes = new Uint8Array(8); - for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) { - bytes[i3] = remaining; + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; } if (number < 0) { negate(bytes); } - return new _Int64(bytes); + return new _Int642(bytes); } /** * Called implicitly by infix arithmetic operators. @@ -22374,13 +22363,15 @@ var require_dist_cjs17 = __commonJS({ return String(this.valueOf()); } }; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { - for (let i3 = 0; i3 < 8; i3++) { - bytes[i3] ^= 255; + for (let i = 0; i < 8; i++) { + bytes[i] ^= 255; } - for (let i3 = 7; i3 > -1; i3--) { - bytes[i3]++; - if (bytes[i3] !== 0) + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) break; } } @@ -22394,12 +22385,13 @@ var require_dist_cjs17 = __commonJS({ } return false; }, "hasHeader"); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => { - const { headers, query = {} } = import_protocol_http11.HttpRequest.clone(request); + var _a, _b; + const { headers, query = {} } = import_protocol_http8.HttpRequest.clone(request); for (const name of Object.keys(headers)) { const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) { + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname)) || ((_b = options.hoistableHeaders) == null ? void 0 : _b.has(lname))) { query[name] = headers[name]; delete headers[name]; } @@ -22411,7 +22403,7 @@ var require_dist_cjs17 = __commonJS({ }; }, "moveHeadersToQuery"); var prepareRequest = /* @__PURE__ */ __name((request) => { - request = import_protocol_http11.HttpRequest.clone(request); + request = import_protocol_http8.HttpRequest.clone(request); for (const headerName of Object.keys(request.headers)) { if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; @@ -22432,7 +22424,7 @@ var require_dist_cjs17 = __commonJS({ } return time; }, "toDate"); - var SignatureV42 = class { + var _SignatureV4 = class _SignatureV4 { constructor({ applyChecksum, credentials, @@ -22446,11 +22438,8 @@ var require_dist_cjs17 = __commonJS({ this.sha256 = sha256; this.uriEscapePath = uriEscapePath; this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, import_util_middleware5.normalizeProvider)(region); - this.credentialProvider = (0, import_util_middleware5.normalizeProvider)(credentials); - } - static { - __name(this, "SignatureV4"); + this.regionProvider = (0, import_util_middleware3.normalizeProvider)(region); + this.credentialProvider = (0, import_util_middleware3.normalizeProvider)(credentials); } async presign(originalRequest, options = {}) { const { @@ -22600,7 +22589,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; if (this.uriEscapePath) { const normalizedPathSegments = []; for (const pathSegment of path2.split("/")) { - if (pathSegment?.length === 0) + if ((pathSegment == null ? void 0 : pathSegment.length) === 0) continue; if (pathSegment === ".") continue; @@ -22610,7 +22599,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; normalizedPathSegments.push(pathSegment); } } - const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`; + const normalizedPath = `${(path2 == null ? void 0 : path2.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path2 == null ? void 0 : path2.endsWith("/")) ? "/" : ""}`; const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath); return doubleEncoded.replace(/%2F/g, "/"); } @@ -22633,6 +22622,8 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; } } }; + __name(_SignatureV4, "SignatureV4"); + var SignatureV42 = _SignatureV4; var formatDate = /* @__PURE__ */ __name((now) => { const longDate = iso8601(now).replace(/[\-:]/g, ""); return { @@ -22653,23 +22644,22 @@ var init_resolveAwsSdkSigV4Config = __esm({ import_signature_v4 = __toESM(require_dist_cjs17()); resolveAwsSdkSigV4Config = (config) => { let isUserSupplied = false; - let credentialsProvider; + let normalizedCreds; if (config.credentials) { isUserSupplied = true; - credentialsProvider = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh); + normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh); } - if (!credentialsProvider) { + if (!normalizedCreds) { if (config.credentialDefaultProvider) { - credentialsProvider = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, { + normalizedCreds = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, { parentClientConfig: config }))); } else { - credentialsProvider = async () => { + normalizedCreds = async () => { throw new Error("`credentials` is missing"); }; } } - const boundCredentialsProvider = async () => credentialsProvider({ callerClientConfig: config }); const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256 } = config; let signer; if (config.signer) { @@ -22687,7 +22677,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ config.signingName = config.signingName || signingService || config.serviceId; const params = { ...config, - credentials: boundCredentialsProvider, + credentials: normalizedCreds, region: config.signingRegion, service: config.signingName, sha256, @@ -22710,7 +22700,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ config.signingName = config.signingName || signingService || config.serviceId; const params = { ...config, - credentials: boundCredentialsProvider, + credentials: normalizedCreds, region: config.signingRegion, service: config.signingName, sha256, @@ -22724,7 +22714,7 @@ var init_resolveAwsSdkSigV4Config = __esm({ ...config, systemClockOffset, signingEscapePath, - credentials: isUserSupplied ? async () => boundCredentialsProvider().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e")) : boundCredentialsProvider, + credentials: isUserSupplied ? async () => normalizedCreds().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e")) : normalizedCreds, signer }; }; @@ -22856,7 +22846,7 @@ var require_dist_cjs18 = __commonJS({ let identifyOnResolve = false; const entriesNameSet = /* @__PURE__ */ new Set(); const sort = /* @__PURE__ */ __name((entries) => entries.sort( - (a3, b3) => stepWeights[b3.step] - stepWeights[a3.step] || priorityWeights[b3.priority || "normal"] - priorityWeights[a3.priority || "normal"] + (a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"] ), "sort"); const removeByName = /* @__PURE__ */ __name((toRemove) => { let isRemoved = false; @@ -22892,13 +22882,14 @@ var require_dist_cjs18 = __commonJS({ return isRemoved; }, "removeByReference"); const cloneTo = /* @__PURE__ */ __name((toStack) => { + var _a; absoluteEntries.forEach((entry) => { toStack.add(entry.middleware, { ...entry }); }); relativeEntries.forEach((entry) => { toStack.addRelativeTo(entry.middleware, { ...entry }); }); - toStack.identifyOnResolve?.(stack.identifyOnResolve()); + (_a = toStack.identifyOnResolve) == null ? void 0 : _a.call(toStack, stack.identifyOnResolve()); return toStack; }, "cloneTo"); const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => { @@ -22990,7 +22981,10 @@ var require_dist_cjs18 = __commonJS({ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); for (const alias of aliases) { const toOverrideIndex = absoluteEntries.findIndex( - (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias) + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } ); if (toOverrideIndex === -1) { continue; @@ -23023,7 +23017,10 @@ var require_dist_cjs18 = __commonJS({ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); for (const alias of aliases) { const toOverrideIndex = relativeEntries.findIndex( - (entry2) => entry2.name === alias || entry2.aliases?.some((a3) => a3 === alias) + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } ); if (toOverrideIndex === -1) { continue; @@ -23072,10 +23069,11 @@ var require_dist_cjs18 = __commonJS({ return isRemoved; }, concat: (from) => { + var _a; const cloned = cloneTo(constructStack()); cloned.use(from); cloned.identifyOnResolve( - identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false) + identifyOnResolve || cloned.identifyOnResolve() || (((_a = from.identifyOnResolve) == null ? void 0 : _a.call(from)) ?? false) ); return cloned; }, @@ -23144,16 +23142,16 @@ var require_dist_cjs19 = __commonJS({ Client: () => Client, Command: () => Command, LazyJsonString: () => LazyJsonString, - NoOpLogger: () => NoOpLogger3, - SENSITIVE_STRING: () => SENSITIVE_STRING3, + NoOpLogger: () => NoOpLogger, + SENSITIVE_STRING: () => SENSITIVE_STRING, ServiceException: () => ServiceException, - _json: () => _json2, + _json: () => _json, collectBody: () => import_protocols2.collectBody, convertMap: () => convertMap, - createAggregatedClient: () => createAggregatedClient3, + createAggregatedClient: () => createAggregatedClient, dateToUtcString: () => dateToUtcString, decorateServiceException: () => decorateServiceException, - emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion4, + emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion2, expectBoolean: () => expectBoolean, expectByte: () => expectByte, expectFloat32: () => expectFloat32, @@ -23169,23 +23167,23 @@ var require_dist_cjs19 = __commonJS({ extendedEncodeURIComponent: () => import_protocols2.extendedEncodeURIComponent, getArrayIfSingleItem: () => getArrayIfSingleItem, getDefaultClientConfiguration: () => getDefaultClientConfiguration, - getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration3, + getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, getValueFromTextNode: () => getValueFromTextNode2, handleFloat: () => handleFloat, isSerializableHeaderValue: () => isSerializableHeaderValue, limitedParseDouble: () => limitedParseDouble, limitedParseFloat: () => limitedParseFloat, limitedParseFloat32: () => limitedParseFloat32, - loadConfigsForDefaultMode: () => loadConfigsForDefaultMode3, + loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, logger: () => logger, - map: () => map2, + map: () => map, parseBoolean: () => parseBoolean, parseEpochTimestamp: () => parseEpochTimestamp, parseRfc3339DateTime: () => parseRfc3339DateTime, parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, parseRfc7231DateTime: () => parseRfc7231DateTime, quoteHeader: () => quoteHeader, - resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig3, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, resolvedPath: () => import_protocols2.resolvedPath, serializeDateTime: () => serializeDateTime, serializeFloat: () => serializeFloat, @@ -23199,20 +23197,17 @@ var require_dist_cjs19 = __commonJS({ strictParseInt32: () => strictParseInt32, strictParseLong: () => strictParseLong, strictParseShort: () => strictParseShort, - take: () => take2, - throwDefaultError: () => throwDefaultError3, - withBaseException: () => withBaseException3 + take: () => take, + throwDefaultError: () => throwDefaultError, + withBaseException: () => withBaseException }); module2.exports = __toCommonJS2(src_exports); var import_middleware_stack = require_dist_cjs18(); - var Client = class { + var _Client = class _Client { constructor(config) { this.config = config; this.middlewareStack = (0, import_middleware_stack.constructStack)(); } - static { - __name(this, "Client"); - } send(command, optionsOrCb, cb) { const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; @@ -23248,19 +23243,19 @@ var require_dist_cjs19 = __commonJS({ } } destroy() { - this.config?.requestHandler?.destroy?.(); + var _a, _b, _c; + (_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b); delete this.handlers; } }; + __name(_Client, "Client"); + var Client = _Client; var import_protocols2 = (init_protocols(), __toCommonJS(protocols_exports)); var import_types5 = require_dist_cjs(); - var Command = class { + var _Command = class _Command { constructor() { this.middlewareStack = (0, import_middleware_stack.constructStack)(); } - static { - __name(this, "Command"); - } /** * Factory for Command ClassBuilder. * @internal @@ -23305,7 +23300,9 @@ var require_dist_cjs19 = __commonJS({ ); } }; - var ClassBuilder = class { + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { constructor() { this._init = () => { }; @@ -23315,14 +23312,11 @@ var require_dist_cjs19 = __commonJS({ this._clientName = ""; this._additionalContext = {}; this._smithyContext = {}; - this._inputFilterSensitiveLog = (_2) => _2; - this._outputFilterSensitiveLog = (_2) => _2; + this._inputFilterSensitiveLog = (_) => _; + this._outputFilterSensitiveLog = (_) => _; this._serializer = null; this._deserializer = null; } - static { - __name(this, "ClassBuilder"); - } /** * Optional init callback. */ @@ -23372,7 +23366,7 @@ var require_dist_cjs19 = __commonJS({ /** * Set the input and output sensistive log filters. */ - f(inputFilter = (_2) => _2, outputFilter = (_2) => _2) { + f(inputFilter = (_) => _, outputFilter = (_) => _) { this._inputFilterSensitiveLog = inputFilter; this._outputFilterSensitiveLog = outputFilter; return this; @@ -23395,9 +23389,10 @@ var require_dist_cjs19 = __commonJS({ * @returns a Command class with the classBuilder properties. */ build() { + var _a; const closure = this; let CommandRef; - return CommandRef = class extends Command { + return CommandRef = (_a = class extends Command { /** * @public */ @@ -23408,9 +23403,6 @@ var require_dist_cjs19 = __commonJS({ this.input = input ?? {}; closure._init(this); } - static { - __name(this, "CommandRef"); - } /** * @public */ @@ -23432,13 +23424,15 @@ var require_dist_cjs19 = __commonJS({ additionalContext: closure._additionalContext }); } - }; + }, __name(_a, "CommandRef"), _a); } }; - var SENSITIVE_STRING3 = "***SensitiveInformation***"; - var createAggregatedClient3 = /* @__PURE__ */ __name((commands3, Client2) => { - for (const command of Object.keys(commands3)) { - const CommandCtor = commands3[command]; + __name(_ClassBuilder, "ClassBuilder"); + var ClassBuilder = _ClassBuilder; + var SENSITIVE_STRING = "***SensitiveInformation***"; + var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { + for (const command of Object.keys(commands)) { + const CommandCtor = commands[command]; const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) { const command2 = new CommandCtor(args); if (typeof optionsOrCb === "function") { @@ -23592,7 +23586,7 @@ var require_dist_cjs19 = __commonJS({ return void 0; } const asObject = expectObject(value); - const setKeys = Object.entries(asObject).filter(([, v6]) => v6 != null).map(([k3]) => k3); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); if (setKeys.length === 0) { throw new TypeError(`Unions must have exactly one non-null member. None were found.`); } @@ -23674,7 +23668,7 @@ var require_dist_cjs19 = __commonJS({ return expectByte(value); }, "strictParseByte"); var stackTraceWarning = /* @__PURE__ */ __name((message) => { - return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s3) => !s3.includes("stackTraceWarning")).join("\n"); + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); }, "stackTraceWarning"); var logger = { warn: console.warn @@ -23708,7 +23702,7 @@ var require_dist_cjs19 = __commonJS({ if (!match) { throw new TypeError("Invalid RFC-3339 date-time value"); } - const [_2, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); @@ -23728,7 +23722,7 @@ var require_dist_cjs19 = __commonJS({ if (!match) { throw new TypeError("Invalid RFC-3339 date-time value"); } - const [_2, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); @@ -23756,7 +23750,7 @@ var require_dist_cjs19 = __commonJS({ } let match = IMF_FIXDATE.exec(value); if (match) { - const [_2, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; return buildDate( strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), @@ -23766,7 +23760,7 @@ var require_dist_cjs19 = __commonJS({ } match = RFC_850_DATE.exec(value); if (match) { - const [_2, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; return adjustRfc850Year( buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, @@ -23778,7 +23772,7 @@ var require_dist_cjs19 = __commonJS({ } match = ASC_TIME.exec(value); if (match) { - const [_2, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; return buildDate( strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), @@ -23905,13 +23899,10 @@ var require_dist_cjs19 = __commonJS({ } return value.slice(idx); }, "stripLeadingZeroes"); - var ServiceException = class _ServiceException extends Error { - static { - __name(this, "ServiceException"); - } + var _ServiceException = class _ServiceException2 extends Error { constructor(options) { super(options.message); - Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype); + Object.setPrototypeOf(this, _ServiceException2.prototype); this.name = options.name; this.$fault = options.$fault; this.$metadata = options.$metadata; @@ -23923,31 +23914,15 @@ var require_dist_cjs19 = __commonJS({ if (!value) return false; const candidate = value; - return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server"); - } - /** - * Custom instanceof check to support the operator for ServiceException base class - */ - static [Symbol.hasInstance](instance) { - if (!instance) - return false; - const candidate = instance; - if (this === _ServiceException) { - return _ServiceException.isInstance(instance); - } - if (_ServiceException.isInstance(instance)) { - if (candidate.name && this.name) { - return this.prototype.isPrototypeOf(instance) || candidate.name === this.name; - } - return this.prototype.isPrototypeOf(instance); - } - return false; + return Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server"); } }; + __name(_ServiceException, "ServiceException"); + var ServiceException = _ServiceException; var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => { - Object.entries(additions).filter(([, v6]) => v6 !== void 0).forEach(([k3, v6]) => { - if (exception[k3] == void 0 || exception[k3] === "") { - exception[k3] = v6; + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; } }); const message = exception.message || exception.Message || "UnknownError"; @@ -23955,28 +23930,28 @@ var require_dist_cjs19 = __commonJS({ delete exception.Message; return exception; }, "decorateServiceException"); - var throwDefaultError3 = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata3(output); + var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; const response = new exceptionCtor({ - name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError", + name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", $fault: "client", $metadata }); throw decorateServiceException(response, parsedBody); }, "throwDefaultError"); - var withBaseException3 = /* @__PURE__ */ __name((ExceptionCtor) => { + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { return ({ output, parsedBody, errorCode }) => { - throwDefaultError3({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); }; }, "withBaseException"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }), "deserializeMetadata"); - var loadConfigsForDefaultMode3 = /* @__PURE__ */ __name((mode) => { + var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => { switch (mode) { case "standard": return { @@ -24003,7 +23978,7 @@ var require_dist_cjs19 = __commonJS({ } }, "loadConfigsForDefaultMode"); var warningEmitted = false; - var emitWarningIfUnsupportedVersion4 = /* @__PURE__ */ __name((version2) => { + var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version2) => { if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 16) { warningEmitted = true; } @@ -24053,14 +24028,14 @@ var require_dist_cjs19 = __commonJS({ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); return runtimeConfig; }, "resolveRetryRuntimeConfig"); - var getDefaultExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { return { ...getChecksumConfiguration(runtimeConfig), ...getRetryConfiguration(runtimeConfig) }; }, "getDefaultExtensionConfiguration"); - var getDefaultClientConfiguration = getDefaultExtensionConfiguration3; - var resolveDefaultRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var getDefaultClientConfiguration = getDefaultExtensionConfiguration; + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { ...resolveChecksumRuntimeConfig(config), ...resolveRetryRuntimeConfig(config) @@ -24104,10 +24079,7 @@ var require_dist_cjs19 = __commonJS({ return LazyJsonString(JSON.stringify(object)); }; LazyJsonString.fromObject = LazyJsonString.from; - var NoOpLogger3 = class { - static { - __name(this, "NoOpLogger"); - } + var _NoOpLogger = class _NoOpLogger { trace() { } debug() { @@ -24119,7 +24091,9 @@ var require_dist_cjs19 = __commonJS({ error() { } }; - function map2(arg0, arg1, arg2) { + __name(_NoOpLogger, "NoOpLogger"); + var NoOpLogger = _NoOpLogger; + function map(arg0, arg1, arg2) { let target; let filter; let instructions; @@ -24145,15 +24119,15 @@ var require_dist_cjs19 = __commonJS({ } return target; } - __name(map2, "map"); + __name(map, "map"); var convertMap = /* @__PURE__ */ __name((target) => { const output = {}; - for (const [k3, v6] of Object.entries(target || {})) { - output[k3] = [, v6]; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; } return output; }, "convertMap"); - var take2 = /* @__PURE__ */ __name((source, instructions) => { + var take = /* @__PURE__ */ __name((source, instructions) => { const out = {}; for (const key in instructions) { applyInstruction(out, source, instructions, key); @@ -24161,7 +24135,7 @@ var require_dist_cjs19 = __commonJS({ return out; }, "take"); var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => { - return map2( + return map( target, Object.entries(instructions).reduce( (_instructions, [key, value]) => { @@ -24210,8 +24184,8 @@ var require_dist_cjs19 = __commonJS({ } } }, "applyInstruction"); - var nonNullish = /* @__PURE__ */ __name((_2) => _2 != null, "nonNullish"); - var pass = /* @__PURE__ */ __name((_2) => _2, "pass"); + var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); + var pass = /* @__PURE__ */ __name((_) => _, "pass"); function quoteHeader(part) { if (part.includes(",") || part.includes('"')) { part = `"${part.replace(/"/g, '\\"')}"`; @@ -24233,12 +24207,12 @@ var require_dist_cjs19 = __commonJS({ } }, "serializeFloat"); var serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(".000Z", "Z"), "serializeDateTime"); - var _json2 = /* @__PURE__ */ __name((obj) => { + var _json = /* @__PURE__ */ __name((obj) => { if (obj == null) { return {}; } if (Array.isArray(obj)) { - return obj.filter((_2) => _2 != null).map(_json2); + return obj.filter((_) => _ != null).map(_json); } if (typeof obj === "object") { const target = {}; @@ -24246,7 +24220,7 @@ var require_dist_cjs19 = __commonJS({ if (obj[key] == null) { continue; } - target[key] = _json2(obj[key]); + target[key] = _json(obj[key]); } return target; } @@ -24262,13 +24236,13 @@ var require_dist_cjs19 = __commonJS({ } const compoundSegments = []; let currentSegment = ""; - for (let i3 = 0; i3 < segments.length; i3++) { + for (let i = 0; i < segments.length; i++) { if (currentSegment === "") { - currentSegment = segments[i3]; + currentSegment = segments[i]; } else { - currentSegment += delimiter + segments[i3]; + currentSegment += delimiter + segments[i]; } - if ((i3 + 1) % numDelimiters === 0) { + if ((i + 1) % numDelimiters === 0) { compoundSegments.push(currentSegment); currentSegment = ""; } @@ -24280,13 +24254,13 @@ var require_dist_cjs19 = __commonJS({ } __name(splitEvery, "splitEvery"); var splitHeader = /* @__PURE__ */ __name((value) => { - const z2 = value.length; + const z = value.length; const values = []; let withinQuotes = false; let prevChar = void 0; let anchor = 0; - for (let i3 = 0; i3 < z2; ++i3) { - const char = value[i3]; + for (let i = 0; i < z; ++i) { + const char = value[i]; switch (char) { case `"`: if (prevChar !== "\\") { @@ -24295,8 +24269,8 @@ var require_dist_cjs19 = __commonJS({ break; case ",": if (!withinQuotes) { - values.push(value.slice(anchor, i3)); - anchor = i3 + 1; + values.push(value.slice(anchor, i)); + anchor = i + 1; } break; default: @@ -24304,16 +24278,16 @@ var require_dist_cjs19 = __commonJS({ prevChar = char; } values.push(value.slice(anchor)); - return values.map((v6) => { - v6 = v6.trim(); - const z22 = v6.length; - if (z22 < 2) { - return v6; + return values.map((v) => { + v = v.trim(); + const z2 = v.length; + if (z2 < 2) { + return v; } - if (v6[0] === `"` && v6[z22 - 1] === `"`) { - v6 = v6.slice(1, z22 - 1); + if (v[0] === `"` && v[z2 - 1] === `"`) { + v = v.slice(1, z2 - 1); } - return v6.replace(/\\"/g, '"'); + return v.replace(/\\"/g, '"'); }); }, "splitHeader"); } @@ -24354,13 +24328,13 @@ var init_parseJsonBody = __esm({ if (encoded.length) { try { return JSON.parse(encoded); - } catch (e3) { - if (e3?.name === "SyntaxError") { - Object.defineProperty(e3, "$responseBodyText", { + } catch (e) { + if (e?.name === "SyntaxError") { + Object.defineProperty(e, "$responseBodyText", { value: encoded }); } - throw e3; + throw e; } } return {}; @@ -24371,7 +24345,7 @@ var init_parseJsonBody = __esm({ return value; }; loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k3) => k3.toLowerCase() === key.toLowerCase()); + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); const sanitizeErrorCode = (rawValue) => { let cleanValue = rawValue; if (typeof cleanValue === "number") { @@ -24429,28 +24403,28 @@ var require_util8 = __commonJS({ const match = regexName.exec(string); return !(match === null || typeof match === "undefined"); }; - exports2.isExist = function(v6) { - return typeof v6 !== "undefined"; + exports2.isExist = function(v) { + return typeof v !== "undefined"; }; exports2.isEmptyObject = function(obj) { return Object.keys(obj).length === 0; }; - exports2.merge = function(target, a3, arrayMode) { - if (a3) { - const keys = Object.keys(a3); + exports2.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); const len = keys.length; - for (let i3 = 0; i3 < len; i3++) { + for (let i = 0; i < len; i++) { if (arrayMode === "strict") { - target[keys[i3]] = [a3[keys[i3]]]; + target[keys[i]] = [a[keys[i]]]; } else { - target[keys[i3]] = a3[keys[i3]]; + target[keys[i]] = a[keys[i]]; } } } }; - exports2.getValue = function(v6) { - if (exports2.isExist(v6)) { - return v6; + exports2.getValue = function(v) { + if (exports2.isExist(v)) { + return v; } else { return ""; } @@ -24479,31 +24453,31 @@ var require_validator = __commonJS({ if (xmlData[0] === "\uFEFF") { xmlData = xmlData.substr(1); } - for (let i3 = 0; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<" && xmlData[i3 + 1] === "?") { - i3 += 2; - i3 = readPI(xmlData, i3); - if (i3.err) return i3; - } else if (xmlData[i3] === "<") { - let tagStartPos = i3; - i3++; - if (xmlData[i3] === "!") { - i3 = readCommentAndCDATA(xmlData, i3); + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === "<" && xmlData[i + 1] === "?") { + i += 2; + i = readPI(xmlData, i); + if (i.err) return i; + } else if (xmlData[i] === "<") { + let tagStartPos = i; + i++; + if (xmlData[i] === "!") { + i = readCommentAndCDATA(xmlData, i); continue; } else { let closingTag = false; - if (xmlData[i3] === "/") { + if (xmlData[i] === "/") { closingTag = true; - i3++; + i++; } let tagName = ""; - for (; i3 < xmlData.length && xmlData[i3] !== ">" && xmlData[i3] !== " " && xmlData[i3] !== " " && xmlData[i3] !== "\n" && xmlData[i3] !== "\r"; i3++) { - tagName += xmlData[i3]; + for (; i < xmlData.length && xmlData[i] !== ">" && xmlData[i] !== " " && xmlData[i] !== " " && xmlData[i] !== "\n" && xmlData[i] !== "\r"; i++) { + tagName += xmlData[i]; } tagName = tagName.trim(); if (tagName[tagName.length - 1] === "/") { tagName = tagName.substring(0, tagName.length - 1); - i3--; + i--; } if (!validateTagName(tagName)) { let msg; @@ -24512,16 +24486,16 @@ var require_validator = __commonJS({ } else { msg = "Tag '" + tagName + "' is an invalid name."; } - return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidTag", msg, getLineNumberForPosition(xmlData, i)); } - const result = readAttributeStr(xmlData, i3); + const result = readAttributeStr(xmlData, i); if (result === false) { - return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidAttr", "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i)); } let attrStr = result.value; - i3 = result.index; + i = result.index; if (attrStr[attrStr.length - 1] === "/") { - const attrStrStart = i3 - attrStr.length; + const attrStrStart = i - attrStr.length; attrStr = attrStr.substring(0, attrStr.length - 1); const isValid = validateAttributeString(attrStr, options); if (isValid === true) { @@ -24531,7 +24505,7 @@ var require_validator = __commonJS({ } } else if (closingTag) { if (!result.tagClosed) { - return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i)); } else if (attrStr.trim().length > 0) { return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos)); } else if (tags.length === 0) { @@ -24553,48 +24527,48 @@ var require_validator = __commonJS({ } else { const isValid = validateAttributeString(attrStr, options); if (isValid !== true) { - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i3 - attrStr.length + isValid.err.line)); + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); } if (reachedRoot === true) { - return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i)); } else if (options.unpairedTags.indexOf(tagName) !== -1) { } else { tags.push({ tagName, tagStartPos }); } tagFound = true; } - for (i3++; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { - if (xmlData[i3 + 1] === "!") { - i3++; - i3 = readCommentAndCDATA(xmlData, i3); + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "!") { + i++; + i = readCommentAndCDATA(xmlData, i); continue; - } else if (xmlData[i3 + 1] === "?") { - i3 = readPI(xmlData, ++i3); - if (i3.err) return i3; + } else if (xmlData[i + 1] === "?") { + i = readPI(xmlData, ++i); + if (i.err) return i; } else { break; } - } else if (xmlData[i3] === "&") { - const afterAmp = validateAmpersand(xmlData, i3); + } else if (xmlData[i] === "&") { + const afterAmp = validateAmpersand(xmlData, i); if (afterAmp == -1) - return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i3)); - i3 = afterAmp; + return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); + i = afterAmp; } else { - if (reachedRoot === true && !isWhiteSpace(xmlData[i3])) { - return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i3)); + if (reachedRoot === true && !isWhiteSpace(xmlData[i])) { + return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i)); } } } - if (xmlData[i3] === "<") { - i3--; + if (xmlData[i] === "<") { + i--; } } } else { - if (isWhiteSpace(xmlData[i3])) { + if (isWhiteSpace(xmlData[i])) { continue; } - return getErrorObject("InvalidChar", "char '" + xmlData[i3] + "' is not expected.", getLineNumberForPosition(xmlData, i3)); + return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i)); } } if (!tagFound) { @@ -24602,88 +24576,88 @@ var require_validator = __commonJS({ } else if (tags.length == 1) { return getErrorObject("InvalidTag", "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos)); } else if (tags.length > 0) { - return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }); + return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags.map((t) => t.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }); } return true; }; function isWhiteSpace(char) { return char === " " || char === " " || char === "\n" || char === "\r"; } - function readPI(xmlData, i3) { - const start = i3; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] == "?" || xmlData[i3] == " ") { - const tagname = xmlData.substr(start, i3 - start); - if (i3 > 5 && tagname === "xml") { - return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i3)); - } else if (xmlData[i3] == "?" && xmlData[i3 + 1] == ">") { - i3++; + function readPI(xmlData, i) { + const start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == "?" || xmlData[i] == " ") { + const tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === "xml") { + return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == "?" && xmlData[i + 1] == ">") { + i++; break; } else { continue; } } } - return i3; + return i; } - function readCommentAndCDATA(xmlData, i3) { - if (xmlData.length > i3 + 5 && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === "-") { - for (i3 += 3; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "-" && xmlData[i3 + 1] === "-" && xmlData[i3 + 2] === ">") { - i3 += 2; + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === "-" && xmlData[i + 2] === "-") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === "-" && xmlData[i + 1] === "-" && xmlData[i + 2] === ">") { + i += 2; break; } } - } else if (xmlData.length > i3 + 8 && xmlData[i3 + 1] === "D" && xmlData[i3 + 2] === "O" && xmlData[i3 + 3] === "C" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "Y" && xmlData[i3 + 6] === "P" && xmlData[i3 + 7] === "E") { + } else if (xmlData.length > i + 8 && xmlData[i + 1] === "D" && xmlData[i + 2] === "O" && xmlData[i + 3] === "C" && xmlData[i + 4] === "T" && xmlData[i + 5] === "Y" && xmlData[i + 6] === "P" && xmlData[i + 7] === "E") { let angleBracketsCount = 1; - for (i3 += 8; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "<") { angleBracketsCount++; - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { angleBracketsCount--; if (angleBracketsCount === 0) { break; } } } - } else if (xmlData.length > i3 + 9 && xmlData[i3 + 1] === "[" && xmlData[i3 + 2] === "C" && xmlData[i3 + 3] === "D" && xmlData[i3 + 4] === "A" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "A" && xmlData[i3 + 7] === "[") { - for (i3 += 8; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "]" && xmlData[i3 + 1] === "]" && xmlData[i3 + 2] === ">") { - i3 += 2; + } else if (xmlData.length > i + 9 && xmlData[i + 1] === "[" && xmlData[i + 2] === "C" && xmlData[i + 3] === "D" && xmlData[i + 4] === "A" && xmlData[i + 5] === "T" && xmlData[i + 6] === "A" && xmlData[i + 7] === "[") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "]" && xmlData[i + 1] === "]" && xmlData[i + 2] === ">") { + i += 2; break; } } } - return i3; + return i; } var doubleQuote = '"'; var singleQuote = "'"; - function readAttributeStr(xmlData, i3) { + function readAttributeStr(xmlData, i) { let attrStr = ""; let startChar = ""; let tagClosed = false; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === doubleQuote || xmlData[i3] === singleQuote) { + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { if (startChar === "") { - startChar = xmlData[i3]; - } else if (startChar !== xmlData[i3]) { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { } else { startChar = ""; } - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { if (startChar === "") { tagClosed = true; break; } } - attrStr += xmlData[i3]; + attrStr += xmlData[i]; } if (startChar !== "") { return false; } return { value: attrStr, - index: i3, + index: i, tagClosed }; } @@ -24691,57 +24665,57 @@ var require_validator = __commonJS({ function validateAttributeString(attrStr, options) { const matches = util.getAllMatches(attrStr, validAttrStrRegxp); const attrNames = {}; - for (let i3 = 0; i3 < matches.length; i3++) { - if (matches[i3][1].length === 0) { - return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' has no space in starting.", getPositionFromMatch(matches[i3])); - } else if (matches[i3][3] !== void 0 && matches[i3][4] === void 0) { - return getErrorObject("InvalidAttr", "Attribute '" + matches[i3][2] + "' is without value.", getPositionFromMatch(matches[i3])); - } else if (matches[i3][3] === void 0 && !options.allowBooleanAttributes) { - return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i3][2] + "' is not allowed.", getPositionFromMatch(matches[i3])); - } - const attrName = matches[i3][2]; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(matches[i])); + } else if (matches[i][3] !== void 0 && matches[i][4] === void 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' is without value.", getPositionFromMatch(matches[i])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(matches[i])); + } + const attrName = matches[i][2]; if (!validateAttrName(attrName)) { - return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i3])); + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i])); } if (!attrNames.hasOwnProperty(attrName)) { attrNames[attrName] = 1; } else { - return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i3])); + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i])); } } return true; } - function validateNumberAmpersand(xmlData, i3) { + function validateNumberAmpersand(xmlData, i) { let re = /\d/; - if (xmlData[i3] === "x") { - i3++; + if (xmlData[i] === "x") { + i++; re = /[\da-fA-F]/; } - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === ";") - return i3; - if (!xmlData[i3].match(re)) + for (; i < xmlData.length; i++) { + if (xmlData[i] === ";") + return i; + if (!xmlData[i].match(re)) break; } return -1; } - function validateAmpersand(xmlData, i3) { - i3++; - if (xmlData[i3] === ";") + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === ";") return -1; - if (xmlData[i3] === "#") { - i3++; - return validateNumberAmpersand(xmlData, i3); + if (xmlData[i] === "#") { + i++; + return validateNumberAmpersand(xmlData, i); } let count = 0; - for (; i3 < xmlData.length; i3++, count++) { - if (xmlData[i3].match(/\w/) && count < 20) + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\w/) && count < 20) continue; - if (xmlData[i3] === ";") + if (xmlData[i] === ";") break; return -1; } - return i3; + return i; } function getErrorObject(code, message, lineNumber) { return { @@ -24859,33 +24833,33 @@ var require_xmlNode = __commonJS({ var require_DocTypeReader = __commonJS({ "../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) { var util = require_util8(); - function readDocType(xmlData, i3) { + function readDocType(xmlData, i) { const entities = {}; - if (xmlData[i3 + 3] === "O" && xmlData[i3 + 4] === "C" && xmlData[i3 + 5] === "T" && xmlData[i3 + 6] === "Y" && xmlData[i3 + 7] === "P" && xmlData[i3 + 8] === "E") { - i3 = i3 + 9; + if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") { + i = i + 9; let angleBracketsCount = 1; let hasBody = false, comment = false; let exp = ""; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<" && !comment) { - if (hasBody && isEntity(xmlData, i3)) { - i3 += 7; - [entityName, val, i3] = readEntityExp(xmlData, i3 + 1); + for (; i < xmlData.length; i++) { + if (xmlData[i] === "<" && !comment) { + if (hasBody && isEntity(xmlData, i)) { + i += 7; + [entityName, val, i] = readEntityExp(xmlData, i + 1); if (val.indexOf("&") === -1) entities[validateEntityName(entityName)] = { regx: RegExp(`&${entityName};`, "g"), val }; - } else if (hasBody && isElement(xmlData, i3)) i3 += 8; - else if (hasBody && isAttlist(xmlData, i3)) i3 += 8; - else if (hasBody && isNotation(xmlData, i3)) i3 += 9; + } else if (hasBody && isElement(xmlData, i)) i += 8; + else if (hasBody && isAttlist(xmlData, i)) i += 8; + else if (hasBody && isNotation(xmlData, i)) i += 9; else if (isComment) comment = true; else throw new Error("Invalid DOCTYPE"); angleBracketsCount++; exp = ""; - } else if (xmlData[i3] === ">") { + } else if (xmlData[i] === ">") { if (comment) { - if (xmlData[i3 - 1] === "-" && xmlData[i3 - 2] === "-") { + if (xmlData[i - 1] === "-" && xmlData[i - 2] === "-") { comment = false; angleBracketsCount--; } @@ -24895,10 +24869,10 @@ var require_DocTypeReader = __commonJS({ if (angleBracketsCount === 0) { break; } - } else if (xmlData[i3] === "[") { + } else if (xmlData[i] === "[") { hasBody = true; } else { - exp += xmlData[i3]; + exp += xmlData[i]; } } if (angleBracketsCount !== 0) { @@ -24907,40 +24881,40 @@ var require_DocTypeReader = __commonJS({ } else { throw new Error(`Invalid Tag instead of DOCTYPE`); } - return { entities, i: i3 }; + return { entities, i }; } - function readEntityExp(xmlData, i3) { + function readEntityExp(xmlData, i) { let entityName2 = ""; - for (; i3 < xmlData.length && (xmlData[i3] !== "'" && xmlData[i3] !== '"'); i3++) { - entityName2 += xmlData[i3]; + for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"'); i++) { + entityName2 += xmlData[i]; } entityName2 = entityName2.trim(); if (entityName2.indexOf(" ") !== -1) throw new Error("External entites are not supported"); - const startChar = xmlData[i3++]; + const startChar = xmlData[i++]; let val2 = ""; - for (; i3 < xmlData.length && xmlData[i3] !== startChar; i3++) { - val2 += xmlData[i3]; + for (; i < xmlData.length && xmlData[i] !== startChar; i++) { + val2 += xmlData[i]; } - return [entityName2, val2, i3]; + return [entityName2, val2, i]; } - function isComment(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "-" && xmlData[i3 + 3] === "-") return true; + function isComment(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-") return true; return false; } - function isEntity(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "E" && xmlData[i3 + 3] === "N" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "I" && xmlData[i3 + 6] === "T" && xmlData[i3 + 7] === "Y") return true; + function isEntity(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") return true; return false; } - function isElement(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "E" && xmlData[i3 + 3] === "L" && xmlData[i3 + 4] === "E" && xmlData[i3 + 5] === "M" && xmlData[i3 + 6] === "E" && xmlData[i3 + 7] === "N" && xmlData[i3 + 8] === "T") return true; + function isElement(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") return true; return false; } - function isAttlist(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "A" && xmlData[i3 + 3] === "T" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "L" && xmlData[i3 + 6] === "I" && xmlData[i3 + 7] === "S" && xmlData[i3 + 8] === "T") return true; + function isAttlist(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") return true; return false; } - function isNotation(xmlData, i3) { - if (xmlData[i3 + 1] === "!" && xmlData[i3 + 2] === "N" && xmlData[i3 + 3] === "O" && xmlData[i3 + 4] === "T" && xmlData[i3 + 5] === "A" && xmlData[i3 + 6] === "T" && xmlData[i3 + 7] === "I" && xmlData[i3 + 8] === "O" && xmlData[i3 + 9] === "N") return true; + function isNotation(xmlData, i) { + if (xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") return true; return false; } function validateEntityName(name) { @@ -25065,8 +25039,8 @@ var require_OrderedObjParser = __commonJS({ "copyright": { regex: /&(copy|#169);/g, val: "\xA9" }, "reg": { regex: /&(reg|#174);/g, val: "\xAE" }, "inr": { regex: /&(inr|#8377);/g, val: "\u20B9" }, - "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 10)) }, - "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_2, str) => String.fromCharCode(Number.parseInt(str, 16)) } + "num_dec": { regex: /&#([0-9]{1,7});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 10)) }, + "num_hex": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 16)) } }; this.addExternalEntities = addExternalEntities; this.parseXml = parseXml; @@ -25082,8 +25056,8 @@ var require_OrderedObjParser = __commonJS({ }; function addExternalEntities(externalEntities) { const entKeys = Object.keys(externalEntities); - for (let i3 = 0; i3 < entKeys.length; i3++) { - const ent = entKeys[i3]; + for (let i = 0; i < entKeys.length; i++) { + const ent = entKeys[i]; this.lastEntities[ent] = { regex: new RegExp("&" + ent + ";", "g"), val: externalEntities[ent] @@ -25134,9 +25108,9 @@ var require_OrderedObjParser = __commonJS({ const matches = util.getAllMatches(attrStr, attrsRegx); const len = matches.length; const attrs = {}; - for (let i3 = 0; i3 < len; i3++) { - const attrName = this.resolveNameSpace(matches[i3][1]); - let oldVal = matches[i3][4]; + for (let i = 0; i < len; i++) { + const attrName = this.resolveNameSpace(matches[i][1]); + let oldVal = matches[i][4]; let aName = this.options.attributeNamePrefix + attrName; if (attrName.length) { if (this.options.transformAttributeName) { @@ -25182,12 +25156,12 @@ var require_OrderedObjParser = __commonJS({ let currentNode = xmlObj; let textData = ""; let jPath = ""; - for (let i3 = 0; i3 < xmlData.length; i3++) { - const ch = xmlData[i3]; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; if (ch === "<") { - if (xmlData[i3 + 1] === "/") { - const closeIndex = findClosingIndex(xmlData, ">", i3, "Closing Tag is not closed."); - let tagName = xmlData.substring(i3 + 2, closeIndex).trim(); + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); if (this.options.removeNSPrefix) { const colonIndex = tagName.indexOf(":"); if (colonIndex !== -1) { @@ -25214,9 +25188,9 @@ var require_OrderedObjParser = __commonJS({ jPath = jPath.substring(0, propIndex); currentNode = this.tagsNodeStack.pop(); textData = ""; - i3 = closeIndex; - } else if (xmlData[i3 + 1] === "?") { - let tagData = readTagExp(xmlData, i3, false, "?>"); + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + let tagData = readTagExp(xmlData, i, false, "?>"); if (!tagData) throw new Error("Pi Tag is not closed."); textData = this.saveTextToParentTag(textData, currentNode, jPath); if (this.options.ignoreDeclaration && tagData.tagName === "?xml" || this.options.ignorePiTags) { @@ -25228,22 +25202,22 @@ var require_OrderedObjParser = __commonJS({ } this.addChild(currentNode, childNode, jPath); } - i3 = tagData.closeIndex + 1; - } else if (xmlData.substr(i3 + 1, 3) === "!--") { - const endIndex = findClosingIndex(xmlData, "-->", i3 + 4, "Comment is not closed."); + i = tagData.closeIndex + 1; + } else if (xmlData.substr(i + 1, 3) === "!--") { + const endIndex = findClosingIndex(xmlData, "-->", i + 4, "Comment is not closed."); if (this.options.commentPropName) { - const comment = xmlData.substring(i3 + 4, endIndex - 2); + const comment = xmlData.substring(i + 4, endIndex - 2); textData = this.saveTextToParentTag(textData, currentNode, jPath); currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]); } - i3 = endIndex; - } else if (xmlData.substr(i3 + 1, 2) === "!D") { - const result = readDocType(xmlData, i3); + i = endIndex; + } else if (xmlData.substr(i + 1, 2) === "!D") { + const result = readDocType(xmlData, i); this.docTypeEntities = result.entities; - i3 = result.i; - } else if (xmlData.substr(i3 + 1, 2) === "![") { - const closeIndex = findClosingIndex(xmlData, "]]>", i3, "CDATA is not closed.") - 2; - const tagExp = xmlData.substring(i3 + 9, closeIndex); + i = result.i; + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); textData = this.saveTextToParentTag(textData, currentNode, jPath); let val2 = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true); if (val2 == void 0) val2 = ""; @@ -25252,9 +25226,9 @@ var require_OrderedObjParser = __commonJS({ } else { currentNode.add(this.options.textNodeName, val2); } - i3 = closeIndex + 2; + i = closeIndex + 2; } else { - let result = readTagExp(xmlData, i3, this.options.removeNSPrefix); + let result = readTagExp(xmlData, i, this.options.removeNSPrefix); let tagName = result.tagName; const rawTagName = result.rawTagName; let tagExp = result.tagExp; @@ -25286,13 +25260,13 @@ var require_OrderedObjParser = __commonJS({ } else { tagExp = tagExp.substr(0, tagExp.length - 1); } - i3 = result.closeIndex; + i = result.closeIndex; } else if (this.options.unpairedTags.indexOf(tagName) !== -1) { - i3 = result.closeIndex; + i = result.closeIndex; } else { const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1); if (!result2) throw new Error(`Unexpected end of ${rawTagName}`); - i3 = result2.i; + i = result2.i; tagContent = result2.tagContent; } const childNode = new xmlNode(tagName); @@ -25333,11 +25307,11 @@ var require_OrderedObjParser = __commonJS({ currentNode = childNode; } textData = ""; - i3 = closeIndex; + i = closeIndex; } } } else { - textData += xmlData[i3]; + textData += xmlData[i]; } } return xmlObj.child; @@ -25397,10 +25371,10 @@ var require_OrderedObjParser = __commonJS({ } return false; } - function tagExpWithClosingIndex(xmlData, i3, closingChar = ">") { + function tagExpWithClosingIndex(xmlData, i, closingChar = ">") { let attrBoundary; let tagExp = ""; - for (let index = i3; index < xmlData.length; index++) { + for (let index = i; index < xmlData.length; index++) { let ch = xmlData[index]; if (attrBoundary) { if (ch === attrBoundary) attrBoundary = ""; @@ -25426,16 +25400,16 @@ var require_OrderedObjParser = __commonJS({ tagExp += ch; } } - function findClosingIndex(xmlData, str, i3, errMsg) { - const closingIndex = xmlData.indexOf(str, i3); + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); if (closingIndex === -1) { throw new Error(errMsg); } else { return closingIndex + str.length - 1; } } - function readTagExp(xmlData, i3, removeNSPrefix, closingChar = ">") { - const result = tagExpWithClosingIndex(xmlData, i3 + 1, closingChar); + function readTagExp(xmlData, i, removeNSPrefix, closingChar = ">") { + const result = tagExpWithClosingIndex(xmlData, i + 1, closingChar); if (!result) return; let tagExp = result.data; const closeIndex = result.index; @@ -25462,41 +25436,41 @@ var require_OrderedObjParser = __commonJS({ rawTagName }; } - function readStopNodeData(xmlData, tagName, i3) { - const startIndex = i3; + function readStopNodeData(xmlData, tagName, i) { + const startIndex = i; let openTagCount = 1; - for (; i3 < xmlData.length; i3++) { - if (xmlData[i3] === "<") { - if (xmlData[i3 + 1] === "/") { - const closeIndex = findClosingIndex(xmlData, ">", i3, `${tagName} is not closed`); - let closeTagName = xmlData.substring(i3 + 2, closeIndex).trim(); + for (; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, `${tagName} is not closed`); + let closeTagName = xmlData.substring(i + 2, closeIndex).trim(); if (closeTagName === tagName) { openTagCount--; if (openTagCount === 0) { return { - tagContent: xmlData.substring(startIndex, i3), + tagContent: xmlData.substring(startIndex, i), i: closeIndex }; } } - i3 = closeIndex; - } else if (xmlData[i3 + 1] === "?") { - const closeIndex = findClosingIndex(xmlData, "?>", i3 + 1, "StopNode is not closed."); - i3 = closeIndex; - } else if (xmlData.substr(i3 + 1, 3) === "!--") { - const closeIndex = findClosingIndex(xmlData, "-->", i3 + 3, "StopNode is not closed."); - i3 = closeIndex; - } else if (xmlData.substr(i3 + 1, 2) === "![") { - const closeIndex = findClosingIndex(xmlData, "]]>", i3, "StopNode is not closed.") - 2; - i3 = closeIndex; + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + const closeIndex = findClosingIndex(xmlData, "?>", i + 1, "StopNode is not closed."); + i = closeIndex; + } else if (xmlData.substr(i + 1, 3) === "!--") { + const closeIndex = findClosingIndex(xmlData, "-->", i + 3, "StopNode is not closed."); + i = closeIndex; + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2; + i = closeIndex; } else { - const tagData = readTagExp(xmlData, i3, ">"); + const tagData = readTagExp(xmlData, i, ">"); if (tagData) { const openTagName = tagData && tagData.tagName; if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== "/") { openTagCount++; } - i3 = tagData.closeIndex; + i = tagData.closeIndex; } } } @@ -25530,8 +25504,8 @@ var require_node2json = __commonJS({ function compress(arr, options, jPath) { let text; const compressedObj = {}; - for (let i3 = 0; i3 < arr.length; i3++) { - const tagObj = arr[i3]; + for (let i = 0; i < arr.length; i++) { + const tagObj = arr[i]; const property = propName(tagObj); let newJpath = ""; if (jPath === void 0) newJpath = property; @@ -25573,8 +25547,8 @@ var require_node2json = __commonJS({ } function propName(obj) { const keys = Object.keys(obj); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; if (key !== ":@") return key; } } @@ -25582,8 +25556,8 @@ var require_node2json = __commonJS({ if (attrMap) { const keys = Object.keys(attrMap); const len = keys.length; - for (let i3 = 0; i3 < len; i3++) { - const atrrName = keys[i3]; + for (let i = 0; i < len; i++) { + const atrrName = keys[i]; if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) { obj[atrrName] = [attrMap[atrrName]]; } else { @@ -25679,8 +25653,8 @@ var require_orderedJs2Xml = __commonJS({ function arrToStr(arr, options, jPath, indentation) { let xmlStr = ""; let isPreviousElementTag = false; - for (let i3 = 0; i3 < arr.length; i3++) { - const tagObj = arr[i3]; + for (let i = 0; i < arr.length; i++) { + const tagObj = arr[i]; const tagName = propName(tagObj); if (tagName === void 0) continue; let newJPath = ""; @@ -25747,8 +25721,8 @@ var require_orderedJs2Xml = __commonJS({ } function propName(obj) { const keys = Object.keys(obj); - for (let i3 = 0; i3 < keys.length; i3++) { - const key = keys[i3]; + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; if (!obj.hasOwnProperty(key)) continue; if (key !== ":@") return key; } @@ -25779,8 +25753,8 @@ var require_orderedJs2Xml = __commonJS({ } function replaceEntitiesValue(textValue, options) { if (textValue && textValue.length > 0 && options.processEntities) { - for (let i3 = 0; i3 < options.entities.length; i3++) { - const entity = options.entities[i3]; + for (let i = 0; i < options.entities.length; i++) { + const entity = options.entities[i]; textValue = textValue.replace(entity.regex, entity.val); } } @@ -25806,11 +25780,11 @@ var require_json2xml = __commonJS({ suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, - tagValueProcessor: function(key, a3) { - return a3; + tagValueProcessor: function(key, a) { + return a; }, - attributeValueProcessor: function(attrName, a3) { - return a3; + attributeValueProcessor: function(attrName, a) { + return a; }, preserveOrder: false, commentPropName: false, @@ -25899,8 +25873,8 @@ var require_json2xml = __commonJS({ const arrLen = jObj[key].length; let listTagVal = ""; let listTagAttr = ""; - for (let j3 = 0; j3 < arrLen; j3++) { - const item = jObj[key][j3]; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; if (typeof item === "undefined") { } else if (item === null) { if (key[0] === "?") val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar; @@ -25933,8 +25907,8 @@ var require_json2xml = __commonJS({ if (this.options.attributesGroupName && key === this.options.attributesGroupName) { const Ks = Object.keys(jObj[key]); const L = Ks.length; - for (let j3 = 0; j3 < L; j3++) { - attrStr += this.buildAttrPairStr(Ks[j3], "" + jObj[key][Ks[j3]]); + for (let j = 0; j < L; j++) { + attrStr += this.buildAttrPairStr(Ks[j], "" + jObj[key][Ks[j]]); } } else { val2 += this.processTextOrObjNode(jObj[key], key, level); @@ -26010,8 +25984,8 @@ var require_json2xml = __commonJS({ }; Builder.prototype.replaceEntitiesValue = function(textValue) { if (textValue && textValue.length > 0 && this.options.processEntities) { - for (let i3 = 0; i3 < this.options.entities.length; i3++) { - const entity = this.options.entities[i3]; + for (let i = 0; i < this.options.entities.length; i++) { + const entity = this.options.entities[i]; textValue = textValue.replace(entity.regex, entity.val); } } @@ -26062,20 +26036,20 @@ var init_parseXmlBody = __esm({ ignoreDeclaration: true, parseTagValue: false, trimValues: false, - tagValueProcessor: (_2, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0 + tagValueProcessor: (_, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0 }); parser.addEntity("#xD", "\r"); parser.addEntity("#10", "\n"); let parsedObj; try { parsedObj = parser.parse(encoded, true); - } catch (e3) { - if (e3 && typeof e3 === "object") { - Object.defineProperty(e3, "$responseBodyText", { + } catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { value: encoded }); } - throw e3; + throw e; } const textNodeName = "#text"; const key = Object.keys(parsedObj)[0]; @@ -26189,31 +26163,31 @@ __export(tslib_es6_exports, { __values: () => __values, default: () => tslib_es6_default }); -function __extends(d3, b3) { - if (typeof b3 !== "function" && b3 !== null) - throw new TypeError("Class extends value " + String(b3) + " is not a constructor or null"); - extendStatics(d3, b3); +function __extends(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); function __() { - this.constructor = d3; + this.constructor = d; } - d3.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __()); + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } -function __rest(s3, e3) { - var t3 = {}; - for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3) && e3.indexOf(p3) < 0) - t3[p3] = s3[p3]; - if (s3 != null && typeof Object.getOwnPropertySymbols === "function") - for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s3); i3 < p3.length; i3++) { - if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i3])) - t3[p3[i3]] = s3[p3[i3]]; - } - return t3; +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; } function __decorate(decorators, target, key, desc) { - var c3 = arguments.length, r3 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r3 = Reflect.decorate(decorators, target, key, desc); - else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d3 = decorators[i3]) r3 = (c3 < 3 ? d3(r3) : c3 > 3 ? d3(target, key, r3) : d3(target, key)) || r3; - return c3 > 3 && r3 && Object.defineProperty(target, key, r3), r3; + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function(target, key) { @@ -26221,32 +26195,32 @@ function __param(paramIndex, decorator) { }; } function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f3) { - if (f3 !== void 0 && typeof f3 !== "function") throw new TypeError("Function expected"); - return f3; + function accept(f) { + if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); + return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _2, done = false; - for (var i3 = decorators.length - 1; i3 >= 0; i3--) { + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; - for (var p3 in contextIn) context[p3] = p3 === "access" ? {} : contextIn[p3]; - for (var p3 in contextIn.access) context.access[p3] = contextIn.access[p3]; - context.addInitializer = function(f3) { + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function(f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f3 || null)); + extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i3])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_2 = accept(result.get)) descriptor.get = _2; - if (_2 = accept(result.set)) descriptor.set = _2; - if (_2 = accept(result.init)) initializers.unshift(_2); - } else if (_2 = accept(result)) { - if (kind === "field") initializers.unshift(_2); - else descriptor[key] = _2; + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); @@ -26254,17 +26228,17 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e } function __runInitializers(thisArg, initializers, value) { var useValue = arguments.length > 2; - for (var i3 = 0; i3 < initializers.length; i3++) { - value = useValue ? initializers[i3].call(thisArg, value) : initializers[i3].call(thisArg); + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; } -function __propKey(x3) { - return typeof x3 === "symbol" ? x3 : "".concat(x3); +function __propKey(x) { + return typeof x === "symbol" ? x : "".concat(x); } -function __setFunctionName(f3, name, prefix) { +function __setFunctionName(f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f3, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); @@ -26279,15 +26253,15 @@ function __awaiter(thisArg, _arguments, P, generator) { function fulfilled(value) { try { step(generator.next(value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function rejected(value) { try { step(generator["throw"](value)); - } catch (e3) { - reject(e3); + } catch (e) { + reject(e); } } function step(result) { @@ -26297,151 +26271,151 @@ function __awaiter(thisArg, _arguments, P, generator) { }); } function __generator(thisArg, body) { - var _2 = { label: 0, sent: function() { - if (t3[0] & 1) throw t3[1]; - return t3[1]; - }, trys: [], ops: [] }, f3, y2, t3, g3; - return g3 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g3[Symbol.iterator] = function() { + var _ = { label: 0, sent: function() { + if (t[0] & 1) throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; - }), g3; - function verb(n3) { - return function(v6) { - return step([n3, v6]); + }), g; + function verb(n) { + return function(v) { + return step([n, v]); }; } function step(op) { - if (f3) throw new TypeError("Generator is already executing."); - while (g3 && (g3 = 0, op[0] && (_2 = 0)), _2) try { - if (f3 = 1, y2 && (t3 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t3 = y2["return"]) && t3.call(y2), 0) : y2.next) && !(t3 = t3.call(y2, op[1])).done) return t3; - if (y2 = 0, t3) op = [op[0] & 2, t3.value]; + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: - t3 = op; + t = op; break; case 4: - _2.label++; + _.label++; return { value: op[1], done: false }; case 5: - _2.label++; - y2 = op[1]; + _.label++; + y = op[1]; op = [0]; continue; case 7: - op = _2.ops.pop(); - _2.trys.pop(); + op = _.ops.pop(); + _.trys.pop(); continue; default: - if (!(t3 = _2.trys, t3 = t3.length > 0 && t3[t3.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _2 = 0; + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; continue; } - if (op[0] === 3 && (!t3 || op[1] > t3[0] && op[1] < t3[3])) { - _2.label = op[1]; + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; break; } - if (op[0] === 6 && _2.label < t3[1]) { - _2.label = t3[1]; - t3 = op; + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; break; } - if (t3 && _2.label < t3[2]) { - _2.label = t3[2]; - _2.ops.push(op); + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); break; } - if (t3[2]) _2.ops.pop(); - _2.trys.pop(); + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; } - op = body.call(thisArg, _2); - } catch (e3) { - op = [6, e3]; - y2 = 0; + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; } finally { - f3 = t3 = 0; + f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } -function __exportStar(m3, o3) { - for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(o3, p3)) __createBinding(o3, m3, p3); +function __exportStar(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); } -function __values(o3) { - var s3 = typeof Symbol === "function" && Symbol.iterator, m3 = s3 && o3[s3], i3 = 0; - if (m3) return m3.call(o3); - if (o3 && typeof o3.length === "number") return { +function __values(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { next: function() { - if (o3 && i3 >= o3.length) o3 = void 0; - return { value: o3 && o3[i3++], done: !o3 }; + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; } }; - throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } -function __read(o3, n3) { - var m3 = typeof Symbol === "function" && o3[Symbol.iterator]; - if (!m3) return o3; - var i3 = m3.call(o3), r3, ar = [], e3; +function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; try { - while ((n3 === void 0 || n3-- > 0) && !(r3 = i3.next()).done) ar.push(r3.value); + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error2) { - e3 = { error: error2 }; + e = { error: error2 }; } finally { try { - if (r3 && !r3.done && (m3 = i3["return"])) m3.call(i3); + if (r && !r.done && (m = i["return"])) m.call(i); } finally { - if (e3) throw e3.error; + if (e) throw e.error; } } return ar; } function __spread() { - for (var ar = [], i3 = 0; i3 < arguments.length; i3++) - ar = ar.concat(__read(arguments[i3])); + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); return ar; } function __spreadArrays() { - for (var s3 = 0, i3 = 0, il = arguments.length; i3 < il; i3++) s3 += arguments[i3].length; - for (var r3 = Array(s3), k3 = 0, i3 = 0; i3 < il; i3++) - for (var a3 = arguments[i3], j3 = 0, jl = a3.length; j3 < jl; j3++, k3++) - r3[k3] = a3[j3]; - return r3; + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; } function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i3 = 0, l3 = from.length, ar; i3 < l3; i3++) { - if (ar || !(i3 in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i3); - ar[i3] = from[i3]; + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); } -function __await(v6) { - return this instanceof __await ? (this.v = v6, this) : new __await(v6); +function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g3 = generator.apply(thisArg, _arguments || []), i3, q3 = []; - return i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { return this; - }, i3; - function verb(n3) { - if (g3[n3]) i3[n3] = function(v6) { - return new Promise(function(a3, b3) { - q3.push([n3, v6, a3, b3]) > 1 || resume(n3, v6); + }, i; + function verb(n) { + if (g[n]) i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n3, v6) { + function resume(n, v) { try { - step(g3[n3](v6)); - } catch (e3) { - settle(q3[0][3], e3); + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); } } - function step(r3) { - r3.value instanceof __await ? Promise.resolve(r3.value.v).then(fulfill, reject) : settle(q3[0][2], r3); + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); @@ -26449,39 +26423,39 @@ function __asyncGenerator(thisArg, _arguments, generator) { function reject(value) { resume("throw", value); } - function settle(f3, v6) { - if (f3(v6), q3.shift(), q3.length) resume(q3[0][0], q3[0][1]); + function settle(f, v) { + if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } -function __asyncDelegator(o3) { - var i3, p3; - return i3 = {}, verb("next"), verb("throw", function(e3) { - throw e3; - }), verb("return"), i3[Symbol.iterator] = function() { +function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { return this; - }, i3; - function verb(n3, f3) { - i3[n3] = o3[n3] ? function(v6) { - return (p3 = !p3) ? { value: __await(o3[n3](v6)), done: false } : f3 ? f3(v6) : v6; - } : f3; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; + } : f; } } -function __asyncValues(o3) { +function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m3 = o3[Symbol.asyncIterator], i3; - return m3 ? m3.call(o3) : (o3 = typeof __values === "function" ? __values(o3) : o3[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { return this; - }, i3); - function verb(n3) { - i3[n3] = o3[n3] && function(v6) { + }, i); + function verb(n) { + i[n] = o[n] && function(v) { return new Promise(function(resolve, reject) { - v6 = o3[n3](v6), settle(resolve, reject, v6.done, v6.value); + v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d3, v6) { - Promise.resolve(v6).then(function(v7) { - resolve({ value: v7, done: d3 }); + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); }, reject); } } @@ -26497,7 +26471,7 @@ function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); } __setModuleDefault(result, mod); return result; @@ -26505,16 +26479,16 @@ function __importStar(mod) { function __importDefault(mod) { return mod && mod.__esModule ? mod : { default: mod }; } -function __classPrivateFieldGet(receiver, state2, kind, f3) { - if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state2.get(receiver); +function __classPrivateFieldGet(receiver, state2, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state2.get(receiver); } -function __classPrivateFieldSet(receiver, state2, value, kind, f3) { +function __classPrivateFieldSet(receiver, state2, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state2 === "function" ? receiver !== state2 || !f3 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f3.call(receiver, value) : f3 ? f3.value = value : state2.set(receiver, value), value; + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state2.set(receiver, value), value; } function __classPrivateFieldIn(state2, receiver) { if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object"); @@ -26540,8 +26514,8 @@ function __addDisposableResource(env, value, async) { return value; } function __disposeResources(env) { - function fail(e3) { - env.error = env.hasError ? new _SuppressedError(e3, env.error, "An error was suppressed during disposal.") : e3; + function fail(e) { + env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } function next() { @@ -26549,12 +26523,12 @@ function __disposeResources(env) { var rec = env.stack.pop(); try { var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) return Promise.resolve(result).then(next, function(e3) { - fail(e3); + if (rec.async) return Promise.resolve(result).then(next, function(e) { + fail(e); return next(); }); - } catch (e3) { - fail(e3); + } catch (e) { + fail(e); } } if (env.hasError) throw env.error; @@ -26564,45 +26538,45 @@ function __disposeResources(env) { var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default; var init_tslib_es6 = __esm({ "../../node_modules/tslib/tslib.es6.mjs"() { - extendStatics = function(d3, b3) { - extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d4, b4) { - d4.__proto__ = b4; - } || function(d4, b4) { - for (var p3 in b4) if (Object.prototype.hasOwnProperty.call(b4, p3)) d4[p3] = b4[p3]; + extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { + d2.__proto__ = b2; + } || function(d2, b2) { + for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p]; }; - return extendStatics(d3, b3); + return extendStatics(d, b); }; __assign = function() { - __assign = Object.assign || function __assign2(t3) { - for (var s3, i3 = 1, n3 = arguments.length; i3 < n3; i3++) { - s3 = arguments[i3]; - for (var p3 in s3) if (Object.prototype.hasOwnProperty.call(s3, p3)) t3[p3] = s3[p3]; + __assign = Object.assign || function __assign2(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } - return t3; + return t; }; return __assign.apply(this, arguments); }; - __createBinding = Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }; - __setModuleDefault = Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }; _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) { - var e3 = new Error(message); - return e3.name = "SuppressedError", e3.error = error2, e3.suppressed = suppressed, e3; + var e = new Error(message); + return e.name = "SuppressedError", e.error = error2, e.suppressed = suppressed, e; }; tslib_es6_default = { __extends, @@ -26733,26 +26707,26 @@ var require_dist_cjs22 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - fromUtf8: () => fromUtf83, + fromUtf8: () => fromUtf8, toUint8Array: () => toUint8Array, - toUtf8: () => toUtf83 + toUtf8: () => toUtf8 }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs21(); - var fromUtf83 = /* @__PURE__ */ __name((input) => { + var fromUtf8 = /* @__PURE__ */ __name((input) => { const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); }, "fromUtf8"); var toUint8Array = /* @__PURE__ */ __name((data) => { if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); }, "toUint8Array"); - var toUtf83 = /* @__PURE__ */ __name((input) => { + var toUtf8 = /* @__PURE__ */ __name((input) => { if (typeof input === "string") { return input; } @@ -26771,14 +26745,14 @@ var require_convertToBuffer = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.convertToBuffer = void 0; var util_utf8_1 = require_dist_cjs22(); - var fromUtf83 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { + var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { return Buffer.from(input, "utf8"); } : util_utf8_1.fromUtf8; function convertToBuffer(data) { if (data instanceof Uint8Array) return data; if (typeof data === "string") { - return fromUtf83(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); @@ -26892,7 +26866,7 @@ var require_aws_crc32c = __commonJS({ }; AwsCrc32c2.prototype.digest = function() { return tslib_1.__awaiter(this, void 0, void 0, function() { - return tslib_1.__generator(this, function(_a2) { + return tslib_1.__generator(this, function(_a) { return [2, (0, util_1.numToUint8)(this.crc32c.digest())]; }); }); @@ -26926,7 +26900,7 @@ var require_main3 = __commonJS({ this.checksum = 4294967295; } Crc32c2.prototype.update = function(data) { - var e_1, _a2; + var e_1, _a; try { for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { var byte = data_1_1.value; @@ -26936,7 +26910,7 @@ var require_main3 = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1); + if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1); } finally { if (e_1) throw e_1.error; } @@ -27238,7 +27212,7 @@ var require_aws_crc32 = __commonJS({ }; AwsCrc322.prototype.digest = function() { return tslib_1.__awaiter(this, void 0, void 0, function() { - return tslib_1.__generator(this, function(_a2) { + return tslib_1.__generator(this, function(_a) { return [2, (0, util_1.numToUint8)(this.crc32.digest())]; }); }); @@ -27272,7 +27246,7 @@ var require_main4 = __commonJS({ this.checksum = 4294967295; } Crc322.prototype.update = function(data) { - var e_1, _a2; + var e_1, _a; try { for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { var byte = data_1_1.value; @@ -27282,7 +27256,7 @@ var require_main4 = __commonJS({ e_1 = { error: e_1_1 }; } finally { try { - if (data_1_1 && !data_1_1.done && (_a2 = data_1.return)) _a2.call(data_1); + if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1); } finally { if (e_1) throw e_1.error; } @@ -27573,7 +27547,9 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS({ var util_1 = require_main2(); var zlib = tslib_1.__importStar(require("zlib")); var NodeCrc32 = class { - checksum = 0; + constructor() { + this.checksum = 0; + } update(data) { this.checksum = zlib.crc32(data, this.checksum); } @@ -27648,7 +27624,7 @@ var require_dist_cjs23 = __commonJS({ NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: () => NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, RequestChecksumCalculation: () => RequestChecksumCalculation, ResponseChecksumValidation: () => ResponseChecksumValidation, - crc64NvmeCrtContainer: () => crc64NvmeCrtContainer, + S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM: () => S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM, flexibleChecksumsMiddleware: () => flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions: () => flexibleChecksumsMiddlewareOptions, getFlexibleChecksumsPlugin: () => getFlexibleChecksumsPlugin, @@ -27693,7 +27669,6 @@ var require_dist_cjs23 = __commonJS({ ChecksumAlgorithm3["MD5"] = "MD5"; ChecksumAlgorithm3["CRC32"] = "CRC32"; ChecksumAlgorithm3["CRC32C"] = "CRC32C"; - ChecksumAlgorithm3["CRC64NVME"] = "CRC64NVME"; ChecksumAlgorithm3["SHA1"] = "SHA1"; ChecksumAlgorithm3["SHA256"] = "SHA256"; return ChecksumAlgorithm3; @@ -27703,7 +27678,8 @@ var require_dist_cjs23 = __commonJS({ ChecksumLocation2["TRAILER"] = "trailer"; return ChecksumLocation2; })(ChecksumLocation || {}); - var DEFAULT_CHECKSUM_ALGORITHM = "CRC32"; + var DEFAULT_CHECKSUM_ALGORITHM = "MD5"; + var S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM = "CRC32"; var stringUnionSelector = /* @__PURE__ */ __name((obj, key, union, type) => { if (!(key in obj)) return void 0; @@ -27751,15 +27727,11 @@ var require_dist_cjs23 = __commonJS({ ), default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION }; - var crc64NvmeCrtContainer = { - CrtCrc64Nvme: null - }; - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var import_protocol_http11 = require_dist_cjs2(); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_protocol_http8 = require_dist_cjs2(); var CLIENT_SUPPORTED_ALGORITHMS = [ "CRC32", "CRC32C", - "CRC64NVME", "SHA1", "SHA256" /* SHA256 */ @@ -27768,16 +27740,13 @@ var require_dist_cjs23 = __commonJS({ "SHA256", "SHA1", "CRC32", - "CRC32C", - "CRC64NVME" - /* CRC64NVME */ + "CRC32C" + /* CRC32C */ ]; - var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => { - if (!requestAlgorithmMember) { - return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired ? DEFAULT_CHECKSUM_ALGORITHM : void 0; - } - if (!input[requestAlgorithmMember]) { - return void 0; + var getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input, { requestChecksumRequired, requestAlgorithmMember }, isS3Express) => { + const defaultAlgorithm = isS3Express ? S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM : DEFAULT_CHECKSUM_ALGORITHM; + if (!requestAlgorithmMember || !input[requestAlgorithmMember]) { + return requestChecksumRequired ? defaultAlgorithm : void 0; } const checksumAlgorithm = input[requestAlgorithmMember]; if (!CLIENT_SUPPORTED_ALGORITHMS.includes(checksumAlgorithm)) { @@ -27797,48 +27766,36 @@ var require_dist_cjs23 = __commonJS({ } return false; }, "hasHeader"); - var hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => { - const soughtHeaderPrefix = headerPrefix.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) { - return true; - } - } - return false; - }, "hasHeaderWithPrefix"); var import_is_array_buffer = require_dist_cjs6(); var isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !(0, import_is_array_buffer.isArrayBuffer)(body), "isStreaming"); var import_crc32c = require_main3(); var import_getCrc32ChecksumAlgorithmFunction = require_getCrc32ChecksumAlgorithmFunction(); - var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => { - switch (checksumAlgorithm) { - case "MD5": - return config.md5; - case "CRC32": - return (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)(); - case "CRC32C": - return import_crc32c.AwsCrc32c; - case "CRC64NVME": - if (typeof crc64NvmeCrtContainer.CrtCrc64Nvme !== "function") { - throw new Error( - `Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly. -You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";]. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt` - ); - } - return crc64NvmeCrtContainer.CrtCrc64Nvme; - case "SHA1": - return config.sha1; - case "SHA256": - return config.sha256; - default: - throw new Error(`Unsupported checksum algorithm: ${checksumAlgorithm}`); - } - }, "selectChecksumAlgorithmFunction"); - var import_util_utf83 = require_dist_cjs8(); + var selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config) => ({ + [ + "MD5" + /* MD5 */ + ]: config.md5, + [ + "CRC32" + /* CRC32 */ + ]: (0, import_getCrc32ChecksumAlgorithmFunction.getCrc32ChecksumAlgorithmFunction)(), + [ + "CRC32C" + /* CRC32C */ + ]: import_crc32c.AwsCrc32c, + [ + "SHA1" + /* SHA1 */ + ]: config.sha1, + [ + "SHA256" + /* SHA256 */ + ]: config.sha256 + })[checksumAlgorithm], "selectChecksumAlgorithmFunction"); + var import_util_utf8 = require_dist_cjs8(); var stringHasher = /* @__PURE__ */ __name((checksumAlgorithmFn, body) => { const hash = new checksumAlgorithmFn(); - hash.update((0, import_util_utf83.toUint8Array)(body || "")); + hash.update((0, import_util_utf8.toUint8Array)(body || "")); return hash.digest(); }, "stringHasher"); var flexibleChecksumsMiddlewareOptions = { @@ -27848,50 +27805,36 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona override: true }; var flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { - return next(args); - } - if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } const { request, input } = args; const { body: requestBody, headers } = request; const { base64Encoder, streamHasher } = config; const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; - const requestChecksumCalculation = await config.requestChecksumCalculation(); - const requestAlgorithmMemberName = requestAlgorithmMember?.name; - const requestAlgorithmMemberHttpHeader = requestAlgorithmMember?.httpHeader; - if (requestAlgorithmMemberName && !input[requestAlgorithmMemberName]) { - if (requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired) { - input[requestAlgorithmMemberName] = DEFAULT_CHECKSUM_ALGORITHM; - if (requestAlgorithmMemberHttpHeader) { - headers[requestAlgorithmMemberHttpHeader] = DEFAULT_CHECKSUM_ALGORITHM; - } - } - } - const checksumAlgorithm = getChecksumAlgorithmForRequest(input, { - requestChecksumRequired, - requestAlgorithmMember: requestAlgorithmMember?.name, - requestChecksumCalculation - }); + const checksumAlgorithm = getChecksumAlgorithmForRequest( + input, + { + requestChecksumRequired, + requestAlgorithmMember + }, + !!context.isS3ExpressBucket + ); let updatedBody = requestBody; let updatedHeaders = headers; if (checksumAlgorithm) { switch (checksumAlgorithm) { case "CRC32": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U"); break; case "CRC32C": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V"); - break; - case "CRC64NVME": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V"); break; case "SHA1": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X"); break; case "SHA256": - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y"); + (0, import_core3.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y"); break; } const checksumLocationName = getChecksumLocationName(checksumAlgorithm); @@ -27932,41 +27875,6 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona }); return result; }, "flexibleChecksumsMiddleware"); - var flexibleChecksumsInputMiddlewareOptions = { - name: "flexibleChecksumsInputMiddleware", - toMiddleware: "serializerMiddleware", - relation: "before", - tags: ["BODY_CHECKSUM"], - override: true - }; - var flexibleChecksumsInputMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - const input = args.input; - const { requestValidationModeMember } = middlewareConfig; - const requestChecksumCalculation = await config.requestChecksumCalculation(); - const responseChecksumValidation = await config.responseChecksumValidation(); - switch (requestChecksumCalculation) { - case RequestChecksumCalculation.WHEN_REQUIRED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a"); - break; - case RequestChecksumCalculation.WHEN_SUPPORTED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z"); - break; - } - switch (responseChecksumValidation) { - case ResponseChecksumValidation.WHEN_REQUIRED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c"); - break; - case ResponseChecksumValidation.WHEN_SUPPORTED: - (0, import_core17.setFeature)(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b"); - break; - } - if (requestValidationModeMember && !input[requestValidationModeMember]) { - if (responseChecksumValidation === ResponseChecksumValidation.WHEN_SUPPORTED) { - input[requestValidationModeMember] = "ENABLED"; - } - } - return next(args); - }, "flexibleChecksumsInputMiddleware"); var getChecksumAlgorithmListForResponse = /* @__PURE__ */ __name((responseAlgorithms = []) => { const validChecksumAlgorithms = []; for (const algorithm of PRIORITY_ORDER_ALGORITHMS) { @@ -28030,7 +27938,7 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona override: true }; var flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config, middlewareConfig) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } const input = args.input; @@ -28066,23 +27974,19 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona var getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config, middlewareConfig) => ({ applyToStack: (clientStack) => { clientStack.add(flexibleChecksumsMiddleware(config, middlewareConfig), flexibleChecksumsMiddlewareOptions); - clientStack.addRelativeTo( - flexibleChecksumsInputMiddleware(config, middlewareConfig), - flexibleChecksumsInputMiddlewareOptions - ); clientStack.addRelativeTo( flexibleChecksumsResponseMiddleware(config, middlewareConfig), flexibleChecksumsResponseMiddlewareOptions ); } }), "getFlexibleChecksumsPlugin"); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var resolveFlexibleChecksumsConfig = /* @__PURE__ */ __name((input) => ({ ...input, - requestChecksumCalculation: (0, import_util_middleware5.normalizeProvider)( + requestChecksumCalculation: (0, import_util_middleware3.normalizeProvider)( input.requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION ), - responseChecksumValidation: (0, import_util_middleware5.normalizeProvider)( + responseChecksumValidation: (0, import_util_middleware3.normalizeProvider)( input.responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION ) }), "resolveFlexibleChecksumsConfig"); @@ -28113,19 +28017,19 @@ var require_dist_cjs24 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getHostHeaderPlugin: () => getHostHeaderPlugin3, + getHostHeaderPlugin: () => getHostHeaderPlugin, hostHeaderMiddleware: () => hostHeaderMiddleware, hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions, - resolveHostHeaderConfig: () => resolveHostHeaderConfig3 + resolveHostHeaderConfig: () => resolveHostHeaderConfig }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); - function resolveHostHeaderConfig3(input) { + var import_protocol_http8 = require_dist_cjs2(); + function resolveHostHeaderConfig(input) { return input; } - __name(resolveHostHeaderConfig3, "resolveHostHeaderConfig"); + __name(resolveHostHeaderConfig, "resolveHostHeaderConfig"); var hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) return next(args); const { request } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; @@ -28147,7 +28051,7 @@ var require_dist_cjs24 = __commonJS({ tags: ["HOST"], override: true }; - var getHostHeaderPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getHostHeaderPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); } @@ -28179,12 +28083,13 @@ var require_dist_cjs25 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - getLoggerPlugin: () => getLoggerPlugin3, + getLoggerPlugin: () => getLoggerPlugin, loggerMiddleware: () => loggerMiddleware, loggerMiddlewareOptions: () => loggerMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => { + var _a, _b; try { const response = await next(args); const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; @@ -28192,7 +28097,7 @@ var require_dist_cjs25 = __commonJS({ const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; - logger?.info?.({ + (_a = logger == null ? void 0 : logger.info) == null ? void 0 : _a.call(logger, { clientName, commandName, input: inputFilterSensitiveLog(args.input), @@ -28204,7 +28109,7 @@ var require_dist_cjs25 = __commonJS({ const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; - logger?.error?.({ + (_b = logger == null ? void 0 : logger.error) == null ? void 0 : _b.call(logger, { clientName, commandName, input: inputFilterSensitiveLog(args.input), @@ -28220,7 +28125,7 @@ var require_dist_cjs25 = __commonJS({ step: "initialize", override: true }; - var getLoggerPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getLoggerPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); } @@ -28253,17 +28158,17 @@ var require_dist_cjs26 = __commonJS({ var src_exports = {}; __export2(src_exports, { addRecursionDetectionMiddlewareOptions: () => addRecursionDetectionMiddlewareOptions, - getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3, + getRecursionDetectionPlugin: () => getRecursionDetectionPlugin, recursionDetectionMiddleware: () => recursionDetectionMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; var recursionDetectionMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { const { request } = args; - if (!import_protocol_http11.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + if (!import_protocol_http8.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { return next(args); } const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; @@ -28284,7 +28189,7 @@ var require_dist_cjs26 = __commonJS({ override: true, priority: "low" }; - var getRecursionDetectionPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions); } @@ -28462,16 +28367,17 @@ var require_dist_cjs29 = __commonJS({ validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); - var import_smithy_client25 = require_dist_cjs19(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); var CONTENT_LENGTH_HEADER = "content-length"; function checkContentLengthHeader() { return (next, context) => async (args) => { + var _a; const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { if (!(CONTENT_LENGTH_HEADER in request.headers)) { const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`; - if (typeof context?.logger?.warn === "function" && !(context.logger instanceof import_smithy_client25.NoOpLogger)) { + if (typeof ((_a = context == null ? void 0 : context.logger) == null ? void 0 : _a.warn) === "function" && !(context.logger instanceof import_smithy_client4.NoOpLogger)) { context.logger.warn(message); } else { console.warn(message); @@ -28521,9 +28427,9 @@ var require_dist_cjs29 = __commonJS({ } } return result; - } catch (e3) { + } catch (e) { unlock(); - throw e3; + throw e; } }; }, "regionRedirectEndpointMiddleware"); @@ -28536,18 +28442,19 @@ var require_dist_cjs29 = __commonJS({ }; function regionRedirectMiddleware(clientConfig) { return (next, context) => async (args) => { + var _a, _b, _c; try { return await next(args); } catch (err) { if (clientConfig.followRegionRedirects) { - if (err?.$metadata?.httpStatusCode === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well - err?.$metadata?.httpStatusCode === 400 && err?.name === "IllegalLocationConstraintException") { + if (((_a = err == null ? void 0 : err.$metadata) == null ? void 0 : _a.httpStatusCode) === 301 || // err.name === "PermanentRedirect" && --> removing the error name check, as that allows for HEAD operations (which have the 301 status code, but not the same error name) to be covered for region redirection as well + ((_b = err == null ? void 0 : err.$metadata) == null ? void 0 : _b.httpStatusCode) === 400 && (err == null ? void 0 : err.name) === "IllegalLocationConstraintException") { try { const actualRegion = err.$response.headers["x-amz-bucket-region"]; - context.logger?.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`); + (_c = context.logger) == null ? void 0 : _c.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`); context.__s3RegionRedirect = actualRegion; - } catch (e3) { - throw new Error("Region redirect failed: " + e3); + } catch (e) { + throw new Error("Region redirect failed: " + e); } return next(args); } @@ -28571,16 +28478,17 @@ var require_dist_cjs29 = __commonJS({ }), "getRegionRedirectMiddlewarePlugin"); var s3ExpiresMiddleware = /* @__PURE__ */ __name((config) => { return (next, context) => async (args) => { + var _a; const result = await next(args); const { response } = result; - if (import_protocol_http11.HttpResponse.isInstance(response)) { + if (import_protocol_http8.HttpResponse.isInstance(response)) { if (response.headers.expires) { response.headers.expiresstring = response.headers.expires; try { - (0, import_smithy_client25.parseRfc7231DateTime)(response.headers.expires); - } catch (e3) { - context.logger?.warn( - `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e3}` + (0, import_smithy_client4.parseRfc7231DateTime)(response.headers.expires); + } catch (e) { + (_a = context.logger) == null ? void 0 : _a.warn( + `AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e}` ); delete response.headers.expires; } @@ -28601,15 +28509,11 @@ var require_dist_cjs29 = __commonJS({ clientStack.addRelativeTo(s3ExpiresMiddleware(clientConfig), s3ExpiresMiddlewareOptions); } }), "getS3ExpiresMiddlewarePlugin"); - var S3ExpressIdentityCache = class _S3ExpressIdentityCache { + var _S3ExpressIdentityCache = class _S3ExpressIdentityCache2 { constructor(data = {}) { this.data = data; + this.lastPurgeTime = Date.now(); } - static { - __name(this, "S3ExpressIdentityCache"); - } - lastPurgeTime = Date.now(); - static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4; get(key) { const entry = this.data[key]; if (!entry) { @@ -28626,7 +28530,7 @@ var require_dist_cjs29 = __commonJS({ } async purgeExpired() { const now = Date.now(); - if (this.lastPurgeTime + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) { + if (this.lastPurgeTime + _S3ExpressIdentityCache2.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) { return; } for (const key in this.data) { @@ -28642,7 +28546,10 @@ var require_dist_cjs29 = __commonJS({ } } }; - var S3ExpressIdentityCacheEntry = class { + __name(_S3ExpressIdentityCache, "S3ExpressIdentityCache"); + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4; + var S3ExpressIdentityCache = _S3ExpressIdentityCache; + var _S3ExpressIdentityCacheEntry = class _S3ExpressIdentityCacheEntry { /** * @param identity - stored identity. * @param accessed - timestamp of last access in epoch ms. @@ -28653,51 +28560,48 @@ var require_dist_cjs29 = __commonJS({ this.isRefreshing = isRefreshing; this.accessed = accessed; } - static { - __name(this, "S3ExpressIdentityCacheEntry"); - } get identity() { this.accessed = Date.now(); return this._identity; } }; - var S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl { - constructor(createSessionFn, cache3 = new S3ExpressIdentityCache()) { + __name(_S3ExpressIdentityCacheEntry, "S3ExpressIdentityCacheEntry"); + var S3ExpressIdentityCacheEntry = _S3ExpressIdentityCacheEntry; + var _S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl2 { + constructor(createSessionFn, cache = new S3ExpressIdentityCache()) { this.createSessionFn = createSessionFn; - this.cache = cache3; + this.cache = cache; } - static { - __name(this, "S3ExpressIdentityProviderImpl"); - } - static REFRESH_WINDOW_MS = 6e4; async getS3ExpressIdentity(awsIdentity, identityProperties) { const key = identityProperties.Bucket; - const { cache: cache3 } = this; - const entry = cache3.get(key); + const { cache } = this; + const entry = cache.get(key); if (entry) { return entry.identity.then((identity) => { - const isExpired = (identity.expiration?.getTime() ?? 0) < Date.now(); + var _a, _b; + const isExpired = (((_a = identity.expiration) == null ? void 0 : _a.getTime()) ?? 0) < Date.now(); if (isExpired) { - return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; + return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } - const isExpiringSoon = (identity.expiration?.getTime() ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS; + const isExpiringSoon = (((_b = identity.expiration) == null ? void 0 : _b.getTime()) ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl2.REFRESH_WINDOW_MS; if (isExpiringSoon && !entry.isRefreshing) { entry.isRefreshing = true; this.getIdentity(key).then((id) => { - cache3.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id))); + cache.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id))); }); } return identity; }); } - return cache3.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; + return cache.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } async getIdentity(key) { + var _a, _b; await this.cache.purgeExpired().catch((error2) => { console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error2); }); const session = await this.createSessionFn(key); - if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) { + if (!((_a = session.Credentials) == null ? void 0 : _a.AccessKeyId) || !((_b = session.Credentials) == null ? void 0 : _b.SecretAccessKey)) { throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey."); } const identity = { @@ -28709,6 +28613,9 @@ var require_dist_cjs29 = __commonJS({ return identity; } }; + __name(_S3ExpressIdentityProviderImpl, "S3ExpressIdentityProviderImpl"); + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS = 6e4; + var S3ExpressIdentityProviderImpl = _S3ExpressIdentityProviderImpl; var import_signature_v42 = require_dist_cjs17(); var import_util_config_provider = require_dist_cjs27(); var S3_EXPRESS_BUCKET_TYPE = "Directory"; @@ -28723,10 +28630,7 @@ var require_dist_cjs29 = __commonJS({ configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, import_util_config_provider.SelectorType.CONFIG), default: false }; - var SignatureV4S3Express = class extends import_signature_v42.SignatureV4 { - static { - __name(this, "SignatureV4S3Express"); - } + var _SignatureV4S3Express = class _SignatureV4S3Express extends import_signature_v42.SignatureV4 { /** * Signs with alternate provided credentials instead of those provided in the * constructor. @@ -28755,6 +28659,8 @@ var require_dist_cjs29 = __commonJS({ return this.presign(requestToSign, options); } }; + __name(_SignatureV4S3Express, "SignatureV4S3Express"); + var SignatureV4S3Express = _SignatureV4S3Express; function getCredentialsWithoutSessionToken(credentials) { const credentialsWithoutSessionToken = { accessKeyId: credentials.accessKeyId, @@ -28777,15 +28683,16 @@ var require_dist_cjs29 = __commonJS({ privateAccess.credentialProvider = overrideCredentialsProviderOnce; } __name(setSingleOverride, "setSingleOverride"); - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var s3ExpressMiddleware = /* @__PURE__ */ __name((options) => { return (next, context) => async (args) => { + var _a, _b, _c, _d, _e; if (context.endpointV2) { const endpoint = context.endpointV2; - const isS3ExpressAuth = endpoint.properties?.authSchemes?.[0]?.name === S3_EXPRESS_AUTH_SCHEME; - const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND || endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE; + const isS3ExpressAuth = ((_c = (_b = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes) == null ? void 0 : _b[0]) == null ? void 0 : _c.name) === S3_EXPRESS_AUTH_SCHEME; + const isS3ExpressBucket = ((_d = endpoint.properties) == null ? void 0 : _d.backend) === S3_EXPRESS_BACKEND || ((_e = endpoint.properties) == null ? void 0 : _e.bucketType) === S3_EXPRESS_BUCKET_TYPE; if (isS3ExpressBucket) { - (0, import_core17.setFeature)(context, "S3_EXPRESS_BUCKET", "J"); + (0, import_core3.setFeature)(context, "S3_EXPRESS_BUCKET", "J"); context.isS3ExpressBucket = true; } if (isS3ExpressAuth) { @@ -28798,7 +28705,7 @@ var require_dist_cjs29 = __commonJS({ } ); context.s3ExpressIdentity = s3ExpressIdentity; - if (import_protocol_http11.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { + if (import_protocol_http8.HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken; } } @@ -28819,7 +28726,7 @@ var require_dist_cjs29 = __commonJS({ } }), "getS3ExpressPlugin"); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var signS3Express = /* @__PURE__ */ __name(async (s3ExpressIdentity, signingOptions, request, sigV4MultiRegionSigner) => { const signedRequest = await sigV4MultiRegionSigner.signWithCredentials(request, s3ExpressIdentity, {}); if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) { @@ -28834,10 +28741,10 @@ var require_dist_cjs29 = __commonJS({ }, "defaultSuccessHandler"); var s3ExpressHttpSigningMiddlewareOptions = import_core22.httpSigningMiddlewareOptions; var s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { - if (!import_protocol_http11.HttpRequest.isInstance(args.request)) { + if (!import_protocol_http8.HttpRequest.isInstance(args.request)) { return next(args); } - const smithyContext = (0, import_util_middleware5.getSmithyContext)(context); + const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); const scheme = smithyContext.selectedHttpAuthScheme; if (!scheme) { throw new Error(`No HttpAuthScheme was selected: unable to sign request`); @@ -28904,14 +28811,14 @@ var require_dist_cjs29 = __commonJS({ var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => { const result = await next(args); const { response } = result; - if (!import_protocol_http11.HttpResponse.isInstance(response)) { + if (!import_protocol_http8.HttpResponse.isInstance(response)) { return result; } const { statusCode, body: sourceBody } = response; if (statusCode < 200 || statusCode >= 300) { return result; } - const isSplittableStream = typeof sourceBody?.stream === "function" || typeof sourceBody?.pipe === "function" || typeof sourceBody?.tee === "function"; + const isSplittableStream = typeof (sourceBody == null ? void 0 : sourceBody.stream) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.pipe) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.tee) === "function"; if (!isSplittableStream) { return result; } @@ -28921,12 +28828,12 @@ var require_dist_cjs29 = __commonJS({ [bodyCopy, body] = await (0, import_util_stream2.splitStream)(sourceBody); } response.body = body; - const bodyBytes = await collectBody6(bodyCopy, { + const bodyBytes = await collectBody4(bodyCopy, { streamCollector: async (stream) => { return (0, import_util_stream2.headStream)(stream, MAX_BYTES_TO_INSPECT); } }); - if (typeof bodyCopy?.destroy === "function") { + if (typeof (bodyCopy == null ? void 0 : bodyCopy.destroy) === "function") { bodyCopy.destroy(); } const bodyStringTail = config.utf8Encoder(bodyBytes.subarray(bodyBytes.length - 16)); @@ -28940,7 +28847,7 @@ var require_dist_cjs29 = __commonJS({ } return result; }, "throw200ExceptionsMiddleware"); - var collectBody6 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { + var collectBody4 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } @@ -28961,6 +28868,7 @@ var require_dist_cjs29 = __commonJS({ var import_util_arn_parser = require_dist_cjs28(); function bucketEndpointMiddleware(options) { return (next, context) => async (args) => { + var _a, _b, _c, _d; if (options.bucketEndpoint) { const endpoint = context.endpointV2; if (endpoint) { @@ -28972,14 +28880,14 @@ var require_dist_cjs29 = __commonJS({ ...endpoint, url: bucketEndpointUrl }; - } catch (e3) { + } catch (e) { const warning2 = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`; - if (context.logger?.constructor?.name === "NoOpLogger") { + if (((_b = (_a = context.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger") { console.warn(warning2); } else { - context.logger?.warn?.(warning2); + (_d = (_c = context.logger) == null ? void 0 : _c.warn) == null ? void 0 : _d.call(_c, warning2); } - throw e3; + throw e; } } } @@ -29046,15 +28954,15 @@ var require_dist_cjs30 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - EndpointCache: () => EndpointCache3, + EndpointCache: () => EndpointCache, EndpointError: () => EndpointError2, - customEndpointFunctions: () => customEndpointFunctions3, + customEndpointFunctions: () => customEndpointFunctions, isIpAddress: () => isIpAddress2, isValidHostLabel: () => isValidHostLabel, - resolveEndpoint: () => resolveEndpoint4 + resolveEndpoint: () => resolveEndpoint2 }); module2.exports = __toCommonJS2(src_exports); - var EndpointCache3 = class { + var _EndpointCache = class _EndpointCache { /** * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed * before keys are dropped. @@ -29071,9 +28979,6 @@ var require_dist_cjs30 = __commonJS({ this.parameters = params; } } - static { - __name(this, "EndpointCache"); - } /** * @param endpointParams - query for endpoint. * @param resolver - provider of the value if not present. @@ -29087,11 +28992,11 @@ var require_dist_cjs30 = __commonJS({ if (!this.data.has(key)) { if (this.data.size > this.capacity + 10) { const keys = this.data.keys(); - let i3 = 0; + let i = 0; while (true) { const { value, done } = keys.next(); this.data.delete(value); - if (done || ++i3 > 10) { + if (done || ++i > 10) { break; } } @@ -29122,6 +29027,8 @@ var require_dist_cjs30 = __commonJS({ return buffer; } }; + __name(_EndpointCache, "EndpointCache"); + var EndpointCache = _EndpointCache; var IP_V4_REGEX = new RegExp( `^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$` ); @@ -29139,7 +29046,7 @@ var require_dist_cjs30 = __commonJS({ } return true; }, "isValidHostLabel"); - var customEndpointFunctions3 = {}; + var customEndpointFunctions = {}; var debugId = "endpoints"; function toDebugString(input) { if (typeof input !== "object" || input == null) { @@ -29154,15 +29061,14 @@ var require_dist_cjs30 = __commonJS({ return JSON.stringify(input, null, 2); } __name(toDebugString, "toDebugString"); - var EndpointError2 = class extends Error { - static { - __name(this, "EndpointError"); - } + var _EndpointError = class _EndpointError extends Error { constructor(message) { super(message); this.name = "EndpointError"; } }; + __name(_EndpointError, "EndpointError"); + var EndpointError2 = _EndpointError; var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals"); var getAttrPathList = /* @__PURE__ */ __name((path2) => { const parts = path2.split("."); @@ -29211,7 +29117,7 @@ var require_dist_cjs30 = __commonJS({ if (typeof value === "object" && "hostname" in value) { const { hostname: hostname2, port, protocol: protocol2 = "", path: path2 = "", query = {} } = value; const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path2}`); - url.search = Object.entries(query).map(([k3, v6]) => `${k3}=${v6}`).join("&"); + url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&"); return url; } return new URL(value); @@ -29253,7 +29159,7 @@ var require_dist_cjs30 = __commonJS({ } return input.substring(input.length - stop, input.length - start); }, "substring"); - var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c3) => `%${c3.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode"); + var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode"); var endpointFunctions = { booleanEquals, getAttr, @@ -29321,23 +29227,25 @@ var require_dist_cjs30 = __commonJS({ (arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options) ); const fnSegments = fn.split("."); - if (fnSegments[0] in customEndpointFunctions3 && fnSegments[1] != null) { - return customEndpointFunctions3[fnSegments[0]][fnSegments[1]](...evaluatedArgs); + if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) { + return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs); } return endpointFunctions[fn](...evaluatedArgs); }, "callFunction"); var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => { + var _a, _b; if (assign && assign in options.referenceRecord) { throw new EndpointError2(`'${assign}' is already defined in Reference Record.`); } const value = callFunction(fnArgs, options); - options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`); return { result: value === "" ? true : !!value, ...assign != null && { toAssign: { name: assign, value } } }; }, "evaluateCondition"); var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => { + var _a, _b; const conditionsReferenceRecord = {}; for (const condition of conditions) { const { result, toAssign } = evaluateCondition(condition, { @@ -29352,7 +29260,7 @@ var require_dist_cjs30 = __commonJS({ } if (toAssign) { conditionsReferenceRecord[toAssign.name] = toAssign.value; - options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); } } return { result: true, referenceRecord: conditionsReferenceRecord }; @@ -29408,6 +29316,7 @@ var require_dist_cjs30 = __commonJS({ throw new EndpointError2(`Endpoint URL must be a string, got ${typeof expression}`); }, "getEndpointUrl"); var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => { + var _a, _b; const { conditions, endpoint } = endpointRule; const { result, referenceRecord } = evaluateConditions(conditions, options); if (!result) { @@ -29418,7 +29327,7 @@ var require_dist_cjs30 = __commonJS({ referenceRecord: { ...options.referenceRecord, ...referenceRecord } }; const { url, properties, headers } = endpoint; - options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`); return { ...headers != void 0 && { headers: getEndpointHeaders(headers, endpointRuleOptions) @@ -29473,24 +29382,25 @@ var require_dist_cjs30 = __commonJS({ } throw new EndpointError2(`Rules evaluation failed`); }, "evaluateRules"); - var resolveEndpoint4 = /* @__PURE__ */ __name((ruleSetObject, options) => { + var resolveEndpoint2 = /* @__PURE__ */ __name((ruleSetObject, options) => { + var _a, _b, _c, _d; const { endpointParams, logger } = options; const { parameters, rules } = ruleSetObject; - options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); - const paramsWithDefault = Object.entries(parameters).filter(([, v6]) => v6.default != null).map(([k3, v6]) => [k3, v6.default]); + (_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); + const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]); if (paramsWithDefault.length > 0) { for (const [paramKey, paramDefaultValue] of paramsWithDefault) { endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue; } } - const requiredParams = Object.entries(parameters).filter(([, v6]) => v6.required).map(([k3]) => k3); + const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k); for (const requiredParam of requiredParams) { if (endpointParams[requiredParam] == null) { throw new EndpointError2(`Missing required parameter: '${requiredParam}'`); } } const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} }); - options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); + (_d = (_c = options.logger) == null ? void 0 : _c.debug) == null ? void 0 : _d.call(_c, `${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); return endpoint; }, "resolveEndpoint"); } @@ -29520,37 +29430,37 @@ var require_dist_cjs31 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - ConditionObject: () => import_util_endpoints5.ConditionObject, - DeprecatedObject: () => import_util_endpoints5.DeprecatedObject, - EndpointError: () => import_util_endpoints5.EndpointError, - EndpointObject: () => import_util_endpoints5.EndpointObject, - EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders, - EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties, - EndpointParams: () => import_util_endpoints5.EndpointParams, - EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions, - EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject, - ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject, - EvaluateOptions: () => import_util_endpoints5.EvaluateOptions, - Expression: () => import_util_endpoints5.Expression, - FunctionArgv: () => import_util_endpoints5.FunctionArgv, - FunctionObject: () => import_util_endpoints5.FunctionObject, - FunctionReturn: () => import_util_endpoints5.FunctionReturn, - ParameterObject: () => import_util_endpoints5.ParameterObject, - ReferenceObject: () => import_util_endpoints5.ReferenceObject, - ReferenceRecord: () => import_util_endpoints5.ReferenceRecord, - RuleSetObject: () => import_util_endpoints5.RuleSetObject, - RuleSetRules: () => import_util_endpoints5.RuleSetRules, - TreeRuleObject: () => import_util_endpoints5.TreeRuleObject, - awsEndpointFunctions: () => awsEndpointFunctions3, + ConditionObject: () => import_util_endpoints.ConditionObject, + DeprecatedObject: () => import_util_endpoints.DeprecatedObject, + EndpointError: () => import_util_endpoints.EndpointError, + EndpointObject: () => import_util_endpoints.EndpointObject, + EndpointObjectHeaders: () => import_util_endpoints.EndpointObjectHeaders, + EndpointObjectProperties: () => import_util_endpoints.EndpointObjectProperties, + EndpointParams: () => import_util_endpoints.EndpointParams, + EndpointResolverOptions: () => import_util_endpoints.EndpointResolverOptions, + EndpointRuleObject: () => import_util_endpoints.EndpointRuleObject, + ErrorRuleObject: () => import_util_endpoints.ErrorRuleObject, + EvaluateOptions: () => import_util_endpoints.EvaluateOptions, + Expression: () => import_util_endpoints.Expression, + FunctionArgv: () => import_util_endpoints.FunctionArgv, + FunctionObject: () => import_util_endpoints.FunctionObject, + FunctionReturn: () => import_util_endpoints.FunctionReturn, + ParameterObject: () => import_util_endpoints.ParameterObject, + ReferenceObject: () => import_util_endpoints.ReferenceObject, + ReferenceRecord: () => import_util_endpoints.ReferenceRecord, + RuleSetObject: () => import_util_endpoints.RuleSetObject, + RuleSetRules: () => import_util_endpoints.RuleSetRules, + TreeRuleObject: () => import_util_endpoints.TreeRuleObject, + awsEndpointFunctions: () => awsEndpointFunctions, getUserAgentPrefix: () => getUserAgentPrefix, - isIpAddress: () => import_util_endpoints5.isIpAddress, + isIpAddress: () => import_util_endpoints.isIpAddress, partition: () => partition, - resolveEndpoint: () => import_util_endpoints5.resolveEndpoint, + resolveEndpoint: () => import_util_endpoints.resolveEndpoint, setPartitionInfo: () => setPartitionInfo, useDefaultPartitionInfo: () => useDefaultPartitionInfo }); module2.exports = __toCommonJS2(src_exports); - var import_util_endpoints5 = require_dist_cjs30(); + var import_util_endpoints = require_dist_cjs30(); var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => { if (allowSubDomains) { for (const label of value.split(".")) { @@ -29560,7 +29470,7 @@ var require_dist_cjs31 = __commonJS({ } return true; } - if (!(0, import_util_endpoints5.isValidHostLabel)(value)) { + if (!(0, import_util_endpoints.isValidHostLabel)(value)) { return false; } if (value.length < 3 || value.length > 63) { @@ -29569,7 +29479,7 @@ var require_dist_cjs31 = __commonJS({ if (value !== value.toLowerCase()) { return false; } - if ((0, import_util_endpoints5.isIpAddress)(value)) { + if ((0, import_util_endpoints.isIpAddress)(value)) { return false; } return true; @@ -29641,9 +29551,6 @@ var require_dist_cjs31 = __commonJS({ "ap-southeast-5": { description: "Asia Pacific (Malaysia)" }, - "ap-southeast-7": { - description: "Asia Pacific (Thailand)" - }, "aws-global": { description: "AWS Standard global region" }, @@ -29686,9 +29593,6 @@ var require_dist_cjs31 = __commonJS({ "me-south-1": { description: "Middle East (Bahrain)" }, - "mx-central-1": { - description: "Mexico (Central)" - }, "sa-east-1": { description: "South America (Sao Paulo)" }, @@ -29862,12 +29766,12 @@ var require_dist_cjs31 = __commonJS({ setPartitionInfo(partitions_default, ""); }, "useDefaultPartitionInfo"); var getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix"); - var awsEndpointFunctions3 = { + var awsEndpointFunctions = { isVirtualHostableS3Bucket, parseArn, partition }; - import_util_endpoints5.customEndpointFunctions.aws = awsEndpointFunctions3; + import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions; } }); @@ -29897,12 +29801,12 @@ var require_dist_cjs32 = __commonJS({ __export2(src_exports, { DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID, getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions, - getUserAgentPlugin: () => getUserAgentPlugin3, - resolveUserAgentConfig: () => resolveUserAgentConfig3, + getUserAgentPlugin: () => getUserAgentPlugin, + resolveUserAgentConfig: () => resolveUserAgentConfig, userAgentMiddleware: () => userAgentMiddleware }); module2.exports = __toCommonJS2(src_exports); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var DEFAULT_UA_APP_ID = void 0; function isValidUserAgentAppId(appId) { if (appId === void 0) { @@ -29911,39 +29815,41 @@ var require_dist_cjs32 = __commonJS({ return typeof appId === "string" && appId.length <= 50; } __name(isValidUserAgentAppId, "isValidUserAgentAppId"); - function resolveUserAgentConfig3(input) { - const normalizedAppIdProvider = (0, import_core17.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID); + function resolveUserAgentConfig(input) { + const normalizedAppIdProvider = (0, import_core3.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID); return { ...input, customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, userAgentAppId: async () => { + var _a, _b; const appId = await normalizedAppIdProvider(); if (!isValidUserAgentAppId(appId)) { - const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger; + const logger = ((_b = (_a = input.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger" || !input.logger ? console : input.logger; if (typeof appId !== "string") { - logger?.warn("userAgentAppId must be a string or undefined."); + logger == null ? void 0 : logger.warn("userAgentAppId must be a string or undefined."); } else if (appId.length > 50) { - logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); + logger == null ? void 0 : logger.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); } } return appId; } }; } - __name(resolveUserAgentConfig3, "resolveUserAgentConfig"); - var import_util_endpoints5 = require_dist_cjs31(); - var import_protocol_http11 = require_dist_cjs2(); + __name(resolveUserAgentConfig, "resolveUserAgentConfig"); + var import_util_endpoints = require_dist_cjs31(); + var import_protocol_http8 = require_dist_cjs2(); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; async function checkFeatures(context, config, args) { + var _a, _b, _c, _d, _e, _f, _g; const request = args.request; - if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") { + if (((_a = request == null ? void 0 : request.headers) == null ? void 0 : _a["smithy-protocol"]) === "rpc-v2-cbor") { (0, import_core22.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M"); } if (typeof config.retryStrategy === "function") { const retryStrategy = await config.retryStrategy(); if (typeof retryStrategy.acquireInitialRetryToken === "function") { - if (retryStrategy.constructor?.name?.includes("Adaptive")) { + if ((_c = (_b = retryStrategy.constructor) == null ? void 0 : _b.name) == null ? void 0 : _c.includes("Adaptive")) { (0, import_core22.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F"); } else { (0, import_core22.setFeature)(context, "RETRY_MODE_STANDARD", "E"); @@ -29954,10 +29860,10 @@ var require_dist_cjs32 = __commonJS({ } if (typeof config.accountIdEndpointMode === "function") { const endpointV2 = context.endpointV2; - if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { + if (String((_d = endpointV2 == null ? void 0 : endpointV2.url) == null ? void 0 : _d.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { (0, import_core22.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O"); } - switch (await config.accountIdEndpointMode?.()) { + switch (await ((_e = config.accountIdEndpointMode) == null ? void 0 : _e.call(config))) { case "disabled": (0, import_core22.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q"); break; @@ -29969,8 +29875,8 @@ var require_dist_cjs32 = __commonJS({ break; } } - const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity; - if (identity?.$source) { + const identity = (_g = (_f = context.__smithy_context) == null ? void 0 : _f.selectedHttpAuthScheme) == null ? void 0 : _g.identity; + if (identity == null ? void 0 : identity.$source) { const credentials = identity; if (credentials.accountId) { (0, import_core22.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T"); @@ -30007,26 +29913,27 @@ var require_dist_cjs32 = __commonJS({ } __name(encodeFeatures, "encodeFeatures"); var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { + var _a, _b, _c, _d; const { request } = args; - if (!import_protocol_http11.HttpRequest.isInstance(request)) { + if (!import_protocol_http8.HttpRequest.isInstance(request)) { return next(args); } const { headers } = request; - const userAgent = context?.userAgent?.map(escapeUserAgent) || []; + const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || []; const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); await checkFeatures(context, options, args); const awsContext = context; defaultUserAgent.push( `m/${encodeFeatures( - Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features) + Object.assign({}, (_b = context.__smithy_context) == null ? void 0 : _b.features, (_c = awsContext.__aws_sdk_context) == null ? void 0 : _c.features) )}` ); - const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; + const customUserAgent = ((_d = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _d.map(escapeUserAgent)) || []; const appId = await options.userAgentAppId(); if (appId) { defaultUserAgent.push(escapeUserAgent([`app/${appId}`])); } - const prefix = (0, import_util_endpoints5.getUserAgentPrefix)(); + const prefix = (0, import_util_endpoints.getUserAgentPrefix)(); const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE); const normalUAValue = [ ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), @@ -30046,8 +29953,9 @@ var require_dist_cjs32 = __commonJS({ }); }, "userAgentMiddleware"); var escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => { + var _a; const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR); - const version2 = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); + const version2 = (_a = userAgentPair[1]) == null ? void 0 : _a.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR); const prefix = name.substring(0, prefixSeparatorIndex); let uaName = name.substring(prefixSeparatorIndex + 1); @@ -30072,7 +29980,7 @@ var require_dist_cjs32 = __commonJS({ tags: ["SET_USER_AGENT", "USER_AGENT"], override: true }; - var getUserAgentPlugin3 = /* @__PURE__ */ __name((config) => ({ + var getUserAgentPlugin = /* @__PURE__ */ __name((config) => ({ applyToStack: (clientStack) => { clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions); } @@ -30109,23 +30017,23 @@ var require_dist_cjs33 = __commonJS({ DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT, ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT, ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT, - NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3, - NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3, - NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3, - NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3, + NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, + NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, + NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, REGION_ENV_NAME: () => REGION_ENV_NAME, REGION_INI_NAME: () => REGION_INI_NAME, getRegionInfo: () => getRegionInfo, resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig, resolveEndpointsConfig: () => resolveEndpointsConfig, - resolveRegionConfig: () => resolveRegionConfig3 + resolveRegionConfig: () => resolveRegionConfig }); module2.exports = __toCommonJS2(src_exports); var import_util_config_provider = require_dist_cjs27(); var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; var DEFAULT_USE_DUALSTACK_ENDPOINT = false; - var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3 = { + var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV), configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false @@ -30133,20 +30041,20 @@ var require_dist_cjs33 = __commonJS({ var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; var DEFAULT_USE_FIPS_ENDPOINT = false; - var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3 = { + var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV), configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false }; - var import_util_middleware5 = require_dist_cjs4(); + var import_util_middleware3 = require_dist_cjs4(); var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => { const { endpoint, urlParser } = input; return { ...input, tls: input.tls ?? true, - endpoint: (0, import_util_middleware5.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + endpoint: (0, import_util_middleware3.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), isCustomEndpoint: true, - useDualstackEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false) + useDualstackEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false) }; }, "resolveCustomEndpointsConfig"); var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => { @@ -30165,31 +30073,31 @@ var require_dist_cjs33 = __commonJS({ return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); }, "getEndpointFromRegion"); var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => { - const useDualstackEndpoint = (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false); + const useDualstackEndpoint = (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false); const { endpoint, useFipsEndpoint, urlParser } = input; return { ...input, tls: input.tls ?? true, - endpoint: endpoint ? (0, import_util_middleware5.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), + endpoint: endpoint ? (0, import_util_middleware3.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), isCustomEndpoint: !!endpoint, useDualstackEndpoint }; }, "resolveEndpointsConfig"); var REGION_ENV_NAME = "AWS_REGION"; var REGION_INI_NAME = "region"; - var NODE_REGION_CONFIG_OPTIONS3 = { + var NODE_REGION_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[REGION_ENV_NAME], configFileSelector: (profile) => profile[REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - var NODE_REGION_CONFIG_FILE_OPTIONS3 = { + var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion"); var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion"); - var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRegionConfig = /* @__PURE__ */ __name((input) => { const { region, useFipsEndpoint } = input; if (!region) { throw new Error("Region is missing"); @@ -30212,9 +30120,12 @@ var require_dist_cjs33 = __commonJS({ } }; }, "resolveRegionConfig"); - var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find( - ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack") - )?.hostname, "getHostnameFromVariants"); + var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find( + ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack") + )) == null ? void 0 : _a.hostname; + }, "getHostnameFromVariants"); var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname"); var getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition"); var getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { @@ -30235,17 +30146,18 @@ var require_dist_cjs33 = __commonJS({ regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e; const partition = getResolvedPartition(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region; + const resolvedRegion = region in regionHash ? region : ((_a = partitionHash[partition]) == null ? void 0 : _a.endpoint) ?? region; const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions); - const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions); + const regionHostname = getHostnameFromVariants((_b = regionHash[resolvedRegion]) == null ? void 0 : _b.variants, hostnameOptions); + const partitionHostname = getHostnameFromVariants((_c = partitionHash[partition]) == null ? void 0 : _c.variants, hostnameOptions); const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); if (hostname === void 0) { throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); } const signingRegion = getResolvedSigningRegion(hostname, { - signingRegion: regionHash[resolvedRegion]?.signingRegion, + signingRegion: (_d = regionHash[resolvedRegion]) == null ? void 0 : _d.signingRegion, regionRegex: partitionHash[partition].regionRegex, useFipsEndpoint }); @@ -30254,7 +30166,7 @@ var require_dist_cjs33 = __commonJS({ signingService, hostname, ...signingRegion && { signingRegion }, - ...regionHash[resolvedRegion]?.signingService && { + ...((_e = regionHash[resolvedRegion]) == null ? void 0 : _e.signingService) && { signingService: regionHash[resolvedRegion].signingService } }; @@ -30320,15 +30232,15 @@ var require_dist_cjs35 = __commonJS({ __export2(src_exports, { contentLengthMiddleware: () => contentLengthMiddleware, contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions, - getContentLengthPlugin: () => getContentLengthPlugin3 + getContentLengthPlugin: () => getContentLengthPlugin }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var CONTENT_LENGTH_HEADER = "content-length"; function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request = args.request; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { const { body, headers } = request; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { @@ -30354,7 +30266,7 @@ var require_dist_cjs35 = __commonJS({ name: "contentLengthMiddleware", override: true }; - var getContentLengthPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); } @@ -30415,8 +30327,8 @@ var init_stringify = __esm({ "../../node_modules/uuid/dist/esm-node/stringify.js"() { init_validate(); byteToHex = []; - for (let i3 = 0; i3 < 256; ++i3) { - byteToHex.push((i3 + 256).toString(16).slice(1)); + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).slice(1)); } stringify_default = stringify; } @@ -30424,8 +30336,8 @@ var init_stringify = __esm({ // ../../node_modules/uuid/dist/esm-node/v1.js function v1(options, buf, offset) { - let i3 = buf && offset || 0; - const b3 = buf || new Array(16); + let i = buf && offset || 0; + const b = buf || new Array(16); options = options || {}; let node = options.node || _nodeId; let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; @@ -30455,21 +30367,21 @@ function v1(options, buf, offset) { _clockseq = clockseq; msecs += 122192928e5; const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b3[i3++] = tl >>> 24 & 255; - b3[i3++] = tl >>> 16 & 255; - b3[i3++] = tl >>> 8 & 255; - b3[i3++] = tl & 255; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; const tmh = msecs / 4294967296 * 1e4 & 268435455; - b3[i3++] = tmh >>> 8 & 255; - b3[i3++] = tmh & 255; - b3[i3++] = tmh >>> 24 & 15 | 16; - b3[i3++] = tmh >>> 16 & 255; - b3[i3++] = clockseq >>> 8 | 128; - b3[i3++] = clockseq & 255; - for (let n3 = 0; n3 < 6; ++n3) { - b3[i3 + n3] = node[n3]; - } - return buf || unsafeStringify(b3); + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || unsafeStringify(b); } var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; var init_v1 = __esm({ @@ -30487,24 +30399,24 @@ function parse(uuid) { if (!validate_default(uuid)) { throw TypeError("Invalid UUID"); } - let v6; + let v; const arr = new Uint8Array(16); - arr[0] = (v6 = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v6 >>> 16 & 255; - arr[2] = v6 >>> 8 & 255; - arr[3] = v6 & 255; - arr[4] = (v6 = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v6 & 255; - arr[6] = (v6 = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v6 & 255; - arr[8] = (v6 = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v6 & 255; - arr[10] = (v6 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v6 / 4294967296 & 255; - arr[12] = v6 >>> 24 & 255; - arr[13] = v6 >>> 16 & 255; - arr[14] = v6 >>> 8 & 255; - arr[15] = v6 & 255; + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; return arr; } var parse_default; @@ -30519,8 +30431,8 @@ var init_parse = __esm({ function stringToBytes(str) { str = unescape(encodeURIComponent(str)); const bytes = []; - for (let i3 = 0; i3 < str.length; ++i3) { - bytes.push(str.charCodeAt(i3)); + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); } return bytes; } @@ -30544,8 +30456,8 @@ function v35(name, version2, hashfunc) { bytes[8] = bytes[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i3 = 0; i3 < 16; ++i3) { - buf[offset + i3] = bytes[i3]; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; } return buf; } @@ -30619,8 +30531,8 @@ function v4(options, buf, offset) { rnds[8] = rnds[8] & 63 | 128; if (buf) { offset = offset || 0; - for (let i3 = 0; i3 < 16; ++i3) { - buf[offset + i3] = rnds[i3]; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; } return buf; } @@ -30775,11 +30687,21 @@ var require_dist_cjs36 = __commonJS({ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; var isRetryableByTrait = /* @__PURE__ */ __name((error2) => error2.$retryable !== void 0, "isRetryableByTrait"); var isClockSkewError = /* @__PURE__ */ __name((error2) => CLOCK_SKEW_ERROR_CODES.includes(error2.name), "isClockSkewError"); - var isClockSkewCorrectedError = /* @__PURE__ */ __name((error2) => error2.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError"); - var isThrottlingError = /* @__PURE__ */ __name((error2) => error2.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error2.name) || error2.$retryable?.throttling == true, "isThrottlingError"); - var isTransientError = /* @__PURE__ */ __name((error2, depth = 0) => isClockSkewCorrectedError(error2) || TRANSIENT_ERROR_CODES.includes(error2.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error2?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error2.$metadata?.httpStatusCode || 0) || error2.cause !== void 0 && depth <= 10 && isTransientError(error2.cause, depth + 1), "isTransientError"); + var isClockSkewCorrectedError = /* @__PURE__ */ __name((error2) => { + var _a; + return (_a = error2.$metadata) == null ? void 0 : _a.clockSkewCorrected; + }, "isClockSkewCorrectedError"); + var isThrottlingError = /* @__PURE__ */ __name((error2) => { + var _a, _b; + return ((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error2.name) || ((_b = error2.$retryable) == null ? void 0 : _b.throttling) == true; + }, "isThrottlingError"); + var isTransientError = /* @__PURE__ */ __name((error2, depth = 0) => { + var _a; + return isClockSkewCorrectedError(error2) || TRANSIENT_ERROR_CODES.includes(error2.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error2 == null ? void 0 : error2.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) || 0) || error2.cause !== void 0 && depth <= 10 && isTransientError(error2.cause, depth + 1); + }, "isTransientError"); var isServerError = /* @__PURE__ */ __name((error2) => { - if (error2.$metadata?.httpStatusCode !== void 0) { + var _a; + if (((_a = error2.$metadata) == null ? void 0 : _a.httpStatusCode) !== void 0) { const statusCode = error2.$metadata.httpStatusCode; if (500 <= statusCode && statusCode <= 599 && !isTransientError(error2)) { return true; @@ -30818,7 +30740,7 @@ var require_dist_cjs37 = __commonJS({ ConfiguredRetryStrategy: () => ConfiguredRetryStrategy, DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE, - DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE3, + DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE, DefaultRateLimiter: () => DefaultRateLimiter, INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER, @@ -30838,9 +30760,9 @@ var require_dist_cjs37 = __commonJS({ return RETRY_MODES2; })(RETRY_MODES || {}); var DEFAULT_MAX_ATTEMPTS = 3; - var DEFAULT_RETRY_MODE3 = "standard"; + var DEFAULT_RETRY_MODE = "standard"; var import_service_error_classification = require_dist_cjs36(); - var DefaultRateLimiter = class _DefaultRateLimiter { + var _DefaultRateLimiter = class _DefaultRateLimiter2 { constructor(options) { this.currentCapacity = 0; this.enabled = false; @@ -30849,23 +30771,17 @@ var require_dist_cjs37 = __commonJS({ this.requestCount = 0; this.lastTimestamp = 0; this.timeWindow = 0; - this.beta = options?.beta ?? 0.7; - this.minCapacity = options?.minCapacity ?? 1; - this.minFillRate = options?.minFillRate ?? 0.5; - this.scaleConstant = options?.scaleConstant ?? 0.4; - this.smooth = options?.smooth ?? 0.8; + this.beta = (options == null ? void 0 : options.beta) ?? 0.7; + this.minCapacity = (options == null ? void 0 : options.minCapacity) ?? 1; + this.minFillRate = (options == null ? void 0 : options.minFillRate) ?? 0.5; + this.scaleConstant = (options == null ? void 0 : options.scaleConstant) ?? 0.4; + this.smooth = (options == null ? void 0 : options.smooth) ?? 0.8; const currentTimeInSeconds = this.getCurrentTimeInSeconds(); this.lastThrottleTime = currentTimeInSeconds; this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); this.fillRate = this.minFillRate; this.maxCapacity = this.minCapacity; } - static { - __name(this, "DefaultRateLimiter"); - } - static { - this.setTimeoutFn = setTimeout; - } getCurrentTimeInSeconds() { return Date.now() / 1e3; } @@ -30879,7 +30795,7 @@ var require_dist_cjs37 = __commonJS({ this.refillTokenBucket(); if (amount > this.currentCapacity) { const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay)); + await new Promise((resolve) => _DefaultRateLimiter2.setTimeoutFn(resolve, delay)); } this.currentCapacity = this.currentCapacity - amount; } @@ -30931,8 +30847,8 @@ var require_dist_cjs37 = __commonJS({ this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); } updateMeasuredRate() { - const t3 = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t3 * 2) / 2; + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; this.requestCount++; if (timeBucket > this.lastTxRateBucket) { const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); @@ -30945,6 +30861,9 @@ var require_dist_cjs37 = __commonJS({ return parseFloat(num.toFixed(8)); } }; + __name(_DefaultRateLimiter, "DefaultRateLimiter"); + _DefaultRateLimiter.setTimeoutFn = setTimeout; + var DefaultRateLimiter = _DefaultRateLimiter; var DEFAULT_RETRY_DELAY_BASE = 100; var MAXIMUM_RETRY_DELAY = 20 * 1e3; var THROTTLING_RETRY_DELAY_BASE = 500; @@ -30981,7 +30900,7 @@ var require_dist_cjs37 = __commonJS({ getRetryCost }; }, "createDefaultRetryToken"); - var StandardRetryStrategy = class { + var _StandardRetryStrategy = class _StandardRetryStrategy { constructor(maxAttempts) { this.maxAttempts = maxAttempts; this.mode = "standard"; @@ -30989,9 +30908,6 @@ var require_dist_cjs37 = __commonJS({ this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; } - static { - __name(this, "StandardRetryStrategy"); - } // eslint-disable-next-line @typescript-eslint/no-unused-vars async acquireInitialRetryToken(retryTokenScope) { return createDefaultRetryToken({ @@ -31048,7 +30964,9 @@ var require_dist_cjs37 = __commonJS({ return errorType === "THROTTLING" || errorType === "TRANSIENT"; } }; - var AdaptiveRetryStrategy = class { + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { constructor(maxAttemptsProvider, options) { this.maxAttemptsProvider = maxAttemptsProvider; this.mode = "adaptive"; @@ -31056,9 +30974,6 @@ var require_dist_cjs37 = __commonJS({ this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); } - static { - __name(this, "AdaptiveRetryStrategy"); - } async acquireInitialRetryToken(retryTokenScope) { await this.rateLimiter.getSendToken(); return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); @@ -31072,10 +30987,9 @@ var require_dist_cjs37 = __commonJS({ this.standardRetryStrategy.recordSuccess(token); } }; - var ConfiguredRetryStrategy = class extends StandardRetryStrategy { - static { - __name(this, "ConfiguredRetryStrategy"); - } + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { /** * @param maxAttempts - the maximum number of retry attempts allowed. * e.g., if set to 3, then 4 total requests are possible. @@ -31109,6 +31023,8 @@ var require_dist_cjs37 = __commonJS({ return token; } }; + __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); + var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; } }); @@ -31152,29 +31068,29 @@ var require_dist_cjs38 = __commonJS({ CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE, ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS, ENV_RETRY_MODE: () => ENV_RETRY_MODE, - NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS3, - NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS3, + NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS, + NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS, StandardRetryStrategy: () => StandardRetryStrategy, defaultDelayDecider: () => defaultDelayDecider, defaultRetryDecider: () => defaultRetryDecider, getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin, getRetryAfterHint: () => getRetryAfterHint, - getRetryPlugin: () => getRetryPlugin3, + getRetryPlugin: () => getRetryPlugin, omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions, - resolveRetryConfig: () => resolveRetryConfig3, + resolveRetryConfig: () => resolveRetryConfig, retryMiddleware: () => retryMiddleware, retryMiddlewareOptions: () => retryMiddlewareOptions }); module2.exports = __toCommonJS2(src_exports); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports)); - var import_util_retry3 = require_dist_cjs37(); + var import_util_retry = require_dist_cjs37(); var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry3.NO_RETRY_INCREMENT; - const retryCost = options?.retryCost ?? import_util_retry3.RETRY_COST; - const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry3.TIMEOUT_RETRY_COST; + const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ?? import_util_retry.NO_RETRY_INCREMENT; + const retryCost = (options == null ? void 0 : options.retryCost) ?? import_util_retry.RETRY_COST; + const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ?? import_util_retry.TIMEOUT_RETRY_COST; let availableCapacity = initialRetryTokens; const getCapacityAmount = /* @__PURE__ */ __name((error2) => error2.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount"); const hasRetryTokens = /* @__PURE__ */ __name((error2) => getCapacityAmount(error2) <= availableCapacity, "hasRetryTokens"); @@ -31196,7 +31112,7 @@ var require_dist_cjs38 = __commonJS({ releaseRetryTokens }); }, "getDefaultRetryQuota"); - var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry3.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); + var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); var import_service_error_classification = require_dist_cjs36(); var defaultRetryDecider = /* @__PURE__ */ __name((error2) => { if (!error2) { @@ -31213,16 +31129,13 @@ var require_dist_cjs38 = __commonJS({ return new Error(error2); return new Error(`AWS SDK error wrapper for ${error2}`); }, "asSdkError"); - var StandardRetryStrategy = class { + var _StandardRetryStrategy = class _StandardRetryStrategy { constructor(maxAttemptsProvider, options) { this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = import_util_retry3.RETRY_MODES.STANDARD; - this.retryDecider = options?.retryDecider ?? defaultRetryDecider; - this.delayDecider = options?.delayDecider ?? defaultDelayDecider; - this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry3.INITIAL_RETRY_TOKENS); - } - static { - __name(this, "StandardRetryStrategy"); + this.mode = import_util_retry.RETRY_MODES.STANDARD; + this.retryDecider = (options == null ? void 0 : options.retryDecider) ?? defaultRetryDecider; + this.delayDecider = (options == null ? void 0 : options.delayDecider) ?? defaultDelayDecider; + this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS); } shouldRetry(error2, attempts, maxAttempts) { return attempts < maxAttempts && this.retryDecider(error2) && this.retryQuota.hasRetryTokens(error2); @@ -31232,7 +31145,7 @@ var require_dist_cjs38 = __commonJS({ try { maxAttempts = await this.maxAttemptsProvider(); } catch (error2) { - maxAttempts = import_util_retry3.DEFAULT_MAX_ATTEMPTS; + maxAttempts = import_util_retry.DEFAULT_MAX_ATTEMPTS; } return maxAttempts; } @@ -31242,32 +31155,32 @@ var require_dist_cjs38 = __commonJS({ let totalDelay = 0; const maxAttempts = await this.getMaxAttempts(); const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { - request.headers[import_util_retry3.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + if (import_protocol_http8.HttpRequest.isInstance(request)) { + request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { - if (import_protocol_http11.HttpRequest.isInstance(request)) { - request.headers[import_util_retry3.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + if (import_protocol_http8.HttpRequest.isInstance(request)) { + request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } - if (options?.beforeRequest) { + if (options == null ? void 0 : options.beforeRequest) { await options.beforeRequest(); } const { response, output } = await next(args); - if (options?.afterRequest) { + if (options == null ? void 0 : options.afterRequest) { options.afterRequest(response); } this.retryQuota.releaseRetryTokens(retryTokenAmount); output.$metadata.attempts = attempts + 1; output.$metadata.totalRetryDelay = totalDelay; return { response, output }; - } catch (e3) { - const err = asSdkError(e3); + } catch (e) { + const err = asSdkError(e); attempts++; if (this.shouldRetry(err, attempts, maxAttempts)) { retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); const delayFromDecider = this.delayDecider( - (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry3.THROTTLING_RETRY_DELAY_BASE : import_util_retry3.DEFAULT_RETRY_DELAY_BASE, + (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry.THROTTLING_RETRY_DELAY_BASE : import_util_retry.DEFAULT_RETRY_DELAY_BASE, attempts ); const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); @@ -31286,8 +31199,10 @@ var require_dist_cjs38 = __commonJS({ } } }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http11.HttpResponse.isInstance(response)) + if (!import_protocol_http8.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31299,15 +31214,12 @@ var require_dist_cjs38 = __commonJS({ const retryAfterDate = new Date(retryAfter); return retryAfterDate.getTime() - Date.now(); }, "getDelayFromRetryAfterHeader"); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy { - static { - __name(this, "AdaptiveRetryStrategy"); - } + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryStrategy { constructor(maxAttemptsProvider, options) { const { rateLimiter, ...superOptions } = options ?? {}; super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter ?? new import_util_retry3.DefaultRateLimiter(); - this.mode = import_util_retry3.RETRY_MODES.ADAPTIVE; + this.rateLimiter = rateLimiter ?? new import_util_retry.DefaultRateLimiter(); + this.mode = import_util_retry.RETRY_MODES.ADAPTIVE; } async retry(next, args) { return super.retry(next, args, { @@ -31320,10 +31232,12 @@ var require_dist_cjs38 = __commonJS({ }); } }; - var import_util_middleware5 = require_dist_cjs4(); + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var import_util_middleware3 = require_dist_cjs4(); var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; var CONFIG_MAX_ATTEMPTS = "max_attempts"; - var NODE_MAX_ATTEMPT_CONFIG_OPTIONS3 = { + var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { environmentVariableSelector: (env) => { const value = env[ENV_MAX_ATTEMPTS]; if (!value) @@ -31344,11 +31258,11 @@ var require_dist_cjs38 = __commonJS({ } return maxAttempt; }, - default: import_util_retry3.DEFAULT_MAX_ATTEMPTS + default: import_util_retry.DEFAULT_MAX_ATTEMPTS }; - var resolveRetryConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRetryConfig = /* @__PURE__ */ __name((input) => { const { retryStrategy } = input; - const maxAttempts = (0, import_util_middleware5.normalizeProvider)(input.maxAttempts ?? import_util_retry3.DEFAULT_MAX_ATTEMPTS); + const maxAttempts = (0, import_util_middleware3.normalizeProvider)(input.maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS); return { ...input, maxAttempts, @@ -31356,26 +31270,26 @@ var require_dist_cjs38 = __commonJS({ if (retryStrategy) { return retryStrategy; } - const retryMode = await (0, import_util_middleware5.normalizeProvider)(input.retryMode)(); - if (retryMode === import_util_retry3.RETRY_MODES.ADAPTIVE) { - return new import_util_retry3.AdaptiveRetryStrategy(maxAttempts); + const retryMode = await (0, import_util_middleware3.normalizeProvider)(input.retryMode)(); + if (retryMode === import_util_retry.RETRY_MODES.ADAPTIVE) { + return new import_util_retry.AdaptiveRetryStrategy(maxAttempts); } - return new import_util_retry3.StandardRetryStrategy(maxAttempts); + return new import_util_retry.StandardRetryStrategy(maxAttempts); } }; }, "resolveRetryConfig"); var ENV_RETRY_MODE = "AWS_RETRY_MODE"; var CONFIG_RETRY_MODE = "retry_mode"; - var NODE_RETRY_MODE_CONFIG_OPTIONS3 = { + var NODE_RETRY_MODE_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[ENV_RETRY_MODE], configFileSelector: (profile) => profile[CONFIG_RETRY_MODE], - default: import_util_retry3.DEFAULT_RETRY_MODE + default: import_util_retry.DEFAULT_RETRY_MODE }; var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; - if (import_protocol_http11.HttpRequest.isInstance(request)) { - delete request.headers[import_util_retry3.INVOCATION_ID_HEADER]; - delete request.headers[import_util_retry3.REQUEST_HEADER]; + if (import_protocol_http8.HttpRequest.isInstance(request)) { + delete request.headers[import_util_retry.INVOCATION_ID_HEADER]; + delete request.headers[import_util_retry.REQUEST_HEADER]; } return next(args); }, "omitRetryHeadersMiddleware"); @@ -31391,9 +31305,10 @@ var require_dist_cjs38 = __commonJS({ clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); } }), "getOmitRetryHeadersPlugin"); - var import_smithy_client25 = require_dist_cjs19(); + var import_smithy_client4 = require_dist_cjs19(); var import_isStreamingPayload = require_isStreamingPayload(); var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { + var _a; let retryStrategy = await options.retryStrategy(); const maxAttempts = await options.maxAttempts(); if (isRetryStrategyV2(retryStrategy)) { @@ -31403,25 +31318,25 @@ var require_dist_cjs38 = __commonJS({ let attempts = 0; let totalRetryDelay = 0; const { request } = args; - const isRequest = import_protocol_http11.HttpRequest.isInstance(request); + const isRequest = import_protocol_http8.HttpRequest.isInstance(request); if (isRequest) { - request.headers[import_util_retry3.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { if (isRequest) { - request.headers[import_util_retry3.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } const { response, output } = await next(args); retryStrategy.recordSuccess(retryToken); output.$metadata.attempts = attempts + 1; output.$metadata.totalRetryDelay = totalRetryDelay; return { response, output }; - } catch (e3) { - const retryErrorInfo = getRetryErrorInfo(e3); - lastError = asSdkError(e3); + } catch (e) { + const retryErrorInfo = getRetryErrorInfo(e); + lastError = asSdkError(e); if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) { - (context.logger instanceof import_smithy_client25.NoOpLogger ? console : context.logger)?.warn( + (_a = context.logger instanceof import_smithy_client4.NoOpLogger ? console : context.logger) == null ? void 0 : _a.warn( "An error was encountered in a non-retryable streaming request." ); throw lastError; @@ -31444,7 +31359,7 @@ var require_dist_cjs38 = __commonJS({ } } else { retryStrategy = retryStrategy; - if (retryStrategy?.mode) + if (retryStrategy == null ? void 0 : retryStrategy.mode) context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; return retryStrategy.retry(next, args); } @@ -31477,13 +31392,13 @@ var require_dist_cjs38 = __commonJS({ priority: "high", override: true }; - var getRetryPlugin3 = /* @__PURE__ */ __name((options) => ({ + var getRetryPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { clientStack.add(retryMiddleware(options), retryMiddlewareOptions); } }), "getRetryPlugin"); var getRetryAfterHint = /* @__PURE__ */ __name((response) => { - if (!import_protocol_http11.HttpResponse.isInstance(response)) + if (!import_protocol_http8.HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) @@ -31530,13 +31445,7 @@ var require_dist_cjs39 = __commonJS({ var signatureV4CrtContainer = { CrtSignerV4: null }; - var SignatureV4MultiRegion = class { - static { - __name(this, "SignatureV4MultiRegion"); - } - sigv4aSigner; - sigv4Signer; - signerOptions; + var _SignatureV4MultiRegion = class _SignatureV4MultiRegion { constructor(options) { this.sigv4Signer = new import_middleware_sdk_s3.SignatureV4S3Express(options); this.signerOptions = options; @@ -31581,12 +31490,12 @@ var require_dist_cjs39 = __commonJS({ CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; if (typeof CrtSignerV4 !== "function") throw new Error(); - } catch (e3) { - e3.message = `${e3.message} + } catch (e) { + e.message = `${e.message} Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`; - throw e3; + throw e; } this.sigv4aSigner = new CrtSignerV4({ ...this.signerOptions, @@ -31596,6 +31505,8 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona return this.sigv4aSigner; } }; + __name(_SignatureV4MultiRegion, "SignatureV4MultiRegion"); + var SignatureV4MultiRegion = _SignatureV4MultiRegion; } }); @@ -31755,7 +31666,7 @@ var require_dist_cjs40 = __commonJS({ var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/; var profileNameBlockList = ["__proto__", "profile __proto__"]; var parseIni = /* @__PURE__ */ __name((iniData) => { - const map2 = {}; + const map = {}; let currentSection; let currentSubSection; for (const iniLine of iniData.split(/\r?\n/)) { @@ -31790,14 +31701,14 @@ var require_dist_cjs40 = __commonJS({ if (currentSubSection && iniLine.trimStart() === iniLine) { currentSubSection = void 0; } - map2[currentSection] = map2[currentSection] || {}; + map[currentSection] = map[currentSection] || {}; const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; - map2[currentSection][key] = value; + map[currentSection][key] = value; } } } } - return map2; + return map; }, "parseIni"); var import_slurpFile = require_slurpFile(); var swallowError = /* @__PURE__ */ __name(() => ({}), "swallowError"); @@ -31885,7 +31796,7 @@ var require_dist_cjs41 = __commonJS({ constants.delete("CONFIG_PREFIX_SEPARATOR"); constants.delete("ENV"); return [...constants].join(", "); - } catch (e3) { + } catch (e) { return functionString; } } @@ -31897,9 +31808,9 @@ var require_dist_cjs41 = __commonJS({ throw new Error(); } return config; - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError( - e3.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, + e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger } ); } @@ -31918,9 +31829,9 @@ var require_dist_cjs41 = __commonJS({ throw new Error(); } return configValue; - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError( - e3.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, + e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger } ); } @@ -31948,7 +31859,7 @@ var require_getEndpointUrlConfig = __commonJS({ var CONFIG_ENDPOINT_URL = "endpoint_url"; var getEndpointUrlConfig = (serviceId) => ({ environmentVariableSelector: (env) => { - const serviceSuffixParts = serviceId.split(" ").map((w3) => w3.toUpperCase()); + const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; if (serviceEndpointUrl) return serviceEndpointUrl; @@ -31961,7 +31872,7 @@ var require_getEndpointUrlConfig = __commonJS({ if (config && profile.services) { const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; if (servicesSection) { - const servicePrefixParts = serviceId.split(" ").map((w3) => w3.toLowerCase()); + const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); const endpointUrl2 = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; if (endpointUrl2) return endpointUrl2; @@ -32065,13 +31976,13 @@ var require_dist_cjs43 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - parseUrl: () => parseUrl3 + parseUrl: () => parseUrl }); module2.exports = __toCommonJS2(src_exports); var import_querystring_parser = require_dist_cjs42(); - var parseUrl3 = /* @__PURE__ */ __name((url) => { + var parseUrl = /* @__PURE__ */ __name((url) => { if (typeof url === "string") { - return parseUrl3(new URL(url)); + return parseUrl(new URL(url)); } const { hostname, pathname, port, protocol, search } = url; let query; @@ -32115,14 +32026,14 @@ var require_dist_cjs44 = __commonJS({ endpointMiddleware: () => endpointMiddleware, endpointMiddlewareOptions: () => endpointMiddlewareOptions, getEndpointFromInstructions: () => getEndpointFromInstructions, - getEndpointPlugin: () => getEndpointPlugin4, - resolveEndpointConfig: () => resolveEndpointConfig3, + getEndpointPlugin: () => getEndpointPlugin, + resolveEndpointConfig: () => resolveEndpointConfig, resolveParams: () => resolveParams, toEndpointV1: () => toEndpointV1 }); module2.exports = __toCommonJS2(src_exports); var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => { - const bucket = endpointParams?.Bucket || ""; + const bucket = (endpointParams == null ? void 0 : endpointParams.Bucket) || ""; if (typeof endpointParams.Bucket === "string") { endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); } @@ -32163,14 +32074,14 @@ var require_dist_cjs44 = __commonJS({ if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { return async () => { const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; - const configValue = credentials?.credentialScope ?? credentials?.CredentialScope; + const configValue = (credentials == null ? void 0 : credentials.credentialScope) ?? (credentials == null ? void 0 : credentials.CredentialScope); return configValue; }; } if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") { return async () => { const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; - const configValue = credentials?.accountId ?? credentials?.AccountId; + const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId); return configValue; }; } @@ -32192,15 +32103,15 @@ var require_dist_cjs44 = __commonJS({ return configProvider; }, "createConfigValueProvider"); var import_getEndpointFromConfig = require_getEndpointFromConfig(); - var import_url_parser3 = require_dist_cjs43(); + var import_url_parser = require_dist_cjs43(); var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => { if (typeof endpoint === "object") { if ("url" in endpoint) { - return (0, import_url_parser3.parseUrl)(endpoint.url); + return (0, import_url_parser.parseUrl)(endpoint.url); } return endpoint; } - return (0, import_url_parser3.parseUrl)(endpoint); + return (0, import_url_parser.parseUrl)(endpoint); }, "toEndpointV1"); var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => { if (!clientConfig.endpoint) { @@ -32222,8 +32133,9 @@ var require_dist_cjs44 = __commonJS({ return endpoint; }, "getEndpointFromInstructions"); var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => { + var _a; const endpointParams = {}; - const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {}; + const instructions = ((_a = instructionsSupplier == null ? void 0 : instructionsSupplier.getEndpointParameterInstructions) == null ? void 0 : _a.call(instructionsSupplier)) || {}; for (const [name, instruction] of Object.entries(instructions)) { switch (instruction.type) { case "staticContextParams": @@ -32251,15 +32163,16 @@ var require_dist_cjs44 = __commonJS({ } return endpointParams; }, "resolveParams"); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_util_middleware5 = require_dist_cjs4(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_util_middleware3 = require_dist_cjs4(); var endpointMiddleware = /* @__PURE__ */ __name(({ config, instructions }) => { return (next, context) => async (args) => { + var _a, _b, _c; if (config.endpoint) { - (0, import_core17.setFeature)(context, "ENDPOINT_OVERRIDE", "N"); + (0, import_core3.setFeature)(context, "ENDPOINT_OVERRIDE", "N"); } const endpoint = await getEndpointFromInstructions( args.input, @@ -32272,13 +32185,13 @@ var require_dist_cjs44 = __commonJS({ context ); context.endpointV2 = endpoint; - context.authSchemes = endpoint.properties?.authSchemes; - const authScheme = context.authSchemes?.[0]; + context.authSchemes = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes; + const authScheme = (_b = context.authSchemes) == null ? void 0 : _b[0]; if (authScheme) { context["signing_region"] = authScheme.signingRegion; context["signing_service"] = authScheme.signingName; - const smithyContext = (0, import_util_middleware5.getSmithyContext)(context); - const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption; + const smithyContext = (0, import_util_middleware3.getSmithyContext)(context); + const httpAuthOption = (_c = smithyContext == null ? void 0 : smithyContext.selectedHttpAuthScheme) == null ? void 0 : _c.httpAuthOption; if (httpAuthOption) { httpAuthOption.signingProperties = Object.assign( httpAuthOption.signingProperties || {}, @@ -32298,16 +32211,16 @@ var require_dist_cjs44 = __commonJS({ }); }; }, "endpointMiddleware"); - var import_middleware_serde5 = require_dist_cjs5(); + var import_middleware_serde2 = require_dist_cjs5(); var endpointMiddlewareOptions = { step: "serialize", tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], name: "endpointV2Middleware", override: true, relation: "before", - toMiddleware: import_middleware_serde5.serializerMiddlewareOption.name + toMiddleware: import_middleware_serde2.serializerMiddlewareOption.name }; - var getEndpointPlugin4 = /* @__PURE__ */ __name((config, instructions) => ({ + var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({ applyToStack: (clientStack) => { clientStack.addRelativeTo( endpointMiddleware({ @@ -32319,18 +32232,18 @@ var require_dist_cjs44 = __commonJS({ } }), "getEndpointPlugin"); var import_getEndpointFromConfig2 = require_getEndpointFromConfig(); - var resolveEndpointConfig3 = /* @__PURE__ */ __name((input) => { + var resolveEndpointConfig = /* @__PURE__ */ __name((input) => { const tls = input.tls ?? true; const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware5.normalizeProvider)(endpoint)()) : void 0; + const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware3.normalizeProvider)(endpoint)()) : void 0; const isCustomEndpoint = !!endpoint; const resolvedConfig = { ...input, endpoint: customEndpointProvider, tls, isCustomEndpoint, - useDualstackEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useDualstackEndpoint ?? false), - useFipsEndpoint: (0, import_util_middleware5.normalizeProvider)(input.useFipsEndpoint ?? false) + useDualstackEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useDualstackEndpoint ?? false), + useFipsEndpoint: (0, import_util_middleware3.normalizeProvider)(input.useFipsEndpoint ?? false) }; let configuredEndpointPromise = void 0; resolvedConfig.serviceConfiguredEndpoint = async () => { @@ -32366,42 +32279,42 @@ var require_ruleset = __commonJS({ var cv = "signingRegion"; var cw = "headers"; var cx = "signingRegionSet"; - var a3 = 6; - var b3 = false; - var c3 = true; - var d3 = "isSet"; - var e3 = "booleanEquals"; - var f3 = "error"; - var g3 = "aws.partition"; - var h3 = "stringEquals"; - var i3 = "getAttr"; - var j3 = "name"; - var k3 = "substring"; - var l3 = "bucketSuffix"; - var m3 = "parseURL"; - var n3 = "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}"; - var o3 = "endpoint"; - var p3 = "tree"; - var q3 = "aws.isVirtualHostableS3Bucket"; - var r3 = "{url#scheme}://{Bucket}.{url#authority}{url#path}"; - var s3 = "not"; - var t3 = "{url#scheme}://{url#authority}{url#path}"; - var u3 = "hardwareType"; - var v6 = "regionPrefix"; - var w3 = "bucketAliasSuffix"; - var x3 = "outpostId"; - var y2 = "isValidHostLabel"; - var z2 = "sigv4a"; - var A2 = "s3-outposts"; - var B2 = "s3"; - var C2 = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}"; - var D2 = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}"; - var E2 = "https://{Bucket}.s3.{partitionResult#dnsSuffix}"; - var F2 = "aws.parseArn"; - var G2 = "bucketArn"; - var H2 = "arnType"; - var I2 = ""; - var J2 = "s3-object-lambda"; + var a = 6; + var b = false; + var c = true; + var d = "isSet"; + var e = "booleanEquals"; + var f = "error"; + var g = "aws.partition"; + var h = "stringEquals"; + var i = "getAttr"; + var j = "name"; + var k = "substring"; + var l = "bucketSuffix"; + var m = "parseURL"; + var n = "{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}"; + var o = "endpoint"; + var p = "tree"; + var q = "aws.isVirtualHostableS3Bucket"; + var r = "{url#scheme}://{Bucket}.{url#authority}{url#path}"; + var s = "not"; + var t = "{url#scheme}://{url#authority}{url#path}"; + var u = "hardwareType"; + var v = "regionPrefix"; + var w = "bucketAliasSuffix"; + var x = "outpostId"; + var y = "isValidHostLabel"; + var z = "sigv4a"; + var A = "s3-outposts"; + var B = "s3"; + var C = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}"; + var D = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}"; + var E = "https://{Bucket}.s3.{partitionResult#dnsSuffix}"; + var F = "aws.parseArn"; + var G = "bucketArn"; + var H = "arnType"; + var I = ""; + var J = "s3-object-lambda"; var K = "accesspoint"; var L = "accessPointName"; var M = "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}"; @@ -32414,84 +32327,84 @@ var require_ruleset = __commonJS({ var T = { [ci]: false, [cj]: "String" }; var U = { [ci]: true, "default": false, [cj]: "Boolean" }; var V = { [ci]: false, [cj]: "Boolean" }; - var W = { [cl]: e3, [cm]: [{ [cn]: "Accelerate" }, true] }; - var X = { [cl]: e3, [cm]: [{ [cn]: "UseFIPS" }, true] }; - var Y = { [cl]: e3, [cm]: [{ [cn]: "UseDualStack" }, true] }; - var Z = { [cl]: d3, [cm]: [{ [cn]: "Endpoint" }] }; - var aa = { [cl]: g3, [cm]: [{ [cn]: "Region" }], [co]: "partitionResult" }; - var ab = { [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: "partitionResult" }, j3] }, "aws-cn"] }; - var ac = { [cl]: d3, [cm]: [{ [cn]: "Bucket" }] }; + var W = { [cl]: e, [cm]: [{ [cn]: "Accelerate" }, true] }; + var X = { [cl]: e, [cm]: [{ [cn]: "UseFIPS" }, true] }; + var Y = { [cl]: e, [cm]: [{ [cn]: "UseDualStack" }, true] }; + var Z = { [cl]: d, [cm]: [{ [cn]: "Endpoint" }] }; + var aa = { [cl]: g, [cm]: [{ [cn]: "Region" }], [co]: "partitionResult" }; + var ab = { [cl]: h, [cm]: [{ [cl]: i, [cm]: [{ [cn]: "partitionResult" }, j] }, "aws-cn"] }; + var ac = { [cl]: d, [cm]: [{ [cn]: "Bucket" }] }; var ad = { [cn]: "Bucket" }; - var ae = { [cl]: m3, [cm]: [{ [cn]: "Endpoint" }], [co]: "url" }; - var af = { [cl]: e3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: "url" }, "isIp"] }, true] }; + var ae = { [cl]: m, [cm]: [{ [cn]: "Endpoint" }], [co]: "url" }; + var af = { [cl]: e, [cm]: [{ [cl]: i, [cm]: [{ [cn]: "url" }, "isIp"] }, true] }; var ag = { [cn]: "url" }; var ah = { [cl]: "uriEncode", [cm]: [ad], [co]: "uri_encoded_bucket" }; - var ai = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: "s3express", [cv]: "{Region}" }] }; + var ai = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: "s3express", [cv]: "{Region}" }] }; var aj = {}; - var ak = { [cl]: q3, [cm]: [ad, false] }; - var al = { [f3]: "S3Express bucket name is not a valid virtual hostable name.", [cj]: f3 }; - var am = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j3]: "sigv4-s3express", [cu]: "s3express", [cv]: "{Region}" }] }; - var an = { [cl]: d3, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }] }; - var ao = { [cl]: e3, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }, true] }; - var ap = { [cl]: s3, [cm]: [Z] }; - var aq = { [f3]: "Unrecognized S3Express bucket name format.", [cj]: f3 }; - var ar = { [cl]: s3, [cm]: [ac] }; - var as = { [cn]: u3 }; - var at = { [ck]: [ap], [f3]: "Expected a endpoint to be specified but no endpoint was found", [cj]: f3 }; - var au = { [cs]: [{ [ct]: true, [j3]: z2, [cu]: A2, [cx]: ["*"] }, { [ct]: true, [j3]: "sigv4", [cu]: A2, [cv]: "{Region}" }] }; - var av = { [cl]: e3, [cm]: [{ [cn]: "ForcePathStyle" }, false] }; + var ak = { [cl]: q, [cm]: [ad, false] }; + var al = { [f]: "S3Express bucket name is not a valid virtual hostable name.", [cj]: f }; + var am = { [cr]: "S3Express", [cs]: [{ [ct]: true, [j]: "sigv4-s3express", [cu]: "s3express", [cv]: "{Region}" }] }; + var an = { [cl]: d, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }] }; + var ao = { [cl]: e, [cm]: [{ [cn]: "UseS3ExpressControlEndpoint" }, true] }; + var ap = { [cl]: s, [cm]: [Z] }; + var aq = { [f]: "Unrecognized S3Express bucket name format.", [cj]: f }; + var ar = { [cl]: s, [cm]: [ac] }; + var as = { [cn]: u }; + var at = { [ck]: [ap], [f]: "Expected a endpoint to be specified but no endpoint was found", [cj]: f }; + var au = { [cs]: [{ [ct]: true, [j]: z, [cu]: A, [cx]: ["*"] }, { [ct]: true, [j]: "sigv4", [cu]: A, [cv]: "{Region}" }] }; + var av = { [cl]: e, [cm]: [{ [cn]: "ForcePathStyle" }, false] }; var aw = { [cn]: "ForcePathStyle" }; - var ax = { [cl]: e3, [cm]: [{ [cn]: "Accelerate" }, false] }; - var ay = { [cl]: h3, [cm]: [{ [cn]: "Region" }, "aws-global"] }; - var az = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "us-east-1" }] }; - var aA = { [cl]: s3, [cm]: [ay] }; - var aB = { [cl]: e3, [cm]: [{ [cn]: "UseGlobalEndpoint" }, true] }; - var aC = { [cp]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] }, [cw]: {} }; - var aD = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] }; - var aE = { [cl]: e3, [cm]: [{ [cn]: "UseGlobalEndpoint" }, false] }; - var aF = { [cl]: e3, [cm]: [{ [cn]: "UseDualStack" }, false] }; + var ax = { [cl]: e, [cm]: [{ [cn]: "Accelerate" }, false] }; + var ay = { [cl]: h, [cm]: [{ [cn]: "Region" }, "aws-global"] }; + var az = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "us-east-1" }] }; + var aA = { [cl]: s, [cm]: [ay] }; + var aB = { [cl]: e, [cm]: [{ [cn]: "UseGlobalEndpoint" }, true] }; + var aC = { [cp]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{Region}" }] }, [cw]: {} }; + var aD = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{Region}" }] }; + var aE = { [cl]: e, [cm]: [{ [cn]: "UseGlobalEndpoint" }, false] }; + var aF = { [cl]: e, [cm]: [{ [cn]: "UseDualStack" }, false] }; var aG = { [cp]: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aH = { [cl]: e3, [cm]: [{ [cn]: "UseFIPS" }, false] }; + var aH = { [cl]: e, [cm]: [{ [cn]: "UseFIPS" }, false] }; var aI = { [cp]: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var aJ = { [cp]: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aK = { [cl]: e3, [cm]: [{ [cl]: i3, [cm]: [ag, "isIp"] }, false] }; - var aL = { [cp]: C2, [cq]: aD, [cw]: {} }; - var aM = { [cp]: r3, [cq]: aD, [cw]: {} }; - var aN = { [o3]: aM, [cj]: o3 }; - var aO = { [cp]: D2, [cq]: aD, [cw]: {} }; + var aK = { [cl]: e, [cm]: [{ [cl]: i, [cm]: [ag, "isIp"] }, false] }; + var aL = { [cp]: C, [cq]: aD, [cw]: {} }; + var aM = { [cp]: r, [cq]: aD, [cw]: {} }; + var aN = { [o]: aM, [cj]: o }; + var aO = { [cp]: D, [cq]: aD, [cw]: {} }; var aP = { [cp]: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var aQ = { [f3]: "Invalid region: region was not a valid DNS name.", [cj]: f3 }; - var aR = { [cn]: G2 }; - var aS = { [cn]: H2 }; - var aT = { [cl]: i3, [cm]: [aR, "service"] }; + var aQ = { [f]: "Invalid region: region was not a valid DNS name.", [cj]: f }; + var aR = { [cn]: G }; + var aS = { [cn]: H }; + var aT = { [cl]: i, [cm]: [aR, "service"] }; var aU = { [cn]: L }; - var aV = { [ck]: [Y], [f3]: "S3 Object Lambda does not support Dual-stack", [cj]: f3 }; - var aW = { [ck]: [W], [f3]: "S3 Object Lambda does not support S3 Accelerate", [cj]: f3 }; - var aX = { [ck]: [{ [cl]: d3, [cm]: [{ [cn]: "DisableAccessPoints" }] }, { [cl]: e3, [cm]: [{ [cn]: "DisableAccessPoints" }, true] }], [f3]: "Access points are not supported for this operation", [cj]: f3 }; - var aY = { [ck]: [{ [cl]: d3, [cm]: [{ [cn]: "UseArnRegion" }] }, { [cl]: e3, [cm]: [{ [cn]: "UseArnRegion" }, false] }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, "{Region}"] }] }], [f3]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cj]: f3 }; - var aZ = { [cl]: i3, [cm]: [{ [cn]: "bucketPartition" }, j3] }; - var ba = { [cl]: i3, [cm]: [aR, "accountId"] }; - var bb = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: J2, [cv]: "{bucketArn#region}" }] }; - var bc = { [f3]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cj]: f3 }; - var bd = { [f3]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cj]: f3 }; - var be = { [f3]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cj]: f3 }; - var bf = { [f3]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cj]: f3 }; - var bg = { [f3]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cj]: f3 }; - var bh = { [f3]: "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", [cj]: f3 }; - var bi = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{bucketArn#region}" }] }; - var bj = { [cs]: [{ [ct]: true, [j3]: z2, [cu]: A2, [cx]: ["*"] }, { [ct]: true, [j3]: "sigv4", [cu]: A2, [cv]: "{bucketArn#region}" }] }; - var bk = { [cl]: F2, [cm]: [ad] }; + var aV = { [ck]: [Y], [f]: "S3 Object Lambda does not support Dual-stack", [cj]: f }; + var aW = { [ck]: [W], [f]: "S3 Object Lambda does not support S3 Accelerate", [cj]: f }; + var aX = { [ck]: [{ [cl]: d, [cm]: [{ [cn]: "DisableAccessPoints" }] }, { [cl]: e, [cm]: [{ [cn]: "DisableAccessPoints" }, true] }], [f]: "Access points are not supported for this operation", [cj]: f }; + var aY = { [ck]: [{ [cl]: d, [cm]: [{ [cn]: "UseArnRegion" }] }, { [cl]: e, [cm]: [{ [cn]: "UseArnRegion" }, false] }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, "{Region}"] }] }], [f]: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [cj]: f }; + var aZ = { [cl]: i, [cm]: [{ [cn]: "bucketPartition" }, j] }; + var ba = { [cl]: i, [cm]: [aR, "accountId"] }; + var bb = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: J, [cv]: "{bucketArn#region}" }] }; + var bc = { [f]: "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", [cj]: f }; + var bd = { [f]: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [cj]: f }; + var be = { [f]: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [cj]: f }; + var bf = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", [cj]: f }; + var bg = { [f]: "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", [cj]: f }; + var bh = { [f]: "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", [cj]: f }; + var bi = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: B, [cv]: "{bucketArn#region}" }] }; + var bj = { [cs]: [{ [ct]: true, [j]: z, [cu]: A, [cx]: ["*"] }, { [ct]: true, [j]: "sigv4", [cu]: A, [cv]: "{bucketArn#region}" }] }; + var bk = { [cl]: F, [cm]: [ad] }; var bl = { [cp]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bm = { [cp]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bn = { [cp]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bo = { [cp]: Q, [cq]: aD, [cw]: {} }; var bp = { [cp]: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} }; var bq = { [cn]: "UseObjectLambdaEndpoint" }; - var br = { [cs]: [{ [ct]: true, [j3]: "sigv4", [cu]: J2, [cv]: "{Region}" }] }; + var br = { [cs]: [{ [ct]: true, [j]: "sigv4", [cu]: J, [cv]: "{Region}" }] }; var bs = { [cp]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bt = { [cp]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bu = { [cp]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; - var bv = { [cp]: t3, [cq]: aD, [cw]: {} }; + var bv = { [cp]: t, [cq]: aD, [cw]: {} }; var bw = { [cp]: "https://s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} }; var bx = [{ [cn]: "Region" }]; var by = [{ [cn]: "Endpoint" }]; @@ -32499,39 +32412,39 @@ var require_ruleset = __commonJS({ var bA = [Y]; var bB = [W]; var bC = [Z, ae]; - var bD = [{ [cl]: d3, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }] }, { [cl]: e3, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }, true] }]; + var bD = [{ [cl]: d, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }] }, { [cl]: e, [cm]: [{ [cn]: "DisableS3ExpressSessionAuth" }, true] }]; var bE = [af]; var bF = [ah]; var bG = [ak]; var bH = [X]; - var bI = [{ [cl]: k3, [cm]: [ad, 6, 14, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 14, 16, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bJ = [{ [ck]: [X], [o3]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }]; - var bK = [{ [cl]: k3, [cm]: [ad, 6, 15, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 15, 17, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bL = [{ [cl]: k3, [cm]: [ad, 6, 19, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 19, 21, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bM = [{ [cl]: k3, [cm]: [ad, 6, 20, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 20, 22, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bN = [{ [cl]: k3, [cm]: [ad, 6, 26, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k3, [cm]: [ad, 26, 28, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h3, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; - var bO = [{ [ck]: [X], [o3]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }]; + var bI = [{ [cl]: k, [cm]: [ad, 6, 14, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 14, 16, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bJ = [{ [ck]: [X], [o]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o }, { [o]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o }]; + var bK = [{ [cl]: k, [cm]: [ad, 6, 15, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 15, 17, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bL = [{ [cl]: k, [cm]: [ad, 6, 19, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 19, 21, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bM = [{ [cl]: k, [cm]: [ad, 6, 20, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 20, 22, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bN = [{ [cl]: k, [cm]: [ad, 6, 26, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k, [cm]: [ad, 26, 28, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }]; + var bO = [{ [ck]: [X], [o]: { [cp]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o }, { [o]: { [cp]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o }]; var bP = [ac]; - var bQ = [{ [cl]: y2, [cm]: [{ [cn]: x3 }, false] }]; - var bR = [{ [cl]: h3, [cm]: [{ [cn]: v6 }, "beta"] }]; + var bQ = [{ [cl]: y, [cm]: [{ [cn]: x }, false] }]; + var bR = [{ [cl]: h, [cm]: [{ [cn]: v }, "beta"] }]; var bS = ["*"]; var bT = [aa]; - var bU = [{ [cl]: y2, [cm]: [{ [cn]: "Region" }, false] }]; - var bV = [{ [cl]: h3, [cm]: [{ [cn]: "Region" }, "us-east-1"] }]; - var bW = [{ [cl]: h3, [cm]: [aS, K] }]; - var bX = [{ [cl]: i3, [cm]: [aR, "resourceId[1]"], [co]: L }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [aU, I2] }] }]; + var bU = [{ [cl]: y, [cm]: [{ [cn]: "Region" }, false] }]; + var bV = [{ [cl]: h, [cm]: [{ [cn]: "Region" }, "us-east-1"] }]; + var bW = [{ [cl]: h, [cm]: [aS, K] }]; + var bX = [{ [cl]: i, [cm]: [aR, "resourceId[1]"], [co]: L }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [aU, I] }] }]; var bY = [aR, "resourceId[1]"]; - var bZ = [{ [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, I2] }] }]; - var ca = [{ [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[2]"] }] }] }]; + var bZ = [{ [cl]: s, [cm]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, I] }] }]; + var ca = [{ [cl]: s, [cm]: [{ [cl]: d, [cm]: [{ [cl]: i, [cm]: [aR, "resourceId[2]"] }] }] }]; var cb = [aR, "resourceId[2]"]; - var cc = [{ [cl]: g3, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }], [co]: "bucketPartition" }]; - var cd = [{ [cl]: h3, [cm]: [aZ, { [cl]: i3, [cm]: [{ [cn]: "partitionResult" }, j3] }] }]; - var ce = [{ [cl]: y2, [cm]: [{ [cl]: i3, [cm]: [aR, "region"] }, true] }]; - var cf = [{ [cl]: y2, [cm]: [ba, false] }]; - var cg = [{ [cl]: y2, [cm]: [aU, false] }]; - var ch = [{ [cl]: y2, [cm]: [{ [cn]: "Region" }, true] }]; - var _data3 = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, rules: [{ [ck]: [{ [cl]: d3, [cm]: bx }], rules: [{ [ck]: [W, X], error: "Accelerate cannot be used with FIPS", [cj]: f3 }, { [ck]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f3 }, { [ck]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cj]: f3 }, { [ck]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f3 }, { [ck]: [X, aa, ab], error: "Partition does not support FIPS", [cj]: f3 }, { [ck]: [ac, { [cl]: k3, [cm]: [ad, 0, a3, c3], [co]: l3 }, { [cl]: h3, [cm]: [{ [cn]: l3 }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f3 }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f3 }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp]: r3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp]: r3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p3 }, { [ck]: bK, rules: bJ, [cj]: p3 }, { [ck]: bL, rules: bJ, [cj]: p3 }, { [ck]: bM, rules: bJ, [cj]: p3 }, { [ck]: bN, rules: bJ, [cj]: p3 }, aq], [cj]: p3 }, { [ck]: bI, rules: bO, [cj]: p3 }, { [ck]: bK, rules: bO, [cj]: p3 }, { [ck]: bL, rules: bO, [cj]: p3 }, { [ck]: bM, rules: bO, [cj]: p3 }, { [ck]: bN, rules: bO, [cj]: p3 }, aq], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [ar, an, ao], rules: [{ [ck]: bC, endpoint: { [cp]: t3, [cq]: ai, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [ac, { [cl]: k3, [cm]: [ad, 49, 50, c3], [co]: u3 }, { [cl]: k3, [cm]: [ad, 8, 12, c3], [co]: v6 }, { [cl]: k3, [cm]: [ad, 0, 7, c3], [co]: w3 }, { [cl]: k3, [cm]: [ad, 32, 49, c3], [co]: x3 }, { [cl]: g3, [cm]: bx, [co]: "regionPartition" }, { [cl]: h3, [cm]: [{ [cn]: w3 }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h3, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [{ [cl]: h3, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f3 }], [cj]: p3 }, { [ck]: bP, rules: [{ [ck]: [Z, { [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [{ [cl]: m3, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f3 }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f3 }, { [ck]: [Y, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, X, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, X, ax, ap, aA, aE], endpoint: aC, [cj]: o3 }, { [ck]: [aF, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, X, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, X, ax, ap, aA, aE], endpoint: aG, [cj]: o3 }, { [ck]: [Y, aH, W, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, aH, W, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, aH, W, ap, aA, aE], endpoint: aI, [cj]: o3 }, { [ck]: [Y, aH, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, af, ay], endpoint: { [cp]: C2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, aK, ay], endpoint: { [cp]: r3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o3 }, { endpoint: aL, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o3 }, aN], [cj]: p3 }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aE], endpoint: aL, [cj]: o3 }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aE], endpoint: aM, [cj]: o3 }, { [ck]: [aF, aH, W, ap, ay], endpoint: { [cp]: D2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, W, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o3 }, { endpoint: aO, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, W, ap, aA, aE], endpoint: aO, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp]: E2, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: E2, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: aP, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [Z, ae, { [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q3, [cm]: [ad, c3] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [av, { [cl]: F2, [cm]: bz, [co]: G2 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[0]"], [co]: H2 }, { [cl]: s3, [cm]: [{ [cl]: h3, [cm]: [aS, I2] }] }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [aT, J2] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h3, [cm]: [ba, I2] }], error: "Invalid ARN: Missing account id", [cj]: f3 }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp]: M, [cq]: bb, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f3 }], [cj]: p3 }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h3, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h3, [cm]: [aT, B2] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f3 }, { [ck]: [X, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [X, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z, ae], endpoint: { [cp]: M, [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f3 }], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: y2, [cm]: [aU, c3] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: e3, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c3] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f3 }, { [ck]: [{ [cl]: g3, [cm]: bx, [co]: N }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: N }, j3] }, { [cl]: i3, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct]: c3, name: z2, [cu]: B2, [cx]: bS }] }, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid Access Point Name", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { [ck]: [{ [cl]: h3, [cm]: [aT, A2] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: d3, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f3 }, { [ck]: [{ [cl]: i3, [cm]: bY, [co]: x3 }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i3, [cm]: cb, [co]: O }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[3]"], [co]: L }], rules: [{ [ck]: [{ [cl]: h3, [cm]: [{ [cn]: O }, K] }], rules: [{ [ck]: bC, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: expected an access point name", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f3 }], [cj]: p3 }, bd], [cj]: p3 }, be], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: No ARN type specified", [cj]: f3 }], [cj]: p3 }, { [ck]: [{ [cl]: k3, [cm]: [ad, 0, 4, b3], [co]: P }, { [cl]: h3, [cm]: [{ [cn]: P }, "arn:"] }, { [cl]: s3, [cm]: [{ [cl]: d3, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f3 }, { [ck]: [{ [cl]: e3, [cm]: [aw, c3] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f3 }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y, ap, X, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, ap, X, aA, aB], rules: [{ endpoint: bl, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, ap, X, aA, aE], endpoint: bl, [cj]: o3 }, { [ck]: [aF, ap, X, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, X, aA, aB], rules: [{ endpoint: bm, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, X, aA, aE], endpoint: bm, [cj]: o3 }, { [ck]: [Y, ap, aH, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y, ap, aH, aA, aE], endpoint: bn, [cj]: o3 }, { [ck]: [aF, Z, ae, aH, ay], endpoint: { [cp]: Q, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, Z, ae, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o3 }, { endpoint: bo, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, Z, ae, aH, aA, aE], endpoint: bo, [cj]: o3 }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp]: R, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: R, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bp, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o3 }], [cj]: p3 }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: d3, [cm]: [bq] }, { [cl]: e3, [cm]: [bq, c3] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp]: t3, [cq]: br, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [ar], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X, Y, ap, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X, Y, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o3 }], [cj]: p3 }, { [ck]: [X, Y, ap, aA, aE], endpoint: bs, [cj]: o3 }, { [ck]: [X, aF, ap, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X, aF, ap, aA, aB], rules: [{ endpoint: bt, [cj]: o3 }], [cj]: p3 }, { [ck]: [X, aF, ap, aA, aE], endpoint: bt, [cj]: o3 }, { [ck]: [aH, Y, ap, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, Y, ap, aA, aE], endpoint: bu, [cj]: o3 }, { [ck]: [aH, aF, Z, ae, ay], endpoint: { [cp]: t3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z, ae, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o3 }, { endpoint: bv, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, Z, ae, aA, aE], endpoint: bv, [cj]: o3 }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp]: S, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: S, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bw, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "A region must be set when sending requests to S3.", [cj]: f3 }] }; - exports2.ruleSet = _data3; + var cc = [{ [cl]: g, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }], [co]: "bucketPartition" }]; + var cd = [{ [cl]: h, [cm]: [aZ, { [cl]: i, [cm]: [{ [cn]: "partitionResult" }, j] }] }]; + var ce = [{ [cl]: y, [cm]: [{ [cl]: i, [cm]: [aR, "region"] }, true] }]; + var cf = [{ [cl]: y, [cm]: [ba, false] }]; + var cg = [{ [cl]: y, [cm]: [aU, false] }]; + var ch = [{ [cl]: y, [cm]: [{ [cn]: "Region" }, true] }]; + var _data = { version: "1.0", parameters: { Bucket: T, Region: T, UseFIPS: U, UseDualStack: U, Endpoint: T, ForcePathStyle: U, Accelerate: U, UseGlobalEndpoint: U, UseObjectLambdaEndpoint: V, Key: T, Prefix: T, CopySource: T, DisableAccessPoints: V, DisableMultiRegionAccessPoints: U, UseArnRegion: V, UseS3ExpressControlEndpoint: V, DisableS3ExpressSessionAuth: V }, rules: [{ [ck]: [{ [cl]: d, [cm]: bx }], rules: [{ [ck]: [W, X], error: "Accelerate cannot be used with FIPS", [cj]: f }, { [ck]: [Y, Z], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f }, { [ck]: [Z, X], error: "A custom endpoint cannot be combined with FIPS", [cj]: f }, { [ck]: [Z, W], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f }, { [ck]: [X, aa, ab], error: "Partition does not support FIPS", [cj]: f }, { [ck]: [ac, { [cl]: k, [cm]: [ad, 0, a, c], [co]: l }, { [cl]: h, [cm]: [{ [cn]: l }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n, [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ endpoint: { [cp]: r, [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }, al], [cj]: p }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp]: n, [cq]: am, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ endpoint: { [cp]: r, [cq]: am, [cw]: aj }, [cj]: o }], [cj]: p }, al], [cj]: p }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }], [cj]: p }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p }, { [ck]: bK, rules: bJ, [cj]: p }, { [ck]: bL, rules: bJ, [cj]: p }, { [ck]: bM, rules: bJ, [cj]: p }, { [ck]: bN, rules: bJ, [cj]: p }, aq], [cj]: p }, { [ck]: bI, rules: bO, [cj]: p }, { [ck]: bK, rules: bO, [cj]: p }, { [ck]: bL, rules: bO, [cj]: p }, { [ck]: bM, rules: bO, [cj]: p }, { [ck]: bN, rules: bO, [cj]: p }, aq], [cj]: p }, al], [cj]: p }, { [ck]: [ar, an, ao], rules: [{ [ck]: bC, endpoint: { [cp]: t, [cq]: ai, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o }], [cj]: p }, { [ck]: [ac, { [cl]: k, [cm]: [ad, 49, 50, c], [co]: u }, { [cl]: k, [cm]: [ad, 8, 12, c], [co]: v }, { [cl]: k, [cm]: [ad, 0, 7, c], [co]: w }, { [cl]: k, [cm]: [ad, 32, 49, c], [co]: x }, { [cl]: g, [cm]: bx, [co]: "regionPartition" }, { [cl]: h, [cm]: [{ [cn]: w }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { endpoint: { [cp]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { [ck]: [{ [cl]: h, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at, { [ck]: bC, endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { endpoint: { [cp]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o }], [cj]: p }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f }], [cj]: p }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f }], [cj]: p }, { [ck]: bP, rules: [{ [ck]: [Z, { [cl]: s, [cm]: [{ [cl]: d, [cm]: [{ [cl]: m, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f }, { [ck]: [Y, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, X, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o }], [cj]: p }, { [ck]: [Y, X, ax, ap, aA, aE], endpoint: aC, [cj]: o }, { [ck]: [aF, X, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, X, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o }], [cj]: p }, { [ck]: [aF, X, ax, ap, aA, aE], endpoint: aG, [cj]: o }, { [ck]: [Y, aH, W, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, aH, W, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o }], [cj]: p }, { [ck]: [Y, aH, W, ap, aA, aE], endpoint: aI, [cj]: o }, { [ck]: [Y, aH, ax, ap, ay], endpoint: { [cp]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o }], [cj]: p }, { [ck]: [Y, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, af, ay], endpoint: { [cp]: C, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, aK, ay], endpoint: { [cp]: r, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o }, { endpoint: aL, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o }, aN], [cj]: p }, { [ck]: [aF, aH, ax, Z, ae, af, aA, aE], endpoint: aL, [cj]: o }, { [ck]: [aF, aH, ax, Z, ae, aK, aA, aE], endpoint: aM, [cj]: o }, { [ck]: [aF, aH, W, ap, ay], endpoint: { [cp]: D, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, W, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o }, { endpoint: aO, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, W, ap, aA, aE], endpoint: aO, [cj]: o }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp]: E, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: E, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: aP, [cj]: o }], [cj]: p }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [Z, ae, { [cl]: h, [cm]: [{ [cl]: i, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q, [cm]: [ad, c] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [av, { [cl]: F, [cm]: bz, [co]: G }], rules: [{ [ck]: [{ [cl]: i, [cm]: [aR, "resourceId[0]"], [co]: H }, { [cl]: s, [cm]: [{ [cl]: h, [cm]: [aS, I] }] }], rules: [{ [ck]: [{ [cl]: h, [cm]: [aT, J] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h, [cm]: [ba, I] }], error: "Invalid ARN: Missing account id", [cj]: f }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp]: M, [cq]: bb, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o }], [cj]: p }, bc], [cj]: p }, bd], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, bg], [cj]: p }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f }], [cj]: p }, bh], [cj]: p }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f }], [cj]: p }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce, rules: [{ [ck]: [{ [cl]: h, [cm]: [aT, B] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f }, { [ck]: [X, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [X, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, Y], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, Z, ae], endpoint: { [cp]: M, [cq]: bi, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF], endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o }], [cj]: p }, bc], [cj]: p }, bd], [cj]: p }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f }], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, bg], [cj]: p }], [cj]: p }], [cj]: p }, { [ck]: [{ [cl]: y, [cm]: [aU, c] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f }, { [ck]: [{ [cl]: e, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f }, { [ck]: [{ [cl]: g, [cm]: bx, [co]: N }], rules: [{ [ck]: [{ [cl]: h, [cm]: [{ [cl]: i, [cm]: [{ [cn]: N }, j] }, { [cl]: i, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct]: c, name: z, [cu]: B, [cx]: bS }] }, [cw]: aj }, [cj]: o }], [cj]: p }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f }], [cj]: p }], [cj]: p }, { error: "Invalid Access Point Name", [cj]: f }], [cj]: p }, bh], [cj]: p }, { [ck]: [{ [cl]: h, [cm]: [aT, A] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f }, { [ck]: [{ [cl]: d, [cm]: [{ [cl]: i, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f }, { [ck]: [{ [cl]: i, [cm]: bY, [co]: x }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i, [cm]: cb, [co]: O }], rules: [{ [ck]: [{ [cl]: i, [cm]: [aR, "resourceId[3]"], [co]: L }], rules: [{ [ck]: [{ [cl]: h, [cm]: [{ [cn]: O }, K] }], rules: [{ [ck]: bC, endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o }], [cj]: p }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f }], [cj]: p }, { error: "Invalid ARN: expected an access point name", [cj]: f }], [cj]: p }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f }], [cj]: p }, bd], [cj]: p }, be], [cj]: p }, bf], [cj]: p }], [cj]: p }], [cj]: p }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f }], [cj]: p }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f }], [cj]: p }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f }], [cj]: p }, { error: "Invalid ARN: No ARN type specified", [cj]: f }], [cj]: p }, { [ck]: [{ [cl]: k, [cm]: [ad, 0, 4, b], [co]: P }, { [cl]: h, [cm]: [{ [cn]: P }, "arn:"] }, { [cl]: s, [cm]: [{ [cl]: d, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f }, { [ck]: [{ [cl]: e, [cm]: [aw, c] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y, ap, X, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, ap, X, aA, aB], rules: [{ endpoint: bl, [cj]: o }], [cj]: p }, { [ck]: [Y, ap, X, aA, aE], endpoint: bl, [cj]: o }, { [ck]: [aF, ap, X, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, ap, X, aA, aB], rules: [{ endpoint: bm, [cj]: o }], [cj]: p }, { [ck]: [aF, ap, X, aA, aE], endpoint: bm, [cj]: o }, { [ck]: [Y, ap, aH, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [Y, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o }], [cj]: p }, { [ck]: [Y, ap, aH, aA, aE], endpoint: bn, [cj]: o }, { [ck]: [aF, Z, ae, aH, ay], endpoint: { [cp]: Q, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, Z, ae, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o }, { endpoint: bo, [cj]: o }], [cj]: p }, { [ck]: [aF, Z, ae, aH, aA, aE], endpoint: bo, [cj]: o }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp]: R, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: R, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: bp, [cj]: o }], [cj]: p }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o }], [cj]: p }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f }], [cj]: p }], [cj]: p }], [cj]: p }, { [ck]: [{ [cl]: d, [cm]: [bq] }, { [cl]: e, [cm]: [bq, c] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp]: t, [cq]: br, [cw]: aj }, [cj]: o }, { [ck]: bH, endpoint: { [cp]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o }, { endpoint: { [cp]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br, [cw]: aj }, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }, { [ck]: [ar], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X, Y, ap, ay], endpoint: { [cp]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [X, Y, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o }], [cj]: p }, { [ck]: [X, Y, ap, aA, aE], endpoint: bs, [cj]: o }, { [ck]: [X, aF, ap, ay], endpoint: { [cp]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [X, aF, ap, aA, aB], rules: [{ endpoint: bt, [cj]: o }], [cj]: p }, { [ck]: [X, aF, ap, aA, aE], endpoint: bt, [cj]: o }, { [ck]: [aH, Y, ap, ay], endpoint: { [cp]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, Y, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o }], [cj]: p }, { [ck]: [aH, Y, ap, aA, aE], endpoint: bu, [cj]: o }, { [ck]: [aH, aF, Z, ae, ay], endpoint: { [cp]: t, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, Z, ae, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o }, { endpoint: bv, [cj]: o }], [cj]: p }, { [ck]: [aH, aF, Z, ae, aA, aE], endpoint: bv, [cj]: o }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp]: S, [cq]: az, [cw]: aj }, [cj]: o }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp]: S, [cq]: aD, [cw]: aj }, [cj]: o }, { endpoint: bw, [cj]: o }], [cj]: p }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o }], [cj]: p }, aQ], [cj]: p }], [cj]: p }], [cj]: p }, { error: "A region must be set when sending requests to S3.", [cj]: f }] }; + exports2.ruleSet = _data; } }); @@ -32544,7 +32457,7 @@ var require_endpointResolver = __commonJS({ var util_endpoints_1 = require_dist_cjs31(); var util_endpoints_2 = require_dist_cjs30(); var ruleset_1 = require_ruleset(); - var cache3 = new util_endpoints_2.EndpointCache({ + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: [ "Accelerate", @@ -32563,13 +32476,13 @@ var require_endpointResolver = __commonJS({ "UseS3ExpressControlEndpoint" ] }); - var defaultEndpointResolver3 = (endpointParams, context = {}) => { - return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - exports2.defaultEndpointResolver = defaultEndpointResolver3; + exports2.defaultEndpointResolver = defaultEndpointResolver; util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); @@ -32606,7 +32519,7 @@ var require_httpAuthSchemeProvider = __commonJS({ }; }; exports2.defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider); - function createAwsAuthSigv4HttpAuthOption3(authParameters) { + function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { @@ -32636,9 +32549,9 @@ var require_httpAuthSchemeProvider = __commonJS({ }) }; } - var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver3, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { + var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => { - const endpoint = defaultEndpointResolver3(authParameters); + const endpoint = defaultEndpointResolver(authParameters); const authSchemes = endpoint.properties?.authSchemes; if (!authSchemes) { return defaultHttpAuthSchemeResolver(authParameters); @@ -32653,8 +32566,8 @@ var require_httpAuthSchemeProvider = __commonJS({ let schemeId; if (name === "sigv4a") { schemeId = "aws.auth#sigv4a"; - const sigv4Present = authSchemes.find((s3) => { - const name2 = s3.name.toLowerCase(); + const sigv4Present = authSchemes.find((s) => { + const name2 = s.name.toLowerCase(); return name2 !== "sigv4a" && name2.startsWith("sigv4"); }); if (!signature_v4_multi_region_1.signatureV4CrtContainer.CrtSignerV4 && sigv4Present) { @@ -32682,24 +32595,24 @@ var require_httpAuthSchemeProvider = __commonJS({ const options = []; switch (authParameters.operation) { default: { - options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); } } return options; }; exports2.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultS3HttpAuthSchemeProvider, { - "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption3, + "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption, "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption }); - var resolveHttpAuthSchemeConfig3 = (config) => { + var resolveHttpAuthSchemeConfig = (config) => { const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0); return { ...config_1 }; }; - exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); @@ -32739,28 +32652,24 @@ var require_dist_cjs45 = __commonJS({ return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">").replace(/\r/g, " ").replace(/\n/g, " ").replace(/\u0085/g, "…").replace(/\u2028/, "
"); } __name(escapeElement, "escapeElement"); - var XmlText = class { + var _XmlText = class _XmlText { constructor(value) { this.value = value; } - static { - __name(this, "XmlText"); - } toString() { return escapeElement("" + this.value); } }; - var XmlNode = class _XmlNode { + __name(_XmlText, "XmlText"); + var XmlText = _XmlText; + var _XmlNode = class _XmlNode2 { constructor(name, children = []) { this.name = name; this.children = children; + this.attributes = {}; } - static { - __name(this, "XmlNode"); - } - attributes = {}; static of(name, childText, withName) { - const node = new _XmlNode(name); + const node = new _XmlNode2(name); if (childText !== void 0) { node.addChildNode(new XmlText(childText)); } @@ -32818,7 +32727,7 @@ var require_dist_cjs45 = __commonJS({ */ cc(input, field, withName = field) { if (input[field] != null) { - const node = _XmlNode.of(field, input[field]).withName(withName); + const node = _XmlNode2.of(field, input[field]).withName(withName); this.c(node); } } @@ -32842,7 +32751,7 @@ var require_dist_cjs45 = __commonJS({ lc(input, listName, memberName, valueProvider) { if (input[listName] != null) { const nodes = valueProvider(); - const containerNode = new _XmlNode(memberName); + const containerNode = new _XmlNode2(memberName); nodes.map((node) => { containerNode.c(node); }); @@ -32859,9 +32768,11 @@ var require_dist_cjs45 = __commonJS({ xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`; } } - return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}`; + return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}`; } }; + __name(_XmlNode, "XmlNode"); + var XmlNode = _XmlNode; } }); @@ -32871,7 +32782,7 @@ var require_package = __commonJS({ module2.exports = { name: "@aws-sdk/client-s3", description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native", - version: "3.731.1", + version: "3.705.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-s3", @@ -32883,9 +32794,9 @@ var require_package = __commonJS({ "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo s3", test: "yarn g:vitest run", - "test:browser": "node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts", + "test:browser": "node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts --mode development", "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts", - "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser", "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts", "test:watch": "yarn g:vitest watch" }, @@ -32897,71 +32808,73 @@ var require_package = __commonJS({ "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.731.0", - "@aws-sdk/credential-provider-node": "3.731.1", - "@aws-sdk/middleware-bucket-endpoint": "3.731.0", - "@aws-sdk/middleware-expect-continue": "3.731.0", - "@aws-sdk/middleware-flexible-checksums": "3.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-location-constraint": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-sdk-s3": "3.731.0", - "@aws-sdk/middleware-ssec": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/signature-v4-multi-region": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@aws-sdk/xml-builder": "3.723.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/eventstream-serde-browser": "^4.0.0", - "@smithy/eventstream-serde-config-resolver": "^4.0.0", - "@smithy/eventstream-serde-node": "^4.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-blob-browser": "^4.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/hash-stream-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/md5-js": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-stream": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", - "@smithy/util-waiter": "^4.0.0", + "@aws-sdk/client-sso-oidc": "3.699.0", + "@aws-sdk/client-sts": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-bucket-endpoint": "3.696.0", + "@aws-sdk/middleware-expect-continue": "3.696.0", + "@aws-sdk/middleware-flexible-checksums": "3.701.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-location-constraint": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-sdk-s3": "3.696.0", + "@aws-sdk/middleware-ssec": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/signature-v4-multi-region": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@aws-sdk/xml-builder": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/eventstream-serde-browser": "^3.0.13", + "@smithy/eventstream-serde-config-resolver": "^3.0.10", + "@smithy/eventstream-serde-node": "^3.0.12", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-blob-browser": "^3.1.9", + "@smithy/hash-node": "^3.0.10", + "@smithy/hash-stream-node": "^3.1.9", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/md5-js": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-stream": "^3.3.1", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.9", tslib: "^2.6.2" }, devDependencies: { - "@aws-sdk/signature-v4-crt": "3.731.0", - "@tsconfig/node18": "18.2.4", - "@types/node": "^18.19.69", + "@aws-sdk/signature-v4-crt": "3.696.0", + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" }, engines: { - node: ">=18.0.0" + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -33027,7 +32940,7 @@ var require_dist_cjs46 = __commonJS({ fromEnv: () => fromEnv }); module2.exports = __toCommonJS2(src_exports); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var ENV_KEY = "AWS_ACCESS_KEY_ID"; var ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; @@ -33036,7 +32949,8 @@ var require_dist_cjs46 = __commonJS({ var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE"; var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID"; var fromEnv = /* @__PURE__ */ __name((init) => async () => { - init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv"); + var _a; + (_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env - fromEnv"); const accessKeyId = process.env[ENV_KEY]; const secretAccessKey = process.env[ENV_SECRET]; const sessionToken = process.env[ENV_SESSION]; @@ -33052,10 +32966,10 @@ var require_dist_cjs46 = __commonJS({ ...credentialScope && { credentialScope }, ...accountId && { accountId } }; - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g"); return credentials; } - throw new import_property_provider2.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger }); + throw new import_property_provider2.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init == null ? void 0 : init.logger }); }, "fromEnv"); } }); @@ -33102,12 +33016,13 @@ var require_dist_cjs47 = __commonJS({ var import_http = require("http"); function httpRequest(options) { return new Promise((resolve, reject) => { + var _a; const req2 = (0, import_http.request)({ method: "GET", ...options, // Node.js http module doesn't accept hostname with square brackets // Refs: https://github.com/nodejs/node/issues/39738 - hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1") + hostname: (_a = options.hostname) == null ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") }); req2.on("error", (err) => { reject(Object.assign(new import_property_provider2.ProviderError("Unable to connect to instance metadata service"), err)); @@ -33154,7 +33069,7 @@ var require_dist_cjs47 = __commonJS({ }) => ({ maxRetries, timeout }), "providerConfigFromInit"); var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => { let promise = toRetry(); - for (let i3 = 0; i3 < maxRetries; i3++) { + for (let i = 0; i < maxRetries; i++) { promise = promise.catch(toRetry); } return promise; @@ -33231,19 +33146,18 @@ var require_dist_cjs47 = __commonJS({ } ); }, "getCmdsUri"); - var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider2.CredentialsProviderError { + var _InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError2 extends import_property_provider2.CredentialsProviderError { constructor(message, tryNextLink = true) { super(message, tryNextLink); this.tryNextLink = tryNextLink; this.name = "InstanceMetadataV1FallbackError"; - Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype); - } - static { - __name(this, "InstanceMetadataV1FallbackError"); + Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError2.prototype); } }; - var import_node_config_provider3 = require_dist_cjs41(); - var import_url_parser3 = require_dist_cjs43(); + __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); + var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; + var import_node_config_provider = require_dist_cjs41(); + var import_url_parser = require_dist_cjs43(); var Endpoint = /* @__PURE__ */ ((Endpoint2) => { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; @@ -33269,10 +33183,10 @@ var require_dist_cjs47 = __commonJS({ default: "IPv4" /* IPv4 */ }; - var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser3.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); - var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider3.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); + var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); + var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => { - const endpointMode = await (0, import_node_config_provider3.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)(); + const endpointMode = await (0, import_node_config_provider.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)(); switch (endpointMode) { case "IPv4": return "http://169.254.169.254"; @@ -33300,7 +33214,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL }; }, "getExtendedInstanceMetadataCredentials"); var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => { - const logger = options?.logger || console; + const logger = (options == null ? void 0 : options.logger) || console; let pastCredentials; return async () => { let credentials; @@ -33309,12 +33223,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { credentials = getExtendedInstanceMetadataCredentials(credentials, logger); } - } catch (e3) { + } catch (e) { if (pastCredentials) { - logger.warn("Credential renew failed: ", e3); + logger.warn("Credential renew failed: ", e); credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); } else { - throw e3; + throw e; } } pastCredentials = credentials; @@ -33332,11 +33246,12 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL const { logger, profile } = init; const { timeout, maxRetries } = providerConfigFromInit(init); const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => { - const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null; + var _a; + const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) == null ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null; if (isImdsV1Fallback) { let fallbackBlockedFromProfile = false; let fallbackBlockedFromProcessEnv = false; - const configValue = await (0, import_node_config_provider3.loadConfig)( + const configValue = await (0, import_node_config_provider.loadConfig)( { environmentVariableSelector: (env) => { const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; @@ -33403,21 +33318,21 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL return async () => { const endpoint = await getInstanceMetadataEndpoint(); if (disableFetchToken) { - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } else { let token; try { token = (await getMetadataToken({ ...endpoint, timeout })).toString(); } catch (error2) { - if (error2?.statusCode === 400) { + if ((error2 == null ? void 0 : error2.statusCode) === 400) { throw Object.assign(error2, { message: "EC2 Metadata token request returned error" }); } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) { disableFetchToken = true; } - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } return getCredentials(maxRetries, { @@ -33515,8 +33430,8 @@ var require_requestHelpers = __commonJS({ hostname: url.hostname, port: Number(url.port), path: url.pathname, - query: Array.from(url.searchParams.entries()).reduce((acc, [k3, v6]) => { - acc[k3] = v6; + query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => { + acc[k] = v; return acc; }, {}), fragment: url.hash @@ -33542,7 +33457,7 @@ var require_requestHelpers = __commonJS({ let parsedBody = {}; try { parsedBody = JSON.parse(str); - } catch (e3) { + } catch (e) { } throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), { Code: parsedBody.Code, @@ -33563,10 +33478,10 @@ var require_retry_wrapper = __commonJS({ exports2.retryWrapper = void 0; var retryWrapper = (toRetry, maxRetries, delayMs) => { return async () => { - for (let i3 = 0; i3 < maxRetries; ++i3) { + for (let i = 0; i < maxRetries; ++i) { try { return await toRetry(); - } catch (e3) { + } catch (e) { await new Promise((resolve) => setTimeout(resolve, delayMs)); } } @@ -33636,8 +33551,8 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI try { const result = await requestHandler.handle(request); return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z")); - } catch (e3) { - throw new property_provider_1.CredentialsProviderError(String(e3), { logger: options.logger }); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(String(e), { logger: options.logger }); } }, options.maxRetries ?? 3, options.timeout ?? 1e3); }; @@ -33675,7 +33590,7 @@ var require_httpAuthSchemeProvider2 = __commonJS({ }; }; exports2.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider; - function createAwsAuthSigv4HttpAuthOption3(authParameters) { + function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { @@ -33690,7 +33605,7 @@ var require_httpAuthSchemeProvider2 = __commonJS({ }) }; } - function createSmithyApiNoAuthHttpAuthOption3(authParameters) { + function createSmithyApiNoAuthHttpAuthOption(authParameters) { return { schemeId: "smithy.api#noAuth" }; @@ -33699,35 +33614,35 @@ var require_httpAuthSchemeProvider2 = __commonJS({ const options = []; switch (authParameters.operation) { case "GetRoleCredentials": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "ListAccountRoles": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "ListAccounts": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } case "Logout": { - options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } default: { - options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; exports2.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider; - var resolveHttpAuthSchemeConfig3 = (config) => { + var resolveHttpAuthSchemeConfig = (config) => { const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); return { ...config_0 }; }; - exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig3; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); @@ -33737,7 +33652,7 @@ var require_package2 = __commonJS({ module2.exports = { name: "@aws-sdk/client-sso", description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.731.0", + version: "3.696.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline client-sso", @@ -33756,53 +33671,53 @@ var require_package2 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, devDependencies: { - "@tsconfig/node18": "18.2.4", - "@types/node": "^18.19.69", + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" }, engines: { - node: ">=18.0.0" + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -33859,10 +33774,10 @@ var require_dist_cjs49 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS3, + NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS, UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME, - createDefaultUserAgentProvider: () => createDefaultUserAgentProvider3, + createDefaultUserAgentProvider: () => createDefaultUserAgentProvider, crtAvailability: () => crtAvailability, defaultUserAgent: () => defaultUserAgent }); @@ -33878,8 +33793,9 @@ var require_dist_cjs49 = __commonJS({ } return null; }, "isCrtAvailable"); - var createDefaultUserAgentProvider3 = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => { + var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => { return async (config) => { + var _a; const sections = [ // sdk-metadata ["aws-sdk-js", clientVersion], @@ -33902,20 +33818,19 @@ var require_dist_cjs49 = __commonJS({ if (import_process.env.AWS_EXECUTION_ENV) { sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]); } - const appId = await config?.userAgentAppId?.(); + const appId = await ((_a = config == null ? void 0 : config.userAgentAppId) == null ? void 0 : _a.call(config)); const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; return resolvedUserAgent; }; }, "createDefaultUserAgentProvider"); - var defaultUserAgent = createDefaultUserAgentProvider3; - var import_middleware_user_agent3 = require_dist_cjs32(); + var defaultUserAgent = createDefaultUserAgentProvider; + var import_middleware_user_agent = require_dist_cjs32(); var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; - var UA_APP_ID_INI_NAME = "sdk_ua_app_id"; - var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id"; - var NODE_APP_ID_CONFIG_OPTIONS3 = { + var UA_APP_ID_INI_NAME = "sdk-ua-app-id"; + var NODE_APP_ID_CONFIG_OPTIONS = { environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], - default: import_middleware_user_agent3.DEFAULT_UA_APP_ID + configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME], + default: import_middleware_user_agent.DEFAULT_UA_APP_ID }; } }); @@ -33943,24 +33858,21 @@ var require_dist_cjs50 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - Hash: () => Hash3 + Hash: () => Hash }); module2.exports = __toCommonJS2(src_exports); var import_util_buffer_from = require_dist_cjs7(); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var import_buffer = require("buffer"); var import_crypto5 = require("crypto"); - var Hash3 = class { - static { - __name(this, "Hash"); - } + var _Hash = class _Hash { constructor(algorithmIdentifier, secret) { this.algorithmIdentifier = algorithmIdentifier; this.secret = secret; this.reset(); } update(toHash, encoding) { - this.hash.update((0, import_util_utf83.toUint8Array)(castSourceData(toHash, encoding))); + this.hash.update((0, import_util_utf8.toUint8Array)(castSourceData(toHash, encoding))); } digest() { return Promise.resolve(this.hash.digest()); @@ -33969,6 +33881,8 @@ var require_dist_cjs50 = __commonJS({ this.hash = this.secret ? (0, import_crypto5.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto5.createHash)(this.algorithmIdentifier); } }; + __name(_Hash, "Hash"); + var Hash = _Hash; function castSourceData(toCast, encoding) { if (import_buffer.Buffer.isBuffer(toCast)) { return toCast; @@ -34008,11 +33922,11 @@ var require_dist_cjs51 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - calculateBodyLength: () => calculateBodyLength3 + calculateBodyLength: () => calculateBodyLength }); module2.exports = __toCommonJS2(src_exports); var import_fs = require("fs"); - var calculateBodyLength3 = /* @__PURE__ */ __name((body) => { + var calculateBodyLength = /* @__PURE__ */ __name((body) => { if (!body) { return 0; } @@ -34040,32 +33954,32 @@ var require_ruleset2 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.ruleSet = void 0; - var u3 = "required"; - var v6 = "fn"; - var w3 = "argv"; - var x3 = "ref"; - var a3 = true; - var b3 = "isSet"; - var c3 = "booleanEquals"; - var d3 = "error"; - var e3 = "endpoint"; - var f3 = "tree"; - var g3 = "PartitionResult"; - var h3 = "getAttr"; - var i3 = { [u3]: false, "type": "String" }; - var j3 = { [u3]: true, "default": false, "type": "Boolean" }; - var k3 = { [x3]: "Endpoint" }; - var l3 = { [v6]: c3, [w3]: [{ [x3]: "UseFIPS" }, true] }; - var m3 = { [v6]: c3, [w3]: [{ [x3]: "UseDualStack" }, true] }; - var n3 = {}; - var o3 = { [v6]: h3, [w3]: [{ [x3]: g3 }, "supportsFIPS"] }; - var p3 = { [x3]: g3 }; - var q3 = { [v6]: c3, [w3]: [true, { [v6]: h3, [w3]: [p3, "supportsDualStack"] }] }; - var r3 = [l3]; - var s3 = [m3]; - var t3 = [{ [x3]: "Region" }]; - var _data3 = { version: "1.0", parameters: { Region: i3, UseDualStack: j3, UseFIPS: j3, Endpoint: i3 }, rules: [{ conditions: [{ [v6]: b3, [w3]: [k3] }], rules: [{ conditions: r3, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d3 }, { conditions: s3, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d3 }, { endpoint: { url: k3, properties: n3, headers: n3 }, type: e3 }], type: f3 }, { conditions: [{ [v6]: b3, [w3]: t3 }], rules: [{ conditions: [{ [v6]: "aws.partition", [w3]: t3, assign: g3 }], rules: [{ conditions: [l3, m3], rules: [{ conditions: [{ [v6]: c3, [w3]: [a3, o3] }, q3], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d3 }], type: f3 }, { conditions: r3, rules: [{ conditions: [{ [v6]: c3, [w3]: [o3, a3] }], rules: [{ conditions: [{ [v6]: "stringEquals", [w3]: [{ [v6]: h3, [w3]: [p3, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n3, headers: n3 }, type: e3 }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d3 }], type: f3 }, { conditions: s3, rules: [{ conditions: [q3], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d3 }], type: f3 }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n3, headers: n3 }, type: e3 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d3 }] }; - exports2.ruleSet = _data3; + var u = "required"; + var v = "fn"; + var w = "argv"; + var x = "ref"; + var a = true; + var b = "isSet"; + var c = "booleanEquals"; + var d = "error"; + var e = "endpoint"; + var f = "tree"; + var g = "PartitionResult"; + var h = "getAttr"; + var i = { [u]: false, "type": "String" }; + var j = { [u]: true, "default": false, "type": "Boolean" }; + var k = { [x]: "Endpoint" }; + var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }; + var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }; + var n = {}; + var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }; + var p = { [x]: g }; + var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }; + var r = [l]; + var s = [m]; + var t = [{ [x]: "Region" }]; + var _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 }] }; + exports2.ruleSet = _data; } }); @@ -34078,17 +33992,17 @@ var require_endpointResolver2 = __commonJS({ var util_endpoints_1 = require_dist_cjs31(); var util_endpoints_2 = require_dist_cjs30(); var ruleset_1 = require_ruleset2(); - var cache3 = new util_endpoints_2.EndpointCache({ + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); - var defaultEndpointResolver3 = (endpointParams, context = {}) => { - return cache3.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - exports2.defaultEndpointResolver = defaultEndpointResolver3; + exports2.defaultEndpointResolver = defaultEndpointResolver; util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); @@ -34107,7 +34021,7 @@ var require_runtimeConfig_shared = __commonJS({ var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider2(); var endpointResolver_1 = require_endpointResolver2(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { return { apiVersion: "2019-06-10", base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, @@ -34135,7 +34049,7 @@ var require_runtimeConfig_shared = __commonJS({ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); @@ -34172,11 +34086,11 @@ var require_dist_cjs52 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - resolveDefaultsModeConfig: () => resolveDefaultsModeConfig3 + resolveDefaultsModeConfig: () => resolveDefaultsModeConfig }); module2.exports = __toCommonJS2(src_exports); - var import_config_resolver5 = require_dist_cjs33(); - var import_node_config_provider3 = require_dist_cjs41(); + var import_config_resolver = require_dist_cjs33(); + var import_node_config_provider = require_dist_cjs41(); var import_property_provider2 = require_dist_cjs16(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; var AWS_REGION_ENV = "AWS_REGION"; @@ -34195,12 +34109,12 @@ var require_dist_cjs52 = __commonJS({ }, default: "legacy" }; - var resolveDefaultsModeConfig3 = /* @__PURE__ */ __name(({ - region = (0, import_node_config_provider3.loadConfig)(import_config_resolver5.NODE_REGION_CONFIG_OPTIONS), - defaultsMode = (0, import_node_config_provider3.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) + var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({ + region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS), + defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, import_property_provider2.memoize)(async () => { const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode?.toLowerCase()) { + switch (mode == null ? void 0 : mode.toLowerCase()) { case "auto": return resolveNodeDefaultsModeAuto(region); case "in-region": @@ -34208,7 +34122,7 @@ var require_dist_cjs52 = __commonJS({ case "mobile": case "standard": case "legacy": - return Promise.resolve(mode?.toLocaleLowerCase()); + return Promise.resolve(mode == null ? void 0 : mode.toLocaleLowerCase()); case void 0: return Promise.resolve("legacy"); default: @@ -34241,7 +34155,7 @@ var require_dist_cjs52 = __commonJS({ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); const endpoint = await getInstanceMetadataEndpoint(); return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); - } catch (e3) { + } catch (e) { } } }, "inferPhysicalRegion"); @@ -34269,13 +34183,12 @@ var require_runtimeConfig = __commonJS({ var smithy_client_1 = require_dist_cjs19(); var util_defaults_mode_node_1 = require_dist_cjs52(); var smithy_client_2 = require_dist_cjs19(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { (0, smithy_client_2.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 profileConfig = { profile: config?.profile }; return { ...clientSharedValues, ...config, @@ -34283,21 +34196,21 @@ var require_runtimeConfig = __commonJS({ defaultsMode, 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, ...profileConfig }), + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), 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, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); @@ -34325,16 +34238,16 @@ var require_dist_cjs53 = __commonJS({ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { - NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3, - NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3, + NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, REGION_ENV_NAME: () => REGION_ENV_NAME, REGION_INI_NAME: () => REGION_INI_NAME, - getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3, - resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3, - resolveRegionConfig: () => resolveRegionConfig3 + getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration, + resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration, + resolveRegionConfig: () => resolveRegionConfig }); module2.exports = __toCommonJS2(src_exports); - var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var getAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let runtimeConfigRegion = /* @__PURE__ */ __name(async () => { if (runtimeConfig.region === void 0) { throw new Error("Region is missing from runtimeConfig"); @@ -34354,26 +34267,26 @@ var require_dist_cjs53 = __commonJS({ } }; }, "getAwsRegionExtensionConfiguration"); - var resolveAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => { + var resolveAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => { return { region: awsRegionExtensionConfiguration.region() }; }, "resolveAwsRegionExtensionConfiguration"); var REGION_ENV_NAME = "AWS_REGION"; var REGION_INI_NAME = "region"; - var NODE_REGION_CONFIG_OPTIONS3 = { + var NODE_REGION_CONFIG_OPTIONS = { environmentVariableSelector: (env) => env[REGION_ENV_NAME], configFileSelector: (profile) => profile[REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - var NODE_REGION_CONFIG_FILE_OPTIONS3 = { + var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion"); var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion"); - var resolveRegionConfig3 = /* @__PURE__ */ __name((input) => { + var resolveRegionConfig = /* @__PURE__ */ __name((input) => { const { region, useFipsEndpoint } = input; if (!region) { throw new Error("Region is missing"); @@ -34426,7 +34339,7 @@ var require_dist_cjs54 = __commonJS({ GetRoleCredentialsCommand: () => GetRoleCredentialsCommand, GetRoleCredentialsRequestFilterSensitiveLog: () => GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog: () => GetRoleCredentialsResponseFilterSensitiveLog, - InvalidRequestException: () => InvalidRequestException2, + InvalidRequestException: () => InvalidRequestException, ListAccountRolesCommand: () => ListAccountRolesCommand, ListAccountRolesRequestFilterSensitiveLog: () => ListAccountRolesRequestFilterSensitiveLog, ListAccountsCommand: () => ListAccountsCommand, @@ -34440,22 +34353,22 @@ var require_dist_cjs54 = __commonJS({ SSOServiceException: () => SSOServiceException, TooManyRequestsException: () => TooManyRequestsException, UnauthorizedException: () => UnauthorizedException, - __Client: () => import_smithy_client25.Client, + __Client: () => import_smithy_client4.Client, paginateListAccountRoles: () => paginateListAccountRoles, paginateListAccounts: () => paginateListAccounts }); module2.exports = __toCommonJS2(src_exports); - var import_middleware_host_header3 = require_dist_cjs24(); - var import_middleware_logger3 = require_dist_cjs25(); - var import_middleware_recursion_detection3 = require_dist_cjs26(); - var import_middleware_user_agent3 = require_dist_cjs32(); - var import_config_resolver5 = require_dist_cjs33(); - var import_core17 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_middleware_content_length3 = require_dist_cjs35(); - var import_middleware_endpoint6 = require_dist_cjs44(); - var import_middleware_retry5 = require_dist_cjs38(); - var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider2(); - var resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => { + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider2(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { ...options, useDualstackEndpoint: options.useDualstackEndpoint ?? false, @@ -34463,17 +34376,17 @@ var require_dist_cjs54 = __commonJS({ defaultSigningName: "awsssoportal" }; }, "resolveClientEndpointParameters"); - var commonParams3 = { + var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; - var import_runtimeConfig5 = require_runtimeConfig(); - var import_region_config_resolver3 = require_dist_cjs53(); - var import_protocol_http11 = require_dist_cjs2(); - var import_smithy_client25 = require_dist_cjs19(); - var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + var import_runtimeConfig = require_runtimeConfig(); + var import_region_config_resolver = require_dist_cjs53(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -34503,65 +34416,58 @@ var require_dist_cjs54 = __commonJS({ } }; }, "getHttpAuthExtensionConfiguration"); - var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }, "resolveHttpAuthRuntimeConfig"); - var asPartial3 = /* @__PURE__ */ __name((t3) => t3, "asPartial"); - var resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial3((0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_smithy_client25.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_protocol_http11.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial3(getHttpAuthExtensionConfiguration3(runtimeConfig)) + ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client25.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http11.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig3(extensionConfiguration) + ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); - var SSOClient = class extends import_smithy_client25.Client { - static { - __name(this, "SSOClient"); - } - /** - * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}. - */ - config; + var _SSOClient = class _SSOClient extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters3(_config_0); - const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry5.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver5.resolveRegionConfig)(_config_3); - const _config_5 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, import_middleware_endpoint6.resolveEndpointConfig)(_config_5); - const _config_7 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_6); - const _config_8 = resolveRuntimeExtensions3(_config_7, configuration2?.extensions || []); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); + const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); + const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); + const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); + const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); + const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_8); this.config = _config_8; - this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( - (0, import_core17.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { - httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultSSOHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new import_core17.DefaultIdentityProviderConfig({ + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }) }) ); - this.middlewareStack.use((0, import_core17.getHttpSigningPlugin)(this.config)); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. @@ -34572,25 +34478,21 @@ var require_dist_cjs54 = __commonJS({ super.destroy(); } }; - var import_middleware_serde5 = require_dist_cjs5(); - var SSOServiceException = class _SSOServiceException extends import_smithy_client25.ServiceException { - static { - __name(this, "SSOServiceException"); - } + __name(_SSOClient, "SSOClient"); + var SSOClient = _SSOClient; + var import_middleware_serde2 = require_dist_cjs5(); + var _SSOServiceException = class _SSOServiceException2 extends import_smithy_client4.ServiceException { /** * @internal */ constructor(options) { super(options); - Object.setPrototypeOf(this, _SSOServiceException.prototype); + Object.setPrototypeOf(this, _SSOServiceException2.prototype); } }; - var InvalidRequestException2 = class _InvalidRequestException extends SSOServiceException { - static { - __name(this, "InvalidRequestException"); - } - name = "InvalidRequestException"; - $fault = "client"; + __name(_SSOServiceException, "SSOServiceException"); + var SSOServiceException = _SSOServiceException; + var _InvalidRequestException = class _InvalidRequestException2 extends SSOServiceException { /** * @internal */ @@ -34600,15 +34502,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequestException.prototype); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestException2.prototype); } }; - var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException { - static { - __name(this, "ResourceNotFoundException"); - } - name = "ResourceNotFoundException"; - $fault = "client"; + __name(_InvalidRequestException, "InvalidRequestException"); + var InvalidRequestException = _InvalidRequestException; + var _ResourceNotFoundException = class _ResourceNotFoundException2 extends SSOServiceException { /** * @internal */ @@ -34618,15 +34519,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); + this.name = "ResourceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ResourceNotFoundException2.prototype); } }; - var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException { - static { - __name(this, "TooManyRequestsException"); - } - name = "TooManyRequestsException"; - $fault = "client"; + __name(_ResourceNotFoundException, "ResourceNotFoundException"); + var ResourceNotFoundException = _ResourceNotFoundException; + var _TooManyRequestsException = class _TooManyRequestsException2 extends SSOServiceException { /** * @internal */ @@ -34636,15 +34536,14 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _TooManyRequestsException.prototype); + this.name = "TooManyRequestsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyRequestsException2.prototype); } }; - var UnauthorizedException = class _UnauthorizedException extends SSOServiceException { - static { - __name(this, "UnauthorizedException"); - } - name = "UnauthorizedException"; - $fault = "client"; + __name(_TooManyRequestsException, "TooManyRequestsException"); + var TooManyRequestsException = _TooManyRequestsException; + var _UnauthorizedException = class _UnauthorizedException2 extends SSOServiceException { /** * @internal */ @@ -34654,17 +34553,21 @@ var require_dist_cjs54 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnauthorizedException.prototype); + this.name = "UnauthorizedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnauthorizedException2.prototype); } }; + __name(_UnauthorizedException, "UnauthorizedException"); + var UnauthorizedException = _UnauthorizedException; var GetRoleCredentialsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "GetRoleCredentialsRequestFilterSensitiveLog"); var RoleCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.secretAccessKey && { secretAccessKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.sessionToken && { sessionToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.secretAccessKey && { secretAccessKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: import_smithy_client4.SENSITIVE_STRING } }), "RoleCredentialsFilterSensitiveLog"); var GetRoleCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -34672,125 +34575,125 @@ var require_dist_cjs54 = __commonJS({ }), "GetRoleCredentialsResponseFilterSensitiveLog"); var ListAccountRolesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "ListAccountRolesRequestFilterSensitiveLog"); var ListAccountsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "ListAccountsRequestFilterSensitiveLog"); var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.accessToken && { accessToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING } }), "LogoutRequestFilterSensitiveLog"); var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/federation/credentials"); - const query = (0, import_smithy_client25.map)({ - [_rn]: [, (0, import_smithy_client25.expectNonNull)(input[_rN], `roleName`)], - [_ai]: [, (0, import_smithy_client25.expectNonNull)(input[_aI], `accountId`)] + b.bp("/federation/credentials"); + const query = (0, import_smithy_client4.map)({ + [_rn]: [, (0, import_smithy_client4.expectNonNull)(input[_rN], `roleName`)], + [_ai]: [, (0, import_smithy_client4.expectNonNull)(input[_aI], `accountId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetRoleCredentialsCommand"); var se_ListAccountRolesCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/assignment/roles"); - const query = (0, import_smithy_client25.map)({ + b.bp("/assignment/roles"); + const query = (0, import_smithy_client4.map)({ [_nt]: [, input[_nT]], [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()], - [_ai]: [, (0, import_smithy_client25.expectNonNull)(input[_aI], `accountId`)] + [_ai]: [, (0, import_smithy_client4.expectNonNull)(input[_aI], `accountId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListAccountRolesCommand"); var se_ListAccountsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/assignment/accounts"); - const query = (0, import_smithy_client25.map)({ + b.bp("/assignment/accounts"); + const query = (0, import_smithy_client4.map)({ [_nt]: [, input[_nT]], [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListAccountsCommand"); var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core17.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xasbt]: input[_aT] }); - b3.bp("/logout"); + b.bp("/logout"); let body; - b3.m("POST").h(headers).b(body); - return b3.build(); + b.m("POST").h(headers).b(body); + return b.build(); }, "se_LogoutCommand"); var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - roleCredentials: import_smithy_client25._json + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + roleCredentials: import_smithy_client4._json }); Object.assign(contents, doc); return contents; }, "de_GetRoleCredentialsCommand"); var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - nextToken: import_smithy_client25.expectString, - roleList: import_smithy_client25._json + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + nextToken: import_smithy_client4.expectString, + roleList: import_smithy_client4._json }); Object.assign(contents, doc); return contents; }, "de_ListAccountRolesCommand"); var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); - const doc = (0, import_smithy_client25.take)(data, { - accountList: import_smithy_client25._json, - nextToken: import_smithy_client25.expectString + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accountList: import_smithy_client4._json, + nextToken: import_smithy_client4.expectString }); Object.assign(contents, doc); return contents; }, "de_ListAccountsCommand"); var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_LogoutCommand"); - var de_CommandError3 = /* @__PURE__ */ __name(async (output, context) => { + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core22.parseJsonErrorBody)(output.body, context) @@ -34799,7 +34702,7 @@ var require_dist_cjs54 = __commonJS({ switch (errorCode) { case "InvalidRequestException": case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes2(parsedOutput, context); + throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.sso#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -34811,67 +34714,67 @@ var require_dist_cjs54 = __commonJS({ throw await de_UnauthorizedExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError3({ + return throwDefaultError({ output, parsedBody, errorCode }); } }, "de_CommandError"); - var throwDefaultError3 = (0, import_smithy_client25.withBaseException)(SSOServiceException); - var de_InvalidRequestExceptionRes2 = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(SSOServiceException); + var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); - const exception = new InvalidRequestException2({ - $metadata: deserializeMetadata3(parsedOutput), + const exception = new InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidRequestExceptionRes"); var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ResourceNotFoundExceptionRes"); var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new TooManyRequestsException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_TooManyRequestsExceptionRes"); var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client25.take)(data, { - message: import_smithy_client25.expectString + const doc = (0, import_smithy_client4.take)(data, { + message: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnauthorizedException({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_UnauthorizedExceptionRes"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], @@ -34887,216 +34790,200 @@ var require_dist_cjs54 = __commonJS({ var _rN = "roleName"; var _rn = "role_name"; var _xasbt = "x-amz-sso_bearer_token"; - var GetRoleCredentialsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() { - static { - __name(this, "GetRoleCredentialsCommand"); - } }; - var ListAccountRolesCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_GetRoleCredentialsCommand, "GetRoleCredentialsCommand"); + var GetRoleCredentialsCommand = _GetRoleCredentialsCommand; + var _ListAccountRolesCommand = class _ListAccountRolesCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "ListAccountRoles", {}).n("SSOClient", "ListAccountRolesCommand").f(ListAccountRolesRequestFilterSensitiveLog, void 0).ser(se_ListAccountRolesCommand).de(de_ListAccountRolesCommand).build() { - static { - __name(this, "ListAccountRolesCommand"); - } }; - var ListAccountsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_ListAccountRolesCommand, "ListAccountRolesCommand"); + var ListAccountRolesCommand = _ListAccountRolesCommand; + var _ListAccountsCommand = class _ListAccountsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "ListAccounts", {}).n("SSOClient", "ListAccountsCommand").f(ListAccountsRequestFilterSensitiveLog, void 0).ser(se_ListAccountsCommand).de(de_ListAccountsCommand).build() { - static { - __name(this, "ListAccountsCommand"); - } }; - var LogoutCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + __name(_ListAccountsCommand, "ListAccountsCommand"); + var ListAccountsCommand = _ListAccountsCommand; + var _LogoutCommand = class _LogoutCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("SWBPortalService", "Logout", {}).n("SSOClient", "LogoutCommand").f(LogoutRequestFilterSensitiveLog, void 0).ser(se_LogoutCommand).de(de_LogoutCommand).build() { - static { - __name(this, "LogoutCommand"); - } }; - var commands3 = { + __name(_LogoutCommand, "LogoutCommand"); + var LogoutCommand = _LogoutCommand; + var commands = { GetRoleCredentialsCommand, ListAccountRolesCommand, ListAccountsCommand, LogoutCommand }; - var SSO = class extends SSOClient { - static { - __name(this, "SSO"); - } + var _SSO = class _SSO extends SSOClient { }; - (0, import_smithy_client25.createAggregatedClient)(commands3, SSO); - var paginateListAccountRoles = (0, import_core17.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults"); - var paginateListAccounts = (0, import_core17.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults"); + __name(_SSO, "SSO"); + var SSO = _SSO; + (0, import_smithy_client4.createAggregatedClient)(commands, SSO); + var paginateListAccountRoles = (0, import_core3.createPaginator)(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults"); + var paginateListAccounts = (0, import_core3.createPaginator)(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults"); } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js -function createAwsAuthSigv4HttpAuthOption(authParameters) { - return { - schemeId: "aws.auth#sigv4", - signingProperties: { - name: "sso-oauth", - region: authParameters.region - }, - propertiesExtractor: (config, context) => ({ - signingProperties: { - config, - context - } - }) - }; -} -function createSmithyApiNoAuthHttpAuthOption(authParameters) { - return { - schemeId: "smithy.api#noAuth" - }; -} -var import_util_middleware3, defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig; -var init_httpAuthSchemeProvider = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js"() { - init_dist_es2(); - import_util_middleware3 = __toESM(require_dist_cjs4()); - defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +var require_httpAuthSchemeProvider3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var util_middleware_1 = require_dist_cjs4(); + var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { return { - operation: (0, import_util_middleware3.getSmithyContext)(context).operation, - region: await (0, import_util_middleware3.normalizeProvider)(config.region)() || (() => { + 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`"); })() }; }; - defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => { + exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider; + function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "sso-oauth", + region: authParameters.region + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context + } + }) + }; + } + function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth" + }; + } + var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { case "CreateToken": { options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } + case "RegisterClient": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } + case "StartDeviceAuthorization": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; - resolveHttpAuthSchemeConfig = (config) => { - const config_0 = resolveAwsSdkSigV4Config(config); + exports2.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider; + var resolveHttpAuthSchemeConfig = (config) => { + const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); return { ...config_0 }; }; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js -var resolveClientEndpointParameters, commonParams; -var init_EndpointParameters = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js"() { - resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "sso-oauth" - }; - }; - commonParams = { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/package.json -var package_default; -var init_package = __esm({ - "../../node_modules/@aws-sdk/nested-clients/package.json"() { - package_default = { - name: "@aws-sdk/nested-clients", - version: "3.731.1", - description: "Nested clients for AWS SDK packages.", - main: "./dist-cjs/index.js", - module: "./dist-es/index.js", - types: "./dist-types/index.d.ts", +// ../../node_modules/@aws-sdk/client-sso-oidc/package.json +var require_package3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) { + module2.exports = { + name: "@aws-sdk/client-sso-oidc", + description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", + version: "3.699.0", scripts: { - build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "node ../../scripts/compilation/inline nested-clients", + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "node ../../scripts/compilation/inline client-sso-oidc", "build:es": "tsc -p tsconfig.es.json", "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", - lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients", - test: "yarn g:vitest run", - "test:watch": "yarn g:vitest watch" - }, - engines: { - node: ">=18.0.0" - }, - author: { - name: "AWS SDK for JavaScript Team", - url: "https://aws.amazon.com/javascript/" + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sso-oidc" }, - license: "Apache-2.0", + 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.731.0", - "@aws-sdk/middleware-host-header": "3.731.0", - "@aws-sdk/middleware-logger": "3.731.0", - "@aws-sdk/middleware-recursion-detection": "3.731.0", - "@aws-sdk/middleware-user-agent": "3.731.0", - "@aws-sdk/region-config-resolver": "3.731.0", - "@aws-sdk/types": "3.731.0", - "@aws-sdk/util-endpoints": "3.731.0", - "@aws-sdk/util-user-agent-browser": "3.731.0", - "@aws-sdk/util-user-agent-node": "3.731.0", - "@smithy/config-resolver": "^4.0.0", - "@smithy/core": "^3.0.0", - "@smithy/fetch-http-handler": "^5.0.0", - "@smithy/hash-node": "^4.0.0", - "@smithy/invalid-dependency": "^4.0.0", - "@smithy/middleware-content-length": "^4.0.0", - "@smithy/middleware-endpoint": "^4.0.0", - "@smithy/middleware-retry": "^4.0.0", - "@smithy/middleware-serde": "^4.0.0", - "@smithy/middleware-stack": "^4.0.0", - "@smithy/node-config-provider": "^4.0.0", - "@smithy/node-http-handler": "^4.0.0", - "@smithy/protocol-http": "^5.0.0", - "@smithy/smithy-client": "^4.0.0", - "@smithy/types": "^4.0.0", - "@smithy/url-parser": "^4.0.0", - "@smithy/util-base64": "^4.0.0", - "@smithy/util-body-length-browser": "^4.0.0", - "@smithy/util-body-length-node": "^4.0.0", - "@smithy/util-defaults-mode-browser": "^4.0.0", - "@smithy/util-defaults-mode-node": "^4.0.0", - "@smithy/util-endpoints": "^3.0.0", - "@smithy/util-middleware": "^4.0.0", - "@smithy/util-retry": "^4.0.0", - "@smithy/util-utf8": "^4.0.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", tslib: "^2.6.2" }, devDependencies: { + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", concurrently: "7.0.0", "downlevel-dts": "0.10.1", rimraf: "3.0.2", - typescript: "~5.2.2" + typescript: "~4.9.5" + }, + engines: { + node: ">=16.0.0" }, typesVersions: { "<4.0": { @@ -35106,293 +34993,274 @@ var init_package = __esm({ } }, files: [ - "./sso-oidc.d.ts", - "./sso-oidc.js", - "./sts.d.ts", - "./sts.js", "dist-*/**" ], + author: { + name: "AWS SDK for JavaScript Team", + url: "https://aws.amazon.com/javascript/" + }, + license: "Apache-2.0", + peerDependencies: { + "@aws-sdk/client-sts": "^3.699.0" + }, 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" + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, - "react-native": {}, - homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients", + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc", repository: { type: "git", url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: "packages/nested-clients" - }, - exports: { - "./sso-oidc": { - 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", - types: "./dist-types/submodules/sso-oidc/index.d.ts" - }, - "./sts": { - 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", - types: "./dist-types/submodules/sts/index.d.ts" - } - } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js -var u, v, w, x, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, _data, ruleSet; -var init_ruleset = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js"() { - u = "required"; - v = "fn"; - w = "argv"; - x = "ref"; - 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" }]; - _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 } - ] + directory: "clients/client-sso-oidc" + } }; - ruleSet = _data; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js -var import_util_endpoints, import_util_endpoints2, cache, defaultEndpointResolver; -var init_endpointResolver = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"() { - import_util_endpoints = __toESM(require_dist_cjs31()); - import_util_endpoints2 = __toESM(require_dist_cjs30()); - init_ruleset(); - cache = new import_util_endpoints2.EndpointCache({ +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +var require_ruleset3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; + var u = "required"; + var v = "fn"; + var w = "argv"; + var x = "ref"; + var a = true; + var b = "isSet"; + var c = "booleanEquals"; + var d = "error"; + var e = "endpoint"; + var f = "tree"; + var g = "PartitionResult"; + var h = "getAttr"; + var i = { [u]: false, "type": "String" }; + var j = { [u]: true, "default": false, "type": "Boolean" }; + var k = { [x]: "Endpoint" }; + var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }; + var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }; + var n = {}; + var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }; + var p = { [x]: g }; + var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }; + var r = [l]; + var s = [m]; + var t = [{ [x]: "Region" }]; + var _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 }] }; + exports2.ruleSet = _data; + } +}); + +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +var require_endpointResolver3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; + var util_endpoints_1 = require_dist_cjs31(); + var util_endpoints_2 = require_dist_cjs30(); + var ruleset_1 = require_ruleset3(); + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); - defaultEndpointResolver = (endpointParams, context = {}) => { - return cache.get(endpointParams, () => (0, import_util_endpoints2.resolveEndpoint)(ruleSet, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - import_util_endpoints2.customEndpointFunctions.aws = import_util_endpoints.awsEndpointFunctions; + exports2.defaultEndpointResolver = defaultEndpointResolver; + util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js -var import_smithy_client4, import_url_parser, import_util_base64, import_util_utf8, getRuntimeConfig; -var init_runtimeConfig_shared = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client4 = __toESM(require_dist_cjs19()); - import_url_parser = __toESM(require_dist_cjs43()); - import_util_base64 = __toESM(require_dist_cjs9()); - import_util_utf8 = __toESM(require_dist_cjs8()); - init_httpAuthSchemeProvider(); - init_endpointResolver(); - getRuntimeConfig = (config) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var smithy_client_1 = require_dist_cjs19(); + var url_parser_1 = require_dist_cjs43(); + var util_base64_1 = require_dist_cjs9(); + var util_utf8_1 = require_dist_cjs8(); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider3(); + var endpointResolver_1 = require_endpointResolver3(); + var getRuntimeConfig = (config) => { return { apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64, - base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64, + base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, + base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, extensions: config?.extensions ?? [], - httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider, + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), - signer: new AwsSdkSigV4Signer() + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - logger: config?.logger ?? new import_smithy_client4.NoOpLogger(), + logger: config?.logger ?? new smithy_client_1.NoOpLogger(), serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? import_url_parser.parseUrl, - utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8 + urlParser: config?.urlParser ?? url_parser_1.parseUrl, + utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, + utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js -var import_util_user_agent_node, import_config_resolver, import_hash_node, import_middleware_retry, import_node_config_provider, import_node_http_handler, import_util_body_length_node, import_util_retry, import_smithy_client5, import_util_defaults_mode_node, import_smithy_client6, getRuntimeConfig2; -var init_runtimeConfig = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js"() { - init_package(); - init_dist_es2(); - import_util_user_agent_node = __toESM(require_dist_cjs49()); - import_config_resolver = __toESM(require_dist_cjs33()); - import_hash_node = __toESM(require_dist_cjs50()); - import_middleware_retry = __toESM(require_dist_cjs38()); - import_node_config_provider = __toESM(require_dist_cjs41()); - import_node_http_handler = __toESM(require_dist_cjs12()); - import_util_body_length_node = __toESM(require_dist_cjs51()); - import_util_retry = __toESM(require_dist_cjs37()); - init_runtimeConfig_shared(); - import_smithy_client5 = __toESM(require_dist_cjs19()); - import_util_defaults_mode_node = __toESM(require_dist_cjs52()); - import_smithy_client6 = __toESM(require_dist_cjs19()); - getRuntimeConfig2 = (config) => { - (0, import_smithy_client6.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, import_util_defaults_mode_node.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(import_smithy_client5.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - emitWarningIfUnsupportedVersion(process.version); - const profileConfig = { profile: config?.profile }; +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var credential_provider_node_1 = require_dist_cjs62(); + var util_user_agent_node_1 = require_dist_cjs49(); + var config_resolver_1 = require_dist_cjs33(); + var hash_node_1 = require_dist_cjs50(); + var middleware_retry_1 = require_dist_cjs38(); + var node_config_provider_1 = require_dist_cjs41(); + var node_http_handler_1 = require_dist_cjs12(); + var util_body_length_node_1 = require_dist_cjs51(); + var util_retry_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs52(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + (0, smithy_client_2.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); return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider.loadConfig)(import_middleware_retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), - region: config?.region ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestHandler: import_node_http_handler.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: config?.retryMode ?? (0, import_node_config_provider.loadConfig)({ - ...import_middleware_retry.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || import_util_retry.DEFAULT_RETRY_MODE - }, config), - sha256: config?.sha256 ?? import_hash_node.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? import_node_http_handler.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider.loadConfig)(import_util_user_agent_node.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, + 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), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + 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 + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js -var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig; -var init_httpAuthExtensionConfiguration = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js"() { - getHttpAuthExtensionConfiguration = (runtimeConfig) => { +// ../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +var require_dist_cjs55 = __commonJS({ + "../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) { + "use strict"; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AccessDeniedException: () => AccessDeniedException, + AuthorizationPendingException: () => AuthorizationPendingException, + CreateTokenCommand: () => CreateTokenCommand, + CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog, + CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog, + CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand, + CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog, + CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog, + ExpiredTokenException: () => ExpiredTokenException, + InternalServerException: () => InternalServerException, + InvalidClientException: () => InvalidClientException, + InvalidClientMetadataException: () => InvalidClientMetadataException, + InvalidGrantException: () => InvalidGrantException, + InvalidRedirectUriException: () => InvalidRedirectUriException, + InvalidRequestException: () => InvalidRequestException, + InvalidRequestRegionException: () => InvalidRequestRegionException, + InvalidScopeException: () => InvalidScopeException, + RegisterClientCommand: () => RegisterClientCommand, + RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog, + SSOOIDC: () => SSOOIDC, + SSOOIDCClient: () => SSOOIDCClient, + SSOOIDCServiceException: () => SSOOIDCServiceException, + SlowDownException: () => SlowDownException, + StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand, + StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog, + UnauthorizedClientException: () => UnauthorizedClientException, + UnsupportedGrantTypeException: () => UnsupportedGrantTypeException, + __Client: () => import_smithy_client4.Client + }); + module2.exports = __toCommonJS2(src_exports); + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider3(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "sso-oauth" + }; + }, "resolveClientEndpointParameters"); + var commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } + }; + var import_runtimeConfig = require_runtimeConfig2(); + var import_region_config_resolver = require_dist_cjs53(); + var import_protocol_http8 = require_dist_cjs2(); + var import_smithy_client4 = require_dist_cjs19(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -35421,30 +35289,19 @@ var init_httpAuthExtensionConfiguration = __esm({ return _credentials; } }; - }; - resolveHttpAuthRuntimeConfig = (config) => { + }, "getHttpAuthExtensionConfiguration"); + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js -var import_region_config_resolver, import_protocol_http8, import_smithy_client7, asPartial, resolveRuntimeExtensions; -var init_runtimeExtensions = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() { - import_region_config_resolver = __toESM(require_dist_cjs53()); - import_protocol_http8 = __toESM(require_dist_cjs2()); - import_smithy_client7 = __toESM(require_dist_cjs19()); - init_httpAuthExtensionConfiguration(); - asPartial = (t3) => t3; - resolveRuntimeExtensions = (runtimeConfig, extensions) => { + }, "resolveHttpAuthRuntimeConfig"); + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, import_smithy_client7.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; @@ -35452,332 +35309,536 @@ var init_runtimeExtensions = __esm({ return { ...runtimeConfig, ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client7.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js -var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver2, import_middleware_content_length, import_middleware_endpoint, import_middleware_retry2, import_smithy_client8, SSOOIDCClient; -var init_SSOOIDCClient = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js"() { - import_middleware_host_header = __toESM(require_dist_cjs24()); - import_middleware_logger = __toESM(require_dist_cjs25()); - import_middleware_recursion_detection = __toESM(require_dist_cjs26()); - import_middleware_user_agent = __toESM(require_dist_cjs32()); - import_config_resolver2 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_middleware_content_length = __toESM(require_dist_cjs35()); - import_middleware_endpoint = __toESM(require_dist_cjs44()); - import_middleware_retry2 = __toESM(require_dist_cjs38()); - import_smithy_client8 = __toESM(require_dist_cjs19()); - init_httpAuthSchemeProvider(); - init_EndpointParameters(); - init_runtimeConfig(); - init_runtimeExtensions(); - SSOOIDCClient = class extends import_smithy_client8.Client { - config; + }, "resolveRuntimeExtensions"); + var _SSOOIDCClient = class _SSOOIDCClient extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = getRuntimeConfig2(configuration2 || {}); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry2.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver2.resolveRegionConfig)(_config_3); + const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); + const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); - const _config_7 = resolveHttpAuthSchemeConfig(_config_6); - const _config_8 = resolveRuntimeExtensions(_config_7, configuration2?.extensions || []); + const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_8); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry2.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { - httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ - "aws.auth#sigv4": config.credentials + this.middlewareStack.use( + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials + }) }) - })); - this.middlewareStack.use(getHttpSigningPlugin(this.config)); + ); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); } + /** + * Destroy underlying resources, like sockets. It's usually not necessary to do this. + * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. + * Otherwise, sockets might stay open for quite a long time before the server terminates them. + */ destroy() { super.destroy(); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js -var import_smithy_client9, SSOOIDCServiceException; -var init_SSOOIDCServiceException = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"() { - import_smithy_client9 = __toESM(require_dist_cjs19()); - SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client9.ServiceException { + __name(_SSOOIDCClient, "SSOOIDCClient"); + var SSOOIDCClient = _SSOOIDCClient; + var import_middleware_serde2 = require_dist_cjs5(); + var _SSOOIDCServiceException = class _SSOOIDCServiceException2 extends import_smithy_client4.ServiceException { + /** + * @internal + */ constructor(options) { super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); + Object.setPrototypeOf(this, _SSOOIDCServiceException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js -var import_smithy_client10, AccessDeniedException, AuthorizationPendingException, CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException; -var init_models_0 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js"() { - import_smithy_client10 = __toESM(require_dist_cjs19()); - init_SSOOIDCServiceException(); - AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - name = "AccessDeniedException"; - $fault = "client"; - error; - error_description; + __name(_SSOOIDCServiceException, "SSOOIDCServiceException"); + var SSOOIDCServiceException = _SSOOIDCServiceException; + var _AccessDeniedException = class _AccessDeniedException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _AccessDeniedException.prototype); + this.name = "AccessDeniedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _AccessDeniedException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - name = "AuthorizationPendingException"; - $fault = "client"; - error; - error_description; + __name(_AccessDeniedException, "AccessDeniedException"); + var AccessDeniedException = _AccessDeniedException; + var _AuthorizationPendingException = class _AuthorizationPendingException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "AuthorizationPendingException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); + this.name = "AuthorizationPendingException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _AuthorizationPendingException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - CreateTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.clientSecret && { clientSecret: import_smithy_client10.SENSITIVE_STRING }, - ...obj.refreshToken && { refreshToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.codeVerifier && { codeVerifier: import_smithy_client10.SENSITIVE_STRING } - }); - CreateTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.refreshToken && { refreshToken: import_smithy_client10.SENSITIVE_STRING }, - ...obj.idToken && { idToken: import_smithy_client10.SENSITIVE_STRING } - }); - ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - name = "ExpiredTokenException"; - $fault = "client"; - error; - error_description; + __name(_AuthorizationPendingException, "AuthorizationPendingException"); + var AuthorizationPendingException = _AuthorizationPendingException; + var _ExpiredTokenException = class _ExpiredTokenException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ExpiredTokenException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - name = "InternalServerException"; - $fault = "server"; - error; - error_description; + __name(_ExpiredTokenException, "ExpiredTokenException"); + var ExpiredTokenException = _ExpiredTokenException; + var _InternalServerException = class _InternalServerException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); - Object.setPrototypeOf(this, _InternalServerException.prototype); + this.name = "InternalServerException"; + this.$fault = "server"; + Object.setPrototypeOf(this, _InternalServerException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - name = "InvalidClientException"; - $fault = "client"; - error; - error_description; + __name(_InternalServerException, "InternalServerException"); + var InternalServerException = _InternalServerException; + var _InvalidClientException = class _InvalidClientException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidClientException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidClientException.prototype); + this.name = "InvalidClientException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidClientException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - name = "InvalidGrantException"; - $fault = "client"; - error; - error_description; + __name(_InvalidClientException, "InvalidClientException"); + var InvalidClientException = _InvalidClientException; + var _InvalidGrantException = class _InvalidGrantException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidGrantException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidGrantException.prototype); + this.name = "InvalidGrantException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidGrantException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - name = "InvalidRequestException"; - $fault = "client"; - error; - error_description; + __name(_InvalidGrantException, "InvalidGrantException"); + var InvalidGrantException = _InvalidGrantException; + var _InvalidRequestException = class _InvalidRequestException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequestException.prototype); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - name = "InvalidScopeException"; - $fault = "client"; - error; - error_description; + __name(_InvalidRequestException, "InvalidRequestException"); + var InvalidRequestException = _InvalidRequestException; + var _InvalidScopeException = class _InvalidScopeException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidScopeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidScopeException.prototype); + this.name = "InvalidScopeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidScopeException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - name = "SlowDownException"; - $fault = "client"; - error; - error_description; + __name(_InvalidScopeException, "InvalidScopeException"); + var InvalidScopeException = _InvalidScopeException; + var _SlowDownException = class _SlowDownException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "SlowDownException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _SlowDownException.prototype); + this.name = "SlowDownException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _SlowDownException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - name = "UnauthorizedClientException"; - $fault = "client"; - error; - error_description; + __name(_SlowDownException, "SlowDownException"); + var SlowDownException = _SlowDownException; + var _UnauthorizedClientException = class _UnauthorizedClientException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "UnauthorizedClientException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); + this.name = "UnauthorizedClientException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnauthorizedClientException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - name = "UnsupportedGrantTypeException"; - $fault = "client"; - error; - error_description; + __name(_UnauthorizedClientException, "UnauthorizedClientException"); + var UnauthorizedClientException = _UnauthorizedClientException; + var _UnsupportedGrantTypeException = class _UnsupportedGrantTypeException2 extends SSOOIDCServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "UnsupportedGrantTypeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); + this.name = "UnsupportedGrantTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _UnsupportedGrantTypeException2.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js -var import_smithy_client11, se_CreateTokenCommand, de_CreateTokenCommand, de_CommandError, throwDefaultError, de_AccessDeniedExceptionRes, de_AuthorizationPendingExceptionRes, de_ExpiredTokenExceptionRes, de_InternalServerExceptionRes, de_InvalidClientExceptionRes, de_InvalidGrantExceptionRes, de_InvalidRequestExceptionRes, de_InvalidScopeExceptionRes, de_SlowDownExceptionRes, de_UnauthorizedClientExceptionRes, de_UnsupportedGrantTypeExceptionRes, deserializeMetadata; -var init_Aws_restJson1 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client11 = __toESM(require_dist_cjs19()); - init_models_0(); - init_SSOOIDCServiceException(); - se_CreateTokenCommand = async (input, context) => { - const b3 = requestBuilder(input, context); + __name(_UnsupportedGrantTypeException, "UnsupportedGrantTypeException"); + var UnsupportedGrantTypeException = _UnsupportedGrantTypeException; + var _InvalidRequestRegionException = class _InvalidRequestRegionException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRequestRegionException", + $fault: "client", + ...opts + }); + this.name = "InvalidRequestRegionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequestRegionException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + this.endpoint = opts.endpoint; + this.region = opts.region; + } + }; + __name(_InvalidRequestRegionException, "InvalidRequestRegionException"); + var InvalidRequestRegionException = _InvalidRequestRegionException; + var _InvalidClientMetadataException = class _InvalidClientMetadataException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidClientMetadataException", + $fault: "client", + ...opts + }); + this.name = "InvalidClientMetadataException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidClientMetadataException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } + }; + __name(_InvalidClientMetadataException, "InvalidClientMetadataException"); + var InvalidClientMetadataException = _InvalidClientMetadataException; + var _InvalidRedirectUriException = class _InvalidRedirectUriException2 extends SSOOIDCServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidRedirectUriException", + $fault: "client", + ...opts + }); + this.name = "InvalidRedirectUriException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRedirectUriException2.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } + }; + __name(_InvalidRedirectUriException, "InvalidRedirectUriException"); + var InvalidRedirectUriException = _InvalidRedirectUriException; + var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenRequestFilterSensitiveLog"); + var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenResponseFilterSensitiveLog"); + var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.assertion && { assertion: import_smithy_client4.SENSITIVE_STRING }, + ...obj.subjectToken && { subjectToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenWithIAMRequestFilterSensitiveLog"); + var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING }, + ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING } + }), "CreateTokenWithIAMResponseFilterSensitiveLog"); + var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING } + }), "RegisterClientResponseFilterSensitiveLog"); + var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING } + }), "StartDeviceAuthorizationRequestFilterSensitiveLog"); + var import_core22 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; - b3.bp("/token"); + b.bp("/token"); let body; - body = JSON.stringify((0, import_smithy_client11.take)(input, { - clientId: [], - clientSecret: [], - code: [], - codeVerifier: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_2) => (0, import_smithy_client11._json)(_2) - })); - b3.m("POST").h(headers).b(body); - return b3.build(); - }; - de_CreateTokenCommand = async (output, context) => { + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientId: [], + clientSecret: [], + code: [], + codeVerifier: [], + deviceCode: [], + grantType: [], + redirectUri: [], + refreshToken: [], + scope: (_) => (0, import_smithy_client4._json)(_) + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_CreateTokenCommand"); + var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/token"); + const query = (0, import_smithy_client4.map)({ + [_ai]: [, "t"] + }); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + assertion: [], + clientId: [], + code: [], + codeVerifier: [], + grantType: [], + redirectUri: [], + refreshToken: [], + requestedTokenType: [], + scope: (_) => (0, import_smithy_client4._json)(_), + subjectToken: [], + subjectTokenType: [] + }) + ); + b.m("POST").h(headers).q(query).b(body); + return b.build(); + }, "se_CreateTokenWithIAMCommand"); + var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/client/register"); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientName: [], + clientType: [], + entitledApplicationArn: [], + grantTypes: (_) => (0, import_smithy_client4._json)(_), + issuerUrl: [], + redirectUris: (_) => (0, import_smithy_client4._json)(_), + scopes: (_) => (0, import_smithy_client4._json)(_) + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_RegisterClientCommand"); + var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => { + const b = (0, import_core3.requestBuilder)(input, context); + const headers = { + "content-type": "application/json" + }; + b.bp("/device_authorization"); + let body; + body = JSON.stringify( + (0, import_smithy_client4.take)(input, { + clientId: [], + clientSecret: [], + startUrl: [] + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); + }, "se_StartDeviceAuthorizationCommand"); + var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } - const contents = (0, import_smithy_client11.map)({ + const contents = (0, import_smithy_client4.map)({ $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client11.expectNonNull)((0, import_smithy_client11.expectObject)(await parseJsonBody(output.body, context)), "body"); - const doc = (0, import_smithy_client11.take)(data, { - accessToken: import_smithy_client11.expectString, - expiresIn: import_smithy_client11.expectInt32, - idToken: import_smithy_client11.expectString, - refreshToken: import_smithy_client11.expectString, - tokenType: import_smithy_client11.expectString + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accessToken: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + idToken: import_smithy_client4.expectString, + refreshToken: import_smithy_client4.expectString, + tokenType: import_smithy_client4.expectString }); Object.assign(contents, doc); return contents; - }; - de_CommandError = async (output, context) => { + }, "de_CreateTokenCommand"); + var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + accessToken: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + idToken: import_smithy_client4.expectString, + issuedTokenType: import_smithy_client4.expectString, + refreshToken: import_smithy_client4.expectString, + scope: import_smithy_client4._json, + tokenType: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_CreateTokenWithIAMCommand"); + var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + authorizationEndpoint: import_smithy_client4.expectString, + clientId: import_smithy_client4.expectString, + clientIdIssuedAt: import_smithy_client4.expectLong, + clientSecret: import_smithy_client4.expectString, + clientSecretExpiresAt: import_smithy_client4.expectLong, + tokenEndpoint: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_RegisterClientCommand"); + var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) + }); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core22.parseJsonBody)(output.body, context)), "body"); + const doc = (0, import_smithy_client4.take)(data, { + deviceCode: import_smithy_client4.expectString, + expiresIn: import_smithy_client4.expectInt32, + interval: import_smithy_client4.expectInt32, + userCode: import_smithy_client4.expectString, + verificationUri: import_smithy_client4.expectString, + verificationUriComplete: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + return contents; + }, "de_StartDeviceAuthorizationCommand"); + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await parseJsonErrorBody(output.body, context) + body: await (0, import_core22.parseJsonErrorBody)(output.body, context) }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const errorCode = (0, import_core22.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.ssooidc#AccessDeniedException": @@ -35812,6 +35873,15 @@ var init_Aws_restJson1 = __esm({ case "UnsupportedGrantTypeException": case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); + case "InvalidRequestRegionException": + case "com.amazonaws.ssooidc#InvalidRequestRegionException": + throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context); + case "InvalidClientMetadataException": + case "com.amazonaws.ssooidc#InvalidClientMetadataException": + throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); + case "InvalidRedirectUriException": + case "com.amazonaws.ssooidc#InvalidRedirectUriException": + throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -35820,256 +35890,265 @@ var init_Aws_restJson1 = __esm({ errorCode }); } - }; - throwDefaultError = (0, import_smithy_client11.withBaseException)(SSOOIDCServiceException); - de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + }, "de_CommandError"); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(SSOOIDCServiceException); + var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_AccessDeniedExceptionRes"); + var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new AuthorizationPendingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_AuthorizationPendingExceptionRes"); + var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new ExpiredTokenException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_ExpiredTokenExceptionRes"); + var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InternalServerExceptionRes"); + var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidClientException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidClientExceptionRes"); + var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidClientMetadataException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidClientMetadataExceptionRes"); + var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidGrantException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidGrantExceptionRes"); + var de_InvalidRedirectUriExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidRedirectUriException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRedirectUriExceptionRes"); + var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidRequestException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestExceptionRes"); + var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + endpoint: import_smithy_client4.expectString, + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString, + region: import_smithy_client4.expectString + }); + Object.assign(contents, doc); + const exception = new InvalidRequestRegionException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidRequestRegionExceptionRes"); + var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); + const data = parsedOutput.body; + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new InvalidScopeException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_InvalidScopeExceptionRes"); + var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new SlowDownException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_SlowDownExceptionRes"); + var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnauthorizedClientException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, import_smithy_client11.map)({}); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_UnauthorizedClientExceptionRes"); + var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; - const doc = (0, import_smithy_client11.take)(data, { - error: import_smithy_client11.expectString, - error_description: import_smithy_client11.expectString + const doc = (0, import_smithy_client4.take)(data, { + error: import_smithy_client4.expectString, + error_description: import_smithy_client4.expectString }); Object.assign(contents, doc); const exception = new UnsupportedGrantTypeException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client11.decorateServiceException)(exception, parsedOutput.body); - }; - deserializeMetadata = (output) => ({ + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); + }, "de_UnsupportedGrantTypeExceptionRes"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] - }); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js -var import_middleware_endpoint2, import_middleware_serde2, import_smithy_client12, CreateTokenCommand; -var init_CreateTokenCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js"() { - import_middleware_endpoint2 = __toESM(require_dist_cjs44()); - import_middleware_serde2 = __toESM(require_dist_cjs5()); - import_smithy_client12 = __toESM(require_dist_cjs19()); - init_EndpointParameters(); - init_models_0(); - init_Aws_restJson1(); - CreateTokenCommand = class extends import_smithy_client12.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o3) { + }), "deserializeMetadata"); + var _ai = "aws_iam"; + var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js -var import_smithy_client13, commands, SSOOIDC; -var init_SSOOIDC = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js"() { - import_smithy_client13 = __toESM(require_dist_cjs19()); - init_CreateTokenCommand(); - init_SSOOIDCClient(); - commands = { - CreateTokenCommand + __name(_CreateTokenCommand, "CreateTokenCommand"); + var CreateTokenCommand = _CreateTokenCommand; + var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() { }; - SSOOIDC = class extends SSOOIDCClient { + __name(_CreateTokenWithIAMCommand, "CreateTokenWithIAMCommand"); + var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand; + var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() { }; - (0, import_smithy_client13.createAggregatedClient)(commands, SSOOIDC); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js -var init_commands = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js"() { - init_CreateTokenCommand(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js -var init_models = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/index.js"() { - init_models_0(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js -var sso_oidc_exports = {}; -__export(sso_oidc_exports, { - $Command: () => import_smithy_client12.Command, - AccessDeniedException: () => AccessDeniedException, - AuthorizationPendingException: () => AuthorizationPendingException, - CreateTokenCommand: () => CreateTokenCommand, - CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog, - CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog, - ExpiredTokenException: () => ExpiredTokenException, - InternalServerException: () => InternalServerException, - InvalidClientException: () => InvalidClientException, - InvalidGrantException: () => InvalidGrantException, - InvalidRequestException: () => InvalidRequestException, - InvalidScopeException: () => InvalidScopeException, - SSOOIDC: () => SSOOIDC, - SSOOIDCClient: () => SSOOIDCClient, - SSOOIDCServiceException: () => SSOOIDCServiceException, - SlowDownException: () => SlowDownException, - UnauthorizedClientException: () => UnauthorizedClientException, - UnsupportedGrantTypeException: () => UnsupportedGrantTypeException, - __Client: () => import_smithy_client8.Client -}); -var init_sso_oidc = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"() { - init_SSOOIDCClient(); - init_SSOOIDC(); - init_commands(); - init_models(); - init_SSOOIDCServiceException(); + __name(_RegisterClientCommand, "RegisterClientCommand"); + var RegisterClientCommand = _RegisterClientCommand; + var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() { + }; + __name(_StartDeviceAuthorizationCommand, "StartDeviceAuthorizationCommand"); + var StartDeviceAuthorizationCommand = _StartDeviceAuthorizationCommand; + var commands = { + CreateTokenCommand, + CreateTokenWithIAMCommand, + RegisterClientCommand, + StartDeviceAuthorizationCommand + }; + var _SSOOIDC = class _SSOOIDC extends SSOOIDCClient { + }; + __name(_SSOOIDC, "SSOOIDC"); + var SSOOIDC = _SSOOIDC; + (0, import_smithy_client4.createAggregatedClient)(commands, SSOOIDC); } }); // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js -var require_dist_cjs55 = __commonJS({ +var require_dist_cjs56 = __commonJS({ "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -36110,20 +36189,21 @@ var require_dist_cjs55 = __commonJS({ var EXPIRE_WINDOW_MS = 5 * 60 * 1e3; var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => { - const { SSOOIDCClient: SSOOIDCClient2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports)))); - const ssoOidcClient = new SSOOIDCClient2( + var _a, _b, _c; + const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); + const ssoOidcClient = new SSOOIDCClient( Object.assign({}, init.clientConfig ?? {}, { - region: ssoRegion ?? init.clientConfig?.region, - logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger + region: ssoRegion ?? ((_a = init.clientConfig) == null ? void 0 : _a.region), + logger: ((_b = init.clientConfig) == null ? void 0 : _b.logger) ?? ((_c = init.parentClientConfig) == null ? void 0 : _c.logger) }) ); return ssoOidcClient; }, "getSsoOidcClient"); var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init = {}) => { - const { CreateTokenCommand: CreateTokenCommand2 } = await Promise.resolve().then(() => __toESM2((init_sso_oidc(), __toCommonJS(sso_oidc_exports)))); + const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM2(require_dist_cjs55())); const ssoOidcClient = await getSsoOidcClient(ssoRegion, init); return ssoOidcClient.send( - new CreateTokenCommand2({ + new CreateTokenCommand({ clientId: ssoToken.clientId, clientSecret: ssoToken.clientSecret, refreshToken: ssoToken.refreshToken, @@ -36154,19 +36234,11 @@ var require_dist_cjs55 = __commonJS({ return writeFile(tokenFilepath, tokenString); }, "writeSSOTokenToFile"); var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0); - var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => { - const init = { - ..._init, - parentClientConfig: { - ...callerClientConfig, - ..._init.parentClientConfig - } - }; - init.logger?.debug("@aws-sdk/token-providers - fromSso"); + var fromSso = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - const profileName = (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }); + const profileName = (0, import_shared_ini_file_loader.getProfileName)(init); const profile = profiles[profileName]; if (!profile) { throw new import_property_provider2.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); @@ -36195,7 +36267,7 @@ var require_dist_cjs55 = __commonJS({ let ssoToken; try { ssoToken = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoSessionName); - } catch (e3) { + } catch (e) { throw new import_property_provider2.TokenProviderError( `The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false @@ -36240,7 +36312,7 @@ var require_dist_cjs55 = __commonJS({ } }, "fromSso"); var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => { - logger?.debug("@aws-sdk/token-providers - fromStatic"); + logger == null ? void 0 : logger.debug("@aws-sdk/token-providers - fromStatic"); if (!token || !token.token) { throw new import_property_provider2.TokenProviderError(`Please pass a valid token to fromStatic`, false); } @@ -36257,7 +36329,7 @@ var require_dist_cjs55 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs56 = __commonJS({ +var require_dist_cjs57 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -36301,8 +36373,8 @@ var require_dist_cjs56 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); - var import_client3 = (init_client(), __toCommonJS(client_exports)); - var import_token_providers = require_dist_cjs55(); + var import_client2 = (init_client(), __toCommonJS(client_exports)); + var import_token_providers = require_dist_cjs56(); var import_property_provider2 = require_dist_cjs16(); var import_shared_ini_file_loader = require_dist_cjs40(); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; @@ -36327,8 +36399,8 @@ var require_dist_cjs56 = __commonJS({ accessToken: _token.token, expiresAt: new Date(_token.expiration).toISOString() }; - } catch (e3) { - throw new import_property_provider2.CredentialsProviderError(e3.message, { + } catch (e) { + throw new import_property_provider2.CredentialsProviderError(e.message, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); @@ -36336,7 +36408,7 @@ var require_dist_cjs56 = __commonJS({ } else { try { token = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoStartUrl); - } catch (e3) { + } catch (e) { throw new import_property_provider2.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger @@ -36353,8 +36425,8 @@ var require_dist_cjs56 = __commonJS({ const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports)); const sso = ssoClient || new SSOClient2( Object.assign({}, clientConfig ?? {}, { - logger: clientConfig?.logger ?? parentClientConfig?.logger, - region: clientConfig?.region ?? ssoRegion + logger: (clientConfig == null ? void 0 : clientConfig.logger) ?? (parentClientConfig == null ? void 0 : parentClientConfig.logger), + region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion }) ); let ssoResp; @@ -36366,8 +36438,8 @@ var require_dist_cjs56 = __commonJS({ accessToken }) ); - } catch (e3) { - throw new import_property_provider2.CredentialsProviderError(e3, { + } catch (e) { + throw new import_property_provider2.CredentialsProviderError(e, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); @@ -36390,9 +36462,9 @@ var require_dist_cjs56 = __commonJS({ ...accountId && { accountId } }; if (ssoSession) { - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_SSO", "s"); } else { - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_SSO_LEGACY", "u"); } return credentials; }, "resolveSSOCredentials"); @@ -36409,13 +36481,12 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } return profile; }, "validateSsoProfile"); - var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => { - init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO"); + var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; const { ssoClient } = init; - const profileName = (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }); + const profileName = (0, import_shared_ini_file_loader.getProfileName)(init); if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); const profile = profiles[profileName]; @@ -36427,7 +36498,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht logger: init.logger }); } - if (profile?.sso_session) { + if (profile == null ? void 0 : profile.sso_session) { const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init); const session = ssoSessions[profile.sso_session]; const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; @@ -36483,73 +36554,85 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js -function createAwsAuthSigv4HttpAuthOption2(authParameters) { - return { - schemeId: "aws.auth#sigv4", - signingProperties: { - name: "sts", - region: authParameters.region - }, - propertiesExtractor: (config, context) => ({ - signingProperties: { - config, - context - } - }) - }; -} -function createSmithyApiNoAuthHttpAuthOption2(authParameters) { - return { - schemeId: "smithy.api#noAuth" - }; -} -var import_util_middleware4, defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeProvider, resolveStsAuthConfig, resolveHttpAuthSchemeConfig2; -var init_httpAuthSchemeProvider2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js"() { - init_dist_es2(); - import_util_middleware4 = __toESM(require_dist_cjs4()); - init_STSClient(); - defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +var require_httpAuthSchemeProvider4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var util_middleware_1 = require_dist_cjs4(); + var STSClient_1 = require_STSClient(); + var defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => { return { - operation: (0, import_util_middleware4.getSmithyContext)(context).operation, - region: await (0, import_util_middleware4.normalizeProvider)(config.region)() || (() => { + 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`"); })() }; }; - defaultSTSHttpAuthSchemeProvider = (authParameters) => { + exports2.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" + }; + } + var defaultSTSHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { + case "AssumeRoleWithSAML": { + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); + break; + } case "AssumeRoleWithWebIdentity": { - options.push(createSmithyApiNoAuthHttpAuthOption2(authParameters)); + options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } default: { - options.push(createAwsAuthSigv4HttpAuthOption2(authParameters)); + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; - resolveStsAuthConfig = (input) => ({ + exports2.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider; + var resolveStsAuthConfig = (input) => ({ ...input, - stsClientCtor: STSClient + stsClientCtor: STSClient_1.STSClient }); - resolveHttpAuthSchemeConfig2 = (config) => { - const config_0 = resolveStsAuthConfig(config); - const config_1 = resolveAwsSdkSigV4Config(config_0); + exports2.resolveStsAuthConfig = resolveStsAuthConfig; + var resolveHttpAuthSchemeConfig = (config) => { + const config_0 = (0, exports2.resolveStsAuthConfig)(config); + const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0); return { ...config_1 }; }; + exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js -var resolveClientEndpointParameters2, commonParams2; -var init_EndpointParameters2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js"() { - resolveClientEndpointParameters2 = (options) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +var require_EndpointParameters = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.commonParams = exports2.resolveClientEndpointParameters = void 0; + var resolveClientEndpointParameters = (options) => { return { ...options, useDualstackEndpoint: options.useDualstackEndpoint ?? false, @@ -36558,7 +36641,8 @@ var init_EndpointParameters2 = __esm({ defaultSigningName: "sts" }; }; - commonParams2 = { + exports2.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports2.commonParams = { UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, @@ -36568,320 +36652,305 @@ var init_EndpointParameters2 = __esm({ } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js -var F, G, H, I, J, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2, q2, r2, s2, t2, u2, v2, w2, x2, y, z, A, B, C, D, E, _data2, ruleSet2; -var init_ruleset2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js"() { - F = "required"; - G = "type"; - H = "fn"; - I = "argv"; - J = "ref"; - a2 = false; - b2 = true; - c2 = "booleanEquals"; - d2 = "stringEquals"; - e2 = "sigv4"; - f2 = "sts"; - g2 = "us-east-1"; - h2 = "endpoint"; - i2 = "https://sts.{Region}.{PartitionResult#dnsSuffix}"; - j2 = "tree"; - k2 = "error"; - l2 = "getAttr"; - m2 = { [F]: false, [G]: "String" }; - n2 = { [F]: true, default: false, [G]: "Boolean" }; - o2 = { [J]: "Endpoint" }; - p2 = { [H]: "isSet", [I]: [{ [J]: "Region" }] }; - q2 = { [J]: "Region" }; - r2 = { [H]: "aws.partition", [I]: [q2], assign: "PartitionResult" }; - s2 = { [J]: "UseFIPS" }; - t2 = { [J]: "UseDualStack" }; - u2 = { - url: "https://sts.amazonaws.com", - properties: { authSchemes: [{ name: e2, signingName: f2, signingRegion: g2 }] }, - headers: {} - }; - v2 = {}; - w2 = { conditions: [{ [H]: d2, [I]: [q2, "aws-global"] }], [h2]: u2, [G]: h2 }; - x2 = { [H]: c2, [I]: [s2, true] }; - y = { [H]: c2, [I]: [t2, true] }; - z = { [H]: l2, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }; - A = { [J]: "PartitionResult" }; - B = { [H]: c2, [I]: [true, { [H]: l2, [I]: [A, "supportsDualStack"] }] }; - C = [{ [H]: "isSet", [I]: [o2] }]; - D = [x2]; - E = [y]; - _data2 = { - version: "1.0", - parameters: { Region: m2, UseDualStack: n2, UseFIPS: n2, Endpoint: m2, UseGlobalEndpoint: n2 }, - rules: [ - { - conditions: [ - { [H]: c2, [I]: [{ [J]: "UseGlobalEndpoint" }, b2] }, - { [H]: "not", [I]: C }, - p2, - r2, - { [H]: c2, [I]: [s2, a2] }, - { [H]: c2, [I]: [t2, a2] } - ], - rules: [ - { conditions: [{ [H]: d2, [I]: [q2, "ap-northeast-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-south-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "ap-southeast-2"] }], endpoint: u2, [G]: h2 }, - w2, - { conditions: [{ [H]: d2, [I]: [q2, "ca-central-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-central-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-north-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-2"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "eu-west-3"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "sa-east-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, g2] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-east-2"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-west-1"] }], endpoint: u2, [G]: h2 }, - { conditions: [{ [H]: d2, [I]: [q2, "us-west-2"] }], endpoint: u2, [G]: h2 }, - { - endpoint: { - url: i2, - properties: { authSchemes: [{ name: e2, signingName: f2, signingRegion: "{Region}" }] }, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { - conditions: C, - rules: [ - { conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k2 }, - { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k2 }, - { endpoint: { url: o2, properties: v2, headers: v2 }, [G]: h2 } - ], - [G]: j2 - }, - { - conditions: [p2], - rules: [ - { - conditions: [r2], - rules: [ - { - conditions: [x2, y], - rules: [ - { - conditions: [{ [H]: c2, [I]: [b2, z] }, B], - rules: [ - { - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k2 } - ], - [G]: j2 - }, - { - conditions: D, - rules: [ - { - conditions: [{ [H]: c2, [I]: [z, b2] }], - rules: [ - { - conditions: [{ [H]: d2, [I]: [{ [H]: l2, [I]: [A, "name"] }, "aws-us-gov"] }], - endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v2, headers: v2 }, - [G]: h2 - }, - { - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "FIPS is enabled but this partition does not support FIPS", [G]: k2 } - ], - [G]: j2 - }, - { - conditions: E, - rules: [ - { - conditions: [B], - rules: [ - { - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: v2, - headers: v2 - }, - [G]: h2 - } - ], - [G]: j2 - }, - { error: "DualStack is enabled but this partition does not support DualStack", [G]: k2 } - ], - [G]: j2 - }, - w2, - { endpoint: { url: i2, properties: v2, headers: v2 }, [G]: h2 } - ], - [G]: j2 - } - ], - [G]: j2 - }, - { error: "Invalid Configuration: Missing Region", [G]: k2 } - ] +// ../../node_modules/@aws-sdk/client-sts/package.json +var require_package4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) { + module2.exports = { + name: "@aws-sdk/client-sts", + description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", + version: "3.699.0", + scripts: { + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "node ../../scripts/compilation/inline client-sts", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", + test: "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" + }, + 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/client-sso-oidc": "3.699.0", + "@aws-sdk/core": "3.696.0", + "@aws-sdk/credential-provider-node": "3.699.0", + "@aws-sdk/middleware-host-header": "3.696.0", + "@aws-sdk/middleware-logger": "3.696.0", + "@aws-sdk/middleware-recursion-detection": "3.696.0", + "@aws-sdk/middleware-user-agent": "3.696.0", + "@aws-sdk/region-config-resolver": "3.696.0", + "@aws-sdk/types": "3.696.0", + "@aws-sdk/util-endpoints": "3.696.0", + "@aws-sdk/util-user-agent-browser": "3.696.0", + "@aws-sdk/util-user-agent-node": "3.696.0", + "@smithy/config-resolver": "^3.0.12", + "@smithy/core": "^2.5.3", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/hash-node": "^3.0.10", + "@smithy/invalid-dependency": "^3.0.10", + "@smithy/middleware-content-length": "^3.0.12", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-retry": "^3.0.27", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/protocol-http": "^4.1.7", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.27", + "@smithy/util-defaults-mode-node": "^3.0.27", + "@smithy/util-endpoints": "^2.1.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "@smithy/util-utf8": "^3.0.0", + tslib: "^2.6.2" + }, + devDependencies: { + "@tsconfig/node16": "16.1.3", + "@types/node": "^16.18.96", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typescript: "~4.9.5" + }, + engines: { + node: ">=16.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-sts", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-sts" + } }; - ruleSet2 = _data2; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js -var import_util_endpoints3, import_util_endpoints4, cache2, defaultEndpointResolver2; -var init_endpointResolver2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js"() { - import_util_endpoints3 = __toESM(require_dist_cjs31()); - import_util_endpoints4 = __toESM(require_dist_cjs30()); - init_ruleset2(); - cache2 = new import_util_endpoints4.EndpointCache({ +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +var require_ruleset4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; + var F = "required"; + var G = "type"; + var H = "fn"; + var I = "argv"; + var J = "ref"; + var a = false; + var b = true; + var c = "booleanEquals"; + var d = "stringEquals"; + var e = "sigv4"; + var f = "sts"; + var g = "us-east-1"; + var h = "endpoint"; + var i = "https://sts.{Region}.{PartitionResult#dnsSuffix}"; + var j = "tree"; + var k = "error"; + var l = "getAttr"; + var m = { [F]: false, [G]: "String" }; + var n = { [F]: true, "default": false, [G]: "Boolean" }; + var o = { [J]: "Endpoint" }; + var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }; + var q = { [J]: "Region" }; + var r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }; + var s = { [J]: "UseFIPS" }; + var t = { [J]: "UseDualStack" }; + var u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }; + var v = {}; + var w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }; + var x = { [H]: c, [I]: [s, true] }; + var y = { [H]: c, [I]: [t, true] }; + var z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }; + var A = { [J]: "PartitionResult" }; + var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }; + var C = [{ [H]: "isSet", [I]: [o] }]; + var D = [x]; + var E = [y]; + var _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 }] }; + exports2.ruleSet = _data; + } +}); + +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +var require_endpointResolver4 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; + var util_endpoints_1 = require_dist_cjs31(); + var util_endpoints_2 = require_dist_cjs30(); + var ruleset_1 = require_ruleset4(); + var cache = new util_endpoints_2.EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"] }); - defaultEndpointResolver2 = (endpointParams, context = {}) => { - return cache2.get(endpointParams, () => (0, import_util_endpoints4.resolveEndpoint)(ruleSet2, { + var defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { endpointParams, logger: context.logger })); }; - import_util_endpoints4.customEndpointFunctions.aws = import_util_endpoints3.awsEndpointFunctions; + exports2.defaultEndpointResolver = defaultEndpointResolver; + util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js -var import_smithy_client14, import_url_parser2, import_util_base642, import_util_utf82, getRuntimeConfig3; -var init_runtimeConfig_shared2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js"() { - init_dist_es2(); - init_dist_es(); - import_smithy_client14 = __toESM(require_dist_cjs19()); - import_url_parser2 = __toESM(require_dist_cjs43()); - import_util_base642 = __toESM(require_dist_cjs9()); - import_util_utf82 = __toESM(require_dist_cjs8()); - init_httpAuthSchemeProvider2(); - init_endpointResolver2(); - getRuntimeConfig3 = (config) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var smithy_client_1 = require_dist_cjs19(); + var url_parser_1 = require_dist_cjs43(); + var util_base64_1 = require_dist_cjs9(); + var util_utf8_1 = require_dist_cjs8(); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); + var endpointResolver_1 = require_endpointResolver4(); + var getRuntimeConfig = (config) => { return { apiVersion: "2011-06-15", - base64Decoder: config?.base64Decoder ?? import_util_base642.fromBase64, - base64Encoder: config?.base64Encoder ?? import_util_base642.toBase64, + base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, + base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver2, + endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, extensions: config?.extensions ?? [], - httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider, + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), - signer: new AwsSdkSigV4Signer() + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - logger: config?.logger ?? new import_smithy_client14.NoOpLogger(), + logger: config?.logger ?? new smithy_client_1.NoOpLogger(), serviceId: config?.serviceId ?? "STS", - urlParser: config?.urlParser ?? import_url_parser2.parseUrl, - utf8Decoder: config?.utf8Decoder ?? import_util_utf82.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? import_util_utf82.toUtf8 + urlParser: config?.urlParser ?? url_parser_1.parseUrl, + utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, + utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js -var import_util_user_agent_node2, import_config_resolver3, import_hash_node2, import_middleware_retry3, import_node_config_provider2, import_node_http_handler2, import_util_body_length_node2, import_util_retry2, import_smithy_client15, import_util_defaults_mode_node2, import_smithy_client16, getRuntimeConfig4; -var init_runtimeConfig2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js"() { - init_package(); - init_dist_es2(); - import_util_user_agent_node2 = __toESM(require_dist_cjs49()); - import_config_resolver3 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_hash_node2 = __toESM(require_dist_cjs50()); - import_middleware_retry3 = __toESM(require_dist_cjs38()); - import_node_config_provider2 = __toESM(require_dist_cjs41()); - import_node_http_handler2 = __toESM(require_dist_cjs12()); - import_util_body_length_node2 = __toESM(require_dist_cjs51()); - import_util_retry2 = __toESM(require_dist_cjs37()); - init_runtimeConfig_shared2(); - import_smithy_client15 = __toESM(require_dist_cjs19()); - import_util_defaults_mode_node2 = __toESM(require_dist_cjs52()); - import_smithy_client16 = __toESM(require_dist_cjs19()); - getRuntimeConfig4 = (config) => { - (0, import_smithy_client16.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, import_util_defaults_mode_node2.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(import_smithy_client15.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig3(config); - emitWarningIfUnsupportedVersion(process.version); - const profileConfig = { profile: config?.profile }; +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var package_json_1 = tslib_1.__importDefault(require_package4()); + var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var credential_provider_node_1 = require_dist_cjs62(); + var util_user_agent_node_1 = require_dist_cjs49(); + var config_resolver_1 = require_dist_cjs33(); + var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var hash_node_1 = require_dist_cjs50(); + var middleware_retry_1 = require_dist_cjs38(); + var node_config_provider_1 = require_dist_cjs41(); + var node_http_handler_1 = require_dist_cjs12(); + var util_body_length_node_1 = require_dist_cjs51(); + var util_retry_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs52(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + (0, smithy_client_2.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); return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node2.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_util_user_agent_node2.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), + bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, + 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 AwsSdkSigV4Signer() + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await (0, credential_provider_node_1.defaultProvider)(idProps?.__config || {})()), + signer: new core_1.AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner() + signer: new core_2.NoAuthSigner() } ], - maxAttempts: config?.maxAttempts ?? (0, import_node_config_provider2.loadConfig)(import_middleware_retry3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), - region: config?.region ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver3.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestHandler: import_node_http_handler2.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: config?.retryMode ?? (0, import_node_config_provider2.loadConfig)({ - ...import_middleware_retry3.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || import_util_retry2.DEFAULT_RETRY_MODE - }, config), - sha256: config?.sha256 ?? import_hash_node2.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? import_node_http_handler2.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_node_config_provider2.loadConfig)(import_config_resolver3.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, import_node_config_provider2.loadConfig)(import_util_user_agent_node2.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + 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 + }), + 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), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js -var getHttpAuthExtensionConfiguration2, resolveHttpAuthRuntimeConfig2; -var init_httpAuthExtensionConfiguration2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js"() { - getHttpAuthExtensionConfiguration2 = (runtimeConfig) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +var require_httpAuthExtensionConfiguration = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0; + var getHttpAuthExtensionConfiguration = (runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -36911,230 +36980,357 @@ var init_httpAuthExtensionConfiguration2 = __esm({ } }; }; - resolveHttpAuthRuntimeConfig2 = (config) => { + exports2.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration; + var resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }; + exports2.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js -var import_region_config_resolver2, import_protocol_http9, import_smithy_client17, asPartial2, resolveRuntimeExtensions2; -var init_runtimeExtensions2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() { - import_region_config_resolver2 = __toESM(require_dist_cjs53()); - import_protocol_http9 = __toESM(require_dist_cjs2()); - import_smithy_client17 = __toESM(require_dist_cjs19()); - init_httpAuthExtensionConfiguration2(); - asPartial2 = (t3) => t3; - resolveRuntimeExtensions2 = (runtimeConfig, extensions) => { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +var require_runtimeExtensions = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRuntimeExtensions = void 0; + var region_config_resolver_1 = require_dist_cjs53(); + var protocol_http_1 = require_dist_cjs2(); + var smithy_client_1 = require_dist_cjs19(); + var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration(); + var asPartial = (t) => t; + var resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial2((0, import_region_config_resolver2.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial2((0, import_smithy_client17.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial2((0, import_protocol_http9.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial2(getHttpAuthExtensionConfiguration2(runtimeConfig)) + ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver2.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client17.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http9.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig2(extensionConfiguration) + ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration) }; }; + exports2.resolveRuntimeExtensions = resolveRuntimeExtensions; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js -var import_middleware_host_header2, import_middleware_logger2, import_middleware_recursion_detection2, import_middleware_user_agent2, import_config_resolver4, import_middleware_content_length2, import_middleware_endpoint3, import_middleware_retry4, import_smithy_client18, STSClient; -var init_STSClient = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js"() { - import_middleware_host_header2 = __toESM(require_dist_cjs24()); - import_middleware_logger2 = __toESM(require_dist_cjs25()); - import_middleware_recursion_detection2 = __toESM(require_dist_cjs26()); - import_middleware_user_agent2 = __toESM(require_dist_cjs32()); - import_config_resolver4 = __toESM(require_dist_cjs33()); - init_dist_es(); - import_middleware_content_length2 = __toESM(require_dist_cjs35()); - import_middleware_endpoint3 = __toESM(require_dist_cjs44()); - import_middleware_retry4 = __toESM(require_dist_cjs38()); - import_smithy_client18 = __toESM(require_dist_cjs19()); - init_httpAuthSchemeProvider2(); - init_EndpointParameters2(); - init_runtimeConfig2(); - init_runtimeExtensions2(); - STSClient = class extends import_smithy_client18.Client { - config; +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STSClient = exports2.__Client = void 0; + var middleware_host_header_1 = require_dist_cjs24(); + var middleware_logger_1 = require_dist_cjs25(); + var middleware_recursion_detection_1 = require_dist_cjs26(); + var middleware_user_agent_1 = require_dist_cjs32(); + var config_resolver_1 = require_dist_cjs33(); + var core_1 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var middleware_content_length_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs44(); + var middleware_retry_1 = require_dist_cjs38(); + var smithy_client_1 = require_dist_cjs19(); + Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { + return smithy_client_1.Client; + } }); + var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4(); + var EndpointParameters_1 = require_EndpointParameters(); + var runtimeConfig_1 = require_runtimeConfig3(); + var runtimeExtensions_1 = require_runtimeExtensions(); + var STSClient2 = class extends smithy_client_1.Client { constructor(...[configuration2]) { - const _config_0 = getRuntimeConfig4(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters2(_config_0); - const _config_2 = (0, import_middleware_user_agent2.resolveUserAgentConfig)(_config_1); - const _config_3 = (0, import_middleware_retry4.resolveRetryConfig)(_config_2); - const _config_4 = (0, import_config_resolver4.resolveRegionConfig)(_config_3); - const _config_5 = (0, import_middleware_host_header2.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, import_middleware_endpoint3.resolveEndpointConfig)(_config_5); - const _config_7 = resolveHttpAuthSchemeConfig2(_config_6); - const _config_8 = resolveRuntimeExtensions2(_config_7, configuration2?.extensions || []); + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration2 || {}); + 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, configuration2?.extensions || []); super(_config_8); this.config = _config_8; - this.middlewareStack.use((0, import_middleware_user_agent2.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry4.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length2.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header2.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger2.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection2.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { - httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + 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(getHttpSigningPlugin(this.config)); + this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config)); } destroy() { super.destroy(); } }; + exports2.STSClient = STSClient2; } }); -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js -var import_smithy_client19, STSServiceException; -var init_STSServiceException = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"() { - import_smithy_client19 = __toESM(require_dist_cjs19()); - STSServiceException = class _STSServiceException extends import_smithy_client19.ServiceException { +// ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs58 = __commonJS({ + "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) { + "use strict"; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AssumeRoleCommand: () => AssumeRoleCommand, + AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog, + AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand, + AssumeRoleWithSAMLRequestFilterSensitiveLog: () => AssumeRoleWithSAMLRequestFilterSensitiveLog, + AssumeRoleWithSAMLResponseFilterSensitiveLog: () => AssumeRoleWithSAMLResponseFilterSensitiveLog, + AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand, + AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog, + AssumeRootCommand: () => AssumeRootCommand, + AssumeRootResponseFilterSensitiveLog: () => AssumeRootResponseFilterSensitiveLog, + ClientInputEndpointParameters: () => import_EndpointParameters10.ClientInputEndpointParameters, + CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog, + DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand, + ExpiredTokenException: () => ExpiredTokenException, + GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand, + GetCallerIdentityCommand: () => GetCallerIdentityCommand, + GetFederationTokenCommand: () => GetFederationTokenCommand, + GetFederationTokenResponseFilterSensitiveLog: () => GetFederationTokenResponseFilterSensitiveLog, + GetSessionTokenCommand: () => GetSessionTokenCommand, + GetSessionTokenResponseFilterSensitiveLog: () => GetSessionTokenResponseFilterSensitiveLog, + IDPCommunicationErrorException: () => IDPCommunicationErrorException, + IDPRejectedClaimException: () => IDPRejectedClaimException, + InvalidAuthorizationMessageException: () => InvalidAuthorizationMessageException, + InvalidIdentityTokenException: () => InvalidIdentityTokenException, + MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, + PackedPolicyTooLargeException: () => PackedPolicyTooLargeException, + RegionDisabledException: () => RegionDisabledException, + STS: () => STS, + STSServiceException: () => STSServiceException, + decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider, + getDefaultRoleAssumer: () => getDefaultRoleAssumer2, + getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2 + }); + module2.exports = __toCommonJS2(src_exports); + __reExport(src_exports, require_STSClient(), module2.exports); + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_serde2 = require_dist_cjs5(); + var import_EndpointParameters = require_EndpointParameters(); + var import_smithy_client4 = require_dist_cjs19(); + var _STSServiceException = class _STSServiceException2 extends import_smithy_client4.ServiceException { + /** + * @internal + */ constructor(options) { super(options); - Object.setPrototypeOf(this, _STSServiceException.prototype); + Object.setPrototypeOf(this, _STSServiceException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js -var import_smithy_client20, CredentialsFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, IDPCommunicationErrorException; -var init_models_02 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js"() { - import_smithy_client20 = __toESM(require_dist_cjs19()); - init_STSServiceException(); - CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client20.SENSITIVE_STRING } - }); - AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } - }); - ExpiredTokenException2 = class _ExpiredTokenException extends STSServiceException { - name = "ExpiredTokenException"; - $fault = "client"; + __name(_STSServiceException, "STSServiceException"); + var STSServiceException = _STSServiceException; + var _ExpiredTokenException = class _ExpiredTokenException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ExpiredTokenException2.prototype); } }; - MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException { - name = "MalformedPolicyDocumentException"; - $fault = "client"; + __name(_ExpiredTokenException, "ExpiredTokenException"); + var ExpiredTokenException = _ExpiredTokenException; + var _MalformedPolicyDocumentException = class _MalformedPolicyDocumentException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "MalformedPolicyDocumentException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _MalformedPolicyDocumentException2.prototype); } }; - PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException { - name = "PackedPolicyTooLargeException"; - $fault = "client"; + __name(_MalformedPolicyDocumentException, "MalformedPolicyDocumentException"); + var MalformedPolicyDocumentException = _MalformedPolicyDocumentException; + var _PackedPolicyTooLargeException = class _PackedPolicyTooLargeException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "PackedPolicyTooLargeException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _PackedPolicyTooLargeException2.prototype); } }; - RegionDisabledException = class _RegionDisabledException extends STSServiceException { - name = "RegionDisabledException"; - $fault = "client"; + __name(_PackedPolicyTooLargeException, "PackedPolicyTooLargeException"); + var PackedPolicyTooLargeException = _PackedPolicyTooLargeException; + var _RegionDisabledException = class _RegionDisabledException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "RegionDisabledException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _RegionDisabledException.prototype); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _RegionDisabledException2.prototype); } }; - IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException { - name = "IDPRejectedClaimException"; - $fault = "client"; + __name(_RegionDisabledException, "RegionDisabledException"); + var RegionDisabledException = _RegionDisabledException; + var _IDPRejectedClaimException = class _IDPRejectedClaimException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "IDPRejectedClaimException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _IDPRejectedClaimException2.prototype); } }; - InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException { - name = "InvalidIdentityTokenException"; - $fault = "client"; + __name(_IDPRejectedClaimException, "IDPRejectedClaimException"); + var IDPRejectedClaimException = _IDPRejectedClaimException; + var _InvalidIdentityTokenException = class _InvalidIdentityTokenException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "InvalidIdentityTokenException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidIdentityTokenException2.prototype); } }; - AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client20.SENSITIVE_STRING } - }); - AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } - }); - IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException { - name = "IDPCommunicationErrorException"; - $fault = "client"; + __name(_InvalidIdentityTokenException, "InvalidIdentityTokenException"); + var InvalidIdentityTokenException = _InvalidIdentityTokenException; + var _IDPCommunicationErrorException = class _IDPCommunicationErrorException2 extends STSServiceException { + /** + * @internal + */ constructor(opts) { super({ name: "IDPCommunicationErrorException", $fault: "client", ...opts }); - Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _IDPCommunicationErrorException2.prototype); } }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js -var import_protocol_http10, import_smithy_client21, se_AssumeRoleCommand, se_AssumeRoleWithWebIdentityCommand, de_AssumeRoleCommand, de_AssumeRoleWithWebIdentityCommand, de_CommandError2, de_ExpiredTokenExceptionRes2, de_IDPCommunicationErrorExceptionRes, de_IDPRejectedClaimExceptionRes, de_InvalidIdentityTokenExceptionRes, de_MalformedPolicyDocumentExceptionRes, de_PackedPolicyTooLargeExceptionRes, de_RegionDisabledExceptionRes, se_AssumeRoleRequest, se_AssumeRoleWithWebIdentityRequest, se_policyDescriptorListType, se_PolicyDescriptorType, se_ProvidedContext, se_ProvidedContextsListType, se_Tag, se_tagKeyListType, se_tagListType, de_AssumedRoleUser, de_AssumeRoleResponse, de_AssumeRoleWithWebIdentityResponse, de_Credentials, de_ExpiredTokenException, de_IDPCommunicationErrorException, de_IDPRejectedClaimException, de_InvalidIdentityTokenException, de_MalformedPolicyDocumentException, de_PackedPolicyTooLargeException, de_RegionDisabledException, deserializeMetadata2, throwDefaultError2, buildHttpRpcRequest, SHARED_HEADERS, _, _A, _AKI, _AR, _ARI, _ARU, _ARWWI, _Ar, _Au, _C, _CA, _DS, _E, _EI, _K, _P, _PA, _PAr, _PC, _PI, _PPS, _Pr, _RA, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _T, _TC, _TTK, _V, _Va, _WIT, _a, _m, buildFormUrlencodedString, loadQueryErrorCode; -var init_Aws_query = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js"() { - init_dist_es2(); - import_protocol_http10 = __toESM(require_dist_cjs2()); - import_smithy_client21 = __toESM(require_dist_cjs19()); - init_models_02(); - init_STSServiceException(); - se_AssumeRoleCommand = async (input, context) => { + __name(_IDPCommunicationErrorException, "IDPCommunicationErrorException"); + var IDPCommunicationErrorException = _IDPCommunicationErrorException; + var _InvalidAuthorizationMessageException = class _InvalidAuthorizationMessageException2 extends STSServiceException { + /** + * @internal + */ + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidAuthorizationMessageException2.prototype); + } + }; + __name(_InvalidAuthorizationMessageException, "InvalidAuthorizationMessageException"); + var InvalidAuthorizationMessageException = _InvalidAuthorizationMessageException; + var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client4.SENSITIVE_STRING } + }), "CredentialsFilterSensitiveLog"); + var AssumeRoleResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleResponseFilterSensitiveLog"); + var AssumeRoleWithSAMLRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.SAMLAssertion && { SAMLAssertion: import_smithy_client4.SENSITIVE_STRING } + }), "AssumeRoleWithSAMLRequestFilterSensitiveLog"); + var AssumeRoleWithSAMLResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleWithSAMLResponseFilterSensitiveLog"); + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.WebIdentityToken && { WebIdentityToken: import_smithy_client4.SENSITIVE_STRING } + }), "AssumeRoleWithWebIdentityRequestFilterSensitiveLog"); + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRoleWithWebIdentityResponseFilterSensitiveLog"); + var AssumeRootResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "AssumeRootResponseFilterSensitiveLog"); + var GetFederationTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "GetFederationTokenResponseFilterSensitiveLog"); + var GetSessionTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) } + }), "GetSessionTokenResponseFilterSensitiveLog"); + var import_core3 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_protocol_http8 = require_dist_cjs2(); + var se_AssumeRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; body = buildFormUrlencodedString({ @@ -37143,8 +37339,18 @@ var init_Aws_query = __esm({ [_V]: _ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - se_AssumeRoleWithWebIdentityCommand = async (input, context) => { + }, "se_AssumeRoleCommand"); + var se_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AssumeRoleWithSAMLRequest(input, context), + [_A]: _ARWSAML, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_AssumeRoleWithSAMLCommand"); + var se_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = SHARED_HEADERS; let body; body = buildFormUrlencodedString({ @@ -37153,43 +37359,194 @@ var init_Aws_query = __esm({ [_V]: _ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - de_AssumeRoleCommand = async (output, context) => { + }, "se_AssumeRoleWithWebIdentityCommand"); + var se_AssumeRootCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_AssumeRootRequest(input, context), + [_A]: _ARs, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_AssumeRootCommand"); + var se_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_DecodeAuthorizationMessageRequest(input, context), + [_A]: _DAM, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_DecodeAuthorizationMessageCommand"); + var se_GetAccessKeyInfoCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetAccessKeyInfoRequest(input, context), + [_A]: _GAKI, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetAccessKeyInfoCommand"); + var se_GetCallerIdentityCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetCallerIdentityRequest(input, context), + [_A]: _GCI, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetCallerIdentityCommand"); + var se_GetFederationTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetFederationTokenRequest(input, context), + [_A]: _GFT, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetFederationTokenCommand"); + var se_GetSessionTokenCommand = /* @__PURE__ */ __name(async (input, context) => { + const headers = SHARED_HEADERS; + let body; + body = buildFormUrlencodedString({ + ...se_GetSessionTokenRequest(input, context), + [_A]: _GST, + [_V]: _ + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }, "se_GetSessionTokenCommand"); + var de_AssumeRoleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { - return de_CommandError2(output, context); + return de_CommandError(output, context); } - const data = await parseXmlBody(output.body, context); + const data = await (0, import_core3.parseXmlBody)(output.body, context); let contents = {}; contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); const response = { - $metadata: deserializeMetadata2(output), + $metadata: deserializeMetadata(output), ...contents }; return response; - }; - de_AssumeRoleWithWebIdentityCommand = async (output, context) => { + }, "de_AssumeRoleCommand"); + var de_AssumeRoleWithSAMLCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { - return de_CommandError2(output, context); + return de_CommandError(output, context); } - const data = await parseXmlBody(output.body, context); + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_AssumeRoleWithSAMLCommand"); + var de_AssumeRoleWithWebIdentityCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); let contents = {}; contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); const response = { - $metadata: deserializeMetadata2(output), + $metadata: deserializeMetadata(output), ...contents }; return response; - }; - de_CommandError2 = async (output, context) => { + }, "de_AssumeRoleWithWebIdentityCommand"); + var de_AssumeRootCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_AssumeRootResponse(data.AssumeRootResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_AssumeRootCommand"); + var de_DecodeAuthorizationMessageCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_DecodeAuthorizationMessageCommand"); + var de_GetAccessKeyInfoCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetAccessKeyInfoCommand"); + var de_GetCallerIdentityCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetCallerIdentityCommand"); + var de_GetFederationTokenCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetFederationTokenCommand"); + var de_GetSessionTokenCommand = /* @__PURE__ */ __name(async (output, context) => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data = await (0, import_core3.parseXmlBody)(output.body, context); + let contents = {}; + contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return response; + }, "de_GetSessionTokenCommand"); + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await parseXmlErrorBody(output.body, context) + body: await (0, import_core3.parseXmlErrorBody)(output.body, context) }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { case "ExpiredTokenException": case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes2(parsedOutput, context); + throw await de_ExpiredTokenExceptionRes(parsedOutput, context); case "MalformedPolicyDocument": case "com.amazonaws.sts#MalformedPolicyDocumentException": throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); @@ -37199,88 +37556,101 @@ var init_Aws_query = __esm({ case "RegionDisabledException": case "com.amazonaws.sts#RegionDisabledException": throw await de_RegionDisabledExceptionRes(parsedOutput, context); - case "IDPCommunicationError": - case "com.amazonaws.sts#IDPCommunicationErrorException": - throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); case "IDPRejectedClaim": case "com.amazonaws.sts#IDPRejectedClaimException": throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); case "InvalidIdentityToken": case "com.amazonaws.sts#InvalidIdentityTokenException": throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); + case "IDPCommunicationError": + case "com.amazonaws.sts#IDPCommunicationErrorException": + throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); + case "InvalidAuthorizationMessageException": + case "com.amazonaws.sts#InvalidAuthorizationMessageException": + throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError2({ + return throwDefaultError({ output, parsedBody: parsedBody.Error, errorCode }); } - }; - de_ExpiredTokenExceptionRes2 = async (parsedOutput, context) => { + }, "de_CommandError"); + var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new ExpiredTokenException2({ - $metadata: deserializeMetadata2(parsedOutput), + const exception = new ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_ExpiredTokenExceptionRes"); + var de_IDPCommunicationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_IDPCommunicationErrorException(body.Error, context); const exception = new IDPCommunicationErrorException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_IDPCommunicationErrorExceptionRes"); + var de_IDPRejectedClaimExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_IDPRejectedClaimException(body.Error, context); const exception = new IDPRejectedClaimException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_IDPRejectedClaimExceptionRes"); + var de_InvalidAuthorizationMessageExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); + const exception = new InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_InvalidAuthorizationMessageExceptionRes"); + var de_InvalidIdentityTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_InvalidIdentityTokenException(body.Error, context); const exception = new InvalidIdentityTokenException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_InvalidIdentityTokenExceptionRes"); + var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_MalformedPolicyDocumentException(body.Error, context); const exception = new MalformedPolicyDocumentException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_MalformedPolicyDocumentExceptionRes"); + var de_PackedPolicyTooLargeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_PackedPolicyTooLargeException(body.Error, context); const exception = new PackedPolicyTooLargeException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - de_RegionDisabledExceptionRes = async (parsedOutput, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_PackedPolicyTooLargeExceptionRes"); + var de_RegionDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = de_RegionDisabledException(body.Error, context); const exception = new RegionDisabledException({ - $metadata: deserializeMetadata2(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...deserialized }); - return (0, import_smithy_client21.decorateServiceException)(exception, body); - }; - se_AssumeRoleRequest = (input, context) => { + return (0, import_smithy_client4.decorateServiceException)(exception, body); + }, "de_RegionDisabledExceptionRes"); + var se_AssumeRoleRequest = /* @__PURE__ */ __name((input, context) => { + var _a2, _b, _c, _d; const entries = {}; if (input[_RA] != null) { entries[_RA] = input[_RA]; @@ -37290,7 +37660,7 @@ var init_Aws_query = __esm({ } if (input[_PA] != null) { const memberEntries = se_policyDescriptorListType(input[_PA], context); - if (input[_PA]?.length === 0) { + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37306,7 +37676,7 @@ var init_Aws_query = __esm({ } if (input[_T] != null) { const memberEntries = se_tagListType(input[_T], context); - if (input[_T]?.length === 0) { + if (((_b = input[_T]) == null ? void 0 : _b.length) === 0) { entries.Tags = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37316,7 +37686,7 @@ var init_Aws_query = __esm({ } if (input[_TTK] != null) { const memberEntries = se_tagKeyListType(input[_TTK], context); - if (input[_TTK]?.length === 0) { + if (((_c = input[_TTK]) == null ? void 0 : _c.length) === 0) { entries.TransitiveTagKeys = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37338,7 +37708,7 @@ var init_Aws_query = __esm({ } if (input[_PC] != null) { const memberEntries = se_ProvidedContextsListType(input[_PC], context); - if (input[_PC]?.length === 0) { + if (((_d = input[_PC]) == null ? void 0 : _d.length) === 0) { entries.ProvidedContexts = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37347,8 +37717,39 @@ var init_Aws_query = __esm({ }); } return entries; - }; - se_AssumeRoleWithWebIdentityRequest = (input, context) => { + }, "se_AssumeRoleRequest"); + var se_AssumeRoleWithSAMLRequest = /* @__PURE__ */ __name((input, context) => { + var _a2; + const entries = {}; + if (input[_RA] != null) { + entries[_RA] = input[_RA]; + } + if (input[_PAr] != null) { + entries[_PAr] = input[_PAr]; + } + if (input[_SAMLA] != null) { + entries[_SAMLA] = input[_SAMLA]; + } + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { + entries.PolicyArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input[_P] != null) { + entries[_P] = input[_P]; + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + return entries; + }, "se_AssumeRoleWithSAMLRequest"); + var se_AssumeRoleWithWebIdentityRequest = /* @__PURE__ */ __name((input, context) => { + var _a2; const entries = {}; if (input[_RA] != null) { entries[_RA] = input[_RA]; @@ -37364,7 +37765,7 @@ var init_Aws_query = __esm({ } if (input[_PA] != null) { const memberEntries = se_policyDescriptorListType(input[_PA], context); - if (input[_PA]?.length === 0) { + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { entries.PolicyArns = []; } Object.entries(memberEntries).forEach(([key, value]) => { @@ -37379,8 +37780,90 @@ var init_Aws_query = __esm({ entries[_DS] = input[_DS]; } return entries; - }; - se_policyDescriptorListType = (input, context) => { + }, "se_AssumeRoleWithWebIdentityRequest"); + var se_AssumeRootRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_TP] != null) { + entries[_TP] = input[_TP]; + } + if (input[_TPA] != null) { + const memberEntries = se_PolicyDescriptorType(input[_TPA], context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TaskPolicyArn.${key}`; + entries[loc] = value; + }); + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + return entries; + }, "se_AssumeRootRequest"); + var se_DecodeAuthorizationMessageRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_EM] != null) { + entries[_EM] = input[_EM]; + } + return entries; + }, "se_DecodeAuthorizationMessageRequest"); + var se_GetAccessKeyInfoRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_AKI] != null) { + entries[_AKI] = input[_AKI]; + } + return entries; + }, "se_GetAccessKeyInfoRequest"); + var se_GetCallerIdentityRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + return entries; + }, "se_GetCallerIdentityRequest"); + var se_GetFederationTokenRequest = /* @__PURE__ */ __name((input, context) => { + var _a2, _b; + const entries = {}; + if (input[_N] != null) { + entries[_N] = input[_N]; + } + if (input[_P] != null) { + entries[_P] = input[_P]; + } + if (input[_PA] != null) { + const memberEntries = se_policyDescriptorListType(input[_PA], context); + if (((_a2 = input[_PA]) == null ? void 0 : _a2.length) === 0) { + entries.PolicyArns = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + if (input[_T] != null) { + const memberEntries = se_tagListType(input[_T], context); + if (((_b = input[_T]) == null ? void 0 : _b.length) === 0) { + entries.Tags = []; + } + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; + }, "se_GetFederationTokenRequest"); + var se_GetSessionTokenRequest = /* @__PURE__ */ __name((input, context) => { + const entries = {}; + if (input[_DS] != null) { + entries[_DS] = input[_DS]; + } + if (input[_SN] != null) { + entries[_SN] = input[_SN]; + } + if (input[_TC] != null) { + entries[_TC] = input[_TC]; + } + return entries; + }, "se_GetSessionTokenRequest"); + var se_policyDescriptorListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37394,25 +37877,25 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_PolicyDescriptorType = (input, context) => { + }, "se_policyDescriptorListType"); + var se_PolicyDescriptorType = /* @__PURE__ */ __name((input, context) => { const entries = {}; if (input[_a] != null) { entries[_a] = input[_a]; } return entries; - }; - se_ProvidedContext = (input, context) => { + }, "se_PolicyDescriptorType"); + var se_ProvidedContext = /* @__PURE__ */ __name((input, context) => { const entries = {}; - if (input[_PAr] != null) { - entries[_PAr] = input[_PAr]; + if (input[_PAro] != null) { + entries[_PAro] = input[_PAro]; } if (input[_CA] != null) { entries[_CA] = input[_CA]; } return entries; - }; - se_ProvidedContextsListType = (input, context) => { + }, "se_ProvidedContext"); + var se_ProvidedContextsListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37426,8 +37909,8 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_Tag = (input, context) => { + }, "se_ProvidedContextsListType"); + var se_Tag = /* @__PURE__ */ __name((input, context) => { const entries = {}; if (input[_K] != null) { entries[_K] = input[_K]; @@ -37436,8 +37919,8 @@ var init_Aws_query = __esm({ entries[_Va] = input[_Va]; } return entries; - }; - se_tagKeyListType = (input, context) => { + }, "se_Tag"); + var se_tagKeyListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37448,8 +37931,8 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - se_tagListType = (input, context) => { + }, "se_tagKeyListType"); + var se_tagListType = /* @__PURE__ */ __name((input, context) => { const entries = {}; let counter = 1; for (const entry of input) { @@ -37463,18 +37946,18 @@ var init_Aws_query = __esm({ counter++; } return entries; - }; - de_AssumedRoleUser = (output, context) => { + }, "se_tagListType"); + var de_AssumedRoleUser = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ARI] != null) { - contents[_ARI] = (0, import_smithy_client21.expectString)(output[_ARI]); + contents[_ARI] = (0, import_smithy_client4.expectString)(output[_ARI]); } if (output[_Ar] != null) { - contents[_Ar] = (0, import_smithy_client21.expectString)(output[_Ar]); + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); } return contents; - }; - de_AssumeRoleResponse = (output, context) => { + }, "de_AssumedRoleUser"); + var de_AssumeRoleResponse = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_C] != null) { contents[_C] = de_Credentials(output[_C], context); @@ -37483,111 +37966,216 @@ var init_Aws_query = __esm({ contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } if (output[_PPS] != null) { - contents[_PPS] = (0, import_smithy_client21.strictParseInt32)(output[_PPS]); + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); } if (output[_SI] != null) { - contents[_SI] = (0, import_smithy_client21.expectString)(output[_SI]); + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); } return contents; - }; - de_AssumeRoleWithWebIdentityResponse = (output, context) => { + }, "de_AssumeRoleResponse"); + var de_AssumeRoleWithSAMLResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_ARU] != null) { + contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); + } + if (output[_PPS] != null) { + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); + } + if (output[_S] != null) { + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); + } + if (output[_ST] != null) { + contents[_ST] = (0, import_smithy_client4.expectString)(output[_ST]); + } + if (output[_I] != null) { + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); + } + if (output[_Au] != null) { + contents[_Au] = (0, import_smithy_client4.expectString)(output[_Au]); + } + if (output[_NQ] != null) { + contents[_NQ] = (0, import_smithy_client4.expectString)(output[_NQ]); + } + if (output[_SI] != null) { + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); + } + return contents; + }, "de_AssumeRoleWithSAMLResponse"); + var de_AssumeRoleWithWebIdentityResponse = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_C] != null) { contents[_C] = de_Credentials(output[_C], context); } if (output[_SFWIT] != null) { - contents[_SFWIT] = (0, import_smithy_client21.expectString)(output[_SFWIT]); + contents[_SFWIT] = (0, import_smithy_client4.expectString)(output[_SFWIT]); } if (output[_ARU] != null) { contents[_ARU] = de_AssumedRoleUser(output[_ARU], context); } if (output[_PPS] != null) { - contents[_PPS] = (0, import_smithy_client21.strictParseInt32)(output[_PPS]); + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); } if (output[_Pr] != null) { - contents[_Pr] = (0, import_smithy_client21.expectString)(output[_Pr]); + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } if (output[_Au] != null) { - contents[_Au] = (0, import_smithy_client21.expectString)(output[_Au]); + contents[_Au] = (0, import_smithy_client4.expectString)(output[_Au]); } if (output[_SI] != null) { - contents[_SI] = (0, import_smithy_client21.expectString)(output[_SI]); + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); } return contents; - }; - de_Credentials = (output, context) => { + }, "de_AssumeRoleWithWebIdentityResponse"); + var de_AssumeRootResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_SI] != null) { + contents[_SI] = (0, import_smithy_client4.expectString)(output[_SI]); + } + return contents; + }, "de_AssumeRootResponse"); + var de_Credentials = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_AKI] != null) { - contents[_AKI] = (0, import_smithy_client21.expectString)(output[_AKI]); + contents[_AKI] = (0, import_smithy_client4.expectString)(output[_AKI]); } if (output[_SAK] != null) { - contents[_SAK] = (0, import_smithy_client21.expectString)(output[_SAK]); + contents[_SAK] = (0, import_smithy_client4.expectString)(output[_SAK]); } - if (output[_ST] != null) { - contents[_ST] = (0, import_smithy_client21.expectString)(output[_ST]); + if (output[_STe] != null) { + contents[_STe] = (0, import_smithy_client4.expectString)(output[_STe]); } if (output[_E] != null) { - contents[_E] = (0, import_smithy_client21.expectNonNull)((0, import_smithy_client21.parseRfc3339DateTimeWithOffset)(output[_E])); + contents[_E] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_E])); } return contents; - }; - de_ExpiredTokenException = (output, context) => { + }, "de_Credentials"); + var de_DecodeAuthorizationMessageResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_DM] != null) { + contents[_DM] = (0, import_smithy_client4.expectString)(output[_DM]); + } + return contents; + }, "de_DecodeAuthorizationMessageResponse"); + var de_ExpiredTokenException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_IDPCommunicationErrorException = (output, context) => { + }, "de_ExpiredTokenException"); + var de_FederatedUser = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_FUI] != null) { + contents[_FUI] = (0, import_smithy_client4.expectString)(output[_FUI]); + } + if (output[_Ar] != null) { + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); + } + return contents; + }, "de_FederatedUser"); + var de_GetAccessKeyInfoResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_Ac] != null) { + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); + } + return contents; + }, "de_GetAccessKeyInfoResponse"); + var de_GetCallerIdentityResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_UI] != null) { + contents[_UI] = (0, import_smithy_client4.expectString)(output[_UI]); + } + if (output[_Ac] != null) { + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); + } + if (output[_Ar] != null) { + contents[_Ar] = (0, import_smithy_client4.expectString)(output[_Ar]); + } + return contents; + }, "de_GetCallerIdentityResponse"); + var de_GetFederationTokenResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + if (output[_FU] != null) { + contents[_FU] = de_FederatedUser(output[_FU], context); + } + if (output[_PPS] != null) { + contents[_PPS] = (0, import_smithy_client4.strictParseInt32)(output[_PPS]); + } + return contents; + }, "de_GetFederationTokenResponse"); + var de_GetSessionTokenResponse = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_C] != null) { + contents[_C] = de_Credentials(output[_C], context); + } + return contents; + }, "de_GetSessionTokenResponse"); + var de_IDPCommunicationErrorException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_IDPRejectedClaimException = (output, context) => { + }, "de_IDPCommunicationErrorException"); + var de_IDPRejectedClaimException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_InvalidIdentityTokenException = (output, context) => { + }, "de_IDPRejectedClaimException"); + var de_InvalidAuthorizationMessageException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_MalformedPolicyDocumentException = (output, context) => { + }, "de_InvalidAuthorizationMessageException"); + var de_InvalidIdentityTokenException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_PackedPolicyTooLargeException = (output, context) => { + }, "de_InvalidIdentityTokenException"); + var de_MalformedPolicyDocumentException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - de_RegionDisabledException = (output, context) => { + }, "de_MalformedPolicyDocumentException"); + var de_PackedPolicyTooLargeException = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_m] != null) { - contents[_m] = (0, import_smithy_client21.expectString)(output[_m]); + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); } return contents; - }; - deserializeMetadata2 = (output) => ({ + }, "de_PackedPolicyTooLargeException"); + var de_RegionDisabledException = /* @__PURE__ */ __name((output, context) => { + const contents = {}; + if (output[_m] != null) { + contents[_m] = (0, import_smithy_client4.expectString)(output[_m]); + } + return contents; + }, "de_RegionDisabledException"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] - }); - throwDefaultError2 = (0, import_smithy_client21.withBaseException)(STSServiceException); - buildHttpRpcRequest = async (context, headers, path2, resolvedHostname, body) => { + }), "deserializeMetadata"); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(STSServiceException); + var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path2, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents = { protocol, @@ -37603,195 +38191,273 @@ var init_Aws_query = __esm({ if (body !== void 0) { contents.body = body; } - return new import_protocol_http10.HttpRequest(contents); - }; - SHARED_HEADERS = { + return new import_protocol_http8.HttpRequest(contents); + }, "buildHttpRpcRequest"); + var SHARED_HEADERS = { "content-type": "application/x-www-form-urlencoded" }; - _ = "2011-06-15"; - _A = "Action"; - _AKI = "AccessKeyId"; - _AR = "AssumeRole"; - _ARI = "AssumedRoleId"; - _ARU = "AssumedRoleUser"; - _ARWWI = "AssumeRoleWithWebIdentity"; - _Ar = "Arn"; - _Au = "Audience"; - _C = "Credentials"; - _CA = "ContextAssertion"; - _DS = "DurationSeconds"; - _E = "Expiration"; - _EI = "ExternalId"; - _K = "Key"; - _P = "Policy"; - _PA = "PolicyArns"; - _PAr = "ProviderArn"; - _PC = "ProvidedContexts"; - _PI = "ProviderId"; - _PPS = "PackedPolicySize"; - _Pr = "Provider"; - _RA = "RoleArn"; - _RSN = "RoleSessionName"; - _SAK = "SecretAccessKey"; - _SFWIT = "SubjectFromWebIdentityToken"; - _SI = "SourceIdentity"; - _SN = "SerialNumber"; - _ST = "SessionToken"; - _T = "Tags"; - _TC = "TokenCode"; - _TTK = "TransitiveTagKeys"; - _V = "Version"; - _Va = "Value"; - _WIT = "WebIdentityToken"; - _a = "arn"; - _m = "message"; - buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client21.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client21.extendedEncodeURIComponent)(value)).join("&"); - loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== void 0) { + var _ = "2011-06-15"; + var _A = "Action"; + var _AKI = "AccessKeyId"; + var _AR = "AssumeRole"; + var _ARI = "AssumedRoleId"; + var _ARU = "AssumedRoleUser"; + var _ARWSAML = "AssumeRoleWithSAML"; + var _ARWWI = "AssumeRoleWithWebIdentity"; + var _ARs = "AssumeRoot"; + var _Ac = "Account"; + var _Ar = "Arn"; + var _Au = "Audience"; + var _C = "Credentials"; + var _CA = "ContextAssertion"; + var _DAM = "DecodeAuthorizationMessage"; + var _DM = "DecodedMessage"; + var _DS = "DurationSeconds"; + var _E = "Expiration"; + var _EI = "ExternalId"; + var _EM = "EncodedMessage"; + var _FU = "FederatedUser"; + var _FUI = "FederatedUserId"; + var _GAKI = "GetAccessKeyInfo"; + var _GCI = "GetCallerIdentity"; + var _GFT = "GetFederationToken"; + var _GST = "GetSessionToken"; + var _I = "Issuer"; + var _K = "Key"; + var _N = "Name"; + var _NQ = "NameQualifier"; + var _P = "Policy"; + var _PA = "PolicyArns"; + var _PAr = "PrincipalArn"; + var _PAro = "ProviderArn"; + var _PC = "ProvidedContexts"; + var _PI = "ProviderId"; + var _PPS = "PackedPolicySize"; + var _Pr = "Provider"; + var _RA = "RoleArn"; + var _RSN = "RoleSessionName"; + var _S = "Subject"; + var _SAK = "SecretAccessKey"; + var _SAMLA = "SAMLAssertion"; + var _SFWIT = "SubjectFromWebIdentityToken"; + var _SI = "SourceIdentity"; + var _SN = "SerialNumber"; + var _ST = "SubjectType"; + var _STe = "SessionToken"; + var _T = "Tags"; + var _TC = "TokenCode"; + var _TP = "TargetPrincipal"; + var _TPA = "TaskPolicyArn"; + var _TTK = "TransitiveTagKeys"; + var _UI = "UserId"; + var _V = "Version"; + var _Va = "Value"; + var _WIT = "WebIdentityToken"; + var _a = "arn"; + var _m = "message"; + var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client4.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client4.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString"); + var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => { + var _a2; + if (((_a2 = data.Error) == null ? void 0 : _a2.Code) !== void 0) { return data.Error.Code; } if (output.statusCode == 404) { return "NotFound"; } - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js -var import_middleware_endpoint4, import_middleware_serde3, import_smithy_client22, AssumeRoleCommand; -var init_AssumeRoleCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js"() { - import_middleware_endpoint4 = __toESM(require_dist_cjs44()); - import_middleware_serde3 = __toESM(require_dist_cjs5()); - import_smithy_client22 = __toESM(require_dist_cjs19()); - init_EndpointParameters2(); - init_models_02(); - init_Aws_query(); - AssumeRoleCommand = class extends import_smithy_client22.Command.classBuilder().ep(commonParams2).m(function(Command, cs, config, o3) { + }, "loadQueryErrorCode"); + var _AssumeRoleCommand = class _AssumeRoleCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters.commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde3.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint4.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js -var import_middleware_endpoint5, import_middleware_serde4, import_smithy_client23, AssumeRoleWithWebIdentityCommand; -var init_AssumeRoleWithWebIdentityCommand = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js"() { - import_middleware_endpoint5 = __toESM(require_dist_cjs44()); - import_middleware_serde4 = __toESM(require_dist_cjs5()); - import_smithy_client23 = __toESM(require_dist_cjs19()); - init_EndpointParameters2(); - init_models_02(); - init_Aws_query(); - AssumeRoleWithWebIdentityCommand = class extends import_smithy_client23.Command.classBuilder().ep(commonParams2).m(function(Command, cs, config, o3) { + __name(_AssumeRoleCommand, "AssumeRoleCommand"); + var AssumeRoleCommand = _AssumeRoleCommand; + var import_EndpointParameters2 = require_EndpointParameters(); + var _AssumeRoleWithSAMLCommand = class _AssumeRoleWithSAMLCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters2.commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde4.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint5.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(se_AssumeRoleWithSAMLCommand).de(de_AssumeRoleWithSAMLCommand).build() { + }; + __name(_AssumeRoleWithSAMLCommand, "AssumeRoleWithSAMLCommand"); + var AssumeRoleWithSAMLCommand = _AssumeRoleWithSAMLCommand; + var import_EndpointParameters3 = require_EndpointParameters(); + var _AssumeRoleWithWebIdentityCommand = class _AssumeRoleWithWebIdentityCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters3.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() { }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js -var import_smithy_client24, commands2, STS; -var init_STS = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js"() { - import_smithy_client24 = __toESM(require_dist_cjs19()); - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - init_STSClient(); - commands2 = { - AssumeRoleCommand, - AssumeRoleWithWebIdentityCommand + __name(_AssumeRoleWithWebIdentityCommand, "AssumeRoleWithWebIdentityCommand"); + var AssumeRoleWithWebIdentityCommand = _AssumeRoleWithWebIdentityCommand; + var import_EndpointParameters4 = require_EndpointParameters(); + var _AssumeRootCommand = class _AssumeRootCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters4.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {}).n("STSClient", "AssumeRootCommand").f(void 0, AssumeRootResponseFilterSensitiveLog).ser(se_AssumeRootCommand).de(de_AssumeRootCommand).build() { }; - STS = class extends STSClient { + __name(_AssumeRootCommand, "AssumeRootCommand"); + var AssumeRootCommand = _AssumeRootCommand; + var import_EndpointParameters5 = require_EndpointParameters(); + var _DecodeAuthorizationMessageCommand = class _DecodeAuthorizationMessageCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters5.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(void 0, void 0).ser(se_DecodeAuthorizationMessageCommand).de(de_DecodeAuthorizationMessageCommand).build() { }; - (0, import_smithy_client24.createAggregatedClient)(commands2, STS); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js -var init_commands2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js"() { - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js -var init_models2 = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js"() { - init_models_02(); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js -var ASSUME_ROLE_DEFAULT_REGION, getAccountIdFromAssumedRoleUser, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, isH2; -var init_defaultStsRoleAssumers = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() { - init_client(); - init_AssumeRoleCommand(); - init_AssumeRoleWithWebIdentityCommand(); - ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; - getAccountIdFromAssumedRoleUser = (assumedRoleUser) => { - if (typeof assumedRoleUser?.Arn === "string") { + __name(_DecodeAuthorizationMessageCommand, "DecodeAuthorizationMessageCommand"); + var DecodeAuthorizationMessageCommand = _DecodeAuthorizationMessageCommand; + var import_EndpointParameters6 = require_EndpointParameters(); + var _GetAccessKeyInfoCommand = class _GetAccessKeyInfoCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters6.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(void 0, void 0).ser(se_GetAccessKeyInfoCommand).de(de_GetAccessKeyInfoCommand).build() { + }; + __name(_GetAccessKeyInfoCommand, "GetAccessKeyInfoCommand"); + var GetAccessKeyInfoCommand = _GetAccessKeyInfoCommand; + var import_EndpointParameters7 = require_EndpointParameters(); + var _GetCallerIdentityCommand = class _GetCallerIdentityCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters7.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(void 0, void 0).ser(se_GetCallerIdentityCommand).de(de_GetCallerIdentityCommand).build() { + }; + __name(_GetCallerIdentityCommand, "GetCallerIdentityCommand"); + var GetCallerIdentityCommand = _GetCallerIdentityCommand; + var import_EndpointParameters8 = require_EndpointParameters(); + var _GetFederationTokenCommand = class _GetFederationTokenCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters8.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(void 0, GetFederationTokenResponseFilterSensitiveLog).ser(se_GetFederationTokenCommand).de(de_GetFederationTokenCommand).build() { + }; + __name(_GetFederationTokenCommand, "GetFederationTokenCommand"); + var GetFederationTokenCommand = _GetFederationTokenCommand; + var import_EndpointParameters9 = require_EndpointParameters(); + var _GetSessionTokenCommand = class _GetSessionTokenCommand extends import_smithy_client4.Command.classBuilder().ep(import_EndpointParameters9.commonParams).m(function(Command, cs, config, o) { + return [ + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + ]; + }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(void 0, GetSessionTokenResponseFilterSensitiveLog).ser(se_GetSessionTokenCommand).de(de_GetSessionTokenCommand).build() { + }; + __name(_GetSessionTokenCommand, "GetSessionTokenCommand"); + var GetSessionTokenCommand = _GetSessionTokenCommand; + var import_STSClient = require_STSClient(); + var commands = { + AssumeRoleCommand, + AssumeRoleWithSAMLCommand, + AssumeRoleWithWebIdentityCommand, + AssumeRootCommand, + DecodeAuthorizationMessageCommand, + GetAccessKeyInfoCommand, + GetCallerIdentityCommand, + GetFederationTokenCommand, + GetSessionTokenCommand + }; + var _STS = class _STS extends import_STSClient.STSClient { + }; + __name(_STS, "STS"); + var STS = _STS; + (0, import_smithy_client4.createAggregatedClient)(commands, STS); + var import_EndpointParameters10 = require_EndpointParameters(); + var import_client2 = (init_client(), __toCommonJS(client_exports)); + var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; + var getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => { + if (typeof (assumedRoleUser == null ? void 0 : assumedRoleUser.Arn) === "string") { const arnComponents = assumedRoleUser.Arn.split(":"); if (arnComponents.length > 4 && arnComponents[4] !== "") { return arnComponents[4]; } } return void 0; - }; - resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => { + }, "getAccountIdFromAssumedRoleUser"); + var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => { + var _a2; const region = typeof _region === "function" ? await _region() : _region; const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion; - credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`); + (_a2 = credentialProviderLogger == null ? void 0 : credentialProviderLogger.debug) == null ? void 0 : _a2.call( + credentialProviderLogger, + "@aws-sdk/client-sts::resolveRegion", + "accepting first of:", + `${region} (provider)`, + `${parentRegion} (parent client)`, + `${ASSUME_ROLE_DEFAULT_REGION} (STS default)` + ); return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION; - }; - getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + }, "resolveRegion"); + var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => { let stsClient; let closureSourceCreds; return async (sourceCreds, params) => { + var _a2, _b, _c; closureSourceCreds = sourceCreds; if (!stsClient) { - const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions; - const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); + const { + logger = (_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.logger, + region, + requestHandler = (_b = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _b.requestHandler, + credentialProviderLogger + } = stsOptions; + const resolvedRegion = await resolveRegion( + region, + (_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region, + credentialProviderLogger + ); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new stsClientCtor({ + // A hack to make sts client uses the credential in current closure. credentialDefaultProvider: () => async () => closureSourceCreds, region: resolvedRegion, requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, logger }); } - const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleCommand(params)); + if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); } - const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2); const credentials = { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, + accessKeyId: Credentials2.AccessKeyId, + secretAccessKey: Credentials2.SecretAccessKey, + sessionToken: Credentials2.SessionToken, + expiration: Credentials2.Expiration, + // TODO(credentialScope): access normally when shape is updated. + ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope }, ...accountId && { accountId } }; - setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); return credentials; }; - }; - getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + }, "getDefaultRoleAssumer"); + var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => { let stsClient; return async (params) => { + var _a2, _b, _c; if (!stsClient) { - const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger } = stsOptions; - const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); + const { + logger = (_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.logger, + region, + requestHandler = (_b = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _b.requestHandler, + credentialProviderLogger + } = stsOptions; + const resolvedRegion = await resolveRegion( + region, + (_c = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _c.region, + credentialProviderLogger + ); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new stsClientCtor({ region: resolvedRegion, @@ -37799,98 +38465,58 @@ var init_defaultStsRoleAssumers = __esm({ logger }); } - const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + const { Credentials: Credentials2, AssumedRoleUser: AssumedRoleUser2 } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials2 || !Credentials2.AccessKeyId || !Credentials2.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); } - const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser2); const credentials = { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, + accessKeyId: Credentials2.AccessKeyId, + secretAccessKey: Credentials2.SecretAccessKey, + sessionToken: Credentials2.SessionToken, + expiration: Credentials2.Expiration, + // TODO(credentialScope): access normally when shape is updated. + ...Credentials2.CredentialScope && { credentialScope: Credentials2.CredentialScope }, ...accountId && { accountId } }; if (accountId) { - setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); + (0, import_client2.setCredentialFeature)(credentials, "RESOLVED_ACCOUNT_ID", "T"); } - setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); return credentials; }; - }; - isH2 = (requestHandler) => { - return requestHandler?.metadata?.handlerProtocol === "h2"; - }; - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js -var getCustomizableStsClientCtor, getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity2, decorateDefaultCredentialProvider; -var init_defaultRoleAssumers = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js"() { - init_defaultStsRoleAssumers(); - init_STSClient(); - getCustomizableStsClientCtor = (baseCtor, customizations) => { + }, "getDefaultRoleAssumerWithWebIdentity"); + var isH2 = /* @__PURE__ */ __name((requestHandler) => { + var _a2; + return ((_a2 = requestHandler == null ? void 0 : requestHandler.metadata) == null ? void 0 : _a2.handlerProtocol) === "h2"; + }, "isH2"); + var import_STSClient2 = require_STSClient(); + var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => { + var _a2; if (!customizations) return baseCtor; else - return class CustomizableSTSClient extends baseCtor { + return _a2 = class extends baseCtor { constructor(config) { super(config); for (const customization of customizations) { this.middlewareStack.use(customization); } } - }; - }; - getDefaultRoleAssumer2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); - getDefaultRoleAssumerWithWebIdentity2 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); - decorateDefaultCredentialProvider = (provider) => (input) => provider({ + }, __name(_a2, "CustomizableSTSClient"), _a2; + }, "getCustomizableStsClientCtor"); + var getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer"); + var getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity"); + var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({ roleAssumer: getDefaultRoleAssumer2(input), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input), ...input - }); - } -}); - -// ../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js -var sts_exports = {}; -__export(sts_exports, { - AssumeRoleCommand: () => AssumeRoleCommand, - AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog, - AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand, - AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog, - ExpiredTokenException: () => ExpiredTokenException2, - IDPCommunicationErrorException: () => IDPCommunicationErrorException, - IDPRejectedClaimException: () => IDPRejectedClaimException, - InvalidIdentityTokenException: () => InvalidIdentityTokenException, - MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, - PackedPolicyTooLargeException: () => PackedPolicyTooLargeException, - RegionDisabledException: () => RegionDisabledException, - STS: () => STS, - STSClient: () => STSClient, - STSServiceException: () => STSServiceException, - __Client: () => import_smithy_client18.Client, - decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider, - getDefaultRoleAssumer: () => getDefaultRoleAssumer2, - getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2 -}); -var init_sts = __esm({ - "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js"() { - init_STSClient(); - init_STS(); - init_commands2(); - init_models2(); - init_defaultRoleAssumers(); - init_STSServiceException(); + }), "decorateDefaultCredentialProvider"); } }); // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs57 = __commonJS({ +var require_dist_cjs59 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -37920,8 +38546,9 @@ var require_dist_cjs57 = __commonJS({ var import_property_provider2 = require_dist_cjs16(); var import_child_process = require("child_process"); var import_util = require("util"); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data, profiles) => { + var _a; if (data.Version !== 1) { throw Error(`Profile ${profileName} credential_process did not return Version 1.`); } @@ -37936,7 +38563,7 @@ var require_dist_cjs57 = __commonJS({ } } let accountId = data.AccountId; - if (!accountId && profiles?.[profileName]?.aws_account_id) { + if (!accountId && ((_a = profiles == null ? void 0 : profiles[profileName]) == null ? void 0 : _a.aws_account_id)) { accountId = profiles[profileName].aws_account_id; } const credentials = { @@ -37947,7 +38574,7 @@ var require_dist_cjs57 = __commonJS({ ...data.CredentialScope && { credentialScope: data.CredentialScope }, ...accountId && { accountId } }; - (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w"); + (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROCESS", "w"); return credentials; }, "getValidatedProcessCredentials"); var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles, logger) => { @@ -37977,16 +38604,11 @@ var require_dist_cjs57 = __commonJS({ }); } }, "resolveProcessCredentials"); - var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => { - init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess"); + var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - return resolveProcessCredentials( - (0, import_shared_ini_file_loader.getProfileName)({ - profile: init.profile ?? callerClientConfig?.profile - }), - profiles, - init.logger - ); + return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init.logger); }, "fromProcess"); } }); @@ -37995,48 +38617,45 @@ var require_dist_cjs57 = __commonJS({ var require_fromWebToken = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) { "use strict"; - var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - var desc = Object.getOwnPropertyDescriptor(m3, k3); - if (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) { + var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { - return m3[k3]; + return m[k]; } }; } - Object.defineProperty(o3, k22, desc); - } : function(o3, m3, k3, k22) { - if (k22 === void 0) k22 = k3; - o3[k22] = m3[k3]; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) k2 = k; + o[k2] = m[k]; }); - var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o3, v6) { - Object.defineProperty(o3, "default", { enumerable: true, value: v6 }); - } : function(o3, v6) { - o3["default"] = v6; + var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; }); var __importStar2 = exports2 && exports2.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for (var k3 in mod) if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) __createBinding2(result, mod, k3); + for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k); } __setModuleDefault2(result, mod); return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.fromWebToken = void 0; - var fromWebToken2 = (init) => async (awsIdentityProperties) => { + var fromWebToken2 = (init) => async () => { init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; let { roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { - const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = await Promise.resolve().then(() => __importStar2((init_sts(), __toCommonJS(sts_exports)))); - roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3({ + const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar2(require_dist_cjs58())); + roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({ ...init.clientConfig, credentialProviderLogger: init.logger, - parentClientConfig: { - ...awsIdentityProperties?.callerClientConfig, - ...init.parentClientConfig - } + parentClientConfig: init.parentClientConfig }, init.clientPlugins); } return roleAssumerWithWebIdentity({ @@ -38092,7 +38711,7 @@ var require_fromTokenFile = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs58 = __commonJS({ +var require_dist_cjs60 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38117,7 +38736,7 @@ var require_dist_cjs58 = __commonJS({ }); // ../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs59 = __commonJS({ +var require_dist_cjs61 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38154,23 +38773,23 @@ var require_dist_cjs59 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_shared_ini_file_loader = require_dist_cjs40(); - var import_client3 = (init_client(), __toCommonJS(client_exports)); + var import_client2 = (init_client(), __toCommonJS(client_exports)); var import_property_provider2 = require_dist_cjs16(); var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => { const sourceProvidersMap = { EcsContainer: async (options) => { const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); return async () => (0, import_property_provider2.chain)(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); }, Ec2InstanceMetadata: async (options) => { - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); return async () => fromInstanceMetadata(options)().then(setNamedProvider); }, Environment: async (options) => { - logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); + logger == null ? void 0 : logger.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); const { fromEnv } = await Promise.resolve().then(() => __toESM2(require_dist_cjs46())); return async () => fromEnv(options)().then(setNamedProvider); } @@ -38184,49 +38803,49 @@ var require_dist_cjs59 = __commonJS({ ); } }, "resolveCredentialSource"); - var setNamedProvider = /* @__PURE__ */ __name((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider"); + var setNamedProvider = /* @__PURE__ */ __name((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider"); var isAssumeRoleProfile = /* @__PURE__ */ __name((arg, { profile = "default", logger } = {}) => { return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })); }, "isAssumeRoleProfile"); var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { + var _a; const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; if (withSourceProfile) { - logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, ` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); } return withSourceProfile; }, "isAssumeRoleWithSourceProfile"); var isCredentialSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { + var _a; const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; if (withProviderProfile) { - logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); + (_a = logger == null ? void 0 : logger.debug) == null ? void 0 : _a.call(logger, ` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); } return withProviderProfile; }, "isCredentialSourceProfile"); var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => { - options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); - const profileData = profiles[profileName]; - const { source_profile, region } = profileData; + var _a, _b; + (_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); + const data = profiles[profileName]; if (!options.roleAssumer) { - const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = await Promise.resolve().then(() => __toESM2((init_sts(), __toCommonJS(sts_exports)))); - options.roleAssumer = getDefaultRoleAssumer3( + const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + options.roleAssumer = getDefaultRoleAssumer( { ...options.clientConfig, credentialProviderLogger: options.logger, - parentClientConfig: { - ...options?.parentClientConfig, - region: region ?? options?.parentClientConfig?.region - } + parentClientConfig: options == null ? void 0 : options.parentClientConfig }, options.clientPlugins ); } + const { source_profile } = data; if (source_profile && source_profile in visitedProfiles) { throw new import_property_provider2.CredentialsProviderError( `Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger } ); } - options.logger?.debug( + (_b = options.logger) == null ? void 0 : _b.debug( `@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}` ); const sourceCredsProvider = source_profile ? resolveProfileData( @@ -38238,17 +38857,17 @@ var require_dist_cjs59 = __commonJS({ [source_profile]: true }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}) - ) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))(); - if (isCredentialSourceWithoutRoleArn(profileData)) { - return sourceCredsProvider.then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); + ) : (await resolveCredentialSource(data.credential_source, profileName, options.logger)(options))(); + if (isCredentialSourceWithoutRoleArn(data)) { + return sourceCredsProvider.then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); } else { const params = { - RoleArn: profileData.role_arn, - RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: profileData.external_id, - DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10) + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id, + DurationSeconds: parseInt(data.duration_seconds || "3600", 10) }; - const { mfa_serial } = profileData; + const { mfa_serial } = data; if (mfa_serial) { if (!options.mfaCodeProvider) { throw new import_property_provider2.CredentialsProviderError( @@ -38261,7 +38880,7 @@ var require_dist_cjs59 = __commonJS({ } const sourceCreds = await sourceCredsProvider; return options.roleAssumer(sourceCreds, params).then( - (creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o") + (creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o") ); } }, "resolveAssumeRoleCredentials"); @@ -38269,14 +38888,14 @@ var require_dist_cjs59 = __commonJS({ return !section.role_arn && !!section.credential_source; }, "isCredentialSourceWithoutRoleArn"); var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile"); - var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs57())).then( + var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM2(require_dist_cjs59())).then( ({ fromProcess }) => fromProcess({ ...options, profile - })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) + })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_PROCESS", "v")) ), "resolveProcessCredentials"); var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}) => { - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); return fromSSO({ profile, logger: options.logger, @@ -38284,16 +38903,17 @@ var require_dist_cjs59 = __commonJS({ clientConfig: options.clientConfig })().then((creds) => { if (profileData.sso_session) { - return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); + return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r"); } else { - return (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); + return (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); } }); }, "resolveSsoCredentials"); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile"); var resolveStaticCredentials = /* @__PURE__ */ __name(async (profile, options) => { - options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); + var _a; + (_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); const credentials = { accessKeyId: profile.aws_access_key_id, secretAccessKey: profile.aws_secret_access_key, @@ -38301,10 +38921,10 @@ var require_dist_cjs59 = __commonJS({ ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }, ...profile.aws_account_id && { accountId: profile.aws_account_id } }; - return (0, import_client3.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); + return (0, import_client2.setCredentialFeature)(credentials, "CREDENTIALS_PROFILE", "n"); }, "resolveStaticCredentials"); var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile"); - var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs58())).then( + var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM2(require_dist_cjs60())).then( ({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, @@ -38312,7 +38932,7 @@ var require_dist_cjs59 = __commonJS({ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, logger: options.logger, parentClientConfig: options.parentClientConfig - })().then((creds) => (0, import_client3.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")) + })().then((creds) => (0, import_client2.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")) ), "resolveWebIdentityCredentials"); var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => { const data = profiles[profileName]; @@ -38339,29 +38959,17 @@ var require_dist_cjs59 = __commonJS({ { logger: options.logger } ); }, "resolveProfileData"); - var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => { - const init = { - ..._init, - parentClientConfig: { - ...callerClientConfig, - ..._init.parentClientConfig - } - }; - init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni"); + var fromIni = /* @__PURE__ */ __name((init = {}) => async () => { + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - fromIni"); const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init); - return resolveProfileData( - (0, import_shared_ini_file_loader.getProfileName)({ - profile: _init.profile ?? callerClientConfig?.profile - }), - profiles, - init - ); + return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init); }, "fromIni"); } }); // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs60 = __commonJS({ +var require_dist_cjs62 = __commonJS({ "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) { "use strict"; var __create2 = Object.create; @@ -38404,9 +39012,10 @@ var require_dist_cjs60 = __commonJS({ var import_property_provider2 = require_dist_cjs16(); var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = /* @__PURE__ */ __name(async (init) => { + var _a, _b; const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM2(require_dist_cjs47())); if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { - init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); const { fromHttp } = await Promise.resolve().then(() => __toESM2(require_dist_cjs48())); return (0, import_property_provider2.chain)(fromHttp(init), fromContainerMetadata(init)); } @@ -38415,19 +39024,20 @@ var require_dist_cjs60 = __commonJS({ throw new import_property_provider2.CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger }); }; } - init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); + (_b = init.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); return fromInstanceMetadata(init); }, "remoteProvider"); var multipleCredentialSourceWarningEmitted = false; var defaultProvider = /* @__PURE__ */ __name((init = {}) => (0, import_property_provider2.memoize)( (0, import_property_provider2.chain)( async () => { + var _a, _b, _c, _d; const profile = init.profile ?? process.env[import_shared_ini_file_loader.ENV_PROFILE]; if (profile) { const envStaticCredentialsAreSet = process.env[import_credential_provider_env.ENV_KEY] && process.env[import_credential_provider_env.ENV_SECRET]; if (envStaticCredentialsAreSet) { if (!multipleCredentialSourceWarningEmitted) { - const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn; + const warnFn = ((_a = init.logger) == null ? void 0 : _a.warn) && ((_c = (_b = init.logger) == null ? void 0 : _b.constructor) == null ? void 0 : _c.name) !== "NoOpLogger" ? init.logger.warn : console.warn; warnFn( `@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: Multiple credential sources detected: @@ -38447,11 +39057,12 @@ var require_dist_cjs60 = __commonJS({ tryNextLink: true }); } - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); + (_d = init.logger) == null ? void 0 : _d.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); return (0, import_credential_provider_env.fromEnv)(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { throw new import_property_provider2.CredentialsProviderError( @@ -38459,26 +39070,30 @@ var require_dist_cjs60 = __commonJS({ { logger: init.logger } ); } - const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs56())); + const { fromSSO } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); return fromSSO(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); - const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); + const { fromIni } = await Promise.resolve().then(() => __toESM2(require_dist_cjs61())); return fromIni(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); - const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs57())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); + const { fromProcess } = await Promise.resolve().then(() => __toESM2(require_dist_cjs59())); return fromProcess(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); - const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs58())); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); + const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM2(require_dist_cjs60())); return fromTokenFile2(init)(); }, async () => { - init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); + var _a; + (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); return (await remoteProvider(init))(); }, async () => { @@ -38491,13 +39106,13 @@ var require_dist_cjs60 = __commonJS({ credentialsTreatedAsExpired, credentialsWillNeedRefresh ), "defaultProvider"); - var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh"); - var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired"); + var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => (credentials == null ? void 0 : credentials.expiration) !== void 0, "credentialsWillNeedRefresh"); + var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => (credentials == null ? void 0 : credentials.expiration) !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired"); } }); // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js -var require_dist_cjs61 = __commonJS({ +var require_dist_cjs63 = __commonJS({ "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -38558,7 +39173,7 @@ var require_dist_cjs61 = __commonJS({ default: false }; var import_util_arn_parser = require_dist_cjs28(); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; var DOTS_PATTERN = /\.\./; @@ -38632,7 +39247,7 @@ var require_dist_cjs61 = __commonJS({ } }, "validateAccountId"); var validateDNSHostLabel = /* @__PURE__ */ __name((label, options = { tlsCompatible: true }) => { - if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || options?.tlsCompatible && DOT_PATTERN.test(label)) { + if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || (options == null ? void 0 : options.tlsCompatible) && DOT_PATTERN.test(label)) { throw new Error(`Invalid DNS label ${label}`); } }, "validateDNSHostLabel"); @@ -38658,7 +39273,7 @@ var require_dist_cjs61 = __commonJS({ `Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}` ); } - const [outpostId, _2, accesspointName] = rest; + const [outpostId, _, accesspointName] = rest; return { outpostId, accesspointName }; } else { throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`); @@ -38677,7 +39292,7 @@ var require_dist_cjs61 = __commonJS({ name.split(".").forEach((label) => { validateDNSHostLabel(label); }); - } catch (e3) { + } catch (e) { throw new Error(`"${name}" is not a DNS compatible name.`); } }, "validateMrapAlias"); @@ -38863,7 +39478,7 @@ var require_dist_cjs61 = __commonJS({ const { Bucket: bucketName } = args.input; let replaceBucketInPath = options.bucketEndpoint; const request = args.request; - if (import_protocol_http11.HttpRequest.isInstance(request)) { + if (import_protocol_http8.HttpRequest.isInstance(request)) { if (options.bucketEndpoint) { request.hostname = bucketName; } else if ((0, import_util_arn_parser.validate)(bucketName)) { @@ -38962,7 +39577,7 @@ var require_dist_cjs61 = __commonJS({ }); // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs62 = __commonJS({ +var require_dist_cjs64 = __commonJS({ "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -38995,28 +39610,25 @@ var require_dist_cjs62 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var import_crc322 = require_main4(); var import_util_hex_encoding = require_dist_cjs14(); - var Int64 = class _Int64 { + var _Int64 = class _Int642 { constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } - static { - __name(this, "Int64"); - } static fromNumber(number) { if (number > 9223372036854776e3 || number < -9223372036854776e3) { throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); } const bytes = new Uint8Array(8); - for (let i3 = 7, remaining = Math.abs(Math.round(number)); i3 > -1 && remaining > 0; i3--, remaining /= 256) { - bytes[i3] = remaining; + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; } if (number < 0) { negate(bytes); } - return new _Int64(bytes); + return new _Int642(bytes); } /** * Called implicitly by infix arithmetic operators. @@ -39033,24 +39645,23 @@ var require_dist_cjs62 = __commonJS({ return String(this.valueOf()); } }; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { - for (let i3 = 0; i3 < 8; i3++) { - bytes[i3] ^= 255; + for (let i = 0; i < 8; i++) { + bytes[i] ^= 255; } - for (let i3 = 7; i3 > -1; i3--) { - bytes[i3]++; - if (bytes[i3] !== 0) + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) break; } } __name(negate, "negate"); - var HeaderMarshaller = class { - constructor(toUtf83, fromUtf83) { - this.toUtf8 = toUtf83; - this.fromUtf8 = fromUtf83; - } - static { - __name(this, "HeaderMarshaller"); + var _HeaderMarshaller = class _HeaderMarshaller { + constructor(toUtf8, fromUtf8) { + this.toUtf8 = toUtf8; + this.fromUtf8 = fromUtf8; } format(headers) { const chunks = []; @@ -39225,6 +39836,8 @@ var require_dist_cjs62 = __commonJS({ return out; } }; + __name(_HeaderMarshaller, "HeaderMarshaller"); + var HeaderMarshaller = _HeaderMarshaller; var BOOLEAN_TAG = "boolean"; var BYTE_TAG = "byte"; var SHORT_TAG = "short"; @@ -39276,12 +39889,9 @@ var require_dist_cjs62 = __commonJS({ }; } __name(splitMessage, "splitMessage"); - var EventStreamCodec = class { - static { - __name(this, "EventStreamCodec"); - } - constructor(toUtf83, fromUtf83) { - this.headerMarshaller = new HeaderMarshaller(toUtf83, fromUtf83); + var _EventStreamCodec = class _EventStreamCodec { + constructor(toUtf8, fromUtf8) { + this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); this.messageBuffer = []; this.isEndOfStream = false; } @@ -39350,13 +39960,12 @@ var require_dist_cjs62 = __commonJS({ return this.headerMarshaller.format(rawHeaders); } }; - var MessageDecoderStream = class { + __name(_EventStreamCodec, "EventStreamCodec"); + var EventStreamCodec = _EventStreamCodec; + var _MessageDecoderStream = class _MessageDecoderStream { constructor(options) { this.options = options; } - static { - __name(this, "MessageDecoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39367,13 +39976,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var MessageEncoderStream = class { + __name(_MessageDecoderStream, "MessageDecoderStream"); + var MessageDecoderStream = _MessageDecoderStream; + var _MessageEncoderStream = class _MessageEncoderStream { constructor(options) { this.options = options; } - static { - __name(this, "MessageEncoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39387,13 +39995,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var SmithyMessageDecoderStream = class { + __name(_MessageEncoderStream, "MessageEncoderStream"); + var MessageEncoderStream = _MessageEncoderStream; + var _SmithyMessageDecoderStream = class _SmithyMessageDecoderStream { constructor(options) { this.options = options; } - static { - __name(this, "SmithyMessageDecoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39406,13 +40013,12 @@ var require_dist_cjs62 = __commonJS({ } } }; - var SmithyMessageEncoderStream = class { + __name(_SmithyMessageDecoderStream, "SmithyMessageDecoderStream"); + var SmithyMessageDecoderStream = _SmithyMessageDecoderStream; + var _SmithyMessageEncoderStream = class _SmithyMessageEncoderStream { constructor(options) { this.options = options; } - static { - __name(this, "SmithyMessageEncoderStream"); - } [Symbol.asyncIterator]() { return this.asyncIterator(); } @@ -39423,11 +40029,13 @@ var require_dist_cjs62 = __commonJS({ } } }; + __name(_SmithyMessageEncoderStream, "SmithyMessageEncoderStream"); + var SmithyMessageEncoderStream = _SmithyMessageEncoderStream; } }); // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js -var require_dist_cjs63 = __commonJS({ +var require_dist_cjs65 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39453,7 +40061,7 @@ var require_dist_cjs63 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_codec = require_dist_cjs62(); + var import_eventstream_codec = require_dist_cjs64(); function getChunkedStream(source) { let currentMessageTotalLength = 0; let currentMessagePendingLength = 0; @@ -39537,7 +40145,7 @@ var require_dist_cjs63 = __commonJS({ }; } __name(getChunkedStream, "getChunkedStream"); - function getMessageUnmarshaller(deserializer, toUtf83) { + function getMessageUnmarshaller(deserializer, toUtf8) { return async function(message) { const { value: messageType } = message.headers[":message-type"]; if (messageType === "error") { @@ -39549,7 +40157,7 @@ var require_dist_cjs63 = __commonJS({ const exception = { [code]: message }; const deserializedException = await deserializer(exception); if (deserializedException.$unknown) { - const error2 = new Error(toUtf83(message.body)); + const error2 = new Error(toUtf8(message.body)); error2.name = code; throw error2; } @@ -39568,10 +40176,7 @@ var require_dist_cjs63 = __commonJS({ }; } __name(getMessageUnmarshaller, "getMessageUnmarshaller"); - var EventStreamMarshaller = class { - static { - __name(this, "EventStreamMarshaller"); - } + var _EventStreamMarshaller = class _EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.eventStreamCodec = new import_eventstream_codec.EventStreamCodec(utf8Encoder, utf8Decoder); this.utfEncoder = utf8Encoder; @@ -39592,12 +40197,14 @@ var require_dist_cjs63 = __commonJS({ }); } }; + __name(_EventStreamMarshaller, "EventStreamMarshaller"); + var EventStreamMarshaller = _EventStreamMarshaller; var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider"); } }); // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js -var require_dist_cjs64 = __commonJS({ +var require_dist_cjs66 = __commonJS({ "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39623,7 +40230,7 @@ var require_dist_cjs64 = __commonJS({ eventStreamSerdeProvider: () => eventStreamSerdeProvider }); module2.exports = __toCommonJS2(src_exports); - var import_eventstream_serde_universal = require_dist_cjs63(); + var import_eventstream_serde_universal = require_dist_cjs65(); var import_stream = require("stream"); async function* readabletoIterable(readStream) { let streamEnded = false; @@ -39652,10 +40259,7 @@ var require_dist_cjs64 = __commonJS({ } } __name(readabletoIterable, "readabletoIterable"); - var EventStreamMarshaller = class { - static { - __name(this, "EventStreamMarshaller"); - } + var _EventStreamMarshaller = class _EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.universalMarshaller = new import_eventstream_serde_universal.EventStreamMarshaller({ utf8Decoder, @@ -39670,12 +40274,14 @@ var require_dist_cjs64 = __commonJS({ return import_stream.Readable.from(this.universalMarshaller.serialize(input, serializer)); } }; + __name(_EventStreamMarshaller, "EventStreamMarshaller"); + var EventStreamMarshaller = _EventStreamMarshaller; var eventStreamSerdeProvider = /* @__PURE__ */ __name((options) => new EventStreamMarshaller(options), "eventStreamSerdeProvider"); } }); // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js -var require_dist_cjs65 = __commonJS({ +var require_dist_cjs67 = __commonJS({ "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -39702,25 +40308,24 @@ var require_dist_cjs65 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_fs = require("fs"); - var import_util_utf83 = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs8(); var import_stream = require("stream"); - var HashCalculator = class extends import_stream.Writable { + var _HashCalculator = class _HashCalculator extends import_stream.Writable { constructor(hash, options) { super(options); this.hash = hash; } - static { - __name(this, "HashCalculator"); - } _write(chunk, encoding, callback) { try { - this.hash.update((0, import_util_utf83.toUint8Array)(chunk)); + this.hash.update((0, import_util_utf8.toUint8Array)(chunk)); } catch (err) { return callback(err); } callback(); } }; + __name(_HashCalculator, "HashCalculator"); + var HashCalculator = _HashCalculator; var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve, reject) => { if (!isReadStream(fileStream)) { reject(new Error("Unable to calculate hash for non-file streams.")); @@ -39765,7 +40370,7 @@ var require_dist_cjs65 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared2 = __commonJS({ +var require_runtimeConfig_shared4 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -39779,7 +40384,7 @@ var require_runtimeConfig_shared2 = __commonJS({ var util_utf8_1 = require_dist_cjs8(); var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider(); var endpointResolver_1 = require_endpointResolver(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { return { apiVersion: "2006-03-01", base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, @@ -39812,12 +40417,12 @@ var require_runtimeConfig_shared2 = __commonJS({ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js -var require_runtimeConfig2 = __commonJS({ +var require_runtimeConfig4 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -39825,31 +40430,30 @@ var require_runtimeConfig2 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); - var credential_provider_node_1 = require_dist_cjs60(); - var middleware_bucket_endpoint_1 = require_dist_cjs61(); + var credential_provider_node_1 = require_dist_cjs62(); + var middleware_bucket_endpoint_1 = require_dist_cjs63(); var middleware_flexible_checksums_1 = require_dist_cjs23(); var middleware_sdk_s3_1 = require_dist_cjs29(); var util_user_agent_node_1 = require_dist_cjs49(); var config_resolver_1 = require_dist_cjs33(); - var eventstream_serde_node_1 = require_dist_cjs64(); + var eventstream_serde_node_1 = require_dist_cjs66(); var hash_node_1 = require_dist_cjs50(); - var hash_stream_node_1 = require_dist_cjs65(); + var hash_stream_node_1 = require_dist_cjs67(); var middleware_retry_1 = require_dist_cjs38(); var node_config_provider_1 = require_dist_cjs41(); var node_http_handler_1 = require_dist_cjs12(); var util_body_length_node_1 = require_dist_cjs51(); var util_retry_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared4(); var smithy_client_1 = require_dist_cjs19(); var util_defaults_mode_node_1 = require_dist_cjs52(); var smithy_client_2 = require_dist_cjs19(); - var getRuntimeConfig5 = (config) => { + var getRuntimeConfig = (config) => { (0, smithy_client_2.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 profileConfig = { profile: config?.profile }; return { ...clientSharedValues, ...config, @@ -39858,35 +40462,35 @@ var require_runtimeConfig2 = __commonJS({ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, profileConfig), + disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? (0, node_config_provider_1.loadConfig)(middleware_sdk_s3_1.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS), eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider, - maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), md5: config?.md5 ?? hash_node_1.Hash.bind(null, "md5"), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }), - requestChecksumCalculation: config?.requestChecksumCalculation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, profileConfig), + region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestChecksumCalculation: config?.requestChecksumCalculation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS), requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), - responseChecksumValidation: config?.responseChecksumValidation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, profileConfig), + responseChecksumValidation: config?.responseChecksumValidation ?? (0, node_config_provider_1.loadConfig)(middleware_flexible_checksums_1.NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS), 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), + }), sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"), sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS, profileConfig), + sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS), streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher, - useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS, profileConfig), - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig), - userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig) + useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS), + useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS) }; }; - exports2.getRuntimeConfig = getRuntimeConfig5; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js -var require_dist_cjs66 = __commonJS({ +var require_dist_cjs68 = __commonJS({ "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -39982,7 +40586,7 @@ var require_dist_cjs66 = __commonJS({ }); // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js -var require_dist_cjs67 = __commonJS({ +var require_dist_cjs69 = __commonJS({ "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40014,7 +40618,7 @@ var require_dist_cjs67 = __commonJS({ return (next) => async (args) => { const { CreateBucketConfiguration } = args.input; const region = await options.region(); - if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) { + if (!(CreateBucketConfiguration == null ? void 0 : CreateBucketConfiguration.LocationConstraint) && !(CreateBucketConfiguration == null ? void 0 : CreateBucketConfiguration.Location)) { args = { ...args, input: { @@ -40042,7 +40646,7 @@ var require_dist_cjs67 = __commonJS({ }); // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js -var require_dist_cjs68 = __commonJS({ +var require_dist_cjs70 = __commonJS({ "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2, module2) { var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; @@ -40117,6 +40721,7 @@ var require_dist_cjs68 = __commonJS({ }, "exponentialBackoffWithJitter"); var randomInRange = /* @__PURE__ */ __name((min, max) => min + Math.random() * (max - min), "randomInRange"); var runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; const observedResponses = {}; const { state: state2, reason } = await acceptorChecks(client, input); if (reason) { @@ -40131,7 +40736,7 @@ var require_dist_cjs68 = __commonJS({ const waitUntil = Date.now() + maxWaitTime * 1e3; const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; while (true) { - if (abortController?.signal?.aborted || abortSignal?.aborted) { + if (((_a = abortController == null ? void 0 : abortController.signal) == null ? void 0 : _a.aborted) || (abortSignal == null ? void 0 : abortSignal.aborted)) { const message = "AbortController signal aborted."; observedResponses[message] |= 0; observedResponses[message] += 1; @@ -40155,23 +40760,24 @@ var require_dist_cjs68 = __commonJS({ } }, "runPolling"); var createMessageFromResponse = /* @__PURE__ */ __name((reason) => { - if (reason?.$responseBodyText) { + var _a; + if (reason == null ? void 0 : reason.$responseBodyText) { return `Deserialization error for body: ${reason.$responseBodyText}`; } - if (reason?.$metadata?.httpStatusCode) { + if ((_a = reason == null ? void 0 : reason.$metadata) == null ? void 0 : _a.httpStatusCode) { if (reason.$response || reason.message) { return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? "Unknown"}: ${reason.message}`; } return `${reason.$metadata.httpStatusCode}: OK`; } - return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown"); + return String((reason == null ? void 0 : reason.message) ?? JSON.stringify(reason) ?? "Unknown"); }, "createMessageFromResponse"); var validateWaiterOptions = /* @__PURE__ */ __name((options) => { - if (options.maxWaitTime <= 0) { + if (options.maxWaitTime < 1) { throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } else if (options.minDelay <= 0) { + } else if (options.minDelay < 1) { throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } else if (options.maxDelay <= 0) { + } else if (options.maxDelay < 1) { throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); } else if (options.maxWaitTime <= options.minDelay) { throw new Error( @@ -40215,7 +40821,7 @@ var require_dist_cjs68 = __commonJS({ }); // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js -var require_dist_cjs69 = __commonJS({ +var require_dist_cjs71 = __commonJS({ "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2, module2) { "use strict"; var __defProp2 = Object.defineProperty; @@ -40252,7 +40858,6 @@ var require_dist_cjs69 = __commonJS({ BucketVersioningStatus: () => BucketVersioningStatus, ChecksumAlgorithm: () => ChecksumAlgorithm, ChecksumMode: () => ChecksumMode, - ChecksumType: () => ChecksumType, CompleteMultipartUploadCommand: () => CompleteMultipartUploadCommand, CompleteMultipartUploadOutputFilterSensitiveLog: () => CompleteMultipartUploadOutputFilterSensitiveLog, CompleteMultipartUploadRequestFilterSensitiveLog: () => CompleteMultipartUploadRequestFilterSensitiveLog, @@ -40465,7 +41070,7 @@ var require_dist_cjs69 = __commonJS({ UploadPartRequestFilterSensitiveLog: () => UploadPartRequestFilterSensitiveLog, WriteGetObjectResponseCommand: () => WriteGetObjectResponseCommand, WriteGetObjectResponseRequestFilterSensitiveLog: () => WriteGetObjectResponseRequestFilterSensitiveLog, - __Client: () => import_smithy_client25.Client, + __Client: () => import_smithy_client4.Client, paginateListBuckets: () => paginateListBuckets, paginateListDirectoryBuckets: () => paginateListDirectoryBuckets, paginateListObjectsV2: () => paginateListObjectsV2, @@ -40482,21 +41087,21 @@ var require_dist_cjs69 = __commonJS({ module2.exports = __toCommonJS2(src_exports); var import_middleware_expect_continue = require_dist_cjs3(); var import_middleware_flexible_checksums = require_dist_cjs23(); - var import_middleware_host_header3 = require_dist_cjs24(); - var import_middleware_logger3 = require_dist_cjs25(); - var import_middleware_recursion_detection3 = require_dist_cjs26(); + var import_middleware_host_header = require_dist_cjs24(); + var import_middleware_logger = require_dist_cjs25(); + var import_middleware_recursion_detection = require_dist_cjs26(); var import_middleware_sdk_s32 = require_dist_cjs29(); - var import_middleware_user_agent3 = require_dist_cjs32(); - var import_config_resolver5 = require_dist_cjs33(); - var import_core32 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var import_middleware_user_agent = require_dist_cjs32(); + var import_config_resolver = require_dist_cjs33(); + var import_core3 = (init_dist_es(), __toCommonJS(dist_es_exports)); var import_eventstream_serde_config_resolver = require_dist_cjs34(); - var import_middleware_content_length3 = require_dist_cjs35(); - var import_middleware_retry5 = require_dist_cjs38(); - var import_httpAuthSchemeProvider5 = require_httpAuthSchemeProvider(); + var import_middleware_content_length = require_dist_cjs35(); + var import_middleware_retry = require_dist_cjs38(); + var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider(); var import_middleware_sdk_s3 = require_dist_cjs29(); - var import_middleware_endpoint6 = require_dist_cjs44(); - var import_middleware_serde5 = require_dist_cjs5(); - var resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => { + var import_middleware_endpoint = require_dist_cjs44(); + var import_middleware_serde2 = require_dist_cjs5(); + var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return { ...options, useFipsEndpoint: options.useFipsEndpoint ?? false, @@ -40508,7 +41113,7 @@ var require_dist_cjs69 = __commonJS({ defaultSigningName: "s3" }; }, "resolveClientEndpointParameters"); - var commonParams3 = { + var commonParams = { ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" }, UseArnRegion: { type: "clientContextParams", name: "useArnRegion" }, DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" }, @@ -40520,31 +41125,25 @@ var require_dist_cjs69 = __commonJS({ Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; - var import_smithy_client25 = require_dist_cjs19(); - var S3ServiceException = class _S3ServiceException extends import_smithy_client25.ServiceException { - static { - __name(this, "S3ServiceException"); - } + var import_smithy_client4 = require_dist_cjs19(); + var _S3ServiceException = class _S3ServiceException2 extends import_smithy_client4.ServiceException { /** * @internal */ constructor(options) { super(options); - Object.setPrototypeOf(this, _S3ServiceException.prototype); + Object.setPrototypeOf(this, _S3ServiceException2.prototype); } }; + __name(_S3ServiceException, "S3ServiceException"); + var S3ServiceException = _S3ServiceException; var RequestCharged = { requester: "requester" }; var RequestPayer = { requester: "requester" }; - var NoSuchUpload = class _NoSuchUpload extends S3ServiceException { - static { - __name(this, "NoSuchUpload"); - } - name = "NoSuchUpload"; - $fault = "client"; + var _NoSuchUpload = class _NoSuchUpload2 extends S3ServiceException { /** * @internal */ @@ -40554,9 +41153,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchUpload.prototype); + this.name = "NoSuchUpload"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchUpload2.prototype); } }; + __name(_NoSuchUpload, "NoSuchUpload"); + var NoSuchUpload = _NoSuchUpload; var BucketAccelerateStatus = { Enabled: "Enabled", Suspended: "Suspended" @@ -40576,10 +41179,6 @@ var require_dist_cjs69 = __commonJS({ var OwnerOverride = { Destination: "Destination" }; - var ChecksumType = { - COMPOSITE: "COMPOSITE", - FULL_OBJECT: "FULL_OBJECT" - }; var ServerSideEncryption = { AES256: "AES256", aws_kms: "aws:kms", @@ -40597,7 +41196,6 @@ var require_dist_cjs69 = __commonJS({ var ChecksumAlgorithm = { CRC32: "CRC32", CRC32C: "CRC32C", - CRC64NVME: "CRC64NVME", SHA1: "SHA1", SHA256: "SHA256" }; @@ -40630,12 +41228,7 @@ var require_dist_cjs69 = __commonJS({ COPY: "COPY", REPLACE: "REPLACE" }; - var ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException { - static { - __name(this, "ObjectNotInActiveTierError"); - } - name = "ObjectNotInActiveTierError"; - $fault = "client"; + var _ObjectNotInActiveTierError = class _ObjectNotInActiveTierError2 extends S3ServiceException { /** * @internal */ @@ -40645,15 +41238,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype); + this.name = "ObjectNotInActiveTierError"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ObjectNotInActiveTierError2.prototype); } }; - var BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException { - static { - __name(this, "BucketAlreadyExists"); - } - name = "BucketAlreadyExists"; - $fault = "client"; + __name(_ObjectNotInActiveTierError, "ObjectNotInActiveTierError"); + var ObjectNotInActiveTierError = _ObjectNotInActiveTierError; + var _BucketAlreadyExists = class _BucketAlreadyExists2 extends S3ServiceException { /** * @internal */ @@ -40663,15 +41255,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _BucketAlreadyExists.prototype); + this.name = "BucketAlreadyExists"; + this.$fault = "client"; + Object.setPrototypeOf(this, _BucketAlreadyExists2.prototype); } }; - var BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException { - static { - __name(this, "BucketAlreadyOwnedByYou"); - } - name = "BucketAlreadyOwnedByYou"; - $fault = "client"; + __name(_BucketAlreadyExists, "BucketAlreadyExists"); + var BucketAlreadyExists = _BucketAlreadyExists; + var _BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou2 extends S3ServiceException { /** * @internal */ @@ -40681,9 +41272,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype); + this.name = "BucketAlreadyOwnedByYou"; + this.$fault = "client"; + Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou2.prototype); } }; + __name(_BucketAlreadyOwnedByYou, "BucketAlreadyOwnedByYou"); + var BucketAlreadyOwnedByYou = _BucketAlreadyOwnedByYou; var BucketCannedACL = { authenticated_read: "authenticated-read", private: "private", @@ -40740,12 +41335,7 @@ var require_dist_cjs69 = __commonJS({ ReadOnly: "ReadOnly", ReadWrite: "ReadWrite" }; - var NoSuchBucket = class _NoSuchBucket extends S3ServiceException { - static { - __name(this, "NoSuchBucket"); - } - name = "NoSuchBucket"; - $fault = "client"; + var _NoSuchBucket = class _NoSuchBucket2 extends S3ServiceException { /** * @internal */ @@ -40755,9 +41345,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchBucket.prototype); + this.name = "NoSuchBucket"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchBucket2.prototype); } }; + __name(_NoSuchBucket, "NoSuchBucket"); + var NoSuchBucket = _NoSuchBucket; var AnalyticsFilter; ((AnalyticsFilter2) => { AnalyticsFilter2.visit = /* @__PURE__ */ __name((value, visitor) => { @@ -40940,14 +41534,7 @@ var require_dist_cjs69 = __commonJS({ var ChecksumMode = { ENABLED: "ENABLED" }; - var InvalidObjectState = class _InvalidObjectState extends S3ServiceException { - static { - __name(this, "InvalidObjectState"); - } - name = "InvalidObjectState"; - $fault = "client"; - StorageClass; - AccessTier; + var _InvalidObjectState = class _InvalidObjectState2 extends S3ServiceException { /** * @internal */ @@ -40957,17 +41544,16 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidObjectState.prototype); + this.name = "InvalidObjectState"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidObjectState2.prototype); this.StorageClass = opts.StorageClass; this.AccessTier = opts.AccessTier; } }; - var NoSuchKey = class _NoSuchKey extends S3ServiceException { - static { - __name(this, "NoSuchKey"); - } - name = "NoSuchKey"; - $fault = "client"; + __name(_InvalidObjectState, "InvalidObjectState"); + var InvalidObjectState = _InvalidObjectState; + var _NoSuchKey = class _NoSuchKey2 extends S3ServiceException { /** * @internal */ @@ -40977,9 +41563,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NoSuchKey.prototype); + this.name = "NoSuchKey"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NoSuchKey2.prototype); } }; + __name(_NoSuchKey, "NoSuchKey"); + var NoSuchKey = _NoSuchKey; var ObjectAttributes = { CHECKSUM: "Checksum", ETAG: "ETag", @@ -40994,12 +41584,7 @@ var require_dist_cjs69 = __commonJS({ COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE" }; - var NotFound = class _NotFound extends S3ServiceException { - static { - __name(this, "NotFound"); - } - name = "NotFound"; - $fault = "client"; + var _NotFound = class _NotFound2 extends S3ServiceException { /** * @internal */ @@ -41009,9 +41594,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _NotFound.prototype); + this.name = "NotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, _NotFound2.prototype); } }; + __name(_NotFound, "NotFound"); + var NotFound = _NotFound; var ArchiveStatus = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS" @@ -41040,54 +41629,54 @@ var require_dist_cjs69 = __commonJS({ }; var CompleteMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "CompleteMultipartUploadOutputFilterSensitiveLog"); var CompleteMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "CompleteMultipartUploadRequestFilterSensitiveLog"); var CopyObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CopyObjectOutputFilterSensitiveLog"); var CopyObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING }, - ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING }, + ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "CopyObjectRequestFilterSensitiveLog"); var CreateMultipartUploadOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateMultipartUploadOutputFilterSensitiveLog"); var CreateMultipartUploadRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateMultipartUploadRequestFilterSensitiveLog"); var SessionCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SessionToken && { SessionToken: import_smithy_client25.SENSITIVE_STRING } + ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SessionToken && { SessionToken: import_smithy_client4.SENSITIVE_STRING } }), "SessionCredentialsFilterSensitiveLog"); var CreateSessionOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING }, ...obj.Credentials && { Credentials: SessionCredentialsFilterSensitiveLog(obj.Credentials) } }), "CreateSessionOutputFilterSensitiveLog"); var CreateSessionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "CreateSessionRequestFilterSensitiveLog"); var ServerSideEncryptionByDefaultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client25.SENSITIVE_STRING } + ...obj.KMSMasterKeyID && { KMSMasterKeyID: import_smithy_client4.SENSITIVE_STRING } }), "ServerSideEncryptionByDefaultFilterSensitiveLog"); var ServerSideEncryptionRuleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41111,7 +41700,7 @@ var require_dist_cjs69 = __commonJS({ }), "GetBucketEncryptionOutputFilterSensitiveLog"); var SSEKMSFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KeyId && { KeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.KeyId && { KeyId: import_smithy_client4.SENSITIVE_STRING } }), "SSEKMSFilterSensitiveLog"); var InventoryEncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41139,26 +41728,26 @@ var require_dist_cjs69 = __commonJS({ }), "GetBucketInventoryConfigurationOutputFilterSensitiveLog"); var GetObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectOutputFilterSensitiveLog"); var GetObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectRequestFilterSensitiveLog"); var GetObjectAttributesRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "GetObjectAttributesRequestFilterSensitiveLog"); var GetObjectTorrentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj }), "GetObjectTorrentOutputFilterSensitiveLog"); var HeadObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "HeadObjectOutputFilterSensitiveLog"); var HeadObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "HeadObjectRequestFilterSensitiveLog"); var ListBucketInventoryConfigurationsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41170,22 +41759,17 @@ var require_dist_cjs69 = __commonJS({ }), "ListBucketInventoryConfigurationsOutputFilterSensitiveLog"); var ListPartsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "ListPartsRequestFilterSensitiveLog"); - var import_core17 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); + var import_core4 = (init_dist_es2(), __toCommonJS(dist_es_exports2)); var import_xml_builder = require_dist_cjs45(); var import_core22 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var import_protocol_http11 = require_dist_cjs2(); + var import_protocol_http8 = require_dist_cjs2(); var MFADelete = { Disabled: "Disabled", Enabled: "Enabled" }; - var EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException { - static { - __name(this, "EncryptionTypeMismatch"); - } - name = "EncryptionTypeMismatch"; - $fault = "client"; + var _EncryptionTypeMismatch = class _EncryptionTypeMismatch2 extends S3ServiceException { /** * @internal */ @@ -41195,15 +41779,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype); + this.name = "EncryptionTypeMismatch"; + this.$fault = "client"; + Object.setPrototypeOf(this, _EncryptionTypeMismatch2.prototype); } }; - var InvalidRequest = class _InvalidRequest extends S3ServiceException { - static { - __name(this, "InvalidRequest"); - } - name = "InvalidRequest"; - $fault = "client"; + __name(_EncryptionTypeMismatch, "EncryptionTypeMismatch"); + var EncryptionTypeMismatch = _EncryptionTypeMismatch; + var _InvalidRequest = class _InvalidRequest2 extends S3ServiceException { /** * @internal */ @@ -41213,15 +41796,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidRequest.prototype); + this.name = "InvalidRequest"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidRequest2.prototype); } }; - var InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException { - static { - __name(this, "InvalidWriteOffset"); - } - name = "InvalidWriteOffset"; - $fault = "client"; + __name(_InvalidRequest, "InvalidRequest"); + var InvalidRequest = _InvalidRequest; + var _InvalidWriteOffset = class _InvalidWriteOffset2 extends S3ServiceException { /** * @internal */ @@ -41231,15 +41813,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _InvalidWriteOffset.prototype); + this.name = "InvalidWriteOffset"; + this.$fault = "client"; + Object.setPrototypeOf(this, _InvalidWriteOffset2.prototype); } }; - var TooManyParts = class _TooManyParts extends S3ServiceException { - static { - __name(this, "TooManyParts"); - } - name = "TooManyParts"; - $fault = "client"; + __name(_InvalidWriteOffset, "InvalidWriteOffset"); + var InvalidWriteOffset = _InvalidWriteOffset; + var _TooManyParts = class _TooManyParts2 extends S3ServiceException { /** * @internal */ @@ -41249,15 +41830,14 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _TooManyParts.prototype); + this.name = "TooManyParts"; + this.$fault = "client"; + Object.setPrototypeOf(this, _TooManyParts2.prototype); } }; - var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException { - static { - __name(this, "ObjectAlreadyInActiveTierError"); - } - name = "ObjectAlreadyInActiveTierError"; - $fault = "client"; + __name(_TooManyParts, "TooManyParts"); + var TooManyParts = _TooManyParts; + var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError2 extends S3ServiceException { /** * @internal */ @@ -41267,9 +41847,13 @@ var require_dist_cjs69 = __commonJS({ $fault: "client", ...opts }); - Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype); + this.name = "ObjectAlreadyInActiveTierError"; + this.$fault = "client"; + Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError2.prototype); } }; + __name(_ObjectAlreadyInActiveTierError, "ObjectAlreadyInActiveTierError"); + var ObjectAlreadyInActiveTierError = _ObjectAlreadyInActiveTierError; var Tier = { Bulk: "Bulk", Expedited: "Expedited", @@ -41331,18 +41915,18 @@ var require_dist_cjs69 = __commonJS({ }), "PutBucketInventoryConfigurationRequestFilterSensitiveLog"); var PutObjectOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "PutObjectOutputFilterSensitiveLog"); var PutObjectRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING }, - ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING }, + ...obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: import_smithy_client4.SENSITIVE_STRING } }), "PutObjectRequestFilterSensitiveLog"); var EncryptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.KMSKeyId && { KMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.KMSKeyId && { KMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "EncryptionFilterSensitiveLog"); var S3LocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, @@ -41380,58 +41964,55 @@ var require_dist_cjs69 = __commonJS({ }), "SelectObjectContentOutputFilterSensitiveLog"); var SelectObjectContentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "SelectObjectContentRequestFilterSensitiveLog"); var UploadPartOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartOutputFilterSensitiveLog"); var UploadPartRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartRequestFilterSensitiveLog"); var UploadPartCopyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartCopyOutputFilterSensitiveLog"); var UploadPartCopyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client25.SENSITIVE_STRING }, - ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSECustomerKey && { SSECustomerKey: import_smithy_client4.SENSITIVE_STRING }, + ...obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: import_smithy_client4.SENSITIVE_STRING } }), "UploadPartCopyRequestFilterSensitiveLog"); var WriteGetObjectResponseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, - ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client25.SENSITIVE_STRING } + ...obj.SSEKMSKeyId && { SSEKMSKeyId: import_smithy_client4.SENSITIVE_STRING } }), "WriteGetObjectResponseRequestFilterSensitiveLog"); var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaimit]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMIT]).toString()] + [_xaimit]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMIT]).toString()] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "AbortMultipartUpload"], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_AbortMultipartUploadCommand"); var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], - [_xact]: input[_CT], - [_xamos]: input[_MOS], [_xarp]: input[_RP], [_xaebo]: input[_EBO], [_im]: input[_IM], @@ -41440,11 +42021,11 @@ var require_dist_cjs69 = __commonJS({ [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; let contents; @@ -41455,25 +42036,25 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CompleteMultipartUploadCommand"); var se_CopyObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaa]: input[_ACL], [_cc]: input[_CC], - [_xaca]: input[_CA2], + [_xaca]: input[_CA], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_ct]: input[_CTo], + [_ct]: input[_CT], [_xacs__]: input[_CS], [_xacsim]: input[_CSIM], - [_xacsims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIMS]).toString()], + [_xacsims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIMS]).toString()], [_xacsinm]: input[_CSINM], - [_xacsius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIUS]).toString()], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_xacsius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIUS]).toString()], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -41488,14 +42069,14 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xacssseca]: input[_CSSSECA], [_xacssseck]: input[_CSSSECK], [_xacssseckm]: input[_CSSSECKMD], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], [_xasebo]: input[_ESBO], @@ -41504,19 +42085,19 @@ var require_dist_cjs69 = __commonJS({ return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "CopyObject"] }); let body; - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_CopyObjectCommand"); var se_CreateBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_xagfc]: input[_GFC], @@ -41524,11 +42105,11 @@ var require_dist_cjs69 = __commonJS({ [_xagra]: input[_GRACP], [_xagw]: input[_GW], [_xagwa]: input[_GWACP], - [_xabole]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()], + [_xabole]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLEFB]), () => input[_OLEFB].toString()], [_xaoo]: input[_OO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; let contents; if (input.CreateBucketConfiguration !== void 0) { @@ -41537,20 +42118,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).b(body); - return b3.build(); + b.m("PUT").h(headers).b(body); + return b.build(); }, "se_CreateBucketCommand"); var se_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; @@ -41561,19 +42142,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CreateBucketMetadataTableConfigurationCommand"); var se_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaa]: input[_ACL], [_cc]: input[_CC], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_ct]: input[_CTo], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_ct]: input[_CT], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -41586,278 +42167,277 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], - [_xaca]: input[_CA2], - [_xact]: input[_CT], + [_xaca]: input[_CA], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix]; return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_u]: [, ""] }); let body; - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_CreateMultipartUploadCommand"); var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xacsm]: input[_SM], [_xasse]: input[_SSE], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()] + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_s]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_CreateSessionCommand"); var se_DeleteBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; - b3.m("DELETE").h(headers).b(body); - return b3.build(); + b.m("DELETE").h(headers).b(body); + return b.build(); }, "se_DeleteBucketCommand"); var se_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketAnalyticsConfigurationCommand"); var se_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketCorsCommand"); var se_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketEncryptionCommand"); var se_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketIntelligentTieringConfigurationCommand"); var se_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketInventoryConfigurationCommand"); var se_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketLifecycleCommand"); var se_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketMetadataTableConfigurationCommand"); var se_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketMetricsConfigurationCommand"); var se_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketOwnershipControlsCommand"); var se_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketPolicyCommand"); var se_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketReplicationCommand"); var se_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketTaggingCommand"); var se_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteBucketWebsiteCommand"); var se_DeleteObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xam]: input[_MFA], [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_xaebo]: input[_EBO], [_im]: input[_IM], - [_xaimlmt]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMLMT]).toString()], - [_xaims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] + [_xaimlmt]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMLMT]).toString()], + [_xaims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "DeleteObject"], [_vI]: [, input[_VI]] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectCommand"); var se_DeleteObjectsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xam]: input[_MFA], [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_xaebo]: input[_EBO], - [_xasca]: input[_CA2] + [_xasca]: input[_CA] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_d]: [, ""] }); let body; @@ -41868,347 +42448,347 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectsCommand"); var se_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeleteObjectTaggingCommand"); var se_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; - b3.m("DELETE").h(headers).q(query).b(body); - return b3.build(); + b.m("DELETE").h(headers).q(query).b(body); + return b.build(); }, "se_DeletePublicAccessBlockCommand"); var se_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ac]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAccelerateConfigurationCommand"); var se_GetBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAclCommand"); var se_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], [_xi]: [, "GetBucketAnalyticsConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketAnalyticsConfigurationCommand"); var se_GetBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketCorsCommand"); var se_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketEncryptionCommand"); var se_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], [_xi]: [, "GetBucketIntelligentTieringConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketIntelligentTieringConfigurationCommand"); var se_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], [_xi]: [, "GetBucketInventoryConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketInventoryConfigurationCommand"); var se_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLifecycleConfigurationCommand"); var se_GetBucketLocationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_lo]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLocationCommand"); var se_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_log]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketLoggingCommand"); var se_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_mT]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketMetadataTableConfigurationCommand"); var se_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], [_xi]: [, "GetBucketMetricsConfiguration"], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketMetricsConfigurationCommand"); var se_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_n]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketNotificationConfigurationCommand"); var se_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketOwnershipControlsCommand"); var se_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketPolicyCommand"); var se_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pS]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketPolicyStatusCommand"); var se_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketReplicationCommand"); var se_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_rP]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketRequestPaymentCommand"); var se_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketTaggingCommand"); var se_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_v]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketVersioningCommand"); var se_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetBucketWebsiteCommand"); var se_GetObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMSf]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], - [_ius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_IUS]).toString()], + [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -42217,177 +42797,177 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xacm]: input[_CM] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "GetObject"], [_rcc]: [, input[_RCC]], [_rcd]: [, input[_RCD]], [_rce]: [, input[_RCE]], [_rcl]: [, input[_RCL]], [_rct]: [, input[_RCT]], - [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client25.dateToUtcString)(input[_RE]).toString()], + [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client4.dateToUtcString)(input[_RE]).toString()], [_vI]: [, input[_VI]], [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectCommand"); var se_GetObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectAclCommand"); var se_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { - [_xamp]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()], + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { + [_xamp]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_MP]), () => input[_MP].toString()], [_xapnm]: input[_PNM], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD], [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaoa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaoa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OA]), () => (input[_OA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_at]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectAttributesCommand"); var se_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_lh]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectLegalHoldCommand"); var se_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ol]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectLockConfigurationCommand"); var se_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_ret]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectRetentionCommand"); var se_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectTaggingCommand"); var se_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_to]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetObjectTorrentCommand"); var se_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_GetPublicAccessBlockCommand"); var se_HeadBucketCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); let body; - b3.m("HEAD").h(headers).b(body); - return b3.build(); + b.m("HEAD").h(headers).b(body); + return b.build(); }, "se_HeadBucketCommand"); var se_HeadObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_im]: input[_IM], - [_ims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client25.dateToUtcString)(input[_IMSf]).toString()], + [_ims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client4.dateToUtcString)(input[_IMSf]).toString()], [_inm]: input[_INM], - [_ius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_IUS]).toString()], + [_ius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_IUS]).toString()], [_ra]: input[_R], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -42396,231 +42976,231 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xacm]: input[_CM] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_rcc]: [, input[_RCC]], [_rcd]: [, input[_RCD]], [_rce]: [, input[_RCE]], [_rcl]: [, input[_RCL]], [_rct]: [, input[_RCT]], - [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client25.dateToUtcString)(input[_RE]).toString()], + [_re]: [() => input.ResponseExpires !== void 0, () => (0, import_smithy_client4.dateToUtcString)(input[_RE]).toString()], [_vI]: [, input[_VI]], [_pN]: [() => input.PartNumber !== void 0, () => input[_PN].toString()] }); let body; - b3.m("HEAD").h(headers).q(query).b(body); - return b3.build(); + b.m("HEAD").h(headers).q(query).b(body); + return b.build(); }, "se_HeadObjectCommand"); var se_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], [_xi]: [, "ListBucketAnalyticsConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketAnalyticsConfigurationsCommand"); var se_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], [_xi]: [, "ListBucketIntelligentTieringConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketIntelligentTieringConfigurationsCommand"); var se_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], [_xi]: [, "ListBucketInventoryConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketInventoryConfigurationsCommand"); var se_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], [_xi]: [, "ListBucketMetricsConfigurations"], - [_ct_]: [, input[_CTon]] + [_ct_]: [, input[_CTo]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketMetricsConfigurationsCommand"); var se_ListBucketsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListBuckets"], [_mb]: [() => input.MaxBuckets !== void 0, () => input[_MB].toString()], - [_ct_]: [, input[_CTon]], - [_pr]: [, input[_P2]], + [_ct_]: [, input[_CTo]], + [_pr]: [, input[_P]], [_br]: [, input[_BR]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListBucketsCommand"); var se_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = {}; - b3.bp("/"); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListDirectoryBuckets"], - [_ct_]: [, input[_CTon]], + [_ct_]: [, input[_CTo]], [_mdb]: [() => input.MaxDirectoryBuckets !== void 0, () => input[_MDB].toString()] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListDirectoryBucketsCommand"); var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_u]: [, ""], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_km]: [, input[_KM]], [_mu]: [() => input.MaxUploads !== void 0, () => input[_MU].toString()], - [_pr]: [, input[_P2]], + [_pr]: [, input[_P]], [_uim]: [, input[_UIM]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListMultipartUploadsCommand"); var se_ListObjectsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_de]: [, input[_D]], [_et]: [, input[_ET]], [_ma]: [, input[_M]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]] + [_pr]: [, input[_P]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectsCommand"); var se_ListObjectsV2Command = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_lt]: [, "2"], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]], - [_ct_]: [, input[_CTon]], + [_pr]: [, input[_P]], + [_ct_]: [, input[_CTo]], [_fo]: [() => input.FetchOwner !== void 0, () => input[_FO].toString()], [_sa]: [, input[_SA]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectsV2Command"); var se_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xaebo]: input[_EBO], [_xarp]: input[_RP], - [_xaooa]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client25.quoteHeader).join(", ")] + [_xaooa]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OOA]), () => (input[_OOA] || []).map(import_smithy_client4.quoteHeader).join(", ")] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ver]: [, ""], [_de]: [, input[_D]], [_et]: [, input[_ET]], [_km]: [, input[_KM]], [_mk]: [() => input.MaxKeys !== void 0, () => input[_MK].toString()], - [_pr]: [, input[_P2]], + [_pr]: [, input[_P]], [_vim]: [, input[_VIM]] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListObjectVersionsCommand"); var se_ListPartsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xarp]: input[_RP], [_xaebo]: input[_EBO], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "ListParts"], [_mp]: [() => input.MaxParts !== void 0, () => input[_MP].toString()], [_pnm]: [, input[_PNM]], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("GET").h(headers).q(query).b(body); - return b3.build(); + b.m("GET").h(headers).q(query).b(body); + return b.build(); }, "se_ListPartsCommand"); var se_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO], - [_xasca]: input[_CA2] + [_xasca]: input[_CA] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ac]: [, ""] }); let body; @@ -42631,16 +43211,16 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAccelerateConfigurationCommand"); var se_PutBucketAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -42648,9 +43228,9 @@ var require_dist_cjs69 = __commonJS({ [_xagwa]: input[_GWACP], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""] }); let body; @@ -42661,20 +43241,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAclCommand"); var se_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_a2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_a]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42684,20 +43264,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketAnalyticsConfigurationCommand"); var se_PutBucketCorsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_c]: [, ""] }); let body; @@ -42708,20 +43288,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketCorsCommand"); var se_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_en]: [, ""] }); let body; @@ -42732,19 +43312,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketEncryptionCommand"); var se_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); + const b = (0, import_core22.requestBuilder)(input, context); const headers = { "content-type": "application/xml" }; - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_it]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42754,20 +43334,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketIntelligentTieringConfigurationCommand"); var se_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_in]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42777,20 +43357,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketInventoryConfigurationCommand"); var se_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO], [_xatdmos]: input[_TDMOS] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_l]: [, ""] }); let body; @@ -42802,20 +43382,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketLifecycleConfigurationCommand"); var se_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_log]: [, ""] }); let body; @@ -42826,20 +43406,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketLoggingCommand"); var se_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ - [_m2]: [, ""], - [_i]: [, (0, import_smithy_client25.expectNonNull)(input[_I], `Id`)] + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ + [_m]: [, ""], + [_i]: [, (0, import_smithy_client4.expectNonNull)(input[_I], `Id`)] }); let body; let contents; @@ -42849,19 +43429,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketMetricsConfigurationCommand"); var se_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaebo]: input[_EBO], - [_xasdv]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()] + [_xasdv]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_SDV]), () => input[_SDV].toString()] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_n]: [, ""] }); let body; @@ -42872,19 +43452,19 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketNotificationConfigurationCommand"); var se_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_oC]: [, ""] }); let body; @@ -42895,21 +43475,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketOwnershipControlsCommand"); var se_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "text/plain", [_cm]: input[_CMD], - [_xasca]: input[_CA2], - [_xacrsba]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()], + [_xasca]: input[_CA], + [_xacrsba]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CRSBA]), () => input[_CRSBA].toString()], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_p]: [, ""] }); let body; @@ -42918,21 +43498,21 @@ var require_dist_cjs69 = __commonJS({ contents = input.Policy; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketPolicyCommand"); var se_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xabolt]: input[_To], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_r]: [, ""] }); let body; @@ -42943,20 +43523,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketReplicationCommand"); var se_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_rP]: [, ""] }); let body; @@ -42967,20 +43547,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketRequestPaymentCommand"); var se_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""] }); let body; @@ -42991,21 +43571,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketTaggingCommand"); var se_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xam]: input[_MFA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_v]: [, ""] }); let body; @@ -43016,20 +43596,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketVersioningCommand"); var se_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_w]: [, ""] }); let body; @@ -43040,34 +43620,33 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutBucketWebsiteCommand"); var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { - [_ct]: input[_CTo] || "application/octet-stream", + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { + [_ct]: input[_CT] || "application/octet-stream", [_xaa]: input[_ACL], [_cc]: input[_CC], [_cd]: input[_CD], [_ce]: input[_CE], [_cl]: input[_CL], - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], - [_e]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_e]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_im]: input[_IM], [_inm]: input[_INM], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], [_xagwa]: input[_GWACP], - [_xawob]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], + [_xawob]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()], [_xasse]: input[_SSE], [_xasc]: input[_SC], [_xawrl]: input[_WRL], @@ -43076,11 +43655,11 @@ var require_dist_cjs69 = __commonJS({ [_xasseckm]: input[_SSECKMD], [_xasseakki]: input[_SSEKMSKI], [_xassec]: input[_SSEKMSEC], - [_xassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], [_xarp]: input[_RP], - [_xat]: input[_T2], + [_xat]: input[_T], [_xaolm]: input[_OLM], - [_xaolrud]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString()], + [_xaolrud]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString()], [_xaollh]: input[_OLLHS], [_xaebo]: input[_EBO], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { @@ -43088,10 +43667,10 @@ var require_dist_cjs69 = __commonJS({ return acc; }, {}) }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "PutObject"] }); let body; @@ -43100,16 +43679,16 @@ var require_dist_cjs69 = __commonJS({ contents = input.Body; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectCommand"); var se_PutObjectAclCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xaa]: input[_ACL], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xagfc]: input[_GFC], [_xagr]: input[_GR], [_xagra]: input[_GRACP], @@ -43118,10 +43697,10 @@ var require_dist_cjs69 = __commonJS({ [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_acl]: [, ""], [_vI]: [, input[_VI]] }); @@ -43133,22 +43712,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectAclCommand"); var se_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_lh]: [, ""], [_vI]: [, input[_VI]] }); @@ -43161,22 +43740,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectLegalHoldCommand"); var se_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], [_xabolt]: input[_To], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_ol]: [, ""] }); let body; @@ -43187,23 +43766,23 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectLockConfigurationCommand"); var se_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], - [_xabgr]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], + [_xabgr]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_ret]: [, ""], [_vI]: [, input[_VI]] }); @@ -43216,22 +43795,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectRetentionCommand"); var se_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO], [_xarp]: input[_RP] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_t]: [, ""], [_vI]: [, input[_VI]] }); @@ -43243,20 +43822,20 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutObjectTaggingCommand"); var se_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - const query = (0, import_smithy_client25.map)({ + b.bp("/"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + const query = (0, import_smithy_client4.map)({ [_pAB]: [, ""] }); let body; @@ -43267,21 +43846,21 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_PutPublicAccessBlockCommand"); var se_RestoreObjectCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xarp]: input[_RP], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_res]: [, ""], [_vI]: [, input[_VI]] }); @@ -43293,22 +43872,22 @@ var require_dist_cjs69 = __commonJS({ contents.a("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); body += contents.toString(); } - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_RestoreObjectCommand"); var se_SelectObjectContentCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/xml", [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], [_xasseckm]: input[_SSECKMD], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_se]: [, ""], [_st]: [, "2"] }); @@ -43331,19 +43910,18 @@ var require_dist_cjs69 = __commonJS({ bn.c(se_ScanRange(input[_SR], context).n(_SR)); } body += bn.toString(); - b3.m("POST").h(headers).q(query).b(body); - return b3.build(); + b.m("POST").h(headers).q(query).b(body); + return b.build(); }, "se_SelectObjectContentCommand"); var se_UploadPartCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "content-type": "application/octet-stream", - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_cm]: input[_CMD], - [_xasca]: input[_CA2], + [_xasca]: input[_CA], [_xacc]: input[_CCRC], [_xacc_]: input[_CCRCC], - [_xacc__]: input[_CCRCNVME], [_xacs]: input[_CSHA], [_xacs_]: input[_CSHAh], [_xasseca]: input[_SSECA], @@ -43352,13 +43930,13 @@ var require_dist_cjs69 = __commonJS({ [_xarp]: input[_RP], [_xaebo]: input[_EBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "UploadPart"], - [_pN]: [(0, import_smithy_client25.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_pN]: [(0, import_smithy_client4.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; let contents; @@ -43366,17 +43944,17 @@ var require_dist_cjs69 = __commonJS({ contents = input.Body; body = contents; } - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_UploadPartCommand"); var se_UploadPartCopyCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { [_xacs__]: input[_CS], [_xacsim]: input[_CSIM], - [_xacsims]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIMS]).toString()], + [_xacsims]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIMS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIMS]).toString()], [_xacsinm]: input[_CSINM], - [_xacsius]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client25.dateToUtcString)(input[_CSIUS]).toString()], + [_xacsius]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CSIUS]), () => (0, import_smithy_client4.dateToUtcString)(input[_CSIUS]).toString()], [_xacsr]: input[_CSR], [_xasseca]: input[_SSECA], [_xasseck]: input[_SSECK], @@ -43388,54 +43966,53 @@ var require_dist_cjs69 = __commonJS({ [_xaebo]: input[_EBO], [_xasebo]: input[_ESBO] }); - b3.bp("/{Key+}"); - b3.p("Bucket", () => input.Bucket, "{Bucket}", false); - b3.p("Key", () => input.Key, "{Key+}", true); - const query = (0, import_smithy_client25.map)({ + b.bp("/{Key+}"); + b.p("Bucket", () => input.Bucket, "{Bucket}", false); + b.p("Key", () => input.Key, "{Key+}", true); + const query = (0, import_smithy_client4.map)({ [_xi]: [, "UploadPartCopy"], - [_pN]: [(0, import_smithy_client25.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], - [_uI]: [, (0, import_smithy_client25.expectNonNull)(input[_UI], `UploadId`)] + [_pN]: [(0, import_smithy_client4.expectNonNull)(input.PartNumber, `PartNumber`) != null, () => input[_PN].toString()], + [_uI]: [, (0, import_smithy_client4.expectNonNull)(input[_UI], `UploadId`)] }); let body; - b3.m("PUT").h(headers).q(query).b(body); - return b3.build(); + b.m("PUT").h(headers).q(query).b(body); + return b.build(); }, "se_UploadPartCopyCommand"); var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, context) => { - const b3 = (0, import_core22.requestBuilder)(input, context); - const headers = (0, import_smithy_client25.map)({}, import_smithy_client25.isSerializableHeaderValue, { + const b = (0, import_core22.requestBuilder)(input, context); + const headers = (0, import_smithy_client4.map)({}, import_smithy_client4.isSerializableHeaderValue, { "x-amz-content-sha256": "UNSIGNED-PAYLOAD", "content-type": "application/octet-stream", [_xarr]: input[_RR], [_xart]: input[_RT], - [_xafs]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()], + [_xafs]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_SCt]), () => input[_SCt].toString()], [_xafec]: input[_EC], [_xafem]: input[_EM], - [_xafhar]: input[_AR2], + [_xafhar]: input[_AR], [_xafhcc]: input[_CC], [_xafhcd]: input[_CD], [_xafhce]: input[_CE], [_xafhcl]: input[_CL], - [_cl_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], + [_cl_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_CLo]), () => input[_CLo].toString()], [_xafhcr]: input[_CR], - [_xafhct]: input[_CTo], + [_xafhct]: input[_CT], [_xafhxacc]: input[_CCRC], [_xafhxacc_]: input[_CCRCC], - [_xafhxacc__]: input[_CCRCNVME], [_xafhxacs]: input[_CSHA], [_xafhxacs_]: input[_CSHAh], - [_xafhxadm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()], + [_xafhxadm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_DM]), () => input[_DM].toString()], [_xafhe]: input[_ETa], - [_xafhe_]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_E2]), () => (0, import_smithy_client25.dateToUtcString)(input[_E2]).toString()], + [_xafhe_]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_E]), () => (0, import_smithy_client4.dateToUtcString)(input[_E]).toString()], [_xafhxae]: input[_Exp], - [_xafhlm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client25.dateToUtcString)(input[_LM]).toString()], - [_xafhxamm]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()], + [_xafhlm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_LM]), () => (0, import_smithy_client4.dateToUtcString)(input[_LM]).toString()], + [_xafhxamm]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_MM]), () => input[_MM].toString()], [_xafhxaolm]: input[_OLM], [_xafhxaollh]: input[_OLLHS], [_xafhxaolrud]: [ - () => (0, import_smithy_client25.isSerializableHeaderValue)(input[_OLRUD]), - () => (0, import_smithy_client25.serializeDateTime)(input[_OLRUD]).toString() + () => (0, import_smithy_client4.isSerializableHeaderValue)(input[_OLRUD]), + () => (0, import_smithy_client4.serializeDateTime)(input[_OLRUD]).toString() ], - [_xafhxampc]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_PC2]), () => input[_PC2].toString()], + [_xafhxampc]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_PC]), () => input[_PC].toString()], [_xafhxars]: input[_RS], [_xafhxarc]: input[_RC], [_xafhxar]: input[_Re], @@ -43444,15 +44021,15 @@ var require_dist_cjs69 = __commonJS({ [_xafhxasseakki]: input[_SSEKMSKI], [_xafhxasseckm]: input[_SSECKMD], [_xafhxasc]: input[_SC], - [_xafhxatc]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_TC2]), () => input[_TC2].toString()], + [_xafhxatc]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_TC]), () => input[_TC].toString()], [_xafhxavi]: input[_VI], - [_xafhxassebke]: [() => (0, import_smithy_client25.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], + [_xafhxassebke]: [() => (0, import_smithy_client4.isSerializableHeaderValue)(input[_BKE]), () => input[_BKE].toString()], ...input.Metadata !== void 0 && Object.keys(input.Metadata).reduce((acc, suffix) => { acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata[suffix]; return acc; }, {}) }); - b3.bp("/WriteGetObjectResponse"); + b.bp("/WriteGetObjectResponse"); let body; let contents; if (input.Body !== void 0) { @@ -43466,77 +44043,71 @@ var require_dist_cjs69 = __commonJS({ throw new Error("Empty value provided for input host prefix: RequestRoute."); } resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute); - if (!(0, import_protocol_http11.isValidHostname)(resolvedHostname)) { + if (!(0, import_protocol_http8.isValidHostname)(resolvedHostname)) { throw new Error("ValidationError: prefixed hostname must be hostname compatible."); } } - b3.hn(resolvedHostname); - b3.m("POST").h(headers).b(body); - return b3.build(); + b.hn(resolvedHostname); + b.m("POST").h(headers).b(body); + return b.build(); }, "se_WriteGetObjectResponseCommand"); var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_AbortMultipartUploadCommand"); var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_SSE]: [, output.headers[_xasse]], [_VI]: [, output.headers[_xavi]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } if (data[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(data[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(data[_CCRC]); } if (data[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(data[_CCRCC]); - } - if (data[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(data[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(data[_CCRCC]); } if (data[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(data[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(data[_CSHA]); } if (data[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(data[_CSHAh]); - } - if (data[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(data[_CT]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(data[_CSHAh]); } if (data[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(data[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(data[_ETa]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_L] != null) { - contents[_L] = (0, import_smithy_client25.expectString)(data[_L]); + contents[_L] = (0, import_smithy_client4.expectString)(data[_L]); } return contents; }, "de_CompleteMultipartUploadCommand"); var de_CopyObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_CSVI]: [, output.headers[_xacsvi]], [_VI]: [, output.headers[_xavi]], @@ -43545,305 +44116,304 @@ var require_dist_cjs69 = __commonJS({ [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.CopyObjectResult = de_CopyObjectResult(data, context); return contents; }, "de_CopyObjectCommand"); var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_L]: [, output.headers[_lo]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_CreateBucketCommand"); var de_CreateBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_CreateBucketMetadataTableConfigurationCommand"); var de_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_AD]: [ () => void 0 !== output.headers[_xaad], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_xaad])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_xaad])) ], - [_ARI2]: [, output.headers[_xaari]], + [_ARI]: [, output.headers[_xaari]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]], - [_CA2]: [, output.headers[_xaca]], - [_CT]: [, output.headers[_xact]] + [_CA]: [, output.headers[_xaca]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(data[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(data[_UI]); } return contents; }, "de_CreateMultipartUploadCommand"); var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_SSE]: [, output.headers[_xasse]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])] + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_C2] != null) { - contents[_C2] = de_SessionCredentials(data[_C2], context); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_C] != null) { + contents[_C] = de_SessionCredentials(data[_C], context); } return contents; }, "de_CreateSessionCommand"); var de_DeleteBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketCommand"); var de_DeleteBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketAnalyticsConfigurationCommand"); var de_DeleteBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketCorsCommand"); var de_DeleteBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketEncryptionCommand"); var de_DeleteBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketIntelligentTieringConfigurationCommand"); var de_DeleteBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketInventoryConfigurationCommand"); var de_DeleteBucketLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketLifecycleCommand"); var de_DeleteBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketMetadataTableConfigurationCommand"); var de_DeleteBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketMetricsConfigurationCommand"); var de_DeleteBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketOwnershipControlsCommand"); var de_DeleteBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketPolicyCommand"); var de_DeleteBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketReplicationCommand"); var de_DeleteBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketTaggingCommand"); var de_DeleteBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteBucketWebsiteCommand"); var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], [_VI]: [, output.headers[_xavi]], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteObjectCommand"); var de_DeleteObjectsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Deleted === "") { contents[_De] = []; } else if (data[_De] != null) { - contents[_De] = de_DeletedObjects((0, import_smithy_client25.getArrayIfSingleItem)(data[_De]), context); + contents[_De] = de_DeletedObjects((0, import_smithy_client4.getArrayIfSingleItem)(data[_De]), context); } if (data.Error === "") { contents[_Err] = []; } else if (data[_Er] != null) { - contents[_Err] = de_Errors((0, import_smithy_client25.getArrayIfSingleItem)(data[_Er]), context); + contents[_Err] = de_Errors((0, import_smithy_client4.getArrayIfSingleItem)(data[_Er]), context); } return contents; }, "de_DeleteObjectsCommand"); var de_DeleteObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeleteObjectTaggingCommand"); var de_DeletePublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_DeletePublicAccessBlockCommand"); var de_GetBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(data[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(data[_S]); } return contents; }, "de_GetBucketAccelerateConfigurationCommand"); var de_GetBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AccessControlList === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants((0, import_smithy_client25.getArrayIfSingleItem)(data[_ACLc][_G]), context); + contents[_Gr] = de_Grants((0, import_smithy_client4.getArrayIfSingleItem)(data[_ACLc][_G]), context); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); @@ -43852,100 +44422,100 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketAclCommand"); var de_GetBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.AnalyticsConfiguration = de_AnalyticsConfiguration(data, context); return contents; }, "de_GetBucketAnalyticsConfigurationCommand"); var de_GetBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CORSRule === "") { contents[_CORSRu] = []; } else if (data[_CORSR] != null) { - contents[_CORSRu] = de_CORSRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_CORSR]), context); + contents[_CORSRu] = de_CORSRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_CORSR]), context); } return contents; }, "de_GetBucketCorsCommand"); var de_GetBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ServerSideEncryptionConfiguration = de_ServerSideEncryptionConfiguration(data, context); return contents; }, "de_GetBucketEncryptionCommand"); var de_GetBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.IntelligentTieringConfiguration = de_IntelligentTieringConfiguration(data, context); return contents; }, "de_GetBucketIntelligentTieringConfigurationCommand"); var de_GetBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.InventoryConfiguration = de_InventoryConfiguration(data, context); return contents; }, "de_GetBucketInventoryConfigurationCommand"); var de_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_TDMOS]: [, output.headers[_xatdmos]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Rule === "") { contents[_Rul] = []; } else if (data[_Ru] != null) { - contents[_Rul] = de_LifecycleRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_Ru]), context); + contents[_Rul] = de_LifecycleRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_Ru]), context); } return contents; }, "de_GetBucketLifecycleConfigurationCommand"); var de_GetBucketLocationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_LC] != null) { - contents[_LC] = (0, import_smithy_client25.expectString)(data[_LC]); + contents[_LC] = (0, import_smithy_client4.expectString)(data[_LC]); } return contents; }, "de_GetBucketLocationCommand"); var de_GetBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_LE] != null) { contents[_LE] = de_LoggingEnabled(data[_LE], context); } @@ -43953,150 +44523,150 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketLoggingCommand"); var de_GetBucketMetadataTableConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.GetBucketMetadataTableConfigurationResult = de_GetBucketMetadataTableConfigurationResult(data, context); return contents; }, "de_GetBucketMetadataTableConfigurationCommand"); var de_GetBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.MetricsConfiguration = de_MetricsConfiguration(data, context); return contents; }, "de_GetBucketMetricsConfigurationCommand"); var de_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_EBC] != null) { contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); } if (data.CloudFunctionConfiguration === "") { contents[_LFC] = []; } else if (data[_CFC] != null) { - contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CFC]), context); + contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CFC]), context); } if (data.QueueConfiguration === "") { contents[_QCu] = []; } else if (data[_QC] != null) { - contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_QC]), context); + contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_QC]), context); } if (data.TopicConfiguration === "") { contents[_TCop] = []; } else if (data[_TCo] != null) { - contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_TCo]), context); + contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_TCo]), context); } return contents; }, "de_GetBucketNotificationConfigurationCommand"); var de_GetBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.OwnershipControls = de_OwnershipControls(data, context); return contents; }, "de_GetBucketOwnershipControlsCommand"); var de_GetBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); const data = await collectBodyString2(output.body, context); - contents.Policy = (0, import_smithy_client25.expectString)(data); + contents.Policy = (0, import_smithy_client4.expectString)(data); return contents; }, "de_GetBucketPolicyCommand"); var de_GetBucketPolicyStatusCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.PolicyStatus = de_PolicyStatus(data, context); return contents; }, "de_GetBucketPolicyStatusCommand"); var de_GetBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ReplicationConfiguration = de_ReplicationConfiguration(data, context); return contents; }, "de_GetBucketReplicationCommand"); var de_GetBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_Pa] != null) { - contents[_Pa] = (0, import_smithy_client25.expectString)(data[_Pa]); + contents[_Pa] = (0, import_smithy_client4.expectString)(data[_Pa]); } return contents; }, "de_GetBucketRequestPaymentCommand"); var de_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.TagSet === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(data[_TS][_Ta]), context); + contents[_TS] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(data[_TS][_Ta]), context); } return contents; }, "de_GetBucketTaggingCommand"); var de_GetBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_MDf] != null) { - contents[_MFAD] = (0, import_smithy_client25.expectString)(data[_MDf]); + contents[_MFAD] = (0, import_smithy_client4.expectString)(data[_MDf]); } if (data[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(data[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(data[_S]); } return contents; }, "de_GetBucketVersioningCommand"); var de_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_ED] != null) { contents[_ED] = de_ErrorDocument(data[_ED], context); } @@ -44109,54 +44679,52 @@ var require_dist_cjs69 = __commonJS({ if (data.RoutingRules === "") { contents[_RRo] = []; } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { - contents[_RRo] = de_RoutingRules((0, import_smithy_client25.getArrayIfSingleItem)(data[_RRo][_RRou]), context); + contents[_RRo] = de_RoutingRules((0, import_smithy_client4.getArrayIfSingleItem)(data[_RRo][_RRou]), context); } return contents; }, "de_GetBucketWebsiteCommand"); var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_AR2]: [, output.headers[_ar]], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], [_Exp]: [, output.headers[_xae]], [_Re]: [, output.headers[_xar]], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client25.strictParseLong)(output.headers[_cl_])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client4.strictParseLong)(output.headers[_cl_])], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xamm])], + [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xamm])], [_VI]: [, output.headers[_xavi]], [_CC]: [, output.headers[_cc]], [_CD]: [, output.headers[_cd]], [_CE]: [, output.headers[_ce]], [_CL]: [, output.headers[_cl]], [_CR]: [, output.headers[_cr]], - [_CTo]: [, output.headers[_ct]], - [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_e]))], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_e]))], [_ES]: [, output.headers[_ex]], [_WRL]: [, output.headers[_xawrl]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_SC]: [, output.headers[_xasc]], [_RC]: [, output.headers[_xarc]], [_RS]: [, output.headers[_xars]], - [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xampc])], - [_TC2]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xatc])], + [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xampc])], + [_TC]: [() => void 0 !== output.headers[_xatc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xatc])], [_OLM]: [, output.headers[_xaolm]], [_OLRUD]: [ () => void 0 !== output.headers[_xaolrud], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) ], [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ @@ -44174,17 +44742,17 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectCommand"); var de_GetObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AccessControlList === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { - contents[_Gr] = de_Grants((0, import_smithy_client25.getArrayIfSingleItem)(data[_ACLc][_G]), context); + contents[_Gr] = de_Grants((0, import_smithy_client4.getArrayIfSingleItem)(data[_ACLc][_G]), context); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); @@ -44193,88 +44761,88 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectAclCommand"); var de_GetObjectAttributesCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], [_VI]: [, output.headers[_xavi]], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_Ch] != null) { contents[_Ch] = de_Checksum(data[_Ch], context); } if (data[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(data[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(data[_ETa]); } if (data[_OP] != null) { contents[_OP] = de_GetObjectAttributesParts(data[_OP], context); } if (data[_OSb] != null) { - contents[_OSb] = (0, import_smithy_client25.strictParseLong)(data[_OSb]); + contents[_OSb] = (0, import_smithy_client4.strictParseLong)(data[_OSb]); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } return contents; }, "de_GetObjectAttributesCommand"); var de_GetObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.LegalHold = de_ObjectLockLegalHold(data, context); return contents; }, "de_GetObjectLegalHoldCommand"); var de_GetObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.ObjectLockConfiguration = de_ObjectLockConfiguration(data, context); return contents; }, "de_GetObjectLockConfigurationCommand"); var de_GetObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.Retention = de_ObjectLockRetention(data, context); return contents; }, "de_GetObjectRetentionCommand"); var de_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.TagSet === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { - contents[_TS] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(data[_TS][_Ta]), context); + contents[_TS] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(data[_TS][_Ta]), context); } return contents; }, "de_GetObjectTaggingCommand"); var de_GetObjectTorrentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); const data = output.body; @@ -44284,72 +44852,70 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetObjectTorrentCommand"); var de_GetPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.PublicAccessBlockConfiguration = de_PublicAccessBlockConfiguration(data, context); return contents; }, "de_GetPublicAccessBlockCommand"); var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_BLT]: [, output.headers[_xablt]], [_BLN]: [, output.headers[_xabln]], [_BR]: [, output.headers[_xabr]], - [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xaapa])] + [_APA]: [() => void 0 !== output.headers[_xaapa], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xaapa])] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_HeadBucketCommand"); var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), - [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xadm])], - [_AR2]: [, output.headers[_ar]], + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), + [_DM]: [() => void 0 !== output.headers[_xadm], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xadm])], + [_AR]: [, output.headers[_ar]], [_Exp]: [, output.headers[_xae]], [_Re]: [, output.headers[_xar]], [_AS]: [, output.headers[_xaas]], - [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_lm]))], - [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client25.strictParseLong)(output.headers[_cl_])], + [_LM]: [() => void 0 !== output.headers[_lm], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_lm]))], + [_CLo]: [() => void 0 !== output.headers[_cl_], () => (0, import_smithy_client4.strictParseLong)(output.headers[_cl_])], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], [_ETa]: [, output.headers[_eta]], - [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xamm])], + [_MM]: [() => void 0 !== output.headers[_xamm], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xamm])], [_VI]: [, output.headers[_xavi]], [_CC]: [, output.headers[_cc]], [_CD]: [, output.headers[_cd]], [_CE]: [, output.headers[_ce]], [_CL]: [, output.headers[_cl]], - [_CTo]: [, output.headers[_ct]], - [_E2]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_e]))], + [_CT]: [, output.headers[_ct]], + [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_e]))], [_ES]: [, output.headers[_ex]], [_WRL]: [, output.headers[_xawrl]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_SC]: [, output.headers[_xasc]], [_RC]: [, output.headers[_xarc]], [_RS]: [, output.headers[_xars]], - [_PC2]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client25.strictParseInt32)(output.headers[_xampc])], + [_PC]: [() => void 0 !== output.headers[_xampc], () => (0, import_smithy_client4.strictParseInt32)(output.headers[_xampc])], [_OLM]: [, output.headers[_xaolm]], [_OLRUD]: [ () => void 0 !== output.headers[_xaolrud], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output.headers[_xaolrud])) ], [_OLLHS]: [, output.headers[_xaollh]], Metadata: [ @@ -44360,698 +44926,693 @@ var require_dist_cjs69 = __commonJS({ }, {}) ] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_HeadObjectCommand"); var de_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.AnalyticsConfiguration === "") { contents[_ACLn] = []; } else if (data[_AC] != null) { - contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_AC]), context); + contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_AC]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketAnalyticsConfigurationsCommand"); var de_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data.IntelligentTieringConfiguration === "") { contents[_ITCL] = []; } else if (data[_ITC] != null) { - contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_ITC]), context); + contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_ITC]), context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketIntelligentTieringConfigurationsCommand"); var de_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data.InventoryConfiguration === "") { contents[_ICL] = []; } else if (data[_IC] != null) { - contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_IC]), context); + contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_IC]), context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketInventoryConfigurationsCommand"); var de_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data.MetricsConfiguration === "") { contents[_MCL] = []; } else if (data[_MC] != null) { - contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client25.getArrayIfSingleItem)(data[_MC]), context); + contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client4.getArrayIfSingleItem)(data[_MC]), context); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } return contents; }, "de_ListBucketMetricsConfigurationsCommand"); var de_ListBucketsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Buckets === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets((0, import_smithy_client25.getArrayIfSingleItem)(data[_Bu][_B]), context); + contents[_Bu] = de_Buckets((0, import_smithy_client4.getArrayIfSingleItem)(data[_Bu][_B]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } return contents; }, "de_ListBucketsCommand"); var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.Buckets === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { - contents[_Bu] = de_Buckets((0, import_smithy_client25.getArrayIfSingleItem)(data[_Bu][_B]), context); + contents[_Bu] = de_Buckets((0, import_smithy_client4.getArrayIfSingleItem)(data[_Bu][_B]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } return contents; }, "de_ListDirectoryBucketsCommand"); var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KM] != null) { - contents[_KM] = (0, import_smithy_client25.expectString)(data[_KM]); + contents[_KM] = (0, import_smithy_client4.expectString)(data[_KM]); } if (data[_MU] != null) { - contents[_MU] = (0, import_smithy_client25.strictParseInt32)(data[_MU]); + contents[_MU] = (0, import_smithy_client4.strictParseInt32)(data[_MU]); } if (data[_NKM] != null) { - contents[_NKM] = (0, import_smithy_client25.expectString)(data[_NKM]); + contents[_NKM] = (0, import_smithy_client4.expectString)(data[_NKM]); } if (data[_NUIM] != null) { - contents[_NUIM] = (0, import_smithy_client25.expectString)(data[_NUIM]); + contents[_NUIM] = (0, import_smithy_client4.expectString)(data[_NUIM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_UIM] != null) { - contents[_UIM] = (0, import_smithy_client25.expectString)(data[_UIM]); + contents[_UIM] = (0, import_smithy_client4.expectString)(data[_UIM]); } if (data.Upload === "") { contents[_Up] = []; } else if (data[_U] != null) { - contents[_Up] = de_MultipartUploadList((0, import_smithy_client25.getArrayIfSingleItem)(data[_U]), context); + contents[_Up] = de_MultipartUploadList((0, import_smithy_client4.getArrayIfSingleItem)(data[_U]), context); } return contents; }, "de_ListMultipartUploadsCommand"); var de_ListObjectsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.Contents === "") { contents[_Co] = []; } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList((0, import_smithy_client25.getArrayIfSingleItem)(data[_Co]), context); + contents[_Co] = de_ObjectList((0, import_smithy_client4.getArrayIfSingleItem)(data[_Co]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_M] != null) { - contents[_M] = (0, import_smithy_client25.expectString)(data[_M]); + contents[_M] = (0, import_smithy_client4.expectString)(data[_M]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NM] != null) { - contents[_NM] = (0, import_smithy_client25.expectString)(data[_NM]); + contents[_NM] = (0, import_smithy_client4.expectString)(data[_NM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } return contents; }, "de_ListObjectsCommand"); var de_ListObjectsV2Command = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.Contents === "") { contents[_Co] = []; } else if (data[_Co] != null) { - contents[_Co] = de_ObjectList((0, import_smithy_client25.getArrayIfSingleItem)(data[_Co]), context); + contents[_Co] = de_ObjectList((0, import_smithy_client4.getArrayIfSingleItem)(data[_Co]), context); } - if (data[_CTon] != null) { - contents[_CTon] = (0, import_smithy_client25.expectString)(data[_CTon]); + if (data[_CTo] != null) { + contents[_CTo] = (0, import_smithy_client4.expectString)(data[_CTo]); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KC] != null) { - contents[_KC] = (0, import_smithy_client25.strictParseInt32)(data[_KC]); + contents[_KC] = (0, import_smithy_client4.strictParseInt32)(data[_KC]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NCT] != null) { - contents[_NCT] = (0, import_smithy_client25.expectString)(data[_NCT]); + contents[_NCT] = (0, import_smithy_client4.expectString)(data[_NCT]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_SA] != null) { - contents[_SA] = (0, import_smithy_client25.expectString)(data[_SA]); + contents[_SA] = (0, import_smithy_client4.expectString)(data[_SA]); } return contents; }, "de_ListObjectsV2Command"); var de_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data.CommonPrefixes === "") { contents[_CP] = []; } else if (data[_CP] != null) { - contents[_CP] = de_CommonPrefixList((0, import_smithy_client25.getArrayIfSingleItem)(data[_CP]), context); + contents[_CP] = de_CommonPrefixList((0, import_smithy_client4.getArrayIfSingleItem)(data[_CP]), context); } if (data.DeleteMarker === "") { contents[_DMe] = []; } else if (data[_DM] != null) { - contents[_DMe] = de_DeleteMarkers((0, import_smithy_client25.getArrayIfSingleItem)(data[_DM]), context); + contents[_DMe] = de_DeleteMarkers((0, import_smithy_client4.getArrayIfSingleItem)(data[_DM]), context); } if (data[_D] != null) { - contents[_D] = (0, import_smithy_client25.expectString)(data[_D]); + contents[_D] = (0, import_smithy_client4.expectString)(data[_D]); } if (data[_ET] != null) { - contents[_ET] = (0, import_smithy_client25.expectString)(data[_ET]); + contents[_ET] = (0, import_smithy_client4.expectString)(data[_ET]); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } if (data[_KM] != null) { - contents[_KM] = (0, import_smithy_client25.expectString)(data[_KM]); + contents[_KM] = (0, import_smithy_client4.expectString)(data[_KM]); } if (data[_MK] != null) { - contents[_MK] = (0, import_smithy_client25.strictParseInt32)(data[_MK]); + contents[_MK] = (0, import_smithy_client4.strictParseInt32)(data[_MK]); } if (data[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(data[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(data[_N]); } if (data[_NKM] != null) { - contents[_NKM] = (0, import_smithy_client25.expectString)(data[_NKM]); + contents[_NKM] = (0, import_smithy_client4.expectString)(data[_NKM]); } if (data[_NVIM] != null) { - contents[_NVIM] = (0, import_smithy_client25.expectString)(data[_NVIM]); + contents[_NVIM] = (0, import_smithy_client4.expectString)(data[_NVIM]); } - if (data[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(data[_P2]); + if (data[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(data[_P]); } if (data[_VIM] != null) { - contents[_VIM] = (0, import_smithy_client25.expectString)(data[_VIM]); + contents[_VIM] = (0, import_smithy_client4.expectString)(data[_VIM]); } if (data.Version === "") { contents[_Ve] = []; - } else if (data[_V2] != null) { - contents[_Ve] = de_ObjectVersionList((0, import_smithy_client25.getArrayIfSingleItem)(data[_V2]), context); + } else if (data[_V] != null) { + contents[_Ve] = de_ObjectVersionList((0, import_smithy_client4.getArrayIfSingleItem)(data[_V]), context); } return contents; }, "de_ListObjectVersionsCommand"); var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_AD]: [ () => void 0 !== output.headers[_xaad], - () => (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc7231DateTime)(output.headers[_xaad])) + () => (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc7231DateTime)(output.headers[_xaad])) ], - [_ARI2]: [, output.headers[_xaari]], + [_ARI]: [, output.headers[_xaari]], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)), "body"); + const data = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)), "body"); if (data[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(data[_B]); - } - if (data[_CA2] != null) { - contents[_CA2] = (0, import_smithy_client25.expectString)(data[_CA2]); + contents[_B] = (0, import_smithy_client4.expectString)(data[_B]); } - if (data[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(data[_CT]); + if (data[_CA] != null) { + contents[_CA] = (0, import_smithy_client4.expectString)(data[_CA]); } if (data[_In] != null) { contents[_In] = de_Initiator(data[_In], context); } if (data[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(data[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(data[_IT]); } - if (data[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(data[_K2]); + if (data[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(data[_K]); } if (data[_MP] != null) { - contents[_MP] = (0, import_smithy_client25.strictParseInt32)(data[_MP]); + contents[_MP] = (0, import_smithy_client4.strictParseInt32)(data[_MP]); } if (data[_NPNM] != null) { - contents[_NPNM] = (0, import_smithy_client25.expectString)(data[_NPNM]); + contents[_NPNM] = (0, import_smithy_client4.expectString)(data[_NPNM]); } if (data[_O] != null) { contents[_O] = de_Owner(data[_O], context); } if (data[_PNM] != null) { - contents[_PNM] = (0, import_smithy_client25.expectString)(data[_PNM]); + contents[_PNM] = (0, import_smithy_client4.expectString)(data[_PNM]); } if (data.Part === "") { contents[_Part] = []; } else if (data[_Par] != null) { - contents[_Part] = de_Parts((0, import_smithy_client25.getArrayIfSingleItem)(data[_Par]), context); + contents[_Part] = de_Parts((0, import_smithy_client4.getArrayIfSingleItem)(data[_Par]), context); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } if (data[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(data[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(data[_UI]); } return contents; }, "de_ListPartsCommand"); var de_PutBucketAccelerateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAccelerateConfigurationCommand"); var de_PutBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAclCommand"); var de_PutBucketAnalyticsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketAnalyticsConfigurationCommand"); var de_PutBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketCorsCommand"); var de_PutBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketEncryptionCommand"); var de_PutBucketIntelligentTieringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketIntelligentTieringConfigurationCommand"); var de_PutBucketInventoryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketInventoryConfigurationCommand"); var de_PutBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_TDMOS]: [, output.headers[_xatdmos]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketLifecycleConfigurationCommand"); var de_PutBucketLoggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketLoggingCommand"); var de_PutBucketMetricsConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketMetricsConfigurationCommand"); var de_PutBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketNotificationConfigurationCommand"); var de_PutBucketOwnershipControlsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketOwnershipControlsCommand"); var de_PutBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketPolicyCommand"); var de_PutBucketReplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketReplicationCommand"); var de_PutBucketRequestPaymentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketRequestPaymentCommand"); var de_PutBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketTaggingCommand"); var de_PutBucketVersioningCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketVersioningCommand"); var de_PutBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutBucketWebsiteCommand"); var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_Exp]: [, output.headers[_xae]], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], - [_CT]: [, output.headers[_xact]], [_SSE]: [, output.headers[_xasse]], [_VI]: [, output.headers[_xavi]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], [_SSEKMSEC]: [, output.headers[_xassec]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], - [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client25.strictParseLong)(output.headers[_xaos])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], + [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client4.strictParseLong)(output.headers[_xaos])], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectCommand"); var de_PutObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectAclCommand"); var de_PutObjectLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectLegalHoldCommand"); var de_PutObjectLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectLockConfigurationCommand"); var de_PutObjectRetentionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectRetentionCommand"); var de_PutObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_VI]: [, output.headers[_xavi]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutObjectTaggingCommand"); var de_PutPublicAccessBlockCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_PutPublicAccessBlockCommand"); var de_RestoreObjectCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_RC]: [, output.headers[_xarc]], [_ROP]: [, output.headers[_xarop]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_RestoreObjectCommand"); var de_SelectObjectContentCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); const data = output.body; contents.Payload = de_SelectObjectContentEventStream(data, context); @@ -45059,60 +45620,59 @@ var require_dist_cjs69 = __commonJS({ }, "de_SelectObjectContentCommand"); var de_UploadPartCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_SSE]: [, output.headers[_xasse]], [_ETa]: [, output.headers[_eta]], [_CCRC]: [, output.headers[_xacc]], [_CCRCC]: [, output.headers[_xacc_]], - [_CCRCNVME]: [, output.headers[_xacc__]], [_CSHA]: [, output.headers[_xacs]], [_CSHAh]: [, output.headers[_xacs_]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_UploadPartCommand"); var de_UploadPartCopyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output), + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output), [_CSVI]: [, output.headers[_xacsvi]], [_SSE]: [, output.headers[_xasse]], [_SSECA]: [, output.headers[_xasseca]], [_SSECKMD]: [, output.headers[_xasseckm]], [_SSEKMSKI]: [, output.headers[_xasseakki]], - [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client25.parseBoolean)(output.headers[_xassebke])], + [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client4.parseBoolean)(output.headers[_xassebke])], [_RC]: [, output.headers[_xarc]] }); - const data = (0, import_smithy_client25.expectObject)(await (0, import_core17.parseXmlBody)(output.body, context)); + const data = (0, import_smithy_client4.expectObject)(await (0, import_core4.parseXmlBody)(output.body, context)); contents.CopyPartResult = de_CopyPartResult(data, context); return contents; }, "de_UploadPartCopyCommand"); var de_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CommandError3(output, context); + return de_CommandError(output, context); } - const contents = (0, import_smithy_client25.map)({ - $metadata: deserializeMetadata3(output) + const contents = (0, import_smithy_client4.map)({ + $metadata: deserializeMetadata(output) }); - await (0, import_smithy_client25.collectBody)(output.body, context); + await (0, import_smithy_client4.collectBody)(output.body, context); return contents; }, "de_WriteGetObjectResponseCommand"); - var de_CommandError3 = /* @__PURE__ */ __name(async (output, context) => { + var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, - body: await (0, import_core17.parseXmlErrorBody)(output.body, context) + body: await (0, import_core4.parseXmlErrorBody)(output.body, context) }; - const errorCode = (0, import_core17.loadRestXmlErrorCode)(output, parsedOutput.body); + const errorCode = (0, import_core4.loadRestXmlErrorCode)(output, parsedOutput.body); switch (errorCode) { case "NoSuchUpload": case "com.amazonaws.s3#NoSuchUpload": @@ -45155,136 +45715,136 @@ var require_dist_cjs69 = __commonJS({ throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; - return throwDefaultError3({ + return throwDefaultError({ output, parsedBody, errorCode }); } }, "de_CommandError"); - var throwDefaultError3 = (0, import_smithy_client25.withBaseException)(S3ServiceException); + var throwDefaultError = (0, import_smithy_client4.withBaseException)(S3ServiceException); var de_BucketAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new BucketAlreadyExists({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyExistsRes"); var de_BucketAlreadyOwnedByYouRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new BucketAlreadyOwnedByYou({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_BucketAlreadyOwnedByYouRes"); var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new EncryptionTypeMismatch({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_EncryptionTypeMismatchRes"); var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; if (data[_AT] != null) { - contents[_AT] = (0, import_smithy_client25.expectString)(data[_AT]); + contents[_AT] = (0, import_smithy_client4.expectString)(data[_AT]); } if (data[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(data[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(data[_SC]); } const exception = new InvalidObjectState({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidObjectStateRes"); var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new InvalidRequest({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidRequestRes"); var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new InvalidWriteOffset({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_InvalidWriteOffsetRes"); var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchBucket({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchBucketRes"); var de_NoSuchKeyRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchKey({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchKeyRes"); var de_NoSuchUploadRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NoSuchUpload({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NoSuchUploadRes"); var de_NotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new NotFound({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_NotFoundRes"); var de_ObjectAlreadyInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new ObjectAlreadyInActiveTierError({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectAlreadyInActiveTierErrorRes"); var de_ObjectNotInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new ObjectNotInActiveTierError({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_ObjectNotInActiveTierErrorRes"); var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { - const contents = (0, import_smithy_client25.map)({}); + const contents = (0, import_smithy_client4.map)({}); const data = parsedOutput.body; const exception = new TooManyParts({ - $metadata: deserializeMetadata3(parsedOutput), + $metadata: deserializeMetadata(parsedOutput), ...contents }); - return (0, import_smithy_client25.decorateServiceException)(exception, parsedOutput.body); + return (0, import_smithy_client4.decorateServiceException)(exception, parsedOutput.body); }, "de_TooManyPartsRes"); var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => { return context.eventStreamMarshaller.deserialize(output, async (event) => { @@ -45318,19 +45878,19 @@ var require_dist_cjs69 = __commonJS({ }, "de_SelectObjectContentEventStream"); var de_ContinuationEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); Object.assign(contents, de_ContinuationEvent(data, context)); return contents; }, "de_ContinuationEvent_event"); var de_EndEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); Object.assign(contents, de_EndEvent(data, context)); return contents; }, "de_EndEvent_event"); var de_ProgressEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); contents.Details = de_Progress(data, context); return contents; }, "de_ProgressEvent_event"); @@ -45341,7 +45901,7 @@ var require_dist_cjs69 = __commonJS({ }, "de_RecordsEvent_event"); var de_StatsEvent_event = /* @__PURE__ */ __name(async (output, context) => { const contents = {}; - const data = await (0, import_core17.parseXmlBody)(output.body, context); + const data = await (0, import_core4.parseXmlBody)(output.body, context); contents.Details = de_Stats(data, context); return contents; }, "de_StatsEvent_event"); @@ -45375,26 +45935,26 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_AccessControlTranslation"); var se_AllowedHeaders = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AH, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AH, entry); + return n.n(_me); }); }, "se_AllowedHeaders"); var se_AllowedMethods = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AM, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AM, entry); + return n.n(_me); }); }, "se_AllowedMethods"); var se_AllowedOrigins = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_AO, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_AO, entry); + return n.n(_me); }); }, "se_AllowedOrigins"); var se_AnalyticsAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_AAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_AnalyticsAndOperator"); @@ -45422,18 +45982,18 @@ var require_dist_cjs69 = __commonJS({ const bn = new import_xml_builder.XmlNode(_AF); AnalyticsFilter.visit(input, { Prefix: (value) => { - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_P2, value).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P)); } }, Tag: (value) => { if (input[_Ta] != null) { - bn.c(se_Tag2(value, context).n(_Ta)); + bn.c(se_Tag(value, context).n(_Ta)); } }, And: (value) => { - if (input[_A2] != null) { - bn.c(se_AnalyticsAndOperator(value, context).n(_A2)); + if (input[_A] != null) { + bn.c(se_AnalyticsAndOperator(value, context).n(_A)); } }, _: (name, value) => { @@ -45456,7 +46016,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_B] != null) { bn.c(import_xml_builder.XmlNode.of(_BN, input[_B]).n(_B)); } - bn.cc(input, _P2); + bn.cc(input, _P); return bn; }, "se_AnalyticsS3BucketDestination"); var se_BucketInfo = /* @__PURE__ */ __name((input, context) => { @@ -45489,7 +46049,6 @@ var require_dist_cjs69 = __commonJS({ bn.cc(input, _ETa); bn.cc(input, _CCRC); bn.cc(input, _CCRCC); - bn.cc(input, _CCRCNVME); bn.cc(input, _CSHA); bn.cc(input, _CSHAh); if (input[_PN] != null) { @@ -45498,9 +46057,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_CompletedPart"); var se_CompletedPartList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_CompletedPart(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_CompletedPart(entry, context); + return n.n(_me); }); }, "se_CompletedPartList"); var se_Condition = /* @__PURE__ */ __name((input, context) => { @@ -45527,9 +46086,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_CORSRule"); var se_CORSRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_CORSRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_CORSRule(entry, context); + return n.n(_me); }); }, "se_CORSRules"); var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -45636,8 +46195,8 @@ var require_dist_cjs69 = __commonJS({ }, "se_EncryptionConfiguration"); var se_ErrorDocument = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ED); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } return bn; }, "se_ErrorDocument"); @@ -45646,9 +46205,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_EventBridgeConfiguration"); var se_EventList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_Ev, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_Ev, entry); + return n.n(_me); }); }, "se_EventList"); var se_ExistingObjectReplication = /* @__PURE__ */ __name((input, context) => { @@ -45659,9 +46218,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ExistingObjectReplication"); var se_ExposeHeaders = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_EHx, entry); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_EHx, entry); + return n.n(_me); }); }, "se_ExposeHeaders"); var se_FilterRule = /* @__PURE__ */ __name((input, context) => { @@ -45669,15 +46228,15 @@ var require_dist_cjs69 = __commonJS({ if (input[_N] != null) { bn.c(import_xml_builder.XmlNode.of(_FRN, input[_N]).n(_N)); } - if (input[_Va2] != null) { - bn.c(import_xml_builder.XmlNode.of(_FRV, input[_Va2]).n(_Va2)); + if (input[_Va] != null) { + bn.c(import_xml_builder.XmlNode.of(_FRV, input[_Va]).n(_Va)); } return bn; }, "se_FilterRule"); var se_FilterRuleList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_FilterRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_FilterRule(entry, context); + return n.n(_me); }); }, "se_FilterRuleList"); var se_GlacierJobParameters = /* @__PURE__ */ __name((input, context) => { @@ -45688,9 +46247,9 @@ var require_dist_cjs69 = __commonJS({ var se_Grant = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_G); if (input[_Gra] != null) { - const n3 = se_Grantee(input[_Gra], context).n(_Gra); - n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n3); + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } bn.cc(input, _Pe); return bn; @@ -45705,9 +46264,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Grantee"); var se_Grants = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Grant(entry, context); - return n3.n(_G); + return input.filter((e) => e != null).map((entry) => { + const n = se_Grant(entry, context); + return n.n(_G); }); }, "se_Grants"); var se_IndexDocument = /* @__PURE__ */ __name((input, context) => { @@ -45731,7 +46290,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_InputSerialization"); var se_IntelligentTieringAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ITAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_IntelligentTieringAndOperator"); @@ -45751,12 +46310,12 @@ var require_dist_cjs69 = __commonJS({ }, "se_IntelligentTieringConfiguration"); var se_IntelligentTieringFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_ITF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } - if (input[_A2] != null) { - bn.c(se_IntelligentTieringAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_IntelligentTieringAndOperator(input[_A], context).n(_A)); } return bn; }, "se_IntelligentTieringFilter"); @@ -45802,13 +46361,13 @@ var require_dist_cjs69 = __commonJS({ }, "se_InventoryEncryption"); var se_InventoryFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_IF); - bn.cc(input, _P2); + bn.cc(input, _P); return bn; }, "se_InventoryFilter"); var se_InventoryOptionalFields = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = import_xml_builder.XmlNode.of(_IOF, entry); - return n3.n(_Fi); + return input.filter((e) => e != null).map((entry) => { + const n = import_xml_builder.XmlNode.of(_IOF, entry); + return n.n(_Fi); }); }, "se_InventoryOptionalFields"); var se_InventoryS3BucketDestination = /* @__PURE__ */ __name((input, context) => { @@ -45820,7 +46379,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_Fo] != null) { bn.c(import_xml_builder.XmlNode.of(_IFn, input[_Fo]).n(_Fo)); } - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_En] != null) { bn.c(se_InventoryEncryption(input[_En], context).n(_En)); } @@ -45860,15 +46419,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_LambdaFunctionConfiguration"); var se_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_LambdaFunctionConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_LambdaFunctionConfiguration(entry, context); + return n.n(_me); }); }, "se_LambdaFunctionConfigurationList"); var se_LifecycleExpiration = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LEi); if (input[_Dat] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); } if (input[_Da] != null) { bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da)); @@ -45884,7 +46443,7 @@ var require_dist_cjs69 = __commonJS({ bn.c(se_LifecycleExpiration(input[_Exp], context).n(_Exp)); } bn.cc(input, _ID_); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_F] != null) { bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F)); } @@ -45908,7 +46467,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_LifecycleRule"); var se_LifecycleRuleAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LRAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); if (input[_OSGT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); @@ -45920,9 +46479,9 @@ var require_dist_cjs69 = __commonJS({ }, "se_LifecycleRuleAndOperator"); var se_LifecycleRuleFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_LRF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } if (input[_OSGT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSGTB, String(input[_OSGT])).n(_OSGT)); @@ -45930,15 +46489,15 @@ var require_dist_cjs69 = __commonJS({ if (input[_OSLT] != null) { bn.c(import_xml_builder.XmlNode.of(_OSLTB, String(input[_OSLT])).n(_OSLT)); } - if (input[_A2] != null) { - bn.c(se_LifecycleRuleAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_LifecycleRuleAndOperator(input[_A], context).n(_A)); } return bn; }, "se_LifecycleRuleFilter"); var se_LifecycleRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_LifecycleRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_LifecycleRule(entry, context); + return n.n(_me); }); }, "se_LifecycleRules"); var se_LocationInfo = /* @__PURE__ */ __name((input, context) => { @@ -45966,8 +46525,8 @@ var require_dist_cjs69 = __commonJS({ if (input[_N] != null) { bn.c(import_xml_builder.XmlNode.of(_MKe, input[_N]).n(_N)); } - if (input[_Va2] != null) { - bn.c(import_xml_builder.XmlNode.of(_MV, input[_Va2]).n(_Va2)); + if (input[_Va] != null) { + bn.c(import_xml_builder.XmlNode.of(_MV, input[_Va]).n(_Va)); } return bn; }, "se_MetadataEntry"); @@ -45990,7 +46549,7 @@ var require_dist_cjs69 = __commonJS({ }, "se_Metrics"); var se_MetricsAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_MAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); bn.cc(input, _APAc); return bn; @@ -46009,13 +46568,13 @@ var require_dist_cjs69 = __commonJS({ const bn = new import_xml_builder.XmlNode(_MF); MetricsFilter.visit(input, { Prefix: (value) => { - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_P2, value).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_P, value).n(_P)); } }, Tag: (value) => { if (input[_Ta] != null) { - bn.c(se_Tag2(value, context).n(_Ta)); + bn.c(se_Tag(value, context).n(_Ta)); } }, AccessPointArn: (value) => { @@ -46024,8 +46583,8 @@ var require_dist_cjs69 = __commonJS({ } }, And: (value) => { - if (input[_A2] != null) { - bn.c(se_MetricsAndOperator(value, context).n(_A2)); + if (input[_A] != null) { + bn.c(se_MetricsAndOperator(value, context).n(_A)); } }, _: (name, value) => { @@ -46061,9 +46620,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_NoncurrentVersionTransition"); var se_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_NoncurrentVersionTransition(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_NoncurrentVersionTransition(entry, context); + return n.n(_me); }); }, "se_NoncurrentVersionTransitionList"); var se_NotificationConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46083,22 +46642,22 @@ var require_dist_cjs69 = __commonJS({ }, "se_NotificationConfiguration"); var se_NotificationConfigurationFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_NCF); - if (input[_K2] != null) { - bn.c(se_S3KeyFilter(input[_K2], context).n(_SKe)); + if (input[_K] != null) { + bn.c(se_S3KeyFilter(input[_K], context).n(_SKe)); } return bn; }, "se_NotificationConfigurationFilter"); var se_ObjectIdentifier = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_OI); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } if (input[_VI] != null) { bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI)); } bn.cc(input, _ETa); if (input[_LMT] != null) { - bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client25.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); + bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client4.dateToUtcString)(input[_LMT]).toString()).n(_LMT)); } if (input[_Si] != null) { bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si)); @@ -46106,9 +46665,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ObjectIdentifier"); var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ObjectIdentifier(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ObjectIdentifier(entry, context); + return n.n(_me); }); }, "se_ObjectIdentifierList"); var se_ObjectLockConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46132,7 +46691,7 @@ var require_dist_cjs69 = __commonJS({ bn.c(import_xml_builder.XmlNode.of(_OLRM, input[_Mo]).n(_Mo)); } if (input[_RUD] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_RUD]).toString()).n(_RUD)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_RUD]).toString()).n(_RUD)); } return bn; }, "se_ObjectLockRetention"); @@ -46177,13 +46736,13 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_OwnershipControlsRule"); var se_OwnershipControlsRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_OwnershipControlsRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_OwnershipControlsRule(entry, context); + return n.n(_me); }); }, "se_OwnershipControlsRules"); var se_ParquetInput = /* @__PURE__ */ __name((input, context) => { - const bn = new import_xml_builder.XmlNode(_PI2); + const bn = new import_xml_builder.XmlNode(_PI); return bn; }, "se_ParquetInput"); var se_PartitionedPrefix = /* @__PURE__ */ __name((input, context) => { @@ -46222,16 +46781,16 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_QueueConfiguration"); var se_QueueConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_QueueConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_QueueConfiguration(entry, context); + return n.n(_me); }); }, "se_QueueConfigurationList"); var se_Redirect = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Red); bn.cc(input, _HN); bn.cc(input, _HRC); - bn.cc(input, _Pr2); + bn.cc(input, _Pr); bn.cc(input, _RKPW); bn.cc(input, _RKW); return bn; @@ -46239,7 +46798,7 @@ var require_dist_cjs69 = __commonJS({ var se_RedirectAllRequestsTo = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RART); bn.cc(input, _HN); - bn.cc(input, _Pr2); + bn.cc(input, _Pr); return bn; }, "se_RedirectAllRequestsTo"); var se_ReplicaModifications = /* @__PURE__ */ __name((input, context) => { @@ -46261,7 +46820,7 @@ var require_dist_cjs69 = __commonJS({ if (input[_Pri] != null) { bn.c(import_xml_builder.XmlNode.of(_Pri, String(input[_Pri])).n(_Pri)); } - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_F] != null) { bn.c(se_ReplicationRuleFilter(input[_F], context).n(_F)); } @@ -46284,25 +46843,25 @@ var require_dist_cjs69 = __commonJS({ }, "se_ReplicationRule"); var se_ReplicationRuleAndOperator = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RRAO); - bn.cc(input, _P2); + bn.cc(input, _P); bn.l(input, "Tags", "Tag", () => se_TagSet(input[_Tag], context)); return bn; }, "se_ReplicationRuleAndOperator"); var se_ReplicationRuleFilter = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_RRF); - bn.cc(input, _P2); + bn.cc(input, _P); if (input[_Ta] != null) { - bn.c(se_Tag2(input[_Ta], context).n(_Ta)); + bn.c(se_Tag(input[_Ta], context).n(_Ta)); } - if (input[_A2] != null) { - bn.c(se_ReplicationRuleAndOperator(input[_A2], context).n(_A2)); + if (input[_A] != null) { + bn.c(se_ReplicationRuleAndOperator(input[_A], context).n(_A)); } return bn; }, "se_ReplicationRuleFilter"); var se_ReplicationRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ReplicationRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ReplicationRule(entry, context); + return n.n(_me); }); }, "se_ReplicationRules"); var se_ReplicationTime = /* @__PURE__ */ __name((input, context) => { @@ -46366,9 +46925,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_RoutingRule"); var se_RoutingRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_RoutingRule(entry, context); - return n3.n(_RRou); + return input.filter((e) => e != null).map((entry) => { + const n = se_RoutingRule(entry, context); + return n.n(_RRou); }); }, "se_RoutingRules"); var se_S3KeyFilter = /* @__PURE__ */ __name((input, context) => { @@ -46379,8 +46938,8 @@ var require_dist_cjs69 = __commonJS({ var se_S3Location = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_SL); bn.cc(input, _BN); - if (input[_P2] != null) { - bn.c(import_xml_builder.XmlNode.of(_LP, input[_P2]).n(_P2)); + if (input[_P] != null) { + bn.c(import_xml_builder.XmlNode.of(_LP, input[_P]).n(_P)); } if (input[_En] != null) { bn.c(se_Encryption(input[_En], context).n(_En)); @@ -46389,8 +46948,8 @@ var require_dist_cjs69 = __commonJS({ bn.c(import_xml_builder.XmlNode.of(_OCACL, input[_CACL]).n(_CACL)); } bn.lc(input, "AccessControlList", "AccessControlList", () => se_Grants(input[_ACLc], context)); - if (input[_T2] != null) { - bn.c(se_Tagging(input[_T2], context).n(_T2)); + if (input[_T] != null) { + bn.c(se_Tagging(input[_T], context).n(_T)); } bn.lc(input, "UserMetadata", "UserMetadata", () => se_UserMetadata(input[_UM], context)); bn.cc(input, _SC); @@ -46454,9 +47013,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_ServerSideEncryptionRule"); var se_ServerSideEncryptionRules = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_ServerSideEncryptionRule(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_ServerSideEncryptionRule(entry, context); + return n.n(_me); }); }, "se_ServerSideEncryptionRules"); var se_SimplePrefix = /* @__PURE__ */ __name((input, context) => { @@ -46508,31 +47067,31 @@ var require_dist_cjs69 = __commonJS({ } return bn; }, "se_StorageClassAnalysisDataExport"); - var se_Tag2 = /* @__PURE__ */ __name((input, context) => { + var se_Tag = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Ta); - if (input[_K2] != null) { - bn.c(import_xml_builder.XmlNode.of(_OK, input[_K2]).n(_K2)); + if (input[_K] != null) { + bn.c(import_xml_builder.XmlNode.of(_OK, input[_K]).n(_K)); } - bn.cc(input, _Va2); + bn.cc(input, _Va); return bn; }, "se_Tag"); var se_Tagging = /* @__PURE__ */ __name((input, context) => { - const bn = new import_xml_builder.XmlNode(_T2); + const bn = new import_xml_builder.XmlNode(_T); bn.lc(input, "TagSet", "TagSet", () => se_TagSet(input[_TS], context)); return bn; }, "se_Tagging"); var se_TagSet = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Tag2(entry, context); - return n3.n(_Ta); + return input.filter((e) => e != null).map((entry) => { + const n = se_Tag(entry, context); + return n.n(_Ta); }); }, "se_TagSet"); var se_TargetGrant = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_TGa); if (input[_Gra] != null) { - const n3 = se_Grantee(input[_Gra], context).n(_Gra); - n3.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); - bn.c(n3); + const n = se_Grantee(input[_Gra], context).n(_Gra); + n.a("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); + bn.c(n); } if (input[_Pe] != null) { bn.c(import_xml_builder.XmlNode.of(_BLP, input[_Pe]).n(_Pe)); @@ -46540,9 +47099,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_TargetGrant"); var se_TargetGrants = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_TargetGrant(entry, context); - return n3.n(_G); + return input.filter((e) => e != null).map((entry) => { + const n = se_TargetGrant(entry, context); + return n.n(_G); }); }, "se_TargetGrants"); var se_TargetObjectKeyFormat = /* @__PURE__ */ __name((input, context) => { @@ -46566,9 +47125,9 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Tiering"); var se_TieringList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Tiering(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_Tiering(entry, context); + return n.n(_me); }); }, "se_TieringList"); var se_TopicConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46586,15 +47145,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_TopicConfiguration"); var se_TopicConfigurationList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_TopicConfiguration(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_TopicConfiguration(entry, context); + return n.n(_me); }); }, "se_TopicConfigurationList"); var se_Transition = /* @__PURE__ */ __name((input, context) => { const bn = new import_xml_builder.XmlNode(_Tra); if (input[_Dat] != null) { - bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client25.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); + bn.c(import_xml_builder.XmlNode.of(_Dat, (0, import_smithy_client4.serializeDateTime)(input[_Dat]).toString()).n(_Dat)); } if (input[_Da] != null) { bn.c(import_xml_builder.XmlNode.of(_Da, String(input[_Da])).n(_Da)); @@ -46605,15 +47164,15 @@ var require_dist_cjs69 = __commonJS({ return bn; }, "se_Transition"); var se_TransitionList = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_Transition(entry, context); - return n3.n(_me); + return input.filter((e) => e != null).map((entry) => { + const n = se_Transition(entry, context); + return n.n(_me); }); }, "se_TransitionList"); var se_UserMetadata = /* @__PURE__ */ __name((input, context) => { - return input.filter((e3) => e3 != null).map((entry) => { - const n3 = se_MetadataEntry(entry, context); - return n3.n(_ME); + return input.filter((e) => e != null).map((entry) => { + const n = se_MetadataEntry(entry, context); + return n.n(_ME); }); }, "se_UserMetadata"); var se_VersioningConfiguration = /* @__PURE__ */ __name((input, context) => { @@ -46643,52 +47202,52 @@ var require_dist_cjs69 = __commonJS({ var de_AbortIncompleteMultipartUpload = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DAI] != null) { - contents[_DAI] = (0, import_smithy_client25.strictParseInt32)(output[_DAI]); + contents[_DAI] = (0, import_smithy_client4.strictParseInt32)(output[_DAI]); } return contents; }, "de_AbortIncompleteMultipartUpload"); var de_AccessControlTranslation = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_O] != null) { - contents[_O] = (0, import_smithy_client25.expectString)(output[_O]); + contents[_O] = (0, import_smithy_client4.expectString)(output[_O]); } return contents; }, "de_AccessControlTranslation"); var de_AllowedHeaders = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedHeaders"); var de_AllowedMethods = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedMethods"); var de_AllowedOrigins = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_AllowedOrigins"); var de_AnalyticsAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_AnalyticsAndOperator"); var de_AnalyticsConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output.Filter === "") { } else if (output[_F] != null) { - contents[_F] = de_AnalyticsFilter((0, import_smithy_client25.expectUnion)(output[_F]), context); + contents[_F] = de_AnalyticsFilter((0, import_smithy_client4.expectUnion)(output[_F]), context); } if (output[_SCA] != null) { contents[_SCA] = de_StorageClassAnalysis(output[_SCA], context); @@ -46696,7 +47255,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_AnalyticsConfiguration"); var de_AnalyticsConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_AnalyticsConfiguration(entry, context); }); }, "de_AnalyticsConfigurationList"); @@ -46708,9 +47267,9 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_AnalyticsExportDestination"); var de_AnalyticsFilter = /* @__PURE__ */ __name((output, context) => { - if (output[_P2] != null) { + if (output[_P] != null) { return { - Prefix: (0, import_smithy_client25.expectString)(output[_P2]) + Prefix: (0, import_smithy_client4.expectString)(output[_P]) }; } if (output[_Ta] != null) { @@ -46718,9 +47277,9 @@ var require_dist_cjs69 = __commonJS({ Tag: de_Tag(output[_Ta], context) }; } - if (output[_A2] != null) { + if (output[_A] != null) { return { - And: de_AnalyticsAndOperator(output[_A2], context) + And: de_AnalyticsAndOperator(output[_A], context) }; } return { $unknown: Object.entries(output)[0] }; @@ -46728,83 +47287,77 @@ var require_dist_cjs69 = __commonJS({ var de_AnalyticsS3BucketDestination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Fo] != null) { - contents[_Fo] = (0, import_smithy_client25.expectString)(output[_Fo]); + contents[_Fo] = (0, import_smithy_client4.expectString)(output[_Fo]); } if (output[_BAI] != null) { - contents[_BAI] = (0, import_smithy_client25.expectString)(output[_BAI]); + contents[_BAI] = (0, import_smithy_client4.expectString)(output[_BAI]); } if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_AnalyticsS3BucketDestination"); var de_Bucket = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(output[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(output[_N]); } if (output[_CDr] != null) { - contents[_CDr] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_CDr])); + contents[_CDr] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_CDr])); } if (output[_BR] != null) { - contents[_BR] = (0, import_smithy_client25.expectString)(output[_BR]); + contents[_BR] = (0, import_smithy_client4.expectString)(output[_BR]); } return contents; }, "de_Bucket"); var de_Buckets = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Bucket(entry, context); }); }, "de_Buckets"); var de_Checksum = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_Checksum"); var de_ChecksumAlgorithmList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_ChecksumAlgorithmList"); var de_CommonPrefix = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_CommonPrefix"); var de_CommonPrefixList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_CommonPrefix(entry, context); }); }, "de_CommonPrefixList"); var de_Condition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HECRE] != null) { - contents[_HECRE] = (0, import_smithy_client25.expectString)(output[_HECRE]); + contents[_HECRE] = (0, import_smithy_client4.expectString)(output[_HECRE]); } if (output[_KPE] != null) { - contents[_KPE] = (0, import_smithy_client25.expectString)(output[_KPE]); + contents[_KPE] = (0, import_smithy_client4.expectString)(output[_KPE]); } return contents; }, "de_Condition"); @@ -46815,122 +47368,113 @@ var require_dist_cjs69 = __commonJS({ var de_CopyObjectResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_CopyObjectResult"); var de_CopyPartResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_CopyPartResult"); var de_CORSRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output.AllowedHeader === "") { contents[_AHl] = []; } else if (output[_AH] != null) { - contents[_AHl] = de_AllowedHeaders((0, import_smithy_client25.getArrayIfSingleItem)(output[_AH]), context); + contents[_AHl] = de_AllowedHeaders((0, import_smithy_client4.getArrayIfSingleItem)(output[_AH]), context); } if (output.AllowedMethod === "") { contents[_AMl] = []; } else if (output[_AM] != null) { - contents[_AMl] = de_AllowedMethods((0, import_smithy_client25.getArrayIfSingleItem)(output[_AM]), context); + contents[_AMl] = de_AllowedMethods((0, import_smithy_client4.getArrayIfSingleItem)(output[_AM]), context); } if (output.AllowedOrigin === "") { contents[_AOl] = []; } else if (output[_AO] != null) { - contents[_AOl] = de_AllowedOrigins((0, import_smithy_client25.getArrayIfSingleItem)(output[_AO]), context); + contents[_AOl] = de_AllowedOrigins((0, import_smithy_client4.getArrayIfSingleItem)(output[_AO]), context); } if (output.ExposeHeader === "") { contents[_EH] = []; } else if (output[_EHx] != null) { - contents[_EH] = de_ExposeHeaders((0, import_smithy_client25.getArrayIfSingleItem)(output[_EHx]), context); + contents[_EH] = de_ExposeHeaders((0, import_smithy_client4.getArrayIfSingleItem)(output[_EHx]), context); } if (output[_MAS] != null) { - contents[_MAS] = (0, import_smithy_client25.strictParseInt32)(output[_MAS]); + contents[_MAS] = (0, import_smithy_client4.strictParseInt32)(output[_MAS]); } return contents; }, "de_CORSRule"); var de_CORSRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_CORSRule(entry, context); }); }, "de_CORSRules"); var de_DefaultRetention = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mo] != null) { - contents[_Mo] = (0, import_smithy_client25.expectString)(output[_Mo]); + contents[_Mo] = (0, import_smithy_client4.expectString)(output[_Mo]); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_Y] != null) { - contents[_Y] = (0, import_smithy_client25.strictParseInt32)(output[_Y]); + contents[_Y] = (0, import_smithy_client4.strictParseInt32)(output[_Y]); } return contents; }, "de_DefaultRetention"); var de_DeletedObject = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_DM] != null) { - contents[_DM] = (0, import_smithy_client25.parseBoolean)(output[_DM]); + contents[_DM] = (0, import_smithy_client4.parseBoolean)(output[_DM]); } if (output[_DMVI] != null) { - contents[_DMVI] = (0, import_smithy_client25.expectString)(output[_DMVI]); + contents[_DMVI] = (0, import_smithy_client4.expectString)(output[_DMVI]); } return contents; }, "de_DeletedObject"); var de_DeletedObjects = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_DeletedObject(entry, context); }); }, "de_DeletedObjects"); @@ -46939,42 +47483,42 @@ var require_dist_cjs69 = __commonJS({ if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_IL] != null) { - contents[_IL] = (0, import_smithy_client25.parseBoolean)(output[_IL]); + contents[_IL] = (0, import_smithy_client4.parseBoolean)(output[_IL]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } return contents; }, "de_DeleteMarkerEntry"); var de_DeleteMarkerReplication = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_DeleteMarkerReplication"); var de_DeleteMarkers = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_DeleteMarkerEntry(entry, context); }); }, "de_DeleteMarkers"); var de_Destination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } if (output[_Ac] != null) { - contents[_Ac] = (0, import_smithy_client25.expectString)(output[_Ac]); + contents[_Ac] = (0, import_smithy_client4.expectString)(output[_Ac]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_ACT] != null) { contents[_ACT] = de_AccessControlTranslation(output[_ACT], context); @@ -46993,7 +47537,7 @@ var require_dist_cjs69 = __commonJS({ var de_EncryptionConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_RKKID] != null) { - contents[_RKKID] = (0, import_smithy_client25.expectString)(output[_RKKID]); + contents[_RKKID] = (0, import_smithy_client4.expectString)(output[_RKKID]); } return contents; }, "de_EncryptionConfiguration"); @@ -47003,39 +47547,39 @@ var require_dist_cjs69 = __commonJS({ }, "de_EndEvent"); var de__Error = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_Cod] != null) { - contents[_Cod] = (0, import_smithy_client25.expectString)(output[_Cod]); + contents[_Cod] = (0, import_smithy_client4.expectString)(output[_Cod]); } if (output[_Mes] != null) { - contents[_Mes] = (0, import_smithy_client25.expectString)(output[_Mes]); + contents[_Mes] = (0, import_smithy_client4.expectString)(output[_Mes]); } return contents; }, "de__Error"); var de_ErrorDetails = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_EC] != null) { - contents[_EC] = (0, import_smithy_client25.expectString)(output[_EC]); + contents[_EC] = (0, import_smithy_client4.expectString)(output[_EC]); } if (output[_EM] != null) { - contents[_EM] = (0, import_smithy_client25.expectString)(output[_EM]); + contents[_EM] = (0, import_smithy_client4.expectString)(output[_EM]); } return contents; }, "de_ErrorDetails"); var de_ErrorDocument = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } return contents; }, "de_ErrorDocument"); var de_Errors = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de__Error(entry, context); }); }, "de_Errors"); @@ -47044,34 +47588,34 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_EventBridgeConfiguration"); var de_EventList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_EventList"); var de_ExistingObjectReplication = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ExistingObjectReplication"); var de_ExposeHeaders = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_ExposeHeaders"); var de_FilterRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_N] != null) { - contents[_N] = (0, import_smithy_client25.expectString)(output[_N]); + contents[_N] = (0, import_smithy_client4.expectString)(output[_N]); } - if (output[_Va2] != null) { - contents[_Va2] = (0, import_smithy_client25.expectString)(output[_Va2]); + if (output[_Va] != null) { + contents[_Va] = (0, import_smithy_client4.expectString)(output[_Va]); } return contents; }, "de_FilterRule"); var de_FilterRuleList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_FilterRule(entry, context); }); }, "de_FilterRuleList"); @@ -47081,7 +47625,7 @@ var require_dist_cjs69 = __commonJS({ contents[_MTCR] = de_MetadataTableConfigurationResult(output[_MTCR], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_Er] != null) { contents[_Er] = de_ErrorDetails(output[_Er], context); @@ -47090,25 +47634,25 @@ var require_dist_cjs69 = __commonJS({ }, "de_GetBucketMetadataTableConfigurationResult"); var de_GetObjectAttributesParts = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_PC2] != null) { - contents[_TPC] = (0, import_smithy_client25.strictParseInt32)(output[_PC2]); + if (output[_PC] != null) { + contents[_TPC] = (0, import_smithy_client4.strictParseInt32)(output[_PC]); } if (output[_PNM] != null) { - contents[_PNM] = (0, import_smithy_client25.expectString)(output[_PNM]); + contents[_PNM] = (0, import_smithy_client4.expectString)(output[_PNM]); } if (output[_NPNM] != null) { - contents[_NPNM] = (0, import_smithy_client25.expectString)(output[_NPNM]); + contents[_NPNM] = (0, import_smithy_client4.expectString)(output[_NPNM]); } if (output[_MP] != null) { - contents[_MP] = (0, import_smithy_client25.strictParseInt32)(output[_MP]); + contents[_MP] = (0, import_smithy_client4.strictParseInt32)(output[_MP]); } if (output[_IT] != null) { - contents[_IT] = (0, import_smithy_client25.parseBoolean)(output[_IT]); + contents[_IT] = (0, import_smithy_client4.parseBoolean)(output[_IT]); } if (output.Part === "") { contents[_Part] = []; } else if (output[_Par] != null) { - contents[_Part] = de_PartsList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Par]), context); + contents[_Part] = de_PartsList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Par]), context); } return contents; }, "de_GetObjectAttributesParts"); @@ -47118,96 +47662,96 @@ var require_dist_cjs69 = __commonJS({ contents[_Gra] = de_Grantee(output[_Gra], context); } if (output[_Pe] != null) { - contents[_Pe] = (0, import_smithy_client25.expectString)(output[_Pe]); + contents[_Pe] = (0, import_smithy_client4.expectString)(output[_Pe]); } return contents; }, "de_Grant"); var de_Grantee = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } if (output[_EA] != null) { - contents[_EA] = (0, import_smithy_client25.expectString)(output[_EA]); + contents[_EA] = (0, import_smithy_client4.expectString)(output[_EA]); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_URI] != null) { - contents[_URI] = (0, import_smithy_client25.expectString)(output[_URI]); + contents[_URI] = (0, import_smithy_client4.expectString)(output[_URI]); } if (output[_x] != null) { - contents[_Ty] = (0, import_smithy_client25.expectString)(output[_x]); + contents[_Ty] = (0, import_smithy_client4.expectString)(output[_x]); } return contents; }, "de_Grantee"); var de_Grants = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Grant(entry, context); }); }, "de_Grants"); var de_IndexDocument = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Su] != null) { - contents[_Su] = (0, import_smithy_client25.expectString)(output[_Su]); + contents[_Su] = (0, import_smithy_client4.expectString)(output[_Su]); } return contents; }, "de_IndexDocument"); var de_Initiator = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } return contents; }, "de_Initiator"); var de_IntelligentTieringAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_IntelligentTieringAndOperator"); var de_IntelligentTieringConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_F] != null) { contents[_F] = de_IntelligentTieringFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output.Tiering === "") { contents[_Tie] = []; } else if (output[_Tier] != null) { - contents[_Tie] = de_TieringList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Tier]), context); + contents[_Tie] = de_TieringList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Tier]), context); } return contents; }, "de_IntelligentTieringConfiguration"); var de_IntelligentTieringConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_IntelligentTieringConfiguration(entry, context); }); }, "de_IntelligentTieringConfigurationList"); var de_IntelligentTieringFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } - if (output[_A2] != null) { - contents[_A2] = de_IntelligentTieringAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_IntelligentTieringAndOperator(output[_A], context); } return contents; }, "de_IntelligentTieringFilter"); @@ -47217,21 +47761,21 @@ var require_dist_cjs69 = __commonJS({ contents[_Des] = de_InventoryDestination(output[_Des], context); } if (output[_IE] != null) { - contents[_IE] = (0, import_smithy_client25.parseBoolean)(output[_IE]); + contents[_IE] = (0, import_smithy_client4.parseBoolean)(output[_IE]); } if (output[_F] != null) { contents[_F] = de_InventoryFilter(output[_F], context); } if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_IOV] != null) { - contents[_IOV] = (0, import_smithy_client25.expectString)(output[_IOV]); + contents[_IOV] = (0, import_smithy_client4.expectString)(output[_IOV]); } if (output.OptionalFields === "") { contents[_OF] = []; } else if (output[_OF] != null && output[_OF][_Fi] != null) { - contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client25.getArrayIfSingleItem)(output[_OF][_Fi]), context); + contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client4.getArrayIfSingleItem)(output[_OF][_Fi]), context); } if (output[_Sc] != null) { contents[_Sc] = de_InventorySchedule(output[_Sc], context); @@ -47239,7 +47783,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_InventoryConfiguration"); var de_InventoryConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_InventoryConfiguration(entry, context); }); }, "de_InventoryConfigurationList"); @@ -47262,29 +47806,29 @@ var require_dist_cjs69 = __commonJS({ }, "de_InventoryEncryption"); var de_InventoryFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } return contents; }, "de_InventoryFilter"); var de_InventoryOptionalFields = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { - return (0, import_smithy_client25.expectString)(entry); + return (output || []).filter((e) => e != null).map((entry) => { + return (0, import_smithy_client4.expectString)(entry); }); }, "de_InventoryOptionalFields"); var de_InventoryS3BucketDestination = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_AIc] != null) { - contents[_AIc] = (0, import_smithy_client25.expectString)(output[_AIc]); + contents[_AIc] = (0, import_smithy_client4.expectString)(output[_AIc]); } if (output[_B] != null) { - contents[_B] = (0, import_smithy_client25.expectString)(output[_B]); + contents[_B] = (0, import_smithy_client4.expectString)(output[_B]); } if (output[_Fo] != null) { - contents[_Fo] = (0, import_smithy_client25.expectString)(output[_Fo]); + contents[_Fo] = (0, import_smithy_client4.expectString)(output[_Fo]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_En] != null) { contents[_En] = de_InventoryEncryption(output[_En], context); @@ -47294,22 +47838,22 @@ var require_dist_cjs69 = __commonJS({ var de_InventorySchedule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Fr] != null) { - contents[_Fr] = (0, import_smithy_client25.expectString)(output[_Fr]); + contents[_Fr] = (0, import_smithy_client4.expectString)(output[_Fr]); } return contents; }, "de_InventorySchedule"); var de_LambdaFunctionConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_CF] != null) { - contents[_LFA] = (0, import_smithy_client25.expectString)(output[_CF]); + contents[_LFA] = (0, import_smithy_client4.expectString)(output[_CF]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -47317,20 +47861,20 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_LambdaFunctionConfiguration"); var de_LambdaFunctionConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_LambdaFunctionConfiguration(entry, context); }); }, "de_LambdaFunctionConfigurationList"); var de_LifecycleExpiration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Dat] != null) { - contents[_Dat] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Dat])); + contents[_Dat] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Dat])); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_EODM] != null) { - contents[_EODM] = (0, import_smithy_client25.parseBoolean)(output[_EODM]); + contents[_EODM] = (0, import_smithy_client4.parseBoolean)(output[_EODM]); } return contents; }, "de_LifecycleExpiration"); @@ -47340,26 +47884,26 @@ var require_dist_cjs69 = __commonJS({ contents[_Exp] = de_LifecycleExpiration(output[_Exp], context); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_F] != null) { contents[_F] = de_LifecycleRuleFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output.Transition === "") { contents[_Tr] = []; } else if (output[_Tra] != null) { - contents[_Tr] = de_TransitionList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Tra]), context); + contents[_Tr] = de_TransitionList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Tra]), context); } if (output.NoncurrentVersionTransition === "") { contents[_NVT] = []; } else if (output[_NVTo] != null) { - contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client25.getArrayIfSingleItem)(output[_NVTo]), context); + contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client4.getArrayIfSingleItem)(output[_NVTo]), context); } if (output[_NVE] != null) { contents[_NVE] = de_NoncurrentVersionExpiration(output[_NVE], context); @@ -47371,58 +47915,58 @@ var require_dist_cjs69 = __commonJS({ }, "de_LifecycleRule"); var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } if (output[_OSGT] != null) { - contents[_OSGT] = (0, import_smithy_client25.strictParseLong)(output[_OSGT]); + contents[_OSGT] = (0, import_smithy_client4.strictParseLong)(output[_OSGT]); } if (output[_OSLT] != null) { - contents[_OSLT] = (0, import_smithy_client25.strictParseLong)(output[_OSLT]); + contents[_OSLT] = (0, import_smithy_client4.strictParseLong)(output[_OSLT]); } return contents; }, "de_LifecycleRuleAndOperator"); var de_LifecycleRuleFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } if (output[_OSGT] != null) { - contents[_OSGT] = (0, import_smithy_client25.strictParseLong)(output[_OSGT]); + contents[_OSGT] = (0, import_smithy_client4.strictParseLong)(output[_OSGT]); } if (output[_OSLT] != null) { - contents[_OSLT] = (0, import_smithy_client25.strictParseLong)(output[_OSLT]); + contents[_OSLT] = (0, import_smithy_client4.strictParseLong)(output[_OSLT]); } - if (output[_A2] != null) { - contents[_A2] = de_LifecycleRuleAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_LifecycleRuleAndOperator(output[_A], context); } return contents; }, "de_LifecycleRuleFilter"); var de_LifecycleRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_LifecycleRule(entry, context); }); }, "de_LifecycleRules"); var de_LoggingEnabled = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_TB] != null) { - contents[_TB] = (0, import_smithy_client25.expectString)(output[_TB]); + contents[_TB] = (0, import_smithy_client4.expectString)(output[_TB]); } if (output.TargetGrants === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_G] != null) { - contents[_TG] = de_TargetGrants((0, import_smithy_client25.getArrayIfSingleItem)(output[_TG][_G]), context); + contents[_TG] = de_TargetGrants((0, import_smithy_client4.getArrayIfSingleItem)(output[_TG][_G]), context); } if (output[_TP] != null) { - contents[_TP] = (0, import_smithy_client25.expectString)(output[_TP]); + contents[_TP] = (0, import_smithy_client4.expectString)(output[_TP]); } if (output[_TOKF] != null) { contents[_TOKF] = de_TargetObjectKeyFormat(output[_TOKF], context); @@ -47439,7 +47983,7 @@ var require_dist_cjs69 = __commonJS({ var de_Metrics = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_ETv] != null) { contents[_ETv] = de_ReplicationTimeValue(output[_ETv], context); @@ -47448,39 +47992,39 @@ var require_dist_cjs69 = __commonJS({ }, "de_Metrics"); var de_MetricsAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } if (output[_APAc] != null) { - contents[_APAc] = (0, import_smithy_client25.expectString)(output[_APAc]); + contents[_APAc] = (0, import_smithy_client4.expectString)(output[_APAc]); } return contents; }, "de_MetricsAndOperator"); var de_MetricsConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output.Filter === "") { } else if (output[_F] != null) { - contents[_F] = de_MetricsFilter((0, import_smithy_client25.expectUnion)(output[_F]), context); + contents[_F] = de_MetricsFilter((0, import_smithy_client4.expectUnion)(output[_F]), context); } return contents; }, "de_MetricsConfiguration"); var de_MetricsConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_MetricsConfiguration(entry, context); }); }, "de_MetricsConfigurationList"); var de_MetricsFilter = /* @__PURE__ */ __name((output, context) => { - if (output[_P2] != null) { + if (output[_P] != null) { return { - Prefix: (0, import_smithy_client25.expectString)(output[_P2]) + Prefix: (0, import_smithy_client4.expectString)(output[_P]) }; } if (output[_Ta] != null) { @@ -47490,12 +48034,12 @@ var require_dist_cjs69 = __commonJS({ } if (output[_APAc] != null) { return { - AccessPointArn: (0, import_smithy_client25.expectString)(output[_APAc]) + AccessPointArn: (0, import_smithy_client4.expectString)(output[_APAc]) }; } - if (output[_A2] != null) { + if (output[_A] != null) { return { - And: de_MetricsAndOperator(output[_A2], context) + And: de_MetricsAndOperator(output[_A], context) }; } return { $unknown: Object.entries(output)[0] }; @@ -47503,16 +48047,16 @@ var require_dist_cjs69 = __commonJS({ var de_MultipartUpload = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_UI] != null) { - contents[_UI] = (0, import_smithy_client25.expectString)(output[_UI]); + contents[_UI] = (0, import_smithy_client4.expectString)(output[_UI]); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_Ini] != null) { - contents[_Ini] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Ini])); + contents[_Ini] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Ini])); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47520,78 +48064,72 @@ var require_dist_cjs69 = __commonJS({ if (output[_In] != null) { contents[_In] = de_Initiator(output[_In], context); } - if (output[_CA2] != null) { - contents[_CA2] = (0, import_smithy_client25.expectString)(output[_CA2]); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + if (output[_CA] != null) { + contents[_CA] = (0, import_smithy_client4.expectString)(output[_CA]); } return contents; }, "de_MultipartUpload"); var de_MultipartUploadList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_MultipartUpload(entry, context); }); }, "de_MultipartUploadList"); var de_NoncurrentVersionExpiration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ND] != null) { - contents[_ND] = (0, import_smithy_client25.strictParseInt32)(output[_ND]); + contents[_ND] = (0, import_smithy_client4.strictParseInt32)(output[_ND]); } if (output[_NNV] != null) { - contents[_NNV] = (0, import_smithy_client25.strictParseInt32)(output[_NNV]); + contents[_NNV] = (0, import_smithy_client4.strictParseInt32)(output[_NNV]); } return contents; }, "de_NoncurrentVersionExpiration"); var de_NoncurrentVersionTransition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ND] != null) { - contents[_ND] = (0, import_smithy_client25.strictParseInt32)(output[_ND]); + contents[_ND] = (0, import_smithy_client4.strictParseInt32)(output[_ND]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_NNV] != null) { - contents[_NNV] = (0, import_smithy_client25.strictParseInt32)(output[_NNV]); + contents[_NNV] = (0, import_smithy_client4.strictParseInt32)(output[_NNV]); } return contents; }, "de_NoncurrentVersionTransition"); var de_NoncurrentVersionTransitionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_NoncurrentVersionTransition(entry, context); }); }, "de_NoncurrentVersionTransitionList"); var de_NotificationConfigurationFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_SKe] != null) { - contents[_K2] = de_S3KeyFilter(output[_SKe], context); + contents[_K] = de_S3KeyFilter(output[_SKe], context); } return contents; }, "de_NotificationConfigurationFilter"); var de__Object = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents[_CA2] = []; - } else if (output[_CA2] != null) { - contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client25.getArrayIfSingleItem)(output[_CA2]), context); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client4.getArrayIfSingleItem)(output[_CA]), context); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47602,14 +48140,14 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de__Object"); var de_ObjectList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de__Object(entry, context); }); }, "de_ObjectList"); var de_ObjectLockConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OLE] != null) { - contents[_OLE] = (0, import_smithy_client25.expectString)(output[_OLE]); + contents[_OLE] = (0, import_smithy_client4.expectString)(output[_OLE]); } if (output[_Ru] != null) { contents[_Ru] = de_ObjectLockRule(output[_Ru], context); @@ -47619,17 +48157,17 @@ var require_dist_cjs69 = __commonJS({ var de_ObjectLockLegalHold = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ObjectLockLegalHold"); var de_ObjectLockRetention = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mo] != null) { - contents[_Mo] = (0, import_smithy_client25.expectString)(output[_Mo]); + contents[_Mo] = (0, import_smithy_client4.expectString)(output[_Mo]); } if (output[_RUD] != null) { - contents[_RUD] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_RUD])); + contents[_RUD] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_RUD])); } return contents; }, "de_ObjectLockRetention"); @@ -47643,58 +48181,52 @@ var require_dist_cjs69 = __commonJS({ var de_ObjectPart = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PN] != null) { - contents[_PN] = (0, import_smithy_client25.strictParseInt32)(output[_PN]); + contents[_PN] = (0, import_smithy_client4.strictParseInt32)(output[_PN]); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_ObjectPart"); var de_ObjectVersion = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output.ChecksumAlgorithm === "") { - contents[_CA2] = []; - } else if (output[_CA2] != null) { - contents[_CA2] = de_ChecksumAlgorithmList((0, import_smithy_client25.getArrayIfSingleItem)(output[_CA2]), context); - } - if (output[_CT] != null) { - contents[_CT] = (0, import_smithy_client25.expectString)(output[_CT]); + contents[_CA] = []; + } else if (output[_CA] != null) { + contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client4.getArrayIfSingleItem)(output[_CA]), context); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } if (output[_VI] != null) { - contents[_VI] = (0, import_smithy_client25.expectString)(output[_VI]); + contents[_VI] = (0, import_smithy_client4.expectString)(output[_VI]); } if (output[_IL] != null) { - contents[_IL] = (0, import_smithy_client25.parseBoolean)(output[_IL]); + contents[_IL] = (0, import_smithy_client4.parseBoolean)(output[_IL]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_O] != null) { contents[_O] = de_Owner(output[_O], context); @@ -47705,17 +48237,17 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_ObjectVersion"); var de_ObjectVersionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ObjectVersion(entry, context); }); }, "de_ObjectVersionList"); var de_Owner = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_DN] != null) { - contents[_DN] = (0, import_smithy_client25.expectString)(output[_DN]); + contents[_DN] = (0, import_smithy_client4.expectString)(output[_DN]); } if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } return contents; }, "de_Owner"); @@ -47724,118 +48256,115 @@ var require_dist_cjs69 = __commonJS({ if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_OwnershipControls"); var de_OwnershipControlsRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OO] != null) { - contents[_OO] = (0, import_smithy_client25.expectString)(output[_OO]); + contents[_OO] = (0, import_smithy_client4.expectString)(output[_OO]); } return contents; }, "de_OwnershipControlsRule"); var de_OwnershipControlsRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_OwnershipControlsRule(entry, context); }); }, "de_OwnershipControlsRules"); var de_Part = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PN] != null) { - contents[_PN] = (0, import_smithy_client25.strictParseInt32)(output[_PN]); + contents[_PN] = (0, import_smithy_client4.strictParseInt32)(output[_PN]); } if (output[_LM] != null) { - contents[_LM] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_LM])); + contents[_LM] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_LM])); } if (output[_ETa] != null) { - contents[_ETa] = (0, import_smithy_client25.expectString)(output[_ETa]); + contents[_ETa] = (0, import_smithy_client4.expectString)(output[_ETa]); } if (output[_Si] != null) { - contents[_Si] = (0, import_smithy_client25.strictParseLong)(output[_Si]); + contents[_Si] = (0, import_smithy_client4.strictParseLong)(output[_Si]); } if (output[_CCRC] != null) { - contents[_CCRC] = (0, import_smithy_client25.expectString)(output[_CCRC]); + contents[_CCRC] = (0, import_smithy_client4.expectString)(output[_CCRC]); } if (output[_CCRCC] != null) { - contents[_CCRCC] = (0, import_smithy_client25.expectString)(output[_CCRCC]); - } - if (output[_CCRCNVME] != null) { - contents[_CCRCNVME] = (0, import_smithy_client25.expectString)(output[_CCRCNVME]); + contents[_CCRCC] = (0, import_smithy_client4.expectString)(output[_CCRCC]); } if (output[_CSHA] != null) { - contents[_CSHA] = (0, import_smithy_client25.expectString)(output[_CSHA]); + contents[_CSHA] = (0, import_smithy_client4.expectString)(output[_CSHA]); } if (output[_CSHAh] != null) { - contents[_CSHAh] = (0, import_smithy_client25.expectString)(output[_CSHAh]); + contents[_CSHAh] = (0, import_smithy_client4.expectString)(output[_CSHAh]); } return contents; }, "de_Part"); var de_PartitionedPrefix = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_PDS] != null) { - contents[_PDS] = (0, import_smithy_client25.expectString)(output[_PDS]); + contents[_PDS] = (0, import_smithy_client4.expectString)(output[_PDS]); } return contents; }, "de_PartitionedPrefix"); var de_Parts = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Part(entry, context); }); }, "de_Parts"); var de_PartsList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ObjectPart(entry, context); }); }, "de_PartsList"); var de_PolicyStatus = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_IP] != null) { - contents[_IP] = (0, import_smithy_client25.parseBoolean)(output[_IP]); + contents[_IP] = (0, import_smithy_client4.parseBoolean)(output[_IP]); } return contents; }, "de_PolicyStatus"); var de_Progress = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BS] != null) { - contents[_BS] = (0, import_smithy_client25.strictParseLong)(output[_BS]); + contents[_BS] = (0, import_smithy_client4.strictParseLong)(output[_BS]); } if (output[_BP] != null) { - contents[_BP] = (0, import_smithy_client25.strictParseLong)(output[_BP]); + contents[_BP] = (0, import_smithy_client4.strictParseLong)(output[_BP]); } if (output[_BRy] != null) { - contents[_BRy] = (0, import_smithy_client25.strictParseLong)(output[_BRy]); + contents[_BRy] = (0, import_smithy_client4.strictParseLong)(output[_BRy]); } return contents; }, "de_Progress"); var de_PublicAccessBlockConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BPA] != null) { - contents[_BPA] = (0, import_smithy_client25.parseBoolean)(output[_BPA]); + contents[_BPA] = (0, import_smithy_client4.parseBoolean)(output[_BPA]); } if (output[_IPA] != null) { - contents[_IPA] = (0, import_smithy_client25.parseBoolean)(output[_IPA]); + contents[_IPA] = (0, import_smithy_client4.parseBoolean)(output[_IPA]); } if (output[_BPP] != null) { - contents[_BPP] = (0, import_smithy_client25.parseBoolean)(output[_BPP]); + contents[_BPP] = (0, import_smithy_client4.parseBoolean)(output[_BPP]); } if (output[_RPB] != null) { - contents[_RPB] = (0, import_smithy_client25.parseBoolean)(output[_RPB]); + contents[_RPB] = (0, import_smithy_client4.parseBoolean)(output[_RPB]); } return contents; }, "de_PublicAccessBlockConfiguration"); var de_QueueConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_Qu] != null) { - contents[_QA] = (0, import_smithy_client25.expectString)(output[_Qu]); + contents[_QA] = (0, import_smithy_client4.expectString)(output[_Qu]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -47843,74 +48372,74 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_QueueConfiguration"); var de_QueueConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_QueueConfiguration(entry, context); }); }, "de_QueueConfigurationList"); var de_Redirect = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HN] != null) { - contents[_HN] = (0, import_smithy_client25.expectString)(output[_HN]); + contents[_HN] = (0, import_smithy_client4.expectString)(output[_HN]); } if (output[_HRC] != null) { - contents[_HRC] = (0, import_smithy_client25.expectString)(output[_HRC]); + contents[_HRC] = (0, import_smithy_client4.expectString)(output[_HRC]); } - if (output[_Pr2] != null) { - contents[_Pr2] = (0, import_smithy_client25.expectString)(output[_Pr2]); + if (output[_Pr] != null) { + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } if (output[_RKPW] != null) { - contents[_RKPW] = (0, import_smithy_client25.expectString)(output[_RKPW]); + contents[_RKPW] = (0, import_smithy_client4.expectString)(output[_RKPW]); } if (output[_RKW] != null) { - contents[_RKW] = (0, import_smithy_client25.expectString)(output[_RKW]); + contents[_RKW] = (0, import_smithy_client4.expectString)(output[_RKW]); } return contents; }, "de_Redirect"); var de_RedirectAllRequestsTo = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_HN] != null) { - contents[_HN] = (0, import_smithy_client25.expectString)(output[_HN]); + contents[_HN] = (0, import_smithy_client4.expectString)(output[_HN]); } - if (output[_Pr2] != null) { - contents[_Pr2] = (0, import_smithy_client25.expectString)(output[_Pr2]); + if (output[_Pr] != null) { + contents[_Pr] = (0, import_smithy_client4.expectString)(output[_Pr]); } return contents; }, "de_RedirectAllRequestsTo"); var de_ReplicaModifications = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_ReplicaModifications"); var de_ReplicationConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Ro] != null) { - contents[_Ro] = (0, import_smithy_client25.expectString)(output[_Ro]); + contents[_Ro] = (0, import_smithy_client4.expectString)(output[_Ro]); } if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_ReplicationRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_ReplicationRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_ReplicationConfiguration"); var de_ReplicationRule = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_ID_] != null) { - contents[_ID_] = (0, import_smithy_client25.expectString)(output[_ID_]); + contents[_ID_] = (0, import_smithy_client4.expectString)(output[_ID_]); } if (output[_Pri] != null) { - contents[_Pri] = (0, import_smithy_client25.strictParseInt32)(output[_Pri]); + contents[_Pri] = (0, import_smithy_client4.strictParseInt32)(output[_Pri]); } - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_F] != null) { contents[_F] = de_ReplicationRuleFilter(output[_F], context); } if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_SSC] != null) { contents[_SSC] = de_SourceSelectionCriteria(output[_SSC], context); @@ -47928,38 +48457,38 @@ var require_dist_cjs69 = __commonJS({ }, "de_ReplicationRule"); var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output.Tag === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { - contents[_Tag] = de_TagSet((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ta]), context); + contents[_Tag] = de_TagSet((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ta]), context); } return contents; }, "de_ReplicationRuleAndOperator"); var de_ReplicationRuleFilter = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_P2] != null) { - contents[_P2] = (0, import_smithy_client25.expectString)(output[_P2]); + if (output[_P] != null) { + contents[_P] = (0, import_smithy_client4.expectString)(output[_P]); } if (output[_Ta] != null) { contents[_Ta] = de_Tag(output[_Ta], context); } - if (output[_A2] != null) { - contents[_A2] = de_ReplicationRuleAndOperator(output[_A2], context); + if (output[_A] != null) { + contents[_A] = de_ReplicationRuleAndOperator(output[_A], context); } return contents; }, "de_ReplicationRuleFilter"); var de_ReplicationRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ReplicationRule(entry, context); }); }, "de_ReplicationRules"); var de_ReplicationTime = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } if (output[_Tim] != null) { contents[_Tim] = de_ReplicationTimeValue(output[_Tim], context); @@ -47969,17 +48498,17 @@ var require_dist_cjs69 = __commonJS({ var de_ReplicationTimeValue = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Mi] != null) { - contents[_Mi] = (0, import_smithy_client25.strictParseInt32)(output[_Mi]); + contents[_Mi] = (0, import_smithy_client4.strictParseInt32)(output[_Mi]); } return contents; }, "de_ReplicationTimeValue"); var de_RestoreStatus = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_IRIP] != null) { - contents[_IRIP] = (0, import_smithy_client25.parseBoolean)(output[_IRIP]); + contents[_IRIP] = (0, import_smithy_client4.parseBoolean)(output[_IRIP]); } if (output[_RED] != null) { - contents[_RED] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_RED])); + contents[_RED] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_RED])); } return contents; }, "de_RestoreStatus"); @@ -47994,7 +48523,7 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_RoutingRule"); var de_RoutingRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_RoutingRule(entry, context); }); }, "de_RoutingRules"); @@ -48003,33 +48532,33 @@ var require_dist_cjs69 = __commonJS({ if (output.FilterRule === "") { contents[_FRi] = []; } else if (output[_FR] != null) { - contents[_FRi] = de_FilterRuleList((0, import_smithy_client25.getArrayIfSingleItem)(output[_FR]), context); + contents[_FRi] = de_FilterRuleList((0, import_smithy_client4.getArrayIfSingleItem)(output[_FR]), context); } return contents; }, "de_S3KeyFilter"); var de_S3TablesDestinationResult = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_TBA] != null) { - contents[_TBA] = (0, import_smithy_client25.expectString)(output[_TBA]); + contents[_TBA] = (0, import_smithy_client4.expectString)(output[_TBA]); } if (output[_TN] != null) { - contents[_TN] = (0, import_smithy_client25.expectString)(output[_TN]); + contents[_TN] = (0, import_smithy_client4.expectString)(output[_TN]); } if (output[_TAa] != null) { - contents[_TAa] = (0, import_smithy_client25.expectString)(output[_TAa]); + contents[_TAa] = (0, import_smithy_client4.expectString)(output[_TAa]); } if (output[_TNa] != null) { - contents[_TNa] = (0, import_smithy_client25.expectString)(output[_TNa]); + contents[_TNa] = (0, import_smithy_client4.expectString)(output[_TNa]); } return contents; }, "de_S3TablesDestinationResult"); var de_ServerSideEncryptionByDefault = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_SSEA] != null) { - contents[_SSEA] = (0, import_smithy_client25.expectString)(output[_SSEA]); + contents[_SSEA] = (0, import_smithy_client4.expectString)(output[_SSEA]); } if (output[_KMSMKID] != null) { - contents[_KMSMKID] = (0, import_smithy_client25.expectString)(output[_KMSMKID]); + contents[_KMSMKID] = (0, import_smithy_client4.expectString)(output[_KMSMKID]); } return contents; }, "de_ServerSideEncryptionByDefault"); @@ -48038,7 +48567,7 @@ var require_dist_cjs69 = __commonJS({ if (output.Rule === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { - contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ru]), context); + contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ru]), context); } return contents; }, "de_ServerSideEncryptionConfiguration"); @@ -48048,28 +48577,28 @@ var require_dist_cjs69 = __commonJS({ contents[_ASSEBD] = de_ServerSideEncryptionByDefault(output[_ASSEBD], context); } if (output[_BKE] != null) { - contents[_BKE] = (0, import_smithy_client25.parseBoolean)(output[_BKE]); + contents[_BKE] = (0, import_smithy_client4.parseBoolean)(output[_BKE]); } return contents; }, "de_ServerSideEncryptionRule"); var de_ServerSideEncryptionRules = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_ServerSideEncryptionRule(entry, context); }); }, "de_ServerSideEncryptionRules"); var de_SessionCredentials = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_AKI2] != null) { - contents[_AKI2] = (0, import_smithy_client25.expectString)(output[_AKI2]); + if (output[_AKI] != null) { + contents[_AKI] = (0, import_smithy_client4.expectString)(output[_AKI]); } - if (output[_SAK2] != null) { - contents[_SAK2] = (0, import_smithy_client25.expectString)(output[_SAK2]); + if (output[_SAK] != null) { + contents[_SAK] = (0, import_smithy_client4.expectString)(output[_SAK]); } - if (output[_ST2] != null) { - contents[_ST2] = (0, import_smithy_client25.expectString)(output[_ST2]); + if (output[_ST] != null) { + contents[_ST] = (0, import_smithy_client4.expectString)(output[_ST]); } if (output[_Exp] != null) { - contents[_Exp] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Exp])); + contents[_Exp] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Exp])); } return contents; }, "de_SessionCredentials"); @@ -48090,14 +48619,14 @@ var require_dist_cjs69 = __commonJS({ var de_SSEKMS = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_KI] != null) { - contents[_KI] = (0, import_smithy_client25.expectString)(output[_KI]); + contents[_KI] = (0, import_smithy_client4.expectString)(output[_KI]); } return contents; }, "de_SSEKMS"); var de_SseKmsEncryptedObjects = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_S] != null) { - contents[_S] = (0, import_smithy_client25.expectString)(output[_S]); + contents[_S] = (0, import_smithy_client4.expectString)(output[_S]); } return contents; }, "de_SseKmsEncryptedObjects"); @@ -48108,13 +48637,13 @@ var require_dist_cjs69 = __commonJS({ var de_Stats = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_BS] != null) { - contents[_BS] = (0, import_smithy_client25.strictParseLong)(output[_BS]); + contents[_BS] = (0, import_smithy_client4.strictParseLong)(output[_BS]); } if (output[_BP] != null) { - contents[_BP] = (0, import_smithy_client25.strictParseLong)(output[_BP]); + contents[_BP] = (0, import_smithy_client4.strictParseLong)(output[_BP]); } if (output[_BRy] != null) { - contents[_BRy] = (0, import_smithy_client25.strictParseLong)(output[_BRy]); + contents[_BRy] = (0, import_smithy_client4.strictParseLong)(output[_BRy]); } return contents; }, "de_Stats"); @@ -48128,7 +48657,7 @@ var require_dist_cjs69 = __commonJS({ var de_StorageClassAnalysisDataExport = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_OSV] != null) { - contents[_OSV] = (0, import_smithy_client25.expectString)(output[_OSV]); + contents[_OSV] = (0, import_smithy_client4.expectString)(output[_OSV]); } if (output[_Des] != null) { contents[_Des] = de_AnalyticsExportDestination(output[_Des], context); @@ -48137,16 +48666,16 @@ var require_dist_cjs69 = __commonJS({ }, "de_StorageClassAnalysisDataExport"); var de_Tag = /* @__PURE__ */ __name((output, context) => { const contents = {}; - if (output[_K2] != null) { - contents[_K2] = (0, import_smithy_client25.expectString)(output[_K2]); + if (output[_K] != null) { + contents[_K] = (0, import_smithy_client4.expectString)(output[_K]); } - if (output[_Va2] != null) { - contents[_Va2] = (0, import_smithy_client25.expectString)(output[_Va2]); + if (output[_Va] != null) { + contents[_Va] = (0, import_smithy_client4.expectString)(output[_Va]); } return contents; }, "de_Tag"); var de_TagSet = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Tag(entry, context); }); }, "de_TagSet"); @@ -48156,12 +48685,12 @@ var require_dist_cjs69 = __commonJS({ contents[_Gra] = de_Grantee(output[_Gra], context); } if (output[_Pe] != null) { - contents[_Pe] = (0, import_smithy_client25.expectString)(output[_Pe]); + contents[_Pe] = (0, import_smithy_client4.expectString)(output[_Pe]); } return contents; }, "de_TargetGrant"); var de_TargetGrants = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_TargetGrant(entry, context); }); }, "de_TargetGrants"); @@ -48178,30 +48707,30 @@ var require_dist_cjs69 = __commonJS({ var de_Tiering = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_AT] != null) { - contents[_AT] = (0, import_smithy_client25.expectString)(output[_AT]); + contents[_AT] = (0, import_smithy_client4.expectString)(output[_AT]); } return contents; }, "de_Tiering"); var de_TieringList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Tiering(entry, context); }); }, "de_TieringList"); var de_TopicConfiguration = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_I] != null) { - contents[_I] = (0, import_smithy_client25.expectString)(output[_I]); + contents[_I] = (0, import_smithy_client4.expectString)(output[_I]); } if (output[_Top] != null) { - contents[_TA] = (0, import_smithy_client25.expectString)(output[_Top]); + contents[_TA] = (0, import_smithy_client4.expectString)(output[_Top]); } if (output.Event === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { - contents[_Eve] = de_EventList((0, import_smithy_client25.getArrayIfSingleItem)(output[_Ev]), context); + contents[_Eve] = de_EventList((0, import_smithy_client4.getArrayIfSingleItem)(output[_Ev]), context); } if (output[_F] != null) { contents[_F] = de_NotificationConfigurationFilter(output[_F], context); @@ -48209,36 +48738,36 @@ var require_dist_cjs69 = __commonJS({ return contents; }, "de_TopicConfiguration"); var de_TopicConfigurationList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_TopicConfiguration(entry, context); }); }, "de_TopicConfigurationList"); var de_Transition = /* @__PURE__ */ __name((output, context) => { const contents = {}; if (output[_Dat] != null) { - contents[_Dat] = (0, import_smithy_client25.expectNonNull)((0, import_smithy_client25.parseRfc3339DateTimeWithOffset)(output[_Dat])); + contents[_Dat] = (0, import_smithy_client4.expectNonNull)((0, import_smithy_client4.parseRfc3339DateTimeWithOffset)(output[_Dat])); } if (output[_Da] != null) { - contents[_Da] = (0, import_smithy_client25.strictParseInt32)(output[_Da]); + contents[_Da] = (0, import_smithy_client4.strictParseInt32)(output[_Da]); } if (output[_SC] != null) { - contents[_SC] = (0, import_smithy_client25.expectString)(output[_SC]); + contents[_SC] = (0, import_smithy_client4.expectString)(output[_SC]); } return contents; }, "de_Transition"); var de_TransitionList = /* @__PURE__ */ __name((output, context) => { - return (output || []).filter((e3) => e3 != null).map((entry) => { + return (output || []).filter((e) => e != null).map((entry) => { return de_Transition(entry, context); }); }, "de_TransitionList"); - var deserializeMetadata3 = /* @__PURE__ */ __name((output) => ({ + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }), "deserializeMetadata"); - var collectBodyString2 = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client25.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); - var _A2 = "And"; + var collectBodyString2 = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client4.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString"); + var _A = "And"; var _AAO = "AnalyticsAndOperator"; var _AC = "AnalyticsConfiguration"; var _ACL = "ACL"; @@ -48255,7 +48784,7 @@ var require_dist_cjs69 = __commonJS({ var _AI = "AnalyticsId"; var _AIMU = "AbortIncompleteMultipartUpload"; var _AIc = "AccountId"; - var _AKI2 = "AccessKeyId"; + var _AKI = "AccessKeyId"; var _AM = "AllowedMethod"; var _AMl = "AllowedMethods"; var _AO = "AllowedOrigin"; @@ -48263,8 +48792,8 @@ var require_dist_cjs69 = __commonJS({ var _APA = "AccessPointAlias"; var _APAc = "AccessPointArn"; var _AQRD = "AllowQuotedRecordDelimiter"; - var _AR2 = "AcceptRanges"; - var _ARI2 = "AbortRuleId"; + var _AR = "AcceptRanges"; + var _ARI = "AbortRuleId"; var _AS = "ArchiveStatus"; var _ASBD = "AnalyticsS3BucketDestination"; var _ASEFF = "AnalyticsS3ExportFileFormat"; @@ -48293,14 +48822,13 @@ var require_dist_cjs69 = __commonJS({ var _BT = "BucketType"; var _BVS = "BucketVersioningStatus"; var _Bu = "Buckets"; - var _C2 = "Credentials"; - var _CA2 = "ChecksumAlgorithm"; + var _C = "Credentials"; + var _CA = "ChecksumAlgorithm"; var _CACL = "CannedACL"; var _CBC = "CreateBucketConfiguration"; var _CC = "CacheControl"; var _CCRC = "ChecksumCRC32"; var _CCRCC = "ChecksumCRC32C"; - var _CCRCNVME = "ChecksumCRC64NVME"; var _CD = "ContentDisposition"; var _CDr = "CreationDate"; var _CE = "ContentEncoding"; @@ -48333,10 +48861,9 @@ var require_dist_cjs69 = __commonJS({ var _CSVI = "CopySourceVersionId"; var _CSVIn = "CSVInput"; var _CSVO = "CSVOutput"; - var _CT = "ChecksumType"; - var _CTo = "ContentType"; + var _CT = "ContentType"; + var _CTo = "ContinuationToken"; var _CTom = "CompressionType"; - var _CTon = "ContinuationToken"; var _Ch = "Checksum"; var _Co = "Contents"; var _Cod = "Code"; @@ -48359,7 +48886,7 @@ var require_dist_cjs69 = __commonJS({ var _Del = "Delete"; var _Des = "Destination"; var _Desc = "Description"; - var _E2 = "Expires"; + var _E = "Expires"; var _EA = "EmailAddress"; var _EBC = "EventBridgeConfiguration"; var _EBO = "ExpectedBucketOwner"; @@ -48457,7 +48984,7 @@ var require_dist_cjs69 = __commonJS({ var _JSONI = "JSONInput"; var _JSONO = "JSONOutput"; var _JSONT = "JSONType"; - var _K2 = "Key"; + var _K = "Key"; var _KC = "KeyCount"; var _KI = "KeyId"; var _KM = "KeyMarker"; @@ -48498,7 +49025,6 @@ var require_dist_cjs69 = __commonJS({ var _MK = "MaxKeys"; var _MKe = "MetadataKey"; var _MM = "MissingMeta"; - var _MOS = "MpuObjectSize"; var _MP = "MaxParts"; var _MS = "MetricsStatus"; var _MTC = "MetadataTableConfiguration"; @@ -48556,11 +49082,11 @@ var require_dist_cjs69 = __commonJS({ var _OSb = "ObjectSize"; var _OVI = "ObjectVersionId"; var _Ob = "Objects"; - var _P2 = "Prefix"; + var _P = "Prefix"; var _PABC = "PublicAccessBlockConfiguration"; - var _PC2 = "PartsCount"; + var _PC = "PartsCount"; var _PDS = "PartitionDateSource"; - var _PI2 = "ParquetInput"; + var _PI = "ParquetInput"; var _PN = "PartNumber"; var _PNM = "PartNumberMarker"; var _PP = "PartitionedPrefix"; @@ -48569,7 +49095,7 @@ var require_dist_cjs69 = __commonJS({ var _Parq = "Parquet"; var _Part = "Parts"; var _Pe = "Permission"; - var _Pr2 = "Protocol"; + var _Pr = "Protocol"; var _Pri = "Priority"; var _Q = "Quiet"; var _QA = "QueueArn"; @@ -48624,7 +49150,7 @@ var require_dist_cjs69 = __commonJS({ var _Rul = "Rules"; var _S = "Status"; var _SA = "StartAfter"; - var _SAK2 = "SecretAccessKey"; + var _SAK = "SecretAccessKey"; var _SBD = "S3BucketDestination"; var _SC = "StorageClass"; var _SCA = "StorageClassAnalysis"; @@ -48657,7 +49183,7 @@ var require_dist_cjs69 = __commonJS({ var _SSEKMSKI = "SSEKMSKeyId"; var _SSER = "ServerSideEncryptionRule"; var _SSES = "SSES3"; - var _ST2 = "SessionToken"; + var _ST = "SessionToken"; var _STBA = "S3TablesBucketArn"; var _STD = "S3TablesDestination"; var _STDR = "S3TablesDestinationResult"; @@ -48668,12 +49194,12 @@ var require_dist_cjs69 = __commonJS({ var _Si = "Size"; var _St = "Start"; var _Su = "Suffix"; - var _T2 = "Tagging"; + var _T = "Tagging"; var _TA = "TopicArn"; var _TAa = "TableArn"; var _TB = "TargetBucket"; var _TBA = "TableBucketArn"; - var _TC2 = "TagCount"; + var _TC = "TagCount"; var _TCo = "TopicConfiguration"; var _TCop = "TopicConfigurations"; var _TD = "TaggingDirective"; @@ -48704,18 +49230,18 @@ var require_dist_cjs69 = __commonJS({ var _UM = "UserMetadata"; var _URI = "URI"; var _Up = "Uploads"; - var _V2 = "Version"; + var _V = "Version"; var _VC = "VersionCount"; var _VCe = "VersioningConfiguration"; var _VI = "VersionId"; var _VIM = "VersionIdMarker"; - var _Va2 = "Value"; + var _Va = "Value"; var _Ve = "Versions"; var _WC = "WebsiteConfiguration"; var _WOB = "WriteOffsetBytes"; var _WRL = "WebsiteRedirectLocation"; var _Y = "Years"; - var _a2 = "analytics"; + var _a = "analytics"; var _ac = "accelerate"; var _acl = "acl"; var _ar = "accept-ranges"; @@ -48753,7 +49279,7 @@ var require_dist_cjs69 = __commonJS({ var _lo = "location"; var _log = "logging"; var _lt = "list-type"; - var _m2 = "metrics"; + var _m = "metrics"; var _mT = "metadataTable"; var _ma = "marker"; var _mb = "max-buckets"; @@ -48812,7 +49338,6 @@ var require_dist_cjs69 = __commonJS({ var _xaca = "x-amz-checksum-algorithm"; var _xacc = "x-amz-checksum-crc32"; var _xacc_ = "x-amz-checksum-crc32c"; - var _xacc__ = "x-amz-checksum-crc64nvme"; var _xacm = "x-amz-checksum-mode"; var _xacrsba = "x-amz-confirm-remove-self-bucket-access"; var _xacs = "x-amz-checksum-sha1"; @@ -48828,7 +49353,6 @@ var require_dist_cjs69 = __commonJS({ var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; var _xacssseckm = "x-amz-copy-source-server-side-encryption-customer-key-md5"; var _xacsvi = "x-amz-copy-source-version-id"; - var _xact = "x-amz-checksum-type"; var _xadm = "x-amz-delete-marker"; var _xae = "x-amz-expiration"; var _xaebo = "x-amz-expected-bucket-owner"; @@ -48846,7 +49370,6 @@ var require_dist_cjs69 = __commonJS({ var _xafhlm = "x-amz-fwd-header-last-modified"; var _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; var _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; - var _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; var _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; var _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; var _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; @@ -48879,7 +49402,6 @@ var require_dist_cjs69 = __commonJS({ var _xam = "x-amz-mfa"; var _xamd = "x-amz-metadata-directive"; var _xamm = "x-amz-missing-meta"; - var _xamos = "x-amz-mp-object-size"; var _xamp = "x-amz-max-parts"; var _xampc = "x-amz-mp-parts-count"; var _xaoa = "x-amz-object-attributes"; @@ -48916,24 +49438,23 @@ var require_dist_cjs69 = __commonJS({ var _xawob = "x-amz-write-offset-bytes"; var _xawrl = "x-amz-website-redirect-location"; var _xi = "x-id"; - var CreateSessionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateSessionCommand = class _CreateSessionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s3.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "CreateSession", {}).n("S3Client", "CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog, CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build() { - static { - __name(this, "CreateSessionCommand"); - } }; - var import_runtimeConfig5 = require_runtimeConfig2(); - var import_region_config_resolver3 = require_dist_cjs53(); - var getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { + __name(_CreateSessionCommand, "CreateSessionCommand"); + var CreateSessionCommand = _CreateSessionCommand; + var import_runtimeConfig = require_runtimeConfig4(); + var import_region_config_resolver = require_dist_cjs53(); + var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; @@ -48963,69 +49484,62 @@ var require_dist_cjs69 = __commonJS({ } }; }, "getHttpAuthExtensionConfiguration"); - var resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config) => { + var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }, "resolveHttpAuthRuntimeConfig"); - var asPartial3 = /* @__PURE__ */ __name((t3) => t3, "asPartial"); - var resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { + var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial"); + var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = { - ...asPartial3((0, import_region_config_resolver3.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_smithy_client25.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial3((0, import_protocol_http11.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - ...asPartial3(getHttpAuthExtensionConfiguration3(runtimeConfig)) + ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_smithy_client4.getDefaultExtensionConfiguration)(runtimeConfig)), + ...asPartial((0, import_protocol_http8.getHttpHandlerExtensionConfiguration)(runtimeConfig)), + ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)) }; extensions.forEach((extension) => extension.configure(extensionConfiguration)); return { ...runtimeConfig, - ...(0, import_region_config_resolver3.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, import_smithy_client25.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, import_protocol_http11.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig3(extensionConfiguration) + ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), + ...(0, import_smithy_client4.resolveDefaultRuntimeConfig)(extensionConfiguration), + ...(0, import_protocol_http8.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), + ...resolveHttpAuthRuntimeConfig(extensionConfiguration) }; }, "resolveRuntimeExtensions"); - var S3Client = class extends import_smithy_client25.Client { - static { - __name(this, "S3Client"); - } - /** - * The resolved configuration of S3Client class. This is resolved and normalized from the {@link S3ClientConfig | constructor configuration interface}. - */ - config; + var _S3Client = class _S3Client extends import_smithy_client4.Client { constructor(...[configuration2]) { - const _config_0 = (0, import_runtimeConfig5.getRuntimeConfig)(configuration2 || {}); - const _config_1 = resolveClientEndpointParameters3(_config_0); - const _config_2 = (0, import_middleware_user_agent3.resolveUserAgentConfig)(_config_1); + const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration2 || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_flexible_checksums.resolveFlexibleChecksumsConfig)(_config_2); - const _config_4 = (0, import_middleware_retry5.resolveRetryConfig)(_config_3); - const _config_5 = (0, import_config_resolver5.resolveRegionConfig)(_config_4); - const _config_6 = (0, import_middleware_host_header3.resolveHostHeaderConfig)(_config_5); - const _config_7 = (0, import_middleware_endpoint6.resolveEndpointConfig)(_config_6); + const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3); + const _config_5 = (0, import_config_resolver.resolveRegionConfig)(_config_4); + const _config_6 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_5); + const _config_7 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_6); const _config_8 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_7); - const _config_9 = (0, import_httpAuthSchemeProvider5.resolveHttpAuthSchemeConfig)(_config_8); + const _config_9 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_8); const _config_10 = (0, import_middleware_sdk_s32.resolveS3Config)(_config_9, { session: [() => this, CreateSessionCommand] }); - const _config_11 = resolveRuntimeExtensions3(_config_10, configuration2?.extensions || []); + const _config_11 = resolveRuntimeExtensions(_config_10, (configuration2 == null ? void 0 : configuration2.extensions) || []); super(_config_11); this.config = _config_11; - this.middlewareStack.use((0, import_middleware_user_agent3.getUserAgentPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_retry5.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_content_length3.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_host_header3.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_logger3.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, import_middleware_recursion_detection3.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( - (0, import_core32.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { - httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider5.defaultS3HttpAuthSchemeParametersProvider, - identityProviderConfigProvider: async (config) => new import_core32.DefaultIdentityProviderConfig({ + (0, import_core3.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { + httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultS3HttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new import_core3.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, "aws.auth#sigv4a": config.credentials }) }) ); - this.middlewareStack.use((0, import_core32.getHttpSigningPlugin)(this.config)); + this.middlewareStack.use((0, import_core3.getHttpSigningPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_sdk_s32.getValidateBucketNamePlugin)(this.config)); this.middlewareStack.use((0, import_middleware_expect_continue.getAddExpectContinuePlugin)(this.config)); this.middlewareStack.use((0, import_middleware_sdk_s32.getRegionRedirectMiddlewarePlugin)(this.config)); @@ -49041,1392 +49555,1324 @@ var require_dist_cjs69 = __commonJS({ super.destroy(); } }; + __name(_S3Client, "S3Client"); + var S3Client = _S3Client; var import_middleware_sdk_s33 = require_dist_cjs29(); - var AbortMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _AbortMultipartUploadCommand = class _AbortMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s33.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "AbortMultipartUpload", {}).n("S3Client", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() { - static { - __name(this, "AbortMultipartUploadCommand"); - } }; + __name(_AbortMultipartUploadCommand, "AbortMultipartUploadCommand"); + var AbortMultipartUploadCommand = _AbortMultipartUploadCommand; var import_middleware_sdk_s34 = require_dist_cjs29(); - var import_middleware_ssec = require_dist_cjs66(); - var CompleteMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var import_middleware_ssec = require_dist_cjs68(); + var _CompleteMultipartUploadCommand = class _CompleteMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s34.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CompleteMultipartUpload", {}).n("S3Client", "CompleteMultipartUploadCommand").f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() { - static { - __name(this, "CompleteMultipartUploadCommand"); - } }; + __name(_CompleteMultipartUploadCommand, "CompleteMultipartUploadCommand"); + var CompleteMultipartUploadCommand = _CompleteMultipartUploadCommand; var import_middleware_sdk_s35 = require_dist_cjs29(); - var CopyObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CopyObjectCommand = class _CopyObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, CopySource: { type: "contextParams", name: "CopySource" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s35.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CopyObject", {}).n("S3Client", "CopyObjectCommand").f(CopyObjectRequestFilterSensitiveLog, CopyObjectOutputFilterSensitiveLog).ser(se_CopyObjectCommand).de(de_CopyObjectCommand).build() { - static { - __name(this, "CopyObjectCommand"); - } }; - var import_middleware_location_constraint = require_dist_cjs67(); + __name(_CopyObjectCommand, "CopyObjectCommand"); + var CopyObjectCommand = _CopyObjectCommand; + var import_middleware_location_constraint = require_dist_cjs69(); var import_middleware_sdk_s36 = require_dist_cjs29(); - var CreateBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateBucketCommand = class _CreateBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, DisableAccessPoints: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s36.getThrow200ExceptionsPlugin)(config), (0, import_middleware_location_constraint.getLocationConstraintPlugin)(config) ]; }).s("AmazonS3", "CreateBucket", {}).n("S3Client", "CreateBucketCommand").f(void 0, void 0).ser(se_CreateBucketCommand).de(de_CreateBucketCommand).build() { - static { - __name(this, "CreateBucketCommand"); - } }; - var CreateBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_CreateBucketCommand, "CreateBucketCommand"); + var CreateBucketCommand = _CreateBucketCommand; + var _CreateBucketMetadataTableConfigurationCommand = class _CreateBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "CreateBucketMetadataTableConfiguration", {}).n("S3Client", "CreateBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_CreateBucketMetadataTableConfigurationCommand).de(de_CreateBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "CreateBucketMetadataTableConfigurationCommand"); - } }; + __name(_CreateBucketMetadataTableConfigurationCommand, "CreateBucketMetadataTableConfigurationCommand"); + var CreateBucketMetadataTableConfigurationCommand = _CreateBucketMetadataTableConfigurationCommand; var import_middleware_sdk_s37 = require_dist_cjs29(); - var CreateMultipartUploadCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _CreateMultipartUploadCommand = class _CreateMultipartUploadCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s37.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "CreateMultipartUpload", {}).n("S3Client", "CreateMultipartUploadCommand").f(CreateMultipartUploadRequestFilterSensitiveLog, CreateMultipartUploadOutputFilterSensitiveLog).ser(se_CreateMultipartUploadCommand).de(de_CreateMultipartUploadCommand).build() { - static { - __name(this, "CreateMultipartUploadCommand"); - } }; - var DeleteBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_CreateMultipartUploadCommand, "CreateMultipartUploadCommand"); + var CreateMultipartUploadCommand = _CreateMultipartUploadCommand; + var _DeleteBucketAnalyticsConfigurationCommand = class _DeleteBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {}).n("S3Client", "DeleteBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketAnalyticsConfigurationCommand).de(de_DeleteBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "DeleteBucketAnalyticsConfigurationCommand"); - } }; - var DeleteBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketAnalyticsConfigurationCommand, "DeleteBucketAnalyticsConfigurationCommand"); + var DeleteBucketAnalyticsConfigurationCommand = _DeleteBucketAnalyticsConfigurationCommand; + var _DeleteBucketCommand = class _DeleteBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucket", {}).n("S3Client", "DeleteBucketCommand").f(void 0, void 0).ser(se_DeleteBucketCommand).de(de_DeleteBucketCommand).build() { - static { - __name(this, "DeleteBucketCommand"); - } }; - var DeleteBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketCommand, "DeleteBucketCommand"); + var DeleteBucketCommand = _DeleteBucketCommand; + var _DeleteBucketCorsCommand = class _DeleteBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketCors", {}).n("S3Client", "DeleteBucketCorsCommand").f(void 0, void 0).ser(se_DeleteBucketCorsCommand).de(de_DeleteBucketCorsCommand).build() { - static { - __name(this, "DeleteBucketCorsCommand"); - } }; - var DeleteBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketCorsCommand, "DeleteBucketCorsCommand"); + var DeleteBucketCorsCommand = _DeleteBucketCorsCommand; + var _DeleteBucketEncryptionCommand = class _DeleteBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketEncryption", {}).n("S3Client", "DeleteBucketEncryptionCommand").f(void 0, void 0).ser(se_DeleteBucketEncryptionCommand).de(de_DeleteBucketEncryptionCommand).build() { - static { - __name(this, "DeleteBucketEncryptionCommand"); - } }; - var DeleteBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketEncryptionCommand, "DeleteBucketEncryptionCommand"); + var DeleteBucketEncryptionCommand = _DeleteBucketEncryptionCommand; + var _DeleteBucketIntelligentTieringConfigurationCommand = class _DeleteBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {}).n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketIntelligentTieringConfigurationCommand).de(de_DeleteBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "DeleteBucketIntelligentTieringConfigurationCommand"); - } }; - var DeleteBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketIntelligentTieringConfigurationCommand, "DeleteBucketIntelligentTieringConfigurationCommand"); + var DeleteBucketIntelligentTieringConfigurationCommand = _DeleteBucketIntelligentTieringConfigurationCommand; + var _DeleteBucketInventoryConfigurationCommand = class _DeleteBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketInventoryConfiguration", {}).n("S3Client", "DeleteBucketInventoryConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketInventoryConfigurationCommand).de(de_DeleteBucketInventoryConfigurationCommand).build() { - static { - __name(this, "DeleteBucketInventoryConfigurationCommand"); - } }; - var DeleteBucketLifecycleCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketInventoryConfigurationCommand, "DeleteBucketInventoryConfigurationCommand"); + var DeleteBucketInventoryConfigurationCommand = _DeleteBucketInventoryConfigurationCommand; + var _DeleteBucketLifecycleCommand = class _DeleteBucketLifecycleCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketLifecycle", {}).n("S3Client", "DeleteBucketLifecycleCommand").f(void 0, void 0).ser(se_DeleteBucketLifecycleCommand).de(de_DeleteBucketLifecycleCommand).build() { - static { - __name(this, "DeleteBucketLifecycleCommand"); - } }; - var DeleteBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketLifecycleCommand, "DeleteBucketLifecycleCommand"); + var DeleteBucketLifecycleCommand = _DeleteBucketLifecycleCommand; + var _DeleteBucketMetadataTableConfigurationCommand = class _DeleteBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {}).n("S3Client", "DeleteBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetadataTableConfigurationCommand).de(de_DeleteBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "DeleteBucketMetadataTableConfigurationCommand"); - } }; - var DeleteBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketMetadataTableConfigurationCommand, "DeleteBucketMetadataTableConfigurationCommand"); + var DeleteBucketMetadataTableConfigurationCommand = _DeleteBucketMetadataTableConfigurationCommand; + var _DeleteBucketMetricsConfigurationCommand = class _DeleteBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketMetricsConfiguration", {}).n("S3Client", "DeleteBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_DeleteBucketMetricsConfigurationCommand).de(de_DeleteBucketMetricsConfigurationCommand).build() { - static { - __name(this, "DeleteBucketMetricsConfigurationCommand"); - } }; - var DeleteBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketMetricsConfigurationCommand, "DeleteBucketMetricsConfigurationCommand"); + var DeleteBucketMetricsConfigurationCommand = _DeleteBucketMetricsConfigurationCommand; + var _DeleteBucketOwnershipControlsCommand = class _DeleteBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketOwnershipControls", {}).n("S3Client", "DeleteBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_DeleteBucketOwnershipControlsCommand).de(de_DeleteBucketOwnershipControlsCommand).build() { - static { - __name(this, "DeleteBucketOwnershipControlsCommand"); - } }; - var DeleteBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketOwnershipControlsCommand, "DeleteBucketOwnershipControlsCommand"); + var DeleteBucketOwnershipControlsCommand = _DeleteBucketOwnershipControlsCommand; + var _DeleteBucketPolicyCommand = class _DeleteBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketPolicy", {}).n("S3Client", "DeleteBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteBucketPolicyCommand).de(de_DeleteBucketPolicyCommand).build() { - static { - __name(this, "DeleteBucketPolicyCommand"); - } }; - var DeleteBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketPolicyCommand, "DeleteBucketPolicyCommand"); + var DeleteBucketPolicyCommand = _DeleteBucketPolicyCommand; + var _DeleteBucketReplicationCommand = class _DeleteBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketReplication", {}).n("S3Client", "DeleteBucketReplicationCommand").f(void 0, void 0).ser(se_DeleteBucketReplicationCommand).de(de_DeleteBucketReplicationCommand).build() { - static { - __name(this, "DeleteBucketReplicationCommand"); - } }; - var DeleteBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketReplicationCommand, "DeleteBucketReplicationCommand"); + var DeleteBucketReplicationCommand = _DeleteBucketReplicationCommand; + var _DeleteBucketTaggingCommand = class _DeleteBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketTagging", {}).n("S3Client", "DeleteBucketTaggingCommand").f(void 0, void 0).ser(se_DeleteBucketTaggingCommand).de(de_DeleteBucketTaggingCommand).build() { - static { - __name(this, "DeleteBucketTaggingCommand"); - } }; - var DeleteBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteBucketTaggingCommand, "DeleteBucketTaggingCommand"); + var DeleteBucketTaggingCommand = _DeleteBucketTaggingCommand; + var _DeleteBucketWebsiteCommand = class _DeleteBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeleteBucketWebsite", {}).n("S3Client", "DeleteBucketWebsiteCommand").f(void 0, void 0).ser(se_DeleteBucketWebsiteCommand).de(de_DeleteBucketWebsiteCommand).build() { - static { - __name(this, "DeleteBucketWebsiteCommand"); - } }; + __name(_DeleteBucketWebsiteCommand, "DeleteBucketWebsiteCommand"); + var DeleteBucketWebsiteCommand = _DeleteBucketWebsiteCommand; var import_middleware_sdk_s38 = require_dist_cjs29(); - var DeleteObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectCommand = class _DeleteObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s38.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObject", {}).n("S3Client", "DeleteObjectCommand").f(void 0, void 0).ser(se_DeleteObjectCommand).de(de_DeleteObjectCommand).build() { - static { - __name(this, "DeleteObjectCommand"); - } }; + __name(_DeleteObjectCommand, "DeleteObjectCommand"); + var DeleteObjectCommand = _DeleteObjectCommand; var import_middleware_sdk_s39 = require_dist_cjs29(); - var DeleteObjectsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectsCommand = class _DeleteObjectsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s39.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObjects", {}).n("S3Client", "DeleteObjectsCommand").f(void 0, void 0).ser(se_DeleteObjectsCommand).de(de_DeleteObjectsCommand).build() { - static { - __name(this, "DeleteObjectsCommand"); - } }; + __name(_DeleteObjectsCommand, "DeleteObjectsCommand"); + var DeleteObjectsCommand = _DeleteObjectsCommand; var import_middleware_sdk_s310 = require_dist_cjs29(); - var DeleteObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _DeleteObjectTaggingCommand = class _DeleteObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s310.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "DeleteObjectTagging", {}).n("S3Client", "DeleteObjectTaggingCommand").f(void 0, void 0).ser(se_DeleteObjectTaggingCommand).de(de_DeleteObjectTaggingCommand).build() { - static { - __name(this, "DeleteObjectTaggingCommand"); - } }; - var DeletePublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_DeleteObjectTaggingCommand, "DeleteObjectTaggingCommand"); + var DeleteObjectTaggingCommand = _DeleteObjectTaggingCommand; + var _DeletePublicAccessBlockCommand = class _DeletePublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "DeletePublicAccessBlock", {}).n("S3Client", "DeletePublicAccessBlockCommand").f(void 0, void 0).ser(se_DeletePublicAccessBlockCommand).de(de_DeletePublicAccessBlockCommand).build() { - static { - __name(this, "DeletePublicAccessBlockCommand"); - } }; + __name(_DeletePublicAccessBlockCommand, "DeletePublicAccessBlockCommand"); + var DeletePublicAccessBlockCommand = _DeletePublicAccessBlockCommand; var import_middleware_sdk_s311 = require_dist_cjs29(); - var GetBucketAccelerateConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAccelerateConfigurationCommand = class _GetBucketAccelerateConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s311.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAccelerateConfiguration", {}).n("S3Client", "GetBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAccelerateConfigurationCommand).de(de_GetBucketAccelerateConfigurationCommand).build() { - static { - __name(this, "GetBucketAccelerateConfigurationCommand"); - } }; + __name(_GetBucketAccelerateConfigurationCommand, "GetBucketAccelerateConfigurationCommand"); + var GetBucketAccelerateConfigurationCommand = _GetBucketAccelerateConfigurationCommand; var import_middleware_sdk_s312 = require_dist_cjs29(); - var GetBucketAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAclCommand = class _GetBucketAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s312.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAcl", {}).n("S3Client", "GetBucketAclCommand").f(void 0, void 0).ser(se_GetBucketAclCommand).de(de_GetBucketAclCommand).build() { - static { - __name(this, "GetBucketAclCommand"); - } }; + __name(_GetBucketAclCommand, "GetBucketAclCommand"); + var GetBucketAclCommand = _GetBucketAclCommand; var import_middleware_sdk_s313 = require_dist_cjs29(); - var GetBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketAnalyticsConfigurationCommand = class _GetBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s313.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketAnalyticsConfiguration", {}).n("S3Client", "GetBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketAnalyticsConfigurationCommand).de(de_GetBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "GetBucketAnalyticsConfigurationCommand"); - } }; + __name(_GetBucketAnalyticsConfigurationCommand, "GetBucketAnalyticsConfigurationCommand"); + var GetBucketAnalyticsConfigurationCommand = _GetBucketAnalyticsConfigurationCommand; var import_middleware_sdk_s314 = require_dist_cjs29(); - var GetBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketCorsCommand = class _GetBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s314.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketCors", {}).n("S3Client", "GetBucketCorsCommand").f(void 0, void 0).ser(se_GetBucketCorsCommand).de(de_GetBucketCorsCommand).build() { - static { - __name(this, "GetBucketCorsCommand"); - } }; + __name(_GetBucketCorsCommand, "GetBucketCorsCommand"); + var GetBucketCorsCommand = _GetBucketCorsCommand; var import_middleware_sdk_s315 = require_dist_cjs29(); - var GetBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketEncryptionCommand = class _GetBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s315.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketEncryption", {}).n("S3Client", "GetBucketEncryptionCommand").f(void 0, GetBucketEncryptionOutputFilterSensitiveLog).ser(se_GetBucketEncryptionCommand).de(de_GetBucketEncryptionCommand).build() { - static { - __name(this, "GetBucketEncryptionCommand"); - } }; + __name(_GetBucketEncryptionCommand, "GetBucketEncryptionCommand"); + var GetBucketEncryptionCommand = _GetBucketEncryptionCommand; var import_middleware_sdk_s316 = require_dist_cjs29(); - var GetBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketIntelligentTieringConfigurationCommand = class _GetBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s316.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {}).n("S3Client", "GetBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_GetBucketIntelligentTieringConfigurationCommand).de(de_GetBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "GetBucketIntelligentTieringConfigurationCommand"); - } }; + __name(_GetBucketIntelligentTieringConfigurationCommand, "GetBucketIntelligentTieringConfigurationCommand"); + var GetBucketIntelligentTieringConfigurationCommand = _GetBucketIntelligentTieringConfigurationCommand; var import_middleware_sdk_s317 = require_dist_cjs29(); - var GetBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketInventoryConfigurationCommand = class _GetBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s317.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketInventoryConfiguration", {}).n("S3Client", "GetBucketInventoryConfigurationCommand").f(void 0, GetBucketInventoryConfigurationOutputFilterSensitiveLog).ser(se_GetBucketInventoryConfigurationCommand).de(de_GetBucketInventoryConfigurationCommand).build() { - static { - __name(this, "GetBucketInventoryConfigurationCommand"); - } }; + __name(_GetBucketInventoryConfigurationCommand, "GetBucketInventoryConfigurationCommand"); + var GetBucketInventoryConfigurationCommand = _GetBucketInventoryConfigurationCommand; var import_middleware_sdk_s318 = require_dist_cjs29(); - var GetBucketLifecycleConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLifecycleConfigurationCommand = class _GetBucketLifecycleConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s318.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLifecycleConfiguration", {}).n("S3Client", "GetBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_GetBucketLifecycleConfigurationCommand).de(de_GetBucketLifecycleConfigurationCommand).build() { - static { - __name(this, "GetBucketLifecycleConfigurationCommand"); - } }; + __name(_GetBucketLifecycleConfigurationCommand, "GetBucketLifecycleConfigurationCommand"); + var GetBucketLifecycleConfigurationCommand = _GetBucketLifecycleConfigurationCommand; var import_middleware_sdk_s319 = require_dist_cjs29(); - var GetBucketLocationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLocationCommand = class _GetBucketLocationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s319.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLocation", {}).n("S3Client", "GetBucketLocationCommand").f(void 0, void 0).ser(se_GetBucketLocationCommand).de(de_GetBucketLocationCommand).build() { - static { - __name(this, "GetBucketLocationCommand"); - } }; + __name(_GetBucketLocationCommand, "GetBucketLocationCommand"); + var GetBucketLocationCommand = _GetBucketLocationCommand; var import_middleware_sdk_s320 = require_dist_cjs29(); - var GetBucketLoggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketLoggingCommand = class _GetBucketLoggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s320.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketLogging", {}).n("S3Client", "GetBucketLoggingCommand").f(void 0, void 0).ser(se_GetBucketLoggingCommand).de(de_GetBucketLoggingCommand).build() { - static { - __name(this, "GetBucketLoggingCommand"); - } }; + __name(_GetBucketLoggingCommand, "GetBucketLoggingCommand"); + var GetBucketLoggingCommand = _GetBucketLoggingCommand; var import_middleware_sdk_s321 = require_dist_cjs29(); - var GetBucketMetadataTableConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketMetadataTableConfigurationCommand = class _GetBucketMetadataTableConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s321.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketMetadataTableConfiguration", {}).n("S3Client", "GetBucketMetadataTableConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetadataTableConfigurationCommand).de(de_GetBucketMetadataTableConfigurationCommand).build() { - static { - __name(this, "GetBucketMetadataTableConfigurationCommand"); - } }; + __name(_GetBucketMetadataTableConfigurationCommand, "GetBucketMetadataTableConfigurationCommand"); + var GetBucketMetadataTableConfigurationCommand = _GetBucketMetadataTableConfigurationCommand; var import_middleware_sdk_s322 = require_dist_cjs29(); - var GetBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketMetricsConfigurationCommand = class _GetBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s322.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketMetricsConfiguration", {}).n("S3Client", "GetBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_GetBucketMetricsConfigurationCommand).de(de_GetBucketMetricsConfigurationCommand).build() { - static { - __name(this, "GetBucketMetricsConfigurationCommand"); - } }; + __name(_GetBucketMetricsConfigurationCommand, "GetBucketMetricsConfigurationCommand"); + var GetBucketMetricsConfigurationCommand = _GetBucketMetricsConfigurationCommand; var import_middleware_sdk_s323 = require_dist_cjs29(); - var GetBucketNotificationConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketNotificationConfigurationCommand = class _GetBucketNotificationConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s323.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketNotificationConfiguration", {}).n("S3Client", "GetBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_GetBucketNotificationConfigurationCommand).de(de_GetBucketNotificationConfigurationCommand).build() { - static { - __name(this, "GetBucketNotificationConfigurationCommand"); - } }; + __name(_GetBucketNotificationConfigurationCommand, "GetBucketNotificationConfigurationCommand"); + var GetBucketNotificationConfigurationCommand = _GetBucketNotificationConfigurationCommand; var import_middleware_sdk_s324 = require_dist_cjs29(); - var GetBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketOwnershipControlsCommand = class _GetBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s324.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketOwnershipControls", {}).n("S3Client", "GetBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_GetBucketOwnershipControlsCommand).de(de_GetBucketOwnershipControlsCommand).build() { - static { - __name(this, "GetBucketOwnershipControlsCommand"); - } }; + __name(_GetBucketOwnershipControlsCommand, "GetBucketOwnershipControlsCommand"); + var GetBucketOwnershipControlsCommand = _GetBucketOwnershipControlsCommand; var import_middleware_sdk_s325 = require_dist_cjs29(); - var GetBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketPolicyCommand = class _GetBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s325.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketPolicy", {}).n("S3Client", "GetBucketPolicyCommand").f(void 0, void 0).ser(se_GetBucketPolicyCommand).de(de_GetBucketPolicyCommand).build() { - static { - __name(this, "GetBucketPolicyCommand"); - } }; + __name(_GetBucketPolicyCommand, "GetBucketPolicyCommand"); + var GetBucketPolicyCommand = _GetBucketPolicyCommand; var import_middleware_sdk_s326 = require_dist_cjs29(); - var GetBucketPolicyStatusCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketPolicyStatusCommand = class _GetBucketPolicyStatusCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s326.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketPolicyStatus", {}).n("S3Client", "GetBucketPolicyStatusCommand").f(void 0, void 0).ser(se_GetBucketPolicyStatusCommand).de(de_GetBucketPolicyStatusCommand).build() { - static { - __name(this, "GetBucketPolicyStatusCommand"); - } }; + __name(_GetBucketPolicyStatusCommand, "GetBucketPolicyStatusCommand"); + var GetBucketPolicyStatusCommand = _GetBucketPolicyStatusCommand; var import_middleware_sdk_s327 = require_dist_cjs29(); - var GetBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketReplicationCommand = class _GetBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s327.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketReplication", {}).n("S3Client", "GetBucketReplicationCommand").f(void 0, void 0).ser(se_GetBucketReplicationCommand).de(de_GetBucketReplicationCommand).build() { - static { - __name(this, "GetBucketReplicationCommand"); - } }; + __name(_GetBucketReplicationCommand, "GetBucketReplicationCommand"); + var GetBucketReplicationCommand = _GetBucketReplicationCommand; var import_middleware_sdk_s328 = require_dist_cjs29(); - var GetBucketRequestPaymentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketRequestPaymentCommand = class _GetBucketRequestPaymentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s328.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketRequestPayment", {}).n("S3Client", "GetBucketRequestPaymentCommand").f(void 0, void 0).ser(se_GetBucketRequestPaymentCommand).de(de_GetBucketRequestPaymentCommand).build() { - static { - __name(this, "GetBucketRequestPaymentCommand"); - } }; + __name(_GetBucketRequestPaymentCommand, "GetBucketRequestPaymentCommand"); + var GetBucketRequestPaymentCommand = _GetBucketRequestPaymentCommand; var import_middleware_sdk_s329 = require_dist_cjs29(); - var GetBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketTaggingCommand = class _GetBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s329.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketTagging", {}).n("S3Client", "GetBucketTaggingCommand").f(void 0, void 0).ser(se_GetBucketTaggingCommand).de(de_GetBucketTaggingCommand).build() { - static { - __name(this, "GetBucketTaggingCommand"); - } }; + __name(_GetBucketTaggingCommand, "GetBucketTaggingCommand"); + var GetBucketTaggingCommand = _GetBucketTaggingCommand; var import_middleware_sdk_s330 = require_dist_cjs29(); - var GetBucketVersioningCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketVersioningCommand = class _GetBucketVersioningCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s330.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketVersioning", {}).n("S3Client", "GetBucketVersioningCommand").f(void 0, void 0).ser(se_GetBucketVersioningCommand).de(de_GetBucketVersioningCommand).build() { - static { - __name(this, "GetBucketVersioningCommand"); - } }; + __name(_GetBucketVersioningCommand, "GetBucketVersioningCommand"); + var GetBucketVersioningCommand = _GetBucketVersioningCommand; var import_middleware_sdk_s331 = require_dist_cjs29(); - var GetBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetBucketWebsiteCommand = class _GetBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s331.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetBucketWebsite", {}).n("S3Client", "GetBucketWebsiteCommand").f(void 0, void 0).ser(se_GetBucketWebsiteCommand).de(de_GetBucketWebsiteCommand).build() { - static { - __name(this, "GetBucketWebsiteCommand"); - } }; + __name(_GetBucketWebsiteCommand, "GetBucketWebsiteCommand"); + var GetBucketWebsiteCommand = _GetBucketWebsiteCommand; var import_middleware_sdk_s332 = require_dist_cjs29(); - var GetObjectAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectAclCommand = class _GetObjectAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s332.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectAcl", {}).n("S3Client", "GetObjectAclCommand").f(void 0, void 0).ser(se_GetObjectAclCommand).de(de_GetObjectAclCommand).build() { - static { - __name(this, "GetObjectAclCommand"); - } }; + __name(_GetObjectAclCommand, "GetObjectAclCommand"); + var GetObjectAclCommand = _GetObjectAclCommand; var import_middleware_sdk_s333 = require_dist_cjs29(); - var GetObjectAttributesCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectAttributesCommand = class _GetObjectAttributesCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s333.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "GetObjectAttributes", {}).n("S3Client", "GetObjectAttributesCommand").f(GetObjectAttributesRequestFilterSensitiveLog, void 0).ser(se_GetObjectAttributesCommand).de(de_GetObjectAttributesCommand).build() { - static { - __name(this, "GetObjectAttributesCommand"); - } }; + __name(_GetObjectAttributesCommand, "GetObjectAttributesCommand"); + var GetObjectAttributesCommand = _GetObjectAttributesCommand; var import_middleware_sdk_s334 = require_dist_cjs29(); - var GetObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectCommand = class _GetObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", - responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1"] + responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"] }), (0, import_middleware_ssec.getSsecPlugin)(config), (0, import_middleware_sdk_s334.getS3ExpiresMiddlewarePlugin)(config) ]; }).s("AmazonS3", "GetObject", {}).n("S3Client", "GetObjectCommand").f(GetObjectRequestFilterSensitiveLog, GetObjectOutputFilterSensitiveLog).ser(se_GetObjectCommand).de(de_GetObjectCommand).build() { - static { - __name(this, "GetObjectCommand"); - } }; + __name(_GetObjectCommand, "GetObjectCommand"); + var GetObjectCommand = _GetObjectCommand; var import_middleware_sdk_s335 = require_dist_cjs29(); - var GetObjectLegalHoldCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectLegalHoldCommand = class _GetObjectLegalHoldCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s335.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectLegalHold", {}).n("S3Client", "GetObjectLegalHoldCommand").f(void 0, void 0).ser(se_GetObjectLegalHoldCommand).de(de_GetObjectLegalHoldCommand).build() { - static { - __name(this, "GetObjectLegalHoldCommand"); - } }; + __name(_GetObjectLegalHoldCommand, "GetObjectLegalHoldCommand"); + var GetObjectLegalHoldCommand = _GetObjectLegalHoldCommand; var import_middleware_sdk_s336 = require_dist_cjs29(); - var GetObjectLockConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectLockConfigurationCommand = class _GetObjectLockConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s336.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectLockConfiguration", {}).n("S3Client", "GetObjectLockConfigurationCommand").f(void 0, void 0).ser(se_GetObjectLockConfigurationCommand).de(de_GetObjectLockConfigurationCommand).build() { - static { - __name(this, "GetObjectLockConfigurationCommand"); - } }; + __name(_GetObjectLockConfigurationCommand, "GetObjectLockConfigurationCommand"); + var GetObjectLockConfigurationCommand = _GetObjectLockConfigurationCommand; var import_middleware_sdk_s337 = require_dist_cjs29(); - var GetObjectRetentionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectRetentionCommand = class _GetObjectRetentionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s337.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectRetention", {}).n("S3Client", "GetObjectRetentionCommand").f(void 0, void 0).ser(se_GetObjectRetentionCommand).de(de_GetObjectRetentionCommand).build() { - static { - __name(this, "GetObjectRetentionCommand"); - } }; + __name(_GetObjectRetentionCommand, "GetObjectRetentionCommand"); + var GetObjectRetentionCommand = _GetObjectRetentionCommand; var import_middleware_sdk_s338 = require_dist_cjs29(); - var GetObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetObjectTaggingCommand = class _GetObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s338.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetObjectTagging", {}).n("S3Client", "GetObjectTaggingCommand").f(void 0, void 0).ser(se_GetObjectTaggingCommand).de(de_GetObjectTaggingCommand).build() { - static { - __name(this, "GetObjectTaggingCommand"); - } }; - var GetObjectTorrentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_GetObjectTaggingCommand, "GetObjectTaggingCommand"); + var GetObjectTaggingCommand = _GetObjectTaggingCommand; + var _GetObjectTorrentCommand = class _GetObjectTorrentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "GetObjectTorrent", {}).n("S3Client", "GetObjectTorrentCommand").f(void 0, GetObjectTorrentOutputFilterSensitiveLog).ser(se_GetObjectTorrentCommand).de(de_GetObjectTorrentCommand).build() { - static { - __name(this, "GetObjectTorrentCommand"); - } }; + __name(_GetObjectTorrentCommand, "GetObjectTorrentCommand"); + var GetObjectTorrentCommand = _GetObjectTorrentCommand; var import_middleware_sdk_s339 = require_dist_cjs29(); - var GetPublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _GetPublicAccessBlockCommand = class _GetPublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s339.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "GetPublicAccessBlock", {}).n("S3Client", "GetPublicAccessBlockCommand").f(void 0, void 0).ser(se_GetPublicAccessBlockCommand).de(de_GetPublicAccessBlockCommand).build() { - static { - __name(this, "GetPublicAccessBlockCommand"); - } }; + __name(_GetPublicAccessBlockCommand, "GetPublicAccessBlockCommand"); + var GetPublicAccessBlockCommand = _GetPublicAccessBlockCommand; var import_middleware_sdk_s340 = require_dist_cjs29(); - var HeadBucketCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _HeadBucketCommand = class _HeadBucketCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s340.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "HeadBucket", {}).n("S3Client", "HeadBucketCommand").f(void 0, void 0).ser(se_HeadBucketCommand).de(de_HeadBucketCommand).build() { - static { - __name(this, "HeadBucketCommand"); - } }; + __name(_HeadBucketCommand, "HeadBucketCommand"); + var HeadBucketCommand = _HeadBucketCommand; var import_middleware_sdk_s341 = require_dist_cjs29(); - var HeadObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _HeadObjectCommand = class _HeadObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s341.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config), (0, import_middleware_sdk_s341.getS3ExpiresMiddlewarePlugin)(config) ]; }).s("AmazonS3", "HeadObject", {}).n("S3Client", "HeadObjectCommand").f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog).ser(se_HeadObjectCommand).de(de_HeadObjectCommand).build() { - static { - __name(this, "HeadObjectCommand"); - } }; + __name(_HeadObjectCommand, "HeadObjectCommand"); + var HeadObjectCommand = _HeadObjectCommand; var import_middleware_sdk_s342 = require_dist_cjs29(); - var ListBucketAnalyticsConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketAnalyticsConfigurationsCommand = class _ListBucketAnalyticsConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s342.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketAnalyticsConfigurations", {}).n("S3Client", "ListBucketAnalyticsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketAnalyticsConfigurationsCommand).de(de_ListBucketAnalyticsConfigurationsCommand).build() { - static { - __name(this, "ListBucketAnalyticsConfigurationsCommand"); - } }; + __name(_ListBucketAnalyticsConfigurationsCommand, "ListBucketAnalyticsConfigurationsCommand"); + var ListBucketAnalyticsConfigurationsCommand = _ListBucketAnalyticsConfigurationsCommand; var import_middleware_sdk_s343 = require_dist_cjs29(); - var ListBucketIntelligentTieringConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketIntelligentTieringConfigurationsCommand = class _ListBucketIntelligentTieringConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s343.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {}).n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketIntelligentTieringConfigurationsCommand).de(de_ListBucketIntelligentTieringConfigurationsCommand).build() { - static { - __name(this, "ListBucketIntelligentTieringConfigurationsCommand"); - } }; + __name(_ListBucketIntelligentTieringConfigurationsCommand, "ListBucketIntelligentTieringConfigurationsCommand"); + var ListBucketIntelligentTieringConfigurationsCommand = _ListBucketIntelligentTieringConfigurationsCommand; var import_middleware_sdk_s344 = require_dist_cjs29(); - var ListBucketInventoryConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketInventoryConfigurationsCommand = class _ListBucketInventoryConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s344.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketInventoryConfigurations", {}).n("S3Client", "ListBucketInventoryConfigurationsCommand").f(void 0, ListBucketInventoryConfigurationsOutputFilterSensitiveLog).ser(se_ListBucketInventoryConfigurationsCommand).de(de_ListBucketInventoryConfigurationsCommand).build() { - static { - __name(this, "ListBucketInventoryConfigurationsCommand"); - } }; + __name(_ListBucketInventoryConfigurationsCommand, "ListBucketInventoryConfigurationsCommand"); + var ListBucketInventoryConfigurationsCommand = _ListBucketInventoryConfigurationsCommand; var import_middleware_sdk_s345 = require_dist_cjs29(); - var ListBucketMetricsConfigurationsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListBucketMetricsConfigurationsCommand = class _ListBucketMetricsConfigurationsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s345.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBucketMetricsConfigurations", {}).n("S3Client", "ListBucketMetricsConfigurationsCommand").f(void 0, void 0).ser(se_ListBucketMetricsConfigurationsCommand).de(de_ListBucketMetricsConfigurationsCommand).build() { - static { - __name(this, "ListBucketMetricsConfigurationsCommand"); - } }; + __name(_ListBucketMetricsConfigurationsCommand, "ListBucketMetricsConfigurationsCommand"); + var ListBucketMetricsConfigurationsCommand = _ListBucketMetricsConfigurationsCommand; var import_middleware_sdk_s346 = require_dist_cjs29(); - var ListBucketsCommand = class extends import_smithy_client25.Command.classBuilder().ep(commonParams3).m(function(Command, cs, config, o3) { + var _ListBucketsCommand = class _ListBucketsCommand extends import_smithy_client4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s346.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListBuckets", {}).n("S3Client", "ListBucketsCommand").f(void 0, void 0).ser(se_ListBucketsCommand).de(de_ListBucketsCommand).build() { - static { - __name(this, "ListBucketsCommand"); - } }; + __name(_ListBucketsCommand, "ListBucketsCommand"); + var ListBucketsCommand = _ListBucketsCommand; var import_middleware_sdk_s347 = require_dist_cjs29(); - var ListDirectoryBucketsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListDirectoryBucketsCommand = class _ListDirectoryBucketsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s347.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListDirectoryBuckets", {}).n("S3Client", "ListDirectoryBucketsCommand").f(void 0, void 0).ser(se_ListDirectoryBucketsCommand).de(de_ListDirectoryBucketsCommand).build() { - static { - __name(this, "ListDirectoryBucketsCommand"); - } }; + __name(_ListDirectoryBucketsCommand, "ListDirectoryBucketsCommand"); + var ListDirectoryBucketsCommand = _ListDirectoryBucketsCommand; var import_middleware_sdk_s348 = require_dist_cjs29(); - var ListMultipartUploadsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListMultipartUploadsCommand = class _ListMultipartUploadsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s348.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListMultipartUploads", {}).n("S3Client", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() { - static { - __name(this, "ListMultipartUploadsCommand"); - } }; + __name(_ListMultipartUploadsCommand, "ListMultipartUploadsCommand"); + var ListMultipartUploadsCommand = _ListMultipartUploadsCommand; var import_middleware_sdk_s349 = require_dist_cjs29(); - var ListObjectsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectsCommand = class _ListObjectsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s349.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjects", {}).n("S3Client", "ListObjectsCommand").f(void 0, void 0).ser(se_ListObjectsCommand).de(de_ListObjectsCommand).build() { - static { - __name(this, "ListObjectsCommand"); - } }; + __name(_ListObjectsCommand, "ListObjectsCommand"); + var ListObjectsCommand = _ListObjectsCommand; var import_middleware_sdk_s350 = require_dist_cjs29(); - var ListObjectsV2Command = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectsV2Command = class _ListObjectsV2Command extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s350.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjectsV2", {}).n("S3Client", "ListObjectsV2Command").f(void 0, void 0).ser(se_ListObjectsV2Command).de(de_ListObjectsV2Command).build() { - static { - __name(this, "ListObjectsV2Command"); - } }; + __name(_ListObjectsV2Command, "ListObjectsV2Command"); + var ListObjectsV2Command = _ListObjectsV2Command; var import_middleware_sdk_s351 = require_dist_cjs29(); - var ListObjectVersionsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListObjectVersionsCommand = class _ListObjectVersionsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s351.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "ListObjectVersions", {}).n("S3Client", "ListObjectVersionsCommand").f(void 0, void 0).ser(se_ListObjectVersionsCommand).de(de_ListObjectVersionsCommand).build() { - static { - __name(this, "ListObjectVersionsCommand"); - } }; + __name(_ListObjectVersionsCommand, "ListObjectVersionsCommand"); + var ListObjectVersionsCommand = _ListObjectVersionsCommand; var import_middleware_sdk_s352 = require_dist_cjs29(); - var ListPartsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _ListPartsCommand = class _ListPartsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s352.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "ListParts", {}).n("S3Client", "ListPartsCommand").f(ListPartsRequestFilterSensitiveLog, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() { - static { - __name(this, "ListPartsCommand"); - } }; - var PutBucketAccelerateConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_ListPartsCommand, "ListPartsCommand"); + var ListPartsCommand = _ListPartsCommand; + var _PutBucketAccelerateConfigurationCommand = class _PutBucketAccelerateConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }) ]; }).s("AmazonS3", "PutBucketAccelerateConfiguration", {}).n("S3Client", "PutBucketAccelerateConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAccelerateConfigurationCommand).de(de_PutBucketAccelerateConfigurationCommand).build() { - static { - __name(this, "PutBucketAccelerateConfigurationCommand"); - } }; - var PutBucketAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAccelerateConfigurationCommand, "PutBucketAccelerateConfigurationCommand"); + var PutBucketAccelerateConfigurationCommand = _PutBucketAccelerateConfigurationCommand; + var _PutBucketAclCommand = class _PutBucketAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketAcl", {}).n("S3Client", "PutBucketAclCommand").f(void 0, void 0).ser(se_PutBucketAclCommand).de(de_PutBucketAclCommand).build() { - static { - __name(this, "PutBucketAclCommand"); - } }; - var PutBucketAnalyticsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAclCommand, "PutBucketAclCommand"); + var PutBucketAclCommand = _PutBucketAclCommand; + var _PutBucketAnalyticsConfigurationCommand = class _PutBucketAnalyticsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketAnalyticsConfiguration", {}).n("S3Client", "PutBucketAnalyticsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketAnalyticsConfigurationCommand).de(de_PutBucketAnalyticsConfigurationCommand).build() { - static { - __name(this, "PutBucketAnalyticsConfigurationCommand"); - } }; - var PutBucketCorsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketAnalyticsConfigurationCommand, "PutBucketAnalyticsConfigurationCommand"); + var PutBucketAnalyticsConfigurationCommand = _PutBucketAnalyticsConfigurationCommand; + var _PutBucketCorsCommand = class _PutBucketCorsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketCors", {}).n("S3Client", "PutBucketCorsCommand").f(void 0, void 0).ser(se_PutBucketCorsCommand).de(de_PutBucketCorsCommand).build() { - static { - __name(this, "PutBucketCorsCommand"); - } }; - var PutBucketEncryptionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketCorsCommand, "PutBucketCorsCommand"); + var PutBucketCorsCommand = _PutBucketCorsCommand; + var _PutBucketEncryptionCommand = class _PutBucketEncryptionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketEncryption", {}).n("S3Client", "PutBucketEncryptionCommand").f(PutBucketEncryptionRequestFilterSensitiveLog, void 0).ser(se_PutBucketEncryptionCommand).de(de_PutBucketEncryptionCommand).build() { - static { - __name(this, "PutBucketEncryptionCommand"); - } }; - var PutBucketIntelligentTieringConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketEncryptionCommand, "PutBucketEncryptionCommand"); + var PutBucketEncryptionCommand = _PutBucketEncryptionCommand; + var _PutBucketIntelligentTieringConfigurationCommand = class _PutBucketIntelligentTieringConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {}).n("S3Client", "PutBucketIntelligentTieringConfigurationCommand").f(void 0, void 0).ser(se_PutBucketIntelligentTieringConfigurationCommand).de(de_PutBucketIntelligentTieringConfigurationCommand).build() { - static { - __name(this, "PutBucketIntelligentTieringConfigurationCommand"); - } }; - var PutBucketInventoryConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketIntelligentTieringConfigurationCommand, "PutBucketIntelligentTieringConfigurationCommand"); + var PutBucketIntelligentTieringConfigurationCommand = _PutBucketIntelligentTieringConfigurationCommand; + var _PutBucketInventoryConfigurationCommand = class _PutBucketInventoryConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketInventoryConfiguration", {}).n("S3Client", "PutBucketInventoryConfigurationCommand").f(PutBucketInventoryConfigurationRequestFilterSensitiveLog, void 0).ser(se_PutBucketInventoryConfigurationCommand).de(de_PutBucketInventoryConfigurationCommand).build() { - static { - __name(this, "PutBucketInventoryConfigurationCommand"); - } }; + __name(_PutBucketInventoryConfigurationCommand, "PutBucketInventoryConfigurationCommand"); + var PutBucketInventoryConfigurationCommand = _PutBucketInventoryConfigurationCommand; var import_middleware_sdk_s353 = require_dist_cjs29(); - var PutBucketLifecycleConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutBucketLifecycleConfigurationCommand = class _PutBucketLifecycleConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s353.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutBucketLifecycleConfiguration", {}).n("S3Client", "PutBucketLifecycleConfigurationCommand").f(void 0, void 0).ser(se_PutBucketLifecycleConfigurationCommand).de(de_PutBucketLifecycleConfigurationCommand).build() { - static { - __name(this, "PutBucketLifecycleConfigurationCommand"); - } }; - var PutBucketLoggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketLifecycleConfigurationCommand, "PutBucketLifecycleConfigurationCommand"); + var PutBucketLifecycleConfigurationCommand = _PutBucketLifecycleConfigurationCommand; + var _PutBucketLoggingCommand = class _PutBucketLoggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketLogging", {}).n("S3Client", "PutBucketLoggingCommand").f(void 0, void 0).ser(se_PutBucketLoggingCommand).de(de_PutBucketLoggingCommand).build() { - static { - __name(this, "PutBucketLoggingCommand"); - } }; - var PutBucketMetricsConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketLoggingCommand, "PutBucketLoggingCommand"); + var PutBucketLoggingCommand = _PutBucketLoggingCommand; + var _PutBucketMetricsConfigurationCommand = class _PutBucketMetricsConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketMetricsConfiguration", {}).n("S3Client", "PutBucketMetricsConfigurationCommand").f(void 0, void 0).ser(se_PutBucketMetricsConfigurationCommand).de(de_PutBucketMetricsConfigurationCommand).build() { - static { - __name(this, "PutBucketMetricsConfigurationCommand"); - } }; - var PutBucketNotificationConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketMetricsConfigurationCommand, "PutBucketMetricsConfigurationCommand"); + var PutBucketMetricsConfigurationCommand = _PutBucketMetricsConfigurationCommand; + var _PutBucketNotificationConfigurationCommand = class _PutBucketNotificationConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "PutBucketNotificationConfiguration", {}).n("S3Client", "PutBucketNotificationConfigurationCommand").f(void 0, void 0).ser(se_PutBucketNotificationConfigurationCommand).de(de_PutBucketNotificationConfigurationCommand).build() { - static { - __name(this, "PutBucketNotificationConfigurationCommand"); - } }; - var PutBucketOwnershipControlsCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketNotificationConfigurationCommand, "PutBucketNotificationConfigurationCommand"); + var PutBucketNotificationConfigurationCommand = _PutBucketNotificationConfigurationCommand; + var _PutBucketOwnershipControlsCommand = class _PutBucketOwnershipControlsCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketOwnershipControls", {}).n("S3Client", "PutBucketOwnershipControlsCommand").f(void 0, void 0).ser(se_PutBucketOwnershipControlsCommand).de(de_PutBucketOwnershipControlsCommand).build() { - static { - __name(this, "PutBucketOwnershipControlsCommand"); - } }; - var PutBucketPolicyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketOwnershipControlsCommand, "PutBucketOwnershipControlsCommand"); + var PutBucketOwnershipControlsCommand = _PutBucketOwnershipControlsCommand; + var _PutBucketPolicyCommand = class _PutBucketPolicyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketPolicy", {}).n("S3Client", "PutBucketPolicyCommand").f(void 0, void 0).ser(se_PutBucketPolicyCommand).de(de_PutBucketPolicyCommand).build() { - static { - __name(this, "PutBucketPolicyCommand"); - } }; - var PutBucketReplicationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketPolicyCommand, "PutBucketPolicyCommand"); + var PutBucketPolicyCommand = _PutBucketPolicyCommand; + var _PutBucketReplicationCommand = class _PutBucketReplicationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketReplication", {}).n("S3Client", "PutBucketReplicationCommand").f(void 0, void 0).ser(se_PutBucketReplicationCommand).de(de_PutBucketReplicationCommand).build() { - static { - __name(this, "PutBucketReplicationCommand"); - } }; - var PutBucketRequestPaymentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketReplicationCommand, "PutBucketReplicationCommand"); + var PutBucketReplicationCommand = _PutBucketReplicationCommand; + var _PutBucketRequestPaymentCommand = class _PutBucketRequestPaymentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketRequestPayment", {}).n("S3Client", "PutBucketRequestPaymentCommand").f(void 0, void 0).ser(se_PutBucketRequestPaymentCommand).de(de_PutBucketRequestPaymentCommand).build() { - static { - __name(this, "PutBucketRequestPaymentCommand"); - } }; - var PutBucketTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketRequestPaymentCommand, "PutBucketRequestPaymentCommand"); + var PutBucketRequestPaymentCommand = _PutBucketRequestPaymentCommand; + var _PutBucketTaggingCommand = class _PutBucketTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketTagging", {}).n("S3Client", "PutBucketTaggingCommand").f(void 0, void 0).ser(se_PutBucketTaggingCommand).de(de_PutBucketTaggingCommand).build() { - static { - __name(this, "PutBucketTaggingCommand"); - } }; - var PutBucketVersioningCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketTaggingCommand, "PutBucketTaggingCommand"); + var PutBucketTaggingCommand = _PutBucketTaggingCommand; + var _PutBucketVersioningCommand = class _PutBucketVersioningCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketVersioning", {}).n("S3Client", "PutBucketVersioningCommand").f(void 0, void 0).ser(se_PutBucketVersioningCommand).de(de_PutBucketVersioningCommand).build() { - static { - __name(this, "PutBucketVersioningCommand"); - } }; - var PutBucketWebsiteCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutBucketVersioningCommand, "PutBucketVersioningCommand"); + var PutBucketVersioningCommand = _PutBucketVersioningCommand; + var _PutBucketWebsiteCommand = class _PutBucketWebsiteCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutBucketWebsite", {}).n("S3Client", "PutBucketWebsiteCommand").f(void 0, void 0).ser(se_PutBucketWebsiteCommand).de(de_PutBucketWebsiteCommand).build() { - static { - __name(this, "PutBucketWebsiteCommand"); - } }; + __name(_PutBucketWebsiteCommand, "PutBucketWebsiteCommand"); + var PutBucketWebsiteCommand = _PutBucketWebsiteCommand; var import_middleware_sdk_s354 = require_dist_cjs29(); - var PutObjectAclCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectAclCommand = class _PutObjectAclCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s354.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectAcl", {}).n("S3Client", "PutObjectAclCommand").f(void 0, void 0).ser(se_PutObjectAclCommand).de(de_PutObjectAclCommand).build() { - static { - __name(this, "PutObjectAclCommand"); - } }; + __name(_PutObjectAclCommand, "PutObjectAclCommand"); + var PutObjectAclCommand = _PutObjectAclCommand; var import_middleware_sdk_s355 = require_dist_cjs29(); - var PutObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s355.getCheckContentLengthHeaderPlugin)(config), @@ -50434,131 +50880,130 @@ var require_dist_cjs69 = __commonJS({ (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "PutObject", {}).n("S3Client", "PutObjectCommand").f(PutObjectRequestFilterSensitiveLog, PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build() { - static { - __name(this, "PutObjectCommand"); - } }; + __name(_PutObjectCommand, "PutObjectCommand"); + var PutObjectCommand = _PutObjectCommand; var import_middleware_sdk_s356 = require_dist_cjs29(); - var PutObjectLegalHoldCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectLegalHoldCommand = class _PutObjectLegalHoldCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s356.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectLegalHold", {}).n("S3Client", "PutObjectLegalHoldCommand").f(void 0, void 0).ser(se_PutObjectLegalHoldCommand).de(de_PutObjectLegalHoldCommand).build() { - static { - __name(this, "PutObjectLegalHoldCommand"); - } }; + __name(_PutObjectLegalHoldCommand, "PutObjectLegalHoldCommand"); + var PutObjectLegalHoldCommand = _PutObjectLegalHoldCommand; var import_middleware_sdk_s357 = require_dist_cjs29(); - var PutObjectLockConfigurationCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectLockConfigurationCommand = class _PutObjectLockConfigurationCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s357.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectLockConfiguration", {}).n("S3Client", "PutObjectLockConfigurationCommand").f(void 0, void 0).ser(se_PutObjectLockConfigurationCommand).de(de_PutObjectLockConfigurationCommand).build() { - static { - __name(this, "PutObjectLockConfigurationCommand"); - } }; + __name(_PutObjectLockConfigurationCommand, "PutObjectLockConfigurationCommand"); + var PutObjectLockConfigurationCommand = _PutObjectLockConfigurationCommand; var import_middleware_sdk_s358 = require_dist_cjs29(); - var PutObjectRetentionCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectRetentionCommand = class _PutObjectRetentionCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s358.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectRetention", {}).n("S3Client", "PutObjectRetentionCommand").f(void 0, void 0).ser(se_PutObjectRetentionCommand).de(de_PutObjectRetentionCommand).build() { - static { - __name(this, "PutObjectRetentionCommand"); - } }; + __name(_PutObjectRetentionCommand, "PutObjectRetentionCommand"); + var PutObjectRetentionCommand = _PutObjectRetentionCommand; var import_middleware_sdk_s359 = require_dist_cjs29(); - var PutObjectTaggingCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _PutObjectTaggingCommand = class _PutObjectTaggingCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }), (0, import_middleware_sdk_s359.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "PutObjectTagging", {}).n("S3Client", "PutObjectTaggingCommand").f(void 0, void 0).ser(se_PutObjectTaggingCommand).de(de_PutObjectTaggingCommand).build() { - static { - __name(this, "PutObjectTaggingCommand"); - } }; - var PutPublicAccessBlockCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_PutObjectTaggingCommand, "PutObjectTaggingCommand"); + var PutObjectTaggingCommand = _PutObjectTaggingCommand; + var _PutPublicAccessBlockCommand = class _PutPublicAccessBlockCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: true }) ]; }).s("AmazonS3", "PutPublicAccessBlock", {}).n("S3Client", "PutPublicAccessBlockCommand").f(void 0, void 0).ser(se_PutPublicAccessBlockCommand).de(de_PutPublicAccessBlockCommand).build() { - static { - __name(this, "PutPublicAccessBlockCommand"); - } }; + __name(_PutPublicAccessBlockCommand, "PutPublicAccessBlockCommand"); + var PutPublicAccessBlockCommand = _PutPublicAccessBlockCommand; var import_middleware_sdk_s360 = require_dist_cjs29(); - var RestoreObjectCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _RestoreObjectCommand = class _RestoreObjectCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s360.getThrow200ExceptionsPlugin)(config) ]; }).s("AmazonS3", "RestoreObject", {}).n("S3Client", "RestoreObjectCommand").f(RestoreObjectRequestFilterSensitiveLog, void 0).ser(se_RestoreObjectCommand).de(de_RestoreObjectCommand).build() { - static { - __name(this, "RestoreObjectCommand"); - } }; + __name(_RestoreObjectCommand, "RestoreObjectCommand"); + var RestoreObjectCommand = _RestoreObjectCommand; var import_middleware_sdk_s361 = require_dist_cjs29(); - var SelectObjectContentCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _SelectObjectContentCommand = class _SelectObjectContentCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s361.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; @@ -50570,62 +51015,59 @@ var require_dist_cjs69 = __commonJS({ output: true } }).n("S3Client", "SelectObjectContentCommand").f(SelectObjectContentRequestFilterSensitiveLog, SelectObjectContentOutputFilterSensitiveLog).ser(se_SelectObjectContentCommand).de(de_SelectObjectContentCommand).build() { - static { - __name(this, "SelectObjectContentCommand"); - } }; + __name(_SelectObjectContentCommand, "SelectObjectContentCommand"); + var SelectObjectContentCommand = _SelectObjectContentCommand; var import_middleware_sdk_s362 = require_dist_cjs29(); - var UploadPartCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _UploadPartCommand = class _UploadPartCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, { - requestAlgorithmMember: { httpHeader: "x-amz-sdk-checksum-algorithm", name: "ChecksumAlgorithm" }, + requestAlgorithmMember: "ChecksumAlgorithm", + requestAlgorithmMemberHttpHeader: "x-amz-sdk-checksum-algorithm", requestChecksumRequired: false }), (0, import_middleware_sdk_s362.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "UploadPart", {}).n("S3Client", "UploadPartCommand").f(UploadPartRequestFilterSensitiveLog, UploadPartOutputFilterSensitiveLog).ser(se_UploadPartCommand).de(de_UploadPartCommand).build() { - static { - __name(this, "UploadPartCommand"); - } }; + __name(_UploadPartCommand, "UploadPartCommand"); + var UploadPartCommand = _UploadPartCommand; var import_middleware_sdk_s363 = require_dist_cjs29(); - var UploadPartCopyCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + var _UploadPartCopyCommand = class _UploadPartCopyCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()), (0, import_middleware_sdk_s363.getThrow200ExceptionsPlugin)(config), (0, import_middleware_ssec.getSsecPlugin)(config) ]; }).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() { - static { - __name(this, "UploadPartCopyCommand"); - } }; - var WriteGetObjectResponseCommand = class extends import_smithy_client25.Command.classBuilder().ep({ - ...commonParams3, + __name(_UploadPartCopyCommand, "UploadPartCopyCommand"); + var UploadPartCopyCommand = _UploadPartCopyCommand; + var _WriteGetObjectResponseCommand = class _WriteGetObjectResponseCommand extends import_smithy_client4.Command.classBuilder().ep({ + ...commonParams, UseObjectLambdaEndpoint: { type: "staticContextParams", value: true } - }).m(function(Command, cs, config, o3) { + }).m(function(Command, cs, config, o) { return [ - (0, import_middleware_serde5.getSerdePlugin)(config, this.serialize, this.deserialize), - (0, import_middleware_endpoint6.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) + (0, import_middleware_serde2.getSerdePlugin)(config, this.serialize, this.deserialize), + (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ]; }).s("AmazonS3", "WriteGetObjectResponse", {}).n("S3Client", "WriteGetObjectResponseCommand").f(WriteGetObjectResponseRequestFilterSensitiveLog, void 0).ser(se_WriteGetObjectResponseCommand).de(de_WriteGetObjectResponseCommand).build() { - static { - __name(this, "WriteGetObjectResponseCommand"); - } }; - var commands3 = { + __name(_WriteGetObjectResponseCommand, "WriteGetObjectResponseCommand"); + var WriteGetObjectResponseCommand = _WriteGetObjectResponseCommand; + var commands = { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, @@ -50725,21 +51167,20 @@ var require_dist_cjs69 = __commonJS({ UploadPartCopyCommand, WriteGetObjectResponseCommand }; - var S32 = class extends S3Client { - static { - __name(this, "S3"); - } + var _S3 = class _S3 extends S3Client { }; - (0, import_smithy_client25.createAggregatedClient)(commands3, S32); + __name(_S3, "S3"); + var S32 = _S3; + (0, import_smithy_client4.createAggregatedClient)(commands, S32); var import_core42 = (init_dist_es(), __toCommonJS(dist_es_exports)); var paginateListBuckets = (0, import_core42.createPaginator)(S3Client, ListBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxBuckets"); - var import_core52 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListDirectoryBuckets = (0, import_core52.createPaginator)(S3Client, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets"); - var import_core62 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListObjectsV2 = (0, import_core62.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); - var import_core72 = (init_dist_es(), __toCommonJS(dist_es_exports)); - var paginateListParts = (0, import_core72.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); - var import_util_waiter = require_dist_cjs68(); + var import_core5 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListDirectoryBuckets = (0, import_core5.createPaginator)(S3Client, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets"); + var import_core6 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListObjectsV2 = (0, import_core6.createPaginator)(S3Client, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); + var import_core7 = (init_dist_es(), __toCommonJS(dist_es_exports)); + var paginateListParts = (0, import_core7.createPaginator)(S3Client, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); + var import_util_waiter = require_dist_cjs70(); var checkState = /* @__PURE__ */ __name(async (client, input) => { let reason; try { @@ -59439,8 +59880,8 @@ var require_mime_types = __commonJS({ return; } extensions[type] = exts; - for (var i3 = 0; i3 < exts.length; i3++) { - var extension2 = exts[i3]; + for (var i = 0; i < exts.length; i++) { + var extension2 = exts[i]; if (types[extension2]) { var from = preference.indexOf(db[types[extension2]].source); var to = preference.indexOf(mime.source); @@ -59459,7 +59900,7 @@ var require_mime_types = __commonJS({ var path = __toESM(require("node:path")); var crypto5 = __toESM(require("node:crypto")); var core = __toESM(require_core()); -var import_client_s3 = __toESM(require_dist_cjs69()); +var import_client_s3 = __toESM(require_dist_cjs71()); var import_mime_types = __toESM(require_mime_types()); // src/size_limit.ts