diff --git a/package.json b/package.json index 8c7237567a431..fbd0aee37880c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@types/prettier": "2.6.0", "@yarnpkg/lockfile": "^1.1.0", "aws-sdk-js-codemod": "^0.28.2", - "cdk-generate-synthetic-examples": "^0.1.302", + "cdk-generate-synthetic-examples": "^0.1.303", "conventional-changelog-cli": "^2.2.2", "fs-extra": "^9.1.0", "graceful-fs": "^4.2.11", @@ -28,11 +28,11 @@ "jsii-diff": "1.94.0", "jsii-pacmak": "1.94.0", "jsii-reflect": "1.94.0", - "jsii-rosetta": "~5.3.9", + "jsii-rosetta": "~5.3.15", "lerna": "^7.4.2", "nx": "^16.10.0", "patch-package": "^6.5.1", - "semver": "^7.5.4", + "semver": "^7.6.0", "standard-version": "^9.5.0", "ts-jest": "^29.1.2", "ts-node": "^10.9.2", diff --git a/packages/@aws-cdk-testing/cli-integ/package.json b/packages/@aws-cdk-testing/cli-integ/package.json index b4c8f73232fdb..27ba6d78100a2 100644 --- a/packages/@aws-cdk-testing/cli-integ/package.json +++ b/packages/@aws-cdk-testing/cli-integ/package.json @@ -30,7 +30,7 @@ "license": "Apache-2.0", "devDependencies": { "@aws-cdk/cdk-build-tools": "0.0.0", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", @@ -39,7 +39,7 @@ }, "dependencies": { "@octokit/rest": "^18.12.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "axios": "^1.6.7", "fs-extra": "^9.1.0", "glob": "^7.2.3", @@ -48,7 +48,7 @@ "make-runnable": "^1.4.1", "npm": "^8.19.4", "p-queue": "^6.6.2", - "semver": "^7.5.4", + "semver": "^7.6.0", "sinon": "^9.2.4", "ts-mock-imports": "^1.3.8", "yaml": "1.10.2", diff --git a/packages/@aws-cdk-testing/framework-integ/package.json b/packages/@aws-cdk-testing/framework-integ/package.json index deffb66816533..484fe220b916e 100644 --- a/packages/@aws-cdk-testing/framework-integ/package.json +++ b/packages/@aws-cdk-testing/framework-integ/package.json @@ -41,10 +41,10 @@ "@aws-cdk/integ-tests-alpha": "0.0.0", "@aws-cdk/lambda-layer-kubectl-v24": "^2.0.242", "aws-cdk-lib": "0.0.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "aws-sdk-mock": "5.6.0", - "cdk8s": "2.68.33", - "cdk8s-plus-27": "2.7.75", + "cdk8s": "2.68.37", + "cdk8s-plus-27": "2.7.77", "constructs": "^10.0.0" }, "repository": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json index a8ee0a3b6b08c..07b64f10dba94 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4": { + "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17": { "source": { - "path": "asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle", + "path": "asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.zip", + "objectKey": "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5": { + "04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0": { "source": { "path": "LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5.json", + "objectKey": "04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json index b25a269d34123..ba92131b3e4c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1706034179137" + "salt": "1707936553352" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.zip" + "S3Key": "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.zip" }, "Timeout": 120, "Handler": "index.handler", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js index c13d3dc96a272..58396e8540522 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js @@ -14732,9 +14732,11 @@ var require_runtimeConfig_shared = __commonJS({ // ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js var require_dist_cjs45 = __commonJS({ "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) { + var __create2 = Object.create; var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __getProtoOf2 = Object.getPrototypeOf; var __hasOwnProp2 = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); var __export2 = (target, all) => { @@ -14749,6 +14751,14 @@ var require_dist_cjs45 = __commonJS({ } return to; }; + var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, + mod + )); var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { @@ -14756,7 +14766,6 @@ var require_dist_cjs45 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_config_resolver = require_dist_cjs21(); - var import_credential_provider_imds = require_dist_cjs40(); var import_node_config_provider = require_dist_cjs24(); var import_property_provider = require_dist_cjs6(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; @@ -14819,8 +14828,9 @@ var require_dist_cjs45 = __commonJS({ } if (!process.env[ENV_IMDS_DISABLED]) { try { - const endpoint = await (0, import_credential_provider_imds.getInstanceMetadataEndpoint)(); - return (await (0, import_credential_provider_imds.httpRequest)({ ...endpoint, path: IMDS_REGION_PATH })).toString(); + const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40())); + const endpoint = await getInstanceMetadataEndpoint(); + return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); } catch (e) { } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js similarity index 74% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js index 0097f007d1901..c49f73b358355 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js @@ -1,12 +1,12 @@ -"use strict";var TL=Object.create;var Wa=Object.defineProperty;var BL=Object.getOwnPropertyDescriptor;var qL=Object.getOwnPropertyNames;var DL=Object.getPrototypeOf,ML=Object.prototype.hasOwnProperty;var Le=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ai=(e,n)=>{for(var t in n)Wa(e,t,{get:n[t],enumerable:!0})},US=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qL(n))!ML.call(e,o)&&o!==t&&Wa(e,o,{get:()=>n[o],enumerable:!(r=BL(n,o))||r.enumerable});return e};var Oi=(e,n,t)=>(t=e!=null?TL(DL(e)):{},US(n||!e||!e.__esModule?Wa(t,"default",{value:e,enumerable:!0}):t,e)),Y=e=>US(Wa({},"__esModule",{value:!0}),e);var ee={};Ai(ee,{__addDisposableResource:()=>db,__assign:()=>Ya,__asyncDelegator:()=>tb,__asyncGenerator:()=>eb,__asyncValues:()=>nb,__await:()=>br,__awaiter:()=>XS,__classPrivateFieldGet:()=>ib,__classPrivateFieldIn:()=>cb,__classPrivateFieldSet:()=>ab,__createBinding:()=>Qa,__decorate:()=>$S,__disposeResources:()=>lb,__esDecorate:()=>FL,__exportStar:()=>YS,__extends:()=>GS,__generator:()=>WS,__importDefault:()=>sb,__importStar:()=>ob,__makeTemplateObject:()=>rb,__metadata:()=>VS,__param:()=>KS,__propKey:()=>jL,__read:()=>zm,__rest:()=>HS,__runInitializers:()=>LL,__setFunctionName:()=>zL,__spread:()=>JS,__spreadArray:()=>ZS,__spreadArrays:()=>QS,__values:()=>Ja,default:()=>HL});function GS(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");jm(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function HS(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function KS(e,n){return function(t,r){n(t,r,e)}}function FL(e,n,t,r,o,s){function c(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!n&&e?r.static?e:e.prototype:null,a=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=t.length-1;C>=0;C--){var v={};for(var A in r)v[A]=A==="access"?{}:r[A];for(var A in r.access)v.access[A]=r.access[A];v.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(c(G||null))};var E=(0,t[C])(i==="accessor"?{get:a.get,set:a.set}:a[u],v);if(i==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(y=c(E.get))&&(a.get=y),(y=c(E.set))&&(a.set=y),(y=c(E.init))&&o.unshift(y)}else(y=c(E))&&(i==="field"?o.unshift(y):a[u]=y)}l&&Object.defineProperty(l,r.name,a),g=!0}function LL(e,n,t){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zm(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function JS(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof br?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tb(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:br(e[o](c)),done:!1}:s?s(c):c}:s}}function nb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Ja=="function"?Ja(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rb(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function ob(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Qa(n,e,t);return UL(n,e),n}function sb(e){return e&&e.__esModule?e:{default:e}}function ib(e,n,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(e):r?r.value:n.get(e)}function ab(e,n,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?e!==n||!o:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,t):o?o.value=t:n.set(e,t),t}function cb(e,n){if(n===null||typeof n!="object"&&typeof n!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?n===e:e.has(n)}function db(e,n,t){if(n!=null){if(typeof n!="object"&&typeof n!="function")throw new TypeError("Object expected.");var r;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}function lb(e){function n(r){e.error=e.hasError?new GL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function t(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(t,function(s){return n(s),t()})}catch(s){n(s)}}if(e.hasError)throw e.error}return t()}var jm,Ya,Qa,UL,GL,HL,te=Le(()=>{jm=function(e,n){return jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},jm(e,n)};Ya=function(){return Ya=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{var Za=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,KL=Object.getOwnPropertyNames,VL=Object.prototype.hasOwnProperty,ec=(e,n)=>Za(e,"name",{value:n,configurable:!0}),XL=(e,n)=>{for(var t in n)Za(e,t,{get:n[t],enumerable:!0})},WL=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of KL(n))!VL.call(e,o)&&o!==t&&Za(e,o,{get:()=>n[o],enumerable:!(r=$L(n,o))||r.enumerable});return e},YL=e=>WL(Za({},"__esModule",{value:!0}),e),ub={};XL(ub,{AlgorithmId:()=>yb,EndpointURLScheme:()=>fb,FieldPosition:()=>gb,HttpApiKeyAuthLocation:()=>pb,HttpAuthLocation:()=>mb,IniSectionType:()=>hb,RequestHandlerProtocol:()=>_b,SMITHY_CONTEXT_KEY:()=>tj,getDefaultClientConfiguration:()=>ZL,resolveDefaultRuntimeConfig:()=>ej});Cb.exports=YL(ub);var mb=(e=>(e.HEADER="header",e.QUERY="query",e))(mb||{}),pb=(e=>(e.HEADER="header",e.QUERY="query",e))(pb||{}),fb=(e=>(e.HTTP="http",e.HTTPS="https",e))(fb||{}),yb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(yb||{}),JL=ec(e=>{let n=[];return e.sha256!==void 0&&n.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&n.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),QL=ec(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),ZL=ec(e=>({...JL(e)}),"getDefaultClientConfiguration"),ej=ec(e=>({...QL(e)}),"resolveDefaultRuntimeConfig"),gb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(gb||{}),tj="__smithy_context",hb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(hb||{}),_b=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(_b||{})});var Ne=m((dbe,Ab)=>{var tc=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,wn=(e,n)=>tc(e,"name",{value:n,configurable:!0}),sj=(e,n)=>{for(var t in n)tc(e,t,{get:n[t],enumerable:!0})},ij=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rj(n))!oj.call(e,o)&&o!==t&&tc(e,o,{get:()=>n[o],enumerable:!(r=nj(n,o))||r.enumerable});return e},aj=e=>ij(tc({},"__esModule",{value:!0}),e),Sb={};sj(Sb,{Field:()=>uj,Fields:()=>mj,HttpRequest:()=>pj,HttpResponse:()=>fj,getHttpHandlerExtensionConfiguration:()=>cj,isValidHostname:()=>kb,resolveHttpHandlerRuntimeConfig:()=>dj});Ab.exports=aj(Sb);var cj=wn(e=>{let n=e.httpHandler;return{setHttpHandler(t){n=t},httpHandler(){return n},updateHttpClientConfig(t,r){n.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return n.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),dj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),lj=w(),bb=class{constructor({name:n,kind:t=lj.FieldPosition.HEADER,values:r=[]}){this.name=n,this.kind=t,this.values=r}add(n){this.values.push(n)}set(n){this.values=n}remove(n){this.values=this.values.filter(t=>t!==n)}toString(){return this.values.map(n=>n.includes(",")||n.includes(" ")?`"${n}"`:n).join(", ")}get(){return this.values}};wn(bb,"Field");var uj=bb,Eb=class{constructor({fields:n=[],encoding:t="utf-8"}){this.entries={},n.forEach(this.setField.bind(this)),this.encoding=t}setField(n){this.entries[n.name.toLowerCase()]=n}getField(n){return this.entries[n.toLowerCase()]}removeField(n){delete this.entries[n.toLowerCase()]}getByType(n){return Object.values(this.entries).filter(t=>t.kind===n)}};wn(Eb,"Fields");var mj=Eb,Pb=class vb{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static isInstance(n){if(!n)return!1;let t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){let n=new vb({...this,headers:{...this.headers}});return n.query&&(n.query=wb(n.query)),n}};wn(Pb,"HttpRequest");var pj=Pb;function wb(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}wn(wb,"cloneQuery");var xb=class{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;let t=n;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};wn(xb,"HttpResponse");var fj=xb;function kb(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(kb,"isValidHostname")});var Nb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var yj=Ne();function Ob(e){return n=>async t=>{let{request:r}=t;return yj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}Zt.addExpectContinueMiddleware=Ob;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var gj=e=>({applyToStack:n=>{n.add(Ob(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=gj});var Ni=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.getHostHeaderPlugin=pt.hostHeaderMiddlewareOptions=pt.hostHeaderMiddleware=pt.resolveHostHeaderConfig=void 0;var hj=Ne();function _j(e){return e}pt.resolveHostHeaderConfig=_j;var Cj=e=>n=>async t=>{if(!hj.HttpRequest.isInstance(t.request))return n(t);let{request:r}=t,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return n(t)};pt.hostHeaderMiddleware=Cj;pt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Sj=e=>({applyToStack:n=>{n.add((0,pt.hostHeaderMiddleware)(e),pt.hostHeaderMiddlewareOptions)}});pt.getHostHeaderPlugin=Sj});var Ib=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var bj=()=>(e,n)=>async t=>{var r,o;try{let s=await e(t),{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a,overrideOutputFilterSensitiveLog:y}=l,g=a??n.inputFilterSensitiveLog,C=y??n.outputFilterSensitiveLog,{$metadata:v,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:c,commandName:i,input:g(t.input),output:C(A),metadata:v}),s}catch(s){let{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a}=l,y=a??n.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:c,commandName:i,input:y(t.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=bj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Ej=e=>({applyToStack:n=>{n.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Ej});var Ii=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Pj=(te(),Y(ee));Pj.__exportStar(Ib(),Um)});var Ri=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var vj=Ne(),Rb="X-Amzn-Trace-Id",wj="AWS_LAMBDA_FUNCTION_NAME",xj="_X_AMZN_TRACE_ID",kj=e=>n=>async t=>{let{request:r}=t;if(!vj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Rb))return n(t);let o=process.env[wj],s=process.env[xj],c=i=>typeof i=="string"&&i.length>0;return c(o)&&c(s)&&(r.headers[Rb]=s),n({...t,request:r})};It.recursionDetectionMiddleware=kj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Aj=e=>({applyToStack:n=>{n.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Aj});var Mb=m((ybe,Db)=>{var nc=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Ij=Object.prototype.hasOwnProperty,ft=(e,n)=>nc(e,"name",{value:n,configurable:!0}),Rj=(e,n)=>{for(var t in n)nc(e,t,{get:n[t],enumerable:!0})},Tj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Nj(n))!Ij.call(e,o)&&o!==t&&nc(e,o,{get:()=>n[o],enumerable:!(r=Oj(n,o))||r.enumerable});return e},Bj=e=>Tj(nc({},"__esModule",{value:!0}),e),qb={};Rj(qb,{constructStack:()=>Gm});Db.exports=Bj(qb);var ir=ft((e,n)=>{let t=[];if(e&&t.push(e),n)for(let r of n)t.push(r);return t},"getAllAliases"),xn=ft((e,n)=>`${e||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Gm=ft(()=>{let e=[],n=[],t=!1,r=new Set,o=ft(y=>y.sort((g,C)=>Tb[C.step]-Tb[g.step]||Bb[C.priority||"normal"]-Bb[g.priority||"normal"]),"sort"),s=ft(y=>{let g=!1,C=ft(v=>{let A=ir(v.name,v.aliases);if(A.includes(y)){g=!0;for(let E of A)r.delete(E);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByName"),c=ft(y=>{let g=!1,C=ft(v=>{if(v.middleware===y){g=!0;for(let A of ir(v.name,v.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByReference"),i=ft(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),n.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,a.identifyOnResolve()),y},"cloneTo"),u=ft(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=ft((y=!1)=>{let g=[],C=[],v={};return e.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;g.push(G)}),n.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;C.push(G)}),C.forEach(E=>{if(E.toMiddleware){let G=v[E.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${E.toMiddleware} is not found when adding ${xn(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&G.after.push(E),E.relation==="before"&&G.before.push(E)}}),o(g).map(u).reduce((E,G)=>(E.push(...G),E),[])},"getMiddlewareList"),a={add:(y,g={})=>{let{name:C,override:v,aliases:A}=g,E={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=e.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=e[nt];if(Ae.step!==E.step||E.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(nt,1)}}for(let ye of G)r.add(ye)}e.push(E)},addRelativeTo:(y,g)=>{let{name:C,override:v,aliases:A}=g,E={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=n.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=n[nt];if(Ae.toMiddleware!==E.toMiddleware||Ae.relation!==E.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);n.splice(nt,1)}}for(let ye of G)r.add(ye)}n.push(E)},clone:()=>i(Gm()),use:y=>{y.applyToStack(a)},remove:y=>typeof y=="string"?s(y):c(y),removeByTag:y=>{let g=!1,C=ft(v=>{let{tags:A,name:E,aliases:G}=v;if(A&&A.includes(y)){let ye=ir(E,G);for(let nt of ye)r.delete(nt);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},concat:y=>{var g;let C=i(Gm());return C.use(y),C.identifyOnResolve(t||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(t=y),t},resolve:(y,g)=>{for(let C of l().map(v=>v.middleware).reverse())y=C(y,g);return t&&console.log(a.identify()),y}};return a},"constructStack"),Tb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Bb={high:3,normal:2,low:1}});var oc=m((gbe,Lb)=>{var rc=Object.defineProperty,qj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyNames,Mj=Object.prototype.hasOwnProperty,Fj=(e,n)=>rc(e,"name",{value:n,configurable:!0}),Lj=(e,n)=>{for(var t in n)rc(e,t,{get:n[t],enumerable:!0})},jj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Dj(n))!Mj.call(e,o)&&o!==t&&rc(e,o,{get:()=>n[o],enumerable:!(r=qj(n,o))||r.enumerable});return e},zj=e=>jj(rc({},"__esModule",{value:!0}),e),Fb={};Lj(Fb,{isArrayBuffer:()=>Uj});Lb.exports=zj(Fb);var Uj=Fj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var Er=m((hbe,Ub)=>{var sc=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,Hj=Object.getOwnPropertyNames,$j=Object.prototype.hasOwnProperty,jb=(e,n)=>sc(e,"name",{value:n,configurable:!0}),Kj=(e,n)=>{for(var t in n)sc(e,t,{get:n[t],enumerable:!0})},Vj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Hj(n))!$j.call(e,o)&&o!==t&&sc(e,o,{get:()=>n[o],enumerable:!(r=Gj(n,o))||r.enumerable});return e},Xj=e=>Vj(sc({},"__esModule",{value:!0}),e),zb={};Kj(zb,{fromArrayBuffer:()=>Yj,fromString:()=>Jj});Ub.exports=Xj(zb);var Wj=oc(),Hm=require("buffer"),Yj=jb((e,n=0,t=e.byteLength-n)=>{if(!(0,Wj.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Hm.Buffer.from(e,n,t)},"fromArrayBuffer"),Jj=jb((e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?Hm.Buffer.from(e,n):Hm.Buffer.from(e)},"fromString")});var Gb=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.fromBase64=void 0;var Qj=Er(),Zj=/^[A-Za-z0-9+/]*={0,2}$/,ez=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Zj.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,Qj.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};ic.fromBase64=ez});var Hb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.toBase64=void 0;var tz=Er(),nz=e=>(0,tz.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");ac.toBase64=nz});var Pr=m((Sbe,cc)=>{var $b=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,oz=Object.getOwnPropertyNames,sz=Object.prototype.hasOwnProperty,$m=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oz(n))!sz.call(e,o)&&o!==t&&$b(e,o,{get:()=>n[o],enumerable:!(r=rz(n,o))||r.enumerable});return e},Kb=(e,n,t)=>($m(e,n,"default"),t&&$m(t,n,"default")),iz=e=>$m($b({},"__esModule",{value:!0}),e),Km={};cc.exports=iz(Km);Kb(Km,Gb(),cc.exports);Kb(Km,Hb(),cc.exports)});var yt=m((bbe,Yb)=>{var dc=Object.defineProperty,az=Object.getOwnPropertyDescriptor,cz=Object.getOwnPropertyNames,dz=Object.prototype.hasOwnProperty,Vm=(e,n)=>dc(e,"name",{value:n,configurable:!0}),lz=(e,n)=>{for(var t in n)dc(e,t,{get:n[t],enumerable:!0})},uz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cz(n))!dz.call(e,o)&&o!==t&&dc(e,o,{get:()=>n[o],enumerable:!(r=az(n,o))||r.enumerable});return e},mz=e=>uz(dc({},"__esModule",{value:!0}),e),Vb={};lz(Vb,{fromUtf8:()=>Wb,toUint8Array:()=>pz,toUtf8:()=>fz});Yb.exports=mz(Vb);var Xb=Er(),Wb=Vm(e=>{let n=(0,Xb.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pz=Vm(e=>typeof e=="string"?Wb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),fz=Vm(e=>(0,Xb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),"toUtf8")});var Jb=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.getAwsChunkedEncodingStream=void 0;var yz=require("stream"),gz=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=n,i=t!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,u=i?c(o,e):void 0,l=new yz.Readable({read:()=>{}});return e.on("data",a=>{let y=r(a)||0;l.push(`${y.toString(16)}\r +"use strict";var TL=Object.create;var Ya=Object.defineProperty;var BL=Object.getOwnPropertyDescriptor;var qL=Object.getOwnPropertyNames;var DL=Object.getPrototypeOf,ML=Object.prototype.hasOwnProperty;var Le=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ai=(e,n)=>{for(var t in n)Ya(e,t,{get:n[t],enumerable:!0})},US=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qL(n))!ML.call(e,o)&&o!==t&&Ya(e,o,{get:()=>n[o],enumerable:!(r=BL(n,o))||r.enumerable});return e};var Oi=(e,n,t)=>(t=e!=null?TL(DL(e)):{},US(n||!e||!e.__esModule?Ya(t,"default",{value:e,enumerable:!0}):t,e)),Y=e=>US(Ya({},"__esModule",{value:!0}),e);var ee={};Ai(ee,{__addDisposableResource:()=>db,__assign:()=>Ja,__asyncDelegator:()=>tb,__asyncGenerator:()=>eb,__asyncValues:()=>nb,__await:()=>br,__awaiter:()=>XS,__classPrivateFieldGet:()=>ib,__classPrivateFieldIn:()=>cb,__classPrivateFieldSet:()=>ab,__createBinding:()=>Za,__decorate:()=>$S,__disposeResources:()=>lb,__esDecorate:()=>FL,__exportStar:()=>YS,__extends:()=>GS,__generator:()=>WS,__importDefault:()=>sb,__importStar:()=>ob,__makeTemplateObject:()=>rb,__metadata:()=>VS,__param:()=>KS,__propKey:()=>jL,__read:()=>zm,__rest:()=>HS,__runInitializers:()=>LL,__setFunctionName:()=>zL,__spread:()=>JS,__spreadArray:()=>ZS,__spreadArrays:()=>QS,__values:()=>Qa,default:()=>HL});function GS(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");jm(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function HS(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function KS(e,n){return function(t,r){n(t,r,e)}}function FL(e,n,t,r,o,s){function c(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!n&&e?r.static?e:e.prototype:null,a=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=t.length-1;C>=0;C--){var v={};for(var A in r)v[A]=A==="access"?{}:r[A];for(var A in r.access)v.access[A]=r.access[A];v.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(c(G||null))};var E=(0,t[C])(i==="accessor"?{get:a.get,set:a.set}:a[u],v);if(i==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(y=c(E.get))&&(a.get=y),(y=c(E.set))&&(a.set=y),(y=c(E.init))&&o.unshift(y)}else(y=c(E))&&(i==="field"?o.unshift(y):a[u]=y)}l&&Object.defineProperty(l,r.name,a),g=!0}function LL(e,n,t){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zm(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function JS(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof br?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tb(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:br(e[o](c)),done:!1}:s?s(c):c}:s}}function nb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Qa=="function"?Qa(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rb(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function ob(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Za(n,e,t);return UL(n,e),n}function sb(e){return e&&e.__esModule?e:{default:e}}function ib(e,n,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(e):r?r.value:n.get(e)}function ab(e,n,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?e!==n||!o:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,t):o?o.value=t:n.set(e,t),t}function cb(e,n){if(n===null||typeof n!="object"&&typeof n!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?n===e:e.has(n)}function db(e,n,t){if(n!=null){if(typeof n!="object"&&typeof n!="function")throw new TypeError("Object expected.");var r;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}function lb(e){function n(r){e.error=e.hasError?new GL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function t(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(t,function(s){return n(s),t()})}catch(s){n(s)}}if(e.hasError)throw e.error}return t()}var jm,Ja,Za,UL,GL,HL,te=Le(()=>{jm=function(e,n){return jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},jm(e,n)};Ja=function(){return Ja=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{var ec=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,KL=Object.getOwnPropertyNames,VL=Object.prototype.hasOwnProperty,tc=(e,n)=>ec(e,"name",{value:n,configurable:!0}),XL=(e,n)=>{for(var t in n)ec(e,t,{get:n[t],enumerable:!0})},WL=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of KL(n))!VL.call(e,o)&&o!==t&&ec(e,o,{get:()=>n[o],enumerable:!(r=$L(n,o))||r.enumerable});return e},YL=e=>WL(ec({},"__esModule",{value:!0}),e),ub={};XL(ub,{AlgorithmId:()=>yb,EndpointURLScheme:()=>fb,FieldPosition:()=>gb,HttpApiKeyAuthLocation:()=>pb,HttpAuthLocation:()=>mb,IniSectionType:()=>hb,RequestHandlerProtocol:()=>_b,SMITHY_CONTEXT_KEY:()=>tj,getDefaultClientConfiguration:()=>ZL,resolveDefaultRuntimeConfig:()=>ej});Cb.exports=YL(ub);var mb=(e=>(e.HEADER="header",e.QUERY="query",e))(mb||{}),pb=(e=>(e.HEADER="header",e.QUERY="query",e))(pb||{}),fb=(e=>(e.HTTP="http",e.HTTPS="https",e))(fb||{}),yb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(yb||{}),JL=tc(e=>{let n=[];return e.sha256!==void 0&&n.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&n.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),QL=tc(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),ZL=tc(e=>({...JL(e)}),"getDefaultClientConfiguration"),ej=tc(e=>({...QL(e)}),"resolveDefaultRuntimeConfig"),gb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(gb||{}),tj="__smithy_context",hb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(hb||{}),_b=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(_b||{})});var Ne=m((ube,Ab)=>{var nc=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,wn=(e,n)=>nc(e,"name",{value:n,configurable:!0}),sj=(e,n)=>{for(var t in n)nc(e,t,{get:n[t],enumerable:!0})},ij=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rj(n))!oj.call(e,o)&&o!==t&&nc(e,o,{get:()=>n[o],enumerable:!(r=nj(n,o))||r.enumerable});return e},aj=e=>ij(nc({},"__esModule",{value:!0}),e),Sb={};sj(Sb,{Field:()=>uj,Fields:()=>mj,HttpRequest:()=>pj,HttpResponse:()=>fj,getHttpHandlerExtensionConfiguration:()=>cj,isValidHostname:()=>kb,resolveHttpHandlerRuntimeConfig:()=>dj});Ab.exports=aj(Sb);var cj=wn(e=>{let n=e.httpHandler;return{setHttpHandler(t){n=t},httpHandler(){return n},updateHttpClientConfig(t,r){n.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return n.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),dj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),lj=w(),bb=class{constructor({name:n,kind:t=lj.FieldPosition.HEADER,values:r=[]}){this.name=n,this.kind=t,this.values=r}add(n){this.values.push(n)}set(n){this.values=n}remove(n){this.values=this.values.filter(t=>t!==n)}toString(){return this.values.map(n=>n.includes(",")||n.includes(" ")?`"${n}"`:n).join(", ")}get(){return this.values}};wn(bb,"Field");var uj=bb,Eb=class{constructor({fields:n=[],encoding:t="utf-8"}){this.entries={},n.forEach(this.setField.bind(this)),this.encoding=t}setField(n){this.entries[n.name.toLowerCase()]=n}getField(n){return this.entries[n.toLowerCase()]}removeField(n){delete this.entries[n.toLowerCase()]}getByType(n){return Object.values(this.entries).filter(t=>t.kind===n)}};wn(Eb,"Fields");var mj=Eb,Pb=class vb{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static isInstance(n){if(!n)return!1;let t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){let n=new vb({...this,headers:{...this.headers}});return n.query&&(n.query=wb(n.query)),n}};wn(Pb,"HttpRequest");var pj=Pb;function wb(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}wn(wb,"cloneQuery");var xb=class{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;let t=n;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};wn(xb,"HttpResponse");var fj=xb;function kb(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(kb,"isValidHostname")});var Nb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var yj=Ne();function Ob(e){return n=>async t=>{let{request:r}=t;return yj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}Zt.addExpectContinueMiddleware=Ob;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var gj=e=>({applyToStack:n=>{n.add(Ob(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=gj});var Ni=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.getHostHeaderPlugin=pt.hostHeaderMiddlewareOptions=pt.hostHeaderMiddleware=pt.resolveHostHeaderConfig=void 0;var hj=Ne();function _j(e){return e}pt.resolveHostHeaderConfig=_j;var Cj=e=>n=>async t=>{if(!hj.HttpRequest.isInstance(t.request))return n(t);let{request:r}=t,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return n(t)};pt.hostHeaderMiddleware=Cj;pt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Sj=e=>({applyToStack:n=>{n.add((0,pt.hostHeaderMiddleware)(e),pt.hostHeaderMiddlewareOptions)}});pt.getHostHeaderPlugin=Sj});var Ib=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var bj=()=>(e,n)=>async t=>{var r,o;try{let s=await e(t),{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a,overrideOutputFilterSensitiveLog:y}=l,g=a??n.inputFilterSensitiveLog,C=y??n.outputFilterSensitiveLog,{$metadata:v,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:c,commandName:i,input:g(t.input),output:C(A),metadata:v}),s}catch(s){let{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a}=l,y=a??n.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:c,commandName:i,input:y(t.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=bj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Ej=e=>({applyToStack:n=>{n.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Ej});var Ii=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Pj=(te(),Y(ee));Pj.__exportStar(Ib(),Um)});var Ri=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var vj=Ne(),Rb="X-Amzn-Trace-Id",wj="AWS_LAMBDA_FUNCTION_NAME",xj="_X_AMZN_TRACE_ID",kj=e=>n=>async t=>{let{request:r}=t;if(!vj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Rb))return n(t);let o=process.env[wj],s=process.env[xj],c=i=>typeof i=="string"&&i.length>0;return c(o)&&c(s)&&(r.headers[Rb]=s),n({...t,request:r})};It.recursionDetectionMiddleware=kj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Aj=e=>({applyToStack:n=>{n.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Aj});var Mb=m((hbe,Db)=>{var rc=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Ij=Object.prototype.hasOwnProperty,ft=(e,n)=>rc(e,"name",{value:n,configurable:!0}),Rj=(e,n)=>{for(var t in n)rc(e,t,{get:n[t],enumerable:!0})},Tj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Nj(n))!Ij.call(e,o)&&o!==t&&rc(e,o,{get:()=>n[o],enumerable:!(r=Oj(n,o))||r.enumerable});return e},Bj=e=>Tj(rc({},"__esModule",{value:!0}),e),qb={};Rj(qb,{constructStack:()=>Gm});Db.exports=Bj(qb);var ir=ft((e,n)=>{let t=[];if(e&&t.push(e),n)for(let r of n)t.push(r);return t},"getAllAliases"),xn=ft((e,n)=>`${e||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Gm=ft(()=>{let e=[],n=[],t=!1,r=new Set,o=ft(y=>y.sort((g,C)=>Tb[C.step]-Tb[g.step]||Bb[C.priority||"normal"]-Bb[g.priority||"normal"]),"sort"),s=ft(y=>{let g=!1,C=ft(v=>{let A=ir(v.name,v.aliases);if(A.includes(y)){g=!0;for(let E of A)r.delete(E);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByName"),c=ft(y=>{let g=!1,C=ft(v=>{if(v.middleware===y){g=!0;for(let A of ir(v.name,v.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByReference"),i=ft(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),n.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,a.identifyOnResolve()),y},"cloneTo"),u=ft(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=ft((y=!1)=>{let g=[],C=[],v={};return e.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;g.push(G)}),n.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;C.push(G)}),C.forEach(E=>{if(E.toMiddleware){let G=v[E.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${E.toMiddleware} is not found when adding ${xn(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&G.after.push(E),E.relation==="before"&&G.before.push(E)}}),o(g).map(u).reduce((E,G)=>(E.push(...G),E),[])},"getMiddlewareList"),a={add:(y,g={})=>{let{name:C,override:v,aliases:A}=g,E={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=e.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=e[nt];if(Ae.step!==E.step||E.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(nt,1)}}for(let ye of G)r.add(ye)}e.push(E)},addRelativeTo:(y,g)=>{let{name:C,override:v,aliases:A}=g,E={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=n.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=n[nt];if(Ae.toMiddleware!==E.toMiddleware||Ae.relation!==E.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);n.splice(nt,1)}}for(let ye of G)r.add(ye)}n.push(E)},clone:()=>i(Gm()),use:y=>{y.applyToStack(a)},remove:y=>typeof y=="string"?s(y):c(y),removeByTag:y=>{let g=!1,C=ft(v=>{let{tags:A,name:E,aliases:G}=v;if(A&&A.includes(y)){let ye=ir(E,G);for(let nt of ye)r.delete(nt);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},concat:y=>{var g;let C=i(Gm());return C.use(y),C.identifyOnResolve(t||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(t=y),t},resolve:(y,g)=>{for(let C of l().map(v=>v.middleware).reverse())y=C(y,g);return t&&console.log(a.identify()),y}};return a},"constructStack"),Tb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Bb={high:3,normal:2,low:1}});var sc=m((_be,Lb)=>{var oc=Object.defineProperty,qj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyNames,Mj=Object.prototype.hasOwnProperty,Fj=(e,n)=>oc(e,"name",{value:n,configurable:!0}),Lj=(e,n)=>{for(var t in n)oc(e,t,{get:n[t],enumerable:!0})},jj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Dj(n))!Mj.call(e,o)&&o!==t&&oc(e,o,{get:()=>n[o],enumerable:!(r=qj(n,o))||r.enumerable});return e},zj=e=>jj(oc({},"__esModule",{value:!0}),e),Fb={};Lj(Fb,{isArrayBuffer:()=>Uj});Lb.exports=zj(Fb);var Uj=Fj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var Er=m((Cbe,Ub)=>{var ic=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,Hj=Object.getOwnPropertyNames,$j=Object.prototype.hasOwnProperty,jb=(e,n)=>ic(e,"name",{value:n,configurable:!0}),Kj=(e,n)=>{for(var t in n)ic(e,t,{get:n[t],enumerable:!0})},Vj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Hj(n))!$j.call(e,o)&&o!==t&&ic(e,o,{get:()=>n[o],enumerable:!(r=Gj(n,o))||r.enumerable});return e},Xj=e=>Vj(ic({},"__esModule",{value:!0}),e),zb={};Kj(zb,{fromArrayBuffer:()=>Yj,fromString:()=>Jj});Ub.exports=Xj(zb);var Wj=sc(),Hm=require("buffer"),Yj=jb((e,n=0,t=e.byteLength-n)=>{if(!(0,Wj.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Hm.Buffer.from(e,n,t)},"fromArrayBuffer"),Jj=jb((e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?Hm.Buffer.from(e,n):Hm.Buffer.from(e)},"fromString")});var Gb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.fromBase64=void 0;var Qj=Er(),Zj=/^[A-Za-z0-9+/]*={0,2}$/,ez=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Zj.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,Qj.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};ac.fromBase64=ez});var Hb=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.toBase64=void 0;var tz=Er(),nz=e=>(0,tz.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");cc.toBase64=nz});var Pr=m((Ebe,dc)=>{var $b=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,oz=Object.getOwnPropertyNames,sz=Object.prototype.hasOwnProperty,$m=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oz(n))!sz.call(e,o)&&o!==t&&$b(e,o,{get:()=>n[o],enumerable:!(r=rz(n,o))||r.enumerable});return e},Kb=(e,n,t)=>($m(e,n,"default"),t&&$m(t,n,"default")),iz=e=>$m($b({},"__esModule",{value:!0}),e),Km={};dc.exports=iz(Km);Kb(Km,Gb(),dc.exports);Kb(Km,Hb(),dc.exports)});var yt=m((Pbe,Yb)=>{var lc=Object.defineProperty,az=Object.getOwnPropertyDescriptor,cz=Object.getOwnPropertyNames,dz=Object.prototype.hasOwnProperty,Vm=(e,n)=>lc(e,"name",{value:n,configurable:!0}),lz=(e,n)=>{for(var t in n)lc(e,t,{get:n[t],enumerable:!0})},uz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cz(n))!dz.call(e,o)&&o!==t&&lc(e,o,{get:()=>n[o],enumerable:!(r=az(n,o))||r.enumerable});return e},mz=e=>uz(lc({},"__esModule",{value:!0}),e),Vb={};lz(Vb,{fromUtf8:()=>Wb,toUint8Array:()=>pz,toUtf8:()=>fz});Yb.exports=mz(Vb);var Xb=Er(),Wb=Vm(e=>{let n=(0,Xb.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pz=Vm(e=>typeof e=="string"?Wb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),fz=Vm(e=>(0,Xb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),"toUtf8")});var Jb=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getAwsChunkedEncodingStream=void 0;var yz=require("stream"),gz=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=n,i=t!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,u=i?c(o,e):void 0,l=new yz.Readable({read:()=>{}});return e.on("data",a=>{let y=r(a)||0;l.push(`${y.toString(16)}\r `),l.push(a),l.push(`\r `)}),e.on("end",async()=>{if(l.push(`0\r `),i){let a=t(await u);l.push(`${s}:${a}\r `),l.push(`\r -`)}l.push(null)}),l};lc.getAwsChunkedEncodingStream=gz});var Wm=m((Pbe,eE)=>{var uc=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,_z=Object.getOwnPropertyNames,Cz=Object.prototype.hasOwnProperty,Xm=(e,n)=>uc(e,"name",{value:n,configurable:!0}),Sz=(e,n)=>{for(var t in n)uc(e,t,{get:n[t],enumerable:!0})},bz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _z(n))!Cz.call(e,o)&&o!==t&&uc(e,o,{get:()=>n[o],enumerable:!(r=hz(n,o))||r.enumerable});return e},Ez=e=>bz(uc({},"__esModule",{value:!0}),e),Qb={};Sz(Qb,{escapeUri:()=>Zb,escapeUriPath:()=>vz});eE.exports=Ez(Qb);var Zb=Xm(e=>encodeURIComponent(e).replace(/[!'()*]/g,Pz),"escapeUri"),Pz=Xm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),vz=Xm(e=>e.split("/").map(Zb).join("/"),"escapeUriPath")});var oE=m((vbe,rE)=>{var mc=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xz=Object.getOwnPropertyNames,kz=Object.prototype.hasOwnProperty,Az=(e,n)=>mc(e,"name",{value:n,configurable:!0}),Oz=(e,n)=>{for(var t in n)mc(e,t,{get:n[t],enumerable:!0})},Nz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xz(n))!kz.call(e,o)&&o!==t&&mc(e,o,{get:()=>n[o],enumerable:!(r=wz(n,o))||r.enumerable});return e},Iz=e=>Nz(mc({},"__esModule",{value:!0}),e),tE={};Oz(tE,{buildQueryString:()=>nE});rE.exports=Iz(tE);var Ym=Wm();function nE(e){let n=[];for(let t of Object.keys(e).sort()){let r=e[t];if(t=(0,Ym.escapeUri)(t),Array.isArray(r))for(let o=0,s=r.length;o{var Rz=Object.create,Ti=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,Bz=Object.getOwnPropertyNames,qz=Object.getPrototypeOf,Dz=Object.prototype.hasOwnProperty,je=(e,n)=>Ti(e,"name",{value:n,configurable:!0}),Mz=(e,n)=>{for(var t in n)Ti(e,t,{get:n[t],enumerable:!0})},dE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Bz(n))!Dz.call(e,o)&&o!==t&&Ti(e,o,{get:()=>n[o],enumerable:!(r=Tz(n,o))||r.enumerable});return e},Fz=(e,n,t)=>(t=e!=null?Rz(qz(e)):{},dE(n||!e||!e.__esModule?Ti(t,"default",{value:e,enumerable:!0}):t,e)),Lz=e=>dE(Ti({},"__esModule",{value:!0}),e),lE={};Mz(lE,{DEFAULT_REQUEST_TIMEOUT:()=>Hz,NodeHttp2Handler:()=>Wz,NodeHttpHandler:()=>$z,streamCollector:()=>Jz});PE.exports=Lz(lE);var uE=Ne(),mE=oE(),sE=require("http"),iE=require("https"),jz=["ECONNRESET","EPIPE","ETIMEDOUT"],pE=je(e=>{let n={};for(let t of Object.keys(e)){let r=e[t];n[t]=Array.isArray(r)?r.join(","):r}return n},"getTransformedHeaders"),zz=je((e,n,t=0)=>{if(!t)return;let r=setTimeout(()=>{e.destroy(),n(Object.assign(new Error(`Socket timed out without establishing a connection within ${t} ms`),{name:"TimeoutError"}))},t);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),Uz=je((e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})},"setSocketKeepAlive"),Gz=je((e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),fE=require("stream"),aE=1e3;async function Jm(e,n,t=aE){let r=n.headers??{},o=r.Expect||r.expect,s=-1,c=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(aE,t)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{c=!0,clearTimeout(s),i()})})]),c||yE(e,n.body)}je(Jm,"writeRequestBody");function yE(e,n){n instanceof fE.Readable?n.pipe(e):n?e.end(Buffer.from(n)):e.end()}je(yE,"writeBody");var Hz=0,gE=class hE{constructor(n){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(this.resolveDefaultConfig(o))}).catch(r):t(this.resolveDefaultConfig(n))})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new hE(n)}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:c}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??o,httpAgent:s||new sE.Agent({keepAlive:i,maxSockets:u}),httpsAgent:c||new iE.Agent({keepAlive:i,maxSockets:u})}}destroy(){var n,t,r,o;(t=(n=this.config)==null?void 0:n.httpAgent)==null||t.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(n,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise((r,o)=>{let s,c=je(async E=>{await s,r(E)},"resolve"),i=je(async E=>{await s,o(E)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t!=null&&t.aborted){let E=new Error("Request aborted");E.name="AbortError",i(E);return}let u=n.protocol==="https:",l=(0,mE.buildQueryString)(n.query||{}),a;if(n.username!=null||n.password!=null){let E=n.username??"",G=n.password??"";a=`${E}:${G}`}let y=n.path;l&&(y+=`?${l}`),n.fragment&&(y+=`#${n.fragment}`);let g={headers:n.headers,host:n.hostname,method:n.method,path:y,port:n.port,agent:u?this.config.httpsAgent:this.config.httpAgent,auth:a},v=(u?iE.request:sE.request)(g,E=>{let G=new uE.HttpResponse({statusCode:E.statusCode||-1,reason:E.statusMessage,headers:pE(E.headers),body:E});c({response:G})});v.on("error",E=>{jz.includes(E.code)?i(Object.assign(E,{name:"TimeoutError"})):i(E)}),zz(v,i,this.config.connectionTimeout),Gz(v,i,this.config.requestTimeout),t&&(t.onabort=()=>{v.abort();let E=new Error("Request aborted");E.name="AbortError",i(E)});let A=g.agent;typeof A=="object"&&"keepAlive"in A&&Uz(v,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}),s=Jm(v,n,this.config.requestTimeout).catch(o)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}};je(gE,"NodeHttpHandler");var $z=gE,cE=require("http2"),Kz=Fz(require("http2")),_E=class{constructor(n){this.sessions=[],this.sessions=n??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(n){this.sessions.push(n)}contains(n){return this.sessions.includes(n)}remove(n){this.sessions=this.sessions.filter(t=>t!==n)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(n){for(let t of this.sessions)t===n&&(t.destroyed||t.destroy())}};je(_E,"NodeHttp2ConnectionPool");var Vz=_E,CE=class{constructor(n){if(this.sessionCache=new Map,this.config=n,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(n,t){let r=this.getUrlString(n),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=Kz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+n.destination.toString())}),s.unref();let c=je(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",c),s.on("error",c),s.on("frameError",c),s.on("close",()=>this.deleteSession(r,s)),t.requestTimeout&&s.setTimeout(t.requestTimeout,c);let i=this.sessionCache.get(r)||new Vz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(n,t){let r=this.sessionCache.get(n);r&&r.contains(t)&&(r.remove(t),this.sessionCache.set(n,r))}release(n,t){var r;let o=this.getUrlString(n);(r=this.sessionCache.get(o))==null||r.offerLast(t)}destroy(){for(let[n,t]of this.sessionCache){for(let r of t)r.destroyed||r.destroy(),t.remove(r);this.sessionCache.delete(n)}}setMaxConcurrentStreams(n){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=n}setDisableConcurrentStreams(n){this.config.disableConcurrency=n}getUrlString(n){return n.destination.toString()}};je(CE,"NodeHttp2ConnectionManager");var Xz=CE,SE=class bE{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Xz({}),this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(o||{})}).catch(r):t(n||{})})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new bE(n)}destroy(){this.connectionManager.destroy()}async handle(n,{abortSignal:t}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,c)=>{var i;let u=!1,l,a=je(async Oe=>{await l,s(Oe)},"resolve"),y=je(async Oe=>{await l,c(Oe)},"reject");if(t!=null&&t.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:v,protocol:A,query:E}=n,G="";if(n.username!=null||n.password!=null){let Oe=n.username??"",ki=n.password??"";G=`${Oe}:${ki}@`}let ye=`${A}//${G}${g}${v?`:${v}`:""}`,nt={destination:new URL(ye)},Ae=this.connectionManager.lease(nt,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),mt=je(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,mE.buildQueryString)(E||{}),sr=n.path;vn&&(sr+=`?${vn}`),n.fragment&&(sr+=`#${n.fragment}`);let Et=Ae.request({...n.headers,[cE.constants.HTTP2_HEADER_PATH]:sr,[cE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let ki=new uE.HttpResponse({statusCode:Oe[":status"]||-1,headers:pE(Oe),body:Et});u=!0,a({response:ki}),o&&(Ae.close(),this.connectionManager.deleteSession(ye,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",mt(Oe)}),t&&(t.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",mt(Oe)}),Et.on("frameError",(Oe,ki,RL)=>{mt(new Error(`Frame type id ${Oe} in stream id ${RL} has failed with code ${ki}.`))}),Et.on("error",mt),Et.on("aborted",()=>{mt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||mt(new Error("Unexpected error: http2 request did not get a response"))}),l=Jm(Et,n,r)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}destroySession(n){n.destroyed||n.destroy()}};je(SE,"NodeHttp2Handler");var Wz=SE,EE=class extends fE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};je(EE,"Collector");var Yz=EE,Jz=je(e=>new Promise((n,t)=>{let r=new Yz;e.pipe(r),e.on("error",o=>{r.end(),t(o)}),r.on("error",t),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));n(o)})}),"streamCollector")});var wE=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.sdkStreamMixin=void 0;var Qz=vr(),Zz=Er(),Qm=require("stream"),eU=require("util"),vE="The stream has already been transformed.",tU=e=>{var n,t;if(!(e instanceof Qm.Readable)){let s=((t=(n=e==null?void 0:e.__proto__)===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(vE);return r=!0,await(0,Qz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let c=await o();return s===void 0||Buffer.isEncoding(s)?(0,Zz.fromArrayBuffer)(c.buffer,c.byteOffset,c.byteLength).toString(s):new eU.TextDecoder(s).decode(c)},transformToWebStream:()=>{if(r)throw new Error(vE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Qm.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,Qm.Readable.toWeb(e)}})};pc.sdkStreamMixin=tU});var np=m((Nbe,gc)=>{var fc=Object.defineProperty,nU=Object.getOwnPropertyDescriptor,rU=Object.getOwnPropertyNames,oU=Object.prototype.hasOwnProperty,tp=(e,n)=>fc(e,"name",{value:n,configurable:!0}),sU=(e,n)=>{for(var t in n)fc(e,t,{get:n[t],enumerable:!0})},Zm=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rU(n))!oU.call(e,o)&&o!==t&&fc(e,o,{get:()=>n[o],enumerable:!(r=nU(n,o))||r.enumerable});return e},xE=(e,n,t)=>(Zm(e,n,"default"),t&&Zm(t,n,"default")),iU=e=>Zm(fc({},"__esModule",{value:!0}),e),yc={};sU(yc,{Uint8ArrayBlobAdapter:()=>ep});gc.exports=iU(yc);var kE=Pr(),AE=yt();function OE(e,n="utf-8"){return n==="base64"?(0,kE.toBase64)(e):(0,AE.toUtf8)(e)}tp(OE,"transformToString");function NE(e,n){return n==="base64"?ep.mutate((0,kE.fromBase64)(e)):ep.mutate((0,AE.fromUtf8)(e))}tp(NE,"transformFromString");var IE=class RE extends Uint8Array{static fromString(n,t="utf-8"){switch(typeof n){case"string":return NE(n,t);default:throw new Error(`Unsupported conversion from ${typeof n} to Uint8ArrayBlobAdapter.`)}}static mutate(n){return Object.setPrototypeOf(n,RE.prototype),n}transformToString(n="utf-8"){return OE(this,n)}};tp(IE,"Uint8ArrayBlobAdapter");var ep=IE;xE(yc,Jb(),gc.exports);xE(yc,wE(),gc.exports)});var b=m((qbe,nP)=>{var bc=Object.defineProperty,aU=Object.getOwnPropertyDescriptor,cU=Object.getOwnPropertyNames,dU=Object.prototype.hasOwnProperty,U=(e,n)=>bc(e,"name",{value:n,configurable:!0}),lU=(e,n)=>{for(var t in n)bc(e,t,{get:n[t],enumerable:!0})},uU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cU(n))!dU.call(e,o)&&o!==t&&bc(e,o,{get:()=>n[o],enumerable:!(r=aU(n,o))||r.enumerable});return e},mU=e=>uU(bc({},"__esModule",{value:!0}),e),BE={};lU(BE,{Client:()=>fU,Command:()=>LE,LazyJsonString:()=>l3,NoOpLogger:()=>pU,SENSITIVE_STRING:()=>hU,ServiceException:()=>QU,StringWrapper:()=>Fi,_json:()=>dp,collectBody:()=>yU,convertMap:()=>u3,createAggregatedClient:()=>_U,dateToUtcString:()=>KE,decorateServiceException:()=>WE,emitWarningIfUnsupportedVersion:()=>n3,expectBoolean:()=>SU,expectByte:()=>cp,expectFloat32:()=>_c,expectInt:()=>EU,expectInt32:()=>ip,expectLong:()=>Di,expectNonNull:()=>vU,expectNumber:()=>qi,expectObject:()=>zE,expectShort:()=>ap,expectString:()=>wU,expectUnion:()=>xU,extendedEncodeURIComponent:()=>Sc,getArrayIfSingleItem:()=>d3,getDefaultClientConfiguration:()=>a3,getDefaultExtensionConfiguration:()=>JE,getValueFromTextNode:()=>QE,handleFloat:()=>OU,limitedParseDouble:()=>mp,limitedParseFloat:()=>NU,limitedParseFloat32:()=>IU,loadConfigsForDefaultMode:()=>t3,logger:()=>Mi,map:()=>fp,parseBoolean:()=>CU,parseEpochTimestamp:()=>GU,parseRfc3339DateTime:()=>DU,parseRfc3339DateTimeWithOffset:()=>FU,parseRfc7231DateTime:()=>UU,resolveDefaultRuntimeConfig:()=>c3,resolvedPath:()=>g3,serializeFloat:()=>h3,splitEvery:()=>tP,strictParseByte:()=>$E,strictParseDouble:()=>up,strictParseFloat:()=>kU,strictParseFloat32:()=>UE,strictParseInt:()=>RU,strictParseInt32:()=>TU,strictParseLong:()=>HE,strictParseShort:()=>wr,take:()=>m3,throwDefaultError:()=>YE,withBaseException:()=>ZU});nP.exports=mU(BE);var qE=class{trace(){}debug(){}info(){}warn(){}error(){}};U(qE,"NoOpLogger");var pU=qE,DE=Mb(),ME=class{constructor(n){this.middlewareStack=(0,DE.constructStack)(),this.config=n}send(n,t,r){let o=typeof t!="function"?t:void 0,s=typeof t=="function"?t:r,c=n.resolveMiddleware(this.middlewareStack,this.config,o);if(s)c(n).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return c(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};U(ME,"Client");var fU=ME,rp=np(),yU=U(async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return rp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return rp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return rp.Uint8ArrayBlobAdapter.mutate(await t)},"collectBody"),sp=w(),FE=class{constructor(){this.middlewareStack=(0,DE.constructStack)()}static classBuilder(){return new gU}resolveMiddlewareWithContext(n,t,r,{middlewareFn:o,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:a,CommandCtor:y}){for(let E of o.bind(this)(y,n,t,r))this.middlewareStack.use(E);let g=n.concat(this.middlewareStack),{logger:C}=t,v={logger:C,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[sp.SMITHY_CONTEXT_KEY]:{...l},...a},{requestHandler:A}=t;return g.resolve(E=>A.handle(E.request,r||{}),v)}};U(FE,"Command");var LE=FE,jE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=n=>n,this._outputFilterSensitiveLog=n=>n,this._serializer=null,this._deserializer=null}init(n){this._init=n}ep(n){return this._ep=n,this}m(n){return this._middlewareFn=n,this}s(n,t,r={}){return this._smithyContext={service:n,operation:t,...r},this}c(n={}){return this._additionalContext=n,this}n(n,t){return this._clientName=n,this._commandName=t,this}f(n=r=>r,t=r=>r){return this._inputFilterSensitiveLog=n,this._outputFilterSensitiveLog=t,this}ser(n){return this._serializer=n,this}de(n){return this._deserializer=n,this}build(){var n;let t=this,r;return r=(n=class extends LE{constructor(o){super(),this.input=o,this.serialize=t._serializer,this.deserialize=t._deserializer,t._init(this)}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(o,s,c){return this.resolveMiddlewareWithContext(o,s,c,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}},U(n,"CommandRef"),n)}};U(jE,"ClassBuilder");var gU=jE,hU="***SensitiveInformation***",_U=U((e,n)=>{for(let t of Object.keys(e)){let r=e[t],o=U(async function(c,i,u){let l=new r(c);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(t[0].toLowerCase()+t.slice(1)).replace(/Command$/,"");n.prototype[s]=o}},"createAggregatedClient"),CU=U(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),SU=U(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Mi.warn(Cc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let n=e.toLowerCase();if((n==="false"||n==="true")&&Mi.warn(Cc(`Expected boolean, got ${typeof e}: ${e}`)),n==="false")return!1;if(n==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),qi=U(e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&Mi.warn(Cc(`Expected number but observed string: ${e}`)),n}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),bU=Math.ceil(2**127*(2-2**-23)),_c=U(e=>{let n=qi(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>bU)throw new TypeError(`Expected 32-bit float, got ${e}`);return n},"expectFloat32"),Di=U(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),EU=Di,ip=U(e=>lp(e,32),"expectInt32"),ap=U(e=>lp(e,16),"expectShort"),cp=U(e=>lp(e,8),"expectByte"),lp=U((e,n)=>{let t=Di(e);if(t!==void 0&&PU(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},"expectSizedInt"),PU=U((e,n)=>{switch(n){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),vU=U((e,n)=>{if(e==null)throw n?new TypeError(`Expected a non-null value for ${n}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=U(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let n=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${n}: ${e}`)},"expectObject"),wU=U(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Mi.warn(Cc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),xU=U(e=>{if(e==null)return;let n=zE(e),t=Object.entries(n).filter(([,r])=>r!=null).map(([r])=>r);if(t.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(t.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${t} were not null.`);return n},"expectUnion"),up=U(e=>qi(typeof e=="string"?kr(e):e),"strictParseDouble"),kU=up,UE=U(e=>_c(typeof e=="string"?kr(e):e),"strictParseFloat32"),AU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kr=U(e=>{let n=e.match(AU);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),mp=U(e=>typeof e=="string"?GE(e):qi(e),"limitedParseDouble"),OU=mp,NU=mp,IU=U(e=>typeof e=="string"?GE(e):_c(e),"limitedParseFloat32"),GE=U(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),HE=U(e=>Di(typeof e=="string"?kr(e):e),"strictParseLong"),RU=HE,TU=U(e=>ip(typeof e=="string"?kr(e):e),"strictParseInt32"),wr=U(e=>ap(typeof e=="string"?kr(e):e),"strictParseShort"),$E=U(e=>cp(typeof e=="string"?kr(e):e),"strictParseByte"),Cc=U(e=>String(new TypeError(e).stack||e).split(` +`)}l.push(null)}),l};uc.getAwsChunkedEncodingStream=gz});var Wm=m((wbe,eE)=>{var mc=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,_z=Object.getOwnPropertyNames,Cz=Object.prototype.hasOwnProperty,Xm=(e,n)=>mc(e,"name",{value:n,configurable:!0}),Sz=(e,n)=>{for(var t in n)mc(e,t,{get:n[t],enumerable:!0})},bz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _z(n))!Cz.call(e,o)&&o!==t&&mc(e,o,{get:()=>n[o],enumerable:!(r=hz(n,o))||r.enumerable});return e},Ez=e=>bz(mc({},"__esModule",{value:!0}),e),Qb={};Sz(Qb,{escapeUri:()=>Zb,escapeUriPath:()=>vz});eE.exports=Ez(Qb);var Zb=Xm(e=>encodeURIComponent(e).replace(/[!'()*]/g,Pz),"escapeUri"),Pz=Xm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),vz=Xm(e=>e.split("/").map(Zb).join("/"),"escapeUriPath")});var oE=m((xbe,rE)=>{var pc=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xz=Object.getOwnPropertyNames,kz=Object.prototype.hasOwnProperty,Az=(e,n)=>pc(e,"name",{value:n,configurable:!0}),Oz=(e,n)=>{for(var t in n)pc(e,t,{get:n[t],enumerable:!0})},Nz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xz(n))!kz.call(e,o)&&o!==t&&pc(e,o,{get:()=>n[o],enumerable:!(r=wz(n,o))||r.enumerable});return e},Iz=e=>Nz(pc({},"__esModule",{value:!0}),e),tE={};Oz(tE,{buildQueryString:()=>nE});rE.exports=Iz(tE);var Ym=Wm();function nE(e){let n=[];for(let t of Object.keys(e).sort()){let r=e[t];if(t=(0,Ym.escapeUri)(t),Array.isArray(r))for(let o=0,s=r.length;o{var Rz=Object.create,Ti=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,Bz=Object.getOwnPropertyNames,qz=Object.getPrototypeOf,Dz=Object.prototype.hasOwnProperty,je=(e,n)=>Ti(e,"name",{value:n,configurable:!0}),Mz=(e,n)=>{for(var t in n)Ti(e,t,{get:n[t],enumerable:!0})},dE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Bz(n))!Dz.call(e,o)&&o!==t&&Ti(e,o,{get:()=>n[o],enumerable:!(r=Tz(n,o))||r.enumerable});return e},Fz=(e,n,t)=>(t=e!=null?Rz(qz(e)):{},dE(n||!e||!e.__esModule?Ti(t,"default",{value:e,enumerable:!0}):t,e)),Lz=e=>dE(Ti({},"__esModule",{value:!0}),e),lE={};Mz(lE,{DEFAULT_REQUEST_TIMEOUT:()=>Hz,NodeHttp2Handler:()=>Wz,NodeHttpHandler:()=>$z,streamCollector:()=>Jz});PE.exports=Lz(lE);var uE=Ne(),mE=oE(),sE=require("http"),iE=require("https"),jz=["ECONNRESET","EPIPE","ETIMEDOUT"],pE=je(e=>{let n={};for(let t of Object.keys(e)){let r=e[t];n[t]=Array.isArray(r)?r.join(","):r}return n},"getTransformedHeaders"),zz=je((e,n,t=0)=>{if(!t)return;let r=setTimeout(()=>{e.destroy(),n(Object.assign(new Error(`Socket timed out without establishing a connection within ${t} ms`),{name:"TimeoutError"}))},t);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),Uz=je((e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})},"setSocketKeepAlive"),Gz=je((e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),fE=require("stream"),aE=1e3;async function Jm(e,n,t=aE){let r=n.headers??{},o=r.Expect||r.expect,s=-1,c=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(aE,t)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{c=!0,clearTimeout(s),i()})})]),c||yE(e,n.body)}je(Jm,"writeRequestBody");function yE(e,n){n instanceof fE.Readable?n.pipe(e):n?e.end(Buffer.from(n)):e.end()}je(yE,"writeBody");var Hz=0,gE=class hE{constructor(n){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(this.resolveDefaultConfig(o))}).catch(r):t(this.resolveDefaultConfig(n))})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new hE(n)}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:c}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??o,httpAgent:s||new sE.Agent({keepAlive:i,maxSockets:u}),httpsAgent:c||new iE.Agent({keepAlive:i,maxSockets:u})}}destroy(){var n,t,r,o;(t=(n=this.config)==null?void 0:n.httpAgent)==null||t.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(n,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise((r,o)=>{let s,c=je(async E=>{await s,r(E)},"resolve"),i=je(async E=>{await s,o(E)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t!=null&&t.aborted){let E=new Error("Request aborted");E.name="AbortError",i(E);return}let u=n.protocol==="https:",l=(0,mE.buildQueryString)(n.query||{}),a;if(n.username!=null||n.password!=null){let E=n.username??"",G=n.password??"";a=`${E}:${G}`}let y=n.path;l&&(y+=`?${l}`),n.fragment&&(y+=`#${n.fragment}`);let g={headers:n.headers,host:n.hostname,method:n.method,path:y,port:n.port,agent:u?this.config.httpsAgent:this.config.httpAgent,auth:a},v=(u?iE.request:sE.request)(g,E=>{let G=new uE.HttpResponse({statusCode:E.statusCode||-1,reason:E.statusMessage,headers:pE(E.headers),body:E});c({response:G})});v.on("error",E=>{jz.includes(E.code)?i(Object.assign(E,{name:"TimeoutError"})):i(E)}),zz(v,i,this.config.connectionTimeout),Gz(v,i,this.config.requestTimeout),t&&(t.onabort=()=>{v.abort();let E=new Error("Request aborted");E.name="AbortError",i(E)});let A=g.agent;typeof A=="object"&&"keepAlive"in A&&Uz(v,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}),s=Jm(v,n,this.config.requestTimeout).catch(o)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}};je(gE,"NodeHttpHandler");var $z=gE,cE=require("http2"),Kz=Fz(require("http2")),_E=class{constructor(n){this.sessions=[],this.sessions=n??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(n){this.sessions.push(n)}contains(n){return this.sessions.includes(n)}remove(n){this.sessions=this.sessions.filter(t=>t!==n)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(n){for(let t of this.sessions)t===n&&(t.destroyed||t.destroy())}};je(_E,"NodeHttp2ConnectionPool");var Vz=_E,CE=class{constructor(n){if(this.sessionCache=new Map,this.config=n,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(n,t){let r=this.getUrlString(n),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=Kz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+n.destination.toString())}),s.unref();let c=je(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",c),s.on("error",c),s.on("frameError",c),s.on("close",()=>this.deleteSession(r,s)),t.requestTimeout&&s.setTimeout(t.requestTimeout,c);let i=this.sessionCache.get(r)||new Vz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(n,t){let r=this.sessionCache.get(n);r&&r.contains(t)&&(r.remove(t),this.sessionCache.set(n,r))}release(n,t){var r;let o=this.getUrlString(n);(r=this.sessionCache.get(o))==null||r.offerLast(t)}destroy(){for(let[n,t]of this.sessionCache){for(let r of t)r.destroyed||r.destroy(),t.remove(r);this.sessionCache.delete(n)}}setMaxConcurrentStreams(n){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=n}setDisableConcurrentStreams(n){this.config.disableConcurrency=n}getUrlString(n){return n.destination.toString()}};je(CE,"NodeHttp2ConnectionManager");var Xz=CE,SE=class bE{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Xz({}),this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(o||{})}).catch(r):t(n||{})})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new bE(n)}destroy(){this.connectionManager.destroy()}async handle(n,{abortSignal:t}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,c)=>{var i;let u=!1,l,a=je(async Oe=>{await l,s(Oe)},"resolve"),y=je(async Oe=>{await l,c(Oe)},"reject");if(t!=null&&t.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:v,protocol:A,query:E}=n,G="";if(n.username!=null||n.password!=null){let Oe=n.username??"",ki=n.password??"";G=`${Oe}:${ki}@`}let ye=`${A}//${G}${g}${v?`:${v}`:""}`,nt={destination:new URL(ye)},Ae=this.connectionManager.lease(nt,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),mt=je(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,mE.buildQueryString)(E||{}),sr=n.path;vn&&(sr+=`?${vn}`),n.fragment&&(sr+=`#${n.fragment}`);let Et=Ae.request({...n.headers,[cE.constants.HTTP2_HEADER_PATH]:sr,[cE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let ki=new uE.HttpResponse({statusCode:Oe[":status"]||-1,headers:pE(Oe),body:Et});u=!0,a({response:ki}),o&&(Ae.close(),this.connectionManager.deleteSession(ye,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",mt(Oe)}),t&&(t.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",mt(Oe)}),Et.on("frameError",(Oe,ki,RL)=>{mt(new Error(`Frame type id ${Oe} in stream id ${RL} has failed with code ${ki}.`))}),Et.on("error",mt),Et.on("aborted",()=>{mt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||mt(new Error("Unexpected error: http2 request did not get a response"))}),l=Jm(Et,n,r)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}destroySession(n){n.destroyed||n.destroy()}};je(SE,"NodeHttp2Handler");var Wz=SE,EE=class extends fE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};je(EE,"Collector");var Yz=EE,Jz=je(e=>new Promise((n,t)=>{let r=new Yz;e.pipe(r),e.on("error",o=>{r.end(),t(o)}),r.on("error",t),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));n(o)})}),"streamCollector")});var wE=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.sdkStreamMixin=void 0;var Qz=vr(),Zz=Er(),Qm=require("stream"),eU=require("util"),vE="The stream has already been transformed.",tU=e=>{var n,t;if(!(e instanceof Qm.Readable)){let s=((t=(n=e==null?void 0:e.__proto__)===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(vE);return r=!0,await(0,Qz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let c=await o();return s===void 0||Buffer.isEncoding(s)?(0,Zz.fromArrayBuffer)(c.buffer,c.byteOffset,c.byteLength).toString(s):new eU.TextDecoder(s).decode(c)},transformToWebStream:()=>{if(r)throw new Error(vE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Qm.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,Qm.Readable.toWeb(e)}})};fc.sdkStreamMixin=tU});var np=m((Rbe,hc)=>{var yc=Object.defineProperty,nU=Object.getOwnPropertyDescriptor,rU=Object.getOwnPropertyNames,oU=Object.prototype.hasOwnProperty,tp=(e,n)=>yc(e,"name",{value:n,configurable:!0}),sU=(e,n)=>{for(var t in n)yc(e,t,{get:n[t],enumerable:!0})},Zm=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rU(n))!oU.call(e,o)&&o!==t&&yc(e,o,{get:()=>n[o],enumerable:!(r=nU(n,o))||r.enumerable});return e},xE=(e,n,t)=>(Zm(e,n,"default"),t&&Zm(t,n,"default")),iU=e=>Zm(yc({},"__esModule",{value:!0}),e),gc={};sU(gc,{Uint8ArrayBlobAdapter:()=>ep});hc.exports=iU(gc);var kE=Pr(),AE=yt();function OE(e,n="utf-8"){return n==="base64"?(0,kE.toBase64)(e):(0,AE.toUtf8)(e)}tp(OE,"transformToString");function NE(e,n){return n==="base64"?ep.mutate((0,kE.fromBase64)(e)):ep.mutate((0,AE.fromUtf8)(e))}tp(NE,"transformFromString");var IE=class RE extends Uint8Array{static fromString(n,t="utf-8"){switch(typeof n){case"string":return NE(n,t);default:throw new Error(`Unsupported conversion from ${typeof n} to Uint8ArrayBlobAdapter.`)}}static mutate(n){return Object.setPrototypeOf(n,RE.prototype),n}transformToString(n="utf-8"){return OE(this,n)}};tp(IE,"Uint8ArrayBlobAdapter");var ep=IE;xE(gc,Jb(),hc.exports);xE(gc,wE(),hc.exports)});var b=m((Mbe,nP)=>{var Ec=Object.defineProperty,aU=Object.getOwnPropertyDescriptor,cU=Object.getOwnPropertyNames,dU=Object.prototype.hasOwnProperty,U=(e,n)=>Ec(e,"name",{value:n,configurable:!0}),lU=(e,n)=>{for(var t in n)Ec(e,t,{get:n[t],enumerable:!0})},uU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cU(n))!dU.call(e,o)&&o!==t&&Ec(e,o,{get:()=>n[o],enumerable:!(r=aU(n,o))||r.enumerable});return e},mU=e=>uU(Ec({},"__esModule",{value:!0}),e),BE={};lU(BE,{Client:()=>fU,Command:()=>LE,LazyJsonString:()=>l3,NoOpLogger:()=>pU,SENSITIVE_STRING:()=>hU,ServiceException:()=>QU,StringWrapper:()=>Fi,_json:()=>dp,collectBody:()=>yU,convertMap:()=>u3,createAggregatedClient:()=>_U,dateToUtcString:()=>KE,decorateServiceException:()=>WE,emitWarningIfUnsupportedVersion:()=>n3,expectBoolean:()=>SU,expectByte:()=>cp,expectFloat32:()=>Cc,expectInt:()=>EU,expectInt32:()=>ip,expectLong:()=>Di,expectNonNull:()=>vU,expectNumber:()=>qi,expectObject:()=>zE,expectShort:()=>ap,expectString:()=>wU,expectUnion:()=>xU,extendedEncodeURIComponent:()=>bc,getArrayIfSingleItem:()=>d3,getDefaultClientConfiguration:()=>a3,getDefaultExtensionConfiguration:()=>JE,getValueFromTextNode:()=>QE,handleFloat:()=>OU,limitedParseDouble:()=>mp,limitedParseFloat:()=>NU,limitedParseFloat32:()=>IU,loadConfigsForDefaultMode:()=>t3,logger:()=>Mi,map:()=>fp,parseBoolean:()=>CU,parseEpochTimestamp:()=>GU,parseRfc3339DateTime:()=>DU,parseRfc3339DateTimeWithOffset:()=>FU,parseRfc7231DateTime:()=>UU,resolveDefaultRuntimeConfig:()=>c3,resolvedPath:()=>g3,serializeFloat:()=>h3,splitEvery:()=>tP,strictParseByte:()=>$E,strictParseDouble:()=>up,strictParseFloat:()=>kU,strictParseFloat32:()=>UE,strictParseInt:()=>RU,strictParseInt32:()=>TU,strictParseLong:()=>HE,strictParseShort:()=>wr,take:()=>m3,throwDefaultError:()=>YE,withBaseException:()=>ZU});nP.exports=mU(BE);var qE=class{trace(){}debug(){}info(){}warn(){}error(){}};U(qE,"NoOpLogger");var pU=qE,DE=Mb(),ME=class{constructor(n){this.middlewareStack=(0,DE.constructStack)(),this.config=n}send(n,t,r){let o=typeof t!="function"?t:void 0,s=typeof t=="function"?t:r,c=n.resolveMiddleware(this.middlewareStack,this.config,o);if(s)c(n).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return c(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};U(ME,"Client");var fU=ME,rp=np(),yU=U(async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return rp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return rp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return rp.Uint8ArrayBlobAdapter.mutate(await t)},"collectBody"),sp=w(),FE=class{constructor(){this.middlewareStack=(0,DE.constructStack)()}static classBuilder(){return new gU}resolveMiddlewareWithContext(n,t,r,{middlewareFn:o,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:a,CommandCtor:y}){for(let E of o.bind(this)(y,n,t,r))this.middlewareStack.use(E);let g=n.concat(this.middlewareStack),{logger:C}=t,v={logger:C,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[sp.SMITHY_CONTEXT_KEY]:{...l},...a},{requestHandler:A}=t;return g.resolve(E=>A.handle(E.request,r||{}),v)}};U(FE,"Command");var LE=FE,jE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=n=>n,this._outputFilterSensitiveLog=n=>n,this._serializer=null,this._deserializer=null}init(n){this._init=n}ep(n){return this._ep=n,this}m(n){return this._middlewareFn=n,this}s(n,t,r={}){return this._smithyContext={service:n,operation:t,...r},this}c(n={}){return this._additionalContext=n,this}n(n,t){return this._clientName=n,this._commandName=t,this}f(n=r=>r,t=r=>r){return this._inputFilterSensitiveLog=n,this._outputFilterSensitiveLog=t,this}ser(n){return this._serializer=n,this}de(n){return this._deserializer=n,this}build(){var n;let t=this,r;return r=(n=class extends LE{constructor(o){super(),this.input=o,this.serialize=t._serializer,this.deserialize=t._deserializer,t._init(this)}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(o,s,c){return this.resolveMiddlewareWithContext(o,s,c,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}},U(n,"CommandRef"),n)}};U(jE,"ClassBuilder");var gU=jE,hU="***SensitiveInformation***",_U=U((e,n)=>{for(let t of Object.keys(e)){let r=e[t],o=U(async function(c,i,u){let l=new r(c);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(t[0].toLowerCase()+t.slice(1)).replace(/Command$/,"");n.prototype[s]=o}},"createAggregatedClient"),CU=U(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),SU=U(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Mi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let n=e.toLowerCase();if((n==="false"||n==="true")&&Mi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),n==="false")return!1;if(n==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),qi=U(e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&Mi.warn(Sc(`Expected number but observed string: ${e}`)),n}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),bU=Math.ceil(2**127*(2-2**-23)),Cc=U(e=>{let n=qi(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>bU)throw new TypeError(`Expected 32-bit float, got ${e}`);return n},"expectFloat32"),Di=U(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),EU=Di,ip=U(e=>lp(e,32),"expectInt32"),ap=U(e=>lp(e,16),"expectShort"),cp=U(e=>lp(e,8),"expectByte"),lp=U((e,n)=>{let t=Di(e);if(t!==void 0&&PU(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},"expectSizedInt"),PU=U((e,n)=>{switch(n){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),vU=U((e,n)=>{if(e==null)throw n?new TypeError(`Expected a non-null value for ${n}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=U(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let n=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${n}: ${e}`)},"expectObject"),wU=U(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Mi.warn(Sc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),xU=U(e=>{if(e==null)return;let n=zE(e),t=Object.entries(n).filter(([,r])=>r!=null).map(([r])=>r);if(t.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(t.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${t} were not null.`);return n},"expectUnion"),up=U(e=>qi(typeof e=="string"?kr(e):e),"strictParseDouble"),kU=up,UE=U(e=>Cc(typeof e=="string"?kr(e):e),"strictParseFloat32"),AU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kr=U(e=>{let n=e.match(AU);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),mp=U(e=>typeof e=="string"?GE(e):qi(e),"limitedParseDouble"),OU=mp,NU=mp,IU=U(e=>typeof e=="string"?GE(e):Cc(e),"limitedParseFloat32"),GE=U(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),HE=U(e=>Di(typeof e=="string"?kr(e):e),"strictParseLong"),RU=HE,TU=U(e=>ip(typeof e=="string"?kr(e):e),"strictParseInt32"),wr=U(e=>ap(typeof e=="string"?kr(e):e),"strictParseShort"),$E=U(e=>cp(typeof e=="string"?kr(e):e),"strictParseByte"),Sc=U(e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(n=>!n.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Mi={warn:console.warn},BU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KE(e){let n=e.getUTCFullYear(),t=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,a=c<10?`0${c}`:`${c}`,y=i<10?`0${i}`:`${i}`;return`${BU[r]}, ${u} ${pp[t]} ${n} ${l}:${a}:${y} GMT`}U(KE,"dateToUtcString");var qU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),DU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=qU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l]=n,a=wr(xr(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return Bi(a,y,g,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),FU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=MU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l,a]=n,y=wr(xr(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),v=Bi(y,g,C,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l});return a.toUpperCase()!="Z"&&v.setTime(v.getTime()-JU(a)),v},"parseRfc3339DateTimeWithOffset"),LU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),zU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),UU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=LU.exec(e);if(n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(s)),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=jU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return KU(Bi(HU(s),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=zU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(l)),op(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),GU=U(e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=up(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(n*1e3))},"parseEpochTimestamp"),Bi=U((e,n,t,r)=>{let o=n-1;return XU(e,o,t),new Date(Date.UTC(e,o,t,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),YU(r.fractionalMilliseconds)))},"buildDate"),HU=U(e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+wr(xr(e));return te.getTime()-new Date().getTime()>$U?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),op=U(e=>{let n=pp.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},"parseMonthByShortName"),VU=[31,28,31,30,31,30,31,31,30,31,30,31],XU=U((e,n,t)=>{let r=VU[n];if(n===1&&WU(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${pp[n]} in ${e}: ${t}`)},"validateDayOfMonth"),WU=U(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=U((e,n,t,r)=>{let o=$E(xr(e));if(or)throw new TypeError(`${n} must be between ${t} and ${r}, inclusive`);return o},"parseDateValue"),YU=U(e=>e==null?0:UE("0."+e)*1e3,"parseMilliseconds"),JU=U(e=>{let n=e[0],t=1;if(n=="+")t=1;else if(n=="-")t=-1;else throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return t*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),xr=U(e=>{let n=0;for(;n{Object.entries(n).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let t=e.message||e.Message||"UnknownError";return e.message=t,delete e.Message,e},"decorateServiceException"),YE=U(({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let o=e3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new t({name:(n==null?void 0:n.code)||(n==null?void 0:n.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw WE(c,n)},"throwDefaultError"),ZU=U(e=>({output:n,parsedBody:t,errorCode:r})=>{YE({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})},"withBaseException"),e3=U(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),t3=U(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),TE=!1,n3=U(e=>{e&&!TE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(TE=!0)},"emitWarningIfUnsupportedVersion"),r3=U(e=>{let n=[];for(let t in sp.AlgorithmId){let r=sp.AlgorithmId[t];e[r]!==void 0&&n.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),o3=U(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),s3=U(e=>{let n=e.retryStrategy;return{setRetryStrategy(t){n=t},retryStrategy(){return n}}},"getRetryConfiguration"),i3=U(e=>{let n={};return n.retryStrategy=e.retryStrategy(),n},"resolveRetryRuntimeConfig"),JE=U(e=>({...r3(e),...s3(e)}),"getDefaultExtensionConfiguration"),a3=JE,c3=U(e=>({...o3(e),...i3(e)}),"resolveDefaultRuntimeConfig");function Sc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}U(Sc,"extendedEncodeURIComponent");var d3=U(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),QE=U(e=>{let n="#text";for(let t in e)e.hasOwnProperty(t)&&e[t][n]!==void 0?e[t]=e[t][n]:typeof e[t]=="object"&&e[t]!==null&&(e[t]=QE(e[t]));return e},"getValueFromTextNode"),Fi=U(function(){let e=Object.getPrototypeOf(this).constructor,n=Function.bind.apply(String,[null,...arguments]),t=new n;return Object.setPrototypeOf(t,e.prototype),t},"StringWrapper");Fi.prototype=Object.create(String.prototype,{constructor:{value:Fi,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Fi,String);var ZE=class hc extends Fi{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(n){return n instanceof hc?n:n instanceof String||typeof n=="string"?new hc(n):new hc(JSON.stringify(n))}};U(ZE,"LazyJsonString");var l3=ZE;function fp(e,n,t){let r,o,s;if(typeof n>"u"&&typeof t>"u")r={},s=e;else{if(r=e,typeof n=="function")return o=n,s=t,p3(r,o,s);s=n}for(let c of Object.keys(s)){if(!Array.isArray(s[c])){r[c]=s[c];continue}eP(r,null,s,c)}return r}U(fp,"map");var u3=U(e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n},"convertMap"),m3=U((e,n)=>{let t={};for(let r in n)eP(t,e,n,r);return t},"take"),p3=U((e,n,t)=>fp(e,Object.entries(t).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[n,s()]:r[o]=[n,s],r),{})),"mapWithFilter"),eP=U((e,n,t,r)=>{if(n!==null){let c=t[r];typeof c=="function"&&(c=[,c]);let[i=f3,u=y3,l=r]=c;(typeof i=="function"&&i(n[l])||typeof i!="function"&&i)&&(e[r]=u(n[l]));return}let[o,s]=t[r];if(typeof s=="function"){let c,i=o===void 0&&(c=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=c:u&&(e[r]=s())}else{let c=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(c||i)&&(e[r]=s)}},"applyInstruction"),f3=U(e=>e!=null,"nonNullish"),y3=U(e=>e,"pass"),g3=U((e,n,t,r,o,s)=>{if(n!=null&&n[t]!==void 0){let c=r();if(c.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(o,s?c.split("/").map(i=>Sc(i)).join("/"):Sc(c))}else throw new Error("No value provided for input HTTP label: "+t+".");return e},"resolvedPath"),h3=U(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),dp=U(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null).map(dp);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=dp(e[t]));return n}return e},"_json");function tP(e,n,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let r=e.split(n);if(t===1)return r;let o=[],s="";for(let c=0;c{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var _3=Ne(),C3=b(),S3="content-length";function rP(){return(e,n)=>async t=>{var r;let{request:o}=t;if(_3.HttpRequest.isInstance(o)&&!o.headers[S3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=n==null?void 0:n.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(n.logger instanceof C3.NoOpLogger)?n.logger.warn(s):console.warn(s)}return e({...t})}}en.checkContentLengthHeader=rP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var b3=e=>({applyToStack:n=>{n.add(rP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=b3});var sP=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.resolveS3Config=void 0;var E3=e=>{var n,t,r;return{...e,forcePathStyle:(n=e.forcePathStyle)!==null&&n!==void 0?n:!1,useAccelerateEndpoint:(t=e.useAccelerateEndpoint)!==null&&t!==void 0?t:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};Ec.resolveS3Config=E3});var aP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var P3=Ne(),v3=e=>n=>async t=>{let r=await n(t),{response:o}=r;if(!P3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:c}=o;if(s<200||s>=300)return r;let i=await iP(c,e),u=await w3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=v3;var iP=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),w3=(e,n)=>iP(e,n).then(t=>n.utf8Encoder(t));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var x3=e=>({applyToStack:n=>{n.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=x3});var yp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var k3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=k3;var A3=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,o,s,...c]=n;return{partition:t,service:r,region:o,accountId:s,resource:c.join(":")}};kn.parse=A3;var O3=e=>{let{partition:n="aws",service:t,region:r,accountId:o,resource:s}=e;if([t,r,o,s].some(c=>typeof c!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${o}:${s}`};kn.build=O3});var dP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var N3=yp();function cP(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,N3.validate)(t)&&t.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${t}'`);throw r.name="InvalidBucketName",r}return e({...n})}}tn.validateBucketNameMiddleware=cP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var I3=e=>({applyToStack:n=>{n.add(cP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=I3});var Or=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Pc=(te(),Y(ee));Pc.__exportStar(oP(),Ar);Pc.__exportStar(sP(),Ar);Pc.__exportStar(aP(),Ar);Pc.__exportStar(dP(),Ar)});var xe=m((Gbe,hP)=>{var vc=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,T3=Object.getOwnPropertyNames,B3=Object.prototype.hasOwnProperty,ar=(e,n)=>vc(e,"name",{value:n,configurable:!0}),q3=(e,n)=>{for(var t in n)vc(e,t,{get:n[t],enumerable:!0})},D3=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T3(n))!B3.call(e,o)&&o!==t&&vc(e,o,{get:()=>n[o],enumerable:!(r=R3(n,o))||r.enumerable});return e},M3=e=>D3(vc({},"__esModule",{value:!0}),e),lP={};q3(lP,{CredentialsProviderError:()=>F3,ProviderError:()=>wc,TokenProviderError:()=>L3,chain:()=>j3,fromStatic:()=>z3,memoize:()=>U3});hP.exports=M3(lP);var uP=class mP extends Error{constructor(n,t=!0){super(n),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,mP.prototype)}static from(n,t=!0){return Object.assign(new this(n.message,t),n)}};ar(uP,"ProviderError");var wc=uP,pP=class fP extends wc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,fP.prototype)}};ar(pP,"CredentialsProviderError");var F3=pP,yP=class gP extends wc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,gP.prototype)}};ar(yP,"TokenProviderError");var L3=yP,j3=ar((...e)=>async()=>{if(e.length===0)throw new wc("No providers in chain");let n;for(let t of e)try{return await t()}catch(r){if(n=r,r!=null&&r.tryNextLink)continue;throw r}throw n},"chain"),z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),U3=ar((e,n,t)=>{let r,o,s,c=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,c=!1}finally{o=void 0}return r},"coalesceProvider");return n===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),c?r:t&&!t(r)?(c=!0,r):(n(r)&&await i(),r))},"memoize")});var Cp={};Ai(Cp,{__assign:()=>hp,__asyncDelegator:()=>tG,__asyncGenerator:()=>eG,__asyncValues:()=>nG,__await:()=>Li,__awaiter:()=>X3,__classPrivateFieldGet:()=>iG,__classPrivateFieldSet:()=>aG,__createBinding:()=>Y3,__decorate:()=>$3,__exportStar:()=>J3,__extends:()=>G3,__generator:()=>W3,__importDefault:()=>sG,__importStar:()=>oG,__makeTemplateObject:()=>rG,__metadata:()=>V3,__param:()=>K3,__read:()=>_P,__rest:()=>H3,__spread:()=>Q3,__spreadArrays:()=>Z3,__values:()=>_p});function G3(e,n){gp(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function H3(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function K3(e,n){return function(t,r){n(t,r,e)}}function V3(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function X3(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function W3(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _P(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Q3(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof Li?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tG(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:Li(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function nG(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof _p=="function"?_p(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rG(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function oG(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function sG(e){return e&&e.__esModule?e:{default:e}}function iG(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function aG(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var gp,hp,Sp=Le(()=>{gp=function(e,n){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},gp(e,n)};hp=function(){return hp=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.toUtf8=Nr.fromUtf8=void 0;var cG=e=>{let n=[];for(let t=0,r=e.length;t>6|192,o&63|128);else if(t+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else n.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(n)};Nr.fromUtf8=cG;var dG=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(c)}else n+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};Nr.toUtf8=dG});var SP=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.toUtf8=Ir.fromUtf8=void 0;function lG(e){return new TextEncoder().encode(e)}Ir.fromUtf8=lG;function uG(e){return new TextDecoder("utf-8").decode(e)}Ir.toUtf8=uG});var PP=m(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.toUtf8=Rr.fromUtf8=void 0;var bP=CP(),EP=SP(),mG=e=>typeof TextEncoder=="function"?(0,EP.fromUtf8)(e):(0,bP.fromUtf8)(e);Rr.fromUtf8=mG;var pG=e=>typeof TextDecoder=="function"?(0,EP.toUtf8)(e):(0,bP.toUtf8)(e);Rr.toUtf8=pG});var vP=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.convertToBuffer=void 0;var fG=PP(),yG=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:fG.fromUtf8;function gG(e){return e instanceof Uint8Array?e:typeof e=="string"?yG(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}xc.convertToBuffer=gG});var wP=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.isEmptyData=void 0;function hG(e){return typeof e=="string"?e.length===0:e.byteLength===0}kc.isEmptyData=hG});var xP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.numToUint8=void 0;function _G(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Ac.numToUint8=_G});var kP=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.uint32ArrayFrom=void 0;function CG(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),t=0;t{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.uint32ArrayFrom=Bt.numToUint8=Bt.isEmptyData=Bt.convertToBuffer=void 0;var SG=vP();Object.defineProperty(Bt,"convertToBuffer",{enumerable:!0,get:function(){return SG.convertToBuffer}});var bG=wP();Object.defineProperty(Bt,"isEmptyData",{enumerable:!0,get:function(){return bG.isEmptyData}});var EG=xP();Object.defineProperty(Bt,"numToUint8",{enumerable:!0,get:function(){return EG.numToUint8}});var PG=kP();Object.defineProperty(Bt,"uint32ArrayFrom",{enumerable:!0,get:function(){return PG.uint32ArrayFrom}})});var NP=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.AwsCrc32=void 0;var AP=(Sp(),Y(Cp)),bp=ji(),OP=zi(),vG=function(){function e(){this.crc32=new OP.Crc32}return e.prototype.update=function(n){(0,bp.isEmptyData)(n)||this.crc32.update((0,bp.convertToBuffer)(n))},e.prototype.digest=function(){return AP.__awaiter(this,void 0,void 0,function(){return AP.__generator(this,function(n){return[2,(0,bp.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new OP.Crc32},e}();Nc.AwsCrc32=vG});var zi=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AwsCrc32=An.Crc32=An.crc32=void 0;var wG=(Sp(),Y(Cp)),xG=ji();function kG(e){return new IP().update(e).digest()}An.crc32=kG;var IP=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=wG.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^OG[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();An.Crc32=IP;var AG=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],OG=(0,xG.uint32ArrayFrom)(AG),NG=NP();Object.defineProperty(An,"AwsCrc32",{enumerable:!0,get:function(){return NG.AwsCrc32}})});var Pp=m((eEe,MP)=>{var Ic=Object.defineProperty,IG=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,TG=Object.prototype.hasOwnProperty,RP=(e,n)=>Ic(e,"name",{value:n,configurable:!0}),BG=(e,n)=>{for(var t in n)Ic(e,t,{get:n[t],enumerable:!0})},qG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RG(n))!TG.call(e,o)&&o!==t&&Ic(e,o,{get:()=>n[o],enumerable:!(r=IG(n,o))||r.enumerable});return e},DG=e=>qG(Ic({},"__esModule",{value:!0}),e),TP={};BG(TP,{fromHex:()=>qP,toHex:()=>DP});MP.exports=DG(TP);var BP={},Ep={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),BP[e]=n,Ep[n]=e}function qP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let n=new Uint8Array(e.length/2);for(let t=0;t{var Tc=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,FG=Object.getOwnPropertyNames,LG=Object.prototype.hasOwnProperty,nn=(e,n)=>Tc(e,"name",{value:n,configurable:!0}),jG=(e,n)=>{for(var t in n)Tc(e,t,{get:n[t],enumerable:!0})},zG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FG(n))!LG.call(e,o)&&o!==t&&Tc(e,o,{get:()=>n[o],enumerable:!(r=MG(n,o))||r.enumerable});return e},UG=e=>zG(Tc({},"__esModule",{value:!0}),e),LP={};jG(LP,{EventStreamCodec:()=>t2,HeaderMarshaller:()=>GP,Int64:()=>Rc,MessageDecoderStream:()=>n2,MessageEncoderStream:()=>r2,SmithyMessageDecoderStream:()=>o2,SmithyMessageEncoderStream:()=>s2});JP.exports=UG(LP);var GG=zi(),cr=Pp(),jP=class zP{constructor(n){if(this.bytes=n,n.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776e3||n<-9223372036854776e3)throw new Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(n));r>-1&&o>0;r--,o/=256)t[r]=o;return n<0&&vp(t),new zP(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&vp(n),parseInt((0,cr.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};nn(jP,"Int64");var Rc=jP;function vp(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}nn(vp,"negate");var UP=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let s of Object.keys(n)){let c=this.fromUtf8(s);t.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(n[s]))}let r=new Uint8Array(t.reduce((s,c)=>s+c.byteLength,0)),o=0;for(let s of t)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,n.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,n.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(n.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+n.value.byteLength));s.setUint8(0,6),s.setUint16(1,n.value.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(n.value,3),c;case"string":let i=this.fromUtf8(n.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(Rc.fromNumber(n.value.valueOf()).bytes,1),a;case"uuid":if(!QG.test(n.value))throw new Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,cr.fromHex)(n.value.replace(/\-/g,"")),1),y}}parse(n){let t={},r=0;for(;r{var Bc=Object.defineProperty,i2=Object.getOwnPropertyDescriptor,a2=Object.getOwnPropertyNames,c2=Object.prototype.hasOwnProperty,ZP=(e,n)=>Bc(e,"name",{value:n,configurable:!0}),d2=(e,n)=>{for(var t in n)Bc(e,t,{get:n[t],enumerable:!0})},l2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of a2(n))!c2.call(e,o)&&o!==t&&Bc(e,o,{get:()=>n[o],enumerable:!(r=i2(n,o))||r.enumerable});return e},u2=e=>l2(Bc({},"__esModule",{value:!0}),e),e0={};d2(e0,{getSmithyContext:()=>m2,normalizeProvider:()=>p2});t0.exports=u2(e0);var QP=w(),m2=ZP(e=>e[QP.SMITHY_CONTEXT_KEY]||(e[QP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),p2=ZP(e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n},"normalizeProvider")});var Np=m((lEe,h0)=>{var jc=Object.defineProperty,f2=Object.getOwnPropertyDescriptor,y2=Object.getOwnPropertyNames,g2=Object.prototype.hasOwnProperty,$e=(e,n)=>jc(e,"name",{value:n,configurable:!0}),h2=(e,n)=>{for(var t in n)jc(e,t,{get:n[t],enumerable:!0})},_2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y2(n))!g2.call(e,o)&&o!==t&&jc(e,o,{get:()=>n[o],enumerable:!(r=f2(n,o))||r.enumerable});return e},C2=e=>_2(jc({},"__esModule",{value:!0}),e),s0={};h2(s0,{SignatureV4:()=>H2,clearCredentialCache:()=>M2,createScope:()=>Fc,getCanonicalHeaders:()=>Ap,getCanonicalQuery:()=>p0,getPayloadHash:()=>Lc,getSigningKey:()=>m0,moveHeadersToQuery:()=>y0,prepareRequest:()=>Op});h0.exports=C2(s0);var S2=wp(),n0=Tr(),Ui=yt(),b2="X-Amz-Algorithm",E2="X-Amz-Credential",i0="X-Amz-Date",P2="X-Amz-SignedHeaders",v2="X-Amz-Expires",a0="X-Amz-Signature",c0="X-Amz-Security-Token",d0="authorization",l0=i0.toLowerCase(),w2="date",x2=[d0,l0,w2],k2=a0.toLowerCase(),kp="x-amz-content-sha256",A2=c0.toLowerCase(),O2={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},N2=/^proxy-/,I2=/^sec-/,xp="AWS4-HMAC-SHA256",R2="AWS4-HMAC-SHA256-PAYLOAD",T2="UNSIGNED-PAYLOAD",B2=50,u0="aws4_request",q2=60*60*24*7,Br=Pp(),D2=yt(),qr={},Mc=[],Fc=$e((e,n,t)=>`${e}/${n}/${t}/${u0}`,"createScope"),m0=$e(async(e,n,t,r,o)=>{let s=await r0(e,n.secretAccessKey,n.accessKeyId),c=`${t}:${r}:${o}:${(0,Br.toHex)(s)}:${n.sessionToken}`;if(c in qr)return qr[c];for(Mc.push(c);Mc.length>B2;)delete qr[Mc.shift()];let i=`AWS4${n.secretAccessKey}`;for(let u of[t,r,o,u0])i=await r0(e,i,u);return qr[c]=i},"getSigningKey"),M2=$e(()=>{Mc.length=0,Object.keys(qr).forEach(e=>{delete qr[e]})},"clearCredentialCache"),r0=$e((e,n,t)=>{let r=new e(n);return r.update((0,D2.toUint8Array)(t)),r.digest()},"hmac"),Ap=$e(({headers:e},n,t)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in O2||n!=null&&n.has(s)||N2.test(s)||I2.test(s))&&(!t||t&&!t.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),qc=Wm(),p0=$e(({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===k2)continue;n.push(r);let o=e[r];typeof o=="string"?t[r]=`${(0,qc.escapeUri)(r)}=${(0,qc.escapeUri)(o)}`:Array.isArray(o)&&(t[r]=o.slice(0).reduce((s,c)=>s.concat([`${(0,qc.escapeUri)(r)}=${(0,qc.escapeUri)(c)}`]),[]).sort().join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")},"getCanonicalQuery"),F2=oc(),L2=yt(),Lc=$e(async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===kp)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,F2.isArrayBuffer)(n)){let r=new t;return r.update((0,L2.toUint8Array)(n)),(0,Br.toHex)(await r.digest())}return T2},"getPayloadHash"),j2=$e((e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1},"hasHeader"),f0=$e(({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?z2(n):void 0}),"cloneRequest"),z2=$e(e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),y0=$e((e,n={})=>{var t;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():f0(e);for(let s of Object.keys(r)){let c=s.toLowerCase();c.slice(0,6)==="x-amz-"&&!((t=n.unhoistableHeaders)!=null&&t.has(c))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),Op=$e(e=>{e=typeof e.clone=="function"?e.clone():f0(e);for(let n of Object.keys(e.headers))x2.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e},"prepareRequest"),U2=$e(e=>G2(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),G2=$e(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),g0=class{constructor({applyChecksum:n,credentials:t,region:r,service:o,sha256:s,uriEscapePath:c=!0}){this.headerMarshaller=new S2.HeaderMarshaller(Ui.toUtf8,Ui.fromUtf8),this.service=o,this.sha256=s,this.uriEscapePath=c,this.applyChecksum=typeof n=="boolean"?n:!0,this.regionProvider=(0,n0.normalizeProvider)(r),this.credentialProvider=(0,n0.normalizeProvider)(t)}async presign(n,t={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:c,signableHeaders:i,signingRegion:u,signingService:l}=t,a=await this.credentialProvider();this.validateResolvedCredentials(a);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Dc(r);if(o>q2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Fc(C,y,l??this.service),A=y0(Op(n),{unhoistableHeaders:c});a.sessionToken&&(A.query[c0]=a.sessionToken),A.query[b2]=xp,A.query[E2]=`${a.accessKeyId}/${v}`,A.query[i0]=g,A.query[v2]=o.toString(10);let E=Ap(A,s,i);return A.query[P2]=o0(E),A.query[a0]=await this.getSignature(g,v,this.getSigningKey(a,y,C,l),this.createCanonicalRequest(A,E,await Lc(n,this.sha256))),A}async sign(n,t){return typeof n=="string"?this.signString(n,t):n.headers&&n.payload?this.signEvent(n,t):n.message?this.signMessage(n,t):this.signRequest(n,t)}async signEvent({headers:n,payload:t},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:c}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Dc(r),a=Fc(u,i,c??this.service),y=await Lc({headers:{},body:t},this.sha256),g=new this.sha256;g.update(n);let C=(0,Br.toHex)(await g.digest()),v=[R2,l,a,o,C,y].join(` -`);return this.signString(v,{signingDate:r,signingRegion:i,signingService:c})}async signMessage(n,{signingDate:t=new Date,signingRegion:r,signingService:o}){return this.signEvent({headers:this.headerMarshaller.format(n.message.headers),payload:n.message.body},{signingDate:t,signingRegion:r,signingService:o,priorSignature:n.priorSignature}).then(c=>({message:n.message,signature:c}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let c=r??await this.regionProvider(),{shortDate:i}=Dc(t),u=new this.sha256(await this.getSigningKey(s,c,i,o));return u.update((0,Ui.toUint8Array)(n)),(0,Br.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:c}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=Op(n),{longDate:a,shortDate:y}=Dc(t),g=Fc(y,u,c??this.service);l.headers[l0]=a,i.sessionToken&&(l.headers[A2]=i.sessionToken);let C=await Lc(l,this.sha256);!j2(kp,l.headers)&&this.applyChecksum&&(l.headers[kp]=C);let v=Ap(l,o,r),A=await this.getSignature(a,g,this.getSigningKey(i,u,y,c),this.createCanonicalRequest(l,v,C));return l.headers[d0]=`${xp} Credential=${i.accessKeyId}/${g}, SignedHeaders=${o0(v)}, Signature=${A}`,l}createCanonicalRequest(n,t,r){let o=Object.keys(t).sort();return`${n.method} +`),"stackTraceWarning"),Mi={warn:console.warn},BU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KE(e){let n=e.getUTCFullYear(),t=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,a=c<10?`0${c}`:`${c}`,y=i<10?`0${i}`:`${i}`;return`${BU[r]}, ${u} ${pp[t]} ${n} ${l}:${a}:${y} GMT`}U(KE,"dateToUtcString");var qU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),DU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=qU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l]=n,a=wr(xr(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return Bi(a,y,g,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),FU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=MU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l,a]=n,y=wr(xr(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),v=Bi(y,g,C,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l});return a.toUpperCase()!="Z"&&v.setTime(v.getTime()-JU(a)),v},"parseRfc3339DateTimeWithOffset"),LU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),zU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),UU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=LU.exec(e);if(n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(s)),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=jU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return KU(Bi(HU(s),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=zU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(l)),op(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),GU=U(e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=up(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(n*1e3))},"parseEpochTimestamp"),Bi=U((e,n,t,r)=>{let o=n-1;return XU(e,o,t),new Date(Date.UTC(e,o,t,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),YU(r.fractionalMilliseconds)))},"buildDate"),HU=U(e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+wr(xr(e));return te.getTime()-new Date().getTime()>$U?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),op=U(e=>{let n=pp.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},"parseMonthByShortName"),VU=[31,28,31,30,31,30,31,31,30,31,30,31],XU=U((e,n,t)=>{let r=VU[n];if(n===1&&WU(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${pp[n]} in ${e}: ${t}`)},"validateDayOfMonth"),WU=U(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=U((e,n,t,r)=>{let o=$E(xr(e));if(or)throw new TypeError(`${n} must be between ${t} and ${r}, inclusive`);return o},"parseDateValue"),YU=U(e=>e==null?0:UE("0."+e)*1e3,"parseMilliseconds"),JU=U(e=>{let n=e[0],t=1;if(n=="+")t=1;else if(n=="-")t=-1;else throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return t*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),xr=U(e=>{let n=0;for(;n{Object.entries(n).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let t=e.message||e.Message||"UnknownError";return e.message=t,delete e.Message,e},"decorateServiceException"),YE=U(({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let o=e3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new t({name:(n==null?void 0:n.code)||(n==null?void 0:n.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw WE(c,n)},"throwDefaultError"),ZU=U(e=>({output:n,parsedBody:t,errorCode:r})=>{YE({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})},"withBaseException"),e3=U(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),t3=U(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),TE=!1,n3=U(e=>{e&&!TE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(TE=!0)},"emitWarningIfUnsupportedVersion"),r3=U(e=>{let n=[];for(let t in sp.AlgorithmId){let r=sp.AlgorithmId[t];e[r]!==void 0&&n.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),o3=U(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),s3=U(e=>{let n=e.retryStrategy;return{setRetryStrategy(t){n=t},retryStrategy(){return n}}},"getRetryConfiguration"),i3=U(e=>{let n={};return n.retryStrategy=e.retryStrategy(),n},"resolveRetryRuntimeConfig"),JE=U(e=>({...r3(e),...s3(e)}),"getDefaultExtensionConfiguration"),a3=JE,c3=U(e=>({...o3(e),...i3(e)}),"resolveDefaultRuntimeConfig");function bc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}U(bc,"extendedEncodeURIComponent");var d3=U(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),QE=U(e=>{let n="#text";for(let t in e)e.hasOwnProperty(t)&&e[t][n]!==void 0?e[t]=e[t][n]:typeof e[t]=="object"&&e[t]!==null&&(e[t]=QE(e[t]));return e},"getValueFromTextNode"),Fi=U(function(){let e=Object.getPrototypeOf(this).constructor,n=Function.bind.apply(String,[null,...arguments]),t=new n;return Object.setPrototypeOf(t,e.prototype),t},"StringWrapper");Fi.prototype=Object.create(String.prototype,{constructor:{value:Fi,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Fi,String);var ZE=class _c extends Fi{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(n){return n instanceof _c?n:n instanceof String||typeof n=="string"?new _c(n):new _c(JSON.stringify(n))}};U(ZE,"LazyJsonString");var l3=ZE;function fp(e,n,t){let r,o,s;if(typeof n>"u"&&typeof t>"u")r={},s=e;else{if(r=e,typeof n=="function")return o=n,s=t,p3(r,o,s);s=n}for(let c of Object.keys(s)){if(!Array.isArray(s[c])){r[c]=s[c];continue}eP(r,null,s,c)}return r}U(fp,"map");var u3=U(e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n},"convertMap"),m3=U((e,n)=>{let t={};for(let r in n)eP(t,e,n,r);return t},"take"),p3=U((e,n,t)=>fp(e,Object.entries(t).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[n,s()]:r[o]=[n,s],r),{})),"mapWithFilter"),eP=U((e,n,t,r)=>{if(n!==null){let c=t[r];typeof c=="function"&&(c=[,c]);let[i=f3,u=y3,l=r]=c;(typeof i=="function"&&i(n[l])||typeof i!="function"&&i)&&(e[r]=u(n[l]));return}let[o,s]=t[r];if(typeof s=="function"){let c,i=o===void 0&&(c=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=c:u&&(e[r]=s())}else{let c=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(c||i)&&(e[r]=s)}},"applyInstruction"),f3=U(e=>e!=null,"nonNullish"),y3=U(e=>e,"pass"),g3=U((e,n,t,r,o,s)=>{if(n!=null&&n[t]!==void 0){let c=r();if(c.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(o,s?c.split("/").map(i=>bc(i)).join("/"):bc(c))}else throw new Error("No value provided for input HTTP label: "+t+".");return e},"resolvedPath"),h3=U(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),dp=U(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null).map(dp);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=dp(e[t]));return n}return e},"_json");function tP(e,n,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let r=e.split(n);if(t===1)return r;let o=[],s="";for(let c=0;c{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var _3=Ne(),C3=b(),S3="content-length";function rP(){return(e,n)=>async t=>{var r;let{request:o}=t;if(_3.HttpRequest.isInstance(o)&&!o.headers[S3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=n==null?void 0:n.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(n.logger instanceof C3.NoOpLogger)?n.logger.warn(s):console.warn(s)}return e({...t})}}en.checkContentLengthHeader=rP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var b3=e=>({applyToStack:n=>{n.add(rP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=b3});var sP=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.resolveS3Config=void 0;var E3=e=>{var n,t,r;return{...e,forcePathStyle:(n=e.forcePathStyle)!==null&&n!==void 0?n:!1,useAccelerateEndpoint:(t=e.useAccelerateEndpoint)!==null&&t!==void 0?t:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};Pc.resolveS3Config=E3});var aP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var P3=Ne(),v3=e=>n=>async t=>{let r=await n(t),{response:o}=r;if(!P3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:c}=o;if(s<200||s>=300)return r;let i=await iP(c,e),u=await w3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=v3;var iP=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),w3=(e,n)=>iP(e,n).then(t=>n.utf8Encoder(t));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var x3=e=>({applyToStack:n=>{n.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=x3});var yp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var k3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=k3;var A3=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,o,s,...c]=n;return{partition:t,service:r,region:o,accountId:s,resource:c.join(":")}};kn.parse=A3;var O3=e=>{let{partition:n="aws",service:t,region:r,accountId:o,resource:s}=e;if([t,r,o,s].some(c=>typeof c!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${o}:${s}`};kn.build=O3});var dP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var N3=yp();function cP(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,N3.validate)(t)&&t.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${t}'`);throw r.name="InvalidBucketName",r}return e({...n})}}tn.validateBucketNameMiddleware=cP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var I3=e=>({applyToStack:n=>{n.add(cP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=I3});var Or=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var vc=(te(),Y(ee));vc.__exportStar(oP(),Ar);vc.__exportStar(sP(),Ar);vc.__exportStar(aP(),Ar);vc.__exportStar(dP(),Ar)});var xe=m(($be,hP)=>{var wc=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,T3=Object.getOwnPropertyNames,B3=Object.prototype.hasOwnProperty,ar=(e,n)=>wc(e,"name",{value:n,configurable:!0}),q3=(e,n)=>{for(var t in n)wc(e,t,{get:n[t],enumerable:!0})},D3=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T3(n))!B3.call(e,o)&&o!==t&&wc(e,o,{get:()=>n[o],enumerable:!(r=R3(n,o))||r.enumerable});return e},M3=e=>D3(wc({},"__esModule",{value:!0}),e),lP={};q3(lP,{CredentialsProviderError:()=>F3,ProviderError:()=>xc,TokenProviderError:()=>L3,chain:()=>j3,fromStatic:()=>z3,memoize:()=>U3});hP.exports=M3(lP);var uP=class mP extends Error{constructor(n,t=!0){super(n),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,mP.prototype)}static from(n,t=!0){return Object.assign(new this(n.message,t),n)}};ar(uP,"ProviderError");var xc=uP,pP=class fP extends xc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,fP.prototype)}};ar(pP,"CredentialsProviderError");var F3=pP,yP=class gP extends xc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,gP.prototype)}};ar(yP,"TokenProviderError");var L3=yP,j3=ar((...e)=>async()=>{if(e.length===0)throw new xc("No providers in chain");let n;for(let t of e)try{return await t()}catch(r){if(n=r,r!=null&&r.tryNextLink)continue;throw r}throw n},"chain"),z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),U3=ar((e,n,t)=>{let r,o,s,c=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,c=!1}finally{o=void 0}return r},"coalesceProvider");return n===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),c?r:t&&!t(r)?(c=!0,r):(n(r)&&await i(),r))},"memoize")});var Cp={};Ai(Cp,{__assign:()=>hp,__asyncDelegator:()=>tG,__asyncGenerator:()=>eG,__asyncValues:()=>nG,__await:()=>Li,__awaiter:()=>X3,__classPrivateFieldGet:()=>iG,__classPrivateFieldSet:()=>aG,__createBinding:()=>Y3,__decorate:()=>$3,__exportStar:()=>J3,__extends:()=>G3,__generator:()=>W3,__importDefault:()=>sG,__importStar:()=>oG,__makeTemplateObject:()=>rG,__metadata:()=>V3,__param:()=>K3,__read:()=>_P,__rest:()=>H3,__spread:()=>Q3,__spreadArrays:()=>Z3,__values:()=>_p});function G3(e,n){gp(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function H3(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function K3(e,n){return function(t,r){n(t,r,e)}}function V3(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function X3(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function W3(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _P(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Q3(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof Li?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tG(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:Li(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function nG(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof _p=="function"?_p(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rG(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function oG(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function sG(e){return e&&e.__esModule?e:{default:e}}function iG(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function aG(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var gp,hp,Sp=Le(()=>{gp=function(e,n){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},gp(e,n)};hp=function(){return hp=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.toUtf8=Nr.fromUtf8=void 0;var cG=e=>{let n=[];for(let t=0,r=e.length;t>6|192,o&63|128);else if(t+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else n.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(n)};Nr.fromUtf8=cG;var dG=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(c)}else n+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};Nr.toUtf8=dG});var SP=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.toUtf8=Ir.fromUtf8=void 0;function lG(e){return new TextEncoder().encode(e)}Ir.fromUtf8=lG;function uG(e){return new TextDecoder("utf-8").decode(e)}Ir.toUtf8=uG});var PP=m(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.toUtf8=Rr.fromUtf8=void 0;var bP=CP(),EP=SP(),mG=e=>typeof TextEncoder=="function"?(0,EP.fromUtf8)(e):(0,bP.fromUtf8)(e);Rr.fromUtf8=mG;var pG=e=>typeof TextDecoder=="function"?(0,EP.toUtf8)(e):(0,bP.toUtf8)(e);Rr.toUtf8=pG});var vP=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.convertToBuffer=void 0;var fG=PP(),yG=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:fG.fromUtf8;function gG(e){return e instanceof Uint8Array?e:typeof e=="string"?yG(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}kc.convertToBuffer=gG});var wP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.isEmptyData=void 0;function hG(e){return typeof e=="string"?e.length===0:e.byteLength===0}Ac.isEmptyData=hG});var xP=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.numToUint8=void 0;function _G(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Oc.numToUint8=_G});var kP=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.uint32ArrayFrom=void 0;function CG(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),t=0;t{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.uint32ArrayFrom=Bt.numToUint8=Bt.isEmptyData=Bt.convertToBuffer=void 0;var SG=vP();Object.defineProperty(Bt,"convertToBuffer",{enumerable:!0,get:function(){return SG.convertToBuffer}});var bG=wP();Object.defineProperty(Bt,"isEmptyData",{enumerable:!0,get:function(){return bG.isEmptyData}});var EG=xP();Object.defineProperty(Bt,"numToUint8",{enumerable:!0,get:function(){return EG.numToUint8}});var PG=kP();Object.defineProperty(Bt,"uint32ArrayFrom",{enumerable:!0,get:function(){return PG.uint32ArrayFrom}})});var NP=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.AwsCrc32=void 0;var AP=(Sp(),Y(Cp)),bp=ji(),OP=zi(),vG=function(){function e(){this.crc32=new OP.Crc32}return e.prototype.update=function(n){(0,bp.isEmptyData)(n)||this.crc32.update((0,bp.convertToBuffer)(n))},e.prototype.digest=function(){return AP.__awaiter(this,void 0,void 0,function(){return AP.__generator(this,function(n){return[2,(0,bp.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new OP.Crc32},e}();Ic.AwsCrc32=vG});var zi=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AwsCrc32=An.Crc32=An.crc32=void 0;var wG=(Sp(),Y(Cp)),xG=ji();function kG(e){return new IP().update(e).digest()}An.crc32=kG;var IP=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=wG.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^OG[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();An.Crc32=IP;var AG=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],OG=(0,xG.uint32ArrayFrom)(AG),NG=NP();Object.defineProperty(An,"AwsCrc32",{enumerable:!0,get:function(){return NG.AwsCrc32}})});var Pp=m((nEe,MP)=>{var Rc=Object.defineProperty,IG=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,TG=Object.prototype.hasOwnProperty,RP=(e,n)=>Rc(e,"name",{value:n,configurable:!0}),BG=(e,n)=>{for(var t in n)Rc(e,t,{get:n[t],enumerable:!0})},qG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RG(n))!TG.call(e,o)&&o!==t&&Rc(e,o,{get:()=>n[o],enumerable:!(r=IG(n,o))||r.enumerable});return e},DG=e=>qG(Rc({},"__esModule",{value:!0}),e),TP={};BG(TP,{fromHex:()=>qP,toHex:()=>DP});MP.exports=DG(TP);var BP={},Ep={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),BP[e]=n,Ep[n]=e}function qP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let n=new Uint8Array(e.length/2);for(let t=0;t{var Bc=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,FG=Object.getOwnPropertyNames,LG=Object.prototype.hasOwnProperty,nn=(e,n)=>Bc(e,"name",{value:n,configurable:!0}),jG=(e,n)=>{for(var t in n)Bc(e,t,{get:n[t],enumerable:!0})},zG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FG(n))!LG.call(e,o)&&o!==t&&Bc(e,o,{get:()=>n[o],enumerable:!(r=MG(n,o))||r.enumerable});return e},UG=e=>zG(Bc({},"__esModule",{value:!0}),e),LP={};jG(LP,{EventStreamCodec:()=>t2,HeaderMarshaller:()=>GP,Int64:()=>Tc,MessageDecoderStream:()=>n2,MessageEncoderStream:()=>r2,SmithyMessageDecoderStream:()=>o2,SmithyMessageEncoderStream:()=>s2});JP.exports=UG(LP);var GG=zi(),cr=Pp(),jP=class zP{constructor(n){if(this.bytes=n,n.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776e3||n<-9223372036854776e3)throw new Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(n));r>-1&&o>0;r--,o/=256)t[r]=o;return n<0&&vp(t),new zP(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&vp(n),parseInt((0,cr.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};nn(jP,"Int64");var Tc=jP;function vp(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}nn(vp,"negate");var UP=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let s of Object.keys(n)){let c=this.fromUtf8(s);t.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(n[s]))}let r=new Uint8Array(t.reduce((s,c)=>s+c.byteLength,0)),o=0;for(let s of t)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,n.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,n.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(n.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+n.value.byteLength));s.setUint8(0,6),s.setUint16(1,n.value.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(n.value,3),c;case"string":let i=this.fromUtf8(n.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(Tc.fromNumber(n.value.valueOf()).bytes,1),a;case"uuid":if(!QG.test(n.value))throw new Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,cr.fromHex)(n.value.replace(/\-/g,"")),1),y}}parse(n){let t={},r=0;for(;r{var qc=Object.defineProperty,i2=Object.getOwnPropertyDescriptor,a2=Object.getOwnPropertyNames,c2=Object.prototype.hasOwnProperty,ZP=(e,n)=>qc(e,"name",{value:n,configurable:!0}),d2=(e,n)=>{for(var t in n)qc(e,t,{get:n[t],enumerable:!0})},l2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of a2(n))!c2.call(e,o)&&o!==t&&qc(e,o,{get:()=>n[o],enumerable:!(r=i2(n,o))||r.enumerable});return e},u2=e=>l2(qc({},"__esModule",{value:!0}),e),e0={};d2(e0,{getSmithyContext:()=>m2,normalizeProvider:()=>p2});t0.exports=u2(e0);var QP=w(),m2=ZP(e=>e[QP.SMITHY_CONTEXT_KEY]||(e[QP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),p2=ZP(e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n},"normalizeProvider")});var Np=m((mEe,h0)=>{var zc=Object.defineProperty,f2=Object.getOwnPropertyDescriptor,y2=Object.getOwnPropertyNames,g2=Object.prototype.hasOwnProperty,$e=(e,n)=>zc(e,"name",{value:n,configurable:!0}),h2=(e,n)=>{for(var t in n)zc(e,t,{get:n[t],enumerable:!0})},_2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y2(n))!g2.call(e,o)&&o!==t&&zc(e,o,{get:()=>n[o],enumerable:!(r=f2(n,o))||r.enumerable});return e},C2=e=>_2(zc({},"__esModule",{value:!0}),e),s0={};h2(s0,{SignatureV4:()=>H2,clearCredentialCache:()=>M2,createScope:()=>Lc,getCanonicalHeaders:()=>Ap,getCanonicalQuery:()=>p0,getPayloadHash:()=>jc,getSigningKey:()=>m0,moveHeadersToQuery:()=>y0,prepareRequest:()=>Op});h0.exports=C2(s0);var S2=wp(),n0=Tr(),Ui=yt(),b2="X-Amz-Algorithm",E2="X-Amz-Credential",i0="X-Amz-Date",P2="X-Amz-SignedHeaders",v2="X-Amz-Expires",a0="X-Amz-Signature",c0="X-Amz-Security-Token",d0="authorization",l0=i0.toLowerCase(),w2="date",x2=[d0,l0,w2],k2=a0.toLowerCase(),kp="x-amz-content-sha256",A2=c0.toLowerCase(),O2={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},N2=/^proxy-/,I2=/^sec-/,xp="AWS4-HMAC-SHA256",R2="AWS4-HMAC-SHA256-PAYLOAD",T2="UNSIGNED-PAYLOAD",B2=50,u0="aws4_request",q2=60*60*24*7,Br=Pp(),D2=yt(),qr={},Fc=[],Lc=$e((e,n,t)=>`${e}/${n}/${t}/${u0}`,"createScope"),m0=$e(async(e,n,t,r,o)=>{let s=await r0(e,n.secretAccessKey,n.accessKeyId),c=`${t}:${r}:${o}:${(0,Br.toHex)(s)}:${n.sessionToken}`;if(c in qr)return qr[c];for(Fc.push(c);Fc.length>B2;)delete qr[Fc.shift()];let i=`AWS4${n.secretAccessKey}`;for(let u of[t,r,o,u0])i=await r0(e,i,u);return qr[c]=i},"getSigningKey"),M2=$e(()=>{Fc.length=0,Object.keys(qr).forEach(e=>{delete qr[e]})},"clearCredentialCache"),r0=$e((e,n,t)=>{let r=new e(n);return r.update((0,D2.toUint8Array)(t)),r.digest()},"hmac"),Ap=$e(({headers:e},n,t)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in O2||n!=null&&n.has(s)||N2.test(s)||I2.test(s))&&(!t||t&&!t.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),Dc=Wm(),p0=$e(({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===k2)continue;n.push(r);let o=e[r];typeof o=="string"?t[r]=`${(0,Dc.escapeUri)(r)}=${(0,Dc.escapeUri)(o)}`:Array.isArray(o)&&(t[r]=o.slice(0).reduce((s,c)=>s.concat([`${(0,Dc.escapeUri)(r)}=${(0,Dc.escapeUri)(c)}`]),[]).sort().join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")},"getCanonicalQuery"),F2=sc(),L2=yt(),jc=$e(async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===kp)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,F2.isArrayBuffer)(n)){let r=new t;return r.update((0,L2.toUint8Array)(n)),(0,Br.toHex)(await r.digest())}return T2},"getPayloadHash"),j2=$e((e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1},"hasHeader"),f0=$e(({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?z2(n):void 0}),"cloneRequest"),z2=$e(e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),y0=$e((e,n={})=>{var t;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():f0(e);for(let s of Object.keys(r)){let c=s.toLowerCase();c.slice(0,6)==="x-amz-"&&!((t=n.unhoistableHeaders)!=null&&t.has(c))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),Op=$e(e=>{e=typeof e.clone=="function"?e.clone():f0(e);for(let n of Object.keys(e.headers))x2.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e},"prepareRequest"),U2=$e(e=>G2(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),G2=$e(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),g0=class{constructor({applyChecksum:n,credentials:t,region:r,service:o,sha256:s,uriEscapePath:c=!0}){this.headerMarshaller=new S2.HeaderMarshaller(Ui.toUtf8,Ui.fromUtf8),this.service=o,this.sha256=s,this.uriEscapePath=c,this.applyChecksum=typeof n=="boolean"?n:!0,this.regionProvider=(0,n0.normalizeProvider)(r),this.credentialProvider=(0,n0.normalizeProvider)(t)}async presign(n,t={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:c,signableHeaders:i,signingRegion:u,signingService:l}=t,a=await this.credentialProvider();this.validateResolvedCredentials(a);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Mc(r);if(o>q2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Lc(C,y,l??this.service),A=y0(Op(n),{unhoistableHeaders:c});a.sessionToken&&(A.query[c0]=a.sessionToken),A.query[b2]=xp,A.query[E2]=`${a.accessKeyId}/${v}`,A.query[i0]=g,A.query[v2]=o.toString(10);let E=Ap(A,s,i);return A.query[P2]=o0(E),A.query[a0]=await this.getSignature(g,v,this.getSigningKey(a,y,C,l),this.createCanonicalRequest(A,E,await jc(n,this.sha256))),A}async sign(n,t){return typeof n=="string"?this.signString(n,t):n.headers&&n.payload?this.signEvent(n,t):n.message?this.signMessage(n,t):this.signRequest(n,t)}async signEvent({headers:n,payload:t},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:c}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Mc(r),a=Lc(u,i,c??this.service),y=await jc({headers:{},body:t},this.sha256),g=new this.sha256;g.update(n);let C=(0,Br.toHex)(await g.digest()),v=[R2,l,a,o,C,y].join(` +`);return this.signString(v,{signingDate:r,signingRegion:i,signingService:c})}async signMessage(n,{signingDate:t=new Date,signingRegion:r,signingService:o}){return this.signEvent({headers:this.headerMarshaller.format(n.message.headers),payload:n.message.body},{signingDate:t,signingRegion:r,signingService:o,priorSignature:n.priorSignature}).then(c=>({message:n.message,signature:c}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let c=r??await this.regionProvider(),{shortDate:i}=Mc(t),u=new this.sha256(await this.getSigningKey(s,c,i,o));return u.update((0,Ui.toUint8Array)(n)),(0,Br.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:c}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=Op(n),{longDate:a,shortDate:y}=Mc(t),g=Lc(y,u,c??this.service);l.headers[l0]=a,i.sessionToken&&(l.headers[A2]=i.sessionToken);let C=await jc(l,this.sha256);!j2(kp,l.headers)&&this.applyChecksum&&(l.headers[kp]=C);let v=Ap(l,o,r),A=await this.getSignature(a,g,this.getSigningKey(i,u,y,c),this.createCanonicalRequest(l,v,C));return l.headers[d0]=`${xp} Credential=${i.accessKeyId}/${g}, SignedHeaders=${o0(v)}, Signature=${A}`,l}createCanonicalRequest(n,t,r){let o=Object.keys(t).sort();return`${n.method} ${this.getCanonicalPath(n)} ${p0(n)} ${o.map(s=>`${s}:${t[s]}`).join(` @@ -16,17 +16,17 @@ ${o.join(";")} ${r}`}async createStringToSign(n,t,r){let o=new this.sha256;o.update((0,Ui.toUint8Array)(r));let s=await o.digest();return`${xp} ${n} ${t} -${(0,Br.toHex)(s)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];for(let s of n.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?t.pop():t.push(s));let r=`${n!=null&&n.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&(n!=null&&n.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return n}async getSignature(n,t,r,o){let s=await this.createStringToSign(n,t,o),c=new this.sha256(await r);return c.update((0,Ui.toUint8Array)(s)),(0,Br.toHex)(await c.digest())}getSigningKey(n,t,r,o){return m0(this.sha256,n,r,t,o||this.service)}validateResolvedCredentials(n){if(typeof n!="object"||typeof n.accessKeyId!="string"||typeof n.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};$e(g0,"SignatureV4");var H2=g0,Dc=$e(e=>{let n=U2(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},"formatDate"),o0=$e(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var C0=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.resolveSigV4AuthConfig=Mr.resolveAwsAuthConfig=void 0;var $2=xe(),Ip=Np(),Dr=Tr(),K2=3e5,V2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Dr.normalizeProvider)(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,i])=>{let{signingRegion:u,signingService:l}=c;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let a={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},y=e.signerConstructor||Ip.SignatureV4;return new y(a)}):s=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Dr.normalizeProvider)(e.region)(),properties:{}},c);let i=c.signingRegion,u=c.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},a=e.signerConstructor||Ip.SignatureV4;return new a(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveAwsAuthConfig=V2;var X2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):s=(0,Dr.normalizeProvider)(new Ip.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:o,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveSigV4AuthConfig=X2;var _0=e=>typeof e=="function"?(0,$2.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,Dr.normalizeProvider)(e)});var Rp=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.getSkewCorrectedDate=void 0;var W2=e=>new Date(Date.now()+e);zc.getSkewCorrectedDate=W2});var S0=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.isClockSkewed=void 0;var Y2=Rp(),J2=(e,n)=>Math.abs((0,Y2.getSkewCorrectedDate)(n).getTime()-e)>=3e5;Uc.isClockSkewed=J2});var b0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.getUpdatedSystemClockOffset=void 0;var Q2=S0(),Z2=(e,n)=>{let t=Date.parse(e);return(0,Q2.isClockSkewed)(t,n)?t-Date.now():n};Gc.getUpdatedSystemClockOffset=Z2});var w0=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin=ct.awsAuthMiddlewareOptions=ct.awsAuthMiddleware=void 0;var v0=Ne(),eH=Rp(),E0=b0(),tH=e=>(n,t)=>async function(r){var o,s,c,i;if(!v0.HttpRequest.isInstance(r.request))return n(r);let u=(c=(s=(o=t.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||c===void 0?void 0:c[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,a=await e.signer(u),y=await n({...r,request:await a.sign(r.request,{signingDate:(0,eH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(C=>{var v;let A=(v=C.ServerTime)!==null&&v!==void 0?v:P0(C.$response);throw A&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=P0(y.response);return g&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};ct.awsAuthMiddleware=tH;var P0=e=>{var n,t,r;return v0.HttpResponse.isInstance(e)?(t=(n=e.headers)===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};ct.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var nH=e=>({applyToStack:n=>{n.addRelativeTo((0,ct.awsAuthMiddleware)(e),ct.awsAuthMiddlewareOptions)}});ct.getAwsAuthPlugin=nH;ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin});var rn=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var x0=(te(),Y(ee));x0.__exportStar(C0(),Hc);x0.__exportStar(w0(),Hc)});var k0=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.resolveUserAgentConfig=void 0;function rH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}$c.resolveUserAgentConfig=rH});var A0=m((_Ee,oH)=>{oH.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Tp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var sH=(te(),Y(ee)),O0=sH.__importDefault(A0()),N0=O0.default,I0="",iH=e=>{let{partitions:n}=N0;for(let r of n){let{regions:o,outputs:s}=r;for(let[c,i]of Object.entries(o))if(c===e)return{...s,...i}}for(let r of n){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let t=n.find(r=>r.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...t.outputs}};Pt.partition=iH;var aH=(e,n="")=>{N0=e,I0=n};Pt.setPartitionInfo=aH;var cH=()=>{(0,Pt.setPartitionInfo)(O0.default,"")};Pt.useDefaultPartitionInfo=cH;var dH=()=>I0;Pt.getUserAgentPrefix=dH});var Vc=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.isIpAddress=void 0;var lH=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}$"),uH=e=>lH.test(e)||e.startsWith("[")&&e.endsWith("]");Kc.isIpAddress=uH});var R0=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.debugId=void 0;Xc.debugId="endpoints"});var T0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.toDebugString=void 0;function Bp(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Bp(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Bp).join(", ")})`:JSON.stringify(e,null,2)}Wc.toDebugString=Bp});var Gi=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var B0=(te(),Y(ee));B0.__exportStar(R0(),Yc);B0.__exportStar(T0(),Yc)});var q0=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.EndpointError=void 0;var qp=class extends Error{constructor(n){super(n),this.name="EndpointError"}};Jc.EndpointError=qp});var M0=m(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0})});var L0=m(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0})});var z0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var G0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var $0=m(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0})});var gt=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Fr=(te(),Y(ee));Fr.__exportStar(q0(),Nn);Fr.__exportStar(M0(),Nn);Fr.__exportStar(L0(),Nn);Fr.__exportStar(z0(),Nn);Fr.__exportStar(G0(),Nn);Fr.__exportStar($0(),Nn)});var Dp=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.isValidHostLabel=void 0;var mH=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pH=(e,n=!1)=>{if(!n)return mH.test(e);let t=e.split(".");for(let r of t)if(!(0,Hi.isValidHostLabel)(r))return!1;return!0};Hi.isValidHostLabel=pH});var K0=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isVirtualHostableS3Bucket=void 0;var fH=Vc(),yH=Dp(),gH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,$i.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,yH.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,fH.isIpAddress)(e))};$i.isVirtualHostableS3Bucket=gH});var V0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.parseArn=void 0;var hH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,o,s,c,...i]=n;return t!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:c,resourceId:i[0].includes("/")?i[0].split("/"):i}};Qc.parseArn=hH});var X0=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Mp=(te(),Y(ee));Mp.__exportStar(K0(),Ki);Mp.__exportStar(V0(),Ki);Mp.__exportStar(Tp(),Ki)});var W0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.booleanEquals=void 0;var _H=(e,n)=>e===n;Zc.booleanEquals=_H});var J0=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.getAttrPathList=void 0;var Y0=gt(),CH=e=>{let n=e.split("."),t=[];for(let r of n){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new Y0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new Y0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&t.push(r.slice(0,o)),t.push(s)}else t.push(r)}return t};ed.getAttrPathList=CH});var Q0=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getAttr=void 0;var SH=gt(),bH=J0(),EH=(e,n)=>(0,bH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new SH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);td.getAttr=EH});var Z0=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.isSet=void 0;var PH=e=>e!=null;nd.isSet=PH});var ev=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.not=void 0;var vH=e=>!e;rd.not=vH});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var rv=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.HttpAuthLocation=void 0;var wH=w();Object.defineProperty(od,"HttpAuthLocation",{enumerable:!0,get:function(){return wH.HttpAuthLocation}})});var sv=m(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var av=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var dv=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0})});var uv=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var pv=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var yv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var _v=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.HostAddressType=void 0;var xH;(function(e){e.AAAA="AAAA",e.A="A"})(xH=Vi.HostAddressType||(Vi.HostAddressType={}))});var Sv=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var bv=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.EndpointURLScheme=void 0;var kH=w();Object.defineProperty(sd,"EndpointURLScheme",{enumerable:!0,get:function(){return kH.EndpointURLScheme}})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Fv=m(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var Xi=(te(),Y(ee));Xi.__exportStar(Ov(),lr);Xi.__exportStar(Iv(),lr);Xi.__exportStar(Tv(),lr);Xi.__exportStar(qv(),lr);Xi.__exportStar(Mv(),lr)});var jv=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Uv=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Xv=m(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0})});var Yv=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Qv=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var ew=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var nw=m(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var ow=m(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var iw=m(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0})});var cw=m(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0})});var dw=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.RequestHandlerProtocol=void 0;var AH=w();Object.defineProperty(id,"RequestHandlerProtocol",{enumerable:!0,get:function(){return AH.RequestHandlerProtocol}})});var uw=m(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0})});var pw=m(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0})});var yw=m(fw=>{"use strict";Object.defineProperty(fw,"__esModule",{value:!0})});var gw=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var me=(te(),Y(ee));me.__exportStar(nv(),le);me.__exportStar(rv(),le);me.__exportStar(sv(),le);me.__exportStar(av(),le);me.__exportStar(dv(),le);me.__exportStar(uv(),le);me.__exportStar(pv(),le);me.__exportStar(yv(),le);me.__exportStar(hv(),le);me.__exportStar(_v(),le);me.__exportStar(Sv(),le);me.__exportStar(bv(),le);me.__exportStar(Pv(),le);me.__exportStar(wv(),le);me.__exportStar(kv(),le);me.__exportStar(Fv(),le);me.__exportStar(jv(),le);me.__exportStar(Uv(),le);me.__exportStar(Hv(),le);me.__exportStar(Kv(),le);me.__exportStar(Xv(),le);me.__exportStar(Yv(),le);me.__exportStar(Qv(),le);me.__exportStar(ew(),le);me.__exportStar(nw(),le);me.__exportStar(ow(),le);me.__exportStar(iw(),le);me.__exportStar(cw(),le);me.__exportStar(dw(),le);me.__exportStar(uw(),le);me.__exportStar(pw(),le);me.__exportStar(yw(),le)});var hw=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.parseURL=void 0;var Lp=gw(),OH=Vc(),Fp={[Lp.EndpointURLScheme.HTTP]:80,[Lp.EndpointURLScheme.HTTPS]:443},NH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:v="",path:A="",query:E={}}=e,G=new URL(`${v}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(E).map(([ye,nt])=>`${ye}=${nt}`).join("&"),G}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let t=n.href,{host:r,hostname:o,pathname:s,protocol:c,search:i}=n;if(i)return null;let u=c.slice(0,-1);if(!Object.values(Lp.EndpointURLScheme).includes(u))return null;let l=(0,OH.isIpAddress)(o),a=t.includes(`${r}:${Fp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Fp[u]}`),y=`${r}${a?`:${Fp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};ad.parseURL=NH});var _w=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.stringEquals=void 0;var IH=(e,n)=>e===n;cd.stringEquals=IH});var Cw=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.substring=void 0;var RH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.uriEncode=void 0;var TH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);ld.uriEncode=TH});var jp=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.aws=void 0;var qt=(te(),Y(ee));dt.aws=qt.__importStar(X0());qt.__exportStar(W0(),dt);qt.__exportStar(Q0(),dt);qt.__exportStar(Z0(),dt);qt.__exportStar(Dp(),dt);qt.__exportStar(ev(),dt);qt.__exportStar(hw(),dt);qt.__exportStar(_w(),dt);qt.__exportStar(Cw(),dt);qt.__exportStar(Sw(),dt)});var zp=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.evaluateTemplate=void 0;var BH=jp(),qH=(e,n)=>{let t=[],r={...n.endpointParams,...n.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.getReferenceValue=void 0;var DH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];md.getReferenceValue=DH});var Wi=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.evaluateExpression=void 0;var MH=gt(),FH=Up(),LH=zp(),jH=bw(),zH=(e,n,t)=>{if(typeof e=="string")return(0,LH.evaluateTemplate)(e,t);if(e.fn)return(0,FH.callFunction)(e,t);if(e.ref)return(0,jH.getReferenceValue)(e,t);throw new MH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};pd.evaluateExpression=zH});var Up=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.callFunction=void 0;var UH=(te(),Y(ee)),GH=UH.__importStar(jp()),HH=Wi(),$H=({fn:e,argv:n},t)=>{let r=n.map(o=>["boolean","number"].includes(typeof o)?o:(0,HH.evaluateExpression)(o,"arg",t));return e.split(".").reduce((o,s)=>o[s],GH)(...r)};fd.callFunction=$H});var Ew=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.evaluateCondition=void 0;var Gp=Gi(),KH=gt(),VH=Up(),XH=({assign:e,...n},t)=>{var r,o;if(e&&e in t.referenceRecord)throw new KH.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,VH.callFunction)(n,t);return(o=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Gp.debugId,`evaluateCondition: ${(0,Gp.toDebugString)(n)} = ${(0,Gp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};yd.evaluateCondition=XH});var hd=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateConditions=void 0;var Pw=Gi(),WH=Ew(),YH=(e=[],n)=>{var t,r;let o={};for(let s of e){let{result:c,toAssign:i}=(0,WH.evaluateCondition)(s,{...n,referenceRecord:{...n.referenceRecord,...o}});if(!c)return{result:c};i&&(o[i.name]=i.value,(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Pw.debugId,`assign: ${i.name} := ${(0,Pw.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};gd.evaluateConditions=YH});var vw=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.getEndpointHeaders=void 0;var JH=gt(),QH=Wi(),ZH=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:o.map(s=>{let c=(0,QH.evaluateExpression)(s,"Header value entry",n);if(typeof c!="string")throw new JH.EndpointError(`Header '${r}' value '${c}' is not a string`);return c})}),{});_d.getEndpointHeaders=ZH});var xw=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getEndpointProperty=void 0;var ww=gt(),e$=zp(),t$=Hp(),n$=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,Yi.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,e$.evaluateTemplate)(e,n);case"object":if(e===null)throw new ww.EndpointError(`Unexpected endpoint property: ${e}`);return(0,t$.getEndpointProperties)(e,n);case"boolean":return e;default:throw new ww.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Yi.getEndpointProperty=n$});var Hp=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.getEndpointProperties=void 0;var r$=xw(),o$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:(0,r$.getEndpointProperty)(o,n)}),{});Cd.getEndpointProperties=o$});var kw=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getEndpointUrl=void 0;var s$=gt(),i$=Wi(),a$=(e,n)=>{let t=(0,i$.evaluateExpression)(e,"Endpoint URL",n);if(typeof t=="string")try{return new URL(t)}catch(r){throw console.error(`Failed to construct URL with ${t}`,r),r}throw new s$.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};Sd.getEndpointUrl=a$});var Ow=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.evaluateEndpointRule=void 0;var Aw=Gi(),c$=hd(),d$=vw(),l$=Hp(),u$=kw(),m$=(e,n)=>{var t,r;let{conditions:o,endpoint:s}=e,{result:c,referenceRecord:i}=(0,c$.evaluateConditions)(o,n);if(!c)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:a,headers:y}=s;return(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Aw.debugId,`Resolving endpoint from template: ${(0,Aw.toDebugString)(s)}`),{...y!=null&&{headers:(0,d$.getEndpointHeaders)(y,u)},...a!=null&&{properties:(0,l$.getEndpointProperties)(a,u)},url:(0,u$.getEndpointUrl)(l,u)}};bd.evaluateEndpointRule=m$});var Nw=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.evaluateErrorRule=void 0;var p$=gt(),f$=hd(),y$=Wi(),g$=(e,n)=>{let{conditions:t,error:r}=e,{result:o,referenceRecord:s}=(0,f$.evaluateConditions)(t,n);if(o)throw new p$.EndpointError((0,y$.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...s}}))};Ed.evaluateErrorRule=g$});var Iw=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.evaluateTreeRule=void 0;var h$=hd(),_$=$p(),C$=(e,n)=>{let{conditions:t,rules:r}=e,{result:o,referenceRecord:s}=(0,h$.evaluateConditions)(t,n);if(o)return(0,_$.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...s}})};Pd.evaluateTreeRule=C$});var $p=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.evaluateRules=void 0;var Rw=gt(),S$=Ow(),b$=Nw(),E$=Iw(),P$=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,S$.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,b$.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,E$.evaluateTreeRule)(t,n);if(r)return r}else throw new Rw.EndpointError(`Unknown endpoint rule: ${t}`);throw new Rw.EndpointError("Rules evaluation failed")};vd.evaluateRules=P$});var Tw=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var v$=(te(),Y(ee));v$.__exportStar($p(),Kp)});var Bw=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.resolveEndpoint=void 0;var wd=Gi(),w$=gt(),x$=Tw(),k$=(e,n)=>{var t,r,o,s,c,i;let{endpointParams:u,logger:l}=n,{parameters:a,rules:y}=e;(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,`${wd.debugId} Initial EndpointParams: ${(0,wd.toDebugString)(u)}`);let g=Object.entries(a).filter(([,A])=>A.default!=null).map(([A,E])=>[A,E.default]);if(g.length>0)for(let[A,E]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:E;let C=Object.entries(a).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new w$.EndpointError(`Missing required parameter: '${A}'`);let v=(0,x$.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=n.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(n.endpointParams.Endpoint),{protocol:E,port:G}=A;v.url.protocol=E,v.url.port=G}catch{}return(i=(c=n.logger)===null||c===void 0?void 0:c.debug)===null||i===void 0||i.call(c,`${wd.debugId} Resolved endpoint: ${(0,wd.toDebugString)(v)}`),v};xd.resolveEndpoint=k$});var jr=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var kd=(te(),Y(ee));kd.__exportStar(Tp(),Lr);kd.__exportStar(Vc(),Lr);kd.__exportStar(Bw(),Lr);kd.__exportStar(gt(),Lr)});var qw=m(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.UA_ESCAPE_CHAR=Je.UA_VALUE_ESCAPE_REGEX=Je.UA_NAME_ESCAPE_REGEX=Je.UA_NAME_SEPARATOR=Je.SPACE=Je.X_AMZ_USER_AGENT=Je.USER_AGENT=void 0;Je.USER_AGENT="user-agent";Je.X_AMZ_USER_AGENT="x-amz-user-agent";Je.SPACE=" ";Je.UA_NAME_SEPARATOR="/";Je.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Je.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Je.UA_ESCAPE_CHAR="-"});var Dw=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getUserAgentPlugin=Dt.getUserAgentMiddlewareOptions=Dt.userAgentMiddleware=void 0;var A$=jr(),O$=Ne(),st=qw(),N$=e=>(n,t)=>async r=>{var o,s;let{request:c}=r;if(!O$.HttpRequest.isInstance(c))return n(r);let{headers:i}=c,u=((o=t==null?void 0:t.userAgent)===null||o===void 0?void 0:o.map(Vp))||[],l=(await e.defaultUserAgentProvider()).map(Vp),a=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vp))||[],y=(0,A$.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...a]).join(st.SPACE),C=[...l.filter(v=>v.startsWith("aws-sdk-")),...a].join(st.SPACE);return e.runtime!=="browser"?(C&&(i[st.X_AMZ_USER_AGENT]=i[st.X_AMZ_USER_AGENT]?`${i[st.USER_AGENT]} ${C}`:C),i[st.USER_AGENT]=g):i[st.X_AMZ_USER_AGENT]=g,n({...r,request:c})};Dt.userAgentMiddleware=N$;var Vp=e=>{var n;let t=e[0].split(st.UA_NAME_SEPARATOR).map(i=>i.replace(st.UA_NAME_ESCAPE_REGEX,st.UA_ESCAPE_CHAR)).join(st.UA_NAME_SEPARATOR),r=(n=e[1])===null||n===void 0?void 0:n.replace(st.UA_VALUE_ESCAPE_REGEX,st.UA_ESCAPE_CHAR),o=t.indexOf(st.UA_NAME_SEPARATOR),s=t.substring(0,o),c=t.substring(o+1);return s==="api"&&(c=c.toLowerCase()),[s,c,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};Dt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var I$=e=>({applyToStack:n=>{n.add((0,Dt.userAgentMiddleware)(e),Dt.getUserAgentMiddlewareOptions)}});Dt.getUserAgentPlugin=I$});var Ji=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Mw=(te(),Y(ee));Mw.__exportStar(k0(),Ad);Mw.__exportStar(Dw(),Ad)});var Nd=m((WPe,zw)=>{var Od=Object.defineProperty,R$=Object.getOwnPropertyDescriptor,T$=Object.getOwnPropertyNames,B$=Object.prototype.hasOwnProperty,Fw=(e,n)=>Od(e,"name",{value:n,configurable:!0}),q$=(e,n)=>{for(var t in n)Od(e,t,{get:n[t],enumerable:!0})},D$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T$(n))!B$.call(e,o)&&o!==t&&Od(e,o,{get:()=>n[o],enumerable:!(r=R$(n,o))||r.enumerable});return e},M$=e=>D$(Od({},"__esModule",{value:!0}),e),Lw={};q$(Lw,{SelectorType:()=>jw,booleanSelector:()=>F$,numberSelector:()=>L$});zw.exports=M$(Lw);var F$=Fw((e,n,t)=>{if(n in e){if(e[n]==="true")return!0;if(e[n]==="false")return!1;throw new Error(`Cannot load ${t} "${n}". Expected "true" or "false", got ${e[n]}.`)}},"booleanSelector"),L$=Fw((e,n,t)=>{if(!(n in e))return;let r=parseInt(e[n],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${t} '${n}'. Expected number, got '${e[n]}'.`);return r},"numberSelector"),jw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(jw||{})});var Mt=m((YPe,Qw)=>{var Rd=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,z$=Object.getOwnPropertyNames,U$=Object.prototype.hasOwnProperty,vt=(e,n)=>Rd(e,"name",{value:n,configurable:!0}),G$=(e,n)=>{for(var t in n)Rd(e,t,{get:n[t],enumerable:!0})},H$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of z$(n))!U$.call(e,o)&&o!==t&&Rd(e,o,{get:()=>n[o],enumerable:!(r=j$(n,o))||r.enumerable});return e},$$=e=>H$(Rd({},"__esModule",{value:!0}),e),Hw={};G$(Hw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Kw,CONFIG_USE_FIPS_ENDPOINT:()=>Xw,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>K$,DEFAULT_USE_FIPS_ENDPOINT:()=>X$,ENV_USE_DUALSTACK_ENDPOINT:()=>$w,ENV_USE_FIPS_ENDPOINT:()=>Vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>eK,NODE_REGION_CONFIG_OPTIONS:()=>Z$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>V$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>W$,REGION_ENV_NAME:()=>Ww,REGION_INI_NAME:()=>Yw,getRegionInfo:()=>sK,resolveCustomEndpointsConfig:()=>Y$,resolveEndpointsConfig:()=>Q$,resolveRegionConfig:()=>tK});Qw.exports=$$(Hw);var In=Nd(),$w="AWS_USE_DUALSTACK_ENDPOINT",Kw="use_dualstack_endpoint",K$=!1,V$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,$w,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Kw,In.SelectorType.CONFIG),default:!1},Vw="AWS_USE_FIPS_ENDPOINT",Xw="use_fips_endpoint",X$=!1,W$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,Vw,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Xw,In.SelectorType.CONFIG),default:!1},Id=Tr(),Y$=vt(e=>{let{endpoint:n,urlParser:t}=e;return{...e,tls:e.tls??!0,endpoint:(0,Id.normalizeProvider)(typeof n=="string"?t(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,Id.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),J$=vt(async e=>{let{tls:n=!0}=e,t=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(t))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:c}=await e.regionInfoProvider(t,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${c}`)},"getEndpointFromRegion"),Q$=vt(e=>{let n=(0,Id.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:t,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:t?(0,Id.normalizeProvider)(typeof t=="string"?o(t):t):()=>J$({...e,useDualstackEndpoint:n,useFipsEndpoint:r}),isCustomEndpoint:!!t,useDualstackEndpoint:n}},"resolveEndpointsConfig"),Ww="AWS_REGION",Yw="region",Z$={environmentVariableSelector:e=>e[Ww],configFileSelector:e=>e[Yw],default:()=>{throw new Error("Region is missing")}},eK={preferredFile:"credentials"},Jw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Uw=vt(e=>Jw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),tK=vt(e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return Uw(n);let r=await n();return Uw(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return Jw(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}},"resolveRegionConfig"),Gw=vt((e=[],{useFipsEndpoint:n,useDualstackEndpoint:t})=>{var r;return(r=e.find(({tags:o})=>n===o.includes("fips")&&t===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),nK=vt((e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0),"getResolvedHostname"),rK=vt((e,{partitionHash:n})=>Object.keys(n||{}).find(t=>n[t].regions.includes(e))??"aws","getResolvedPartition"),oK=vt((e,{signingRegion:n,regionRegex:t,useFipsEndpoint:r})=>{if(n)return n;if(r){let o=t.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),sK=vt((e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:o,partitionHash:s})=>{var c,i,u,l,a;let y=rK(e,{partitionHash:s}),g=e in o?e:((c=s[y])==null?void 0:c.endpoint)??e,C={useFipsEndpoint:n,useDualstackEndpoint:t},v=Gw((i=o[g])==null?void 0:i.variants,C),A=Gw((u=s[y])==null?void 0:u.variants,C),E=nK(g,{regionHostname:v,partitionHostname:A});if(E===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let G=oK(E,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:n});return{partition:y,signingService:r,hostname:E,...G&&{signingRegion:G},...((a=o[g])==null?void 0:a.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var tx=m((JPe,ex)=>{var Td=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,dK=(e,n)=>Td(e,"name",{value:n,configurable:!0}),lK=(e,n)=>{for(var t in n)Td(e,t,{get:n[t],enumerable:!0})},uK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of aK(n))!cK.call(e,o)&&o!==t&&Td(e,o,{get:()=>n[o],enumerable:!(r=iK(n,o))||r.enumerable});return e},mK=e=>uK(Td({},"__esModule",{value:!0}),e),Zw={};lK(Zw,{resolveEventStreamSerdeConfig:()=>pK});ex.exports=mK(Zw);var pK=dK(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Qi=m((QPe,ix)=>{var Bd=Object.defineProperty,fK=Object.getOwnPropertyDescriptor,yK=Object.getOwnPropertyNames,gK=Object.prototype.hasOwnProperty,rx=(e,n)=>Bd(e,"name",{value:n,configurable:!0}),hK=(e,n)=>{for(var t in n)Bd(e,t,{get:n[t],enumerable:!0})},_K=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of yK(n))!gK.call(e,o)&&o!==t&&Bd(e,o,{get:()=>n[o],enumerable:!(r=fK(n,o))||r.enumerable});return e},CK=e=>_K(Bd({},"__esModule",{value:!0}),e),ox={};hK(ox,{contentLengthMiddleware:()=>Xp,contentLengthMiddlewareOptions:()=>sx,getContentLengthPlugin:()=>bK});ix.exports=CK(ox);var SK=Ne(),nx="content-length";function Xp(e){return n=>async t=>{let r=t.request;if(SK.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(c=>c.toLowerCase()).indexOf(nx)===-1)try{let c=e(o);r.headers={...r.headers,[nx]:String(c)}}catch{}}return n({...t,request:r})}}rx(Xp,"contentLengthMiddleware");var sx={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},bK=rx(e=>({applyToStack:n=>{n.add(Xp(e.bodyLengthChecker),sx)}}),"getContentLengthPlugin")});var Zi=m(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.getHomeDir=void 0;var EK=require("os"),PK=require("path"),Wp={},vK=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",wK=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${PK.sep}`}=process.env;if(e)return e;if(n)return n;if(t)return`${r}${t}`;let o=vK();return Wp[o]||(Wp[o]=(0,EK.homedir)()),Wp[o]};qd.getHomeDir=wK});var Yp=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getSSOTokenFilepath=void 0;var xK=require("crypto"),kK=require("path"),AK=Zi(),OK=e=>{let t=(0,xK.createHash)("sha1").update(e).digest("hex");return(0,kK.join)((0,AK.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Dd.getSSOTokenFilepath=OK});var ax=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getSSOTokenFromFile=void 0;var NK=require("fs"),IK=Yp(),{readFile:RK}=NK.promises,TK=async e=>{let n=(0,IK.getSSOTokenFilepath)(e),t=await RK(n,"utf8");return JSON.parse(t)};Md.getSSOTokenFromFile=TK});var Qp=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.slurpFile=void 0;var BK=require("fs"),{readFile:qK}=BK.promises,Jp={},DK=(e,n)=>((!Jp[e]||n!=null&&n.ignoreCache)&&(Jp[e]=qK(e,"utf8")),Jp[e]);Fd.slurpFile=DK});var wt=m((r0e,ta)=>{var jd=Object.defineProperty,MK=Object.getOwnPropertyDescriptor,FK=Object.getOwnPropertyNames,LK=Object.prototype.hasOwnProperty,ht=(e,n)=>jd(e,"name",{value:n,configurable:!0}),jK=(e,n)=>{for(var t in n)jd(e,t,{get:n[t],enumerable:!0})},Zp=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FK(n))!LK.call(e,o)&&o!==t&&jd(e,o,{get:()=>n[o],enumerable:!(r=MK(n,o))||r.enumerable});return e},tf=(e,n,t)=>(Zp(e,n,"default"),t&&Zp(t,n,"default")),zK=e=>Zp(jd({},"__esModule",{value:!0}),e),ea={};jK(ea,{CONFIG_PREFIX_SEPARATOR:()=>ur,DEFAULT_PROFILE:()=>ux,ENV_PROFILE:()=>lx,getProfileName:()=>UK,loadSharedConfigFiles:()=>fx,loadSsoSessionData:()=>eV,parseKnownFiles:()=>nV});ta.exports=zK(ea);tf(ea,Zi(),ta.exports);var lx="AWS_PROFILE",ux="default",UK=ht(e=>e.profile||process.env[lx]||ux,"getProfileName");tf(ea,Yp(),ta.exports);tf(ea,ax(),ta.exports);var Ld=w(),GK=ht(e=>Object.entries(e).filter(([n])=>{let t=n.indexOf(ur);return t===-1?!1:Object.values(Ld.IniSectionType).includes(n.substring(0,t))}).reduce((n,[t,r])=>{let o=t.indexOf(ur),s=t.substring(0,o)===Ld.IniSectionType.PROFILE?t.substring(o+1):t;return n[s]=r,n},{...e.default&&{default:e.default}}),"getConfigData"),mx=require("path"),HK=Zi(),$K="AWS_CONFIG_FILE",px=ht(()=>process.env[$K]||(0,mx.join)((0,HK.getHomeDir)(),".aws","config"),"getConfigFilepath"),KK=Zi(),VK="AWS_SHARED_CREDENTIALS_FILE",XK=ht(()=>process.env[VK]||(0,mx.join)((0,KK.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),WK=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,YK=["__proto__","profile __proto__"],ef=ht(e=>{let n={},t,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let i=s.substring(1,s.length-1),u=WK.exec(i);if(u){let[,l,,a]=u;Object.values(Ld.IniSectionType).includes(l)&&(t=[l,a].join(ur))}else t=i;if(YK.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(t){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),n[t]=n[t]||{};let a=r?[r,u].join(ur):u;n[t][a]=l}}}}return n},"parseIni"),cx=Qp(),dx=ht(()=>({}),"swallowError"),ur=".",fx=ht(async(e={})=>{let{filepath:n=XK(),configFilepath:t=px()}=e,r=await Promise.all([(0,cx.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(ef).then(GK).catch(dx),(0,cx.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(ef).catch(dx)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),JK=ht(e=>Object.entries(e).filter(([n])=>n.startsWith(Ld.IniSectionType.SSO_SESSION+ur)).reduce((n,[t,r])=>({...n,[t.split(ur)[1]]:r}),{}),"getSsoSessionData"),QK=Qp(),ZK=ht(()=>({}),"swallowError"),eV=ht(async(e={})=>(0,QK.slurpFile)(e.configFilepath??px()).then(ef).then(JK).catch(ZK),"loadSsoSessionData"),tV=ht((...e)=>{let n={};for(let t of e)for(let[r,o]of Object.entries(t))n[r]!==void 0?Object.assign(n[r],o):n[r]=o;return n},"mergeConfigFiles"),nV=ht(async e=>{let n=await fx(e);return tV(n.configFile,n.credentialsFile)},"parseKnownFiles")});var on=m((o0e,hx)=>{var zd=Object.defineProperty,rV=Object.getOwnPropertyDescriptor,oV=Object.getOwnPropertyNames,sV=Object.prototype.hasOwnProperty,ra=(e,n)=>zd(e,"name",{value:n,configurable:!0}),iV=(e,n)=>{for(var t in n)zd(e,t,{get:n[t],enumerable:!0})},aV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oV(n))!sV.call(e,o)&&o!==t&&zd(e,o,{get:()=>n[o],enumerable:!(r=rV(n,o))||r.enumerable});return e},cV=e=>aV(zd({},"__esModule",{value:!0}),e),gx={};iV(gx,{loadConfig:()=>pV});hx.exports=cV(gx);var na=xe(),dV=ra(e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new na.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),yx=wt(),lV=ra((e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,yx.getProfileName)(t),{configFile:o,credentialsFile:s}=await(0,yx.loadSharedConfigFiles)(t),c=s[r]||{},i=o[r]||{},u=n==="config"?{...c,...i}:{...i,...c};try{let a=e(u,n==="config"?o:s);if(a===void 0)throw new Error;return a}catch(l){throw new na.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),uV=ra(e=>typeof e=="function","isFunction"),mV=ra(e=>uV(e)?async()=>await e():(0,na.fromStatic)(e),"fromStatic"),pV=ra(({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,na.memoize)((0,na.chain)(dV(e),lV(n,r),mV(t))),"loadConfig")});var bx=m(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.getEndpointUrlConfig=void 0;var _x=wt(),Cx="AWS_ENDPOINT_URL",Sx="endpoint_url",fV=e=>({environmentVariableSelector:n=>{let t=e.split(" ").map(s=>s.toUpperCase()),r=n[[Cx,...t].join("_")];if(r)return r;let o=n[Cx];if(o)return o},configFileSelector:(n,t)=>{if(t&&n.services){let o=t[["services",n.services].join(_x.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),c=o[[s.join("_"),Sx].join(_x.CONFIG_PREFIX_SEPARATOR)];if(c)return c}}let r=n[Sx];if(r)return r},default:void 0});Ud.getEndpointUrlConfig=fV});var Ex=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getEndpointFromConfig=void 0;var yV=on(),gV=bx(),hV=async e=>(0,yV.loadConfig)((0,gV.getEndpointUrlConfig)(e))();Gd.getEndpointFromConfig=hV});var xx=m((a0e,wx)=>{var Hd=Object.defineProperty,_V=Object.getOwnPropertyDescriptor,CV=Object.getOwnPropertyNames,SV=Object.prototype.hasOwnProperty,bV=(e,n)=>Hd(e,"name",{value:n,configurable:!0}),EV=(e,n)=>{for(var t in n)Hd(e,t,{get:n[t],enumerable:!0})},PV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of CV(n))!SV.call(e,o)&&o!==t&&Hd(e,o,{get:()=>n[o],enumerable:!(r=_V(n,o))||r.enumerable});return e},vV=e=>PV(Hd({},"__esModule",{value:!0}),e),Px={};EV(Px,{parseQueryString:()=>vx});wx.exports=vV(Px);function vx(e){let n={};if(e=e.replace(/^\?/,""),e)for(let t of e.split("&")){let[r,o=null]=t.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in n?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o}return n}bV(vx,"parseQueryString")});var mr=m((c0e,Ox)=>{var $d=Object.defineProperty,wV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,kV=Object.prototype.hasOwnProperty,AV=(e,n)=>$d(e,"name",{value:n,configurable:!0}),OV=(e,n)=>{for(var t in n)$d(e,t,{get:n[t],enumerable:!0})},NV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xV(n))!kV.call(e,o)&&o!==t&&$d(e,o,{get:()=>n[o],enumerable:!(r=wV(n,o))||r.enumerable});return e},IV=e=>NV($d({},"__esModule",{value:!0}),e),kx={};OV(kx,{parseUrl:()=>Ax});Ox.exports=IV(kx);var RV=xx(),Ax=AV(e=>{if(typeof e=="string")return Ax(new URL(e));let{hostname:n,pathname:t,port:r,protocol:o,search:s}=e,c;return s&&(c=(0,RV.parseQueryString)(s)),{hostname:n,port:r?parseInt(r):void 0,protocol:o,path:t,query:c}},"parseUrl")});var k=m((d0e,Dx)=>{var Kd=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,BV=Object.getOwnPropertyNames,qV=Object.prototype.hasOwnProperty,nf=(e,n)=>Kd(e,"name",{value:n,configurable:!0}),DV=(e,n)=>{for(var t in n)Kd(e,t,{get:n[t],enumerable:!0})},MV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of BV(n))!qV.call(e,o)&&o!==t&&Kd(e,o,{get:()=>n[o],enumerable:!(r=TV(n,o))||r.enumerable});return e},FV=e=>MV(Kd({},"__esModule",{value:!0}),e),Nx={};DV(Nx,{deserializerMiddleware:()=>Ix,deserializerMiddlewareOption:()=>Tx,getSerdePlugin:()=>qx,serializerMiddleware:()=>Rx,serializerMiddlewareOption:()=>Bx});Dx.exports=FV(Nx);var Ix=nf((e,n)=>(t,r)=>async o=>{let{response:s}=await t(o);try{let c=await n(s,e);return{response:s,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:s}),!("$metadata"in c)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";c.message+=` - `+i}throw c}},"deserializerMiddleware"),Rx=nf((e,n)=>(t,r)=>async o=>{var s;let c=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!c)throw new Error("No valid endpoint provider available.");let i=await n(o.input,{...e,endpoint:c});return t({...o,request:i})},"serializerMiddleware"),Tx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bx={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function qx(e,n,t){return{applyToStack:r=>{r.add(Ix(e,t),Tx),r.add(Rx(e,n),Bx)}}}nf(qx,"getSerdePlugin")});var x=m((l0e,Gx)=>{var Xd=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,jV=Object.getOwnPropertyNames,zV=Object.prototype.hasOwnProperty,xt=(e,n)=>Xd(e,"name",{value:n,configurable:!0}),UV=(e,n)=>{for(var t in n)Xd(e,t,{get:n[t],enumerable:!0})},GV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jV(n))!zV.call(e,o)&&o!==t&&Xd(e,o,{get:()=>n[o],enumerable:!(r=LV(n,o))||r.enumerable});return e},HV=e=>GV(Xd({},"__esModule",{value:!0}),e),Fx={};UV(Fx,{endpointMiddleware:()=>zx,endpointMiddlewareOptions:()=>Ux,getEndpointFromInstructions:()=>Lx,getEndpointPlugin:()=>e6,resolveEndpointConfig:()=>t6,resolveParams:()=>jx,toEndpointV1:()=>rf});Gx.exports=HV(Fx);var $V=xt(async e=>{let n=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),YV(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!WV(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),KV=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,VV=/(\d+\.){3}\d+/,XV=/\.\./,WV=xt(e=>KV.test(e)&&!VV.test(e)&&!XV.test(e),"isDnsCompatibleBucketName"),YV=xt(e=>{let[n,t,r,o,s,c]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,s,c].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!s&&!!c},"isArnBucketName"),JV=xt((e,n,t)=>{let r=xt(async()=>{let o=t[e]??t[n];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||n==="CredentialScope"?async()=>{let o=typeof t.credentials=="function"?await t.credentials():t.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||n==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:c,port:i,path:u}=o;return`${s}//${c}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),QV=Ex(),Mx=mr(),rf=xt(e=>typeof e=="object"?"url"in e?(0,Mx.parseUrl)(e.url):e:(0,Mx.parseUrl)(e),"toEndpointV1"),Lx=xt(async(e,n,t,r)=>{if(!t.endpoint){let c=await(0,QV.getEndpointFromConfig)(t.serviceId||"");c&&(t.endpoint=()=>Promise.resolve(rf(c)))}let o=await jx(e,n,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(o,r)},"getEndpointFromInstructions"),jx=xt(async(e,n,t)=>{var r;let o={},s=((r=n==null?void 0:n.getEndpointParameterInstructions)==null?void 0:r.call(n))||{};for(let[c,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[c]=i.value;break;case"contextParams":o[c]=e[i.name];break;case"clientContextParams":case"builtInParams":o[c]=await JV(i.name,c,t)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,t),String(t.serviceId).toLowerCase()==="s3"&&await $V(o),o},"resolveParams"),Vd=Tr(),zx=xt(({config:e,instructions:n})=>(t,r)=>async o=>{var s,c,i;let u=await Lx(o.input,{getEndpointParameterInstructions(){return n}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(c=r.authSchemes)==null?void 0:c[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let a=(0,Vd.getSmithyContext)(r),y=(i=a==null?void 0:a.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return t({...o})},"endpointMiddleware"),ZV=k(),Ux={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZV.serializerMiddlewareOption.name},e6=xt((e,n)=>({applyToStack:t=>{t.addRelativeTo(zx({config:e,instructions:n}),Ux)}}),"getEndpointPlugin"),t6=xt(e=>{let n=e.tls??!0,{endpoint:t}=e,r=t!=null?async()=>rf(await(0,Vd.normalizeProvider)(t)()):void 0;return{...e,endpoint:r,tls:n,isCustomEndpoint:!!t,useDualstackEndpoint:(0,Vd.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Vd.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function oa(){return Wd>Yd.length-16&&(Hx.default.randomFillSync(Yd),Wd=0),Yd.slice(Wd,Wd+=16)}var Hx,Yd,Wd,of=Le(()=>{Hx=Oi(require("crypto")),Yd=new Uint8Array(256),Wd=Yd.length});var $x,Kx=Le(()=>{$x=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function n6(e){return typeof e=="string"&&$x.test(e)}var Rn,sa=Le(()=>{Kx();Rn=n6});function r6(e,n=0){let t=(Ke[e[n+0]]+Ke[e[n+1]]+Ke[e[n+2]]+Ke[e[n+3]]+"-"+Ke[e[n+4]]+Ke[e[n+5]]+"-"+Ke[e[n+6]]+Ke[e[n+7]]+"-"+Ke[e[n+8]]+Ke[e[n+9]]+"-"+Ke[e[n+10]]+Ke[e[n+11]]+Ke[e[n+12]]+Ke[e[n+13]]+Ke[e[n+14]]+Ke[e[n+15]]).toLowerCase();if(!Rn(t))throw TypeError("Stringified UUID is invalid");return t}var Ke,Tn,ia=Le(()=>{sa();Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).substr(1));Tn=r6});function o6(e,n,t){let r=n&&t||0,o=n||new Array(16);e=e||{};let s=e.node||Vx,c=e.clockseq!==void 0?e.clockseq:sf;if(s==null||c==null){let g=e.random||(e.rng||oa)();s==null&&(s=Vx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),c==null&&(c=sf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:cf+1,l=i-af+(u-cf)/1e4;if(l<0&&e.clockseq===void 0&&(c=c+1&16383),(l<0||i>af)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");af=i,cf=u,sf=c,i+=122192928e5;let a=((i&268435455)*1e4+u)%4294967296;o[r++]=a>>>24&255,o[r++]=a>>>16&255,o[r++]=a>>>8&255,o[r++]=a&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=c>>>8|128,o[r++]=c&255;for(let g=0;g<6;++g)o[r+g]=s[g];return n||Tn(o)}var Vx,sf,af,cf,Xx,Wx=Le(()=>{of();ia();af=0,cf=0;Xx=o6});function s6(e){if(!Rn(e))throw TypeError("Invalid UUID");let n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}var Jd,df=Le(()=>{sa();Jd=s6});function i6(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{ia();df();a6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",c6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function d6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Yx.default.createHash("md5").update(e).digest()}var Yx,Jx,Qx=Le(()=>{Yx=Oi(require("crypto"));Jx=d6});var l6,Zx,ek=Le(()=>{lf();Qx();l6=Qd("v3",48,Jx),Zx=l6});function u6(e,n,t){e=e||{};let r=e.random||(e.rng||oa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(let o=0;o<16;++o)n[t+o]=r[o];return n}return Tn(r)}var tk,nk=Le(()=>{of();ia();tk=u6});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),rk.default.createHash("sha1").update(e).digest()}var rk,ok,sk=Le(()=>{rk=Oi(require("crypto"));ok=m6});var p6,ik,ak=Le(()=>{lf();sk();p6=Qd("v5",80,ok),ik=p6});var ck,dk=Le(()=>{ck="00000000-0000-0000-0000-000000000000"});function f6(e){if(!Rn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lk,uk=Le(()=>{sa();lk=f6});var mk={};Ai(mk,{NIL:()=>ck,parse:()=>Jd,stringify:()=>Tn,v1:()=>Xx,v3:()=>Zx,v4:()=>tk,v5:()=>ik,validate:()=>Rn,version:()=>lk});var pk=Le(()=>{Wx();ek();nk();ak();dk();uk();sa();ia();df()});var uf=m((X0e,gk)=>{var Zd=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,g6=Object.getOwnPropertyNames,h6=Object.prototype.hasOwnProperty,aa=(e,n)=>Zd(e,"name",{value:n,configurable:!0}),_6=(e,n)=>{for(var t in n)Zd(e,t,{get:n[t],enumerable:!0})},C6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of g6(n))!h6.call(e,o)&&o!==t&&Zd(e,o,{get:()=>n[o],enumerable:!(r=y6(n,o))||r.enumerable});return e},S6=e=>C6(Zd({},"__esModule",{value:!0}),e),fk={};_6(fk,{isClockSkewError:()=>k6,isRetryableByTrait:()=>x6,isServerError:()=>O6,isThrottlingError:()=>A6,isTransientError:()=>yk});gk.exports=S6(fk);var b6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],E6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],P6=["TimeoutError","RequestTimeout","RequestTimeoutException"],v6=[500,502,503,504],w6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],x6=aa(e=>e.$retryable!==void 0,"isRetryableByTrait"),k6=aa(e=>b6.includes(e.name),"isClockSkewError"),A6=aa(e=>{var n,t;return((n=e.$metadata)==null?void 0:n.httpStatusCode)===429||E6.includes(e.name)||((t=e.$retryable)==null?void 0:t.throttling)==!0},"isThrottlingError"),yk=aa(e=>{var n;return P6.includes(e.name)||w6.includes((e==null?void 0:e.code)||"")||v6.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)},"isTransientError"),O6=aa(e=>{var n;if(((n=e.$metadata)==null?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!yk(e)}return!1},"isServerError")});var zr=m((Z0e,Ok)=>{var el=Object.defineProperty,N6=Object.getOwnPropertyDescriptor,I6=Object.getOwnPropertyNames,R6=Object.prototype.hasOwnProperty,kt=(e,n)=>el(e,"name",{value:n,configurable:!0}),T6=(e,n)=>{for(var t in n)el(e,t,{get:n[t],enumerable:!0})},B6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of I6(n))!R6.call(e,o)&&o!==t&&el(e,o,{get:()=>n[o],enumerable:!(r=N6(n,o))||r.enumerable});return e},q6=e=>B6(el({},"__esModule",{value:!0}),e),_k={};T6(_k,{AdaptiveRetryStrategy:()=>z6,ConfiguredRetryStrategy:()=>U6,DEFAULT_MAX_ATTEMPTS:()=>mf,DEFAULT_RETRY_DELAY_BASE:()=>ca,DEFAULT_RETRY_MODE:()=>D6,DefaultRateLimiter:()=>bk,INITIAL_RETRY_TOKENS:()=>pf,INVOCATION_ID_HEADER:()=>F6,MAXIMUM_RETRY_DELAY:()=>ff,NO_RETRY_INCREMENT:()=>wk,REQUEST_HEADER:()=>L6,RETRY_COST:()=>Pk,RETRY_MODES:()=>Ck,StandardRetryStrategy:()=>yf,THROTTLING_RETRY_DELAY_BASE:()=>Ek,TIMEOUT_RETRY_COST:()=>vk});Ok.exports=q6(_k);var Ck=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(Ck||{}),mf=3,D6="standard",M6=uf(),Sk=class{constructor(n){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n==null?void 0:n.beta)??.7,this.minCapacity=(n==null?void 0:n.minCapacity)??1,this.minFillRate=(n==null?void 0:n.minFillRate)??.5,this.scaleConstant=(n==null?void 0:n.scaleConstant)??.4,this.smooth=(n==null?void 0:n.smooth)??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(n){if(this.enabled){if(this.refillTokenBucket(),n>this.currentCapacity){let t=(n-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,t))}this.currentCapacity=this.currentCapacity-n}}refillTokenBucket(){let n=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=n;return}let t=(n-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=n}updateClientSendingRate(n){let t;if(this.updateMeasuredRate(),(0,M6.isThrottlingError)(n)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(n){return this.getPrecise(n*this.beta)}cubicSuccess(n){return this.getPrecise(this.scaleConstant*Math.pow(n-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(n){this.refillTokenBucket(),this.fillRate=Math.max(n,this.minFillRate),this.maxCapacity=Math.max(n,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let n=this.getCurrentTimeInSeconds(),t=Math.floor(n*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(n){return parseFloat(n.toFixed(8))}};kt(Sk,"DefaultRateLimiter");var bk=Sk,ca=100,ff=20*1e3,Ek=500,pf=500,Pk=5,vk=10,wk=1,F6="amz-sdk-invocation-id",L6="amz-sdk-request",j6=kt(()=>{let e=ca;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(ff,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),hk=kt(({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:kt(()=>n,"getRetryCount"),getRetryDelay:kt(()=>Math.min(ff,e),"getRetryDelay"),getRetryCost:kt(()=>t,"getRetryCost")}),"createDefaultRetryToken"),xk=class{constructor(n){this.maxAttempts=n,this.mode="standard",this.capacity=pf,this.retryBackoffStrategy=j6(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return hk({retryDelay:ca,retryCount:0})}async refreshRetryTokenForRetry(n,t){let r=await this.getMaxAttempts();if(this.shouldRetry(n,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?Ek:ca);let s=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),c=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,hk({retryDelay:c,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){this.capacity=Math.max(pf,this.capacity+(n.getRetryCost()??wk))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mf}`),mf}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?vk:Pk}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};kt(xk,"StandardRetryStrategy");var yf=xk,kk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode="adaptive";let{rateLimiter:r}=t??{};this.rateLimiter=r??new bk,this.standardRetryStrategy=new yf(n)}async acquireInitialRetryToken(n){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(n)}async refreshRetryTokenForRetry(n,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(n,t)}recordSuccess(n){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(n)}};kt(kk,"AdaptiveRetryStrategy");var z6=kk,Ak=class extends yf{constructor(n,t=ca){super(typeof n=="function"?n:async()=>n),typeof t=="number"?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(n,t){let r=await super.refreshRetryTokenForRetry(n,t);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(Ak,"ConfiguredRetryStrategy");var U6=Ak});var Nk=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.isStreamingPayload=void 0;var G6=require("stream"),H6=e=>(e==null?void 0:e.body)instanceof G6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;tl.isStreamingPayload=H6});var sn=m((rve,Vk)=>{var nl=Object.defineProperty,$6=Object.getOwnPropertyDescriptor,K6=Object.getOwnPropertyNames,V6=Object.prototype.hasOwnProperty,Te=(e,n)=>nl(e,"name",{value:n,configurable:!0}),X6=(e,n)=>{for(var t in n)nl(e,t,{get:n[t],enumerable:!0})},W6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of K6(n))!V6.call(e,o)&&o!==t&&nl(e,o,{get:()=>n[o],enumerable:!(r=$6(n,o))||r.enumerable});return e},Y6=e=>W6(nl({},"__esModule",{value:!0}),e),Rk={};X6(Rk,{AdaptiveRetryStrategy:()=>Z6,CONFIG_MAX_ATTEMPTS:()=>hf,CONFIG_RETRY_MODE:()=>zk,ENV_MAX_ATTEMPTS:()=>gf,ENV_RETRY_MODE:()=>jk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>eX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nX,StandardRetryStrategy:()=>Fk,defaultDelayDecider:()=>Bk,defaultRetryDecider:()=>qk,getOmitRetryHeadersPlugin:()=>rX,getRetryAfterHint:()=>Kk,getRetryPlugin:()=>dX,omitRetryHeadersMiddleware:()=>Uk,omitRetryHeadersMiddlewareOptions:()=>Gk,resolveRetryConfig:()=>tX,retryMiddleware:()=>Hk,retryMiddlewareOptions:()=>$k});Vk.exports=Y6(Rk);var Ur=Ne(),Tk=(pk(),Y(mk)),ve=zr(),J6=Te((e,n)=>{let t=e,r=(n==null?void 0:n.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(n==null?void 0:n.retryCost)??ve.RETRY_COST,s=(n==null?void 0:n.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,c=e,i=Te(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Te(y=>i(y)<=c,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Te(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return c-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Te(y=>{c+=y??r,c=Math.min(c,t)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Bk=Te((e,n)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e)),"defaultDelayDecider"),Bn=uf(),qk=Te(e=>e?(0,Bn.isRetryableByTrait)(e)||(0,Bn.isClockSkewError)(e)||(0,Bn.isThrottlingError)(e)||(0,Bn.isTransientError)(e):!1,"defaultRetryDecider"),Dk=Te(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),Mk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(t==null?void 0:t.retryDecider)??qk,this.delayDecider=(t==null?void 0:t.delayDecider)??Bk,this.retryQuota=(t==null?void 0:t.retryQuota)??J6(ve.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(v,C));continue}throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=s,a.$metadata.totalRetryDelay=c,a}}};Te(Mk,"StandardRetryStrategy");var Fk=Mk,Q6=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Lk=class extends Fk{constructor(n,t){let{rateLimiter:r,...o}=t??{};super(n,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(n,t){return super.retry(n,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Te(Lk,"AdaptiveRetryStrategy");var Z6=Lk,Ik=Tr(),gf="AWS_MAX_ATTEMPTS",hf="max_attempts",eX={environmentVariableSelector:e=>{let n=e[gf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${gf} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[hf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${hf} mast be a number, got "${n}"`);return t},default:ve.DEFAULT_MAX_ATTEMPTS},tX=Te(e=>{let{retryStrategy:n}=e,t=(0,Ik.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:t,retryStrategy:async()=>n||(await(0,Ik.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(t):new ve.StandardRetryStrategy(t))}},"resolveRetryConfig"),jk="AWS_RETRY_MODE",zk="retry_mode",nX={environmentVariableSelector:e=>e[jk],configFileSelector:e=>e[zk],default:ve.DEFAULT_RETRY_MODE},Uk=Te(()=>e=>async n=>{let{request:t}=n;return Ur.HttpRequest.isInstance(t)&&(delete t.headers[ve.INVOCATION_ID_HEADER],delete t.headers[ve.REQUEST_HEADER]),e(n)},"omitRetryHeadersMiddleware"),Gk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rX=Te(e=>({applyToStack:n=>{n.addRelativeTo(Uk(),Gk)}}),"getOmitRetryHeadersPlugin"),oX=b(),sX=Nk(),Hk=Te(e=>(n,t)=>async r=>{var o;let s=await e.retryStrategy(),c=await e.maxAttempts();if(iX(s)){s=s;let i=await s.acquireInitialRetryToken(t.partition_id),u=new Error,l=0,a=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,Tk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${c}`);let{response:C,output:v}=await n(r);return s.recordSuccess(i),v.$metadata.attempts=l+1,v.$metadata.totalRetryDelay=a,{response:C,output:v}}catch(C){let v=aX(C);if(u=Dk(C),g&&(0,sX.isStreamingPayload)(y))throw(o=t.logger instanceof oX.NoOpLogger?console:t.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,v)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=a,u}l=i.getRetryCount();let A=i.getRetryDelay();a+=A,await new Promise(E=>setTimeout(E,A))}}else return s=s,s!=null&&s.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)},"retryMiddleware"),iX=Te(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),aX=Te(e=>{let n={errorType:cX(e)},t=Kk(e.$response);return t&&(n.retryAfterHint=t),n},"getRetryErrorInfo"),cX=Te(e=>(0,Bn.isThrottlingError)(e)?"THROTTLING":(0,Bn.isTransientError)(e)?"TRANSIENT":(0,Bn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),$k={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},dX=Te(e=>({applyToStack:n=>{n.add(Hk(e),$k)}}),"getRetryPlugin"),Kk=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t):new Date(r*1e3)},"getRetryAfterHint")});var Xk=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.resolveClientEndpointParameters=void 0;var lX=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});rl.resolveClientEndpointParameters=lX});var Wk=m((sve,uX)=>{uX.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Yk=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.resolveStsAuthConfig=void 0;var mX=rn(),pX=(e,{stsClientCtor:n})=>(0,mX.resolveAwsAuthConfig)({...e,stsClientCtor:n});ol.resolveStsAuthConfig=pX});var Jk=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveClientEndpointParameters=void 0;var fX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});sl.resolveClientEndpointParameters=fX});var Qk=m((cve,yX)=>{yX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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"}}});var il=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.STSServiceException=Gr.__ServiceException=void 0;var Zk=b();Object.defineProperty(Gr,"__ServiceException",{enumerable:!0,get:function(){return Zk.ServiceException}});var _f=class e extends Zk.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Gr.STSServiceException=_f});var Dn=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.GetSessionTokenResponseFilterSensitiveLog=ie.GetFederationTokenResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=ie.AssumeRoleResponseFilterSensitiveLog=ie.CredentialsFilterSensitiveLog=ie.InvalidAuthorizationMessageException=ie.IDPCommunicationErrorException=ie.InvalidIdentityTokenException=ie.IDPRejectedClaimException=ie.RegionDisabledException=ie.PackedPolicyTooLargeException=ie.MalformedPolicyDocumentException=ie.ExpiredTokenException=void 0;var kf=b(),qn=il(),Cf=class e extends qn.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.ExpiredTokenException=Cf;var Sf=class e extends qn.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.MalformedPolicyDocumentException=Sf;var bf=class e extends qn.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.PackedPolicyTooLargeException=bf;var Ef=class e extends qn.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.RegionDisabledException=Ef;var Pf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPRejectedClaimException=Pf;var vf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidIdentityTokenException=vf;var wf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPCommunicationErrorException=wf;var xf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidAuthorizationMessageException=xf;var gX=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:kf.SENSITIVE_STRING}});ie.CredentialsFilterSensitiveLog=gX;var hX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleResponseFilterSensitiveLog=hX;var _X=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:kf.SENSITIVE_STRING}});ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=_X;var CX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=CX;var SX=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:kf.SENSITIVE_STRING}});ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=SX;var bX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=bX;var EX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetFederationTokenResponseFilterSensitiveLog=EX;var PX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetSessionTokenResponseFilterSensitiveLog=PX});var al=m(an=>{"use strict";var eA=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vX=eA+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tA="["+eA+"]["+vX+"]*",wX=new RegExp("^"+tA+"$"),xX=function(e,n){let t=[],r=n.exec(e);for(;r;){let o=[];o.startIndex=n.lastIndex-r[0].length;let s=r.length;for(let c=0;c"u")};an.isExist=function(e){return typeof e<"u"};an.isEmptyObject=function(e){return Object.keys(e).length===0};an.merge=function(e,n,t){if(n){let r=Object.keys(n),o=r.length;for(let s=0;s{"use strict";var Af=al(),AX={allowBooleanAttributes:!1,unpairedTags:[]};iA.validate=function(e,n){n=Object.assign({},AX,n);let t=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` +${(0,Br.toHex)(s)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];for(let s of n.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?t.pop():t.push(s));let r=`${n!=null&&n.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&(n!=null&&n.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return n}async getSignature(n,t,r,o){let s=await this.createStringToSign(n,t,o),c=new this.sha256(await r);return c.update((0,Ui.toUint8Array)(s)),(0,Br.toHex)(await c.digest())}getSigningKey(n,t,r,o){return m0(this.sha256,n,r,t,o||this.service)}validateResolvedCredentials(n){if(typeof n!="object"||typeof n.accessKeyId!="string"||typeof n.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};$e(g0,"SignatureV4");var H2=g0,Mc=$e(e=>{let n=U2(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},"formatDate"),o0=$e(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var C0=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.resolveSigV4AuthConfig=Mr.resolveAwsAuthConfig=void 0;var $2=xe(),Ip=Np(),Dr=Tr(),K2=3e5,V2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Dr.normalizeProvider)(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,i])=>{let{signingRegion:u,signingService:l}=c;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let a={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},y=e.signerConstructor||Ip.SignatureV4;return new y(a)}):s=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Dr.normalizeProvider)(e.region)(),properties:{}},c);let i=c.signingRegion,u=c.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},a=e.signerConstructor||Ip.SignatureV4;return new a(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveAwsAuthConfig=V2;var X2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):s=(0,Dr.normalizeProvider)(new Ip.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:o,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveSigV4AuthConfig=X2;var _0=e=>typeof e=="function"?(0,$2.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,Dr.normalizeProvider)(e)});var Rp=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getSkewCorrectedDate=void 0;var W2=e=>new Date(Date.now()+e);Uc.getSkewCorrectedDate=W2});var S0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.isClockSkewed=void 0;var Y2=Rp(),J2=(e,n)=>Math.abs((0,Y2.getSkewCorrectedDate)(n).getTime()-e)>=3e5;Gc.isClockSkewed=J2});var b0=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.getUpdatedSystemClockOffset=void 0;var Q2=S0(),Z2=(e,n)=>{let t=Date.parse(e);return(0,Q2.isClockSkewed)(t,n)?t-Date.now():n};Hc.getUpdatedSystemClockOffset=Z2});var w0=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin=ct.awsAuthMiddlewareOptions=ct.awsAuthMiddleware=void 0;var v0=Ne(),eH=Rp(),E0=b0(),tH=e=>(n,t)=>async function(r){var o,s,c,i;if(!v0.HttpRequest.isInstance(r.request))return n(r);let u=(c=(s=(o=t.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||c===void 0?void 0:c[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,a=await e.signer(u),y=await n({...r,request:await a.sign(r.request,{signingDate:(0,eH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(C=>{var v;let A=(v=C.ServerTime)!==null&&v!==void 0?v:P0(C.$response);throw A&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=P0(y.response);return g&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};ct.awsAuthMiddleware=tH;var P0=e=>{var n,t,r;return v0.HttpResponse.isInstance(e)?(t=(n=e.headers)===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};ct.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var nH=e=>({applyToStack:n=>{n.addRelativeTo((0,ct.awsAuthMiddleware)(e),ct.awsAuthMiddlewareOptions)}});ct.getAwsAuthPlugin=nH;ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin});var rn=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var x0=(te(),Y(ee));x0.__exportStar(C0(),$c);x0.__exportStar(w0(),$c)});var k0=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.resolveUserAgentConfig=void 0;function rH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Kc.resolveUserAgentConfig=rH});var A0=m((SEe,oH)=>{oH.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Tp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var sH=(te(),Y(ee)),O0=sH.__importDefault(A0()),N0=O0.default,I0="",iH=e=>{let{partitions:n}=N0;for(let r of n){let{regions:o,outputs:s}=r;for(let[c,i]of Object.entries(o))if(c===e)return{...s,...i}}for(let r of n){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let t=n.find(r=>r.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...t.outputs}};Pt.partition=iH;var aH=(e,n="")=>{N0=e,I0=n};Pt.setPartitionInfo=aH;var cH=()=>{(0,Pt.setPartitionInfo)(O0.default,"")};Pt.useDefaultPartitionInfo=cH;var dH=()=>I0;Pt.getUserAgentPrefix=dH});var Xc=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.isIpAddress=void 0;var lH=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}$"),uH=e=>lH.test(e)||e.startsWith("[")&&e.endsWith("]");Vc.isIpAddress=uH});var R0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.debugId=void 0;Wc.debugId="endpoints"});var T0=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.toDebugString=void 0;function Bp(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Bp(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Bp).join(", ")})`:JSON.stringify(e,null,2)}Yc.toDebugString=Bp});var Gi=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var B0=(te(),Y(ee));B0.__exportStar(R0(),Jc);B0.__exportStar(T0(),Jc)});var q0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.EndpointError=void 0;var qp=class extends Error{constructor(n){super(n),this.name="EndpointError"}};Qc.EndpointError=qp});var M0=m(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0})});var L0=m(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0})});var z0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var G0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var $0=m(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0})});var gt=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Fr=(te(),Y(ee));Fr.__exportStar(q0(),Nn);Fr.__exportStar(M0(),Nn);Fr.__exportStar(L0(),Nn);Fr.__exportStar(z0(),Nn);Fr.__exportStar(G0(),Nn);Fr.__exportStar($0(),Nn)});var Dp=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.isValidHostLabel=void 0;var mH=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pH=(e,n=!1)=>{if(!n)return mH.test(e);let t=e.split(".");for(let r of t)if(!(0,Hi.isValidHostLabel)(r))return!1;return!0};Hi.isValidHostLabel=pH});var K0=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isVirtualHostableS3Bucket=void 0;var fH=Xc(),yH=Dp(),gH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,$i.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,yH.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,fH.isIpAddress)(e))};$i.isVirtualHostableS3Bucket=gH});var V0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.parseArn=void 0;var hH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,o,s,c,...i]=n;return t!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:c,resourceId:i[0].includes("/")?i[0].split("/"):i}};Zc.parseArn=hH});var X0=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Mp=(te(),Y(ee));Mp.__exportStar(K0(),Ki);Mp.__exportStar(V0(),Ki);Mp.__exportStar(Tp(),Ki)});var W0=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.booleanEquals=void 0;var _H=(e,n)=>e===n;ed.booleanEquals=_H});var J0=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getAttrPathList=void 0;var Y0=gt(),CH=e=>{let n=e.split("."),t=[];for(let r of n){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new Y0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new Y0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&t.push(r.slice(0,o)),t.push(s)}else t.push(r)}return t};td.getAttrPathList=CH});var Q0=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.getAttr=void 0;var SH=gt(),bH=J0(),EH=(e,n)=>(0,bH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new SH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);nd.getAttr=EH});var Z0=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.isSet=void 0;var PH=e=>e!=null;rd.isSet=PH});var ev=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.not=void 0;var vH=e=>!e;od.not=vH});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var rv=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.HttpAuthLocation=void 0;var wH=w();Object.defineProperty(sd,"HttpAuthLocation",{enumerable:!0,get:function(){return wH.HttpAuthLocation}})});var sv=m(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var av=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var dv=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0})});var uv=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var pv=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var yv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var _v=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.HostAddressType=void 0;var xH;(function(e){e.AAAA="AAAA",e.A="A"})(xH=Vi.HostAddressType||(Vi.HostAddressType={}))});var Sv=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var bv=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.EndpointURLScheme=void 0;var kH=w();Object.defineProperty(id,"EndpointURLScheme",{enumerable:!0,get:function(){return kH.EndpointURLScheme}})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Fv=m(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var Xi=(te(),Y(ee));Xi.__exportStar(Ov(),lr);Xi.__exportStar(Iv(),lr);Xi.__exportStar(Tv(),lr);Xi.__exportStar(qv(),lr);Xi.__exportStar(Mv(),lr)});var jv=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Uv=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Xv=m(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0})});var Yv=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Qv=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var ew=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var nw=m(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var ow=m(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var iw=m(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0})});var cw=m(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0})});var dw=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.RequestHandlerProtocol=void 0;var AH=w();Object.defineProperty(ad,"RequestHandlerProtocol",{enumerable:!0,get:function(){return AH.RequestHandlerProtocol}})});var uw=m(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0})});var pw=m(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0})});var yw=m(fw=>{"use strict";Object.defineProperty(fw,"__esModule",{value:!0})});var gw=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var me=(te(),Y(ee));me.__exportStar(nv(),le);me.__exportStar(rv(),le);me.__exportStar(sv(),le);me.__exportStar(av(),le);me.__exportStar(dv(),le);me.__exportStar(uv(),le);me.__exportStar(pv(),le);me.__exportStar(yv(),le);me.__exportStar(hv(),le);me.__exportStar(_v(),le);me.__exportStar(Sv(),le);me.__exportStar(bv(),le);me.__exportStar(Pv(),le);me.__exportStar(wv(),le);me.__exportStar(kv(),le);me.__exportStar(Fv(),le);me.__exportStar(jv(),le);me.__exportStar(Uv(),le);me.__exportStar(Hv(),le);me.__exportStar(Kv(),le);me.__exportStar(Xv(),le);me.__exportStar(Yv(),le);me.__exportStar(Qv(),le);me.__exportStar(ew(),le);me.__exportStar(nw(),le);me.__exportStar(ow(),le);me.__exportStar(iw(),le);me.__exportStar(cw(),le);me.__exportStar(dw(),le);me.__exportStar(uw(),le);me.__exportStar(pw(),le);me.__exportStar(yw(),le)});var hw=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.parseURL=void 0;var Lp=gw(),OH=Xc(),Fp={[Lp.EndpointURLScheme.HTTP]:80,[Lp.EndpointURLScheme.HTTPS]:443},NH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:v="",path:A="",query:E={}}=e,G=new URL(`${v}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(E).map(([ye,nt])=>`${ye}=${nt}`).join("&"),G}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let t=n.href,{host:r,hostname:o,pathname:s,protocol:c,search:i}=n;if(i)return null;let u=c.slice(0,-1);if(!Object.values(Lp.EndpointURLScheme).includes(u))return null;let l=(0,OH.isIpAddress)(o),a=t.includes(`${r}:${Fp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Fp[u]}`),y=`${r}${a?`:${Fp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};cd.parseURL=NH});var _w=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.stringEquals=void 0;var IH=(e,n)=>e===n;dd.stringEquals=IH});var Cw=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.substring=void 0;var RH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.uriEncode=void 0;var TH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);ud.uriEncode=TH});var jp=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.aws=void 0;var qt=(te(),Y(ee));dt.aws=qt.__importStar(X0());qt.__exportStar(W0(),dt);qt.__exportStar(Q0(),dt);qt.__exportStar(Z0(),dt);qt.__exportStar(Dp(),dt);qt.__exportStar(ev(),dt);qt.__exportStar(hw(),dt);qt.__exportStar(_w(),dt);qt.__exportStar(Cw(),dt);qt.__exportStar(Sw(),dt)});var zp=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.evaluateTemplate=void 0;var BH=jp(),qH=(e,n)=>{let t=[],r={...n.endpointParams,...n.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.getReferenceValue=void 0;var DH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];pd.getReferenceValue=DH});var Wi=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.evaluateExpression=void 0;var MH=gt(),FH=Up(),LH=zp(),jH=bw(),zH=(e,n,t)=>{if(typeof e=="string")return(0,LH.evaluateTemplate)(e,t);if(e.fn)return(0,FH.callFunction)(e,t);if(e.ref)return(0,jH.getReferenceValue)(e,t);throw new MH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};fd.evaluateExpression=zH});var Up=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.callFunction=void 0;var UH=(te(),Y(ee)),GH=UH.__importStar(jp()),HH=Wi(),$H=({fn:e,argv:n},t)=>{let r=n.map(o=>["boolean","number"].includes(typeof o)?o:(0,HH.evaluateExpression)(o,"arg",t));return e.split(".").reduce((o,s)=>o[s],GH)(...r)};yd.callFunction=$H});var Ew=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateCondition=void 0;var Gp=Gi(),KH=gt(),VH=Up(),XH=({assign:e,...n},t)=>{var r,o;if(e&&e in t.referenceRecord)throw new KH.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,VH.callFunction)(n,t);return(o=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Gp.debugId,`evaluateCondition: ${(0,Gp.toDebugString)(n)} = ${(0,Gp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};gd.evaluateCondition=XH});var _d=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.evaluateConditions=void 0;var Pw=Gi(),WH=Ew(),YH=(e=[],n)=>{var t,r;let o={};for(let s of e){let{result:c,toAssign:i}=(0,WH.evaluateCondition)(s,{...n,referenceRecord:{...n.referenceRecord,...o}});if(!c)return{result:c};i&&(o[i.name]=i.value,(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Pw.debugId,`assign: ${i.name} := ${(0,Pw.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};hd.evaluateConditions=YH});var vw=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.getEndpointHeaders=void 0;var JH=gt(),QH=Wi(),ZH=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:o.map(s=>{let c=(0,QH.evaluateExpression)(s,"Header value entry",n);if(typeof c!="string")throw new JH.EndpointError(`Header '${r}' value '${c}' is not a string`);return c})}),{});Cd.getEndpointHeaders=ZH});var xw=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getEndpointProperty=void 0;var ww=gt(),e$=zp(),t$=Hp(),n$=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,Yi.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,e$.evaluateTemplate)(e,n);case"object":if(e===null)throw new ww.EndpointError(`Unexpected endpoint property: ${e}`);return(0,t$.getEndpointProperties)(e,n);case"boolean":return e;default:throw new ww.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Yi.getEndpointProperty=n$});var Hp=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getEndpointProperties=void 0;var r$=xw(),o$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:(0,r$.getEndpointProperty)(o,n)}),{});Sd.getEndpointProperties=o$});var kw=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.getEndpointUrl=void 0;var s$=gt(),i$=Wi(),a$=(e,n)=>{let t=(0,i$.evaluateExpression)(e,"Endpoint URL",n);if(typeof t=="string")try{return new URL(t)}catch(r){throw console.error(`Failed to construct URL with ${t}`,r),r}throw new s$.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};bd.getEndpointUrl=a$});var Ow=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.evaluateEndpointRule=void 0;var Aw=Gi(),c$=_d(),d$=vw(),l$=Hp(),u$=kw(),m$=(e,n)=>{var t,r;let{conditions:o,endpoint:s}=e,{result:c,referenceRecord:i}=(0,c$.evaluateConditions)(o,n);if(!c)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:a,headers:y}=s;return(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Aw.debugId,`Resolving endpoint from template: ${(0,Aw.toDebugString)(s)}`),{...y!=null&&{headers:(0,d$.getEndpointHeaders)(y,u)},...a!=null&&{properties:(0,l$.getEndpointProperties)(a,u)},url:(0,u$.getEndpointUrl)(l,u)}};Ed.evaluateEndpointRule=m$});var Nw=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.evaluateErrorRule=void 0;var p$=gt(),f$=_d(),y$=Wi(),g$=(e,n)=>{let{conditions:t,error:r}=e,{result:o,referenceRecord:s}=(0,f$.evaluateConditions)(t,n);if(o)throw new p$.EndpointError((0,y$.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...s}}))};Pd.evaluateErrorRule=g$});var Iw=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.evaluateTreeRule=void 0;var h$=_d(),_$=$p(),C$=(e,n)=>{let{conditions:t,rules:r}=e,{result:o,referenceRecord:s}=(0,h$.evaluateConditions)(t,n);if(o)return(0,_$.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...s}})};vd.evaluateTreeRule=C$});var $p=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.evaluateRules=void 0;var Rw=gt(),S$=Ow(),b$=Nw(),E$=Iw(),P$=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,S$.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,b$.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,E$.evaluateTreeRule)(t,n);if(r)return r}else throw new Rw.EndpointError(`Unknown endpoint rule: ${t}`);throw new Rw.EndpointError("Rules evaluation failed")};wd.evaluateRules=P$});var Tw=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var v$=(te(),Y(ee));v$.__exportStar($p(),Kp)});var Bw=m(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.resolveEndpoint=void 0;var xd=Gi(),w$=gt(),x$=Tw(),k$=(e,n)=>{var t,r,o,s,c,i;let{endpointParams:u,logger:l}=n,{parameters:a,rules:y}=e;(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,`${xd.debugId} Initial EndpointParams: ${(0,xd.toDebugString)(u)}`);let g=Object.entries(a).filter(([,A])=>A.default!=null).map(([A,E])=>[A,E.default]);if(g.length>0)for(let[A,E]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:E;let C=Object.entries(a).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new w$.EndpointError(`Missing required parameter: '${A}'`);let v=(0,x$.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=n.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(n.endpointParams.Endpoint),{protocol:E,port:G}=A;v.url.protocol=E,v.url.port=G}catch{}return(i=(c=n.logger)===null||c===void 0?void 0:c.debug)===null||i===void 0||i.call(c,`${xd.debugId} Resolved endpoint: ${(0,xd.toDebugString)(v)}`),v};kd.resolveEndpoint=k$});var jr=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Ad=(te(),Y(ee));Ad.__exportStar(Tp(),Lr);Ad.__exportStar(Xc(),Lr);Ad.__exportStar(Bw(),Lr);Ad.__exportStar(gt(),Lr)});var qw=m(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.UA_ESCAPE_CHAR=Je.UA_VALUE_ESCAPE_REGEX=Je.UA_NAME_ESCAPE_REGEX=Je.UA_NAME_SEPARATOR=Je.SPACE=Je.X_AMZ_USER_AGENT=Je.USER_AGENT=void 0;Je.USER_AGENT="user-agent";Je.X_AMZ_USER_AGENT="x-amz-user-agent";Je.SPACE=" ";Je.UA_NAME_SEPARATOR="/";Je.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Je.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Je.UA_ESCAPE_CHAR="-"});var Dw=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getUserAgentPlugin=Dt.getUserAgentMiddlewareOptions=Dt.userAgentMiddleware=void 0;var A$=jr(),O$=Ne(),st=qw(),N$=e=>(n,t)=>async r=>{var o,s;let{request:c}=r;if(!O$.HttpRequest.isInstance(c))return n(r);let{headers:i}=c,u=((o=t==null?void 0:t.userAgent)===null||o===void 0?void 0:o.map(Vp))||[],l=(await e.defaultUserAgentProvider()).map(Vp),a=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vp))||[],y=(0,A$.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...a]).join(st.SPACE),C=[...l.filter(v=>v.startsWith("aws-sdk-")),...a].join(st.SPACE);return e.runtime!=="browser"?(C&&(i[st.X_AMZ_USER_AGENT]=i[st.X_AMZ_USER_AGENT]?`${i[st.USER_AGENT]} ${C}`:C),i[st.USER_AGENT]=g):i[st.X_AMZ_USER_AGENT]=g,n({...r,request:c})};Dt.userAgentMiddleware=N$;var Vp=e=>{var n;let t=e[0].split(st.UA_NAME_SEPARATOR).map(i=>i.replace(st.UA_NAME_ESCAPE_REGEX,st.UA_ESCAPE_CHAR)).join(st.UA_NAME_SEPARATOR),r=(n=e[1])===null||n===void 0?void 0:n.replace(st.UA_VALUE_ESCAPE_REGEX,st.UA_ESCAPE_CHAR),o=t.indexOf(st.UA_NAME_SEPARATOR),s=t.substring(0,o),c=t.substring(o+1);return s==="api"&&(c=c.toLowerCase()),[s,c,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};Dt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var I$=e=>({applyToStack:n=>{n.add((0,Dt.userAgentMiddleware)(e),Dt.getUserAgentMiddlewareOptions)}});Dt.getUserAgentPlugin=I$});var Ji=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Mw=(te(),Y(ee));Mw.__exportStar(k0(),Od);Mw.__exportStar(Dw(),Od)});var Id=m((JPe,zw)=>{var Nd=Object.defineProperty,R$=Object.getOwnPropertyDescriptor,T$=Object.getOwnPropertyNames,B$=Object.prototype.hasOwnProperty,Fw=(e,n)=>Nd(e,"name",{value:n,configurable:!0}),q$=(e,n)=>{for(var t in n)Nd(e,t,{get:n[t],enumerable:!0})},D$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T$(n))!B$.call(e,o)&&o!==t&&Nd(e,o,{get:()=>n[o],enumerable:!(r=R$(n,o))||r.enumerable});return e},M$=e=>D$(Nd({},"__esModule",{value:!0}),e),Lw={};q$(Lw,{SelectorType:()=>jw,booleanSelector:()=>F$,numberSelector:()=>L$});zw.exports=M$(Lw);var F$=Fw((e,n,t)=>{if(n in e){if(e[n]==="true")return!0;if(e[n]==="false")return!1;throw new Error(`Cannot load ${t} "${n}". Expected "true" or "false", got ${e[n]}.`)}},"booleanSelector"),L$=Fw((e,n,t)=>{if(!(n in e))return;let r=parseInt(e[n],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${t} '${n}'. Expected number, got '${e[n]}'.`);return r},"numberSelector"),jw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(jw||{})});var Mt=m((QPe,Qw)=>{var Td=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,z$=Object.getOwnPropertyNames,U$=Object.prototype.hasOwnProperty,vt=(e,n)=>Td(e,"name",{value:n,configurable:!0}),G$=(e,n)=>{for(var t in n)Td(e,t,{get:n[t],enumerable:!0})},H$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of z$(n))!U$.call(e,o)&&o!==t&&Td(e,o,{get:()=>n[o],enumerable:!(r=j$(n,o))||r.enumerable});return e},$$=e=>H$(Td({},"__esModule",{value:!0}),e),Hw={};G$(Hw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Kw,CONFIG_USE_FIPS_ENDPOINT:()=>Xw,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>K$,DEFAULT_USE_FIPS_ENDPOINT:()=>X$,ENV_USE_DUALSTACK_ENDPOINT:()=>$w,ENV_USE_FIPS_ENDPOINT:()=>Vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>eK,NODE_REGION_CONFIG_OPTIONS:()=>Z$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>V$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>W$,REGION_ENV_NAME:()=>Ww,REGION_INI_NAME:()=>Yw,getRegionInfo:()=>sK,resolveCustomEndpointsConfig:()=>Y$,resolveEndpointsConfig:()=>Q$,resolveRegionConfig:()=>tK});Qw.exports=$$(Hw);var In=Id(),$w="AWS_USE_DUALSTACK_ENDPOINT",Kw="use_dualstack_endpoint",K$=!1,V$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,$w,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Kw,In.SelectorType.CONFIG),default:!1},Vw="AWS_USE_FIPS_ENDPOINT",Xw="use_fips_endpoint",X$=!1,W$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,Vw,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Xw,In.SelectorType.CONFIG),default:!1},Rd=Tr(),Y$=vt(e=>{let{endpoint:n,urlParser:t}=e;return{...e,tls:e.tls??!0,endpoint:(0,Rd.normalizeProvider)(typeof n=="string"?t(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,Rd.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),J$=vt(async e=>{let{tls:n=!0}=e,t=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(t))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:c}=await e.regionInfoProvider(t,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${c}`)},"getEndpointFromRegion"),Q$=vt(e=>{let n=(0,Rd.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:t,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:t?(0,Rd.normalizeProvider)(typeof t=="string"?o(t):t):()=>J$({...e,useDualstackEndpoint:n,useFipsEndpoint:r}),isCustomEndpoint:!!t,useDualstackEndpoint:n}},"resolveEndpointsConfig"),Ww="AWS_REGION",Yw="region",Z$={environmentVariableSelector:e=>e[Ww],configFileSelector:e=>e[Yw],default:()=>{throw new Error("Region is missing")}},eK={preferredFile:"credentials"},Jw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Uw=vt(e=>Jw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),tK=vt(e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return Uw(n);let r=await n();return Uw(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return Jw(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}},"resolveRegionConfig"),Gw=vt((e=[],{useFipsEndpoint:n,useDualstackEndpoint:t})=>{var r;return(r=e.find(({tags:o})=>n===o.includes("fips")&&t===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),nK=vt((e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0),"getResolvedHostname"),rK=vt((e,{partitionHash:n})=>Object.keys(n||{}).find(t=>n[t].regions.includes(e))??"aws","getResolvedPartition"),oK=vt((e,{signingRegion:n,regionRegex:t,useFipsEndpoint:r})=>{if(n)return n;if(r){let o=t.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),sK=vt((e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:o,partitionHash:s})=>{var c,i,u,l,a;let y=rK(e,{partitionHash:s}),g=e in o?e:((c=s[y])==null?void 0:c.endpoint)??e,C={useFipsEndpoint:n,useDualstackEndpoint:t},v=Gw((i=o[g])==null?void 0:i.variants,C),A=Gw((u=s[y])==null?void 0:u.variants,C),E=nK(g,{regionHostname:v,partitionHostname:A});if(E===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let G=oK(E,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:n});return{partition:y,signingService:r,hostname:E,...G&&{signingRegion:G},...((a=o[g])==null?void 0:a.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var tx=m((ZPe,ex)=>{var Bd=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,dK=(e,n)=>Bd(e,"name",{value:n,configurable:!0}),lK=(e,n)=>{for(var t in n)Bd(e,t,{get:n[t],enumerable:!0})},uK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of aK(n))!cK.call(e,o)&&o!==t&&Bd(e,o,{get:()=>n[o],enumerable:!(r=iK(n,o))||r.enumerable});return e},mK=e=>uK(Bd({},"__esModule",{value:!0}),e),Zw={};lK(Zw,{resolveEventStreamSerdeConfig:()=>pK});ex.exports=mK(Zw);var pK=dK(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Qi=m((e0e,ix)=>{var qd=Object.defineProperty,fK=Object.getOwnPropertyDescriptor,yK=Object.getOwnPropertyNames,gK=Object.prototype.hasOwnProperty,rx=(e,n)=>qd(e,"name",{value:n,configurable:!0}),hK=(e,n)=>{for(var t in n)qd(e,t,{get:n[t],enumerable:!0})},_K=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of yK(n))!gK.call(e,o)&&o!==t&&qd(e,o,{get:()=>n[o],enumerable:!(r=fK(n,o))||r.enumerable});return e},CK=e=>_K(qd({},"__esModule",{value:!0}),e),ox={};hK(ox,{contentLengthMiddleware:()=>Xp,contentLengthMiddlewareOptions:()=>sx,getContentLengthPlugin:()=>bK});ix.exports=CK(ox);var SK=Ne(),nx="content-length";function Xp(e){return n=>async t=>{let r=t.request;if(SK.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(c=>c.toLowerCase()).indexOf(nx)===-1)try{let c=e(o);r.headers={...r.headers,[nx]:String(c)}}catch{}}return n({...t,request:r})}}rx(Xp,"contentLengthMiddleware");var sx={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},bK=rx(e=>({applyToStack:n=>{n.add(Xp(e.bodyLengthChecker),sx)}}),"getContentLengthPlugin")});var Zi=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getHomeDir=void 0;var EK=require("os"),PK=require("path"),Wp={},vK=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",wK=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${PK.sep}`}=process.env;if(e)return e;if(n)return n;if(t)return`${r}${t}`;let o=vK();return Wp[o]||(Wp[o]=(0,EK.homedir)()),Wp[o]};Dd.getHomeDir=wK});var Yp=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getSSOTokenFilepath=void 0;var xK=require("crypto"),kK=require("path"),AK=Zi(),OK=e=>{let t=(0,xK.createHash)("sha1").update(e).digest("hex");return(0,kK.join)((0,AK.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Md.getSSOTokenFilepath=OK});var ax=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.getSSOTokenFromFile=void 0;var NK=require("fs"),IK=Yp(),{readFile:RK}=NK.promises,TK=async e=>{let n=(0,IK.getSSOTokenFilepath)(e),t=await RK(n,"utf8");return JSON.parse(t)};Fd.getSSOTokenFromFile=TK});var Qp=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.slurpFile=void 0;var BK=require("fs"),{readFile:qK}=BK.promises,Jp={},DK=(e,n)=>((!Jp[e]||n!=null&&n.ignoreCache)&&(Jp[e]=qK(e,"utf8")),Jp[e]);Ld.slurpFile=DK});var wt=m((s0e,ta)=>{var zd=Object.defineProperty,MK=Object.getOwnPropertyDescriptor,FK=Object.getOwnPropertyNames,LK=Object.prototype.hasOwnProperty,ht=(e,n)=>zd(e,"name",{value:n,configurable:!0}),jK=(e,n)=>{for(var t in n)zd(e,t,{get:n[t],enumerable:!0})},Zp=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FK(n))!LK.call(e,o)&&o!==t&&zd(e,o,{get:()=>n[o],enumerable:!(r=MK(n,o))||r.enumerable});return e},tf=(e,n,t)=>(Zp(e,n,"default"),t&&Zp(t,n,"default")),zK=e=>Zp(zd({},"__esModule",{value:!0}),e),ea={};jK(ea,{CONFIG_PREFIX_SEPARATOR:()=>ur,DEFAULT_PROFILE:()=>ux,ENV_PROFILE:()=>lx,getProfileName:()=>UK,loadSharedConfigFiles:()=>fx,loadSsoSessionData:()=>eV,parseKnownFiles:()=>nV});ta.exports=zK(ea);tf(ea,Zi(),ta.exports);var lx="AWS_PROFILE",ux="default",UK=ht(e=>e.profile||process.env[lx]||ux,"getProfileName");tf(ea,Yp(),ta.exports);tf(ea,ax(),ta.exports);var jd=w(),GK=ht(e=>Object.entries(e).filter(([n])=>{let t=n.indexOf(ur);return t===-1?!1:Object.values(jd.IniSectionType).includes(n.substring(0,t))}).reduce((n,[t,r])=>{let o=t.indexOf(ur),s=t.substring(0,o)===jd.IniSectionType.PROFILE?t.substring(o+1):t;return n[s]=r,n},{...e.default&&{default:e.default}}),"getConfigData"),mx=require("path"),HK=Zi(),$K="AWS_CONFIG_FILE",px=ht(()=>process.env[$K]||(0,mx.join)((0,HK.getHomeDir)(),".aws","config"),"getConfigFilepath"),KK=Zi(),VK="AWS_SHARED_CREDENTIALS_FILE",XK=ht(()=>process.env[VK]||(0,mx.join)((0,KK.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),WK=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,YK=["__proto__","profile __proto__"],ef=ht(e=>{let n={},t,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let i=s.substring(1,s.length-1),u=WK.exec(i);if(u){let[,l,,a]=u;Object.values(jd.IniSectionType).includes(l)&&(t=[l,a].join(ur))}else t=i;if(YK.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(t){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),n[t]=n[t]||{};let a=r?[r,u].join(ur):u;n[t][a]=l}}}}return n},"parseIni"),cx=Qp(),dx=ht(()=>({}),"swallowError"),ur=".",fx=ht(async(e={})=>{let{filepath:n=XK(),configFilepath:t=px()}=e,r=await Promise.all([(0,cx.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(ef).then(GK).catch(dx),(0,cx.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(ef).catch(dx)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),JK=ht(e=>Object.entries(e).filter(([n])=>n.startsWith(jd.IniSectionType.SSO_SESSION+ur)).reduce((n,[t,r])=>({...n,[t.split(ur)[1]]:r}),{}),"getSsoSessionData"),QK=Qp(),ZK=ht(()=>({}),"swallowError"),eV=ht(async(e={})=>(0,QK.slurpFile)(e.configFilepath??px()).then(ef).then(JK).catch(ZK),"loadSsoSessionData"),tV=ht((...e)=>{let n={};for(let t of e)for(let[r,o]of Object.entries(t))n[r]!==void 0?Object.assign(n[r],o):n[r]=o;return n},"mergeConfigFiles"),nV=ht(async e=>{let n=await fx(e);return tV(n.configFile,n.credentialsFile)},"parseKnownFiles")});var on=m((i0e,hx)=>{var Ud=Object.defineProperty,rV=Object.getOwnPropertyDescriptor,oV=Object.getOwnPropertyNames,sV=Object.prototype.hasOwnProperty,ra=(e,n)=>Ud(e,"name",{value:n,configurable:!0}),iV=(e,n)=>{for(var t in n)Ud(e,t,{get:n[t],enumerable:!0})},aV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oV(n))!sV.call(e,o)&&o!==t&&Ud(e,o,{get:()=>n[o],enumerable:!(r=rV(n,o))||r.enumerable});return e},cV=e=>aV(Ud({},"__esModule",{value:!0}),e),gx={};iV(gx,{loadConfig:()=>pV});hx.exports=cV(gx);var na=xe(),dV=ra(e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new na.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),yx=wt(),lV=ra((e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,yx.getProfileName)(t),{configFile:o,credentialsFile:s}=await(0,yx.loadSharedConfigFiles)(t),c=s[r]||{},i=o[r]||{},u=n==="config"?{...c,...i}:{...i,...c};try{let a=e(u,n==="config"?o:s);if(a===void 0)throw new Error;return a}catch(l){throw new na.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),uV=ra(e=>typeof e=="function","isFunction"),mV=ra(e=>uV(e)?async()=>await e():(0,na.fromStatic)(e),"fromStatic"),pV=ra(({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,na.memoize)((0,na.chain)(dV(e),lV(n,r),mV(t))),"loadConfig")});var bx=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getEndpointUrlConfig=void 0;var _x=wt(),Cx="AWS_ENDPOINT_URL",Sx="endpoint_url",fV=e=>({environmentVariableSelector:n=>{let t=e.split(" ").map(s=>s.toUpperCase()),r=n[[Cx,...t].join("_")];if(r)return r;let o=n[Cx];if(o)return o},configFileSelector:(n,t)=>{if(t&&n.services){let o=t[["services",n.services].join(_x.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),c=o[[s.join("_"),Sx].join(_x.CONFIG_PREFIX_SEPARATOR)];if(c)return c}}let r=n[Sx];if(r)return r},default:void 0});Gd.getEndpointUrlConfig=fV});var Ex=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.getEndpointFromConfig=void 0;var yV=on(),gV=bx(),hV=async e=>(0,yV.loadConfig)((0,gV.getEndpointUrlConfig)(e))();Hd.getEndpointFromConfig=hV});var xx=m((d0e,wx)=>{var $d=Object.defineProperty,_V=Object.getOwnPropertyDescriptor,CV=Object.getOwnPropertyNames,SV=Object.prototype.hasOwnProperty,bV=(e,n)=>$d(e,"name",{value:n,configurable:!0}),EV=(e,n)=>{for(var t in n)$d(e,t,{get:n[t],enumerable:!0})},PV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of CV(n))!SV.call(e,o)&&o!==t&&$d(e,o,{get:()=>n[o],enumerable:!(r=_V(n,o))||r.enumerable});return e},vV=e=>PV($d({},"__esModule",{value:!0}),e),Px={};EV(Px,{parseQueryString:()=>vx});wx.exports=vV(Px);function vx(e){let n={};if(e=e.replace(/^\?/,""),e)for(let t of e.split("&")){let[r,o=null]=t.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in n?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o}return n}bV(vx,"parseQueryString")});var mr=m((l0e,Ox)=>{var Kd=Object.defineProperty,wV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,kV=Object.prototype.hasOwnProperty,AV=(e,n)=>Kd(e,"name",{value:n,configurable:!0}),OV=(e,n)=>{for(var t in n)Kd(e,t,{get:n[t],enumerable:!0})},NV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xV(n))!kV.call(e,o)&&o!==t&&Kd(e,o,{get:()=>n[o],enumerable:!(r=wV(n,o))||r.enumerable});return e},IV=e=>NV(Kd({},"__esModule",{value:!0}),e),kx={};OV(kx,{parseUrl:()=>Ax});Ox.exports=IV(kx);var RV=xx(),Ax=AV(e=>{if(typeof e=="string")return Ax(new URL(e));let{hostname:n,pathname:t,port:r,protocol:o,search:s}=e,c;return s&&(c=(0,RV.parseQueryString)(s)),{hostname:n,port:r?parseInt(r):void 0,protocol:o,path:t,query:c}},"parseUrl")});var k=m((u0e,Dx)=>{var Vd=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,BV=Object.getOwnPropertyNames,qV=Object.prototype.hasOwnProperty,nf=(e,n)=>Vd(e,"name",{value:n,configurable:!0}),DV=(e,n)=>{for(var t in n)Vd(e,t,{get:n[t],enumerable:!0})},MV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of BV(n))!qV.call(e,o)&&o!==t&&Vd(e,o,{get:()=>n[o],enumerable:!(r=TV(n,o))||r.enumerable});return e},FV=e=>MV(Vd({},"__esModule",{value:!0}),e),Nx={};DV(Nx,{deserializerMiddleware:()=>Ix,deserializerMiddlewareOption:()=>Tx,getSerdePlugin:()=>qx,serializerMiddleware:()=>Rx,serializerMiddlewareOption:()=>Bx});Dx.exports=FV(Nx);var Ix=nf((e,n)=>(t,r)=>async o=>{let{response:s}=await t(o);try{let c=await n(s,e);return{response:s,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:s}),!("$metadata"in c)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";c.message+=` + `+i}throw c}},"deserializerMiddleware"),Rx=nf((e,n)=>(t,r)=>async o=>{var s;let c=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!c)throw new Error("No valid endpoint provider available.");let i=await n(o.input,{...e,endpoint:c});return t({...o,request:i})},"serializerMiddleware"),Tx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bx={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function qx(e,n,t){return{applyToStack:r=>{r.add(Ix(e,t),Tx),r.add(Rx(e,n),Bx)}}}nf(qx,"getSerdePlugin")});var x=m((m0e,Gx)=>{var Wd=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,jV=Object.getOwnPropertyNames,zV=Object.prototype.hasOwnProperty,xt=(e,n)=>Wd(e,"name",{value:n,configurable:!0}),UV=(e,n)=>{for(var t in n)Wd(e,t,{get:n[t],enumerable:!0})},GV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jV(n))!zV.call(e,o)&&o!==t&&Wd(e,o,{get:()=>n[o],enumerable:!(r=LV(n,o))||r.enumerable});return e},HV=e=>GV(Wd({},"__esModule",{value:!0}),e),Fx={};UV(Fx,{endpointMiddleware:()=>zx,endpointMiddlewareOptions:()=>Ux,getEndpointFromInstructions:()=>Lx,getEndpointPlugin:()=>e6,resolveEndpointConfig:()=>t6,resolveParams:()=>jx,toEndpointV1:()=>rf});Gx.exports=HV(Fx);var $V=xt(async e=>{let n=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),YV(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!WV(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),KV=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,VV=/(\d+\.){3}\d+/,XV=/\.\./,WV=xt(e=>KV.test(e)&&!VV.test(e)&&!XV.test(e),"isDnsCompatibleBucketName"),YV=xt(e=>{let[n,t,r,o,s,c]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,s,c].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!s&&!!c},"isArnBucketName"),JV=xt((e,n,t)=>{let r=xt(async()=>{let o=t[e]??t[n];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||n==="CredentialScope"?async()=>{let o=typeof t.credentials=="function"?await t.credentials():t.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||n==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:c,port:i,path:u}=o;return`${s}//${c}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),QV=Ex(),Mx=mr(),rf=xt(e=>typeof e=="object"?"url"in e?(0,Mx.parseUrl)(e.url):e:(0,Mx.parseUrl)(e),"toEndpointV1"),Lx=xt(async(e,n,t,r)=>{if(!t.endpoint){let c=await(0,QV.getEndpointFromConfig)(t.serviceId||"");c&&(t.endpoint=()=>Promise.resolve(rf(c)))}let o=await jx(e,n,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(o,r)},"getEndpointFromInstructions"),jx=xt(async(e,n,t)=>{var r;let o={},s=((r=n==null?void 0:n.getEndpointParameterInstructions)==null?void 0:r.call(n))||{};for(let[c,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[c]=i.value;break;case"contextParams":o[c]=e[i.name];break;case"clientContextParams":case"builtInParams":o[c]=await JV(i.name,c,t)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,t),String(t.serviceId).toLowerCase()==="s3"&&await $V(o),o},"resolveParams"),Xd=Tr(),zx=xt(({config:e,instructions:n})=>(t,r)=>async o=>{var s,c,i;let u=await Lx(o.input,{getEndpointParameterInstructions(){return n}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(c=r.authSchemes)==null?void 0:c[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let a=(0,Xd.getSmithyContext)(r),y=(i=a==null?void 0:a.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return t({...o})},"endpointMiddleware"),ZV=k(),Ux={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZV.serializerMiddlewareOption.name},e6=xt((e,n)=>({applyToStack:t=>{t.addRelativeTo(zx({config:e,instructions:n}),Ux)}}),"getEndpointPlugin"),t6=xt(e=>{let n=e.tls??!0,{endpoint:t}=e,r=t!=null?async()=>rf(await(0,Xd.normalizeProvider)(t)()):void 0;return{...e,endpoint:r,tls:n,isCustomEndpoint:!!t,useDualstackEndpoint:(0,Xd.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Xd.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function oa(){return Yd>Jd.length-16&&(Hx.default.randomFillSync(Jd),Yd=0),Jd.slice(Yd,Yd+=16)}var Hx,Jd,Yd,of=Le(()=>{Hx=Oi(require("crypto")),Jd=new Uint8Array(256),Yd=Jd.length});var $x,Kx=Le(()=>{$x=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function n6(e){return typeof e=="string"&&$x.test(e)}var Rn,sa=Le(()=>{Kx();Rn=n6});function r6(e,n=0){let t=(Ke[e[n+0]]+Ke[e[n+1]]+Ke[e[n+2]]+Ke[e[n+3]]+"-"+Ke[e[n+4]]+Ke[e[n+5]]+"-"+Ke[e[n+6]]+Ke[e[n+7]]+"-"+Ke[e[n+8]]+Ke[e[n+9]]+"-"+Ke[e[n+10]]+Ke[e[n+11]]+Ke[e[n+12]]+Ke[e[n+13]]+Ke[e[n+14]]+Ke[e[n+15]]).toLowerCase();if(!Rn(t))throw TypeError("Stringified UUID is invalid");return t}var Ke,Tn,ia=Le(()=>{sa();Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).substr(1));Tn=r6});function o6(e,n,t){let r=n&&t||0,o=n||new Array(16);e=e||{};let s=e.node||Vx,c=e.clockseq!==void 0?e.clockseq:sf;if(s==null||c==null){let g=e.random||(e.rng||oa)();s==null&&(s=Vx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),c==null&&(c=sf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:cf+1,l=i-af+(u-cf)/1e4;if(l<0&&e.clockseq===void 0&&(c=c+1&16383),(l<0||i>af)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");af=i,cf=u,sf=c,i+=122192928e5;let a=((i&268435455)*1e4+u)%4294967296;o[r++]=a>>>24&255,o[r++]=a>>>16&255,o[r++]=a>>>8&255,o[r++]=a&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=c>>>8|128,o[r++]=c&255;for(let g=0;g<6;++g)o[r+g]=s[g];return n||Tn(o)}var Vx,sf,af,cf,Xx,Wx=Le(()=>{of();ia();af=0,cf=0;Xx=o6});function s6(e){if(!Rn(e))throw TypeError("Invalid UUID");let n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}var Qd,df=Le(()=>{sa();Qd=s6});function i6(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{ia();df();a6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",c6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function d6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Yx.default.createHash("md5").update(e).digest()}var Yx,Jx,Qx=Le(()=>{Yx=Oi(require("crypto"));Jx=d6});var l6,Zx,ek=Le(()=>{lf();Qx();l6=Zd("v3",48,Jx),Zx=l6});function u6(e,n,t){e=e||{};let r=e.random||(e.rng||oa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(let o=0;o<16;++o)n[t+o]=r[o];return n}return Tn(r)}var tk,nk=Le(()=>{of();ia();tk=u6});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),rk.default.createHash("sha1").update(e).digest()}var rk,ok,sk=Le(()=>{rk=Oi(require("crypto"));ok=m6});var p6,ik,ak=Le(()=>{lf();sk();p6=Zd("v5",80,ok),ik=p6});var ck,dk=Le(()=>{ck="00000000-0000-0000-0000-000000000000"});function f6(e){if(!Rn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lk,uk=Le(()=>{sa();lk=f6});var mk={};Ai(mk,{NIL:()=>ck,parse:()=>Qd,stringify:()=>Tn,v1:()=>Xx,v3:()=>Zx,v4:()=>tk,v5:()=>ik,validate:()=>Rn,version:()=>lk});var pk=Le(()=>{Wx();ek();nk();ak();dk();uk();sa();ia();df()});var uf=m((Y0e,gk)=>{var el=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,g6=Object.getOwnPropertyNames,h6=Object.prototype.hasOwnProperty,aa=(e,n)=>el(e,"name",{value:n,configurable:!0}),_6=(e,n)=>{for(var t in n)el(e,t,{get:n[t],enumerable:!0})},C6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of g6(n))!h6.call(e,o)&&o!==t&&el(e,o,{get:()=>n[o],enumerable:!(r=y6(n,o))||r.enumerable});return e},S6=e=>C6(el({},"__esModule",{value:!0}),e),fk={};_6(fk,{isClockSkewError:()=>k6,isRetryableByTrait:()=>x6,isServerError:()=>O6,isThrottlingError:()=>A6,isTransientError:()=>yk});gk.exports=S6(fk);var b6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],E6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],P6=["TimeoutError","RequestTimeout","RequestTimeoutException"],v6=[500,502,503,504],w6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],x6=aa(e=>e.$retryable!==void 0,"isRetryableByTrait"),k6=aa(e=>b6.includes(e.name),"isClockSkewError"),A6=aa(e=>{var n,t;return((n=e.$metadata)==null?void 0:n.httpStatusCode)===429||E6.includes(e.name)||((t=e.$retryable)==null?void 0:t.throttling)==!0},"isThrottlingError"),yk=aa(e=>{var n;return P6.includes(e.name)||w6.includes((e==null?void 0:e.code)||"")||v6.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)},"isTransientError"),O6=aa(e=>{var n;if(((n=e.$metadata)==null?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!yk(e)}return!1},"isServerError")});var zr=m((tve,Ok)=>{var tl=Object.defineProperty,N6=Object.getOwnPropertyDescriptor,I6=Object.getOwnPropertyNames,R6=Object.prototype.hasOwnProperty,kt=(e,n)=>tl(e,"name",{value:n,configurable:!0}),T6=(e,n)=>{for(var t in n)tl(e,t,{get:n[t],enumerable:!0})},B6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of I6(n))!R6.call(e,o)&&o!==t&&tl(e,o,{get:()=>n[o],enumerable:!(r=N6(n,o))||r.enumerable});return e},q6=e=>B6(tl({},"__esModule",{value:!0}),e),_k={};T6(_k,{AdaptiveRetryStrategy:()=>z6,ConfiguredRetryStrategy:()=>U6,DEFAULT_MAX_ATTEMPTS:()=>mf,DEFAULT_RETRY_DELAY_BASE:()=>ca,DEFAULT_RETRY_MODE:()=>D6,DefaultRateLimiter:()=>bk,INITIAL_RETRY_TOKENS:()=>pf,INVOCATION_ID_HEADER:()=>F6,MAXIMUM_RETRY_DELAY:()=>ff,NO_RETRY_INCREMENT:()=>wk,REQUEST_HEADER:()=>L6,RETRY_COST:()=>Pk,RETRY_MODES:()=>Ck,StandardRetryStrategy:()=>yf,THROTTLING_RETRY_DELAY_BASE:()=>Ek,TIMEOUT_RETRY_COST:()=>vk});Ok.exports=q6(_k);var Ck=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(Ck||{}),mf=3,D6="standard",M6=uf(),Sk=class{constructor(n){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n==null?void 0:n.beta)??.7,this.minCapacity=(n==null?void 0:n.minCapacity)??1,this.minFillRate=(n==null?void 0:n.minFillRate)??.5,this.scaleConstant=(n==null?void 0:n.scaleConstant)??.4,this.smooth=(n==null?void 0:n.smooth)??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(n){if(this.enabled){if(this.refillTokenBucket(),n>this.currentCapacity){let t=(n-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,t))}this.currentCapacity=this.currentCapacity-n}}refillTokenBucket(){let n=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=n;return}let t=(n-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=n}updateClientSendingRate(n){let t;if(this.updateMeasuredRate(),(0,M6.isThrottlingError)(n)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(n){return this.getPrecise(n*this.beta)}cubicSuccess(n){return this.getPrecise(this.scaleConstant*Math.pow(n-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(n){this.refillTokenBucket(),this.fillRate=Math.max(n,this.minFillRate),this.maxCapacity=Math.max(n,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let n=this.getCurrentTimeInSeconds(),t=Math.floor(n*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(n){return parseFloat(n.toFixed(8))}};kt(Sk,"DefaultRateLimiter");var bk=Sk,ca=100,ff=20*1e3,Ek=500,pf=500,Pk=5,vk=10,wk=1,F6="amz-sdk-invocation-id",L6="amz-sdk-request",j6=kt(()=>{let e=ca;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(ff,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),hk=kt(({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:kt(()=>n,"getRetryCount"),getRetryDelay:kt(()=>Math.min(ff,e),"getRetryDelay"),getRetryCost:kt(()=>t,"getRetryCost")}),"createDefaultRetryToken"),xk=class{constructor(n){this.maxAttempts=n,this.mode="standard",this.capacity=pf,this.retryBackoffStrategy=j6(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return hk({retryDelay:ca,retryCount:0})}async refreshRetryTokenForRetry(n,t){let r=await this.getMaxAttempts();if(this.shouldRetry(n,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?Ek:ca);let s=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),c=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,hk({retryDelay:c,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){this.capacity=Math.max(pf,this.capacity+(n.getRetryCost()??wk))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mf}`),mf}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?vk:Pk}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};kt(xk,"StandardRetryStrategy");var yf=xk,kk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode="adaptive";let{rateLimiter:r}=t??{};this.rateLimiter=r??new bk,this.standardRetryStrategy=new yf(n)}async acquireInitialRetryToken(n){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(n)}async refreshRetryTokenForRetry(n,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(n,t)}recordSuccess(n){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(n)}};kt(kk,"AdaptiveRetryStrategy");var z6=kk,Ak=class extends yf{constructor(n,t=ca){super(typeof n=="function"?n:async()=>n),typeof t=="number"?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(n,t){let r=await super.refreshRetryTokenForRetry(n,t);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(Ak,"ConfiguredRetryStrategy");var U6=Ak});var Nk=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isStreamingPayload=void 0;var G6=require("stream"),H6=e=>(e==null?void 0:e.body)instanceof G6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;nl.isStreamingPayload=H6});var sn=m((sve,Vk)=>{var rl=Object.defineProperty,$6=Object.getOwnPropertyDescriptor,K6=Object.getOwnPropertyNames,V6=Object.prototype.hasOwnProperty,Te=(e,n)=>rl(e,"name",{value:n,configurable:!0}),X6=(e,n)=>{for(var t in n)rl(e,t,{get:n[t],enumerable:!0})},W6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of K6(n))!V6.call(e,o)&&o!==t&&rl(e,o,{get:()=>n[o],enumerable:!(r=$6(n,o))||r.enumerable});return e},Y6=e=>W6(rl({},"__esModule",{value:!0}),e),Rk={};X6(Rk,{AdaptiveRetryStrategy:()=>Z6,CONFIG_MAX_ATTEMPTS:()=>hf,CONFIG_RETRY_MODE:()=>zk,ENV_MAX_ATTEMPTS:()=>gf,ENV_RETRY_MODE:()=>jk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>eX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nX,StandardRetryStrategy:()=>Fk,defaultDelayDecider:()=>Bk,defaultRetryDecider:()=>qk,getOmitRetryHeadersPlugin:()=>rX,getRetryAfterHint:()=>Kk,getRetryPlugin:()=>dX,omitRetryHeadersMiddleware:()=>Uk,omitRetryHeadersMiddlewareOptions:()=>Gk,resolveRetryConfig:()=>tX,retryMiddleware:()=>Hk,retryMiddlewareOptions:()=>$k});Vk.exports=Y6(Rk);var Ur=Ne(),Tk=(pk(),Y(mk)),ve=zr(),J6=Te((e,n)=>{let t=e,r=(n==null?void 0:n.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(n==null?void 0:n.retryCost)??ve.RETRY_COST,s=(n==null?void 0:n.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,c=e,i=Te(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Te(y=>i(y)<=c,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Te(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return c-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Te(y=>{c+=y??r,c=Math.min(c,t)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Bk=Te((e,n)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e)),"defaultDelayDecider"),Bn=uf(),qk=Te(e=>e?(0,Bn.isRetryableByTrait)(e)||(0,Bn.isClockSkewError)(e)||(0,Bn.isThrottlingError)(e)||(0,Bn.isTransientError)(e):!1,"defaultRetryDecider"),Dk=Te(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),Mk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(t==null?void 0:t.retryDecider)??qk,this.delayDecider=(t==null?void 0:t.delayDecider)??Bk,this.retryQuota=(t==null?void 0:t.retryQuota)??J6(ve.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(v,C));continue}throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=s,a.$metadata.totalRetryDelay=c,a}}};Te(Mk,"StandardRetryStrategy");var Fk=Mk,Q6=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Lk=class extends Fk{constructor(n,t){let{rateLimiter:r,...o}=t??{};super(n,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(n,t){return super.retry(n,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Te(Lk,"AdaptiveRetryStrategy");var Z6=Lk,Ik=Tr(),gf="AWS_MAX_ATTEMPTS",hf="max_attempts",eX={environmentVariableSelector:e=>{let n=e[gf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${gf} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[hf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${hf} mast be a number, got "${n}"`);return t},default:ve.DEFAULT_MAX_ATTEMPTS},tX=Te(e=>{let{retryStrategy:n}=e,t=(0,Ik.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:t,retryStrategy:async()=>n||(await(0,Ik.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(t):new ve.StandardRetryStrategy(t))}},"resolveRetryConfig"),jk="AWS_RETRY_MODE",zk="retry_mode",nX={environmentVariableSelector:e=>e[jk],configFileSelector:e=>e[zk],default:ve.DEFAULT_RETRY_MODE},Uk=Te(()=>e=>async n=>{let{request:t}=n;return Ur.HttpRequest.isInstance(t)&&(delete t.headers[ve.INVOCATION_ID_HEADER],delete t.headers[ve.REQUEST_HEADER]),e(n)},"omitRetryHeadersMiddleware"),Gk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rX=Te(e=>({applyToStack:n=>{n.addRelativeTo(Uk(),Gk)}}),"getOmitRetryHeadersPlugin"),oX=b(),sX=Nk(),Hk=Te(e=>(n,t)=>async r=>{var o;let s=await e.retryStrategy(),c=await e.maxAttempts();if(iX(s)){s=s;let i=await s.acquireInitialRetryToken(t.partition_id),u=new Error,l=0,a=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,Tk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${c}`);let{response:C,output:v}=await n(r);return s.recordSuccess(i),v.$metadata.attempts=l+1,v.$metadata.totalRetryDelay=a,{response:C,output:v}}catch(C){let v=aX(C);if(u=Dk(C),g&&(0,sX.isStreamingPayload)(y))throw(o=t.logger instanceof oX.NoOpLogger?console:t.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,v)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=a,u}l=i.getRetryCount();let A=i.getRetryDelay();a+=A,await new Promise(E=>setTimeout(E,A))}}else return s=s,s!=null&&s.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)},"retryMiddleware"),iX=Te(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),aX=Te(e=>{let n={errorType:cX(e)},t=Kk(e.$response);return t&&(n.retryAfterHint=t),n},"getRetryErrorInfo"),cX=Te(e=>(0,Bn.isThrottlingError)(e)?"THROTTLING":(0,Bn.isTransientError)(e)?"TRANSIENT":(0,Bn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),$k={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},dX=Te(e=>({applyToStack:n=>{n.add(Hk(e),$k)}}),"getRetryPlugin"),Kk=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t):new Date(r*1e3)},"getRetryAfterHint")});var Xk=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.resolveClientEndpointParameters=void 0;var lX=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});ol.resolveClientEndpointParameters=lX});var Wk=m((ave,uX)=>{uX.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Yk=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveStsAuthConfig=void 0;var mX=rn(),pX=(e,{stsClientCtor:n})=>(0,mX.resolveAwsAuthConfig)({...e,stsClientCtor:n});sl.resolveStsAuthConfig=pX});var Jk=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.resolveClientEndpointParameters=void 0;var fX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});il.resolveClientEndpointParameters=fX});var Qk=m((lve,yX)=>{yX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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"}}});var al=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.STSServiceException=Gr.__ServiceException=void 0;var Zk=b();Object.defineProperty(Gr,"__ServiceException",{enumerable:!0,get:function(){return Zk.ServiceException}});var _f=class e extends Zk.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Gr.STSServiceException=_f});var Dn=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.GetSessionTokenResponseFilterSensitiveLog=ie.GetFederationTokenResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=ie.AssumeRoleResponseFilterSensitiveLog=ie.CredentialsFilterSensitiveLog=ie.InvalidAuthorizationMessageException=ie.IDPCommunicationErrorException=ie.InvalidIdentityTokenException=ie.IDPRejectedClaimException=ie.RegionDisabledException=ie.PackedPolicyTooLargeException=ie.MalformedPolicyDocumentException=ie.ExpiredTokenException=void 0;var kf=b(),qn=al(),Cf=class e extends qn.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.ExpiredTokenException=Cf;var Sf=class e extends qn.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.MalformedPolicyDocumentException=Sf;var bf=class e extends qn.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.PackedPolicyTooLargeException=bf;var Ef=class e extends qn.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.RegionDisabledException=Ef;var Pf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPRejectedClaimException=Pf;var vf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidIdentityTokenException=vf;var wf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPCommunicationErrorException=wf;var xf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidAuthorizationMessageException=xf;var gX=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:kf.SENSITIVE_STRING}});ie.CredentialsFilterSensitiveLog=gX;var hX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleResponseFilterSensitiveLog=hX;var _X=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:kf.SENSITIVE_STRING}});ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=_X;var CX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=CX;var SX=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:kf.SENSITIVE_STRING}});ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=SX;var bX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=bX;var EX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetFederationTokenResponseFilterSensitiveLog=EX;var PX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetSessionTokenResponseFilterSensitiveLog=PX});var cl=m(an=>{"use strict";var eA=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vX=eA+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tA="["+eA+"]["+vX+"]*",wX=new RegExp("^"+tA+"$"),xX=function(e,n){let t=[],r=n.exec(e);for(;r;){let o=[];o.startIndex=n.lastIndex-r[0].length;let s=r.length;for(let c=0;c"u")};an.isExist=function(e){return typeof e<"u"};an.isEmptyObject=function(e){return Object.keys(e).length===0};an.merge=function(e,n,t){if(n){let r=Object.keys(n),o=r.length;for(let s=0;s{"use strict";var Af=cl(),AX={allowBooleanAttributes:!1,unpairedTags:[]};iA.validate=function(e,n){n=Object.assign({},AX,n);let t=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` `&&e[s]!=="\r";s++)u+=e[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!DX(u)){let y;return u.trim().length===0?y="Invalid space after '<'.":y="Tag '"+u+"' is an invalid name.",Be("InvalidTag",y,it(e,s))}let l=IX(e,s);if(l===!1)return Be("InvalidAttr","Attributes for '"+u+"' have open quote.",it(e,s));let a=l.value;if(s=l.index,a[a.length-1]==="/"){let y=s-a.length;a=a.substring(0,a.length-1);let g=sA(a,n);if(g===!0)r=!0;else return Be(g.err.code,g.err.msg,it(e,y+g.err.line))}else if(i)if(l.tagClosed){if(a.trim().length>0)return Be("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",it(e,c));{let y=t.pop();if(u!==y.tagName){let g=it(e,y.tagStartPos);return Be("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+g.line+", col "+g.col+") instead of closing tag '"+u+"'.",it(e,c))}t.length==0&&(o=!0)}}else return Be("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",it(e,s));else{let y=sA(a,n);if(y!==!0)return Be(y.err.code,y.err.msg,it(e,s-a.length+y.err.line));if(o===!0)return Be("InvalidXml","Multiple possible root nodes found.",it(e,s));n.unpairedTags.indexOf(u)!==-1||t.push({tagName:u,tagStartPos:c}),r=!0}for(s++;s0)return Be("InvalidXml","Invalid '"+JSON.stringify(t.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Be("InvalidXml","Start tag expected.",1);return!0};function nA(e){return e===" "||e===" "||e===` -`||e==="\r"}function rA(e,n){let t=n;for(;n5&&r==="xml")return Be("InvalidXml","XML declaration allowed only at the start of the document.",it(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function oA(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n"){n+=2;break}}return n}var OX='"',NX="'";function IX(e,n){let t="",r="",o=!1;for(;n"&&r===""){o=!0;break}t+=e[n]}return r!==""?!1:{value:t,index:n,tagClosed:o}}var RX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function sA(e,n){let t=Af.getAllMatches(e,RX),r={};for(let o=0;o{var aA={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},MX=function(e){return Object.assign({},aA,e)};Nf.buildOptions=MX;Nf.defaultOptions=aA});var lA=m((fve,dA)=>{"use strict";var If=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}};dA.exports=If});var mA=m((yve,uA)=>{var FX=al();function LX(e,n){let t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let r=1,o=!1,s=!1,c="";for(;n"){if(s?e[n-1]==="-"&&e[n-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[n]==="["?o=!0:c+=e[n];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function jX(e,n){let t="";for(;n{var VX=/^[-+]?0x[a-fA-F0-9]+$/,XX=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var WX={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function YX(e,n={}){if(n=Object.assign({},WX,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&VX.test(t))return Number.parseInt(t,16);{let r=XX.exec(t);if(r){let o=r[1],s=r[2],c=JX(r[3]),i=r[4]||r[6];if(!n.leadingZeros&&s.length>0&&o&&t[2]!==".")return e;if(!n.leadingZeros&&s.length>0&&!o&&t[1]!==".")return e;{let u=Number(t),l=""+u;return l.search(/[eE]/)!==-1||i?n.eNotation?u:e:t.indexOf(".")!==-1?l==="0"&&c===""||l===c||o&&l==="-"+c?u:e:s?c===l||o+c===l?u:e:t===l||t===o+l?u:e}}else return e}}function JX(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}pA.exports=YX});var gA=m((_ve,yA)=>{"use strict";var qf=al(),la=lA(),QX=mA(),ZX=fA(),hve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qf.nameRegexp),Rf=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=e8,this.parseXml=s8,this.parseTextData=t8,this.resolveNameSpace=n8,this.buildAttributesMap=o8,this.isItStopNode=d8,this.replaceEntitiesValue=a8,this.readStopNodeData=u8,this.saveTextToParentTag=c8,this.addChild=i8}};function e8(e){let n=Object.keys(e);for(let t=0;t0)){c||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(n,e,t,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function n8(e){if(this.options.removeNSPrefix){let n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}var r8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function o8(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=qf.getAllMatches(e,r8),o=r.length,s={};for(let c=0;c",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(r=this.saveTextToParentTag(r,t,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let a=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(a=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):a=o.lastIndexOf("."),o=o.substring(0,a),t=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Tf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,t,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new la(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(t,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=pr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,t,o),t.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=QX(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=pr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,t,o),this.options.cdataPropName)t.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,t.tagname,o,!0,!1,!0);l==null&&(l=""),t.add(this.options.textNodeName,l)}s=i+2}else{let i=Tf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,a=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&r&&t.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,t,o,!1));let g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==n.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let v=new la(u);u!==l&&a&&(v[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,a,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),v.add(this.options.textNodeName,C),this.addChild(t,v,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new la(u);u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new la(u);this.tagsNodeStack.push(t),u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),t=C}r="",s=y}}else r+=e[s];return n.child};function i8(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var a8=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){let t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){let t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){let t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c8(e,n,t,r){return e&&(r===void 0&&(r=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function d8(e,n,t){let r="*."+t;for(let o in e){let s=e[o];if(r===s||n===s)return!0}return!1}function l8(e,n,t=">"){let r,o="";for(let s=n;s",t,`${n} is not closed`);if(e.substring(t+2,s).trim()===n&&(o--,o===0))return{tagContent:e.substring(r,t),i:s};t=s}else if(e[t+1]==="?")t=pr(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=pr(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=pr(e,"]]>",t,"StopNode is not closed.")-2;else{let s=Tf(e,t,">");s&&((s&&s.tagName)===n&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,t=s.closeIndex)}}function Bf(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:ZX(e,t)}else return qf.isExist(e)?e:""}yA.exports=Rf});var CA=m(_A=>{"use strict";function m8(e,n){return hA(e,n)}function hA(e,n,t){let r,o={};for(let s=0;s0&&(o[n.textNodeName]=r):r!==void 0&&(o[n.textNodeName]=r),o}function p8(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:g8}=cA(),h8=gA(),{prettify:_8}=CA(),C8=Of(),Df=class{constructor(n){this.externalEntities={},this.options=g8(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let s=C8.validate(n,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new h8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(n);return this.options.preserveOrder||o===void 0?o:_8(o,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};SA.exports=Df});var xA=m((bve,wA)=>{var S8=` -`;function b8(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=S8),PA(e,n,"",t)}function PA(e,n,t,r){let o="",s=!1;for(let c=0;c`,s=!1;continue}else if(u===n.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let v=EA(i[":@"],n),A=u==="?xml"?"":r,E=i[u][0][n.textNodeName];E=E.length!==0?" "+E:"",o+=A+`<${u}${E}${v}?>`,s=!0;continue}let a=r;a!==""&&(a+=n.indentBy);let y=EA(i[":@"],n),g=r+`<${u}${y}`,C=PA(i[u],n,l,a);n.unpairedTags.indexOf(u)!==-1?n.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&n.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("`),s=!0}return o}function E8(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var v8=xA(),w8={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Mn(e){this.options=Object.assign({},w8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A8),this.processTextOrObjNode=x8,this.options.format?(this.indentate=k8,this.tagEndChar=`> +`||e==="\r"}function rA(e,n){let t=n;for(;n5&&r==="xml")return Be("InvalidXml","XML declaration allowed only at the start of the document.",it(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function oA(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n"){n+=2;break}}return n}var OX='"',NX="'";function IX(e,n){let t="",r="",o=!1;for(;n"&&r===""){o=!0;break}t+=e[n]}return r!==""?!1:{value:t,index:n,tagClosed:o}}var RX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function sA(e,n){let t=Af.getAllMatches(e,RX),r={};for(let o=0;o{var aA={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},MX=function(e){return Object.assign({},aA,e)};Nf.buildOptions=MX;Nf.defaultOptions=aA});var lA=m((gve,dA)=>{"use strict";var If=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}};dA.exports=If});var mA=m((hve,uA)=>{var FX=cl();function LX(e,n){let t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let r=1,o=!1,s=!1,c="";for(;n"){if(s?e[n-1]==="-"&&e[n-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[n]==="["?o=!0:c+=e[n];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function jX(e,n){let t="";for(;n{var VX=/^[-+]?0x[a-fA-F0-9]+$/,XX=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var WX={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function YX(e,n={}){if(n=Object.assign({},WX,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&VX.test(t))return Number.parseInt(t,16);{let r=XX.exec(t);if(r){let o=r[1],s=r[2],c=JX(r[3]),i=r[4]||r[6];if(!n.leadingZeros&&s.length>0&&o&&t[2]!==".")return e;if(!n.leadingZeros&&s.length>0&&!o&&t[1]!==".")return e;{let u=Number(t),l=""+u;return l.search(/[eE]/)!==-1||i?n.eNotation?u:e:t.indexOf(".")!==-1?l==="0"&&c===""||l===c||o&&l==="-"+c?u:e:s?c===l||o+c===l?u:e:t===l||t===o+l?u:e}}else return e}}function JX(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}pA.exports=YX});var gA=m((Sve,yA)=>{"use strict";var qf=cl(),la=lA(),QX=mA(),ZX=fA(),Cve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qf.nameRegexp),Rf=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=e8,this.parseXml=s8,this.parseTextData=t8,this.resolveNameSpace=n8,this.buildAttributesMap=o8,this.isItStopNode=d8,this.replaceEntitiesValue=a8,this.readStopNodeData=u8,this.saveTextToParentTag=c8,this.addChild=i8}};function e8(e){let n=Object.keys(e);for(let t=0;t0)){c||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(n,e,t,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function n8(e){if(this.options.removeNSPrefix){let n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}var r8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function o8(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=qf.getAllMatches(e,r8),o=r.length,s={};for(let c=0;c",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(r=this.saveTextToParentTag(r,t,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let a=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(a=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):a=o.lastIndexOf("."),o=o.substring(0,a),t=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Tf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,t,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new la(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(t,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=pr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,t,o),t.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=QX(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=pr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,t,o),this.options.cdataPropName)t.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,t.tagname,o,!0,!1,!0);l==null&&(l=""),t.add(this.options.textNodeName,l)}s=i+2}else{let i=Tf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,a=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&r&&t.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,t,o,!1));let g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==n.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let v=new la(u);u!==l&&a&&(v[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,a,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),v.add(this.options.textNodeName,C),this.addChild(t,v,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new la(u);u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new la(u);this.tagsNodeStack.push(t),u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),t=C}r="",s=y}}else r+=e[s];return n.child};function i8(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var a8=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){let t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){let t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){let t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c8(e,n,t,r){return e&&(r===void 0&&(r=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function d8(e,n,t){let r="*."+t;for(let o in e){let s=e[o];if(r===s||n===s)return!0}return!1}function l8(e,n,t=">"){let r,o="";for(let s=n;s",t,`${n} is not closed`);if(e.substring(t+2,s).trim()===n&&(o--,o===0))return{tagContent:e.substring(r,t),i:s};t=s}else if(e[t+1]==="?")t=pr(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=pr(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=pr(e,"]]>",t,"StopNode is not closed.")-2;else{let s=Tf(e,t,">");s&&((s&&s.tagName)===n&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,t=s.closeIndex)}}function Bf(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:ZX(e,t)}else return qf.isExist(e)?e:""}yA.exports=Rf});var CA=m(_A=>{"use strict";function m8(e,n){return hA(e,n)}function hA(e,n,t){let r,o={};for(let s=0;s0&&(o[n.textNodeName]=r):r!==void 0&&(o[n.textNodeName]=r),o}function p8(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:g8}=cA(),h8=gA(),{prettify:_8}=CA(),C8=Of(),Df=class{constructor(n){this.externalEntities={},this.options=g8(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let s=C8.validate(n,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new h8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(n);return this.options.preserveOrder||o===void 0?o:_8(o,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};SA.exports=Df});var xA=m((Pve,wA)=>{var S8=` +`;function b8(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=S8),PA(e,n,"",t)}function PA(e,n,t,r){let o="",s=!1;for(let c=0;c`,s=!1;continue}else if(u===n.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let v=EA(i[":@"],n),A=u==="?xml"?"":r,E=i[u][0][n.textNodeName];E=E.length!==0?" "+E:"",o+=A+`<${u}${E}${v}?>`,s=!0;continue}let a=r;a!==""&&(a+=n.indentBy);let y=EA(i[":@"],n),g=r+`<${u}${y}`,C=PA(i[u],n,l,a);n.unpairedTags.indexOf(u)!==-1?n.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&n.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("`),s=!0}return o}function E8(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var v8=xA(),w8={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Mn(e){this.options=Object.assign({},w8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A8),this.processTextOrObjNode=x8,this.options.format?(this.indentate=k8,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Mn.prototype.build=function(e){return this.options.preserveOrder?v8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Mn.prototype.j2x=function(e,n){let t="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",n);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)t+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,c="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,o,n):c+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,"",n)),r+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),c=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&n===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+s+this.tagEndChar+e+this.indentate(r)+o}};Mn.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+t+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(n,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+o+"0&&this.options.processEntities)for(let n=0;n{"use strict";var O8=Of(),N8=bA(),I8=AA();OA.exports={XMLParser:N8,XMLValidator:O8,XMLBuilder:I8}});var dn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.de_GetSessionTokenCommand=ue.de_GetFederationTokenCommand=ue.de_GetCallerIdentityCommand=ue.de_GetAccessKeyInfoCommand=ue.de_DecodeAuthorizationMessageCommand=ue.de_AssumeRoleWithWebIdentityCommand=ue.de_AssumeRoleWithSAMLCommand=ue.de_AssumeRoleCommand=ue.se_GetSessionTokenCommand=ue.se_GetFederationTokenCommand=ue.se_GetCallerIdentityCommand=ue.se_GetAccessKeyInfoCommand=ue.se_DecodeAuthorizationMessageCommand=ue.se_AssumeRoleWithWebIdentityCommand=ue.se_AssumeRoleWithSAMLCommand=ue.se_AssumeRoleCommand=void 0;var R8=Ne(),W=b(),T8=Mf(),Fn=Dn(),B8=il(),q8=async(e,n)=>{let t=zn,r;return r=Gn({...a4(e,n),Action:"AssumeRole",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleCommand=q8;var D8=async(e,n)=>{let t=zn,r;return r=Gn({...c4(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithSAMLCommand=D8;var M8=async(e,n)=>{let t=zn,r;return r=Gn({...d4(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithWebIdentityCommand=M8;var F8=async(e,n)=>{let t=zn,r;return r=Gn({...l4(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_DecodeAuthorizationMessageCommand=F8;var L8=async(e,n)=>{let t=zn,r;return r=Gn({...u4(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetAccessKeyInfoCommand=L8;var j8=async(e,n)=>{let t=zn,r;return r=Gn({...m4(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetCallerIdentityCommand=j8;var z8=async(e,n)=>{let t=zn,r;return r=Gn({...p4(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetFederationTokenCommand=z8;var U8=async(e,n)=>{let t=zn,r;return r=Gn({...f4(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetSessionTokenCommand=U8;var G8=async(e,n)=>{if(e.statusCode>=300)return H8(e,n);let t=await cn(e.body,n),r={};return r=S4(t.AssumeRoleResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleCommand=G8;var H8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},$8=async(e,n)=>{if(e.statusCode>=300)return K8(e,n);let t=await cn(e.body,n),r={};return r=b4(t.AssumeRoleWithSAMLResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithSAMLCommand=$8;var K8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},V8=async(e,n)=>{if(e.statusCode>=300)return X8(e,n);let t=await cn(e.body,n),r={};return r=E4(t.AssumeRoleWithWebIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithWebIdentityCommand=V8;var X8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await s4(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},W8=async(e,n)=>{if(e.statusCode>=300)return Y8(e,n);let t=await cn(e.body,n),r={};return r=P4(t.DecodeAuthorizationMessageResult,n),{$metadata:Qe(e),...r}};ue.de_DecodeAuthorizationMessageCommand=W8;var Y8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await i4(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},J8=async(e,n)=>{if(e.statusCode>=300)return Q8(e,n);let t=await cn(e.body,n),r={};return r=x4(t.GetAccessKeyInfoResult,n),{$metadata:Qe(e),...r}};ue.de_GetAccessKeyInfoCommand=J8;var Q8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},Z8=async(e,n)=>{if(e.statusCode>=300)return e4(e,n);let t=await cn(e.body,n),r={};return r=k4(t.GetCallerIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_GetCallerIdentityCommand=Z8;var e4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},t4=async(e,n)=>{if(e.statusCode>=300)return n4(e,n);let t=await cn(e.body,n),r={};return r=A4(t.GetFederationTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetFederationTokenCommand=t4;var n4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},r4=async(e,n)=>{if(e.statusCode>=300)return o4(e,n);let t=await cn(e.body,n),r={};return r=O4(t.GetSessionTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetSessionTokenCommand=r4;var o4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},Ff=async(e,n)=>{let t=e.body,r=v4(t.Error,n),o=new Fn.ExpiredTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},s4=async(e,n)=>{let t=e.body,r=N4(t.Error,n),o=new Fn.IDPCommunicationErrorException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},NA=async(e,n)=>{let t=e.body,r=I4(t.Error,n),o=new Fn.IDPRejectedClaimException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},i4=async(e,n)=>{let t=e.body,r=R4(t.Error,n),o=new Fn.InvalidAuthorizationMessageException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},IA=async(e,n)=>{let t=e.body,r=T4(t.Error,n),o=new Fn.InvalidIdentityTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},cl=async(e,n)=>{let t=e.body,r=B4(t.Error,n),o=new Fn.MalformedPolicyDocumentException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},dl=async(e,n)=>{let t=e.body,r=q4(t.Error,n),o=new Fn.PackedPolicyTooLargeException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ua=async(e,n)=>{let t=e.body,r=D4(t.Error,n),o=new Fn.RegionDisabledException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},a4=(e,n)=>{var r,o,s,c;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let a=`PolicyArns.${u}`;t[a]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let a=`Tags.${u}`;t[a]=l})}if(e.TransitiveTagKeys!=null){let i=C4(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let a=`TransitiveTagKeys.${u}`;t[a]=l})}if(e.ExternalId!=null&&(t.ExternalId=e.ExternalId),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(t.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=h4(e.ProvidedContexts,n);((c=e.ProvidedContexts)==null?void 0:c.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let a=`ProvidedContexts.${u}`;t[a]=l})}return t},c4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(t.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(t.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},d4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(t.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(t.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},l4=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},u4=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},m4=(e,n)=>({}),p4=(e,n)=>{var r,o;let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let s=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(s).forEach(([c,i])=>{let u=`PolicyArns.${c}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([c,i])=>{let u=`Tags.${c}`;t[u]=i})}return t},f4=(e,n)=>{let t={};return e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),t},ll=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=y4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},y4=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},g4=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},h4=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=g4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},_4=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},C4=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},RA=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=_4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},Lf=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},S4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},b4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},E4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},ma=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},P4=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),t},v4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},w4=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},x4=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),t},k4=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},A4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=w4(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),t},O4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),t},N4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},I4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},R4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},T4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},B4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},q4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},D4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},Qe=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),M4=(e,n)=>(0,W.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Ln=(0,W.withBaseException)(B8.STSServiceException),jn=async(e,n,t,r,o)=>{let{hostname:s,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new R8.HttpRequest(l)},zn={"content-type":"application/x-www-form-urlencoded"},cn=(e,n)=>M4(e,n).then(t=>{if(t.length){let r=new T8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Mn.prototype.build=function(e){return this.options.preserveOrder?v8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Mn.prototype.j2x=function(e,n){let t="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",n);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)t+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,c="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,o,n):c+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,"",n)),r+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),c=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&n===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+s+this.tagEndChar+e+this.indentate(r)+o}};Mn.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+t+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(n,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+o+"0&&this.options.processEntities)for(let n=0;n{"use strict";var O8=Of(),N8=bA(),I8=AA();OA.exports={XMLParser:N8,XMLValidator:O8,XMLBuilder:I8}});var dn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.de_GetSessionTokenCommand=ue.de_GetFederationTokenCommand=ue.de_GetCallerIdentityCommand=ue.de_GetAccessKeyInfoCommand=ue.de_DecodeAuthorizationMessageCommand=ue.de_AssumeRoleWithWebIdentityCommand=ue.de_AssumeRoleWithSAMLCommand=ue.de_AssumeRoleCommand=ue.se_GetSessionTokenCommand=ue.se_GetFederationTokenCommand=ue.se_GetCallerIdentityCommand=ue.se_GetAccessKeyInfoCommand=ue.se_DecodeAuthorizationMessageCommand=ue.se_AssumeRoleWithWebIdentityCommand=ue.se_AssumeRoleWithSAMLCommand=ue.se_AssumeRoleCommand=void 0;var R8=Ne(),W=b(),T8=Mf(),Fn=Dn(),B8=al(),q8=async(e,n)=>{let t=zn,r;return r=Gn({...a4(e,n),Action:"AssumeRole",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleCommand=q8;var D8=async(e,n)=>{let t=zn,r;return r=Gn({...c4(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithSAMLCommand=D8;var M8=async(e,n)=>{let t=zn,r;return r=Gn({...d4(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithWebIdentityCommand=M8;var F8=async(e,n)=>{let t=zn,r;return r=Gn({...l4(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_DecodeAuthorizationMessageCommand=F8;var L8=async(e,n)=>{let t=zn,r;return r=Gn({...u4(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetAccessKeyInfoCommand=L8;var j8=async(e,n)=>{let t=zn,r;return r=Gn({...m4(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetCallerIdentityCommand=j8;var z8=async(e,n)=>{let t=zn,r;return r=Gn({...p4(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetFederationTokenCommand=z8;var U8=async(e,n)=>{let t=zn,r;return r=Gn({...f4(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetSessionTokenCommand=U8;var G8=async(e,n)=>{if(e.statusCode>=300)return H8(e,n);let t=await cn(e.body,n),r={};return r=S4(t.AssumeRoleResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleCommand=G8;var H8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},$8=async(e,n)=>{if(e.statusCode>=300)return K8(e,n);let t=await cn(e.body,n),r={};return r=b4(t.AssumeRoleWithSAMLResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithSAMLCommand=$8;var K8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},V8=async(e,n)=>{if(e.statusCode>=300)return X8(e,n);let t=await cn(e.body,n),r={};return r=E4(t.AssumeRoleWithWebIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithWebIdentityCommand=V8;var X8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await s4(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},W8=async(e,n)=>{if(e.statusCode>=300)return Y8(e,n);let t=await cn(e.body,n),r={};return r=P4(t.DecodeAuthorizationMessageResult,n),{$metadata:Qe(e),...r}};ue.de_DecodeAuthorizationMessageCommand=W8;var Y8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await i4(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},J8=async(e,n)=>{if(e.statusCode>=300)return Q8(e,n);let t=await cn(e.body,n),r={};return r=x4(t.GetAccessKeyInfoResult,n),{$metadata:Qe(e),...r}};ue.de_GetAccessKeyInfoCommand=J8;var Q8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},Z8=async(e,n)=>{if(e.statusCode>=300)return e4(e,n);let t=await cn(e.body,n),r={};return r=k4(t.GetCallerIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_GetCallerIdentityCommand=Z8;var e4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},t4=async(e,n)=>{if(e.statusCode>=300)return n4(e,n);let t=await cn(e.body,n),r={};return r=A4(t.GetFederationTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetFederationTokenCommand=t4;var n4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},r4=async(e,n)=>{if(e.statusCode>=300)return o4(e,n);let t=await cn(e.body,n),r={};return r=O4(t.GetSessionTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetSessionTokenCommand=r4;var o4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},Ff=async(e,n)=>{let t=e.body,r=v4(t.Error,n),o=new Fn.ExpiredTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},s4=async(e,n)=>{let t=e.body,r=N4(t.Error,n),o=new Fn.IDPCommunicationErrorException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},NA=async(e,n)=>{let t=e.body,r=I4(t.Error,n),o=new Fn.IDPRejectedClaimException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},i4=async(e,n)=>{let t=e.body,r=R4(t.Error,n),o=new Fn.InvalidAuthorizationMessageException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},IA=async(e,n)=>{let t=e.body,r=T4(t.Error,n),o=new Fn.InvalidIdentityTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},dl=async(e,n)=>{let t=e.body,r=B4(t.Error,n),o=new Fn.MalformedPolicyDocumentException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ll=async(e,n)=>{let t=e.body,r=q4(t.Error,n),o=new Fn.PackedPolicyTooLargeException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ua=async(e,n)=>{let t=e.body,r=D4(t.Error,n),o=new Fn.RegionDisabledException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},a4=(e,n)=>{var r,o,s,c;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let a=`PolicyArns.${u}`;t[a]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let a=`Tags.${u}`;t[a]=l})}if(e.TransitiveTagKeys!=null){let i=C4(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let a=`TransitiveTagKeys.${u}`;t[a]=l})}if(e.ExternalId!=null&&(t.ExternalId=e.ExternalId),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(t.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=h4(e.ProvidedContexts,n);((c=e.ProvidedContexts)==null?void 0:c.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let a=`ProvidedContexts.${u}`;t[a]=l})}return t},c4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(t.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(t.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},d4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(t.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(t.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},l4=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},u4=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},m4=(e,n)=>({}),p4=(e,n)=>{var r,o;let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let s=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(s).forEach(([c,i])=>{let u=`PolicyArns.${c}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([c,i])=>{let u=`Tags.${c}`;t[u]=i})}return t},f4=(e,n)=>{let t={};return e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),t},ul=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=y4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},y4=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},g4=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},h4=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=g4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},_4=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},C4=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},RA=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=_4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},Lf=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},S4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},b4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},E4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},ma=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},P4=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),t},v4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},w4=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},x4=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),t},k4=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},A4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=w4(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),t},O4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),t},N4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},I4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},R4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},T4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},B4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},q4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},D4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},Qe=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),M4=(e,n)=>(0,W.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Ln=(0,W.withBaseException)(B8.STSServiceException),jn=async(e,n,t,r,o)=>{let{hostname:s,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new R8.HttpRequest(l)},zn={"content-type":"application/x-www-form-urlencoded"},cn=(e,n)=>M4(e,n).then(t=>{if(t.length){let r=new T8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),Un=async(e,n)=>{let t=await cn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},Gn=e=>Object.entries(e).map(([n,t])=>(0,W.extendedEncodeURIComponent)(n)+"="+(0,W.extendedEncodeURIComponent)(t)).join("&"),Hn=(e,n)=>{var t;if(((t=n.Error)==null?void 0:t.Code)!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var ul=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.AssumeRoleCommand=Hr.$Command=void 0;var F4=rn(),L4=x(),j4=k(),BA=b();Object.defineProperty(Hr,"$Command",{enumerable:!0,get:function(){return BA.Command}});var z4=w(),U4=Dn(),TA=dn(),jf=class e extends BA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,j4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,L4.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,F4.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:U4.AssumeRoleResponseFilterSensitiveLog,[z4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TA.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,TA.de_AssumeRoleCommand)(n,t)}};Hr.AssumeRoleCommand=jf});var ml=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.AssumeRoleWithWebIdentityCommand=$r.$Command=void 0;var G4=x(),H4=k(),MA=b();Object.defineProperty($r,"$Command",{enumerable:!0,get:function(){return MA.Command}});var $4=w(),qA=Dn(),DA=dn(),zf=class e extends MA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,H4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,G4.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[$4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DA.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,DA.de_AssumeRoleWithWebIdentityCommand)(n,t)}};$r.AssumeRoleWithWebIdentityCommand=zf});var Uf=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decorateDefaultCredentialProvider=Ft.getDefaultRoleAssumerWithWebIdentity=Ft.getDefaultRoleAssumer=void 0;var K4=ul(),V4=ml(),FA="us-east-1",LA=e=>typeof e!="function"?e===void 0?FA:e:async()=>{try{return await e()}catch{return FA}},X4=(e,n)=>{let t,r;return async(o,s)=>{if(r=o,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:LA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new K4.AssumeRoleCommand(s));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};Ft.getDefaultRoleAssumer=X4;var W4=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:c,requestHandler:i}=e;t=new n({logger:s,region:LA(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new V4.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Ft.getDefaultRoleAssumerWithWebIdentity=W4;var Y4=e=>n=>e({roleAssumer:(0,Ft.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,Ft.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});Ft.decorateDefaultCredentialProvider=Y4});var jA=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromEnv=Ze.ENV_EXPIRATION=Ze.ENV_SESSION=Ze.ENV_SECRET=Ze.ENV_KEY=void 0;var J4=xe();Ze.ENV_KEY="AWS_ACCESS_KEY_ID";Ze.ENV_SECRET="AWS_SECRET_ACCESS_KEY";Ze.ENV_SESSION="AWS_SESSION_TOKEN";Ze.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Q4=()=>async()=>{let e=process.env[Ze.ENV_KEY],n=process.env[Ze.ENV_SECRET],t=process.env[Ze.ENV_SESSION],r=process.env[Ze.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new J4.CredentialsProviderError("Unable to find environment variable credentials.")};Ze.fromEnv=Q4});var Hf=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Z4=(te(),Y(ee));Z4.__exportStar(jA(),Gf)});var gl=m((Nve,eO)=>{var yl=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,tW=Object.getOwnPropertyNames,nW=Object.prototype.hasOwnProperty,qe=(e,n)=>yl(e,"name",{value:n,configurable:!0}),rW=(e,n)=>{for(var t in n)yl(e,t,{get:n[t],enumerable:!0})},oW=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of tW(n))!nW.call(e,o)&&o!==t&&yl(e,o,{get:()=>n[o],enumerable:!(r=eW(n,o))||r.enumerable});return e},sW=e=>oW(yl({},"__esModule",{value:!0}),e),HA={};rW(HA,{DEFAULT_MAX_RETRIES:()=>XA,DEFAULT_TIMEOUT:()=>VA,ENV_CMDS_AUTH_TOKEN:()=>Vf,ENV_CMDS_FULL_URI:()=>pl,ENV_CMDS_RELATIVE_URI:()=>fl,fromContainerMetadata:()=>dW,fromInstanceMetadata:()=>NW,getInstanceMetadataEndpoint:()=>QA,httpRequest:()=>Kr,providerConfigFromInit:()=>Xf});eO.exports=sW(HA);var iW=require("url"),Lt=xe(),aW=require("buffer"),cW=require("http");function Kr(e){return new Promise((n,t)=>{var r;let o=(0,cW.request)({method:"GET",...e,hostname:(r=e.hostname)==null?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{t(Object.assign(new Lt.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{t(new Lt.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:c=400}=s;(c<200||300<=c)&&(t(Object.assign(new Lt.ProviderError("Error response received from instance metadata service"),{statusCode:c})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(aW.Buffer.concat(i)),o.destroy()})}),o.end()})}qe(Kr,"httpRequest");var $A=qe(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),KA=qe(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),VA=1e3,XA=0,Xf=qe(({maxRetries:e=XA,timeout:n=VA})=>({maxRetries:e,timeout:n}),"providerConfigFromInit"),Kf=qe((e,n)=>{let t=e();for(let r=0;r{let{timeout:n,maxRetries:t}=Xf(e);return()=>Kf(async()=>{let r=await fW(),o=JSON.parse(await lW(n,r));if(!$A(o))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(o)},t)},"fromContainerMetadata"),lW=qe(async(e,n)=>(process.env[Vf]&&(n.headers={...n.headers,Authorization:process.env[Vf]}),(await Kr({...n,timeout:e})).toString()),"requestFromEcsImds"),uW="169.254.170.2",mW={localhost:!0,"127.0.0.1":!0},pW={"http:":!0,"https:":!0},fW=qe(async()=>{if(process.env[fl])return{hostname:uW,path:process.env[fl]};if(process.env[pl]){let e=(0,iW.parse)(process.env[pl]);if(!e.hostname||!(e.hostname in mW))throw new Lt.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in pW))throw new Lt.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Lt.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${fl} or ${pl} environment variable is set`,!1)},"getCmdsUri"),WA=class YA extends Lt.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,YA.prototype)}};qe(WA,"InstanceMetadataV1FallbackError");var yW=WA,Wf=on(),gW=mr(),hW="AWS_EC2_METADATA_SERVICE_ENDPOINT",_W="ec2_metadata_service_endpoint",CW={environmentVariableSelector:e=>e[hW],configFileSelector:e=>e[_W],default:void 0},JA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(JA||{}),SW="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",bW="ec2_metadata_service_endpoint_mode",EW={environmentVariableSelector:e=>e[SW],configFileSelector:e=>e[bW],default:"IPv4"},QA=qe(async()=>(0,gW.parseUrl)(await PW()||await vW()),"getInstanceMetadataEndpoint"),PW=qe(async()=>(0,Wf.loadConfig)(CW)(),"getFromEndpointConfig"),vW=qe(async()=>{let e=await(0,Wf.loadConfig)(EW)();switch(e){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(JA)}`)}},"getFromEndpointModeConfig"),wW=5*60,xW=5*60,kW="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zA=qe((e,n)=>{let t=wW+Math.floor(Math.random()*xW),r=new Date(Date.now()+t*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+kW);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),AW=qe((e,n={})=>{let t=(n==null?void 0:n.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()AW(IW(e),{logger:e.logger}),"fromInstanceMetadata"),IW=qe(e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=Xf(e),c=qe(async(i,u)=>{var l;if(n||((l=u.headers)==null?void 0:l[GA])==null){let g=!1,C=!1,v=await(0,Wf.loadConfig)({environmentVariableSelector:A=>{let E=A[$f];if(C=!!E&&E!=="false",E===void 0)throw new Lt.CredentialsProviderError(`${$f} not set in env, checking config file next.`);return C},configFileSelector:A=>{let E=A[UA];return g=!!E&&E!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||v){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${UA})`),C&&A.push(`process environment variable (${$f})`),new yW(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Kf(async()=>{let g;try{g=await TW(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)).trim();return Kf(async()=>{let g;try{g=await BW(y,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)},"getCredentials");return async()=>{let i=await QA();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),c(s,{...i,timeout:o});{let u;try{u=(await RW({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(n=!0),t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),c(s,{...i,timeout:o})}return c(s,{...i,headers:{[GA]:u},timeout:o})}}},"getInstanceImdsProvider"),RW=qe(async e=>Kr({...e,path:OW,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),TW=qe(async e=>(await Kr({...e,path:ZA})).toString(),"getProfile"),BW=qe(async(e,n)=>{let t=JSON.parse((await Kr({...n,path:ZA+e})).toString());if(!$A(t))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(t)},"getCredentialsFromProfile")});var nO=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.resolveCredentialSource=void 0;var qW=Hf(),tO=gl(),DW=xe(),MW=(e,n)=>{let t={EcsContainer:tO.fromContainerMetadata,Ec2InstanceMetadata:tO.fromInstanceMetadata,Environment:qW.fromEnv};if(e in t)return t[e]();throw new DW.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};hl.resolveCredentialSource=MW});var rO=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveAssumeRoleCredentials=Vr.isAssumeRoleProfile=void 0;var Yf=xe(),FW=wt(),LW=nO(),jW=Jf(),zW=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(UW(e)||GW(e));Vr.isAssumeRoleProfile=zW;var UW=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",GW=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",HW=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new Yf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Yf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,FW.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=s?(0,jW.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,LW.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!t.mfaCodeProvider)throw new Yf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let l=await c;return t.roleAssumer(l,i)};Vr.resolveAssumeRoleCredentials=HW});var oO=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.getValidatedProcessCredentials=void 0;var $W=(e,n)=>{if(n.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(n.Expiration){let t=new Date;if(new Date(n.Expiration){"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.resolveProcessCredentials=void 0;var Qf=xe(),KW=require("child_process"),VW=require("util"),XW=oO(),WW=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,VW.promisify)(KW.exec);try{let{stdout:s}=await o(r),c;try{c=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,XW.getValidatedProcessCredentials)(e,c)}catch(s){throw new Qf.CredentialsProviderError(s.message)}}else throw new Qf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Qf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Cl.resolveProcessCredentials=WW});var aO=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.fromProcess=void 0;var iO=wt(),YW=sO(),JW=(e={})=>async()=>{let n=await(0,iO.parseKnownFiles)(e);return(0,YW.resolveProcessCredentials)((0,iO.getProfileName)(e),n)};Sl.fromProcess=JW});var ey=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QW=(te(),Y(ee));QW.__exportStar(aO(),Zf)});var cO=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveProcessCredentials=Xr.isProcessProfile=void 0;var ZW=ey(),e5=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Xr.isProcessProfile=e5;var t5=async(e,n)=>(0,ZW.fromProcess)({...e,profile:n})();Xr.resolveProcessCredentials=t5});var ty=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.isSsoProfile=void 0;var n5=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");bl.isSsoProfile=n5});var dO=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.resolveClientEndpointParameters=void 0;var r5=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});El.resolveClientEndpointParameters=r5});var lO=m((jve,o5)=>{o5.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var mO=m((Pl,uO)=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.isCrtAvailable=void 0;var s5=()=>{try{return typeof require=="function"&&typeof uO<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Pl.isCrtAvailable=s5});var pa=m(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.defaultUserAgent=jt.UA_APP_ID_INI_NAME=jt.UA_APP_ID_ENV_NAME=void 0;var i5=on(),pO=require("os"),ny=require("process"),a5=mO();jt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";jt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var c5=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,pO.platform)()}`,(0,pO.release)()],["lang/js"],["md/nodejs",`${ny.versions.node}`]],r=(0,a5.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),ny.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${ny.env.AWS_EXECUTION_ENV}`]);let o=(0,i5.loadConfig)({environmentVariableSelector:c=>c[jt.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[jt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let c=await o;s=c?[...t,[`app/${c}`]]:[...t]}return s}};jt.defaultUserAgent=c5});var fa=m((Gve,_O)=>{var vl=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l5=Object.getOwnPropertyNames,u5=Object.prototype.hasOwnProperty,yO=(e,n)=>vl(e,"name",{value:n,configurable:!0}),m5=(e,n)=>{for(var t in n)vl(e,t,{get:n[t],enumerable:!0})},p5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of l5(n))!u5.call(e,o)&&o!==t&&vl(e,o,{get:()=>n[o],enumerable:!(r=d5(n,o))||r.enumerable});return e},f5=e=>p5(vl({},"__esModule",{value:!0}),e),gO={};m5(gO,{Hash:()=>h5});_O.exports=f5(gO);var ry=Er(),y5=yt(),g5=require("buffer"),fO=require("crypto"),hO=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,y5.toUint8Array)(oy(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,fO.createHmac)(this.algorithmIdentifier,oy(this.secret)):(0,fO.createHash)(this.algorithmIdentifier)}};yO(hO,"Hash");var h5=hO;function oy(e,n){return g5.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ry.fromString)(e,n):ArrayBuffer.isView(e)?(0,ry.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ry.fromArrayBuffer)(e)}yO(oy,"castSourceData")});var ya=m((Hve,bO)=>{var wl=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,C5=Object.getOwnPropertyNames,S5=Object.prototype.hasOwnProperty,b5=(e,n)=>wl(e,"name",{value:n,configurable:!0}),E5=(e,n)=>{for(var t in n)wl(e,t,{get:n[t],enumerable:!0})},P5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C5(n))!S5.call(e,o)&&o!==t&&wl(e,o,{get:()=>n[o],enumerable:!(r=_5(n,o))||r.enumerable});return e},v5=e=>P5(wl({},"__esModule",{value:!0}),e),SO={};E5(SO,{calculateBodyLength:()=>w5});bO.exports=v5(SO);var CO=require("fs"),w5=b5(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,CO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,CO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var BO=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.ruleSet=void 0;var IO="required",un="fn",mn="argv",Yr="ref",EO="isSet",ln="tree",Wr="error",ga="endpoint",sy="PartitionResult",PO={[IO]:!1,type:"String"},vO={[IO]:!0,default:!1,type:"Boolean"},wO={[Yr]:"Endpoint"},RO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseFIPS"},!0]},TO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseDualStack"},!0]},zt={},xO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsFIPS"]}]},kO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsDualStack"]}]},AO=[RO],OO=[TO],NO=[{[Yr]:"Region"}],x5={version:"1.0",parameters:{Region:PO,UseDualStack:vO,UseFIPS:vO,Endpoint:PO},rules:[{conditions:[{[un]:EO,[mn]:[wO]}],type:ln,rules:[{conditions:AO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Wr},{conditions:OO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Wr},{endpoint:{url:wO,properties:zt,headers:zt},type:ga}]},{conditions:[{[un]:EO,[mn]:NO}],type:ln,rules:[{conditions:[{[un]:"aws.partition",[mn]:NO,assign:sy}],type:ln,rules:[{conditions:[RO,TO],type:ln,rules:[{conditions:[xO,kO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Wr}]},{conditions:AO,type:ln,rules:[{conditions:[xO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Wr}]},{conditions:OO,type:ln,rules:[{conditions:[kO],type:ln,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Wr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]}]},{error:"Invalid Configuration: Missing Region",type:Wr}]};xl.ruleSet=x5});var qO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.defaultEndpointResolver=void 0;var k5=jr(),A5=BO(),O5=(e,n={})=>(0,k5.resolveEndpoint)(A5.ruleSet,{endpointParams:e,logger:n.logger});kl.defaultEndpointResolver=O5});var FO=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.getRuntimeConfig=void 0;var N5=b(),I5=mr(),DO=Pr(),MO=yt(),R5=qO(),T5=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??DO.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??DO.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??R5.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new N5.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??I5.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??MO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??MO.toUtf8});Al.getRuntimeConfig=T5});var ha=m((Xve,HO)=>{var Ol=Object.defineProperty,B5=Object.getOwnPropertyDescriptor,q5=Object.getOwnPropertyNames,D5=Object.prototype.hasOwnProperty,iy=(e,n)=>Ol(e,"name",{value:n,configurable:!0}),M5=(e,n)=>{for(var t in n)Ol(e,t,{get:n[t],enumerable:!0})},F5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of q5(n))!D5.call(e,o)&&o!==t&&Ol(e,o,{get:()=>n[o],enumerable:!(r=B5(n,o))||r.enumerable});return e},L5=e=>F5(Ol({},"__esModule",{value:!0}),e),GO={};M5(GO,{resolveDefaultsModeConfig:()=>W5});HO.exports=L5(GO);var j5=Mt(),LO=gl(),jO=on(),z5=xe(),U5="AWS_EXECUTION_ENV",zO="AWS_REGION",UO="AWS_DEFAULT_REGION",G5="AWS_EC2_METADATA_DISABLED",H5=["in-region","cross-region","mobile","standard","legacy"],$5="/latest/meta-data/placement/region",K5="AWS_DEFAULTS_MODE",V5="defaults_mode",X5={environmentVariableSelector:e=>e[K5],configFileSelector:e=>e[V5],default:"legacy"},W5=iy(({region:e=(0,jO.loadConfig)(j5.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,jO.loadConfig)(X5)}={})=>(0,z5.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return Y5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${H5.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),Y5=iy(async e=>{if(e){let n=typeof e=="function"?await e():e,t=await J5();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),J5=iy(async()=>{if(process.env[U5]&&(process.env[zO]||process.env[UO]))return process.env[zO]??process.env[UO];if(!process.env[G5])try{let e=await(0,LO.getInstanceMetadataEndpoint)();return(await(0,LO.httpRequest)({...e,path:$5})).toString()}catch{}},"inferPhysicalRegion")});var VO=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.getRuntimeConfig=void 0;var Q5=(te(),Y(ee)),Z5=Q5.__importDefault(lO()),e9=pa(),Nl=Mt(),t9=fa(),$O=sn(),_a=on(),KO=vr(),n9=ya(),r9=zr(),o9=FO(),s9=b(),i9=ha(),a9=b(),c9=e=>{(0,a9.emitWarningIfUnsupportedVersion)(process.version);let n=(0,i9.resolveDefaultsModeConfig)(e),t=()=>n().then(s9.loadConfigsForDefaultMode),r=(0,o9.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??n9.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,e9.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Z5.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,_a.loadConfig)($O.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,_a.loadConfig)(Nl.NODE_REGION_CONFIG_OPTIONS,Nl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new KO.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,_a.loadConfig)({...$O.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||r9.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??t9.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??KO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,_a.loadConfig)(Nl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,_a.loadConfig)(Nl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Il.getRuntimeConfig=c9});var XO=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.resolveAwsRegionExtensionConfiguration=Jr.getAwsRegionExtensionConfiguration=void 0;var d9=e=>{let n=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let t=e.region;return typeof t=="string"?t:t()};return{setRegion(t){n=t},region(){return n}}};Jr.getAwsRegionExtensionConfiguration=d9;var l9=e=>({region:e.region()});Jr.resolveAwsRegionExtensionConfiguration=l9});var WO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var ay=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.isFipsRegion=void 0;var u9=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Rl.isFipsRegion=u9});var YO=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.getRealRegion=void 0;var m9=ay(),p9=e=>(0,m9.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Tl.getRealRegion=p9});var QO=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.resolveRegionConfig=void 0;var JO=YO(),f9=ay(),y9=e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return(0,JO.getRealRegion)(n);let r=await n();return(0,JO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,f9.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Bl.resolveRegionConfig=y9});var eN=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var ZO=(te(),Y(ee));ZO.__exportStar(WO(),ql);ZO.__exportStar(QO(),ql)});var Ml=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var tN=(te(),Y(ee));tN.__exportStar(XO(),Dl);tN.__exportStar(eN(),Dl)});var sN=m(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.resolveRuntimeExtensions=void 0;var nN=Ml(),rN=Ne(),oN=b(),cy=e=>e,g9=(e,n)=>{let t={...cy((0,nN.getAwsRegionExtensionConfiguration)(e)),...cy((0,oN.getDefaultExtensionConfiguration)(e)),...cy((0,rN.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,nN.resolveAwsRegionExtensionConfiguration)(t),...(0,oN.resolveDefaultRuntimeConfig)(t),...(0,rN.resolveHttpHandlerRuntimeConfig)(t)}};Fl.resolveRuntimeExtensions=g9});var Ca=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOClient=Qr.__Client=void 0;var iN=Ni(),h9=Ii(),_9=Ri(),aN=Ji(),C9=Mt(),S9=Qi(),b9=x(),cN=sn(),dN=b();Object.defineProperty(Qr,"__Client",{enumerable:!0,get:function(){return dN.Client}});var E9=dO(),P9=VO(),v9=sN(),dy=class extends dN.Client{constructor(...[n]){let t=(0,P9.getRuntimeConfig)(n||{}),r=(0,E9.resolveClientEndpointParameters)(t),o=(0,C9.resolveRegionConfig)(r),s=(0,b9.resolveEndpointConfig)(o),c=(0,cN.resolveRetryConfig)(s),i=(0,iN.resolveHostHeaderConfig)(c),u=(0,aN.resolveUserAgentConfig)(i),l=(0,v9.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,cN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,S9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,iN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,h9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,_9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,aN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Qr.SSOClient=dy});var Ll=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SSOServiceException=Zr.__ServiceException=void 0;var lN=b();Object.defineProperty(Zr,"__ServiceException",{enumerable:!0,get:function(){return lN.ServiceException}});var ly=class e extends lN.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Zr.SSOServiceException=ly});var fr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var eo=b(),jl=Ll(),uy=class e extends jl.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=uy;var my=class e extends jl.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=my;var py=class e extends jl.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=py;var fy=class e extends jl.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=fy;var w9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=w9;var x9=e=>({...e,...e.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:eo.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=x9;var k9=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=k9;var A9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=A9;var O9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=O9;var N9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=N9});var Sa=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.de_LogoutCommand=ze.de_ListAccountsCommand=ze.de_ListAccountRolesCommand=ze.de_GetRoleCredentialsCommand=ze.se_LogoutCommand=ze.se_ListAccountsCommand=ze.se_ListAccountRolesCommand=ze.se_GetRoleCredentialsCommand=void 0;var zl=Ne(),J=b(),Ul=fr(),I9=Ll(),R9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,J.map)({role_name:[,(0,J.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_GetRoleCredentialsCommand=R9;var T9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountRolesCommand=T9;var B9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountsCommand=B9;var q9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})};ze.se_LogoutCommand=q9;var D9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return M9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{roleCredentials:J._json});return Object.assign(t,o),t};ze.de_GetRoleCredentialsCommand=D9;var M9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},F9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return L9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{nextToken:J.expectString,roleList:J._json});return Object.assign(t,o),t};ze.de_ListAccountRolesCommand=F9;var L9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},j9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return z9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{accountList:J._json,nextToken:J.expectString});return Object.assign(t,o),t};ze.de_ListAccountsCommand=j9;var z9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},U9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return G9(e,n);let t=(0,J.map)({$metadata:$n(e)});return await(0,J.collectBody)(e.body,n),t};ze.de_LogoutCommand=U9;var G9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},Gl=(0,J.withBaseException)(I9.SSOServiceException),Hl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.InvalidRequestException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},yy=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.ResourceNotFoundException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$l=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.TooManyRequestsException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},Kl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.UnauthorizedException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$n=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),H9=(e,n)=>(0,J.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Vl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Xl=(e,n)=>H9(e,n).then(t=>t.length?JSON.parse(t):{}),Wl=async(e,n)=>{let t=await Xl(e,n);return t.message=t.message??t.Message,t},Yl=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var hy=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.GetRoleCredentialsCommand=to.$Command=void 0;var $9=x(),K9=k(),pN=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return pN.Command}});var V9=w(),uN=fr(),mN=Sa(),gy=class e extends pN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,K9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:uN.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:uN.GetRoleCredentialsResponseFilterSensitiveLog,[V9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mN.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,mN.de_GetRoleCredentialsCommand)(n,t)}};to.GetRoleCredentialsCommand=gy});var Jl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountRolesCommand=no.$Command=void 0;var X9=x(),W9=k(),yN=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return yN.Command}});var Y9=w(),J9=fr(),fN=Sa(),_y=class e extends yN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,W9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,X9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:J9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Y9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fN.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,fN.de_ListAccountRolesCommand)(n,t)}};no.ListAccountRolesCommand=_y});var Ql=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ListAccountsCommand=ro.$Command=void 0;var Q9=x(),Z9=k(),hN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return hN.Command}});var eY=w(),tY=fr(),gN=Sa(),Cy=class e extends hN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Z9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Q9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:tY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[eY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gN.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,gN.de_ListAccountsCommand)(n,t)}};ro.ListAccountsCommand=Cy});var by=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogoutCommand=oo.$Command=void 0;var nY=x(),rY=k(),CN=b();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return CN.Command}});var oY=w(),sY=fr(),_N=Sa(),Sy=class e extends CN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:sY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[oY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_N.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,_N.de_LogoutCommand)(n,t)}};oo.LogoutCommand=Sy});var SN=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.SSO=void 0;var iY=b(),aY=hy(),cY=Jl(),dY=Ql(),lY=by(),uY=Ca(),mY={GetRoleCredentialsCommand:aY.GetRoleCredentialsCommand,ListAccountRolesCommand:cY.ListAccountRolesCommand,ListAccountsCommand:dY.ListAccountsCommand,LogoutCommand:lY.LogoutCommand},Zl=class extends uY.SSOClient{};eu.SSO=Zl;(0,iY.createAggregatedClient)(mY,Zl)});var bN=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var tu=(te(),Y(ee));tu.__exportStar(hy(),so);tu.__exportStar(Jl(),so);tu.__exportStar(Ql(),so);tu.__exportStar(by(),so)});var PN=m(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0})});var vN=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.paginateListAccountRoles=void 0;var pY=Jl(),fY=Ca(),yY=async(e,n,...t)=>await e.send(new pY.ListAccountRolesCommand(n),...t);async function*gY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof fY.SSOClient)s=await yY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}nu.paginateListAccountRoles=gY});var wN=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.paginateListAccounts=void 0;var hY=Ql(),_Y=Ca(),CY=async(e,n,...t)=>await e.send(new hY.ListAccountsCommand(n),...t);async function*SY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof _Y.SSOClient)s=await CY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}ru.paginateListAccounts=SY});var xN=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Ey=(te(),Y(ee));Ey.__exportStar(PN(),ba);Ey.__exportStar(vN(),ba);Ey.__exportStar(wN(),ba)});var kN=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var bY=(te(),Y(ee));bY.__exportStar(fr(),Py)});var AN=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.SSOServiceException=void 0;var Ea=(te(),Y(ee));Ea.__exportStar(Ca(),pn);Ea.__exportStar(SN(),pn);Ea.__exportStar(bN(),pn);Ea.__exportStar(xN(),pn);Ea.__exportStar(kN(),pn);var EY=Ll();Object.defineProperty(pn,"SSOServiceException",{enumerable:!0,get:function(){return EY.SSOServiceException}})});var iu=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var ON=Ni(),PY=Ii(),vY=Ri(),NN=Ji(),wY=Mt(),xY=Qi(),kY=x(),IN=sn(),AY=b(),OY=e=>{var n,t;return{...e,useDualstackEndpoint:(n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1,useFipsEndpoint:(t=e.useFipsEndpoint)!==null&&t!==void 0?t:!1,defaultSigningName:"awsssooidc"}},NY={version:"3.387.0"},IY=pa(),ou=Mt(),RY=fa(),RN=sn(),Pa=on(),TN=vr(),TY=ya(),BY=zr(),qY=b(),DY=mr(),BN=Pr(),qN=yt(),MY=jr(),GN="required",fn="fn",yn="argv",io="ref",vy="PartitionResult",Ut="tree",va="error",wa="endpoint",DN={[GN]:!1,type:"String"},MN={[GN]:!0,default:!1,type:"Boolean"},HN={[io]:"Endpoint"},$N={[fn]:"booleanEquals",[yn]:[{[io]:"UseFIPS"},!0]},KN={[fn]:"booleanEquals",[yn]:[{[io]:"UseDualStack"},!0]},Gt={},FN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsFIPS"]}]},LN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsDualStack"]}]},jN=[HN],zN=[$N],UN=[KN],FY={version:"1.0",parameters:{Region:DN,UseDualStack:MN,UseFIPS:MN,Endpoint:DN},rules:[{conditions:[{[fn]:"aws.partition",[yn]:[{[io]:"Region"}],assign:vy}],type:Ut,rules:[{conditions:[{[fn]:"isSet",[yn]:jN},{[fn]:"parseURL",[yn]:jN,assign:"url"}],type:Ut,rules:[{conditions:zN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:va},{type:Ut,rules:[{conditions:UN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:va},{endpoint:{url:HN,properties:Gt,headers:Gt},type:wa}]}]},{conditions:[$N,KN],type:Ut,rules:[{conditions:[FN,LN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:wa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:va}]},{conditions:zN,type:Ut,rules:[{conditions:[FN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:wa}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:va}]},{conditions:UN,type:Ut,rules:[{conditions:[LN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:wa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:va}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:wa}]}]},LY=FY,jY=(e,n={})=>(0,MY.resolveEndpoint)(LY,{endpointParams:e,logger:n.logger}),zY=e=>{var n,t,r,o,s,c,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:BN.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:BN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:jY,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new qY.NoOpLogger,serviceId:(c=e==null?void 0:e.serviceId)!==null&&c!==void 0?c:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:DY.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:qN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:qN.toUtf8}},UY=b(),GY=ha(),HY=b(),$Y=e=>{var n,t,r,o,s,c,i,u,l,a;(0,HY.emitWarningIfUnsupportedVersion)(process.version);let y=(0,GY.resolveDefaultsModeConfig)(e),g=()=>y().then(UY.loadConfigsForDefaultMode),C=zY(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:TY.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,IY.defaultUserAgent)({serviceId:C.serviceId,clientVersion:NY.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,Pa.loadConfig)(RN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Pa.loadConfig)(ou.NODE_REGION_CONFIG_OPTIONS,ou.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new TN.NodeHttpHandler(g),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Pa.loadConfig)({...RN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||BY.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:RY.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:TN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,Pa.loadConfig)(ou.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(a=e==null?void 0:e.useFipsEndpoint)!==null&&a!==void 0?a:(0,Pa.loadConfig)(ou.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},VN=class extends AY.Client{constructor(...[e]){let n=$Y(e||{}),t=OY(n),r=(0,wY.resolveRegionConfig)(t),o=(0,kY.resolveEndpointConfig)(r),s=(0,IN.resolveRetryConfig)(o),c=(0,ON.resolveHostHeaderConfig)(s),i=(0,NN.resolveUserAgentConfig)(c);super(i),this.config=i,this.middlewareStack.use((0,IN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,xY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ON.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,PY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,vY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,NN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=VN;var KY=b(),VY=x(),XY=k(),WY=b(),wy=Ne(),R=b(),YY=b(),lt=class XN extends YY.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,XN.prototype)}},WN=class YN extends lt{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,YN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AccessDeniedException=WN;var JN=class QN extends lt{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AuthorizationPendingException=JN;var ZN=class eI extends lt{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.error=n.error,this.error_description=n.error_description}};he.ExpiredTokenException=ZN;var tI=class nI extends lt{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,nI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InternalServerException=tI;var rI=class oI extends lt{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,oI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidClientException=rI;var JY=class sI extends lt{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype),this.error=n.error,this.error_description=n.error_description}},iI=class aI extends lt{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidRequestException=iI;var cI=class dI extends lt{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidScopeException=cI;var lI=class uI extends lt{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.error=n.error,this.error_description=n.error_description}};he.SlowDownException=lI;var mI=class pI extends lt{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnauthorizedClientException=mI;var fI=class yI extends lt{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,yI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnsupportedGrantTypeException=fI;var QY=class gI extends lt{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.error=n.error,this.error_description=n.error_description}},ZY=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},e7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},t7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},n7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return r7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(t,o),t},r7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await c7(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await d7(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await l7(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await m7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await p7(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},o7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return s7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(t,o),t},s7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await u7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},i7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return a7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(t,o),t},a7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},xy=(0,R.withBaseException)(lt),c7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new WN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},d7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},l7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},ky=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new tI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},hI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new rI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},u7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new QY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},m7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Ay=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new iI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},_I=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new cI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},CI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new lI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},SI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new mI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},p7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new fI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var n,t;return{httpStatusCode:e.statusCode,requestId:(t=(n=e.headers["x-amzn-requestid"])!==null&&n!==void 0?n:e.headers["x-amzn-request-id"])!==null&&t!==void 0?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},f7=(e,n)=>(0,R.collectBody)(e,n).then(t=>n.utf8Encoder(t)),su=(e,n)=>f7(e,n).then(t=>t.length?JSON.parse(t):{}),Oy=async(e,n)=>{var t;let r=await su(e,n);return r.message=(t=r.message)!==null&&t!==void 0?t:r.Message,r},Ny=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)},bI=class EI extends WY.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,XY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,VY.getEndpointPlugin)(t,EI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return ZY(n,t)}deserialize(n,t){return n7(n,t)}};he.CreateTokenCommand=bI;var y7=x(),g7=k(),h7=b(),_7=class PI extends h7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,g7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,y7.getEndpointPlugin)(t,PI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return e7(n,t)}deserialize(n,t){return o7(n,t)}},C7=x(),S7=k(),b7=b(),E7=class vI extends b7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,S7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,C7.getEndpointPlugin)(t,vI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return t7(n,t)}deserialize(n,t){return i7(n,t)}},P7={CreateTokenCommand:bI,RegisterClientCommand:_7,StartDeviceAuthorizationCommand:E7},v7=class extends VN{};(0,KY.createAggregatedClient)(P7,v7)});var au=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.REFRESH_MESSAGE=ao.EXPIRE_WINDOW_MS=void 0;ao.EXPIRE_WINDOW_MS=5*60*1e3;ao.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var wI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.getSsoOidcClient=void 0;var w7=iu(),Iy={},x7=e=>{if(Iy[e])return Iy[e];let n=new w7.SSOOIDCClient({region:e});return Iy[e]=n,n};cu.getSsoOidcClient=x7});var xI=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.getNewSsoOidcToken=void 0;var k7=iu(),A7=wI(),O7=(e,n)=>(0,A7.getSsoOidcClient)(n).send(new k7.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));du.getNewSsoOidcToken=O7});var kI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateTokenExpiry=void 0;var N7=xe(),I7=au(),R7=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateTokenKey=void 0;var T7=xe(),B7=au(),q7=(e,n,t=!1)=>{if(typeof n>"u")throw new T7.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${B7.REFRESH_MESSAGE}`,!1)};uu.validateTokenKey=q7});var OI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.writeSSOTokenToFile=void 0;var D7=wt(),M7=require("fs"),{writeFile:F7}=M7.promises,L7=(e,n)=>{let t=(0,D7.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return F7(t,r)};mu.writeSSOTokenToFile=L7});var Ry=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.fromSso=void 0;var xa=xe(),pu=wt(),NI=au(),j7=xI(),II=kI(),yr=AI(),z7=OI(),RI=new Date(0),U7=(e={})=>async()=>{let n=await(0,pu.parseKnownFiles)(e),t=(0,pu.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new xa.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new xa.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let o=r.sso_session,c=(await(0,pu.loadSsoSessionData)(e))[o];if(!c)throw new xa.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!c[C])throw new xa.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,pu.getSSOTokenFromFile)(o)}catch{throw new xa.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${NI.REFRESH_MESSAGE}`,!1)}(0,yr.validateTokenKey)("accessToken",l.accessToken),(0,yr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:y}=l,g={token:a,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>NI.EXPIRE_WINDOW_MS)return g;if(Date.now()-RI.getTime()<30*1e3)return(0,II.validateTokenExpiry)(g),g;(0,yr.validateTokenKey)("clientId",l.clientId,!0),(0,yr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,yr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{RI.setTime(Date.now());let C=await(0,j7.getNewSsoOidcToken)(l,u);(0,yr.validateTokenKey)("accessToken",C.accessToken),(0,yr.validateTokenKey)("expiresIn",C.expiresIn);let v=new Date(Date.now()+C.expiresIn*1e3);try{await(0,z7.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:v.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:v}}catch{return(0,II.validateTokenExpiry)(g),g}};fu.fromSso=U7});var TI=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromStatic=void 0;var G7=xe(),H7=({token:e})=>async()=>{if(!e||!e.token)throw new G7.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};yu.fromStatic=H7});var BI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.nodeProvider=void 0;var Ty=xe(),$7=Ry(),K7=(e={})=>(0,Ty.memoize)((0,Ty.chain)((0,$7.fromSso)(e),async()=>{throw new Ty.TokenProviderError("Could not load token from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);gu.nodeProvider=K7});var qI=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var hu=(te(),Y(ee));hu.__exportStar(iu(),co);hu.__exportStar(Ry(),co);hu.__exportStar(TI(),co);hu.__exportStar(BI(),co)});var MI=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.resolveSSOCredentials=void 0;var DI=AN(),V7=qI(),ka=xe(),X7=wt(),Aa=!1,W7=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let E=await(0,V7.fromSso)({profile:c})();i={accessToken:E.token,expiresAt:new Date(E.expiration).toISOString()}}catch(E){throw new ka.CredentialsProviderError(E.message,Aa)}else try{i=await(0,X7.getSSOTokenFromFile)(e)}catch{throw new ka.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Aa)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new ka.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Aa);let{accessToken:l}=i,a=s||new DI.SSOClient({region:r}),y;try{y=await a.send(new DI.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(E){throw ka.CredentialsProviderError.from(E,Aa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:A}={}}=y;if(!g||!C||!v||!A)throw new ka.CredentialsProviderError("SSO returns an invalid temporary credential.",Aa);return{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:new Date(A)}};_u.resolveSSOCredentials=W7});var By=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.validateSsoProfile=void 0;var Y7=xe(),J7=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:o}=e;if(!n||!t||!r||!o)throw new Y7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Cu.validateSsoProfile=J7});var LI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromSSO=void 0;var Oa=xe(),qy=wt(),Q7=ty(),FI=MI(),Z7=By(),eJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,qy.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,qy.parseKnownFiles)(e))[i];if(!l)throw new Oa.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,Q7.isSsoProfile)(l))throw new Oa.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let E=(await(0,qy.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==E.sso_region)throw new Oa.CredentialsProviderError("Conflicting SSO region"+G,!1);if(n&&n!==E.sso_start_url)throw new Oa.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=E.sso_region,l.sso_start_url=E.sso_start_url}let{sso_start_url:a,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:v}=(0,Z7.validateSsoProfile)(l);return(0,FI.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:v,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Oa.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,FI.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};Su.fromSSO=eJ});var zI=m(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0})});var Eu=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var bu=(te(),Y(ee));bu.__exportStar(LI(),lo);bu.__exportStar(ty(),lo);bu.__exportStar(zI(),lo);bu.__exportStar(By(),lo)});var GI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveSsoCredentials=uo.isSsoProfile=void 0;var UI=Eu(),tJ=Eu();Object.defineProperty(uo,"isSsoProfile",{enumerable:!0,get:function(){return tJ.isSsoProfile}});var nJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,UI.validateSsoProfile)(e);return(0,UI.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};uo.resolveSsoCredentials=nJ});var HI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveStaticCredentials=mo.isStaticCredsProfile=void 0;var rJ=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;mo.isStaticCredsProfile=rJ;var oJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});mo.resolveStaticCredentials=oJ});var Dy=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.fromWebToken=void 0;var sJ=xe(),iJ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new sJ.CredentialsProviderError(`Role Arn '${n}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:n,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:c,DurationSeconds:i})};Pu.fromWebToken=iJ});var $I=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.fromTokenFile=void 0;var aJ=xe(),cJ=require("fs"),dJ=Dy(),lJ="AWS_WEB_IDENTITY_TOKEN_FILE",uJ="AWS_ROLE_ARN",mJ="AWS_ROLE_SESSION_NAME",pJ=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[lJ],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[uJ],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[mJ];if(!o||!s)throw new aJ.CredentialsProviderError("Web identity configuration not specified");return(0,dJ.fromWebToken)({...e,webIdentityToken:(0,cJ.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};vu.fromTokenFile=pJ});var My=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var KI=(te(),Y(ee));KI.__exportStar($I(),wu);KI.__exportStar(Dy(),wu)});var VI=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.resolveWebIdentityCredentials=po.isWebIdentityProfile=void 0;var fJ=My(),yJ=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;po.isWebIdentityProfile=yJ;var gJ=async(e,n)=>(0,fJ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();po.resolveWebIdentityCredentials=gJ});var Jf=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.resolveProfileData=void 0;var hJ=xe(),XI=rO(),WI=cO(),YI=GI(),xu=HI(),JI=VI(),_J=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,XI.isAssumeRoleProfile)(o))return(0,XI.resolveAssumeRoleCredentials)(e,n,t,r);if((0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,JI.isWebIdentityProfile)(o))return(0,JI.resolveWebIdentityCredentials)(o,t);if((0,WI.isProcessProfile)(o))return(0,WI.resolveProcessCredentials)(t,e);if((0,YI.isSsoProfile)(o))return(0,YI.resolveSsoCredentials)(o);throw new hJ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ku.resolveProfileData=_J});var ZI=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.fromIni=void 0;var QI=wt(),CJ=Jf(),SJ=(e={})=>async()=>{let n=await(0,QI.parseKnownFiles)(e);return(0,CJ.resolveProfileData)((0,QI.getProfileName)(e),n,e)};Au.fromIni=SJ});var eR=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var bJ=(te(),Y(ee));bJ.__exportStar(ZI(),Fy)});var tR=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.remoteProvider=gr.ENV_IMDS_DISABLED=void 0;var Ou=gl(),EJ=xe();gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var PJ=e=>process.env[Ou.ENV_CMDS_RELATIVE_URI]||process.env[Ou.ENV_CMDS_FULL_URI]?(0,Ou.fromContainerMetadata)(e):process.env[gr.ENV_IMDS_DISABLED]?async()=>{throw new EJ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Ou.fromInstanceMetadata)(e);gr.remoteProvider=PJ});var nR=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.defaultProvider=void 0;var vJ=Hf(),wJ=eR(),xJ=ey(),kJ=Eu(),AJ=My(),Ly=xe(),OJ=wt(),NJ=tR(),IJ=(e={})=>(0,Ly.memoize)((0,Ly.chain)(...e.profile||process.env[OJ.ENV_PROFILE]?[]:[(0,vJ.fromEnv)()],(0,kJ.fromSSO)(e),(0,wJ.fromIni)(e),(0,xJ.fromProcess)(e),(0,AJ.fromTokenFile)(e),(0,NJ.remoteProvider)(e),async()=>{throw new Ly.CredentialsProviderError("Could not load credentials from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);Nu.defaultProvider=IJ});var zy=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var RJ=(te(),Y(ee));RJ.__exportStar(nR(),jy)});var vR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.ruleSet=void 0;var fR="required",oe="type",pe="fn",fe="argv",Kn="ref",rR=!1,TJ=!0,hr="booleanEquals",Ht="tree",Ve="stringEquals",yR="sigv4",gR="sts",hR="us-east-1",Ee="endpoint",oR="https://sts.{Region}.{PartitionResult#dnsSuffix}",fo="error",Gy="getAttr",sR={[fR]:!1,[oe]:"String"},Uy={[fR]:!0,default:!1,[oe]:"Boolean"},_R={[Kn]:"Endpoint"},iR={[pe]:"isSet",[fe]:[{[Kn]:"Region"}]},Xe={[Kn]:"Region"},aR={[pe]:"aws.partition",[fe]:[Xe],assign:"PartitionResult"},CR={[Kn]:"UseFIPS"},SR={[Kn]:"UseDualStack"},et={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:hR}]},headers:{}},ut={},cR={conditions:[{[pe]:Ve,[fe]:[Xe,"aws-global"]}],[Ee]:et,[oe]:Ee},bR={[pe]:hr,[fe]:[CR,!0]},ER={[pe]:hr,[fe]:[SR,!0]},dR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[{[Kn]:"PartitionResult"},"supportsFIPS"]}]},PR={[Kn]:"PartitionResult"},lR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[PR,"supportsDualStack"]}]},uR=[{[pe]:"isSet",[fe]:[_R]}],mR=[bR],pR=[ER],BJ={version:"1.0",parameters:{Region:sR,UseDualStack:Uy,UseFIPS:Uy,Endpoint:sR,UseGlobalEndpoint:Uy},rules:[{conditions:[{[pe]:hr,[fe]:[{[Kn]:"UseGlobalEndpoint"},TJ]},{[pe]:"not",[fe]:uR},iR,aR,{[pe]:hr,[fe]:[CR,rR]},{[pe]:hr,[fe]:[SR,rR]}],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-northeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-south-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-2"]}],endpoint:et,[oe]:Ee},cR,{conditions:[{[pe]:Ve,[fe]:[Xe,"ca-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-north-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-3"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"sa-east-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,hR]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-east-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-2"]}],endpoint:et,[oe]:Ee},{endpoint:{url:oR,properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:"{Region}"}]},headers:ut},[oe]:Ee}]},{conditions:uR,[oe]:Ht,rules:[{conditions:mR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[oe]:fo},{conditions:pR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[oe]:fo},{endpoint:{url:_R,properties:ut,headers:ut},[oe]:Ee}]},{conditions:[iR],[oe]:Ht,rules:[{conditions:[aR],[oe]:Ht,rules:[{conditions:[bR,ER],[oe]:Ht,rules:[{conditions:[dR,lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[oe]:fo}]},{conditions:mR,[oe]:Ht,rules:[{conditions:[dR],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:["aws-us-gov",{[pe]:Gy,[fe]:[PR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ut,headers:ut},[oe]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[oe]:fo}]},{conditions:pR,[oe]:Ht,rules:[{conditions:[lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[oe]:fo}]},cR,{endpoint:{url:oR,properties:ut,headers:ut},[oe]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[oe]:fo}]};Iu.ruleSet=BJ});var wR=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.defaultEndpointResolver=void 0;var qJ=jr(),DJ=vR(),MJ=(e,n={})=>(0,qJ.resolveEndpoint)(DJ.ruleSet,{endpointParams:e,logger:n.logger});Ru.defaultEndpointResolver=MJ});var AR=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getRuntimeConfig=void 0;var FJ=b(),LJ=mr(),xR=Pr(),kR=yt(),jJ=wR(),zJ=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??xR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??xR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??jJ.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new FJ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??LJ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??kR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??kR.toUtf8});Tu.getRuntimeConfig=zJ});var IR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getRuntimeConfig=void 0;var UJ=(te(),Y(ee)),GJ=UJ.__importDefault(Qk()),HJ=Uf(),$J=zy(),KJ=pa(),Bu=Mt(),VJ=fa(),OR=sn(),Na=on(),NR=vr(),XJ=ya(),WJ=zr(),YJ=AR(),JJ=b(),QJ=ha(),ZJ=b(),eQ=e=>{(0,ZJ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,QJ.resolveDefaultsModeConfig)(e),t=()=>n().then(JJ.loadConfigsForDefaultMode),r=(0,YJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??XJ.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,HJ.decorateDefaultCredentialProvider)($J.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,KJ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:GJ.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Na.loadConfig)(OR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Na.loadConfig)(Bu.NODE_REGION_CONFIG_OPTIONS,Bu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new NR.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Na.loadConfig)({...OR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||WJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??VJ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??NR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Na.loadConfig)(Bu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Na.loadConfig)(Bu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};qu.getRuntimeConfig=eQ});var qR=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.resolveRuntimeExtensions=void 0;var RR=Ml(),TR=Ne(),BR=b(),Hy=e=>e,tQ=(e,n)=>{let t={...Hy((0,RR.getAwsRegionExtensionConfiguration)(e)),...Hy((0,BR.getDefaultExtensionConfiguration)(e)),...Hy((0,TR.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,RR.resolveAwsRegionExtensionConfiguration)(t),...(0,BR.resolveDefaultRuntimeConfig)(t),...(0,TR.resolveHttpHandlerRuntimeConfig)(t)}};Du.resolveRuntimeExtensions=tQ});var Mu=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.STSClient=yo.__Client=void 0;var DR=Ni(),nQ=Ii(),rQ=Ri(),oQ=Yk(),MR=Ji(),sQ=Mt(),iQ=Qi(),aQ=x(),FR=sn(),LR=b();Object.defineProperty(yo,"__Client",{enumerable:!0,get:function(){return LR.Client}});var cQ=Jk(),dQ=IR(),lQ=qR(),$y=class e extends LR.Client{constructor(...[n]){let t=(0,dQ.getRuntimeConfig)(n||{}),r=(0,cQ.resolveClientEndpointParameters)(t),o=(0,sQ.resolveRegionConfig)(r),s=(0,aQ.resolveEndpointConfig)(o),c=(0,FR.resolveRetryConfig)(s),i=(0,DR.resolveHostHeaderConfig)(c),u=(0,oQ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,MR.resolveUserAgentConfig)(u),a=(0,lQ.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,FR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,iQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,DR.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,nQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,rQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,MR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yo.STSClient=$y});var Vy=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.AssumeRoleWithSAMLCommand=go.$Command=void 0;var uQ=x(),mQ=k(),UR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return UR.Command}});var pQ=w(),jR=Dn(),zR=dn(),Ky=class e extends UR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:jR.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:jR.AssumeRoleWithSAMLResponseFilterSensitiveLog,[pQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zR.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,zR.de_AssumeRoleWithSAMLCommand)(n,t)}};go.AssumeRoleWithSAMLCommand=Ky});var Wy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DecodeAuthorizationMessageCommand=ho.$Command=void 0;var fQ=rn(),yQ=x(),gQ=k(),HR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return HR.Command}});var hQ=w(),GR=dn(),Xy=class e extends HR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GR.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,GR.de_DecodeAuthorizationMessageCommand)(n,t)}};ho.DecodeAuthorizationMessageCommand=Xy});var Jy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetAccessKeyInfoCommand=_o.$Command=void 0;var _Q=rn(),CQ=x(),SQ=k(),KR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return KR.Command}});var bQ=w(),$R=dn(),Yy=class e extends KR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,SQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,CQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_Q.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$R.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,$R.de_GetAccessKeyInfoCommand)(n,t)}};_o.GetAccessKeyInfoCommand=Yy});var Zy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetCallerIdentityCommand=Co.$Command=void 0;var EQ=rn(),PQ=x(),vQ=k(),XR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return XR.Command}});var wQ=w(),VR=dn(),Qy=class e extends XR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,PQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,EQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VR.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,VR.de_GetCallerIdentityCommand)(n,t)}};Co.GetCallerIdentityCommand=Qy});var tg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetFederationTokenCommand=So.$Command=void 0;var xQ=rn(),kQ=x(),AQ=k(),YR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return YR.Command}});var OQ=w(),NQ=Dn(),WR=dn(),eg=class e extends YR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,AQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:NQ.GetFederationTokenResponseFilterSensitiveLog,[OQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WR.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,WR.de_GetFederationTokenCommand)(n,t)}};So.GetFederationTokenCommand=eg});var rg=m(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.GetSessionTokenCommand=bo.$Command=void 0;var IQ=rn(),RQ=x(),TQ=k(),QR=b();Object.defineProperty(bo,"$Command",{enumerable:!0,get:function(){return QR.Command}});var BQ=w(),qQ=Dn(),JR=dn(),ng=class e extends QR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,TQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,RQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,IQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:qQ.GetSessionTokenResponseFilterSensitiveLog,[BQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JR.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,JR.de_GetSessionTokenCommand)(n,t)}};bo.GetSessionTokenCommand=ng});var ZR=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.STS=void 0;var DQ=b(),MQ=ul(),FQ=Vy(),LQ=ml(),jQ=Wy(),zQ=Jy(),UQ=Zy(),GQ=tg(),HQ=rg(),$Q=Mu(),KQ={AssumeRoleCommand:MQ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:FQ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:LQ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:jQ.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:zQ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:UQ.GetCallerIdentityCommand,GetFederationTokenCommand:GQ.GetFederationTokenCommand,GetSessionTokenCommand:HQ.GetSessionTokenCommand},Fu=class extends $Q.STSClient{};Lu.STS=Fu;(0,DQ.createAggregatedClient)(KQ,Fu)});var eT=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var Vn=(te(),Y(ee));Vn.__exportStar(ul(),$t);Vn.__exportStar(Vy(),$t);Vn.__exportStar(ml(),$t);Vn.__exportStar(Wy(),$t);Vn.__exportStar(Jy(),$t);Vn.__exportStar(Zy(),$t);Vn.__exportStar(tg(),$t);Vn.__exportStar(rg(),$t)});var tT=m(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var VQ=(te(),Y(ee));VQ.__exportStar(Dn(),og)});var sT=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.decorateDefaultCredentialProvider=Kt.getDefaultRoleAssumerWithWebIdentity=Kt.getDefaultRoleAssumer=void 0;var nT=Uf(),rT=Mu(),oT=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,XQ=(e={},n)=>(0,nT.getDefaultRoleAssumer)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumer=XQ;var WQ=(e={},n)=>(0,nT.getDefaultRoleAssumerWithWebIdentity)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumerWithWebIdentity=WQ;var YQ=e=>n=>e({roleAssumer:(0,Kt.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,Kt.getDefaultRoleAssumerWithWebIdentity)(n),...n});Kt.decorateDefaultCredentialProvider=YQ});var iT=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.STSServiceException=void 0;var Ia=(te(),Y(ee));Ia.__exportStar(Mu(),gn);Ia.__exportStar(ZR(),gn);Ia.__exportStar(eT(),gn);Ia.__exportStar(tT(),gn);Ia.__exportStar(sT(),gn);var JQ=il();Object.defineProperty(gn,"STSServiceException",{enumerable:!0,get:function(){return JQ.STSServiceException}})});var aT=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var ju=Nd();Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,ju.SelectorType.ENV),configFileSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,ju.SelectorType.CONFIG),default:!1}});var cT=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Xt.NODE_USE_ARN_REGION_INI_NAME=Xt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var zu=Nd();Xt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Xt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_ENV_NAME,zu.SelectorType.ENV),configFileSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_INI_NAME,zu.SelectorType.CONFIG),default:!1}});var ag=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.validateMrapAlias=Z.validateNoFIPS=Z.validateNoDualstack=Z.getArnResources=Z.validateCustomEndpoint=Z.validateDNSHostLabel=Z.validateAccountId=Z.validateRegionalClient=Z.validateRegion=Z.validatePartition=Z.validateOutpostService=Z.validateS3Service=Z.validateService=Z.validateArnEndpointOptions=Z.getSuffixForArnEndpoint=Z.getSuffix=Z.isDnsCompatibleBucketName=Z.isBucketNameOptions=Z.S3_HOSTNAME_PATTERN=Z.DOT_PATTERN=void 0;var QQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ZQ=/(\d+\.){3}\d+/,eZ=/\.\./;Z.DOT_PATTERN=/\./;Z.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var dT=/^s3(-external-1)?\.amazonaws\.com$/,ig="amazonaws.com",tZ=e=>typeof e.bucketName=="string";Z.isBucketNameOptions=tZ;var nZ=e=>QQ.test(e)&&!ZQ.test(e)&&!eZ.test(e);Z.isDnsCompatibleBucketName=nZ;var lT=e=>{let n=e.match(Z.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},rZ=e=>dT.test(e)?["us-east-1",ig]:lT(e);Z.getSuffix=rZ;var oZ=e=>dT.test(e)?[e.replace(`.${ig}`,""),ig]:lT(e);Z.getSuffixForArnEndpoint=oZ;var sZ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};Z.validateArnEndpointOptions=sZ;var iZ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};Z.validateService=iZ;var aZ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};Z.validateS3Service=aZ;var cZ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};Z.validateOutpostService=cZ;var dZ=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};Z.validatePartition=dZ;var lZ=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!sg(e,n.clientRegion))throw new Error(`Client FIPS region ${n.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!n.useArnRegion&&!sg(e,n.clientRegion||"")&&!sg(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};Z.validateRegion=lZ;var uZ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};Z.validateRegionalClient=uZ;var sg=(e,n)=>e===n,mZ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};Z.validateAccountId=mZ;var pZ=(e,n={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||n!=null&&n.tlsCompatible&&Z.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};Z.validateDNSHostLabel=pZ;var fZ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};Z.validateCustomEndpoint=fZ;var yZ=e=>{let n=e.includes(":")?":":"/",[t,...r]=e.split(n);if(t==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${n}{accesspointname}`);return{accesspointName:r[0]}}else if(t==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${n}{outpostId}${n}accesspoint${n}{accesspointName}`);let[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};Z.getArnResources=yZ;var gZ=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};Z.validateNoDualstack=gZ;var hZ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};Z.validateNoFIPS=hZ;var _Z=e=>{try{e.split(".").forEach(n=>{(0,Z.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};Z.validateMrapAlias=_Z});var cg=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.bucketHostname=void 0;var ge=ag(),CZ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?SZ(e):bZ(e));Uu.bucketHostname=CZ;var SZ=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,ge.getSuffix)(t);return c||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},bZ=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,ge.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:v,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:a}),(0,ge.validateAccountId)(C);let{accesspointName:E,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?EZ({...e,tlsCompatible:u,bucketName:l,accesspointName:E,hostnameSuffix:o}):v===""?PZ({...e,clientRegion:r,mrapAlias:E,hostnameSuffix:o}):G?vZ({...e,clientRegion:r,outpostId:G,accesspointName:E,hostnameSuffix:o}):wZ({...e,clientRegion:r,accesspointName:E,hostnameSuffix:o})},EZ=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ge.validateNoDualstack)(e);let g=`${c}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:t});let C=r?a:o,v=r?a:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${n?"-fips":""}.${C}.${u}`,signingRegion:v,signingService:y}},PZ=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},vZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:n,C=e?r.region:t;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},wZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(a,{tlsCompatible:c});let y=e?r.region:n,g=e?r.region:t;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var pT=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getBucketEndpointPlugin=Wt.bucketEndpointMiddlewareOptions=Wt.bucketEndpointMiddleware=void 0;var uT=yp(),xZ=Ne(),mT=cg(),kZ=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(xZ.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,uT.validate)(o)){let i=(0,uT.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:v,bucketEndpoint:A,signingRegion:E,signingService:G}=(0,mT.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});E&&E!==g&&(t.signing_region=E),G&&G!=="s3"&&(t.signing_service=G),c.hostname=v,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:y}=(0,mT.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});c.hostname=a,s=y}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};Wt.bucketEndpointMiddleware=kZ;Wt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var AZ=e=>({applyToStack:n=>{n.addRelativeTo((0,Wt.bucketEndpointMiddleware)(e),Wt.bucketEndpointMiddlewareOptions)}});Wt.getBucketEndpointPlugin=AZ});var fT=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveBucketEndpointConfig=void 0;function OZ(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Gu.resolveBucketEndpointConfig=OZ});var yT=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Ra=(te(),Y(ee));Ra.__exportStar(aT(),Se);Ra.__exportStar(cT(),Se);Ra.__exportStar(pT(),Se);Ra.__exportStar(cg(),Se);Ra.__exportStar(fT(),Se);var hn=ag();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return hn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return hn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return hn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return hn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return hn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return hn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return hn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return hn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return hn.validateNoFIPS}})});var ET=m((Exe,bT)=>{var Hu=Object.defineProperty,NZ=Object.getOwnPropertyDescriptor,IZ=Object.getOwnPropertyNames,RZ=Object.prototype.hasOwnProperty,Eo=(e,n)=>Hu(e,"name",{value:n,configurable:!0}),TZ=(e,n)=>{for(var t in n)Hu(e,t,{get:n[t],enumerable:!0})},BZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of IZ(n))!RZ.call(e,o)&&o!==t&&Hu(e,o,{get:()=>n[o],enumerable:!(r=NZ(n,o))||r.enumerable});return e},qZ=e=>BZ(Hu({},"__esModule",{value:!0}),e),gT={};TZ(gT,{EventStreamMarshaller:()=>ST,eventStreamSerdeProvider:()=>DZ});bT.exports=qZ(gT);var Ta=wp();function hT(e){let n=0,t=0,r=null,o=null,s=Eo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);n=i,t=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),c=Eo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(n)if(n===t)yield r;else throw new Error("Truncated event message received.");else return;return}let a=u.length,y=0;for(;ynew ST(e),"eventStreamSerdeProvider")});var AT=m((vxe,kT)=>{var $u=Object.defineProperty,MZ=Object.getOwnPropertyDescriptor,FZ=Object.getOwnPropertyNames,LZ=Object.prototype.hasOwnProperty,dg=(e,n)=>$u(e,"name",{value:n,configurable:!0}),jZ=(e,n)=>{for(var t in n)$u(e,t,{get:n[t],enumerable:!0})},zZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FZ(n))!LZ.call(e,o)&&o!==t&&$u(e,o,{get:()=>n[o],enumerable:!(r=MZ(n,o))||r.enumerable});return e},UZ=e=>zZ($u({},"__esModule",{value:!0}),e),PT={};jZ(PT,{EventStreamMarshaller:()=>xT,eventStreamSerdeProvider:()=>$Z});kT.exports=UZ(PT);var GZ=ET(),HZ=require("stream");async function*vT(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}dg(vT,"readabletoIterable");var wT=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new GZ.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:vT(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return HZ.Readable.from(this.universalMarshaller.serialize(n,t))}};dg(wT,"EventStreamMarshaller");var xT=wT,$Z=dg(e=>new xT(e),"eventStreamSerdeProvider")});var TT=m((xxe,RT)=>{var Ku=Object.defineProperty,KZ=Object.getOwnPropertyDescriptor,VZ=Object.getOwnPropertyNames,XZ=Object.prototype.hasOwnProperty,Vu=(e,n)=>Ku(e,"name",{value:n,configurable:!0}),WZ=(e,n)=>{for(var t in n)Ku(e,t,{get:n[t],enumerable:!0})},YZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of VZ(n))!XZ.call(e,o)&&o!==t&&Ku(e,o,{get:()=>n[o],enumerable:!(r=KZ(n,o))||r.enumerable});return e},JZ=e=>YZ(Ku({},"__esModule",{value:!0}),e),OT={};WZ(OT,{fileStreamHasher:()=>tee,readableStreamHasher:()=>ree});RT.exports=JZ(OT);var QZ=require("fs"),ZZ=yt(),eee=require("stream"),NT=class extends eee.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,ZZ.toUint8Array)(n))}catch(o){return r(o)}r()}};Vu(NT,"HashCalculator");var IT=NT,tee=Vu((e,n)=>new Promise((t,r)=>{if(!nee(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,QZ.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new IT(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})}),"fileStreamHasher"),nee=Vu(e=>typeof e.path=="string","isReadStream"),ree=Vu((e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new IT(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})},"readableStreamHasher")});var Wu=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.signatureV4CrtContainer=void 0;Xu.signatureV4CrtContainer={CrtSignerV4:null}});var BT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.loadCrt=void 0;var oee=Wu();function see(){if(!oee.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. +`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),Un=async(e,n)=>{let t=await cn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},Gn=e=>Object.entries(e).map(([n,t])=>(0,W.extendedEncodeURIComponent)(n)+"="+(0,W.extendedEncodeURIComponent)(t)).join("&"),Hn=(e,n)=>{var t;if(((t=n.Error)==null?void 0:t.Code)!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var ml=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.AssumeRoleCommand=Hr.$Command=void 0;var F4=rn(),L4=x(),j4=k(),BA=b();Object.defineProperty(Hr,"$Command",{enumerable:!0,get:function(){return BA.Command}});var z4=w(),U4=Dn(),TA=dn(),jf=class e extends BA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,j4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,L4.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,F4.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:U4.AssumeRoleResponseFilterSensitiveLog,[z4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TA.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,TA.de_AssumeRoleCommand)(n,t)}};Hr.AssumeRoleCommand=jf});var pl=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.AssumeRoleWithWebIdentityCommand=$r.$Command=void 0;var G4=x(),H4=k(),MA=b();Object.defineProperty($r,"$Command",{enumerable:!0,get:function(){return MA.Command}});var $4=w(),qA=Dn(),DA=dn(),zf=class e extends MA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,H4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,G4.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[$4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DA.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,DA.de_AssumeRoleWithWebIdentityCommand)(n,t)}};$r.AssumeRoleWithWebIdentityCommand=zf});var Uf=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decorateDefaultCredentialProvider=Ft.getDefaultRoleAssumerWithWebIdentity=Ft.getDefaultRoleAssumer=void 0;var K4=ml(),V4=pl(),FA="us-east-1",LA=e=>typeof e!="function"?e===void 0?FA:e:async()=>{try{return await e()}catch{return FA}},X4=(e,n)=>{let t,r;return async(o,s)=>{if(r=o,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:LA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new K4.AssumeRoleCommand(s));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};Ft.getDefaultRoleAssumer=X4;var W4=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:c,requestHandler:i}=e;t=new n({logger:s,region:LA(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new V4.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Ft.getDefaultRoleAssumerWithWebIdentity=W4;var Y4=e=>n=>e({roleAssumer:(0,Ft.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,Ft.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});Ft.decorateDefaultCredentialProvider=Y4});var jA=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromEnv=Ze.ENV_EXPIRATION=Ze.ENV_SESSION=Ze.ENV_SECRET=Ze.ENV_KEY=void 0;var J4=xe();Ze.ENV_KEY="AWS_ACCESS_KEY_ID";Ze.ENV_SECRET="AWS_SECRET_ACCESS_KEY";Ze.ENV_SESSION="AWS_SESSION_TOKEN";Ze.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Q4=()=>async()=>{let e=process.env[Ze.ENV_KEY],n=process.env[Ze.ENV_SECRET],t=process.env[Ze.ENV_SESSION],r=process.env[Ze.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new J4.CredentialsProviderError("Unable to find environment variable credentials.")};Ze.fromEnv=Q4});var Hf=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Z4=(te(),Y(ee));Z4.__exportStar(jA(),Gf)});var hl=m((Rve,eO)=>{var gl=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,tW=Object.getOwnPropertyNames,nW=Object.prototype.hasOwnProperty,qe=(e,n)=>gl(e,"name",{value:n,configurable:!0}),rW=(e,n)=>{for(var t in n)gl(e,t,{get:n[t],enumerable:!0})},oW=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of tW(n))!nW.call(e,o)&&o!==t&&gl(e,o,{get:()=>n[o],enumerable:!(r=eW(n,o))||r.enumerable});return e},sW=e=>oW(gl({},"__esModule",{value:!0}),e),HA={};rW(HA,{DEFAULT_MAX_RETRIES:()=>XA,DEFAULT_TIMEOUT:()=>VA,ENV_CMDS_AUTH_TOKEN:()=>Vf,ENV_CMDS_FULL_URI:()=>fl,ENV_CMDS_RELATIVE_URI:()=>yl,fromContainerMetadata:()=>dW,fromInstanceMetadata:()=>NW,getInstanceMetadataEndpoint:()=>QA,httpRequest:()=>Kr,providerConfigFromInit:()=>Xf});eO.exports=sW(HA);var iW=require("url"),Lt=xe(),aW=require("buffer"),cW=require("http");function Kr(e){return new Promise((n,t)=>{var r;let o=(0,cW.request)({method:"GET",...e,hostname:(r=e.hostname)==null?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{t(Object.assign(new Lt.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{t(new Lt.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:c=400}=s;(c<200||300<=c)&&(t(Object.assign(new Lt.ProviderError("Error response received from instance metadata service"),{statusCode:c})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(aW.Buffer.concat(i)),o.destroy()})}),o.end()})}qe(Kr,"httpRequest");var $A=qe(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),KA=qe(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),VA=1e3,XA=0,Xf=qe(({maxRetries:e=XA,timeout:n=VA})=>({maxRetries:e,timeout:n}),"providerConfigFromInit"),Kf=qe((e,n)=>{let t=e();for(let r=0;r{let{timeout:n,maxRetries:t}=Xf(e);return()=>Kf(async()=>{let r=await fW(),o=JSON.parse(await lW(n,r));if(!$A(o))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(o)},t)},"fromContainerMetadata"),lW=qe(async(e,n)=>(process.env[Vf]&&(n.headers={...n.headers,Authorization:process.env[Vf]}),(await Kr({...n,timeout:e})).toString()),"requestFromEcsImds"),uW="169.254.170.2",mW={localhost:!0,"127.0.0.1":!0},pW={"http:":!0,"https:":!0},fW=qe(async()=>{if(process.env[yl])return{hostname:uW,path:process.env[yl]};if(process.env[fl]){let e=(0,iW.parse)(process.env[fl]);if(!e.hostname||!(e.hostname in mW))throw new Lt.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in pW))throw new Lt.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Lt.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${yl} or ${fl} environment variable is set`,!1)},"getCmdsUri"),WA=class YA extends Lt.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,YA.prototype)}};qe(WA,"InstanceMetadataV1FallbackError");var yW=WA,Wf=on(),gW=mr(),hW="AWS_EC2_METADATA_SERVICE_ENDPOINT",_W="ec2_metadata_service_endpoint",CW={environmentVariableSelector:e=>e[hW],configFileSelector:e=>e[_W],default:void 0},JA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(JA||{}),SW="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",bW="ec2_metadata_service_endpoint_mode",EW={environmentVariableSelector:e=>e[SW],configFileSelector:e=>e[bW],default:"IPv4"},QA=qe(async()=>(0,gW.parseUrl)(await PW()||await vW()),"getInstanceMetadataEndpoint"),PW=qe(async()=>(0,Wf.loadConfig)(CW)(),"getFromEndpointConfig"),vW=qe(async()=>{let e=await(0,Wf.loadConfig)(EW)();switch(e){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(JA)}`)}},"getFromEndpointModeConfig"),wW=5*60,xW=5*60,kW="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zA=qe((e,n)=>{let t=wW+Math.floor(Math.random()*xW),r=new Date(Date.now()+t*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+kW);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),AW=qe((e,n={})=>{let t=(n==null?void 0:n.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()AW(IW(e),{logger:e.logger}),"fromInstanceMetadata"),IW=qe(e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=Xf(e),c=qe(async(i,u)=>{var l;if(n||((l=u.headers)==null?void 0:l[GA])==null){let g=!1,C=!1,v=await(0,Wf.loadConfig)({environmentVariableSelector:A=>{let E=A[$f];if(C=!!E&&E!=="false",E===void 0)throw new Lt.CredentialsProviderError(`${$f} not set in env, checking config file next.`);return C},configFileSelector:A=>{let E=A[UA];return g=!!E&&E!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||v){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${UA})`),C&&A.push(`process environment variable (${$f})`),new yW(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Kf(async()=>{let g;try{g=await TW(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)).trim();return Kf(async()=>{let g;try{g=await BW(y,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)},"getCredentials");return async()=>{let i=await QA();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),c(s,{...i,timeout:o});{let u;try{u=(await RW({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(n=!0),t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),c(s,{...i,timeout:o})}return c(s,{...i,headers:{[GA]:u},timeout:o})}}},"getInstanceImdsProvider"),RW=qe(async e=>Kr({...e,path:OW,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),TW=qe(async e=>(await Kr({...e,path:ZA})).toString(),"getProfile"),BW=qe(async(e,n)=>{let t=JSON.parse((await Kr({...n,path:ZA+e})).toString());if(!$A(t))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(t)},"getCredentialsFromProfile")});var nO=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.resolveCredentialSource=void 0;var qW=Hf(),tO=hl(),DW=xe(),MW=(e,n)=>{let t={EcsContainer:tO.fromContainerMetadata,Ec2InstanceMetadata:tO.fromInstanceMetadata,Environment:qW.fromEnv};if(e in t)return t[e]();throw new DW.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};_l.resolveCredentialSource=MW});var rO=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveAssumeRoleCredentials=Vr.isAssumeRoleProfile=void 0;var Yf=xe(),FW=wt(),LW=nO(),jW=Jf(),zW=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(UW(e)||GW(e));Vr.isAssumeRoleProfile=zW;var UW=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",GW=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",HW=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new Yf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Yf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,FW.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=s?(0,jW.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,LW.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!t.mfaCodeProvider)throw new Yf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let l=await c;return t.roleAssumer(l,i)};Vr.resolveAssumeRoleCredentials=HW});var oO=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.getValidatedProcessCredentials=void 0;var $W=(e,n)=>{if(n.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(n.Expiration){let t=new Date;if(new Date(n.Expiration){"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.resolveProcessCredentials=void 0;var Qf=xe(),KW=require("child_process"),VW=require("util"),XW=oO(),WW=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,VW.promisify)(KW.exec);try{let{stdout:s}=await o(r),c;try{c=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,XW.getValidatedProcessCredentials)(e,c)}catch(s){throw new Qf.CredentialsProviderError(s.message)}}else throw new Qf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Qf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Sl.resolveProcessCredentials=WW});var aO=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.fromProcess=void 0;var iO=wt(),YW=sO(),JW=(e={})=>async()=>{let n=await(0,iO.parseKnownFiles)(e);return(0,YW.resolveProcessCredentials)((0,iO.getProfileName)(e),n)};bl.fromProcess=JW});var ey=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QW=(te(),Y(ee));QW.__exportStar(aO(),Zf)});var cO=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveProcessCredentials=Xr.isProcessProfile=void 0;var ZW=ey(),e5=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Xr.isProcessProfile=e5;var t5=async(e,n)=>(0,ZW.fromProcess)({...e,profile:n})();Xr.resolveProcessCredentials=t5});var ty=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.isSsoProfile=void 0;var n5=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");El.isSsoProfile=n5});var dO=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.resolveClientEndpointParameters=void 0;var r5=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});Pl.resolveClientEndpointParameters=r5});var lO=m((Uve,o5)=>{o5.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var mO=m((vl,uO)=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isCrtAvailable=void 0;var s5=()=>{try{return typeof require=="function"&&typeof uO<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};vl.isCrtAvailable=s5});var pa=m(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.defaultUserAgent=jt.UA_APP_ID_INI_NAME=jt.UA_APP_ID_ENV_NAME=void 0;var i5=on(),pO=require("os"),ny=require("process"),a5=mO();jt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";jt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var c5=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,pO.platform)()}`,(0,pO.release)()],["lang/js"],["md/nodejs",`${ny.versions.node}`]],r=(0,a5.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),ny.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${ny.env.AWS_EXECUTION_ENV}`]);let o=(0,i5.loadConfig)({environmentVariableSelector:c=>c[jt.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[jt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let c=await o;s=c?[...t,[`app/${c}`]]:[...t]}return s}};jt.defaultUserAgent=c5});var fa=m(($ve,_O)=>{var wl=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l5=Object.getOwnPropertyNames,u5=Object.prototype.hasOwnProperty,yO=(e,n)=>wl(e,"name",{value:n,configurable:!0}),m5=(e,n)=>{for(var t in n)wl(e,t,{get:n[t],enumerable:!0})},p5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of l5(n))!u5.call(e,o)&&o!==t&&wl(e,o,{get:()=>n[o],enumerable:!(r=d5(n,o))||r.enumerable});return e},f5=e=>p5(wl({},"__esModule",{value:!0}),e),gO={};m5(gO,{Hash:()=>h5});_O.exports=f5(gO);var ry=Er(),y5=yt(),g5=require("buffer"),fO=require("crypto"),hO=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,y5.toUint8Array)(oy(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,fO.createHmac)(this.algorithmIdentifier,oy(this.secret)):(0,fO.createHash)(this.algorithmIdentifier)}};yO(hO,"Hash");var h5=hO;function oy(e,n){return g5.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ry.fromString)(e,n):ArrayBuffer.isView(e)?(0,ry.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ry.fromArrayBuffer)(e)}yO(oy,"castSourceData")});var ya=m((Kve,bO)=>{var xl=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,C5=Object.getOwnPropertyNames,S5=Object.prototype.hasOwnProperty,b5=(e,n)=>xl(e,"name",{value:n,configurable:!0}),E5=(e,n)=>{for(var t in n)xl(e,t,{get:n[t],enumerable:!0})},P5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C5(n))!S5.call(e,o)&&o!==t&&xl(e,o,{get:()=>n[o],enumerable:!(r=_5(n,o))||r.enumerable});return e},v5=e=>P5(xl({},"__esModule",{value:!0}),e),SO={};E5(SO,{calculateBodyLength:()=>w5});bO.exports=v5(SO);var CO=require("fs"),w5=b5(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,CO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,CO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var BO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ruleSet=void 0;var IO="required",un="fn",mn="argv",Yr="ref",EO="isSet",ln="tree",Wr="error",ga="endpoint",sy="PartitionResult",PO={[IO]:!1,type:"String"},vO={[IO]:!0,default:!1,type:"Boolean"},wO={[Yr]:"Endpoint"},RO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseFIPS"},!0]},TO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseDualStack"},!0]},zt={},xO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsFIPS"]}]},kO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsDualStack"]}]},AO=[RO],OO=[TO],NO=[{[Yr]:"Region"}],x5={version:"1.0",parameters:{Region:PO,UseDualStack:vO,UseFIPS:vO,Endpoint:PO},rules:[{conditions:[{[un]:EO,[mn]:[wO]}],type:ln,rules:[{conditions:AO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Wr},{conditions:OO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Wr},{endpoint:{url:wO,properties:zt,headers:zt},type:ga}]},{conditions:[{[un]:EO,[mn]:NO}],type:ln,rules:[{conditions:[{[un]:"aws.partition",[mn]:NO,assign:sy}],type:ln,rules:[{conditions:[RO,TO],type:ln,rules:[{conditions:[xO,kO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Wr}]},{conditions:AO,type:ln,rules:[{conditions:[xO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Wr}]},{conditions:OO,type:ln,rules:[{conditions:[kO],type:ln,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Wr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]}]},{error:"Invalid Configuration: Missing Region",type:Wr}]};kl.ruleSet=x5});var qO=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.defaultEndpointResolver=void 0;var k5=jr(),A5=BO(),O5=(e,n={})=>(0,k5.resolveEndpoint)(A5.ruleSet,{endpointParams:e,logger:n.logger});Al.defaultEndpointResolver=O5});var FO=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.getRuntimeConfig=void 0;var N5=b(),I5=mr(),DO=Pr(),MO=yt(),R5=qO(),T5=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??DO.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??DO.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??R5.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new N5.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??I5.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??MO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??MO.toUtf8});Ol.getRuntimeConfig=T5});var _a=m((Yve,HO)=>{var B5=Object.create,ha=Object.defineProperty,q5=Object.getOwnPropertyDescriptor,D5=Object.getOwnPropertyNames,M5=Object.getPrototypeOf,F5=Object.prototype.hasOwnProperty,iy=(e,n)=>ha(e,"name",{value:n,configurable:!0}),L5=(e,n)=>{for(var t in n)ha(e,t,{get:n[t],enumerable:!0})},UO=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D5(n))!F5.call(e,o)&&o!==t&&ha(e,o,{get:()=>n[o],enumerable:!(r=q5(n,o))||r.enumerable});return e},j5=(e,n,t)=>(t=e!=null?B5(M5(e)):{},UO(n||!e||!e.__esModule?ha(t,"default",{value:e,enumerable:!0}):t,e)),z5=e=>UO(ha({},"__esModule",{value:!0}),e),GO={};L5(GO,{resolveDefaultsModeConfig:()=>J5});HO.exports=z5(GO);var U5=Mt(),LO=on(),G5=xe(),H5="AWS_EXECUTION_ENV",jO="AWS_REGION",zO="AWS_DEFAULT_REGION",$5="AWS_EC2_METADATA_DISABLED",K5=["in-region","cross-region","mobile","standard","legacy"],V5="/latest/meta-data/placement/region",X5="AWS_DEFAULTS_MODE",W5="defaults_mode",Y5={environmentVariableSelector:e=>e[X5],configFileSelector:e=>e[W5],default:"legacy"},J5=iy(({region:e=(0,LO.loadConfig)(U5.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,LO.loadConfig)(Y5)}={})=>(0,G5.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return Q5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${K5.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),Q5=iy(async e=>{if(e){let n=typeof e=="function"?await e():e,t=await Z5();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Z5=iy(async()=>{if(process.env[H5]&&(process.env[jO]||process.env[zO]))return process.env[jO]??process.env[zO];if(!process.env[$5])try{let{getInstanceMetadataEndpoint:e,httpRequest:n}=await Promise.resolve().then(()=>j5(hl())),t=await e();return(await n({...t,path:V5})).toString()}catch{}},"inferPhysicalRegion")});var VO=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.getRuntimeConfig=void 0;var e9=(te(),Y(ee)),t9=e9.__importDefault(lO()),n9=pa(),Nl=Mt(),r9=fa(),$O=sn(),Ca=on(),KO=vr(),o9=ya(),s9=zr(),i9=FO(),a9=b(),c9=_a(),d9=b(),l9=e=>{(0,d9.emitWarningIfUnsupportedVersion)(process.version);let n=(0,c9.resolveDefaultsModeConfig)(e),t=()=>n().then(a9.loadConfigsForDefaultMode),r=(0,i9.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??o9.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,n9.defaultUserAgent)({serviceId:r.serviceId,clientVersion:t9.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ca.loadConfig)($O.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Ca.loadConfig)(Nl.NODE_REGION_CONFIG_OPTIONS,Nl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new KO.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ca.loadConfig)({...$O.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||s9.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??r9.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??KO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Ca.loadConfig)(Nl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Ca.loadConfig)(Nl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Il.getRuntimeConfig=l9});var XO=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.resolveAwsRegionExtensionConfiguration=Jr.getAwsRegionExtensionConfiguration=void 0;var u9=e=>{let n=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let t=e.region;return typeof t=="string"?t:t()};return{setRegion(t){n=t},region(){return n}}};Jr.getAwsRegionExtensionConfiguration=u9;var m9=e=>({region:e.region()});Jr.resolveAwsRegionExtensionConfiguration=m9});var WO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var ay=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.isFipsRegion=void 0;var p9=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Rl.isFipsRegion=p9});var YO=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.getRealRegion=void 0;var f9=ay(),y9=e=>(0,f9.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Tl.getRealRegion=y9});var QO=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.resolveRegionConfig=void 0;var JO=YO(),g9=ay(),h9=e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return(0,JO.getRealRegion)(n);let r=await n();return(0,JO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,g9.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Bl.resolveRegionConfig=h9});var eN=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var ZO=(te(),Y(ee));ZO.__exportStar(WO(),ql);ZO.__exportStar(QO(),ql)});var Ml=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var tN=(te(),Y(ee));tN.__exportStar(XO(),Dl);tN.__exportStar(eN(),Dl)});var sN=m(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.resolveRuntimeExtensions=void 0;var nN=Ml(),rN=Ne(),oN=b(),cy=e=>e,_9=(e,n)=>{let t={...cy((0,nN.getAwsRegionExtensionConfiguration)(e)),...cy((0,oN.getDefaultExtensionConfiguration)(e)),...cy((0,rN.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,nN.resolveAwsRegionExtensionConfiguration)(t),...(0,oN.resolveDefaultRuntimeConfig)(t),...(0,rN.resolveHttpHandlerRuntimeConfig)(t)}};Fl.resolveRuntimeExtensions=_9});var Sa=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOClient=Qr.__Client=void 0;var iN=Ni(),C9=Ii(),S9=Ri(),aN=Ji(),b9=Mt(),E9=Qi(),P9=x(),cN=sn(),dN=b();Object.defineProperty(Qr,"__Client",{enumerable:!0,get:function(){return dN.Client}});var v9=dO(),w9=VO(),x9=sN(),dy=class extends dN.Client{constructor(...[n]){let t=(0,w9.getRuntimeConfig)(n||{}),r=(0,v9.resolveClientEndpointParameters)(t),o=(0,b9.resolveRegionConfig)(r),s=(0,P9.resolveEndpointConfig)(o),c=(0,cN.resolveRetryConfig)(s),i=(0,iN.resolveHostHeaderConfig)(c),u=(0,aN.resolveUserAgentConfig)(i),l=(0,x9.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,cN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,E9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,iN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,C9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,S9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,aN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Qr.SSOClient=dy});var Ll=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SSOServiceException=Zr.__ServiceException=void 0;var lN=b();Object.defineProperty(Zr,"__ServiceException",{enumerable:!0,get:function(){return lN.ServiceException}});var ly=class e extends lN.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Zr.SSOServiceException=ly});var fr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var eo=b(),jl=Ll(),uy=class e extends jl.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=uy;var my=class e extends jl.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=my;var py=class e extends jl.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=py;var fy=class e extends jl.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=fy;var k9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=k9;var A9=e=>({...e,...e.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:eo.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=A9;var O9=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=O9;var N9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=N9;var I9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=I9;var R9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=R9});var ba=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.de_LogoutCommand=ze.de_ListAccountsCommand=ze.de_ListAccountRolesCommand=ze.de_GetRoleCredentialsCommand=ze.se_LogoutCommand=ze.se_ListAccountsCommand=ze.se_ListAccountRolesCommand=ze.se_GetRoleCredentialsCommand=void 0;var zl=Ne(),J=b(),Ul=fr(),T9=Ll(),B9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,J.map)({role_name:[,(0,J.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_GetRoleCredentialsCommand=B9;var q9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountRolesCommand=q9;var D9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountsCommand=D9;var M9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})};ze.se_LogoutCommand=M9;var F9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return L9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{roleCredentials:J._json});return Object.assign(t,o),t};ze.de_GetRoleCredentialsCommand=F9;var L9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},j9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return z9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{nextToken:J.expectString,roleList:J._json});return Object.assign(t,o),t};ze.de_ListAccountRolesCommand=j9;var z9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},U9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return G9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{accountList:J._json,nextToken:J.expectString});return Object.assign(t,o),t};ze.de_ListAccountsCommand=U9;var G9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},H9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $9(e,n);let t=(0,J.map)({$metadata:$n(e)});return await(0,J.collectBody)(e.body,n),t};ze.de_LogoutCommand=H9;var $9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},Gl=(0,J.withBaseException)(T9.SSOServiceException),Hl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.InvalidRequestException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},yy=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.ResourceNotFoundException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$l=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.TooManyRequestsException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},Kl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.UnauthorizedException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$n=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),K9=(e,n)=>(0,J.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Vl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Xl=(e,n)=>K9(e,n).then(t=>t.length?JSON.parse(t):{}),Wl=async(e,n)=>{let t=await Xl(e,n);return t.message=t.message??t.Message,t},Yl=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var hy=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.GetRoleCredentialsCommand=to.$Command=void 0;var V9=x(),X9=k(),pN=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return pN.Command}});var W9=w(),uN=fr(),mN=ba(),gy=class e extends pN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,X9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,V9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:uN.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:uN.GetRoleCredentialsResponseFilterSensitiveLog,[W9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mN.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,mN.de_GetRoleCredentialsCommand)(n,t)}};to.GetRoleCredentialsCommand=gy});var Jl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountRolesCommand=no.$Command=void 0;var Y9=x(),J9=k(),yN=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return yN.Command}});var Q9=w(),Z9=fr(),fN=ba(),_y=class e extends yN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,J9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Y9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:Z9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Q9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fN.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,fN.de_ListAccountRolesCommand)(n,t)}};no.ListAccountRolesCommand=_y});var Ql=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ListAccountsCommand=ro.$Command=void 0;var eY=x(),tY=k(),hN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return hN.Command}});var nY=w(),rY=fr(),gN=ba(),Cy=class e extends hN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,tY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,eY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:rY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[nY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gN.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,gN.de_ListAccountsCommand)(n,t)}};ro.ListAccountsCommand=Cy});var by=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogoutCommand=oo.$Command=void 0;var oY=x(),sY=k(),CN=b();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return CN.Command}});var iY=w(),aY=fr(),_N=ba(),Sy=class e extends CN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,oY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:aY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[iY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_N.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,_N.de_LogoutCommand)(n,t)}};oo.LogoutCommand=Sy});var SN=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.SSO=void 0;var cY=b(),dY=hy(),lY=Jl(),uY=Ql(),mY=by(),pY=Sa(),fY={GetRoleCredentialsCommand:dY.GetRoleCredentialsCommand,ListAccountRolesCommand:lY.ListAccountRolesCommand,ListAccountsCommand:uY.ListAccountsCommand,LogoutCommand:mY.LogoutCommand},Zl=class extends pY.SSOClient{};eu.SSO=Zl;(0,cY.createAggregatedClient)(fY,Zl)});var bN=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var tu=(te(),Y(ee));tu.__exportStar(hy(),so);tu.__exportStar(Jl(),so);tu.__exportStar(Ql(),so);tu.__exportStar(by(),so)});var PN=m(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0})});var vN=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.paginateListAccountRoles=void 0;var yY=Jl(),gY=Sa(),hY=async(e,n,...t)=>await e.send(new yY.ListAccountRolesCommand(n),...t);async function*_Y(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof gY.SSOClient)s=await hY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}nu.paginateListAccountRoles=_Y});var wN=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.paginateListAccounts=void 0;var CY=Ql(),SY=Sa(),bY=async(e,n,...t)=>await e.send(new CY.ListAccountsCommand(n),...t);async function*EY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof SY.SSOClient)s=await bY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}ru.paginateListAccounts=EY});var xN=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Ey=(te(),Y(ee));Ey.__exportStar(PN(),Ea);Ey.__exportStar(vN(),Ea);Ey.__exportStar(wN(),Ea)});var kN=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var PY=(te(),Y(ee));PY.__exportStar(fr(),Py)});var AN=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.SSOServiceException=void 0;var Pa=(te(),Y(ee));Pa.__exportStar(Sa(),pn);Pa.__exportStar(SN(),pn);Pa.__exportStar(bN(),pn);Pa.__exportStar(xN(),pn);Pa.__exportStar(kN(),pn);var vY=Ll();Object.defineProperty(pn,"SSOServiceException",{enumerable:!0,get:function(){return vY.SSOServiceException}})});var iu=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var ON=Ni(),wY=Ii(),xY=Ri(),NN=Ji(),kY=Mt(),AY=Qi(),OY=x(),IN=sn(),NY=b(),IY=e=>{var n,t;return{...e,useDualstackEndpoint:(n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1,useFipsEndpoint:(t=e.useFipsEndpoint)!==null&&t!==void 0?t:!1,defaultSigningName:"awsssooidc"}},RY={version:"3.387.0"},TY=pa(),ou=Mt(),BY=fa(),RN=sn(),va=on(),TN=vr(),qY=ya(),DY=zr(),MY=b(),FY=mr(),BN=Pr(),qN=yt(),LY=jr(),GN="required",fn="fn",yn="argv",io="ref",vy="PartitionResult",Ut="tree",wa="error",xa="endpoint",DN={[GN]:!1,type:"String"},MN={[GN]:!0,default:!1,type:"Boolean"},HN={[io]:"Endpoint"},$N={[fn]:"booleanEquals",[yn]:[{[io]:"UseFIPS"},!0]},KN={[fn]:"booleanEquals",[yn]:[{[io]:"UseDualStack"},!0]},Gt={},FN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsFIPS"]}]},LN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsDualStack"]}]},jN=[HN],zN=[$N],UN=[KN],jY={version:"1.0",parameters:{Region:DN,UseDualStack:MN,UseFIPS:MN,Endpoint:DN},rules:[{conditions:[{[fn]:"aws.partition",[yn]:[{[io]:"Region"}],assign:vy}],type:Ut,rules:[{conditions:[{[fn]:"isSet",[yn]:jN},{[fn]:"parseURL",[yn]:jN,assign:"url"}],type:Ut,rules:[{conditions:zN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{type:Ut,rules:[{conditions:UN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:HN,properties:Gt,headers:Gt},type:xa}]}]},{conditions:[$N,KN],type:Ut,rules:[{conditions:[FN,LN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:xa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wa}]},{conditions:zN,type:Ut,rules:[{conditions:[FN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:xa}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:wa}]},{conditions:UN,type:Ut,rules:[{conditions:[LN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:xa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:wa}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:xa}]}]},zY=jY,UY=(e,n={})=>(0,LY.resolveEndpoint)(zY,{endpointParams:e,logger:n.logger}),GY=e=>{var n,t,r,o,s,c,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:BN.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:BN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:UY,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new MY.NoOpLogger,serviceId:(c=e==null?void 0:e.serviceId)!==null&&c!==void 0?c:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:FY.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:qN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:qN.toUtf8}},HY=b(),$Y=_a(),KY=b(),VY=e=>{var n,t,r,o,s,c,i,u,l,a;(0,KY.emitWarningIfUnsupportedVersion)(process.version);let y=(0,$Y.resolveDefaultsModeConfig)(e),g=()=>y().then(HY.loadConfigsForDefaultMode),C=GY(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:qY.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,TY.defaultUserAgent)({serviceId:C.serviceId,clientVersion:RY.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,va.loadConfig)(RN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,va.loadConfig)(ou.NODE_REGION_CONFIG_OPTIONS,ou.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new TN.NodeHttpHandler(g),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,va.loadConfig)({...RN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||DY.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:BY.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:TN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,va.loadConfig)(ou.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(a=e==null?void 0:e.useFipsEndpoint)!==null&&a!==void 0?a:(0,va.loadConfig)(ou.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},VN=class extends NY.Client{constructor(...[e]){let n=VY(e||{}),t=IY(n),r=(0,kY.resolveRegionConfig)(t),o=(0,OY.resolveEndpointConfig)(r),s=(0,IN.resolveRetryConfig)(o),c=(0,ON.resolveHostHeaderConfig)(s),i=(0,NN.resolveUserAgentConfig)(c);super(i),this.config=i,this.middlewareStack.use((0,IN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,AY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ON.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,wY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,xY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,NN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=VN;var XY=b(),WY=x(),YY=k(),JY=b(),wy=Ne(),R=b(),QY=b(),lt=class XN extends QY.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,XN.prototype)}},WN=class YN extends lt{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,YN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AccessDeniedException=WN;var JN=class QN extends lt{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AuthorizationPendingException=JN;var ZN=class eI extends lt{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.error=n.error,this.error_description=n.error_description}};he.ExpiredTokenException=ZN;var tI=class nI extends lt{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,nI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InternalServerException=tI;var rI=class oI extends lt{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,oI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidClientException=rI;var ZY=class sI extends lt{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype),this.error=n.error,this.error_description=n.error_description}},iI=class aI extends lt{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidRequestException=iI;var cI=class dI extends lt{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidScopeException=cI;var lI=class uI extends lt{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.error=n.error,this.error_description=n.error_description}};he.SlowDownException=lI;var mI=class pI extends lt{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnauthorizedClientException=mI;var fI=class yI extends lt{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,yI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnsupportedGrantTypeException=fI;var e7=class gI extends lt{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.error=n.error,this.error_description=n.error_description}},t7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},n7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},r7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},o7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return s7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(t,o),t},s7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await l7(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await u7(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await m7(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await f7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await y7(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},i7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return a7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(t,o),t},a7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await p7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},c7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return d7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(t,o),t},d7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},xy=(0,R.withBaseException)(lt),l7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new WN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},u7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},m7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},ky=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new tI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},hI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new rI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},p7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new e7({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},f7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Ay=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new iI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},_I=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new cI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},CI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new lI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},SI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new mI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},y7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new fI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var n,t;return{httpStatusCode:e.statusCode,requestId:(t=(n=e.headers["x-amzn-requestid"])!==null&&n!==void 0?n:e.headers["x-amzn-request-id"])!==null&&t!==void 0?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},g7=(e,n)=>(0,R.collectBody)(e,n).then(t=>n.utf8Encoder(t)),su=(e,n)=>g7(e,n).then(t=>t.length?JSON.parse(t):{}),Oy=async(e,n)=>{var t;let r=await su(e,n);return r.message=(t=r.message)!==null&&t!==void 0?t:r.Message,r},Ny=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)},bI=class EI extends JY.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,YY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,WY.getEndpointPlugin)(t,EI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return t7(n,t)}deserialize(n,t){return o7(n,t)}};he.CreateTokenCommand=bI;var h7=x(),_7=k(),C7=b(),S7=class PI extends C7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,h7.getEndpointPlugin)(t,PI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return n7(n,t)}deserialize(n,t){return i7(n,t)}},b7=x(),E7=k(),P7=b(),v7=class vI extends P7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,E7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,b7.getEndpointPlugin)(t,vI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return r7(n,t)}deserialize(n,t){return c7(n,t)}},w7={CreateTokenCommand:bI,RegisterClientCommand:S7,StartDeviceAuthorizationCommand:v7},x7=class extends VN{};(0,XY.createAggregatedClient)(w7,x7)});var au=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.REFRESH_MESSAGE=ao.EXPIRE_WINDOW_MS=void 0;ao.EXPIRE_WINDOW_MS=5*60*1e3;ao.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var wI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.getSsoOidcClient=void 0;var k7=iu(),Iy={},A7=e=>{if(Iy[e])return Iy[e];let n=new k7.SSOOIDCClient({region:e});return Iy[e]=n,n};cu.getSsoOidcClient=A7});var xI=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.getNewSsoOidcToken=void 0;var O7=iu(),N7=wI(),I7=(e,n)=>(0,N7.getSsoOidcClient)(n).send(new O7.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));du.getNewSsoOidcToken=I7});var kI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateTokenExpiry=void 0;var R7=xe(),T7=au(),B7=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateTokenKey=void 0;var q7=xe(),D7=au(),M7=(e,n,t=!1)=>{if(typeof n>"u")throw new q7.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${D7.REFRESH_MESSAGE}`,!1)};uu.validateTokenKey=M7});var OI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.writeSSOTokenToFile=void 0;var F7=wt(),L7=require("fs"),{writeFile:j7}=L7.promises,z7=(e,n)=>{let t=(0,F7.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return j7(t,r)};mu.writeSSOTokenToFile=z7});var Ry=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.fromSso=void 0;var ka=xe(),pu=wt(),NI=au(),U7=xI(),II=kI(),yr=AI(),G7=OI(),RI=new Date(0),H7=(e={})=>async()=>{let n=await(0,pu.parseKnownFiles)(e),t=(0,pu.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new ka.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new ka.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let o=r.sso_session,c=(await(0,pu.loadSsoSessionData)(e))[o];if(!c)throw new ka.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!c[C])throw new ka.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,pu.getSSOTokenFromFile)(o)}catch{throw new ka.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${NI.REFRESH_MESSAGE}`,!1)}(0,yr.validateTokenKey)("accessToken",l.accessToken),(0,yr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:y}=l,g={token:a,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>NI.EXPIRE_WINDOW_MS)return g;if(Date.now()-RI.getTime()<30*1e3)return(0,II.validateTokenExpiry)(g),g;(0,yr.validateTokenKey)("clientId",l.clientId,!0),(0,yr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,yr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{RI.setTime(Date.now());let C=await(0,U7.getNewSsoOidcToken)(l,u);(0,yr.validateTokenKey)("accessToken",C.accessToken),(0,yr.validateTokenKey)("expiresIn",C.expiresIn);let v=new Date(Date.now()+C.expiresIn*1e3);try{await(0,G7.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:v.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:v}}catch{return(0,II.validateTokenExpiry)(g),g}};fu.fromSso=H7});var TI=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromStatic=void 0;var $7=xe(),K7=({token:e})=>async()=>{if(!e||!e.token)throw new $7.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};yu.fromStatic=K7});var BI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.nodeProvider=void 0;var Ty=xe(),V7=Ry(),X7=(e={})=>(0,Ty.memoize)((0,Ty.chain)((0,V7.fromSso)(e),async()=>{throw new Ty.TokenProviderError("Could not load token from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);gu.nodeProvider=X7});var qI=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var hu=(te(),Y(ee));hu.__exportStar(iu(),co);hu.__exportStar(Ry(),co);hu.__exportStar(TI(),co);hu.__exportStar(BI(),co)});var MI=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.resolveSSOCredentials=void 0;var DI=AN(),W7=qI(),Aa=xe(),Y7=wt(),Oa=!1,J7=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let E=await(0,W7.fromSso)({profile:c})();i={accessToken:E.token,expiresAt:new Date(E.expiration).toISOString()}}catch(E){throw new Aa.CredentialsProviderError(E.message,Oa)}else try{i=await(0,Y7.getSSOTokenFromFile)(e)}catch{throw new Aa.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Oa)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new Aa.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Oa);let{accessToken:l}=i,a=s||new DI.SSOClient({region:r}),y;try{y=await a.send(new DI.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(E){throw Aa.CredentialsProviderError.from(E,Oa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:A}={}}=y;if(!g||!C||!v||!A)throw new Aa.CredentialsProviderError("SSO returns an invalid temporary credential.",Oa);return{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:new Date(A)}};_u.resolveSSOCredentials=J7});var By=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.validateSsoProfile=void 0;var Q7=xe(),Z7=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:o}=e;if(!n||!t||!r||!o)throw new Q7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Cu.validateSsoProfile=Z7});var LI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromSSO=void 0;var Na=xe(),qy=wt(),eJ=ty(),FI=MI(),tJ=By(),nJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,qy.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,qy.parseKnownFiles)(e))[i];if(!l)throw new Na.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,eJ.isSsoProfile)(l))throw new Na.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let E=(await(0,qy.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==E.sso_region)throw new Na.CredentialsProviderError("Conflicting SSO region"+G,!1);if(n&&n!==E.sso_start_url)throw new Na.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=E.sso_region,l.sso_start_url=E.sso_start_url}let{sso_start_url:a,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:v}=(0,tJ.validateSsoProfile)(l);return(0,FI.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:v,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Na.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,FI.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};Su.fromSSO=nJ});var zI=m(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0})});var Eu=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var bu=(te(),Y(ee));bu.__exportStar(LI(),lo);bu.__exportStar(ty(),lo);bu.__exportStar(zI(),lo);bu.__exportStar(By(),lo)});var GI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveSsoCredentials=uo.isSsoProfile=void 0;var UI=Eu(),rJ=Eu();Object.defineProperty(uo,"isSsoProfile",{enumerable:!0,get:function(){return rJ.isSsoProfile}});var oJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,UI.validateSsoProfile)(e);return(0,UI.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};uo.resolveSsoCredentials=oJ});var HI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveStaticCredentials=mo.isStaticCredsProfile=void 0;var sJ=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;mo.isStaticCredsProfile=sJ;var iJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});mo.resolveStaticCredentials=iJ});var Dy=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.fromWebToken=void 0;var aJ=xe(),cJ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new aJ.CredentialsProviderError(`Role Arn '${n}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:n,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:c,DurationSeconds:i})};Pu.fromWebToken=cJ});var $I=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.fromTokenFile=void 0;var dJ=xe(),lJ=require("fs"),uJ=Dy(),mJ="AWS_WEB_IDENTITY_TOKEN_FILE",pJ="AWS_ROLE_ARN",fJ="AWS_ROLE_SESSION_NAME",yJ=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[mJ],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[pJ],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[fJ];if(!o||!s)throw new dJ.CredentialsProviderError("Web identity configuration not specified");return(0,uJ.fromWebToken)({...e,webIdentityToken:(0,lJ.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};vu.fromTokenFile=yJ});var My=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var KI=(te(),Y(ee));KI.__exportStar($I(),wu);KI.__exportStar(Dy(),wu)});var VI=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.resolveWebIdentityCredentials=po.isWebIdentityProfile=void 0;var gJ=My(),hJ=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;po.isWebIdentityProfile=hJ;var _J=async(e,n)=>(0,gJ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();po.resolveWebIdentityCredentials=_J});var Jf=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.resolveProfileData=void 0;var CJ=xe(),XI=rO(),WI=cO(),YI=GI(),xu=HI(),JI=VI(),SJ=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,XI.isAssumeRoleProfile)(o))return(0,XI.resolveAssumeRoleCredentials)(e,n,t,r);if((0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,JI.isWebIdentityProfile)(o))return(0,JI.resolveWebIdentityCredentials)(o,t);if((0,WI.isProcessProfile)(o))return(0,WI.resolveProcessCredentials)(t,e);if((0,YI.isSsoProfile)(o))return(0,YI.resolveSsoCredentials)(o);throw new CJ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ku.resolveProfileData=SJ});var ZI=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.fromIni=void 0;var QI=wt(),bJ=Jf(),EJ=(e={})=>async()=>{let n=await(0,QI.parseKnownFiles)(e);return(0,bJ.resolveProfileData)((0,QI.getProfileName)(e),n,e)};Au.fromIni=EJ});var eR=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var PJ=(te(),Y(ee));PJ.__exportStar(ZI(),Fy)});var tR=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.remoteProvider=gr.ENV_IMDS_DISABLED=void 0;var Ou=hl(),vJ=xe();gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var wJ=e=>process.env[Ou.ENV_CMDS_RELATIVE_URI]||process.env[Ou.ENV_CMDS_FULL_URI]?(0,Ou.fromContainerMetadata)(e):process.env[gr.ENV_IMDS_DISABLED]?async()=>{throw new vJ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Ou.fromInstanceMetadata)(e);gr.remoteProvider=wJ});var nR=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.defaultProvider=void 0;var xJ=Hf(),kJ=eR(),AJ=ey(),OJ=Eu(),NJ=My(),Ly=xe(),IJ=wt(),RJ=tR(),TJ=(e={})=>(0,Ly.memoize)((0,Ly.chain)(...e.profile||process.env[IJ.ENV_PROFILE]?[]:[(0,xJ.fromEnv)()],(0,OJ.fromSSO)(e),(0,kJ.fromIni)(e),(0,AJ.fromProcess)(e),(0,NJ.fromTokenFile)(e),(0,RJ.remoteProvider)(e),async()=>{throw new Ly.CredentialsProviderError("Could not load credentials from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);Nu.defaultProvider=TJ});var zy=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var BJ=(te(),Y(ee));BJ.__exportStar(nR(),jy)});var vR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.ruleSet=void 0;var fR="required",oe="type",pe="fn",fe="argv",Kn="ref",rR=!1,qJ=!0,hr="booleanEquals",Ht="tree",Ve="stringEquals",yR="sigv4",gR="sts",hR="us-east-1",Ee="endpoint",oR="https://sts.{Region}.{PartitionResult#dnsSuffix}",fo="error",Gy="getAttr",sR={[fR]:!1,[oe]:"String"},Uy={[fR]:!0,default:!1,[oe]:"Boolean"},_R={[Kn]:"Endpoint"},iR={[pe]:"isSet",[fe]:[{[Kn]:"Region"}]},Xe={[Kn]:"Region"},aR={[pe]:"aws.partition",[fe]:[Xe],assign:"PartitionResult"},CR={[Kn]:"UseFIPS"},SR={[Kn]:"UseDualStack"},et={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:hR}]},headers:{}},ut={},cR={conditions:[{[pe]:Ve,[fe]:[Xe,"aws-global"]}],[Ee]:et,[oe]:Ee},bR={[pe]:hr,[fe]:[CR,!0]},ER={[pe]:hr,[fe]:[SR,!0]},dR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[{[Kn]:"PartitionResult"},"supportsFIPS"]}]},PR={[Kn]:"PartitionResult"},lR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[PR,"supportsDualStack"]}]},uR=[{[pe]:"isSet",[fe]:[_R]}],mR=[bR],pR=[ER],DJ={version:"1.0",parameters:{Region:sR,UseDualStack:Uy,UseFIPS:Uy,Endpoint:sR,UseGlobalEndpoint:Uy},rules:[{conditions:[{[pe]:hr,[fe]:[{[Kn]:"UseGlobalEndpoint"},qJ]},{[pe]:"not",[fe]:uR},iR,aR,{[pe]:hr,[fe]:[CR,rR]},{[pe]:hr,[fe]:[SR,rR]}],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-northeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-south-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-2"]}],endpoint:et,[oe]:Ee},cR,{conditions:[{[pe]:Ve,[fe]:[Xe,"ca-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-north-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-3"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"sa-east-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,hR]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-east-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-2"]}],endpoint:et,[oe]:Ee},{endpoint:{url:oR,properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:"{Region}"}]},headers:ut},[oe]:Ee}]},{conditions:uR,[oe]:Ht,rules:[{conditions:mR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[oe]:fo},{conditions:pR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[oe]:fo},{endpoint:{url:_R,properties:ut,headers:ut},[oe]:Ee}]},{conditions:[iR],[oe]:Ht,rules:[{conditions:[aR],[oe]:Ht,rules:[{conditions:[bR,ER],[oe]:Ht,rules:[{conditions:[dR,lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[oe]:fo}]},{conditions:mR,[oe]:Ht,rules:[{conditions:[dR],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:["aws-us-gov",{[pe]:Gy,[fe]:[PR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ut,headers:ut},[oe]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[oe]:fo}]},{conditions:pR,[oe]:Ht,rules:[{conditions:[lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[oe]:fo}]},cR,{endpoint:{url:oR,properties:ut,headers:ut},[oe]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[oe]:fo}]};Iu.ruleSet=DJ});var wR=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.defaultEndpointResolver=void 0;var MJ=jr(),FJ=vR(),LJ=(e,n={})=>(0,MJ.resolveEndpoint)(FJ.ruleSet,{endpointParams:e,logger:n.logger});Ru.defaultEndpointResolver=LJ});var AR=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getRuntimeConfig=void 0;var jJ=b(),zJ=mr(),xR=Pr(),kR=yt(),UJ=wR(),GJ=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??xR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??xR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??UJ.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new jJ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??zJ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??kR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??kR.toUtf8});Tu.getRuntimeConfig=GJ});var IR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getRuntimeConfig=void 0;var HJ=(te(),Y(ee)),$J=HJ.__importDefault(Qk()),KJ=Uf(),VJ=zy(),XJ=pa(),Bu=Mt(),WJ=fa(),OR=sn(),Ia=on(),NR=vr(),YJ=ya(),JJ=zr(),QJ=AR(),ZJ=b(),eQ=_a(),tQ=b(),nQ=e=>{(0,tQ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,eQ.resolveDefaultsModeConfig)(e),t=()=>n().then(ZJ.loadConfigsForDefaultMode),r=(0,QJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??YJ.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,KJ.decorateDefaultCredentialProvider)(VJ.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,XJ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:$J.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ia.loadConfig)(OR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Ia.loadConfig)(Bu.NODE_REGION_CONFIG_OPTIONS,Bu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new NR.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ia.loadConfig)({...OR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||JJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??WJ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??NR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Ia.loadConfig)(Bu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Ia.loadConfig)(Bu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};qu.getRuntimeConfig=nQ});var qR=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.resolveRuntimeExtensions=void 0;var RR=Ml(),TR=Ne(),BR=b(),Hy=e=>e,rQ=(e,n)=>{let t={...Hy((0,RR.getAwsRegionExtensionConfiguration)(e)),...Hy((0,BR.getDefaultExtensionConfiguration)(e)),...Hy((0,TR.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,RR.resolveAwsRegionExtensionConfiguration)(t),...(0,BR.resolveDefaultRuntimeConfig)(t),...(0,TR.resolveHttpHandlerRuntimeConfig)(t)}};Du.resolveRuntimeExtensions=rQ});var Mu=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.STSClient=yo.__Client=void 0;var DR=Ni(),oQ=Ii(),sQ=Ri(),iQ=Yk(),MR=Ji(),aQ=Mt(),cQ=Qi(),dQ=x(),FR=sn(),LR=b();Object.defineProperty(yo,"__Client",{enumerable:!0,get:function(){return LR.Client}});var lQ=Jk(),uQ=IR(),mQ=qR(),$y=class e extends LR.Client{constructor(...[n]){let t=(0,uQ.getRuntimeConfig)(n||{}),r=(0,lQ.resolveClientEndpointParameters)(t),o=(0,aQ.resolveRegionConfig)(r),s=(0,dQ.resolveEndpointConfig)(o),c=(0,FR.resolveRetryConfig)(s),i=(0,DR.resolveHostHeaderConfig)(c),u=(0,iQ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,MR.resolveUserAgentConfig)(u),a=(0,mQ.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,FR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,cQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,DR.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,oQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,sQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,MR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yo.STSClient=$y});var Vy=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.AssumeRoleWithSAMLCommand=go.$Command=void 0;var pQ=x(),fQ=k(),UR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return UR.Command}});var yQ=w(),jR=Dn(),zR=dn(),Ky=class e extends UR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:jR.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:jR.AssumeRoleWithSAMLResponseFilterSensitiveLog,[yQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zR.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,zR.de_AssumeRoleWithSAMLCommand)(n,t)}};go.AssumeRoleWithSAMLCommand=Ky});var Wy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DecodeAuthorizationMessageCommand=ho.$Command=void 0;var gQ=rn(),hQ=x(),_Q=k(),HR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return HR.Command}});var CQ=w(),GR=dn(),Xy=class e extends HR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_Q.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,gQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[CQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GR.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,GR.de_DecodeAuthorizationMessageCommand)(n,t)}};ho.DecodeAuthorizationMessageCommand=Xy});var Jy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetAccessKeyInfoCommand=_o.$Command=void 0;var SQ=rn(),bQ=x(),EQ=k(),KR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return KR.Command}});var PQ=w(),$R=dn(),Yy=class e extends KR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,EQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,SQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[PQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$R.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,$R.de_GetAccessKeyInfoCommand)(n,t)}};_o.GetAccessKeyInfoCommand=Yy});var Zy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetCallerIdentityCommand=Co.$Command=void 0;var vQ=rn(),wQ=x(),xQ=k(),XR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return XR.Command}});var kQ=w(),VR=dn(),Qy=class e extends XR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VR.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,VR.de_GetCallerIdentityCommand)(n,t)}};Co.GetCallerIdentityCommand=Qy});var tg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetFederationTokenCommand=So.$Command=void 0;var AQ=rn(),OQ=x(),NQ=k(),YR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return YR.Command}});var IQ=w(),RQ=Dn(),WR=dn(),eg=class e extends YR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,NQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,OQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,AQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:RQ.GetFederationTokenResponseFilterSensitiveLog,[IQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WR.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,WR.de_GetFederationTokenCommand)(n,t)}};So.GetFederationTokenCommand=eg});var rg=m(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.GetSessionTokenCommand=bo.$Command=void 0;var TQ=rn(),BQ=x(),qQ=k(),QR=b();Object.defineProperty(bo,"$Command",{enumerable:!0,get:function(){return QR.Command}});var DQ=w(),MQ=Dn(),JR=dn(),ng=class e extends QR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,BQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,TQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:MQ.GetSessionTokenResponseFilterSensitiveLog,[DQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JR.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,JR.de_GetSessionTokenCommand)(n,t)}};bo.GetSessionTokenCommand=ng});var ZR=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.STS=void 0;var FQ=b(),LQ=ml(),jQ=Vy(),zQ=pl(),UQ=Wy(),GQ=Jy(),HQ=Zy(),$Q=tg(),KQ=rg(),VQ=Mu(),XQ={AssumeRoleCommand:LQ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:jQ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:zQ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:UQ.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:GQ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:HQ.GetCallerIdentityCommand,GetFederationTokenCommand:$Q.GetFederationTokenCommand,GetSessionTokenCommand:KQ.GetSessionTokenCommand},Fu=class extends VQ.STSClient{};Lu.STS=Fu;(0,FQ.createAggregatedClient)(XQ,Fu)});var eT=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var Vn=(te(),Y(ee));Vn.__exportStar(ml(),$t);Vn.__exportStar(Vy(),$t);Vn.__exportStar(pl(),$t);Vn.__exportStar(Wy(),$t);Vn.__exportStar(Jy(),$t);Vn.__exportStar(Zy(),$t);Vn.__exportStar(tg(),$t);Vn.__exportStar(rg(),$t)});var tT=m(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var WQ=(te(),Y(ee));WQ.__exportStar(Dn(),og)});var sT=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.decorateDefaultCredentialProvider=Kt.getDefaultRoleAssumerWithWebIdentity=Kt.getDefaultRoleAssumer=void 0;var nT=Uf(),rT=Mu(),oT=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,YQ=(e={},n)=>(0,nT.getDefaultRoleAssumer)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumer=YQ;var JQ=(e={},n)=>(0,nT.getDefaultRoleAssumerWithWebIdentity)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumerWithWebIdentity=JQ;var QQ=e=>n=>e({roleAssumer:(0,Kt.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,Kt.getDefaultRoleAssumerWithWebIdentity)(n),...n});Kt.decorateDefaultCredentialProvider=QQ});var iT=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.STSServiceException=void 0;var Ra=(te(),Y(ee));Ra.__exportStar(Mu(),gn);Ra.__exportStar(ZR(),gn);Ra.__exportStar(eT(),gn);Ra.__exportStar(tT(),gn);Ra.__exportStar(sT(),gn);var ZQ=al();Object.defineProperty(gn,"STSServiceException",{enumerable:!0,get:function(){return ZQ.STSServiceException}})});var aT=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var ju=Id();Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,ju.SelectorType.ENV),configFileSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,ju.SelectorType.CONFIG),default:!1}});var cT=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Xt.NODE_USE_ARN_REGION_INI_NAME=Xt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var zu=Id();Xt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Xt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_ENV_NAME,zu.SelectorType.ENV),configFileSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_INI_NAME,zu.SelectorType.CONFIG),default:!1}});var ag=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.validateMrapAlias=Z.validateNoFIPS=Z.validateNoDualstack=Z.getArnResources=Z.validateCustomEndpoint=Z.validateDNSHostLabel=Z.validateAccountId=Z.validateRegionalClient=Z.validateRegion=Z.validatePartition=Z.validateOutpostService=Z.validateS3Service=Z.validateService=Z.validateArnEndpointOptions=Z.getSuffixForArnEndpoint=Z.getSuffix=Z.isDnsCompatibleBucketName=Z.isBucketNameOptions=Z.S3_HOSTNAME_PATTERN=Z.DOT_PATTERN=void 0;var eZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,tZ=/(\d+\.){3}\d+/,nZ=/\.\./;Z.DOT_PATTERN=/\./;Z.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var dT=/^s3(-external-1)?\.amazonaws\.com$/,ig="amazonaws.com",rZ=e=>typeof e.bucketName=="string";Z.isBucketNameOptions=rZ;var oZ=e=>eZ.test(e)&&!tZ.test(e)&&!nZ.test(e);Z.isDnsCompatibleBucketName=oZ;var lT=e=>{let n=e.match(Z.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},sZ=e=>dT.test(e)?["us-east-1",ig]:lT(e);Z.getSuffix=sZ;var iZ=e=>dT.test(e)?[e.replace(`.${ig}`,""),ig]:lT(e);Z.getSuffixForArnEndpoint=iZ;var aZ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};Z.validateArnEndpointOptions=aZ;var cZ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};Z.validateService=cZ;var dZ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};Z.validateS3Service=dZ;var lZ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};Z.validateOutpostService=lZ;var uZ=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};Z.validatePartition=uZ;var mZ=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!sg(e,n.clientRegion))throw new Error(`Client FIPS region ${n.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!n.useArnRegion&&!sg(e,n.clientRegion||"")&&!sg(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};Z.validateRegion=mZ;var pZ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};Z.validateRegionalClient=pZ;var sg=(e,n)=>e===n,fZ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};Z.validateAccountId=fZ;var yZ=(e,n={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||n!=null&&n.tlsCompatible&&Z.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};Z.validateDNSHostLabel=yZ;var gZ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};Z.validateCustomEndpoint=gZ;var hZ=e=>{let n=e.includes(":")?":":"/",[t,...r]=e.split(n);if(t==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${n}{accesspointname}`);return{accesspointName:r[0]}}else if(t==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${n}{outpostId}${n}accesspoint${n}{accesspointName}`);let[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};Z.getArnResources=hZ;var _Z=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};Z.validateNoDualstack=_Z;var CZ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};Z.validateNoFIPS=CZ;var SZ=e=>{try{e.split(".").forEach(n=>{(0,Z.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};Z.validateMrapAlias=SZ});var cg=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.bucketHostname=void 0;var ge=ag(),bZ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?EZ(e):PZ(e));Uu.bucketHostname=bZ;var EZ=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,ge.getSuffix)(t);return c||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},PZ=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,ge.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:v,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:a}),(0,ge.validateAccountId)(C);let{accesspointName:E,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?vZ({...e,tlsCompatible:u,bucketName:l,accesspointName:E,hostnameSuffix:o}):v===""?wZ({...e,clientRegion:r,mrapAlias:E,hostnameSuffix:o}):G?xZ({...e,clientRegion:r,outpostId:G,accesspointName:E,hostnameSuffix:o}):kZ({...e,clientRegion:r,accesspointName:E,hostnameSuffix:o})},vZ=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ge.validateNoDualstack)(e);let g=`${c}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:t});let C=r?a:o,v=r?a:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${n?"-fips":""}.${C}.${u}`,signingRegion:v,signingService:y}},wZ=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},xZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:n,C=e?r.region:t;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},kZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(a,{tlsCompatible:c});let y=e?r.region:n,g=e?r.region:t;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var pT=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getBucketEndpointPlugin=Wt.bucketEndpointMiddlewareOptions=Wt.bucketEndpointMiddleware=void 0;var uT=yp(),AZ=Ne(),mT=cg(),OZ=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(AZ.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,uT.validate)(o)){let i=(0,uT.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:v,bucketEndpoint:A,signingRegion:E,signingService:G}=(0,mT.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});E&&E!==g&&(t.signing_region=E),G&&G!=="s3"&&(t.signing_service=G),c.hostname=v,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:y}=(0,mT.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});c.hostname=a,s=y}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};Wt.bucketEndpointMiddleware=OZ;Wt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var NZ=e=>({applyToStack:n=>{n.addRelativeTo((0,Wt.bucketEndpointMiddleware)(e),Wt.bucketEndpointMiddlewareOptions)}});Wt.getBucketEndpointPlugin=NZ});var fT=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveBucketEndpointConfig=void 0;function IZ(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Gu.resolveBucketEndpointConfig=IZ});var yT=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Ta=(te(),Y(ee));Ta.__exportStar(aT(),Se);Ta.__exportStar(cT(),Se);Ta.__exportStar(pT(),Se);Ta.__exportStar(cg(),Se);Ta.__exportStar(fT(),Se);var hn=ag();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return hn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return hn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return hn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return hn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return hn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return hn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return hn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return hn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return hn.validateNoFIPS}})});var ET=m((vxe,bT)=>{var Hu=Object.defineProperty,RZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,BZ=Object.prototype.hasOwnProperty,Eo=(e,n)=>Hu(e,"name",{value:n,configurable:!0}),qZ=(e,n)=>{for(var t in n)Hu(e,t,{get:n[t],enumerable:!0})},DZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of TZ(n))!BZ.call(e,o)&&o!==t&&Hu(e,o,{get:()=>n[o],enumerable:!(r=RZ(n,o))||r.enumerable});return e},MZ=e=>DZ(Hu({},"__esModule",{value:!0}),e),gT={};qZ(gT,{EventStreamMarshaller:()=>ST,eventStreamSerdeProvider:()=>FZ});bT.exports=MZ(gT);var Ba=wp();function hT(e){let n=0,t=0,r=null,o=null,s=Eo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);n=i,t=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),c=Eo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(n)if(n===t)yield r;else throw new Error("Truncated event message received.");else return;return}let a=u.length,y=0;for(;ynew ST(e),"eventStreamSerdeProvider")});var AT=m((xxe,kT)=>{var $u=Object.defineProperty,LZ=Object.getOwnPropertyDescriptor,jZ=Object.getOwnPropertyNames,zZ=Object.prototype.hasOwnProperty,dg=(e,n)=>$u(e,"name",{value:n,configurable:!0}),UZ=(e,n)=>{for(var t in n)$u(e,t,{get:n[t],enumerable:!0})},GZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jZ(n))!zZ.call(e,o)&&o!==t&&$u(e,o,{get:()=>n[o],enumerable:!(r=LZ(n,o))||r.enumerable});return e},HZ=e=>GZ($u({},"__esModule",{value:!0}),e),PT={};UZ(PT,{EventStreamMarshaller:()=>xT,eventStreamSerdeProvider:()=>VZ});kT.exports=HZ(PT);var $Z=ET(),KZ=require("stream");async function*vT(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}dg(vT,"readabletoIterable");var wT=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new $Z.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:vT(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return KZ.Readable.from(this.universalMarshaller.serialize(n,t))}};dg(wT,"EventStreamMarshaller");var xT=wT,VZ=dg(e=>new xT(e),"eventStreamSerdeProvider")});var TT=m((Axe,RT)=>{var Ku=Object.defineProperty,XZ=Object.getOwnPropertyDescriptor,WZ=Object.getOwnPropertyNames,YZ=Object.prototype.hasOwnProperty,Vu=(e,n)=>Ku(e,"name",{value:n,configurable:!0}),JZ=(e,n)=>{for(var t in n)Ku(e,t,{get:n[t],enumerable:!0})},QZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of WZ(n))!YZ.call(e,o)&&o!==t&&Ku(e,o,{get:()=>n[o],enumerable:!(r=XZ(n,o))||r.enumerable});return e},ZZ=e=>QZ(Ku({},"__esModule",{value:!0}),e),OT={};JZ(OT,{fileStreamHasher:()=>ree,readableStreamHasher:()=>see});RT.exports=ZZ(OT);var eee=require("fs"),tee=yt(),nee=require("stream"),NT=class extends nee.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,tee.toUint8Array)(n))}catch(o){return r(o)}r()}};Vu(NT,"HashCalculator");var IT=NT,ree=Vu((e,n)=>new Promise((t,r)=>{if(!oee(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,eee.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new IT(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})}),"fileStreamHasher"),oee=Vu(e=>typeof e.path=="string","isReadStream"),see=Vu((e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new IT(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})},"readableStreamHasher")});var Wu=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.signatureV4CrtContainer=void 0;Xu.signatureV4CrtContainer={CrtSignerV4:null}});var BT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.loadCrt=void 0;var iee=Wu();function aee(){if(!iee.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. To avoid this warning, please explicitly import the package in your application with: import "@aws-sdk/signature-v4-crt"; // ESM @@ -36,11 +36,11 @@ In a future version of the AWS SDK for JavaScript (v3), this warning will become an error and dynamic loading will not be available. See https://github.com/aws/aws-sdk-js-v3/issues/5229. -`))}catch{}}Yu.loadCrt=see});var qT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.SignatureV4MultiRegion=void 0;var iee=Np(),aee=BT(),cee=Wu(),lg=class{constructor(n){this.sigv4Signer=new iee.SignatureV4(n),this.signerOptions=n}async sign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(n,t)}return this.sigv4Signer.sign(n,t)}async presign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(n,t)}return this.sigv4Signer.presign(n,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let n=null;try{if((0,aee.loadCrt)(),n=cee.signatureV4CrtContainer.CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} +`))}catch{}}Yu.loadCrt=aee});var qT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.SignatureV4MultiRegion=void 0;var cee=Np(),dee=BT(),lee=Wu(),lg=class{constructor(n){this.sigv4Signer=new cee.SignatureV4(n),this.signerOptions=n}async sign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(n,t)}return this.sigv4Signer.sign(n,t)}async presign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(n,t)}return this.sigv4Signer.presign(n,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let n=null;try{if((0,dee.loadCrt)(),n=lee.signatureV4CrtContainer.CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} Please check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new n({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Ju.SignatureV4MultiRegion=lg});var MT=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var DT=(te(),Y(ee));DT.__exportStar(qT(),Qu);DT.__exportStar(Wu(),Qu)});var XB=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ruleSet=void 0;var Mg="required",h="type",S="conditions",O="fn",N="argv",re="ref",We="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",FT=!1,Yt=!0,Jt="isSet",j="tree",tt="booleanEquals",H="error",nm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",Ba="substring",IB="hardwareType",RB="regionPrefix",LT="bucketAliasSuffix",Bg="outpostId",_r="isValidHostLabel",Ot="not",TB="parseURL",Fg="s3-outposts",z="endpoint",jT="aws.isVirtualHostableS3Bucket",vo="s3",BB="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",qB="{url#scheme}://{Bucket}.{url#authority}{url#path}",DB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",zT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",MB="aws.parseArn",FB="bucketArn",LB="arnType",rm="",Lg="s3-object-lambda",jB="accesspoint",jg="accessPointName",UT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",GT="mrapPartition",HT="outpostType",$T="arnPrefix",zB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",KT="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",qg="{url#scheme}://{url#authority}{url#path}",VT="https://s3.{partitionResult#dnsSuffix}",ug={[Mg]:!1,[h]:"String"},Po={[Mg]:!0,default:!1,[h]:"Boolean"},mg={[Mg]:!1,[h]:"Boolean"},At={[O]:tt,[N]:[{[re]:"Accelerate"},!0]},Pe={[O]:tt,[N]:[{[re]:"UseFIPS"},!0]},_e={[O]:tt,[N]:[{[re]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[re]:"Endpoint"}]},UB={[O]:nm,[N]:[{[re]:"Region"}],[We]:"partitionResult"},XT={[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]},"aws-cn"]},GB={[O]:Jt,[N]:[{[re]:"Bucket"}]},_n={[re]:"Bucket"},WT={[re]:IB},YT={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},ne={[O]:Ot,[N]:[Ie]},ot={[O]:TB,[N]:[{[re]:"Endpoint"}],[We]:"url"},Zu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{Region}"}]},ae={},pg={[O]:tt,[N]:[{[re]:"ForcePathStyle"},!1]},dee={[re]:"ForcePathStyle"},De={[O]:tt,[N]:[{[re]:"Accelerate"},!1]},Fe={[O]:ke,[N]:[{[re]:"Region"},"aws-global"]},Ue={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"us-east-1"}]},de={[O]:Ot,[N]:[Fe]},Ge={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!0]},JT={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},[V]:{}},Me={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},He={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!1]},ce={[O]:tt,[N]:[{[re]:"UseDualStack"},!1]},QT={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},se={[O]:tt,[N]:[{[re]:"UseFIPS"},!1]},ZT={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},eB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},fg={[O]:tt,[N]:[{[O]:Re,[N]:[{[re]:"url"},"isIp"]},!0]},HB={[re]:"url"},yg={[O]:tt,[N]:[{[O]:Re,[N]:[HB,"isIp"]},!1]},gg={[$]:BB,[K]:Me,[V]:{}},Dg={[$]:qB,[K]:Me,[V]:{}},tB={[z]:Dg,[h]:z},hg={[$]:DB,[K]:Me,[V]:{}},nB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},em={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},at={[re]:FB},$B={[re]:LB},_g={[O]:Re,[N]:[at,"service"]},zg={[re]:jg},rB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},oB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},sB={[S]:[{[O]:Jt,[N]:[{[re]:"DisableAccessPoints"}]},{[O]:tt,[N]:[{[re]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Cg={[S]:[{[O]:Jt,[N]:[{[re]:"UseArnRegion"}]},{[O]:tt,[N]:[{[re]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},KB={[O]:Re,[N]:[{[re]:"bucketPartition"},Ct]},VB={[O]:Re,[N]:[at,"accountId"]},Sg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{bucketArn#region}"}]},iB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},bg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},Eg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},Pg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},aB={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},cB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},qa={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{bucketArn#region}"}]},dB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{bucketArn#region}"}]},lB={[O]:MB,[N]:[_n]},uB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},mB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},pB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},vg={[$]:zB,[K]:Me,[V]:{}},fB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},yB={[re]:"UseObjectLambdaEndpoint"},wg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{Region}"}]},gB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},hB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},_B={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},xg={[$]:qg,[K]:Me,[V]:{}},CB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},kg=[{[re]:"Region"}],lee=[{[re]:"Endpoint"}],SB=[_n],bB=[{[O]:_r,[N]:[{[re]:Bg},!1]}],EB=[{[O]:ke,[N]:[{[re]:RB},"beta"]}],Da=[Ie,ot],PB=[GB],Xn=[UB],vB=[{[O]:_r,[N]:[{[re]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[re]:"Region"},"us-east-1"]}],Ag=[{[O]:ke,[N]:[$B,jB]}],wB=[{[O]:Re,[N]:[at,"resourceId[1]"],[We]:jg},{[O]:Ot,[N]:[{[O]:ke,[N]:[zg,rm]}]}],uee=[at,"resourceId[1]"],xB=[_e],Og=[At],Ng=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},rm]}]}],kB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[2]"]}]}]}],mee=[at,"resourceId[2]"],Ig=[{[O]:nm,[N]:[{[O]:Re,[N]:[at,"region"]}],[We]:"bucketPartition"}],AB=[{[O]:ke,[N]:[KB,{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]}]}],Rg=[{[O]:_r,[N]:[{[O]:Re,[N]:[at,"region"]},!0]}],Tg=[{[O]:_r,[N]:[VB,!1]}],OB=[{[O]:_r,[N]:[zg,!1]}],tm=[Pe],NB=[{[O]:_r,[N]:[{[re]:"Region"},!0]}],pee={version:"1.0",parameters:{Bucket:ug,Region:ug,UseFIPS:Po,UseDualStack:Po,Endpoint:ug,ForcePathStyle:Po,Accelerate:Po,UseGlobalEndpoint:Po,UseObjectLambdaEndpoint:mg,DisableAccessPoints:mg,DisableMultiRegionAccessPoints:Po,UseArnRegion:mg},rules:[{[S]:[{[O]:Jt,[N]:kg}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,UB,XT],error:"Partition does not support FIPS",[h]:H},{[S]:[GB,{[O]:Ba,[N]:[_n,49,50,Yt],[We]:IB},{[O]:Ba,[N]:[_n,8,12,Yt],[We]:RB},{[O]:Ba,[N]:[_n,0,7,Yt],[We]:LT},{[O]:Ba,[N]:[_n,32,49,Yt],[We]:Bg},{[O]:nm,[N]:kg,[We]:"regionPartition"},{[O]:ke,[N]:[{[re]:LT},"--op-s3"]}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[WT,"e"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Da,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{[S]:[{[O]:ke,[N]:[WT,"o"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Da,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:PB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:TB,[N]:lee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[pg,{[O]:jT,[N]:[_n,FT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[{[S]:[At,XT],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:JT,[h]:z}]},{[S]:[_e,Pe,De,ne,de,He],endpoint:JT,[h]:z},{[S]:[ce,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:QT,[h]:z}]},{[S]:[ce,Pe,De,ne,de,He],endpoint:QT,[h]:z},{[S]:[_e,se,At,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,At,ne,de,Ge],[h]:j,rules:[{endpoint:ZT,[h]:z}]},{[S]:[_e,se,At,ne,de,He],endpoint:ZT,[h]:z},{[S]:[_e,se,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,De,ne,de,Ge],[h]:j,rules:[{endpoint:eB,[h]:z}]},{[S]:[_e,se,De,ne,de,He],endpoint:eB,[h]:z},{[S]:[ce,se,De,Ie,ot,fg,Fe],endpoint:{[$]:BB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,yg,Fe],endpoint:{[$]:qB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,fg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:gg,[h]:z},{endpoint:gg,[h]:z}]},{[S]:[ce,se,De,Ie,ot,yg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:Dg,[h]:z},tB]},{[S]:[ce,se,De,Ie,ot,fg,de,He],endpoint:gg,[h]:z},{[S]:[ce,se,De,Ie,ot,yg,de,He],endpoint:Dg,[h]:z},{[S]:[ce,se,At,ne,Fe],endpoint:{[$]:DB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,At,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:hg,[h]:z},{endpoint:hg,[h]:z}]},{[S]:[ce,se,At,ne,de,He],endpoint:hg,[h]:z},{[S]:[ce,se,De,ne,Fe],endpoint:{[$]:zT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:zT,[K]:Me,[V]:ae},[h]:z},{endpoint:nB,[h]:z}]},{[S]:[ce,se,De,ne,de,He],endpoint:nB,[h]:z}]},em]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[HB,"scheme"]},"http"]},{[O]:jT,[N]:[_n,Yt]},pg,se,ce,De],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[tB]},em]}]},{[S]:[pg,{[O]:MB,[N]:SB,[We]:FB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[0]"],[We]:LB},{[O]:Ot,[N]:[{[O]:ke,[N]:[$B,rm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,Lg]}],[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[rB,oB,{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[VB,rm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Da,endpoint:{[$]:UT,[K]:Sg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z}]},iB]},bg]},Eg]},Pg]}]}]},aB]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},cB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[KB,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,vo]}],[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Og,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[Pe,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[se,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot],endpoint:{[$]:UT,[K]:qa,[V]:ae},[h]:z},{[S]:[se,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z}]},iB]},bg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},Eg]},Pg]}]}]},aB]}]}]},{[S]:[{[O]:_r,[N]:[zg,Yt]}],[h]:j,rules:[{[S]:xB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:tm,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Og,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:tt,[N]:[{[re]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:nm,[N]:kg,[We]:GT}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:GT},Ct]},{[O]:Re,[N]:[at,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:vo,signingRegionSet:["*"]}]},[V]:ae},[h]:z}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},cB]},{[S]:[{[O]:ke,[N]:[_g,Fg]}],[h]:j,rules:[{[S]:xB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:tm,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Og,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:uee,[We]:Bg}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:mee,[We]:HT}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[3]"],[We]:jg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[re]:HT},jB]}],[h]:j,rules:[{[S]:Da,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:dB,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:dB,[V]:ae},[h]:z}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},bg]},Eg]},Pg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:Ba,[N]:[_n,0,4,FT],[We]:$T},{[O]:ke,[N]:[{[re]:$T},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[lB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:tt,[N]:[dee,Yt]},lB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:SB,[We]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[De],[h]:j,rules:[{[S]:[_e,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:uB,[h]:z}]},{[S]:[_e,ne,Pe,de,He],endpoint:uB,[h]:z},{[S]:[ce,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:mB,[h]:z}]},{[S]:[ce,ne,Pe,de,He],endpoint:mB,[h]:z},{[S]:[_e,ne,se,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,se,de,Ge],[h]:j,rules:[{endpoint:pB,[h]:z}]},{[S]:[_e,ne,se,de,He],endpoint:pB,[h]:z},{[S]:[ce,Ie,ot,se,Fe],endpoint:{[$]:zB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Ie,ot,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:vg,[h]:z},{endpoint:vg,[h]:z}]},{[S]:[ce,Ie,ot,se,de,He],endpoint:vg,[h]:z},{[S]:[ce,ne,se,Fe],endpoint:{[$]:KT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:KT,[K]:Me,[V]:ae},[h]:z},{endpoint:fB,[h]:z}]},{[S]:[ce,ne,se,de,He],endpoint:fB,[h]:z}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[yB]},{[O]:tt,[N]:[yB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[rB,oB,{[S]:Da,endpoint:{[$]:qg,[K]:wg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z}]},em]}]},{[S]:[{[O]:Ot,[N]:PB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:[Pe,_e,ne,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,_e,ne,de,Ge],[h]:j,rules:[{endpoint:gB,[h]:z}]},{[S]:[Pe,_e,ne,de,He],endpoint:gB,[h]:z},{[S]:[Pe,ce,ne,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,ce,ne,de,Ge],[h]:j,rules:[{endpoint:hB,[h]:z}]},{[S]:[Pe,ce,ne,de,He],endpoint:hB,[h]:z},{[S]:[se,_e,ne,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[se,_e,ne,de,Ge],[h]:j,rules:[{endpoint:_B,[h]:z}]},{[S]:[se,_e,ne,de,He],endpoint:_B,[h]:z},{[S]:[se,ce,Ie,ot,Fe],endpoint:{[$]:qg,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:xg,[h]:z},{endpoint:xg,[h]:z}]},{[S]:[se,ce,Ie,ot,de,He],endpoint:xg,[h]:z},{[S]:[se,ce,ne,Fe],endpoint:{[$]:VT,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:VT,[K]:Me,[V]:ae},[h]:z},{endpoint:CB,[h]:z}]},{[S]:[se,ce,ne,de,He],endpoint:CB,[h]:z}]},em]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};om.ruleSet=pee});var WB=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.defaultEndpointResolver=void 0;var fee=jr(),yee=XB(),gee=(e,n={})=>(0,fee.resolveEndpoint)(yee.ruleSet,{endpointParams:e,logger:n.logger});sm.defaultEndpointResolver=gee});var ZB=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getRuntimeConfig=void 0;var hee=MT(),_ee=b(),Cee=mr(),YB=Pr(),JB=np(),QB=yt(),See=WB(),bee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??YB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??YB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??See.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??JB.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new _ee.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??JB.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??hee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??Cee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??QB.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??QB.toUtf8});im.getRuntimeConfig=bee});var nq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getRuntimeConfig=void 0;var Eee=(te(),Y(ee)),Pee=Eee.__importDefault(Wk()),vee=iT(),wee=zy(),xee=yT(),kee=pa(),am=Mt(),Aee=AT(),Ug=fa(),Oee=TT(),eq=sn(),wo=on(),tq=vr(),Nee=ya(),Iee=zr(),Ree=ZB(),Tee=b(),Bee=ha(),qee=b(),Dee=e=>{(0,qee.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Bee.resolveDefaultsModeConfig)(e),t=()=>n().then(Tee.loadConfigsForDefaultMode),r=(0,Ree.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Nee.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,vee.decorateDefaultCredentialProvider)(wee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,kee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Pee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Aee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,wo.loadConfig)(eq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Ug.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,wo.loadConfig)(am.NODE_REGION_CONFIG_OPTIONS,am.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new tq.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,wo.loadConfig)({...eq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Iee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Ug.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Ug.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??tq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??Oee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,wo.loadConfig)(xee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,wo.loadConfig)(am.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,wo.loadConfig)(am.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};cm.getRuntimeConfig=Dee});var iq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.resolveRuntimeExtensions=void 0;var rq=Ml(),oq=Ne(),sq=b(),Gg=e=>e,Mee=(e,n)=>{let t={...Gg((0,rq.getAwsRegionExtensionConfiguration)(e)),...Gg((0,sq.getDefaultExtensionConfiguration)(e)),...Gg((0,oq.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,rq.resolveAwsRegionExtensionConfiguration)(t),...(0,sq.resolveDefaultRuntimeConfig)(t),...(0,oq.resolveHttpHandlerRuntimeConfig)(t)}};dm.resolveRuntimeExtensions=Mee});var Ma=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.S3Client=xo.__Client=void 0;var Fee=Nb(),aq=Ni(),Lee=Ii(),jee=Ri(),cq=Or(),dq=rn(),lq=Ji(),zee=Mt(),Uee=tx(),Gee=Qi(),Hee=x(),uq=sn(),mq=b();Object.defineProperty(xo,"__Client",{enumerable:!0,get:function(){return mq.Client}});var $ee=Xk(),Kee=nq(),Vee=iq(),Hg=class extends mq.Client{constructor(...[n]){let t=(0,Kee.getRuntimeConfig)(n||{}),r=(0,$ee.resolveClientEndpointParameters)(t),o=(0,zee.resolveRegionConfig)(r),s=(0,Hee.resolveEndpointConfig)(o),c=(0,uq.resolveRetryConfig)(s),i=(0,aq.resolveHostHeaderConfig)(c),u=(0,dq.resolveAwsAuthConfig)(i),l=(0,cq.resolveS3Config)(u),a=(0,lq.resolveUserAgentConfig)(l),y=(0,Uee.resolveEventStreamSerdeConfig)(a),g=(0,Vee.resolveRuntimeExtensions)(y,(n==null?void 0:n.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,uq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Gee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,aq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Lee.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,jee.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,dq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Fee.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,lq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};xo.S3Client=Hg});var pq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeAttribute=void 0;function Xee(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}lm.escapeAttribute=Xee});var fq=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.escapeElement=void 0;function Wee(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}um.escapeElement=Wee});var Kg=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlText=void 0;var Yee=fq(),$g=class{constructor(n){this.value=n}toString(){return(0,Yee.escapeElement)(""+this.value)}};mm.XmlText=$g});var yq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.XmlNode=void 0;var Jee=pq(),Qee=Kg(),Vg=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new Qee.XmlText(t)),r!==void 0&&o.withName(r),o}constructor(n,t=[]){this.name=n,this.children=t,this.attributes={}}withName(n){return this.name=n,this}addAttribute(n,t){return this.attributes[n]=t,this}addChildNode(n){return this.children.push(n),this}removeAttribute(n){return delete this.attributes[n],this}toString(){let n=!!this.children.length,t=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(t+=` ${o}="${(0,Jee.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};pm.XmlNode=Vg});var hq=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var gq=(te(),Y(ee));gq.__exportStar(yq(),fm);gq.__exportStar(Kg(),fm)});var Fa=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.S3ServiceException=ko.__ServiceException=void 0;var _q=b();Object.defineProperty(ko,"__ServiceException",{enumerable:!0,get:function(){return _q.ServiceException}});var Xg=class e extends _q.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};ko.S3ServiceException=Xg});var Ye=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=Fa();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Wg=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Wg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var Yg=class e extends Jn.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=Yg;var Jg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=Jg;var Qg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=Qg;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var Zee;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(Zee=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var ete;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.ObjectSizeGreaterThan!==void 0?t.ObjectSizeGreaterThan(n.ObjectSizeGreaterThan):n.ObjectSizeLessThan!==void 0?t.ObjectSizeLessThan(n.ObjectSizeLessThan):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(ete=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var tte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.AccessPointArn!==void 0?t.AccessPointArn(n.AccessPointArn):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(tte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var nte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(nte=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var Zg=class e extends Jn.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};_.InvalidObjectState=Zg;var eh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=eh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var th=class e extends Jn.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=th;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var nh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=nh;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var rte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=rte;var ote=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=ote;var ste=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=ste;var ite=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=ite;var ate=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=ate;var cte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=cte;var dte=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=dte;var lte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=lte;var ute=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=ute;var mte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=mte;var pte=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=pte;var fte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=fte;var yte=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=yte;var gte=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=gte;var hte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=hte;var _te=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_te;var Cte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=bte;var Ete=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=Pte;var vte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=vte;var wte=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,_.InventoryConfigurationFilterSensitiveLog)(n))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=wte;var xte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=xte;var kte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=kte;var Ate=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Nte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Ite=Fa(),rh=class e extends Ite.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=rh;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Rte;(function(e){e.visit=(n,t)=>n.Records!==void 0?t.Records(n.Records):n.Stats!==void 0?t.Stats(n.Stats):n.Progress!==void 0?t.Progress(n.Progress):n.Cont!==void 0?t.Cont(n.Cont):n.End!==void 0?t.End(n.End):t._(n.$unknown[0],n.$unknown[1])})(Rte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var Tte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=Tte;var Bte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Bte;var qte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=qte;var Dte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Mte;var Fte=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=Lte;var jte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=jte;var zte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=zte;var Ute=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=Ute;var Gte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=$te});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=hq(),B=Ne(),d=b(),Kte=Mf(),St=Ye(),Vte=Zn(),Xte=Fa(),Wte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Wte;var Yte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Pq(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=Pq(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Yte;var Jte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=Jte;var Qte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>P(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=wq(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=wq(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=Qte;var Zte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=Zte;var ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=ene;var tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=tne;var nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=nne;var rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=rne;var one=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=one;var sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=sne;var ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=ine;var ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=ane;var cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=cne;var dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=dne;var lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=lne;var une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=une;var mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=mne;var pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=pne;var fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=xq(e.Delete,n));let a;return e.Delete!==void 0&&(a=xq(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=fne;var yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=yne;var gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=gne;var hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=hne;var _ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=_ne;var Cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=Cne;var Sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Sne;var bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=bne;var Ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=Ene;var Pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=Pne;var vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=vne;var wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=wne;var xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=xne;var kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=kne;var Ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Ane;var One=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=One;var Nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Nne;var Ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Ine;var Rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Rne;var Tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Tne;var Bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Bne;var qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=qne;var Dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Dne;var Mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=Mne;var Fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=Fne;var Lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-max-parts":[()=>P(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>P(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=Lne;var jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=jne;var zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=zne;var Une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Une;var Gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=Gne;var Hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Hne;var $ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=$ne;var Kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Kne;var Vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Vne;var Xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Xne;var Wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Wne;var Yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Yne;var Jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=Jne;var Qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=Qne;var Zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=Zne;var ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=ere;var tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=tre;var nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=nre;var rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=rre;var ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Cq(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=Cq(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=ore;var sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=sre;var ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Sq(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=Sq(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=ire;var are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=vq(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=vq(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=are;var cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Lq(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=Lq(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=cre;var dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=kq(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=kq(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=dre;var lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Aq(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=Aq(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=lre;var ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=bq(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=bq(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=ure;var mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Eq(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=Eq(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=mre;var pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=Oq(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=Oq(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=pre;var fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>P(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Nq(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=Nq(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=fre;var yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=Bq(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=Bq(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=yre;var gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>P(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let a;return e.Policy!==void 0&&(a=e.Policy,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=gre;var hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Dq(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=Dq(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=hre;var _re=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Mq(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=Mq(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=_re;var Cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=La(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=La(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=Cre;var Sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=jq(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=jq(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Sre;var bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=zq(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=zq(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=bre;var Ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=Ere;var Pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=Pre;var vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Rq(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=Rq(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=vre;var wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=Iq(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=Iq(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=wre;var xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Tq(e.Retention,n));let a;return e.Retention!==void 0&&(a=Tq(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=xre;var kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=La(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=La(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=kre;var Are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=qq(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=qq(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Are;var Ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Fq(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=Fq(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=Ore;var Nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let a=new f.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(y)}if(e.InputSerialization!==void 0){let y=Kq(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=Vq(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(y)}if(e.RequestProgress!==void 0){let y=qce(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(y)}if(e.ScanRange!==void 0){let y=jce(e.ScanRange,n).withName("ScanRange");a.addChildNode(y)}return l+=a.toString(),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Nre;var Ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/octet-stream","content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=Ire;var Rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Rre;var Tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>P(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>P(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>P(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>P(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>P(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>P(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let a;e.Body!==void 0&&(a=e.Body,l=a);let{hostname:y}=await n.endpoint();if(n.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Tre;var Bre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return qre(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Bre;var qre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await aae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Dre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(t.Location=(0,d.expectString)(r.Location)),t};p.de_CompleteMultipartUploadCommand=Dre;var Mre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyObjectResult=Ede(r,n),t};p.de_CopyObjectCommand=Fre;var Lre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await dae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},jre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zre(e,n);let t=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=jre;var zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await oae(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await sae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Ure=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gre(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_CreateMultipartUploadCommand=Ure;var Gre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return $re(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Hre;var $re=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Vre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Kre;var Vre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Wre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Xre;var Wre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Yre;var Jre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Zre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=Qre;var Zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return toe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=eoe;var toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},noe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return roe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=noe;var roe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ooe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return soe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=ooe;var soe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=ioe;var aoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=coe;var doe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=loe;var uoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=moe;var poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=foe;var yoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectCommand=goe;var hoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Coe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=Ade((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=Mde((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=_oe;var Coe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return boe(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=Soe;var boe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=Eoe;var Poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return woe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=voe;var woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetBucketAclCommand=xoe;var koe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ooe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.AnalyticsConfiguration=Wq(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=Aoe;var Ooe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ioe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=wde((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=Noe;var Ioe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Toe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ServerSideEncryptionConfiguration=Jle(r,n),t};p.de_GetBucketEncryptionCommand=Roe;var Toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.IntelligentTieringConfiguration=eD(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Boe;var qoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Moe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.InventoryConfiguration=tD(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Doe;var Moe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Loe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=cle((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=Foe;var Loe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=joe;var zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=dle(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Uoe;var Goe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.MetricsConfiguration=nD(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Hoe;var $oe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=Fde(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=rle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=Mle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=mue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Koe;var Voe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.OwnershipControls=kle(r,n),t};p.de_GetBucketOwnershipControlsCommand=Xoe;var Woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=await iD(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Yoe;var Joe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PolicyStatus=Tle(r,n),t};p.de_GetBucketPolicyStatusCommand=Qoe;var Zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ReplicationConfiguration=zle(r,n),t};p.de_GetBucketReplicationCommand=ese;var tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=nse;var rse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=ose;var sse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.MfaDelete!==void 0&&(t.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketVersioningCommand=ise;var ase=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Dde(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=$de(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=Lle(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Xle((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=cse;var dse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=lse;var use=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await iae(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},mse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetObjectAclCommand=mse;var pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=_de(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=Gde(r.ObjectParts,n)),r.ObjectSize!==void 0&&(t.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),t};p.de_GetObjectAttributesCommand=fse;var yse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},gse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.LegalHold=ble(r,n),t};p.de_GetObjectLegalHoldCommand=gse;var hse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_se=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ObjectLockConfiguration=Sle(r,n),t};p.de_GetObjectLockConfigurationCommand=_se;var Cse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.Retention=Ele(r,n),t};p.de_GetObjectRetentionCommand=Sse;var bse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=Ese;var Pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=vse;var wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PublicAccessBlockConfiguration=qle(r,n),t};p.de_GetPublicAccessBlockCommand=xse;var kse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ase=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=Ase;var Ose=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=Nse;var Ise=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=mde((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketAnalyticsConfigurationsCommand=Rse;var Tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?t.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(t.IntelligentTieringConfigurationList=Vde((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketIntelligentTieringConfigurationsCommand=Bse;var qse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?t.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(t.InventoryConfigurationList=Wde((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketInventoryConfigurationsCommand=Dse;var Mse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?t.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(t.MetricsConfigurationList=mle((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=Fse;var Lse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=hde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_ListBucketsCommand=jse;var zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Use=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(t.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(t.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(t.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?t.Uploads=[]:r.Upload!==void 0&&(t.Uploads=yle((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Use;var Gse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(t.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(t.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),t};p.de_ListObjectsCommand=Hse;var $se=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Kse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(t.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(t.StartAfter=(0,d.expectString)(r.StartAfter)),t};p.de_ListObjectsV2Command=Kse;var Vse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=Ide((0,d.getArrayIfSingleItem)(r.DeleteMarker),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(t.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(t.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?t.Versions=[]:r.Version!==void 0&&(t.Versions=xle((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Xse;var Wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(t.Initiator=Zq(r.Initiator,n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=Ile((0,d.getArrayIfSingleItem)(r.Part),n)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_ListPartsCommand=Yse;var Jse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=Qse;var Zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=eie;var tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=nie;var rie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=oie;var sie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=iie;var aie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=cie;var die=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=lie;var uie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=mie;var pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=fie;var yie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=gie;var hie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=_ie;var Cie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=Sie;var bie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=Eie;var Pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=vie;var wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=xie;var kie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=Aie;var Oie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=Nie;var Iie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Rie;var Tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectCommand=Bie;var qie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=Die;var Mie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=Fie;var Lie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=jie;var zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Uie;var Gie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Hie;var $ie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Kie;var Vie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,n),t};p.de_RestoreObjectCommand=Xie;var Wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await cae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Yie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,n);let t=(0,d.map)({$metadata:I(e)}),r=e.body;return t.Payload=lae(r,n),t};p.de_SelectObjectContentCommand=Yie;var Jie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,n);let t=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_UploadPartCommand=Qie;var Zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,n);let t=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyPartResult=Pde(r,n),t};p.de_UploadPartCopyCommand=eae;var tae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=nae;var rae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(Xte.S3ServiceException),oae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},sae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},iae=async(e,n)=>{let t=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Uq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},gm=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},aae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Gq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},cae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Vte.ObjectAlreadyInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},dae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},lae=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await fae(t.Records,n)}:t.Stats!=null?{Stats:await yae(t.Stats,n)}:t.Progress!=null?{Progress:await pae(t.Progress,n)}:t.Cont!=null?{Cont:await uae(t.Cont,n)}:t.End!=null?{End:await mae(t.End,n)}:{$unknown:e}),uae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,bde(r,n)),t},mae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Bde(r,n)),t},pae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=Ble(r,n),t},fae=async(e,n)=>{let t={};return t.Payload=e.body,t},yae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=oue(r,n),t},gae=(e,n)=>{let t=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},Cq=(e,n)=>{let t=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},ym=(e,n)=>{let t=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=$q(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=bce(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},hae=(e,n)=>{let t=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},_ae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),Cae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),Sae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),bae=(e,n)=>{let t=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Sq=(e,n)=>{let t=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Pae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Wce(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},Eae=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=vae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Pae=(e,n)=>{let t=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=bae(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},vae=(e,n)=>{let t=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},bq=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&cce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Eq=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=dce(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},Pq=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&xae(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},wae=(e,n)=>{let t=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},xae=(e,n)=>e.filter(t=>t!=null).map(t=>wae(t,n).withName("member")),kae=(e,n)=>{let t=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},vq=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&Oae(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},Aae=(e,n)=>{let t=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&_ae(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&Cae(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&Sae(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&jae(e.ExposeHeaders,n).map(o=>{o=o.withName("ExposeHeader"),t.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},Oae=(e,n)=>e.filter(t=>t!=null).map(t=>Aae(t,n).withName("member")),wq=(e,n)=>{let t=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},Nae=(e,n)=>{let t=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},Iae=(e,n)=>{let t=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},Rae=(e,n)=>{let t=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},xq=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&_ce(e.Objects,n).map(o=>{o=o.withName("Object"),t.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},Tae=(e,n)=>{let t=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Bae=(e,n)=>{let t=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=hae(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Dae(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Bce(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=uce(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},qae=(e,n)=>{let t=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},Dae=(e,n)=>{let t=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},Mae=(e,n)=>{let t=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},Fae=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),oh=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),Lae=(e,n)=>{let t=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},jae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),zae=(e,n)=>{let t=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Uae=(e,n)=>e.filter(t=>t!=null).map(t=>zae(t,n).withName("member")),Gae=(e,n)=>{let t=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Hae=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Hq=(e,n)=>{let t=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},$q=(e,n)=>e.filter(t=>t!=null).map(t=>Hae(t,n).withName("Grant")),$ae=(e,n)=>{let t=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},Kq=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Nae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=ece(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=vce(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Kae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},kq=(e,n)=>{let t=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Vae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&ede(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Vae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=Ao(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Kae(e.And,n).withName("And");t.addChildNode(r)}return t},Aq=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Xae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Yae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=Jae(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=Zae(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Xae=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=Qae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Wae=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Xce(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Kce(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Yae=(e,n)=>{let t=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},Jae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),Qae=(e,n)=>{let t=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Wae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},Zae=(e,n)=>{let t=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},ece=(e,n)=>{let t=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},tce=(e,n)=>{let t=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},nce=(e,n)=>{let t=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},rce=(e,n)=>e.filter(t=>t!=null).map(t=>nce(t,n).withName("member")),oce=(e,n)=>{let t=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},sce=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=oce(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=ace(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&ode(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&gce(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=fce(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=gae(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},ice=(e,n)=>{let t=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},ace=(e,n)=>{let t=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(o)},And:r=>{let o=ice(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},cce=(e,n)=>e.filter(t=>t!=null).map(t=>sce(t,n).withName("member")),dce=(e,n)=>{let t=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=Qce(e.TargetGrants,n),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},lce=(e,n)=>{let t=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},uce=(e,n)=>{let t=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=Xq(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},mce=(e,n)=>{let t=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},Oq=(e,n)=>{let t=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=pce(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},pce=(e,n)=>{let t=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(o)},And:r=>{let o=mce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},fce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},yce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},gce=(e,n)=>e.filter(t=>t!=null).map(t=>yce(t,n).withName("member")),Nq=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&nde(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&xce(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&rce(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=Fae(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},sh=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=Fce(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},hce=(e,n)=>{let t=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},_ce=(e,n)=>e.filter(t=>t!=null).map(t=>hce(t,n).withName("member")),Iq=(e,n)=>{let t=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=Cce(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},Rq=(e,n)=>{let t=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Tq=(e,n)=>{let t=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},Cce=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Rae(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},Sce=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=Lce(e.S3,n).withName("S3");t.addChildNode(r)}return t},Vq=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Iae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=tce(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},bce=(e,n)=>{let t=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},Bq=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&Pce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Ece=(e,n)=>{let t=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},Pce=(e,n)=>e.filter(t=>t!=null).map(t=>Ece(t,n).withName("member")),vce=(e,n)=>new f.XmlNode("ParquetInput"),qq=(e,n)=>{let t=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},wce=(e,n)=>{let t=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},xce=(e,n)=>e.filter(t=>t!=null).map(t=>wce(t,n).withName("member")),kce=(e,n)=>{let t=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},Ace=(e,n)=>{let t=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},Oce=(e,n)=>{let t=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dq=(e,n)=>{let t=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&Tce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Nce=(e,n)=>{let t=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Rce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=$ce(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=Lae(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Bae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Tae(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Ice=(e,n)=>{let t=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Rce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Ice(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},Tce=(e,n)=>e.filter(t=>t!=null).map(t=>Nce(t,n).withName("member")),Bce=(e,n)=>{let t=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=Xq(e.Time,n).withName("Time");t.addChildNode(r)}return t},Xq=(e,n)=>{let t=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},Mq=(e,n)=>{let t=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},qce=(e,n)=>{let t=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},Fq=(e,n)=>{let t=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=Gae(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=zce(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=Sce(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Dce=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=kae(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=kce(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},Mce=(e,n)=>e.filter(t=>t!=null).map(t=>Dce(t,n).withName("RoutingRule")),Fce=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Uae(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},Lce=(e,n)=>{let t=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=qae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=$q(e.AccessControlList,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Tagging!=null){let r=La(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=sde(e.UserMetadata,n),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},jce=(e,n)=>{let t=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},zce=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=Kq(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=Vq(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Uce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},Lq=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Hce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Gce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Uce(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Hce=(e,n)=>e.filter(t=>t!=null).map(t=>Gce(t,n).withName("member")),$ce=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Vce(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=Oce(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Kce=(e,n)=>{let t=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Vce=(e,n)=>{let t=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Xce=(e,n)=>new f.XmlNode("SSE-S3"),Wce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Yce(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Yce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=Eae(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Ao=(e,n)=>{let t=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},La=(e,n)=>{let t=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Oo(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Oo=(e,n)=>e.filter(t=>t!=null).map(t=>Ao(t,n).withName("Tag")),Jce=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Qce=(e,n)=>e.filter(t=>t!=null).map(t=>Jce(t,n).withName("Grant")),Zce=(e,n)=>{let t=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},ede=(e,n)=>e.filter(t=>t!=null).map(t=>Zce(t,n).withName("member")),tde=(e,n)=>{let t=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},nde=(e,n)=>e.filter(t=>t!=null).map(t=>tde(t,n).withName("member")),rde=(e,n)=>{let t=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},ode=(e,n)=>e.filter(t=>t!=null).map(t=>rde(t,n).withName("member")),sde=(e,n)=>e.filter(t=>t!=null).map(t=>lce(t,n).withName("MetadataEntry")),jq=(e,n)=>{let t=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},zq=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Mae(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=$ae(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Ace(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=Mce(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},ide=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},ade=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},cde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),dde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ude=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Wq=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=fde((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=sue(e.StorageClassAnalysis,n)),t},mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wq(t,n)),pde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=yde(e.S3BucketDestination,n)),t},fde=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:ude(e.And,n)}:{$unknown:Object.entries(e)[0]},yde=(e,n)=>{let t={};return e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(t.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},gde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(t.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),t},hde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gde(t,n)),_de=(e,n)=>{let t={};return e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Yq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Cde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},hm=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cde(t,n)),Sde=(e,n)=>{let t={};return e.HttpErrorCodeReturnedEquals!==void 0&&(t.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(t.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),t},bde=(e,n)=>({}),Ede=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Pde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},vde=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?t.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(t.AllowedHeaders=cde((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=dde((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=lde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=jde((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vde(t,n)),xde=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(t.Years=(0,d.strictParseInt32)(e.Years)),t},kde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(t.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(t.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),t},Ade=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>kde(t,n)),Ode=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),t},Nde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ide=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ode(t,n)),Rde=(e,n)=>{let t={};return e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(t.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(t.AccessControlTranslation=ade(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=Tde(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Kle(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=lle(e.Metrics,n)),t},Tde=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Bde=(e,n)=>({}),qde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(t.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(t.Message=(0,d.expectString)(e.Message)),t},Dde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},Mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>qde(t,n)),Fde=(e,n)=>({}),ih=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Lde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},jde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),zde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>zde(t,n)),Gde=(e,n)=>{let t={};return e.PartsCount!==void 0&&(t.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?t.Parts=[]:e.Part!==void 0&&(t.Parts=Rle((0,d.getArrayIfSingleItem)(e.Part),n)),t},Hde=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Jq=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(t.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(t.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(t.Type=(0,d.expectString)(e["xsi:type"])),t},Qq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Hde(t,n)),$de=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},Zq=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),t},Kde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},eD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Xde(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=lue((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Vde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eD(t,n)),Xde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=No(e.Tag,n)),e.And!==void 0&&(t.And=Kde(e.And,n)),t},tD=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Yde(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=Qde(e.Filter,n)),e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(t.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?t.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(t.OptionalFields=Zde((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=tle(e.Schedule,n)),t},Wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>tD(t,n)),Yde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=ele(e.S3BucketDestination,n)),t},Jde=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=rue(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=tue(e["SSE-KMS"],n)),t},Qde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},Zde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ele=(e,n)=>{let t={};return e.AccountId!==void 0&&(t.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(t.Encryption=Jde(e.Encryption,n)),t},tle=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},nle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(t.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},rle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nle(t,n)),ole=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(t.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),t},sle=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=ole(e.Expiration,n)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=ale((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Transition===""?t.Transitions=[]:e.Transition!==void 0&&(t.Transitions=fue((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=_le((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=gle(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=ide(e.AbortIncompleteMultipartUpload,n)),t},ile=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},ale=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:ile(e.And,n)}:{$unknown:Object.entries(e)[0]},cle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>sle(t,n)),dle=(e,n)=>{let t={};return e.TargetBucket!==void 0&&(t.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?t.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(t.TargetGrants=cue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},lle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=oD(e.EventThreshold,n)),t},ule=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},nD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=ple((0,d.expectUnion)(e.Filter),n)),t},mle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nD(t,n)),ple=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:ule(e.And,n)}:{$unknown:Object.entries(e)[0]},fle=(e,n)=>{let t={};return e.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(t.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=Zq(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>fle(t,n)),gle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},hle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},_le=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>hle(t,n)),ah=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Wle(e.S3Key,n)),t},Cle=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},rD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cle(t,n)),Sle=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=Ple(e.Rule,n)),t},ble=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ele=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(t.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),t},Ple=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=xde(e.DefaultRetention,n)),t},vle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},wle=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},xle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>wle(t,n)),er=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),t},kle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Ole((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ale=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},Ole=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ale(t,n)),Nle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Ile=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nle(t,n)),Rle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vle(t,n)),Tle=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Ble=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},qle=(e,n)=>{let t={};return e.BlockPublicAcls!==void 0&&(t.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(t.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(t.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(t.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),t},Dle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(t.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},Mle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Dle(t,n)),Fle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(t.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(t.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(t.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),t},Lle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),t},jle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},zle=(e,n)=>{let t={};return e.Role!==void 0&&(t.Role=(0,d.expectString)(e.Role)),e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=$le((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ule=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(t.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Hle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=eue(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=Lde(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Rde(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=Nde(e.DeleteMarkerReplication,n)),t},Gle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Hle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:Gle(e.And,n)}:{$unknown:Object.entries(e)[0]},$le=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ule(t,n)),Kle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=oD(e.Time,n)),t},oD=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},sD=(e,n)=>{let t={};return e.IsRestoreInProgress!==void 0&&(t.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(t.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),t},Vle=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=Sde(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=Fle(e.Redirect,n)),t},Xle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Vle(t,n)),Wle=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Ude((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Yle=(e,n)=>{let t={};return e.SSEAlgorithm!==void 0&&(t.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(t.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),t},Jle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Zle((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Qle=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Yle(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},Zle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Qle(t,n)),eue=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=nue(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=jle(e.ReplicaModifications,n)),t},tue=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},nue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},rue=(e,n)=>({}),oue=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},sue=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=iue(e.DataExport,n)),t},iue=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=pde(e.Destination,n)),t},No=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Cr=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>No(t,n)),aue=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},cue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>aue(t,n)),due=(e,n)=>{let t={};return e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(e.AccessTier)),t},lue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>due(t,n)),uue=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(t.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},mue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>uue(t,n)),pue=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),t},fue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pue(t,n)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),iD=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),P=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,n)=>iD(e,n).then(t=>{if(t.length){let r=new Kte.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new n({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Ju.SignatureV4MultiRegion=lg});var MT=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var DT=(te(),Y(ee));DT.__exportStar(qT(),Qu);DT.__exportStar(Wu(),Qu)});var XB=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ruleSet=void 0;var Mg="required",h="type",S="conditions",O="fn",N="argv",re="ref",We="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",FT=!1,Yt=!0,Jt="isSet",j="tree",tt="booleanEquals",H="error",nm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",qa="substring",IB="hardwareType",RB="regionPrefix",LT="bucketAliasSuffix",Bg="outpostId",_r="isValidHostLabel",Ot="not",TB="parseURL",Fg="s3-outposts",z="endpoint",jT="aws.isVirtualHostableS3Bucket",vo="s3",BB="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",qB="{url#scheme}://{Bucket}.{url#authority}{url#path}",DB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",zT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",MB="aws.parseArn",FB="bucketArn",LB="arnType",rm="",Lg="s3-object-lambda",jB="accesspoint",jg="accessPointName",UT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",GT="mrapPartition",HT="outpostType",$T="arnPrefix",zB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",KT="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",qg="{url#scheme}://{url#authority}{url#path}",VT="https://s3.{partitionResult#dnsSuffix}",ug={[Mg]:!1,[h]:"String"},Po={[Mg]:!0,default:!1,[h]:"Boolean"},mg={[Mg]:!1,[h]:"Boolean"},At={[O]:tt,[N]:[{[re]:"Accelerate"},!0]},Pe={[O]:tt,[N]:[{[re]:"UseFIPS"},!0]},_e={[O]:tt,[N]:[{[re]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[re]:"Endpoint"}]},UB={[O]:nm,[N]:[{[re]:"Region"}],[We]:"partitionResult"},XT={[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]},"aws-cn"]},GB={[O]:Jt,[N]:[{[re]:"Bucket"}]},_n={[re]:"Bucket"},WT={[re]:IB},YT={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},ne={[O]:Ot,[N]:[Ie]},ot={[O]:TB,[N]:[{[re]:"Endpoint"}],[We]:"url"},Zu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{Region}"}]},ae={},pg={[O]:tt,[N]:[{[re]:"ForcePathStyle"},!1]},uee={[re]:"ForcePathStyle"},De={[O]:tt,[N]:[{[re]:"Accelerate"},!1]},Fe={[O]:ke,[N]:[{[re]:"Region"},"aws-global"]},Ue={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"us-east-1"}]},de={[O]:Ot,[N]:[Fe]},Ge={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!0]},JT={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},[V]:{}},Me={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},He={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!1]},ce={[O]:tt,[N]:[{[re]:"UseDualStack"},!1]},QT={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},se={[O]:tt,[N]:[{[re]:"UseFIPS"},!1]},ZT={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},eB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},fg={[O]:tt,[N]:[{[O]:Re,[N]:[{[re]:"url"},"isIp"]},!0]},HB={[re]:"url"},yg={[O]:tt,[N]:[{[O]:Re,[N]:[HB,"isIp"]},!1]},gg={[$]:BB,[K]:Me,[V]:{}},Dg={[$]:qB,[K]:Me,[V]:{}},tB={[z]:Dg,[h]:z},hg={[$]:DB,[K]:Me,[V]:{}},nB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},em={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},at={[re]:FB},$B={[re]:LB},_g={[O]:Re,[N]:[at,"service"]},zg={[re]:jg},rB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},oB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},sB={[S]:[{[O]:Jt,[N]:[{[re]:"DisableAccessPoints"}]},{[O]:tt,[N]:[{[re]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Cg={[S]:[{[O]:Jt,[N]:[{[re]:"UseArnRegion"}]},{[O]:tt,[N]:[{[re]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},KB={[O]:Re,[N]:[{[re]:"bucketPartition"},Ct]},VB={[O]:Re,[N]:[at,"accountId"]},Sg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{bucketArn#region}"}]},iB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},bg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},Eg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},Pg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},aB={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},cB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},Da={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{bucketArn#region}"}]},dB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{bucketArn#region}"}]},lB={[O]:MB,[N]:[_n]},uB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},mB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},pB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},vg={[$]:zB,[K]:Me,[V]:{}},fB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},yB={[re]:"UseObjectLambdaEndpoint"},wg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{Region}"}]},gB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},hB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},_B={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},xg={[$]:qg,[K]:Me,[V]:{}},CB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},kg=[{[re]:"Region"}],mee=[{[re]:"Endpoint"}],SB=[_n],bB=[{[O]:_r,[N]:[{[re]:Bg},!1]}],EB=[{[O]:ke,[N]:[{[re]:RB},"beta"]}],Ma=[Ie,ot],PB=[GB],Xn=[UB],vB=[{[O]:_r,[N]:[{[re]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[re]:"Region"},"us-east-1"]}],Ag=[{[O]:ke,[N]:[$B,jB]}],wB=[{[O]:Re,[N]:[at,"resourceId[1]"],[We]:jg},{[O]:Ot,[N]:[{[O]:ke,[N]:[zg,rm]}]}],pee=[at,"resourceId[1]"],xB=[_e],Og=[At],Ng=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},rm]}]}],kB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[2]"]}]}]}],fee=[at,"resourceId[2]"],Ig=[{[O]:nm,[N]:[{[O]:Re,[N]:[at,"region"]}],[We]:"bucketPartition"}],AB=[{[O]:ke,[N]:[KB,{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]}]}],Rg=[{[O]:_r,[N]:[{[O]:Re,[N]:[at,"region"]},!0]}],Tg=[{[O]:_r,[N]:[VB,!1]}],OB=[{[O]:_r,[N]:[zg,!1]}],tm=[Pe],NB=[{[O]:_r,[N]:[{[re]:"Region"},!0]}],yee={version:"1.0",parameters:{Bucket:ug,Region:ug,UseFIPS:Po,UseDualStack:Po,Endpoint:ug,ForcePathStyle:Po,Accelerate:Po,UseGlobalEndpoint:Po,UseObjectLambdaEndpoint:mg,DisableAccessPoints:mg,DisableMultiRegionAccessPoints:Po,UseArnRegion:mg},rules:[{[S]:[{[O]:Jt,[N]:kg}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,UB,XT],error:"Partition does not support FIPS",[h]:H},{[S]:[GB,{[O]:qa,[N]:[_n,49,50,Yt],[We]:IB},{[O]:qa,[N]:[_n,8,12,Yt],[We]:RB},{[O]:qa,[N]:[_n,0,7,Yt],[We]:LT},{[O]:qa,[N]:[_n,32,49,Yt],[We]:Bg},{[O]:nm,[N]:kg,[We]:"regionPartition"},{[O]:ke,[N]:[{[re]:LT},"--op-s3"]}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[WT,"e"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{[S]:[{[O]:ke,[N]:[WT,"o"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:PB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:TB,[N]:mee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[pg,{[O]:jT,[N]:[_n,FT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[{[S]:[At,XT],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:JT,[h]:z}]},{[S]:[_e,Pe,De,ne,de,He],endpoint:JT,[h]:z},{[S]:[ce,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:QT,[h]:z}]},{[S]:[ce,Pe,De,ne,de,He],endpoint:QT,[h]:z},{[S]:[_e,se,At,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,At,ne,de,Ge],[h]:j,rules:[{endpoint:ZT,[h]:z}]},{[S]:[_e,se,At,ne,de,He],endpoint:ZT,[h]:z},{[S]:[_e,se,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,De,ne,de,Ge],[h]:j,rules:[{endpoint:eB,[h]:z}]},{[S]:[_e,se,De,ne,de,He],endpoint:eB,[h]:z},{[S]:[ce,se,De,Ie,ot,fg,Fe],endpoint:{[$]:BB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,yg,Fe],endpoint:{[$]:qB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,fg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:gg,[h]:z},{endpoint:gg,[h]:z}]},{[S]:[ce,se,De,Ie,ot,yg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:Dg,[h]:z},tB]},{[S]:[ce,se,De,Ie,ot,fg,de,He],endpoint:gg,[h]:z},{[S]:[ce,se,De,Ie,ot,yg,de,He],endpoint:Dg,[h]:z},{[S]:[ce,se,At,ne,Fe],endpoint:{[$]:DB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,At,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:hg,[h]:z},{endpoint:hg,[h]:z}]},{[S]:[ce,se,At,ne,de,He],endpoint:hg,[h]:z},{[S]:[ce,se,De,ne,Fe],endpoint:{[$]:zT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:zT,[K]:Me,[V]:ae},[h]:z},{endpoint:nB,[h]:z}]},{[S]:[ce,se,De,ne,de,He],endpoint:nB,[h]:z}]},em]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[HB,"scheme"]},"http"]},{[O]:jT,[N]:[_n,Yt]},pg,se,ce,De],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[tB]},em]}]},{[S]:[pg,{[O]:MB,[N]:SB,[We]:FB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[0]"],[We]:LB},{[O]:Ot,[N]:[{[O]:ke,[N]:[$B,rm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,Lg]}],[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[rB,oB,{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[VB,rm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Ma,endpoint:{[$]:UT,[K]:Sg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z}]},iB]},bg]},Eg]},Pg]}]}]},aB]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},cB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[KB,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,vo]}],[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Og,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[Pe,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[se,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot],endpoint:{[$]:UT,[K]:Da,[V]:ae},[h]:z},{[S]:[se,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z}]},iB]},bg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},Eg]},Pg]}]}]},aB]}]}]},{[S]:[{[O]:_r,[N]:[zg,Yt]}],[h]:j,rules:[{[S]:xB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:tm,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Og,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:tt,[N]:[{[re]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:nm,[N]:kg,[We]:GT}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:GT},Ct]},{[O]:Re,[N]:[at,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:vo,signingRegionSet:["*"]}]},[V]:ae},[h]:z}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},cB]},{[S]:[{[O]:ke,[N]:[_g,Fg]}],[h]:j,rules:[{[S]:xB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:tm,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Og,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:pee,[We]:Bg}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:fee,[We]:HT}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[3]"],[We]:jg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[re]:HT},jB]}],[h]:j,rules:[{[S]:Ma,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:dB,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:dB,[V]:ae},[h]:z}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},bg]},Eg]},Pg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:qa,[N]:[_n,0,4,FT],[We]:$T},{[O]:ke,[N]:[{[re]:$T},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[lB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:tt,[N]:[uee,Yt]},lB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:SB,[We]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[De],[h]:j,rules:[{[S]:[_e,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:uB,[h]:z}]},{[S]:[_e,ne,Pe,de,He],endpoint:uB,[h]:z},{[S]:[ce,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:mB,[h]:z}]},{[S]:[ce,ne,Pe,de,He],endpoint:mB,[h]:z},{[S]:[_e,ne,se,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,se,de,Ge],[h]:j,rules:[{endpoint:pB,[h]:z}]},{[S]:[_e,ne,se,de,He],endpoint:pB,[h]:z},{[S]:[ce,Ie,ot,se,Fe],endpoint:{[$]:zB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Ie,ot,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:vg,[h]:z},{endpoint:vg,[h]:z}]},{[S]:[ce,Ie,ot,se,de,He],endpoint:vg,[h]:z},{[S]:[ce,ne,se,Fe],endpoint:{[$]:KT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:KT,[K]:Me,[V]:ae},[h]:z},{endpoint:fB,[h]:z}]},{[S]:[ce,ne,se,de,He],endpoint:fB,[h]:z}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[yB]},{[O]:tt,[N]:[yB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[rB,oB,{[S]:Ma,endpoint:{[$]:qg,[K]:wg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z}]},em]}]},{[S]:[{[O]:Ot,[N]:PB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:[Pe,_e,ne,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,_e,ne,de,Ge],[h]:j,rules:[{endpoint:gB,[h]:z}]},{[S]:[Pe,_e,ne,de,He],endpoint:gB,[h]:z},{[S]:[Pe,ce,ne,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,ce,ne,de,Ge],[h]:j,rules:[{endpoint:hB,[h]:z}]},{[S]:[Pe,ce,ne,de,He],endpoint:hB,[h]:z},{[S]:[se,_e,ne,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[se,_e,ne,de,Ge],[h]:j,rules:[{endpoint:_B,[h]:z}]},{[S]:[se,_e,ne,de,He],endpoint:_B,[h]:z},{[S]:[se,ce,Ie,ot,Fe],endpoint:{[$]:qg,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:xg,[h]:z},{endpoint:xg,[h]:z}]},{[S]:[se,ce,Ie,ot,de,He],endpoint:xg,[h]:z},{[S]:[se,ce,ne,Fe],endpoint:{[$]:VT,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:VT,[K]:Me,[V]:ae},[h]:z},{endpoint:CB,[h]:z}]},{[S]:[se,ce,ne,de,He],endpoint:CB,[h]:z}]},em]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};om.ruleSet=yee});var WB=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.defaultEndpointResolver=void 0;var gee=jr(),hee=XB(),_ee=(e,n={})=>(0,gee.resolveEndpoint)(hee.ruleSet,{endpointParams:e,logger:n.logger});sm.defaultEndpointResolver=_ee});var ZB=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getRuntimeConfig=void 0;var Cee=MT(),See=b(),bee=mr(),YB=Pr(),JB=np(),QB=yt(),Eee=WB(),Pee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??YB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??YB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Eee.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??JB.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new See.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??JB.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??Cee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??bee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??QB.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??QB.toUtf8});im.getRuntimeConfig=Pee});var nq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getRuntimeConfig=void 0;var vee=(te(),Y(ee)),wee=vee.__importDefault(Wk()),xee=iT(),kee=zy(),Aee=yT(),Oee=pa(),am=Mt(),Nee=AT(),Ug=fa(),Iee=TT(),eq=sn(),wo=on(),tq=vr(),Ree=ya(),Tee=zr(),Bee=ZB(),qee=b(),Dee=_a(),Mee=b(),Fee=e=>{(0,Mee.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Dee.resolveDefaultsModeConfig)(e),t=()=>n().then(qee.loadConfigsForDefaultMode),r=(0,Bee.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Ree.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,xee.decorateDefaultCredentialProvider)(kee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Oee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:wee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Nee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,wo.loadConfig)(eq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Ug.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,wo.loadConfig)(am.NODE_REGION_CONFIG_OPTIONS,am.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new tq.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,wo.loadConfig)({...eq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Tee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Ug.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Ug.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??tq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??Iee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,wo.loadConfig)(Aee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,wo.loadConfig)(am.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,wo.loadConfig)(am.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};cm.getRuntimeConfig=Fee});var iq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.resolveRuntimeExtensions=void 0;var rq=Ml(),oq=Ne(),sq=b(),Gg=e=>e,Lee=(e,n)=>{let t={...Gg((0,rq.getAwsRegionExtensionConfiguration)(e)),...Gg((0,sq.getDefaultExtensionConfiguration)(e)),...Gg((0,oq.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,rq.resolveAwsRegionExtensionConfiguration)(t),...(0,sq.resolveDefaultRuntimeConfig)(t),...(0,oq.resolveHttpHandlerRuntimeConfig)(t)}};dm.resolveRuntimeExtensions=Lee});var Fa=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.S3Client=xo.__Client=void 0;var jee=Nb(),aq=Ni(),zee=Ii(),Uee=Ri(),cq=Or(),dq=rn(),lq=Ji(),Gee=Mt(),Hee=tx(),$ee=Qi(),Kee=x(),uq=sn(),mq=b();Object.defineProperty(xo,"__Client",{enumerable:!0,get:function(){return mq.Client}});var Vee=Xk(),Xee=nq(),Wee=iq(),Hg=class extends mq.Client{constructor(...[n]){let t=(0,Xee.getRuntimeConfig)(n||{}),r=(0,Vee.resolveClientEndpointParameters)(t),o=(0,Gee.resolveRegionConfig)(r),s=(0,Kee.resolveEndpointConfig)(o),c=(0,uq.resolveRetryConfig)(s),i=(0,aq.resolveHostHeaderConfig)(c),u=(0,dq.resolveAwsAuthConfig)(i),l=(0,cq.resolveS3Config)(u),a=(0,lq.resolveUserAgentConfig)(l),y=(0,Hee.resolveEventStreamSerdeConfig)(a),g=(0,Wee.resolveRuntimeExtensions)(y,(n==null?void 0:n.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,uq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,$ee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,aq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,zee.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Uee.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,dq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,jee.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,lq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};xo.S3Client=Hg});var pq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeAttribute=void 0;function Yee(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}lm.escapeAttribute=Yee});var fq=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.escapeElement=void 0;function Jee(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}um.escapeElement=Jee});var Kg=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlText=void 0;var Qee=fq(),$g=class{constructor(n){this.value=n}toString(){return(0,Qee.escapeElement)(""+this.value)}};mm.XmlText=$g});var yq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.XmlNode=void 0;var Zee=pq(),ete=Kg(),Vg=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new ete.XmlText(t)),r!==void 0&&o.withName(r),o}constructor(n,t=[]){this.name=n,this.children=t,this.attributes={}}withName(n){return this.name=n,this}addAttribute(n,t){return this.attributes[n]=t,this}addChildNode(n){return this.children.push(n),this}removeAttribute(n){return delete this.attributes[n],this}toString(){let n=!!this.children.length,t=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(t+=` ${o}="${(0,Zee.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};pm.XmlNode=Vg});var hq=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var gq=(te(),Y(ee));gq.__exportStar(yq(),fm);gq.__exportStar(Kg(),fm)});var La=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.S3ServiceException=ko.__ServiceException=void 0;var _q=b();Object.defineProperty(ko,"__ServiceException",{enumerable:!0,get:function(){return _q.ServiceException}});var Xg=class e extends _q.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};ko.S3ServiceException=Xg});var Ye=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=La();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Wg=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Wg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var Yg=class e extends Jn.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=Yg;var Jg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=Jg;var Qg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=Qg;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var tte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(tte=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var nte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.ObjectSizeGreaterThan!==void 0?t.ObjectSizeGreaterThan(n.ObjectSizeGreaterThan):n.ObjectSizeLessThan!==void 0?t.ObjectSizeLessThan(n.ObjectSizeLessThan):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(nte=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var rte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.AccessPointArn!==void 0?t.AccessPointArn(n.AccessPointArn):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(rte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var ote;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(ote=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var Zg=class e extends Jn.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};_.InvalidObjectState=Zg;var eh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=eh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var th=class e extends Jn.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=th;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var nh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=nh;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var ste=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=ste;var ite=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=ite;var ate=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=ate;var cte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=cte;var dte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=dte;var lte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=lte;var ute=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=ute;var mte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=mte;var pte=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=pte;var fte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=fte;var yte=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=yte;var gte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=gte;var hte=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=hte;var _te=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=_te;var Cte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=bte;var Ete=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=Pte;var vte=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=vte;var wte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=wte;var xte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=xte;var kte=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,_.InventoryConfigurationFilterSensitiveLog)(n))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=kte;var Ate=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Nte;var Ite=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=Ite;var Rte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Rte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Tte=La(),rh=class e extends Tte.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=rh;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Bte;(function(e){e.visit=(n,t)=>n.Records!==void 0?t.Records(n.Records):n.Stats!==void 0?t.Stats(n.Stats):n.Progress!==void 0?t.Progress(n.Progress):n.Cont!==void 0?t.Cont(n.Cont):n.End!==void 0?t.End(n.End):t._(n.$unknown[0],n.$unknown[1])})(Bte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var qte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=qte;var Dte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=Mte;var Fte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Lte;var jte=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=jte;var zte=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=zte;var Ute=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=Ute;var Gte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=$te;var Kte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=Kte;var Vte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=Vte});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=hq(),B=Ne(),d=b(),Xte=Mf(),St=Ye(),Wte=Zn(),Yte=La(),Jte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Jte;var Qte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Pq(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=Pq(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Qte;var Zte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=Zte;var ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>P(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=wq(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=wq(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=ene;var tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=tne;var nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=nne;var rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=rne;var one=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=one;var sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=sne;var ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=ine;var ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=ane;var cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=cne;var dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=dne;var lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=lne;var une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=une;var mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=mne;var pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=pne;var fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=fne;var yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=yne;var gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=xq(e.Delete,n));let a;return e.Delete!==void 0&&(a=xq(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=gne;var hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=hne;var _ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=_ne;var Cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=Cne;var Sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=Sne;var bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=bne;var Ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Ene;var Pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=Pne;var vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=vne;var wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=wne;var xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=xne;var kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=kne;var Ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=Ane;var One=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=One;var Nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Nne;var Ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=Ine;var Rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Rne;var Tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Tne;var Bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Bne;var qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=qne;var Dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Dne;var Mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=Mne;var Fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Fne;var Lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=Lne;var jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=jne;var zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-max-parts":[()=>P(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>P(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=zne;var Une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=Une;var Gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=Gne;var Hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Hne;var $ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=$ne;var Kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Kne;var Vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=Vne;var Xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Xne;var Wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Wne;var Yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Yne;var Jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Jne;var Qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Qne;var Zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=Zne;var ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=ere;var tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=tre;var nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=nre;var rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=rre;var ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=ore;var sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=sre;var ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Cq(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=Cq(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=ire;var are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=are;var cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Sq(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=Sq(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=cre;var dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=vq(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=vq(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=dre;var lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Lq(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=Lq(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=lre;var ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=kq(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=kq(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=ure;var mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Aq(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=Aq(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=mre;var pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=bq(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=bq(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=pre;var fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Eq(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=Eq(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=fre;var yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=Oq(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=Oq(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=yre;var gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>P(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Nq(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=Nq(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=gre;var hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=Bq(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=Bq(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=hre;var _re=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>P(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let a;return e.Policy!==void 0&&(a=e.Policy,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=_re;var Cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Dq(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=Dq(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=Cre;var Sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Mq(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=Mq(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=Sre;var bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ja(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=bre;var Ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=jq(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=jq(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Ere;var Pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=zq(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=zq(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=Pre;var vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=vre;var wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=wre;var xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Rq(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=Rq(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=xre;var kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=Iq(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=Iq(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=kre;var Are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Tq(e.Retention,n));let a;return e.Retention!==void 0&&(a=Tq(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=Are;var Ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ja(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=Ore;var Nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=qq(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=qq(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Nre;var Ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Fq(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=Fq(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=Ire;var Rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let a=new f.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(y)}if(e.InputSerialization!==void 0){let y=Kq(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=Vq(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(y)}if(e.RequestProgress!==void 0){let y=Mce(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(y)}if(e.ScanRange!==void 0){let y=Uce(e.ScanRange,n).withName("ScanRange");a.addChildNode(y)}return l+=a.toString(),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Rre;var Tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/octet-stream","content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=Tre;var Bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Bre;var qre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>P(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>P(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>P(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>P(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>P(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>P(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let a;e.Body!==void 0&&(a=e.Body,l=a);let{hostname:y}=await n.endpoint();if(n.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=qre;var Dre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Mre(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Dre;var Mre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await dae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Fre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(t.Location=(0,d.expectString)(r.Location)),t};p.de_CompleteMultipartUploadCommand=Fre;var Lre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyObjectResult=vde(r,n),t};p.de_CopyObjectCommand=jre;var zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await uae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Ure=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gre(e,n);let t=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=Ure;var Gre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await iae(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await aae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Hre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $re(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_CreateMultipartUploadCommand=Hre;var $re=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Vre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Kre;var Vre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Wre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Xre;var Wre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Yre;var Jre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Zre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Qre;var Zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return toe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=eoe;var toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},noe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return roe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=noe;var roe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ooe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return soe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=ooe;var soe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=ioe;var aoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=coe;var doe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=loe;var uoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=moe;var poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=foe;var yoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=goe;var hoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Coe(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectCommand=_oe;var Coe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return boe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=Nde((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=Lde((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=Soe;var boe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=Eoe;var Poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return woe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=voe;var woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=xoe;var koe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ooe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetBucketAclCommand=Aoe;var Ooe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ioe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.AnalyticsConfiguration=Wq(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=Noe;var Ioe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Toe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=kde((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=Roe;var Toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ServerSideEncryptionConfiguration=Zle(r,n),t};p.de_GetBucketEncryptionCommand=Boe;var qoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Moe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.IntelligentTieringConfiguration=eD(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Doe;var Moe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Loe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.InventoryConfiguration=tD(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Foe;var Loe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=lle((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=joe;var zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=Uoe;var Goe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=ule(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Hoe;var $oe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.MetricsConfiguration=nD(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Koe;var Voe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=jde(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=sle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=Lle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=fue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Xoe;var Woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.OwnershipControls=Ole(r,n),t};p.de_GetBucketOwnershipControlsCommand=Yoe;var Joe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=await iD(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Qoe;var Zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PolicyStatus=qle(r,n),t};p.de_GetBucketPolicyStatusCommand=ese;var tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ReplicationConfiguration=Gle(r,n),t};p.de_GetBucketReplicationCommand=nse;var rse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=ose;var sse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=ise;var ase=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.MfaDelete!==void 0&&(t.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketVersioningCommand=cse;var dse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Fde(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=Vde(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=zle(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Yle((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=lse;var use=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=mse;var pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await cae(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetObjectAclCommand=fse;var yse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},gse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=Sde(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=$de(r.ObjectParts,n)),r.ObjectSize!==void 0&&(t.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),t};p.de_GetObjectAttributesCommand=gse;var hse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},_se=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.LegalHold=Ple(r,n),t};p.de_GetObjectLegalHoldCommand=_se;var Cse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ObjectLockConfiguration=Ele(r,n),t};p.de_GetObjectLockConfigurationCommand=Sse;var bse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.Retention=vle(r,n),t};p.de_GetObjectRetentionCommand=Ese;var Pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=vse;var wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=xse;var kse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ase=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PublicAccessBlockConfiguration=Mle(r,n),t};p.de_GetPublicAccessBlockCommand=Ase;var Ose=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=Nse;var Ise=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=Rse;var Tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Bse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=fde((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketAnalyticsConfigurationsCommand=Bse;var qse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?t.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(t.IntelligentTieringConfigurationList=Wde((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketIntelligentTieringConfigurationsCommand=Dse;var Mse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?t.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(t.InventoryConfigurationList=Jde((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketInventoryConfigurationsCommand=Fse;var Lse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?t.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(t.MetricsConfigurationList=fle((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=jse;var zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Use=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=Cde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_ListBucketsCommand=Use;var Gse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(t.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(t.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(t.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?t.Uploads=[]:r.Upload!==void 0&&(t.Uploads=hle((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Hse;var $se=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(t.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(t.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),t};p.de_ListObjectsCommand=Kse;var Vse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(t.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(t.StartAfter=(0,d.expectString)(r.StartAfter)),t};p.de_ListObjectsV2Command=Xse;var Wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Yse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=Tde((0,d.getArrayIfSingleItem)(r.DeleteMarker),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(t.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(t.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?t.Versions=[]:r.Version!==void 0&&(t.Versions=Ale((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Yse;var Jse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(t.Initiator=Zq(r.Initiator,n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=Tle((0,d.getArrayIfSingleItem)(r.Part),n)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_ListPartsCommand=Qse;var Zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=eie;var tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=nie;var rie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=oie;var sie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=iie;var aie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=cie;var die=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=lie;var uie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=mie;var pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=fie;var yie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=gie;var hie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=_ie;var Cie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=Sie;var bie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=Eie;var Pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=vie;var wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=xie;var kie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=Aie;var Oie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=Nie;var Iie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=Rie;var Tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Bie;var qie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectCommand=Die;var Mie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=Fie;var Lie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=jie;var zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=Uie;var Gie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Hie;var $ie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Kie;var Vie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Xie;var Wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,n),t};p.de_RestoreObjectCommand=Yie;var Jie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await lae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Qie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,n);let t=(0,d.map)({$metadata:I(e)}),r=e.body;return t.Payload=mae(r,n),t};p.de_SelectObjectContentCommand=Qie;var Zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,n);let t=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_UploadPartCommand=eae;var tae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,n);let t=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyPartResult=wde(r,n),t};p.de_UploadPartCopyCommand=nae;var rae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sae(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=oae;var sae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(Yte.S3ServiceException),iae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},aae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},cae=async(e,n)=>{let t=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Uq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},gm=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},dae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Gq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},lae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Wte.ObjectAlreadyInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},uae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},mae=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await gae(t.Records,n)}:t.Stats!=null?{Stats:await hae(t.Stats,n)}:t.Progress!=null?{Progress:await yae(t.Progress,n)}:t.Cont!=null?{Cont:await pae(t.Cont,n)}:t.End!=null?{End:await fae(t.End,n)}:{$unknown:e}),pae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Pde(r,n)),t},fae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Dde(r,n)),t},yae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=Dle(r,n),t},gae=async(e,n)=>{let t={};return t.Payload=e.body,t},hae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=iue(r,n),t},_ae=(e,n)=>{let t=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},Cq=(e,n)=>{let t=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},ym=(e,n)=>{let t=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=$q(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=Pce(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},Cae=(e,n)=>{let t=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},Sae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),bae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),Eae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),Pae=(e,n)=>{let t=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Sq=(e,n)=>{let t=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=wae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Jce(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},vae=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=xae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},wae=(e,n)=>{let t=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Pae(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},xae=(e,n)=>{let t=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},bq=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&lce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Eq=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=uce(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},Pq=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&Aae(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},kae=(e,n)=>{let t=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},Aae=(e,n)=>e.filter(t=>t!=null).map(t=>kae(t,n).withName("member")),Oae=(e,n)=>{let t=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},vq=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&Iae(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},Nae=(e,n)=>{let t=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&Sae(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&bae(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&Eae(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&Uae(e.ExposeHeaders,n).map(o=>{o=o.withName("ExposeHeader"),t.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},Iae=(e,n)=>e.filter(t=>t!=null).map(t=>Nae(t,n).withName("member")),wq=(e,n)=>{let t=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},Rae=(e,n)=>{let t=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},Tae=(e,n)=>{let t=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},Bae=(e,n)=>{let t=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},xq=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&Sce(e.Objects,n).map(o=>{o=o.withName("Object"),t.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},qae=(e,n)=>{let t=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dae=(e,n)=>{let t=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=Cae(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Fae(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Dce(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=pce(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},Mae=(e,n)=>{let t=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},Fae=(e,n)=>{let t=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},Lae=(e,n)=>{let t=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},jae=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),oh=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),zae=(e,n)=>{let t=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Uae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),Gae=(e,n)=>{let t=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Hae=(e,n)=>e.filter(t=>t!=null).map(t=>Gae(t,n).withName("member")),$ae=(e,n)=>{let t=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Kae=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Hq=(e,n)=>{let t=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},$q=(e,n)=>e.filter(t=>t!=null).map(t=>Kae(t,n).withName("Grant")),Vae=(e,n)=>{let t=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},Kq=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Rae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=nce(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=xce(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Xae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},kq=(e,n)=>{let t=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Wae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&nde(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Wae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=Ao(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Xae(e.And,n).withName("And");t.addChildNode(r)}return t},Aq=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Yae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Qae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=Zae(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=tce(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Yae=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=ece(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Jae=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Yce(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Xce(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Qae=(e,n)=>{let t=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},Zae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),ece=(e,n)=>{let t=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Jae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},tce=(e,n)=>{let t=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},nce=(e,n)=>{let t=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},rce=(e,n)=>{let t=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},oce=(e,n)=>{let t=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},sce=(e,n)=>e.filter(t=>t!=null).map(t=>oce(t,n).withName("member")),ice=(e,n)=>{let t=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},ace=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=ice(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=dce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&ide(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&_ce(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=gce(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=_ae(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},cce=(e,n)=>{let t=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},dce=(e,n)=>{let t=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(o)},And:r=>{let o=cce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},lce=(e,n)=>e.filter(t=>t!=null).map(t=>ace(t,n).withName("member")),uce=(e,n)=>{let t=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=ede(e.TargetGrants,n),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},mce=(e,n)=>{let t=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},pce=(e,n)=>{let t=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=Xq(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},fce=(e,n)=>{let t=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},Oq=(e,n)=>{let t=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=yce(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},yce=(e,n)=>{let t=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(o)},And:r=>{let o=fce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},gce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},hce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},_ce=(e,n)=>e.filter(t=>t!=null).map(t=>hce(t,n).withName("member")),Nq=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&ode(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&Ace(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&sce(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=jae(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},sh=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=jce(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},Cce=(e,n)=>{let t=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},Sce=(e,n)=>e.filter(t=>t!=null).map(t=>Cce(t,n).withName("member")),Iq=(e,n)=>{let t=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=bce(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},Rq=(e,n)=>{let t=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Tq=(e,n)=>{let t=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},bce=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Bae(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},Ece=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=zce(e.S3,n).withName("S3");t.addChildNode(r)}return t},Vq=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Tae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=rce(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},Pce=(e,n)=>{let t=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},Bq=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&wce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},vce=(e,n)=>{let t=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},wce=(e,n)=>e.filter(t=>t!=null).map(t=>vce(t,n).withName("member")),xce=(e,n)=>new f.XmlNode("ParquetInput"),qq=(e,n)=>{let t=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},kce=(e,n)=>{let t=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Ace=(e,n)=>e.filter(t=>t!=null).map(t=>kce(t,n).withName("member")),Oce=(e,n)=>{let t=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},Nce=(e,n)=>{let t=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},Ice=(e,n)=>{let t=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dq=(e,n)=>{let t=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&qce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Rce=(e,n)=>{let t=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Bce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=Vce(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=zae(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Dae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=qae(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Tce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Bce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Tce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},qce=(e,n)=>e.filter(t=>t!=null).map(t=>Rce(t,n).withName("member")),Dce=(e,n)=>{let t=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=Xq(e.Time,n).withName("Time");t.addChildNode(r)}return t},Xq=(e,n)=>{let t=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},Mq=(e,n)=>{let t=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},Mce=(e,n)=>{let t=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},Fq=(e,n)=>{let t=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=$ae(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=Gce(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=Ece(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Fce=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=Oae(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=Oce(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},Lce=(e,n)=>e.filter(t=>t!=null).map(t=>Fce(t,n).withName("RoutingRule")),jce=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Hae(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},zce=(e,n)=>{let t=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Mae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=$q(e.AccessControlList,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Tagging!=null){let r=ja(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=ade(e.UserMetadata,n),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},Uce=(e,n)=>{let t=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},Gce=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=Kq(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=Vq(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Hce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},Lq=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Kce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},$ce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Hce(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Kce=(e,n)=>e.filter(t=>t!=null).map(t=>$ce(t,n).withName("member")),Vce=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Wce(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=Ice(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Xce=(e,n)=>{let t=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Wce=(e,n)=>{let t=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Yce=(e,n)=>new f.XmlNode("SSE-S3"),Jce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Qce(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Qce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=vae(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Ao=(e,n)=>{let t=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},ja=(e,n)=>{let t=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Oo(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Oo=(e,n)=>e.filter(t=>t!=null).map(t=>Ao(t,n).withName("Tag")),Zce=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},ede=(e,n)=>e.filter(t=>t!=null).map(t=>Zce(t,n).withName("Grant")),tde=(e,n)=>{let t=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},nde=(e,n)=>e.filter(t=>t!=null).map(t=>tde(t,n).withName("member")),rde=(e,n)=>{let t=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},ode=(e,n)=>e.filter(t=>t!=null).map(t=>rde(t,n).withName("member")),sde=(e,n)=>{let t=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},ide=(e,n)=>e.filter(t=>t!=null).map(t=>sde(t,n).withName("member")),ade=(e,n)=>e.filter(t=>t!=null).map(t=>mce(t,n).withName("MetadataEntry")),jq=(e,n)=>{let t=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},zq=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Lae(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=Vae(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Nce(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=Lce(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},cde=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},dde=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),pde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Wq=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=gde((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=aue(e.StorageClassAnalysis,n)),t},fde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wq(t,n)),yde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=hde(e.S3BucketDestination,n)),t},gde=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:pde(e.And,n)}:{$unknown:Object.entries(e)[0]},hde=(e,n)=>{let t={};return e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(t.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},_de=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(t.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),t},Cde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>_de(t,n)),Sde=(e,n)=>{let t={};return e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Yq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),bde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},hm=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>bde(t,n)),Ede=(e,n)=>{let t={};return e.HttpErrorCodeReturnedEquals!==void 0&&(t.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(t.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),t},Pde=(e,n)=>({}),vde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},wde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},xde=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?t.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(t.AllowedHeaders=lde((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=ude((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=mde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=Ude((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},kde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xde(t,n)),Ade=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(t.Years=(0,d.strictParseInt32)(e.Years)),t},Ode=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(t.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(t.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),t},Nde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ode(t,n)),Ide=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),t},Rde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Tde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ide(t,n)),Bde=(e,n)=>{let t={};return e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(t.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(t.AccessControlTranslation=dde(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=qde(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Xle(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=mle(e.Metrics,n)),t},qde=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Dde=(e,n)=>({}),Mde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(t.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(t.Message=(0,d.expectString)(e.Message)),t},Fde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},Lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Mde(t,n)),jde=(e,n)=>({}),ih=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),zde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Gde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Hde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Gde(t,n)),$de=(e,n)=>{let t={};return e.PartsCount!==void 0&&(t.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?t.Parts=[]:e.Part!==void 0&&(t.Parts=Ble((0,d.getArrayIfSingleItem)(e.Part),n)),t},Kde=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Jq=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(t.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(t.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(t.Type=(0,d.expectString)(e["xsi:type"])),t},Qq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Kde(t,n)),Vde=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},Zq=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),t},Xde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},eD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Yde(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=mue((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eD(t,n)),Yde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=No(e.Tag,n)),e.And!==void 0&&(t.And=Xde(e.And,n)),t},tD=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Qde(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=ele(e.Filter,n)),e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(t.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?t.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(t.OptionalFields=tle((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=rle(e.Schedule,n)),t},Jde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>tD(t,n)),Qde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=nle(e.S3BucketDestination,n)),t},Zde=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=sue(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=rue(e["SSE-KMS"],n)),t},ele=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},tle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),nle=(e,n)=>{let t={};return e.AccountId!==void 0&&(t.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(t.Encryption=Zde(e.Encryption,n)),t},rle=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},ole=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(t.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},sle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ole(t,n)),ile=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(t.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),t},ale=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=ile(e.Expiration,n)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=dle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Transition===""?t.Transitions=[]:e.Transition!==void 0&&(t.Transitions=gue((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=Sle((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=_le(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=cde(e.AbortIncompleteMultipartUpload,n)),t},cle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},dle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:cle(e.And,n)}:{$unknown:Object.entries(e)[0]},lle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ale(t,n)),ule=(e,n)=>{let t={};return e.TargetBucket!==void 0&&(t.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?t.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(t.TargetGrants=lue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},mle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=oD(e.EventThreshold,n)),t},ple=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},nD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=yle((0,d.expectUnion)(e.Filter),n)),t},fle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nD(t,n)),yle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:ple(e.And,n)}:{$unknown:Object.entries(e)[0]},gle=(e,n)=>{let t={};return e.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(t.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=Zq(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},hle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gle(t,n)),_le=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},Cle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},Sle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cle(t,n)),ah=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Jle(e.S3Key,n)),t},ble=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},rD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ble(t,n)),Ele=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=wle(e.Rule,n)),t},Ple=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},vle=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(t.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),t},wle=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=Ade(e.DefaultRetention,n)),t},xle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},kle=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},Ale=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>kle(t,n)),er=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),t},Ole=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Ile((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Nle=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},Ile=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nle(t,n)),Rle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Tle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Rle(t,n)),Ble=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xle(t,n)),qle=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Dle=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},Mle=(e,n)=>{let t={};return e.BlockPublicAcls!==void 0&&(t.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(t.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(t.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(t.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),t},Fle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(t.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},Lle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Fle(t,n)),jle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(t.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(t.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(t.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),t},zle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),t},Ule=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Gle=(e,n)=>{let t={};return e.Role!==void 0&&(t.Role=(0,d.expectString)(e.Role)),e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Vle((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Hle=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(t.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Kle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=nue(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=zde(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Bde(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=Rde(e.DeleteMarkerReplication,n)),t},$le=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Kle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:$le(e.And,n)}:{$unknown:Object.entries(e)[0]},Vle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Hle(t,n)),Xle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=oD(e.Time,n)),t},oD=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},sD=(e,n)=>{let t={};return e.IsRestoreInProgress!==void 0&&(t.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(t.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),t},Wle=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=Ede(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=jle(e.Redirect,n)),t},Yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wle(t,n)),Jle=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Hde((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Qle=(e,n)=>{let t={};return e.SSEAlgorithm!==void 0&&(t.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(t.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),t},Zle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=tue((0,d.getArrayIfSingleItem)(e.Rule),n)),t},eue=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Qle(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},tue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eue(t,n)),nue=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=oue(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=Ule(e.ReplicaModifications,n)),t},rue=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},oue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},sue=(e,n)=>({}),iue=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},aue=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=cue(e.DataExport,n)),t},cue=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=yde(e.Destination,n)),t},No=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Cr=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>No(t,n)),due=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},lue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>due(t,n)),uue=(e,n)=>{let t={};return e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(e.AccessTier)),t},mue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>uue(t,n)),pue=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(t.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},fue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pue(t,n)),yue=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),t},gue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>yue(t,n)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),iD=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),P=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,n)=>iD(e,n).then(t=>{if(t.length){let r=new Xte.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,n)=>{let t=await Q(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},F=(e,n)=>{if((n==null?void 0:n.Code)!==void 0)return n.Code;if(e.statusCode==404)return"NotFound"}});var dh=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.AbortMultipartUploadCommand=Io.$Command=void 0;var yue=x(),gue=k(),cD=b();Object.defineProperty(Io,"$Command",{enumerable:!0,get:function(){return cD.Command}});var hue=w(),aD=q(),ch=class e extends cD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,aD.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,aD.de_AbortMultipartUploadCommand)(n,t)}};Io.AbortMultipartUploadCommand=ch});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function dD(e){return n=>async t=>{let r={...t.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let c=r[s.target];if(c){let i=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):typeof c=="string"?e.utf8Decoder(c):new Uint8Array(c),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return n({...t,input:r})}}En.ssecMiddleware=dD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var _ue=e=>({applyToStack:n=>{n.add(dD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=_ue});var uh=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.CompleteMultipartUploadCommand=Ro.$Command=void 0;var Cue=Or(),Sue=bt(),bue=x(),Eue=k(),mD=b();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return mD.Command}});var Pue=w(),lD=Ye(),uD=q(),lh=class e extends mD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Eue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,Sue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:lD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:lD.CompleteMultipartUploadOutputFilterSensitiveLog,[Pue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uD.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,uD.de_CompleteMultipartUploadCommand)(n,t)}};Ro.CompleteMultipartUploadCommand=lh});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CopyObjectCommand=To.$Command=void 0;var vue=Or(),wue=bt(),xue=x(),kue=k(),yD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return yD.Command}});var Aue=w(),pD=Ye(),fD=q(),mh=class e extends yD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,wue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:pD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.CopyObjectOutputFilterSensitiveLog,[Aue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,fD.de_CopyObjectCommand)(n,t)}};To.CopyObjectCommand=mh});var hD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function gD(e){return n=>async t=>{let{CreateBucketConfiguration:r}=t.input,o=await e.region();return(!r||!r.LocationConstraint)&&(t={...t,input:{...t.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),n(t)}}Pn.locationConstraintMiddleware=gD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var Oue=e=>({applyToStack:n=>{n.add(gD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=Oue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CreateBucketCommand=Bo.$Command=void 0;var Nue=hD(),Iue=x(),Rue=k(),CD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return CD.Command}});var Tue=w(),_D=q(),fh=class e extends CD.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nue.getLocationConstraintPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_D.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,_D.de_CreateBucketCommand)(n,t)}};Bo.CreateBucketCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CreateMultipartUploadCommand=qo.$Command=void 0;var Bue=bt(),que=x(),Due=k(),ED=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return ED.Command}});var Mue=w(),SD=Ye(),bD=q(),gh=class e extends ED.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Due.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,que.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:SD.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:SD.CreateMultipartUploadOutputFilterSensitiveLog,[Mue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,bD.de_CreateMultipartUploadCommand)(n,t)}};qo.CreateMultipartUploadCommand=gh});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DeleteBucketAnalyticsConfigurationCommand=Do.$Command=void 0;var Fue=x(),Lue=k(),vD=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return vD.Command}});var jue=w(),PD=q(),_h=class e extends vD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Lue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[jue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PD.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,PD.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};Do.DeleteBucketAnalyticsConfigurationCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketCommand=Mo.$Command=void 0;var zue=x(),Uue=k(),xD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Gue=w(),wD=q(),Sh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wD.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,wD.de_DeleteBucketCommand)(n,t)}};Mo.DeleteBucketCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketCorsCommand=Fo.$Command=void 0;var Hue=x(),$ue=k(),AD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return AD.Command}});var Kue=w(),kD=q(),Eh=class e extends AD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$ue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Kue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kD.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,kD.de_DeleteBucketCorsCommand)(n,t)}};Fo.DeleteBucketCorsCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketEncryptionCommand=Lo.$Command=void 0;var Vue=x(),Xue=k(),ND=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Wue=w(),OD=q(),vh=class e extends ND.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,OD.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,OD.de_DeleteBucketEncryptionCommand)(n,t)}};Lo.DeleteBucketEncryptionCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketIntelligentTieringConfigurationCommand=jo.$Command=void 0;var Yue=x(),Jue=k(),RD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return RD.Command}});var Que=w(),ID=q(),xh=class e extends RD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Que.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ID.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,ID.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};jo.DeleteBucketIntelligentTieringConfigurationCommand=xh});var Oh=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketInventoryConfigurationCommand=zo.$Command=void 0;var Zue=x(),eme=k(),BD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return BD.Command}});var tme=w(),TD=q(),Ah=class e extends BD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,eme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TD.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,TD.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};zo.DeleteBucketInventoryConfigurationCommand=Ah});var Ih=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketLifecycleCommand=Uo.$Command=void 0;var nme=x(),rme=k(),DD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return DD.Command}});var ome=w(),qD=q(),Nh=class e extends DD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ome.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qD.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,qD.de_DeleteBucketLifecycleCommand)(n,t)}};Uo.DeleteBucketLifecycleCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketMetricsConfigurationCommand=Go.$Command=void 0;var sme=x(),ime=k(),FD=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return FD.Command}});var ame=w(),MD=q(),Rh=class e extends FD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ime.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ame.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MD.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,MD.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Go.DeleteBucketMetricsConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketOwnershipControlsCommand=Ho.$Command=void 0;var cme=x(),dme=k(),jD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return jD.Command}});var lme=w(),LD=q(),Bh=class e extends jD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[lme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LD.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,LD.de_DeleteBucketOwnershipControlsCommand)(n,t)}};Ho.DeleteBucketOwnershipControlsCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketPolicyCommand=$o.$Command=void 0;var ume=x(),mme=k(),UD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return UD.Command}});var pme=w(),zD=q(),Dh=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ume.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zD.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,zD.de_DeleteBucketPolicyCommand)(n,t)}};$o.DeleteBucketPolicyCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketReplicationCommand=Ko.$Command=void 0;var fme=x(),yme=k(),HD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return HD.Command}});var gme=w(),GD=q(),Fh=class e extends HD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[gme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GD.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,GD.de_DeleteBucketReplicationCommand)(n,t)}};Ko.DeleteBucketReplicationCommand=Fh});var zh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketTaggingCommand=Vo.$Command=void 0;var hme=x(),_me=k(),KD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return KD.Command}});var Cme=w(),$D=q(),jh=class e extends KD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_me.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$D.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,$D.de_DeleteBucketTaggingCommand)(n,t)}};Vo.DeleteBucketTaggingCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketWebsiteCommand=Xo.$Command=void 0;var Sme=x(),bme=k(),XD=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return XD.Command}});var Eme=w(),VD=q(),Uh=class e extends XD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Eme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VD.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,VD.de_DeleteBucketWebsiteCommand)(n,t)}};Xo.DeleteBucketWebsiteCommand=Uh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteObjectCommand=Wo.$Command=void 0;var Pme=x(),vme=k(),YD=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return YD.Command}});var wme=w(),WD=q(),Hh=class e extends YD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WD.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,WD.de_DeleteObjectCommand)(n,t)}};Wo.DeleteObjectCommand=Hh});var Yo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var xme;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(xme=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var kme;(function(e){e.HEADER="header",e.TRAILER="trailer"})(kme=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Kh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PRIORITY_ORDER_ALGORITHMS=Jo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Yo();Jo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Jo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var QD=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumAlgorithmForRequest=void 0;var Ame=Yo(),JD=Kh(),Ome=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Ame.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!JD.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${JD.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};_m.getChecksumAlgorithmForRequest=Ome});var Vh=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getChecksumLocationName=void 0;var Nme=Yo(),Ime=e=>e===Nme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;Cm.getChecksumLocationName=Ime});var ZD=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.hasHeader=void 0;var Rme=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};Sm.hasHeader=Rme});var Em=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.isStreaming=void 0;var Tme=oc(),Bme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,Tme.isArrayBuffer)(e);bm.isStreaming=Bme});var Jh={};Ai(Jh,{__assign:()=>Wh,__asyncDelegator:()=>Vme,__asyncGenerator:()=>Kme,__asyncValues:()=>Xme,__await:()=>ja,__awaiter:()=>jme,__classPrivateFieldGet:()=>Qme,__classPrivateFieldSet:()=>Zme,__createBinding:()=>Ume,__decorate:()=>Mme,__exportStar:()=>Gme,__extends:()=>qme,__generator:()=>zme,__importDefault:()=>Jme,__importStar:()=>Yme,__makeTemplateObject:()=>Wme,__metadata:()=>Lme,__param:()=>Fme,__read:()=>e1,__rest:()=>Dme,__spread:()=>Hme,__spreadArrays:()=>$me,__values:()=>Yh});function qme(e,n){Xh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Dme(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function Fme(e,n){return function(t,r){n(t,r,e)}}function Lme(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function jme(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function zme(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function e1(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Hme(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof ja?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function Vme(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:ja(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function Xme(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Yh=="function"?Yh(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function Wme(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function Yme(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Jme(e){return e&&e.__esModule?e:{default:e}}function Qme(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function Zme(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var Xh,Wh,Qh=Le(()=>{Xh=function(e,n){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Xh(e,n)};Wh=function(){return Wh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.AwsCrc32c=void 0;var t1=(Qh(),Y(Jh)),Zh=ji(),n1=e_(),epe=function(){function e(){this.crc32c=new n1.Crc32c}return e.prototype.update=function(n){(0,Zh.isEmptyData)(n)||this.crc32c.update((0,Zh.convertToBuffer)(n))},e.prototype.digest=function(){return t1.__awaiter(this,void 0,void 0,function(){return t1.__generator(this,function(n){return[2,(0,Zh.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new n1.Crc32c},e}();Pm.AwsCrc32c=epe});var e_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var tpe=(Qh(),Y(Jh)),npe=ji();function rpe(e){return new o1().update(e).digest()}rr.crc32c=rpe;var o1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=tpe.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^spe[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=o1;var ope=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],spe=(0,npe.uint32ArrayFrom)(ope),ipe=r1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return ipe.AwsCrc32c}})});var t_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.selectChecksumAlgorithmFunction=void 0;var ape=zi(),cpe=e_(),za=Yo(),dpe=(e,n)=>({[za.ChecksumAlgorithm.MD5]:n.md5,[za.ChecksumAlgorithm.CRC32]:ape.AwsCrc32,[za.ChecksumAlgorithm.CRC32C]:cpe.AwsCrc32c,[za.ChecksumAlgorithm.SHA1]:n.sha1,[za.ChecksumAlgorithm.SHA256]:n.sha256})[e];vm.selectChecksumAlgorithmFunction=dpe});var n_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.stringHasher=void 0;var lpe=yt(),upe=(e,n)=>{let t=new e;return t.update((0,lpe.toUint8Array)(n||"")),t.digest()};wm.stringHasher=upe});var r_=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.flexibleChecksumsMiddleware=void 0;var mpe=Ne(),ppe=QD(),fpe=Vh(),ype=ZD(),gpe=Em(),hpe=t_(),_pe=n_(),Cpe=(e,n)=>t=>async r=>{if(!mpe.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{body:s,headers:c}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:a,requestAlgorithmMember:y}=n,g=(0,ppe.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:a,requestAlgorithmMember:y}),C=s,v=c;if(g){let E=(0,fpe.getChecksumLocationName)(g),G=(0,hpe.selectChecksumAlgorithmFunction)(g,e);if((0,gpe.isStreaming)(s)){let{getAwsChunkedEncodingStream:ye,bodyLengthChecker:nt}=e;C=ye(s,{base64Encoder:i,bodyLengthChecker:nt,checksumLocationName:E,checksumAlgorithmFn:G,streamHasher:u}),v={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":E},delete v["content-length"]}else if(!(0,ype.hasHeader)(E,c)){let ye=await(0,_pe.stringHasher)(G,s);v={...c,[E]:i(ye)}}}return await t({...r,request:{...o,headers:v,body:C}})};xm.flexibleChecksumsMiddleware=Cpe});var s1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.createReadStreamOnBuffer=void 0;var Spe=require("stream");function bpe(e){let n=new Spe.Transform;return n.push(e),n.push(null),n}km.createReadStreamOnBuffer=bpe});var i1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksum=void 0;var Epe=Em(),Ppe=n_(),vpe=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let o=(0,Epe.isStreaming)(e)?n(t,e):(0,Ppe.stringHasher)(t,e);return r(await o)};Am.getChecksum=vpe});var c1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getChecksumAlgorithmListForResponse=void 0;var a1=Kh(),wpe=(e=[])=>{let n=[];for(let t of a1.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!a1.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};Om.getChecksumAlgorithmListForResponse=wpe});var d1=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.validateChecksumFromResponse=void 0;var xpe=i1(),kpe=c1(),Ape=Vh(),Ope=t_(),Npe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,kpe.getChecksumAlgorithmListForResponse)(t),{body:o,headers:s}=e;for(let c of r){let i=(0,Ape.getChecksumLocationName)(c),u=s[i];if(u){let l=(0,Ope.selectChecksumAlgorithmFunction)(c,n),{streamHasher:a,base64Encoder:y}=n,g=await(0,xpe.getChecksum)(o,{streamHasher:a,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Nm.validateChecksumFromResponse=Npe});var u1=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.flexibleChecksumsResponseMiddleware=Qo.flexibleChecksumsResponseMiddlewareOptions=void 0;var Ipe=Ne(),Rpe=Em(),l1=s1(),Tpe=d1();Qo.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Bpe=(e,n)=>t=>async r=>{if(!Ipe.HttpRequest.isInstance(r.request))return t(r);let o=r.input,s=await t(r),c=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=n;if(u&&o[u]==="ENABLED"){let a=(0,Rpe.isStreaming)(c.body);a&&(i=await e.streamCollector(c.body),c.body=(0,l1.createReadStreamOnBuffer)(i)),await(0,Tpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),a&&i&&(c.body=(0,l1.createReadStreamOnBuffer)(i))}return s};Qo.flexibleChecksumsResponseMiddleware=Bpe});var p1=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getFlexibleChecksumsPlugin=Sr.flexibleChecksumsMiddlewareOptions=void 0;var qpe=r_(),m1=u1();Sr.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Dpe=(e,n)=>({applyToStack:t=>{t.add((0,qpe.flexibleChecksumsMiddleware)(e,n),Sr.flexibleChecksumsMiddlewareOptions),t.addRelativeTo((0,m1.flexibleChecksumsResponseMiddleware)(e,n),m1.flexibleChecksumsResponseMiddlewareOptions)}});Sr.getFlexibleChecksumsPlugin=Dpe});var be=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var o_=(te(),Y(ee));o_.__exportStar(Yo(),Ua);o_.__exportStar(r_(),Ua);o_.__exportStar(p1(),Ua)});var i_=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.DeleteObjectsCommand=Zo.$Command=void 0;var Mpe=be(),Fpe=x(),Lpe=k(),y1=b();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return y1.Command}});var jpe=w(),f1=q(),s_=class e extends y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Lpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Mpe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[jpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,f1.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,f1.de_DeleteObjectsCommand)(n,t)}};Zo.DeleteObjectsCommand=s_});var c_=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.DeleteObjectTaggingCommand=es.$Command=void 0;var zpe=x(),Upe=k(),h1=b();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return h1.Command}});var Gpe=w(),g1=q(),a_=class e extends h1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Upe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,g1.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,g1.de_DeleteObjectTaggingCommand)(n,t)}};es.DeleteObjectTaggingCommand=a_});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeletePublicAccessBlockCommand=ts.$Command=void 0;var Hpe=x(),$pe=k(),C1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return C1.Command}});var Kpe=w(),_1=q(),d_=class e extends C1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$pe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Kpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_1.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,_1.de_DeletePublicAccessBlockCommand)(n,t)}};ts.DeletePublicAccessBlockCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.GetBucketAccelerateConfigurationCommand=ns.$Command=void 0;var Vpe=x(),Xpe=k(),b1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return b1.Command}});var Wpe=w(),S1=q(),u_=class e extends b1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,S1.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,S1.de_GetBucketAccelerateConfigurationCommand)(n,t)}};ns.GetBucketAccelerateConfigurationCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.GetBucketAclCommand=rs.$Command=void 0;var Ype=x(),Jpe=k(),P1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return P1.Command}});var Qpe=w(),E1=q(),p_=class e extends P1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ype.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Qpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,E1.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,E1.de_GetBucketAclCommand)(n,t)}};rs.GetBucketAclCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAnalyticsConfigurationCommand=os.$Command=void 0;var Zpe=x(),efe=k(),w1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return w1.Command}});var tfe=w(),v1=q(),y_=class e extends w1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,efe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,v1.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,v1.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};os.GetBucketAnalyticsConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketCorsCommand=ss.$Command=void 0;var nfe=x(),rfe=k(),k1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return k1.Command}});var ofe=w(),x1=q(),h_=class e extends k1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ofe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,x1.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,x1.de_GetBucketCorsCommand)(n,t)}};ss.GetBucketCorsCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketEncryptionCommand=is.$Command=void 0;var sfe=x(),ife=k(),O1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return O1.Command}});var afe=w(),cfe=Ye(),A1=q(),C_=class e extends O1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ife.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:cfe.GetBucketEncryptionOutputFilterSensitiveLog,[afe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,A1.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,A1.de_GetBucketEncryptionCommand)(n,t)}};is.GetBucketEncryptionCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketIntelligentTieringConfigurationCommand=as.$Command=void 0;var dfe=x(),lfe=k(),I1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return I1.Command}});var ufe=w(),N1=q(),b_=class e extends I1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,lfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,dfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N1.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,N1.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};as.GetBucketIntelligentTieringConfigurationCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketInventoryConfigurationCommand=cs.$Command=void 0;var mfe=x(),pfe=k(),T1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return T1.Command}});var ffe=w(),yfe=Ye(),R1=q(),P_=class e extends T1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,pfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:yfe.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R1.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,R1.de_GetBucketInventoryConfigurationCommand)(n,t)}};cs.GetBucketInventoryConfigurationCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketLifecycleConfigurationCommand=ds.$Command=void 0;var gfe=x(),hfe=k(),q1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return q1.Command}});var _fe=w(),B1=q(),w_=class e extends q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_fe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,B1.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,B1.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ds.GetBucketLifecycleConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketLocationCommand=ls.$Command=void 0;var Cfe=x(),Sfe=k(),M1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return M1.Command}});var bfe=w(),D1=q(),k_=class e extends M1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,D1.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,D1.de_GetBucketLocationCommand)(n,t)}};ls.GetBucketLocationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLoggingCommand=us.$Command=void 0;var Efe=x(),Pfe=k(),L1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return L1.Command}});var vfe=w(),F1=q(),O_=class e extends L1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Efe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,F1.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,F1.de_GetBucketLoggingCommand)(n,t)}};us.GetBucketLoggingCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketMetricsConfigurationCommand=ms.$Command=void 0;var wfe=x(),xfe=k(),z1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return z1.Command}});var kfe=w(),j1=q(),I_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,j1.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,j1.de_GetBucketMetricsConfigurationCommand)(n,t)}};ms.GetBucketMetricsConfigurationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketNotificationConfigurationCommand=ps.$Command=void 0;var Afe=x(),Ofe=k(),G1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return G1.Command}});var Nfe=w(),U1=q(),T_=class e extends G1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ofe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Afe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U1.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,U1.de_GetBucketNotificationConfigurationCommand)(n,t)}};ps.GetBucketNotificationConfigurationCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketOwnershipControlsCommand=fs.$Command=void 0;var Ife=x(),Rfe=k(),$1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return $1.Command}});var Tfe=w(),H1=q(),q_=class e extends $1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ife.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,H1.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,H1.de_GetBucketOwnershipControlsCommand)(n,t)}};fs.GetBucketOwnershipControlsCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketPolicyCommand=ys.$Command=void 0;var Bfe=x(),qfe=k(),V1=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return V1.Command}});var Dfe=w(),K1=q(),M_=class e extends V1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Bfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Dfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,K1.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,K1.de_GetBucketPolicyCommand)(n,t)}};ys.GetBucketPolicyCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketPolicyStatusCommand=gs.$Command=void 0;var Mfe=x(),Ffe=k(),W1=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return W1.Command}});var Lfe=w(),X1=q(),L_=class e extends W1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ffe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Lfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,X1.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,X1.de_GetBucketPolicyStatusCommand)(n,t)}};gs.GetBucketPolicyStatusCommand=L_});var U_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketReplicationCommand=hs.$Command=void 0;var jfe=x(),zfe=k(),J1=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return J1.Command}});var Ufe=w(),Y1=q(),z_=class e extends J1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Y1.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,Y1.de_GetBucketReplicationCommand)(n,t)}};hs.GetBucketReplicationCommand=z_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketRequestPaymentCommand=_s.$Command=void 0;var Gfe=x(),Hfe=k(),Z1=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return Z1.Command}});var $fe=w(),Q1=q(),G_=class e extends Z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$fe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Q1.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,Q1.de_GetBucketRequestPaymentCommand)(n,t)}};_s.GetBucketRequestPaymentCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketTaggingCommand=Cs.$Command=void 0;var Kfe=x(),Vfe=k(),tM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return tM.Command}});var Xfe=w(),eM=q(),$_=class e extends tM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eM.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,eM.de_GetBucketTaggingCommand)(n,t)}};Cs.GetBucketTaggingCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketVersioningCommand=Ss.$Command=void 0;var Wfe=x(),Yfe=k(),rM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return rM.Command}});var Jfe=w(),nM=q(),V_=class e extends rM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nM.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,nM.de_GetBucketVersioningCommand)(n,t)}};Ss.GetBucketVersioningCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketWebsiteCommand=bs.$Command=void 0;var Qfe=x(),Zfe=k(),sM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return sM.Command}});var eye=w(),oM=q(),W_=class e extends sM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[eye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oM.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,oM.de_GetBucketWebsiteCommand)(n,t)}};bs.GetBucketWebsiteCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetObjectAclCommand=Es.$Command=void 0;var tye=x(),nye=k(),aM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return aM.Command}});var rye=w(),iM=q(),J_=class e extends aM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iM.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,iM.de_GetObjectAclCommand)(n,t)}};Es.GetObjectAclCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetObjectAttributesCommand=Ps.$Command=void 0;var oye=bt(),sye=x(),iye=k(),dM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return dM.Command}});var aye=w(),cye=Ye(),cM=q(),Z_=class e extends dM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,iye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,oye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:cye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cM.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,cM.de_GetObjectAttributesCommand)(n,t)}};Ps.GetObjectAttributesCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectCommand=vs.$Command=void 0;var dye=be(),lye=bt(),uye=x(),mye=k(),mM=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var pye=w(),lM=Ye(),uM=q(),tC=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,lye.getSsecPlugin)(t)),this.middlewareStack.use((0,dye.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:lM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:lM.GetObjectOutputFilterSensitiveLog,[pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uM.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,uM.de_GetObjectCommand)(n,t)}};vs.GetObjectCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectLegalHoldCommand=ws.$Command=void 0;var fye=x(),yye=k(),fM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return fM.Command}});var gye=w(),pM=q(),rC=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[gye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pM.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,pM.de_GetObjectLegalHoldCommand)(n,t)}};ws.GetObjectLegalHoldCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectLockConfigurationCommand=xs.$Command=void 0;var hye=x(),_ye=k(),gM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gM.Command}});var Cye=w(),yM=q(),sC=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yM.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,yM.de_GetObjectLockConfigurationCommand)(n,t)}};xs.GetObjectLockConfigurationCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectRetentionCommand=ks.$Command=void 0;var Sye=x(),bye=k(),_M=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return _M.Command}});var Eye=w(),hM=q(),aC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Eye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hM.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,hM.de_GetObjectRetentionCommand)(n,t)}};ks.GetObjectRetentionCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectTaggingCommand=As.$Command=void 0;var Pye=x(),vye=k(),SM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return SM.Command}});var wye=w(),CM=q(),dC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,CM.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,CM.de_GetObjectTaggingCommand)(n,t)}};As.GetObjectTaggingCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectTorrentCommand=Os.$Command=void 0;var xye=x(),kye=k(),EM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return EM.Command}});var Aye=w(),Oye=Ye(),bM=q(),uC=class e extends EM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Oye.GetObjectTorrentOutputFilterSensitiveLog,[Aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bM.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,bM.de_GetObjectTorrentCommand)(n,t)}};Os.GetObjectTorrentCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetPublicAccessBlockCommand=Ns.$Command=void 0;var Nye=x(),Iye=k(),vM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return vM.Command}});var Rye=w(),PM=q(),pC=class e extends vM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Iye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PM.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,PM.de_GetPublicAccessBlockCommand)(n,t)}};Ns.GetPublicAccessBlockCommand=pC});var Ga=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.HeadBucketCommand=Is.$Command=void 0;var Tye=x(),Bye=k(),xM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xM.Command}});var qye=w(),wM=q(),yC=class e extends xM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wM.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,wM.de_HeadBucketCommand)(n,t)}};Is.HeadBucketCommand=yC});var Ha=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HeadObjectCommand=Rs.$Command=void 0;var Dye=bt(),Mye=x(),Fye=k(),OM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return OM.Command}});var Lye=w(),kM=Ye(),AM=q(),gC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:kM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:kM.HeadObjectOutputFilterSensitiveLog,[Lye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AM.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,AM.de_HeadObjectCommand)(n,t)}};Rs.HeadObjectCommand=gC});var _C=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ListBucketAnalyticsConfigurationsCommand=Ts.$Command=void 0;var jye=x(),zye=k(),IM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Uye=w(),NM=q(),hC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Uye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NM.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,NM.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Ts.ListBucketAnalyticsConfigurationsCommand=hC});var SC=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ListBucketIntelligentTieringConfigurationsCommand=Bs.$Command=void 0;var Gye=x(),Hye=k(),TM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return TM.Command}});var $ye=w(),RM=q(),CC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$ye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RM.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,RM.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};Bs.ListBucketIntelligentTieringConfigurationsCommand=CC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketInventoryConfigurationsCommand=qs.$Command=void 0;var Kye=x(),Vye=k(),qM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Xye=w(),Wye=Ye(),BM=q(),bC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Wye.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[Xye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,BM.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,BM.de_ListBucketInventoryConfigurationsCommand)(n,t)}};qs.ListBucketInventoryConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketMetricsConfigurationsCommand=Ds.$Command=void 0;var Yye=x(),Jye=k(),MM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return MM.Command}});var Qye=w(),DM=q(),PC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DM.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,DM.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ds.ListBucketMetricsConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketsCommand=Ms.$Command=void 0;var Zye=x(),ege=k(),LM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return LM.Command}});var tge=w(),FM=q(),wC=class e extends LM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ege.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,FM.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,FM.de_ListBucketsCommand)(n,t)}};Ms.ListBucketsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListMultipartUploadsCommand=Fs.$Command=void 0;var nge=x(),rge=k(),zM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var oge=w(),jM=q(),kC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jM.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,jM.de_ListMultipartUploadsCommand)(n,t)}};Fs.ListMultipartUploadsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListObjectsCommand=Ls.$Command=void 0;var sge=x(),ige=k(),GM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return GM.Command}});var age=w(),UM=q(),OC=class e extends GM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ige.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,UM.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,UM.de_ListObjectsCommand)(n,t)}};Ls.ListObjectsCommand=OC});var Im=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListObjectsV2Command=js.$Command=void 0;var cge=x(),dge=k(),$M=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return $M.Command}});var lge=w(),HM=q(),IC=class e extends $M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,HM.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,HM.de_ListObjectsV2Command)(n,t)}};js.ListObjectsV2Command=IC});var TC=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectVersionsCommand=zs.$Command=void 0;var uge=x(),mge=k(),VM=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return VM.Command}});var pge=w(),KM=q(),RC=class e extends VM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,KM.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,KM.de_ListObjectVersionsCommand)(n,t)}};zs.ListObjectVersionsCommand=RC});var Rm=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListPartsCommand=Us.$Command=void 0;var fge=bt(),yge=x(),gge=k(),WM=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return WM.Command}});var hge=w(),_ge=Ye(),XM=q(),BC=class e extends WM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fge.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:_ge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,XM.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,XM.de_ListPartsCommand)(n,t)}};Us.ListPartsCommand=BC});var DC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.PutBucketAccelerateConfigurationCommand=Gs.$Command=void 0;var Cge=be(),Sge=x(),bge=k(),JM=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return JM.Command}});var Ege=w(),YM=q(),qC=class e extends JM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ege.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YM.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,YM.de_PutBucketAccelerateConfigurationCommand)(n,t)}};Gs.PutBucketAccelerateConfigurationCommand=qC});var FC=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.PutBucketAclCommand=Hs.$Command=void 0;var Pge=be(),vge=x(),wge=k(),ZM=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return ZM.Command}});var xge=w(),QM=q(),MC=class e extends ZM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Pge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[xge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,QM.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,QM.de_PutBucketAclCommand)(n,t)}};Hs.PutBucketAclCommand=MC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAnalyticsConfigurationCommand=$s.$Command=void 0;var kge=x(),Age=k(),tF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return tF.Command}});var Oge=w(),eF=q(),LC=class e extends tF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Age.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eF.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,eF.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};$s.PutBucketAnalyticsConfigurationCommand=LC});var UC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketCorsCommand=Ks.$Command=void 0;var Nge=be(),Ige=x(),Rge=k(),rF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return rF.Command}});var Tge=w(),nF=q(),zC=class e extends rF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ige.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nF.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,nF.de_PutBucketCorsCommand)(n,t)}};Ks.PutBucketCorsCommand=zC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketEncryptionCommand=Vs.$Command=void 0;var Bge=be(),qge=x(),Dge=k(),sF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return sF.Command}});var Mge=w(),Fge=Ye(),oF=q(),GC=class e extends sF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:Fge.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Mge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oF.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,oF.de_PutBucketEncryptionCommand)(n,t)}};Vs.PutBucketEncryptionCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketIntelligentTieringConfigurationCommand=Xs.$Command=void 0;var Lge=x(),jge=k(),aF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return aF.Command}});var zge=w(),iF=q(),$C=class e extends aF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iF.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,iF.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Xs.PutBucketIntelligentTieringConfigurationCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketInventoryConfigurationCommand=Ws.$Command=void 0;var Uge=x(),Gge=k(),dF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return dF.Command}});var Hge=w(),$ge=Ye(),cF=q(),VC=class e extends dF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Uge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:$ge.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cF.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,cF.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ws.PutBucketInventoryConfigurationCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketLifecycleConfigurationCommand=Ys.$Command=void 0;var Kge=be(),Vge=x(),Xge=k(),uF=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return uF.Command}});var Wge=w(),lF=q(),WC=class e extends uF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,lF.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,lF.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Ys.PutBucketLifecycleConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketLoggingCommand=Js.$Command=void 0;var Yge=be(),Jge=x(),Qge=k(),pF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return pF.Command}});var Zge=w(),mF=q(),JC=class e extends pF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mF.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,mF.de_PutBucketLoggingCommand)(n,t)}};Js.PutBucketLoggingCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketMetricsConfigurationCommand=Qs.$Command=void 0;var ehe=x(),the=k(),yF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return yF.Command}});var nhe=w(),fF=q(),ZC=class e extends yF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,the.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ehe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[nhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fF.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,fF.de_PutBucketMetricsConfigurationCommand)(n,t)}};Qs.PutBucketMetricsConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketNotificationConfigurationCommand=Zs.$Command=void 0;var rhe=x(),ohe=k(),hF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return hF.Command}});var she=w(),gF=q(),tS=class e extends hF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ohe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[she.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gF.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,gF.de_PutBucketNotificationConfigurationCommand)(n,t)}};Zs.PutBucketNotificationConfigurationCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketOwnershipControlsCommand=ei.$Command=void 0;var ihe=be(),ahe=x(),che=k(),CF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return CF.Command}});var dhe=w(),_F=q(),rS=class e extends CF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,che.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ahe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,ihe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_F.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,_F.de_PutBucketOwnershipControlsCommand)(n,t)}};ei.PutBucketOwnershipControlsCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketPolicyCommand=ti.$Command=void 0;var lhe=be(),uhe=x(),mhe=k(),bF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return bF.Command}});var phe=w(),SF=q(),sS=class e extends bF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,lhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[phe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SF.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,SF.de_PutBucketPolicyCommand)(n,t)}};ti.PutBucketPolicyCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketReplicationCommand=ni.$Command=void 0;var fhe=be(),yhe=x(),ghe=k(),PF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return PF.Command}});var hhe=w(),EF=q(),aS=class e extends PF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ghe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,EF.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,EF.de_PutBucketReplicationCommand)(n,t)}};ni.PutBucketReplicationCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketRequestPaymentCommand=ri.$Command=void 0;var _he=be(),Che=x(),She=k(),wF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return wF.Command}});var bhe=w(),vF=q(),dS=class e extends wF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,She.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Che.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_he.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vF.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,vF.de_PutBucketRequestPaymentCommand)(n,t)}};ri.PutBucketRequestPaymentCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketTaggingCommand=oi.$Command=void 0;var Ehe=be(),Phe=x(),vhe=k(),kF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return kF.Command}});var whe=w(),xF=q(),uS=class e extends kF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Phe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ehe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xF.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,xF.de_PutBucketTaggingCommand)(n,t)}};oi.PutBucketTaggingCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketVersioningCommand=si.$Command=void 0;var xhe=be(),khe=x(),Ahe=k(),OF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return OF.Command}});var Ohe=w(),AF=q(),pS=class e extends OF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ahe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,khe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AF.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,AF.de_PutBucketVersioningCommand)(n,t)}};si.PutBucketVersioningCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketWebsiteCommand=ii.$Command=void 0;var Nhe=be(),Ihe=x(),Rhe=k(),IF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return IF.Command}});var The=w(),NF=q(),yS=class e extends IF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ihe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[The.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NF.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,NF.de_PutBucketWebsiteCommand)(n,t)}};ii.PutBucketWebsiteCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutObjectAclCommand=ai.$Command=void 0;var Bhe=be(),qhe=x(),Dhe=k(),TF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return TF.Command}});var Mhe=w(),RF=q(),hS=class e extends TF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Mhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RF.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,RF.de_PutObjectAclCommand)(n,t)}};ai.PutObjectAclCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutObjectCommand=ci.$Command=void 0;var Fhe=be(),Lhe=Or(),jhe=bt(),zhe=x(),Uhe=k(),DF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return DF.Command}});var Ghe=w(),BF=Ye(),qF=q(),CS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lhe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,jhe.getSsecPlugin)(t)),this.middlewareStack.use((0,Fhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:BF.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:BF.PutObjectOutputFilterSensitiveLog,[Ghe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qF.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,qF.de_PutObjectCommand)(n,t)}};ci.PutObjectCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectLegalHoldCommand=di.$Command=void 0;var Hhe=be(),$he=x(),Khe=k(),FF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Vhe=w(),MF=q(),bS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Khe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$he.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Hhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MF.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,MF.de_PutObjectLegalHoldCommand)(n,t)}};di.PutObjectLegalHoldCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectLockConfigurationCommand=li.$Command=void 0;var Xhe=be(),Whe=x(),Yhe=k(),jF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return jF.Command}});var Jhe=w(),LF=q(),PS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Whe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Xhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LF.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,LF.de_PutObjectLockConfigurationCommand)(n,t)}};li.PutObjectLockConfigurationCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectRetentionCommand=ui.$Command=void 0;var Qhe=be(),Zhe=x(),e_e=k(),UF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return UF.Command}});var t_e=w(),zF=q(),wS=class e extends UF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,e_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[t_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zF.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,zF.de_PutObjectRetentionCommand)(n,t)}};ui.PutObjectRetentionCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectTaggingCommand=mi.$Command=void 0;var n_e=be(),r_e=x(),o_e=k(),HF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return HF.Command}});var s_e=w(),GF=q(),kS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,o_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,r_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,n_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[s_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GF.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,GF.de_PutObjectTaggingCommand)(n,t)}};mi.PutObjectTaggingCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutPublicAccessBlockCommand=pi.$Command=void 0;var i_e=be(),a_e=x(),c_e=k(),KF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return KF.Command}});var d_e=w(),$F=q(),OS=class e extends KF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,c_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,a_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,i_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[d_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$F.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,$F.de_PutPublicAccessBlockCommand)(n,t)}};pi.PutPublicAccessBlockCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.RestoreObjectCommand=fi.$Command=void 0;var l_e=be(),u_e=x(),m_e=k(),XF=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return XF.Command}});var p_e=w(),f_e=Zn(),VF=q(),IS=class e extends XF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,m_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,u_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,l_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:f_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[p_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VF.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,VF.de_RestoreObjectCommand)(n,t)}};fi.RestoreObjectCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SelectObjectContentCommand=yi.$Command=void 0;var y_e=bt(),g_e=x(),h_e=k(),JF=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var __e=w(),WF=Zn(),YF=q(),TS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,h_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,g_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,y_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:WF.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:WF.SelectObjectContentOutputFilterSensitiveLog,[__e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YF.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,YF.de_SelectObjectContentCommand)(n,t)}};yi.SelectObjectContentCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.UploadPartCommand=gi.$Command=void 0;var C_e=be(),S_e=bt(),b_e=x(),E_e=k(),eL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return eL.Command}});var P_e=w(),QF=Zn(),ZF=q(),qS=class e extends eL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,E_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,b_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,S_e.getSsecPlugin)(t)),this.middlewareStack.use((0,C_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:QF.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:QF.UploadPartOutputFilterSensitiveLog,[P_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ZF.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,ZF.de_UploadPartCommand)(n,t)}};gi.UploadPartCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.UploadPartCopyCommand=hi.$Command=void 0;var v_e=Or(),w_e=bt(),x_e=x(),k_e=k(),rL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var A_e=w(),tL=Zn(),nL=q(),MS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,k_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,x_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,v_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,w_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:tL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:tL.UploadPartCopyOutputFilterSensitiveLog,[A_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nL.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,nL.de_UploadPartCopyCommand)(n,t)}};hi.UploadPartCopyCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.WriteGetObjectResponseCommand=_i.$Command=void 0;var O_e=x(),N_e=k(),sL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return sL.Command}});var I_e=w(),R_e=Zn(),oL=q(),LS=class e extends sL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,N_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,O_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:R_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[I_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oL.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,oL.de_WriteGetObjectResponseCommand)(n,t)}};_i.WriteGetObjectResponseCommand=LS});var iL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.S3=void 0;var T_e=b(),B_e=dh(),q_e=uh(),D_e=ph(),M_e=yh(),F_e=hh(),L_e=Ch(),j_e=bh(),z_e=Ph(),U_e=wh(),G_e=kh(),H_e=Oh(),$_e=Ih(),K_e=Th(),V_e=qh(),X_e=Mh(),W_e=Lh(),Y_e=zh(),J_e=Gh(),Q_e=$h(),Z_e=i_(),eCe=c_(),tCe=l_(),nCe=m_(),rCe=f_(),oCe=g_(),sCe=__(),iCe=S_(),aCe=E_(),cCe=v_(),dCe=x_(),lCe=A_(),uCe=N_(),mCe=R_(),pCe=B_(),fCe=D_(),yCe=F_(),gCe=j_(),hCe=U_(),_Ce=H_(),CCe=K_(),SCe=X_(),bCe=Y_(),ECe=Q_(),PCe=eC(),vCe=nC(),wCe=oC(),xCe=iC(),kCe=cC(),ACe=lC(),OCe=mC(),NCe=fC(),ICe=Ga(),RCe=Ha(),TCe=_C(),BCe=SC(),qCe=EC(),DCe=vC(),MCe=xC(),FCe=AC(),LCe=NC(),jCe=Im(),zCe=TC(),UCe=Rm(),GCe=DC(),HCe=FC(),$Ce=jC(),KCe=UC(),VCe=HC(),XCe=KC(),WCe=XC(),YCe=YC(),JCe=QC(),QCe=eS(),ZCe=nS(),eSe=oS(),tSe=iS(),nSe=cS(),rSe=lS(),oSe=mS(),sSe=fS(),iSe=gS(),aSe=_S(),cSe=SS(),dSe=ES(),lSe=vS(),uSe=xS(),mSe=AS(),pSe=NS(),fSe=RS(),ySe=BS(),gSe=DS(),hSe=FS(),_Se=jS(),CSe=Ma(),SSe={AbortMultipartUploadCommand:B_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:q_e.CompleteMultipartUploadCommand,CopyObjectCommand:D_e.CopyObjectCommand,CreateBucketCommand:M_e.CreateBucketCommand,CreateMultipartUploadCommand:F_e.CreateMultipartUploadCommand,DeleteBucketCommand:j_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:L_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:z_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:U_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:G_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:H_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:$_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:K_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:V_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:X_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:W_e.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:Y_e.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:J_e.DeleteBucketWebsiteCommand,DeleteObjectCommand:Q_e.DeleteObjectCommand,DeleteObjectsCommand:Z_e.DeleteObjectsCommand,DeleteObjectTaggingCommand:eCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:tCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:nCe.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:rCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:oCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:sCe.GetBucketCorsCommand,GetBucketEncryptionCommand:iCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:aCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:cCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:dCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:lCe.GetBucketLocationCommand,GetBucketLoggingCommand:uCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:mCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:pCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:fCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:yCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:gCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:hCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:_Ce.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:CCe.GetBucketTaggingCommand,GetBucketVersioningCommand:SCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:bCe.GetBucketWebsiteCommand,GetObjectCommand:vCe.GetObjectCommand,GetObjectAclCommand:ECe.GetObjectAclCommand,GetObjectAttributesCommand:PCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:wCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:xCe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:kCe.GetObjectRetentionCommand,GetObjectTaggingCommand:ACe.GetObjectTaggingCommand,GetObjectTorrentCommand:OCe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:NCe.GetPublicAccessBlockCommand,HeadBucketCommand:ICe.HeadBucketCommand,HeadObjectCommand:RCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:TCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:BCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:qCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:DCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:MCe.ListBucketsCommand,ListMultipartUploadsCommand:FCe.ListMultipartUploadsCommand,ListObjectsCommand:LCe.ListObjectsCommand,ListObjectsV2Command:jCe.ListObjectsV2Command,ListObjectVersionsCommand:zCe.ListObjectVersionsCommand,ListPartsCommand:UCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:GCe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:HCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:$Ce.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:KCe.PutBucketCorsCommand,PutBucketEncryptionCommand:VCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:XCe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:WCe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:YCe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:JCe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:QCe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:ZCe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:eSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:tSe.PutBucketPolicyCommand,PutBucketReplicationCommand:nSe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:rSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:oSe.PutBucketTaggingCommand,PutBucketVersioningCommand:sSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:iSe.PutBucketWebsiteCommand,PutObjectCommand:cSe.PutObjectCommand,PutObjectAclCommand:aSe.PutObjectAclCommand,PutObjectLegalHoldCommand:dSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:lSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:uSe.PutObjectRetentionCommand,PutObjectTaggingCommand:mSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:pSe.PutPublicAccessBlockCommand,RestoreObjectCommand:fSe.RestoreObjectCommand,SelectObjectContentCommand:ySe.SelectObjectContentCommand,UploadPartCommand:gSe.UploadPartCommand,UploadPartCopyCommand:hSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:_Se.WriteGetObjectResponseCommand},Tm=class extends CSe.S3Client{};Bm.S3=Tm;(0,T_e.createAggregatedClient)(SSe,Tm)});var aL=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(te(),Y(ee));L.__exportStar(dh(),T);L.__exportStar(uh(),T);L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(zh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(c_(),T);L.__exportStar(i_(),T);L.__exportStar(l_(),T);L.__exportStar(m_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(U_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(Ga(),T);L.__exportStar(Ha(),T);L.__exportStar(_C(),T);L.__exportStar(SC(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(TC(),T);L.__exportStar(NC(),T);L.__exportStar(Im(),T);L.__exportStar(Rm(),T);L.__exportStar(DC(),T);L.__exportStar(FC(),T);L.__exportStar(jC(),T);L.__exportStar(UC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T)});var dL=m(cL=>{"use strict";Object.defineProperty(cL,"__esModule",{value:!0})});var lL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListObjectsV2=void 0;var bSe=Im(),ESe=Ma(),PSe=async(e,n,...t)=>await e.send(new bSe.ListObjectsV2Command(n),...t);async function*vSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.ContinuationToken=r,n.MaxKeys=e.pageSize,e.client instanceof ESe.S3Client)s=await PSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}qm.paginateListObjectsV2=vSe});var uL=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.paginateListParts=void 0;var wSe=Rm(),xSe=Ma(),kSe=async(e,n,...t)=>await e.send(new wSe.ListPartsCommand(n),...t);async function*ASe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.PartNumberMarker=r,n.MaxParts=e.pageSize,e.client instanceof xSe.S3Client)s=await kSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Dm.paginateListParts=ASe});var mL=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var zS=(te(),Y(ee));zS.__exportStar(dL(),$a);zS.__exportStar(lL(),$a);zS.__exportStar(uL(),$a)});var Ka=m((rOe,hL)=>{var Mm=Object.defineProperty,OSe=Object.getOwnPropertyDescriptor,NSe=Object.getOwnPropertyNames,ISe=Object.prototype.hasOwnProperty,or=(e,n)=>Mm(e,"name",{value:n,configurable:!0}),RSe=(e,n)=>{for(var t in n)Mm(e,t,{get:n[t],enumerable:!0})},TSe=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of NSe(n))!ISe.call(e,o)&&o!==t&&Mm(e,o,{get:()=>n[o],enumerable:!(r=OSe(n,o))||r.enumerable});return e},BSe=e=>TSe(Mm({},"__esModule",{value:!0}),e),fL={};RSe(fL,{WaiterState:()=>gL,checkExceptions:()=>DSe,createWaiter:()=>zSe,waiterServiceDefaults:()=>yL});hL.exports=BSe(fL);var qSe=or(e=>new Promise(n=>setTimeout(n,e*1e3)),"sleep"),yL={minDelay:2,maxDelay:120},gL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(gL||{}),DSe=or(e=>{if(e.state==="ABORTED"){let n=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw n.name="AbortError",n}else if(e.state==="TIMEOUT"){let n=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw n.name="TimeoutError",n}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),MSe=or((e,n,t,r)=>{if(r>t)return n;let o=e*2**(r-1);return FSe(e,o)},"exponentialBackoffWithJitter"),FSe=or((e,n)=>e+Math.random()*(n-e),"randomInRange"),LSe=or(async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:o,abortSignal:s},c,i)=>{var u;let{state:l,reason:a}=await i(o,c);if(l!=="RETRY")return{state:l,reason:a};let y=1,g=Date.now()+t*1e3,C=Math.log(n/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let v=MSe(e,n,C,y);if(Date.now()+v*1e3>g)return{state:"TIMEOUT"};await qSe(v);let{state:A,reason:E}=await i(o,c);if(A!=="RETRY")return{state:A,reason:E};y+=1}},"runPolling"),jSe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(n=>{e.onabort=()=>n({state:"ABORTED"})}),"abortTimeout"),zSe=or(async(e,n,t)=>{let r={...yL,...e};jSe(r);let o=[LSe(r,n,t)];return e.abortController&&o.push(pL(e.abortController.signal)),e.abortSignal&&o.push(pL(e.abortSignal)),Promise.race(o)},"createWaiter")});var CL=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.waitUntilBucketExists=Si.waitForBucketExists=void 0;var Ci=Ka(),USe=Ga(),_L=async(e,n)=>{let t;try{return t=await e.send(new USe.HeadBucketCommand(n)),{state:Ci.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ci.WaiterState.RETRY,reason:t}}return{state:Ci.WaiterState.RETRY,reason:t}},GSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ci.createWaiter)({...t,...e},n,_L)};Si.waitForBucketExists=GSe;var HSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ci.createWaiter)({...t,...e},n,_L);return(0,Ci.checkExceptions)(r)};Si.waitUntilBucketExists=HSe});var bL=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.waitUntilBucketNotExists=bi.waitForBucketNotExists=void 0;var Va=Ka(),$Se=Ga(),SL=async(e,n)=>{let t;try{t=await e.send(new $Se.HeadBucketCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Va.WaiterState.SUCCESS,reason:t}}return{state:Va.WaiterState.RETRY,reason:t}},KSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Va.createWaiter)({...t,...e},n,SL)};bi.waitForBucketNotExists=KSe;var VSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Va.createWaiter)({...t,...e},n,SL);return(0,Va.checkExceptions)(r)};bi.waitUntilBucketNotExists=VSe});var PL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilObjectExists=Pi.waitForObjectExists=void 0;var Ei=Ka(),XSe=Ha(),EL=async(e,n)=>{let t;try{return t=await e.send(new XSe.HeadObjectCommand(n)),{state:Ei.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ei.WaiterState.RETRY,reason:t}}return{state:Ei.WaiterState.RETRY,reason:t}},WSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ei.createWaiter)({...t,...e},n,EL)};Pi.waitForObjectExists=WSe;var YSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ei.createWaiter)({...t,...e},n,EL);return(0,Ei.checkExceptions)(r)};Pi.waitUntilObjectExists=YSe});var wL=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.waitUntilObjectNotExists=vi.waitForObjectNotExists=void 0;var Xa=Ka(),JSe=Ha(),vL=async(e,n)=>{let t;try{t=await e.send(new JSe.HeadObjectCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Xa.WaiterState.SUCCESS,reason:t}}return{state:Xa.WaiterState.RETRY,reason:t}},QSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...t,...e},n,vL)};vi.waitForObjectNotExists=QSe;var ZSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...t,...e},n,vL);return(0,Xa.checkExceptions)(r)};vi.waitUntilObjectNotExists=ZSe});var xL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Fm=(te(),Y(ee));Fm.__exportStar(CL(),wi);Fm.__exportStar(bL(),wi);Fm.__exportStar(PL(),wi);Fm.__exportStar(wL(),wi)});var AL=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var kL=(te(),Y(ee));kL.__exportStar(Ye(),Lm);kL.__exportStar(Zn(),Lm)});var OL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var xi=(te(),Y(ee));xi.__exportStar(Ma(),Qt);xi.__exportStar(iL(),Qt);xi.__exportStar(aL(),Qt);xi.__exportStar(mL(),Qt);xi.__exportStar(xL(),Qt);xi.__exportStar(AL(),Qt);var ebe=Fa();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return ebe.S3ServiceException}})});var rbe={};Ai(rbe,{handler:()=>nbe});module.exports=Y(rbe);var NL=Oi(OL()),IL=Oi(require("delay")),tbe=new NL.S3;async function nbe(){console.log(tbe),await(0,IL.default)(5)}0&&(module.exports={handler}); +`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,n)=>{let t=await Q(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},F=(e,n)=>{if((n==null?void 0:n.Code)!==void 0)return n.Code;if(e.statusCode==404)return"NotFound"}});var dh=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.AbortMultipartUploadCommand=Io.$Command=void 0;var hue=x(),_ue=k(),cD=b();Object.defineProperty(Io,"$Command",{enumerable:!0,get:function(){return cD.Command}});var Cue=w(),aD=q(),ch=class e extends cD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,aD.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,aD.de_AbortMultipartUploadCommand)(n,t)}};Io.AbortMultipartUploadCommand=ch});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function dD(e){return n=>async t=>{let r={...t.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let c=r[s.target];if(c){let i=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):typeof c=="string"?e.utf8Decoder(c):new Uint8Array(c),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return n({...t,input:r})}}En.ssecMiddleware=dD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var Sue=e=>({applyToStack:n=>{n.add(dD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=Sue});var uh=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.CompleteMultipartUploadCommand=Ro.$Command=void 0;var bue=Or(),Eue=bt(),Pue=x(),vue=k(),mD=b();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return mD.Command}});var wue=w(),lD=Ye(),uD=q(),lh=class e extends mD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,bue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,Eue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:lD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:lD.CompleteMultipartUploadOutputFilterSensitiveLog,[wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uD.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,uD.de_CompleteMultipartUploadCommand)(n,t)}};Ro.CompleteMultipartUploadCommand=lh});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CopyObjectCommand=To.$Command=void 0;var xue=Or(),kue=bt(),Aue=x(),Oue=k(),yD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return yD.Command}});var Nue=w(),pD=Ye(),fD=q(),mh=class e extends yD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Oue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Aue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,kue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:pD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.CopyObjectOutputFilterSensitiveLog,[Nue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,fD.de_CopyObjectCommand)(n,t)}};To.CopyObjectCommand=mh});var hD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function gD(e){return n=>async t=>{let{CreateBucketConfiguration:r}=t.input,o=await e.region();return(!r||!r.LocationConstraint)&&(t={...t,input:{...t.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),n(t)}}Pn.locationConstraintMiddleware=gD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var Iue=e=>({applyToStack:n=>{n.add(gD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=Iue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CreateBucketCommand=Bo.$Command=void 0;var Rue=hD(),Tue=x(),Bue=k(),CD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return CD.Command}});var que=w(),_D=q(),fh=class e extends CD.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rue.getLocationConstraintPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[que.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_D.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,_D.de_CreateBucketCommand)(n,t)}};Bo.CreateBucketCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CreateMultipartUploadCommand=qo.$Command=void 0;var Due=bt(),Mue=x(),Fue=k(),ED=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return ED.Command}});var Lue=w(),SD=Ye(),bD=q(),gh=class e extends ED.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Due.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:SD.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:SD.CreateMultipartUploadOutputFilterSensitiveLog,[Lue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,bD.de_CreateMultipartUploadCommand)(n,t)}};qo.CreateMultipartUploadCommand=gh});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DeleteBucketAnalyticsConfigurationCommand=Do.$Command=void 0;var jue=x(),zue=k(),vD=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return vD.Command}});var Uue=w(),PD=q(),_h=class e extends vD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Uue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PD.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,PD.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};Do.DeleteBucketAnalyticsConfigurationCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketCommand=Mo.$Command=void 0;var Gue=x(),Hue=k(),xD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var $ue=w(),wD=q(),Sh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$ue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wD.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,wD.de_DeleteBucketCommand)(n,t)}};Mo.DeleteBucketCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketCorsCommand=Fo.$Command=void 0;var Kue=x(),Vue=k(),AD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return AD.Command}});var Xue=w(),kD=q(),Eh=class e extends AD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kD.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,kD.de_DeleteBucketCorsCommand)(n,t)}};Fo.DeleteBucketCorsCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketEncryptionCommand=Lo.$Command=void 0;var Wue=x(),Yue=k(),ND=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Jue=w(),OD=q(),vh=class e extends ND.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,OD.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,OD.de_DeleteBucketEncryptionCommand)(n,t)}};Lo.DeleteBucketEncryptionCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketIntelligentTieringConfigurationCommand=jo.$Command=void 0;var Que=x(),Zue=k(),RD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return RD.Command}});var eme=w(),ID=q(),xh=class e extends RD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Que.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[eme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ID.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,ID.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};jo.DeleteBucketIntelligentTieringConfigurationCommand=xh});var Oh=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketInventoryConfigurationCommand=zo.$Command=void 0;var tme=x(),nme=k(),BD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return BD.Command}});var rme=w(),TD=q(),Ah=class e extends BD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TD.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,TD.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};zo.DeleteBucketInventoryConfigurationCommand=Ah});var Ih=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketLifecycleCommand=Uo.$Command=void 0;var ome=x(),sme=k(),DD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return DD.Command}});var ime=w(),qD=q(),Nh=class e extends DD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ome.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ime.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qD.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,qD.de_DeleteBucketLifecycleCommand)(n,t)}};Uo.DeleteBucketLifecycleCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketMetricsConfigurationCommand=Go.$Command=void 0;var ame=x(),cme=k(),FD=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return FD.Command}});var dme=w(),MD=q(),Rh=class e extends FD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ame.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MD.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,MD.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Go.DeleteBucketMetricsConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketOwnershipControlsCommand=Ho.$Command=void 0;var lme=x(),ume=k(),jD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return jD.Command}});var mme=w(),LD=q(),Bh=class e extends jD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ume.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[mme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LD.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,LD.de_DeleteBucketOwnershipControlsCommand)(n,t)}};Ho.DeleteBucketOwnershipControlsCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketPolicyCommand=$o.$Command=void 0;var pme=x(),fme=k(),UD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return UD.Command}});var yme=w(),zD=q(),Dh=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zD.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,zD.de_DeleteBucketPolicyCommand)(n,t)}};$o.DeleteBucketPolicyCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketReplicationCommand=Ko.$Command=void 0;var gme=x(),hme=k(),HD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return HD.Command}});var _me=w(),GD=q(),Fh=class e extends HD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_me.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GD.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,GD.de_DeleteBucketReplicationCommand)(n,t)}};Ko.DeleteBucketReplicationCommand=Fh});var zh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketTaggingCommand=Vo.$Command=void 0;var Cme=x(),Sme=k(),KD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return KD.Command}});var bme=w(),$D=q(),jh=class e extends KD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$D.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,$D.de_DeleteBucketTaggingCommand)(n,t)}};Vo.DeleteBucketTaggingCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketWebsiteCommand=Xo.$Command=void 0;var Eme=x(),Pme=k(),XD=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return XD.Command}});var vme=w(),VD=q(),Uh=class e extends XD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Eme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VD.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,VD.de_DeleteBucketWebsiteCommand)(n,t)}};Xo.DeleteBucketWebsiteCommand=Uh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteObjectCommand=Wo.$Command=void 0;var wme=x(),xme=k(),YD=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return YD.Command}});var kme=w(),WD=q(),Hh=class e extends YD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WD.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,WD.de_DeleteObjectCommand)(n,t)}};Wo.DeleteObjectCommand=Hh});var Yo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var Ame;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(Ame=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var Ome;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Ome=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Kh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PRIORITY_ORDER_ALGORITHMS=Jo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Yo();Jo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Jo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var QD=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumAlgorithmForRequest=void 0;var Nme=Yo(),JD=Kh(),Ime=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Nme.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!JD.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${JD.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};_m.getChecksumAlgorithmForRequest=Ime});var Vh=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getChecksumLocationName=void 0;var Rme=Yo(),Tme=e=>e===Rme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;Cm.getChecksumLocationName=Tme});var ZD=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.hasHeader=void 0;var Bme=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};Sm.hasHeader=Bme});var Em=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.isStreaming=void 0;var qme=sc(),Dme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,qme.isArrayBuffer)(e);bm.isStreaming=Dme});var Jh={};Ai(Jh,{__assign:()=>Wh,__asyncDelegator:()=>Wme,__asyncGenerator:()=>Xme,__asyncValues:()=>Yme,__await:()=>za,__awaiter:()=>Ume,__classPrivateFieldGet:()=>epe,__classPrivateFieldSet:()=>tpe,__createBinding:()=>Hme,__decorate:()=>Lme,__exportStar:()=>$me,__extends:()=>Mme,__generator:()=>Gme,__importDefault:()=>Zme,__importStar:()=>Qme,__makeTemplateObject:()=>Jme,__metadata:()=>zme,__param:()=>jme,__read:()=>e1,__rest:()=>Fme,__spread:()=>Kme,__spreadArrays:()=>Vme,__values:()=>Yh});function Mme(e,n){Xh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Fme(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function jme(e,n){return function(t,r){n(t,r,e)}}function zme(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function Ume(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function Gme(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function e1(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Kme(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof za?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function Wme(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:za(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function Yme(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Yh=="function"?Yh(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function Jme(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function Qme(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Zme(e){return e&&e.__esModule?e:{default:e}}function epe(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function tpe(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var Xh,Wh,Qh=Le(()=>{Xh=function(e,n){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Xh(e,n)};Wh=function(){return Wh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.AwsCrc32c=void 0;var t1=(Qh(),Y(Jh)),Zh=ji(),n1=e_(),npe=function(){function e(){this.crc32c=new n1.Crc32c}return e.prototype.update=function(n){(0,Zh.isEmptyData)(n)||this.crc32c.update((0,Zh.convertToBuffer)(n))},e.prototype.digest=function(){return t1.__awaiter(this,void 0,void 0,function(){return t1.__generator(this,function(n){return[2,(0,Zh.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new n1.Crc32c},e}();Pm.AwsCrc32c=npe});var e_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var rpe=(Qh(),Y(Jh)),ope=ji();function spe(e){return new o1().update(e).digest()}rr.crc32c=spe;var o1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=rpe.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^ape[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=o1;var ipe=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],ape=(0,ope.uint32ArrayFrom)(ipe),cpe=r1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return cpe.AwsCrc32c}})});var t_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.selectChecksumAlgorithmFunction=void 0;var dpe=zi(),lpe=e_(),Ua=Yo(),upe=(e,n)=>({[Ua.ChecksumAlgorithm.MD5]:n.md5,[Ua.ChecksumAlgorithm.CRC32]:dpe.AwsCrc32,[Ua.ChecksumAlgorithm.CRC32C]:lpe.AwsCrc32c,[Ua.ChecksumAlgorithm.SHA1]:n.sha1,[Ua.ChecksumAlgorithm.SHA256]:n.sha256})[e];vm.selectChecksumAlgorithmFunction=upe});var n_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.stringHasher=void 0;var mpe=yt(),ppe=(e,n)=>{let t=new e;return t.update((0,mpe.toUint8Array)(n||"")),t.digest()};wm.stringHasher=ppe});var r_=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.flexibleChecksumsMiddleware=void 0;var fpe=Ne(),ype=QD(),gpe=Vh(),hpe=ZD(),_pe=Em(),Cpe=t_(),Spe=n_(),bpe=(e,n)=>t=>async r=>{if(!fpe.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{body:s,headers:c}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:a,requestAlgorithmMember:y}=n,g=(0,ype.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:a,requestAlgorithmMember:y}),C=s,v=c;if(g){let E=(0,gpe.getChecksumLocationName)(g),G=(0,Cpe.selectChecksumAlgorithmFunction)(g,e);if((0,_pe.isStreaming)(s)){let{getAwsChunkedEncodingStream:ye,bodyLengthChecker:nt}=e;C=ye(s,{base64Encoder:i,bodyLengthChecker:nt,checksumLocationName:E,checksumAlgorithmFn:G,streamHasher:u}),v={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":E},delete v["content-length"]}else if(!(0,hpe.hasHeader)(E,c)){let ye=await(0,Spe.stringHasher)(G,s);v={...c,[E]:i(ye)}}}return await t({...r,request:{...o,headers:v,body:C}})};xm.flexibleChecksumsMiddleware=bpe});var s1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.createReadStreamOnBuffer=void 0;var Epe=require("stream");function Ppe(e){let n=new Epe.Transform;return n.push(e),n.push(null),n}km.createReadStreamOnBuffer=Ppe});var i1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksum=void 0;var vpe=Em(),wpe=n_(),xpe=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let o=(0,vpe.isStreaming)(e)?n(t,e):(0,wpe.stringHasher)(t,e);return r(await o)};Am.getChecksum=xpe});var c1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getChecksumAlgorithmListForResponse=void 0;var a1=Kh(),kpe=(e=[])=>{let n=[];for(let t of a1.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!a1.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};Om.getChecksumAlgorithmListForResponse=kpe});var d1=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.validateChecksumFromResponse=void 0;var Ape=i1(),Ope=c1(),Npe=Vh(),Ipe=t_(),Rpe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,Ope.getChecksumAlgorithmListForResponse)(t),{body:o,headers:s}=e;for(let c of r){let i=(0,Npe.getChecksumLocationName)(c),u=s[i];if(u){let l=(0,Ipe.selectChecksumAlgorithmFunction)(c,n),{streamHasher:a,base64Encoder:y}=n,g=await(0,Ape.getChecksum)(o,{streamHasher:a,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Nm.validateChecksumFromResponse=Rpe});var u1=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.flexibleChecksumsResponseMiddleware=Qo.flexibleChecksumsResponseMiddlewareOptions=void 0;var Tpe=Ne(),Bpe=Em(),l1=s1(),qpe=d1();Qo.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Dpe=(e,n)=>t=>async r=>{if(!Tpe.HttpRequest.isInstance(r.request))return t(r);let o=r.input,s=await t(r),c=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=n;if(u&&o[u]==="ENABLED"){let a=(0,Bpe.isStreaming)(c.body);a&&(i=await e.streamCollector(c.body),c.body=(0,l1.createReadStreamOnBuffer)(i)),await(0,qpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),a&&i&&(c.body=(0,l1.createReadStreamOnBuffer)(i))}return s};Qo.flexibleChecksumsResponseMiddleware=Dpe});var p1=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getFlexibleChecksumsPlugin=Sr.flexibleChecksumsMiddlewareOptions=void 0;var Mpe=r_(),m1=u1();Sr.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Fpe=(e,n)=>({applyToStack:t=>{t.add((0,Mpe.flexibleChecksumsMiddleware)(e,n),Sr.flexibleChecksumsMiddlewareOptions),t.addRelativeTo((0,m1.flexibleChecksumsResponseMiddleware)(e,n),m1.flexibleChecksumsResponseMiddlewareOptions)}});Sr.getFlexibleChecksumsPlugin=Fpe});var be=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var o_=(te(),Y(ee));o_.__exportStar(Yo(),Ga);o_.__exportStar(r_(),Ga);o_.__exportStar(p1(),Ga)});var i_=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.DeleteObjectsCommand=Zo.$Command=void 0;var Lpe=be(),jpe=x(),zpe=k(),y1=b();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return y1.Command}});var Upe=w(),f1=q(),s_=class e extends y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lpe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Upe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,f1.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,f1.de_DeleteObjectsCommand)(n,t)}};Zo.DeleteObjectsCommand=s_});var c_=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.DeleteObjectTaggingCommand=es.$Command=void 0;var Gpe=x(),Hpe=k(),h1=b();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return h1.Command}});var $pe=w(),g1=q(),a_=class e extends h1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$pe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,g1.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,g1.de_DeleteObjectTaggingCommand)(n,t)}};es.DeleteObjectTaggingCommand=a_});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeletePublicAccessBlockCommand=ts.$Command=void 0;var Kpe=x(),Vpe=k(),C1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return C1.Command}});var Xpe=w(),_1=q(),d_=class e extends C1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_1.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,_1.de_DeletePublicAccessBlockCommand)(n,t)}};ts.DeletePublicAccessBlockCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.GetBucketAccelerateConfigurationCommand=ns.$Command=void 0;var Wpe=x(),Ype=k(),b1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return b1.Command}});var Jpe=w(),S1=q(),u_=class e extends b1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ype.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,S1.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,S1.de_GetBucketAccelerateConfigurationCommand)(n,t)}};ns.GetBucketAccelerateConfigurationCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.GetBucketAclCommand=rs.$Command=void 0;var Qpe=x(),Zpe=k(),P1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return P1.Command}});var efe=w(),E1=q(),p_=class e extends P1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[efe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,E1.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,E1.de_GetBucketAclCommand)(n,t)}};rs.GetBucketAclCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAnalyticsConfigurationCommand=os.$Command=void 0;var tfe=x(),nfe=k(),w1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return w1.Command}});var rfe=w(),v1=q(),y_=class e extends w1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,v1.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,v1.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};os.GetBucketAnalyticsConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketCorsCommand=ss.$Command=void 0;var ofe=x(),sfe=k(),k1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return k1.Command}});var ife=w(),x1=q(),h_=class e extends k1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ofe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ife.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,x1.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,x1.de_GetBucketCorsCommand)(n,t)}};ss.GetBucketCorsCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketEncryptionCommand=is.$Command=void 0;var afe=x(),cfe=k(),O1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return O1.Command}});var dfe=w(),lfe=Ye(),A1=q(),C_=class e extends O1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,afe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:lfe.GetBucketEncryptionOutputFilterSensitiveLog,[dfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,A1.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,A1.de_GetBucketEncryptionCommand)(n,t)}};is.GetBucketEncryptionCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketIntelligentTieringConfigurationCommand=as.$Command=void 0;var ufe=x(),mfe=k(),I1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return I1.Command}});var pfe=w(),N1=q(),b_=class e extends I1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ufe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N1.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,N1.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};as.GetBucketIntelligentTieringConfigurationCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketInventoryConfigurationCommand=cs.$Command=void 0;var ffe=x(),yfe=k(),T1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return T1.Command}});var gfe=w(),hfe=Ye(),R1=q(),P_=class e extends T1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ffe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:hfe.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[gfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R1.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,R1.de_GetBucketInventoryConfigurationCommand)(n,t)}};cs.GetBucketInventoryConfigurationCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketLifecycleConfigurationCommand=ds.$Command=void 0;var _fe=x(),Cfe=k(),q1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return q1.Command}});var Sfe=w(),B1=q(),w_=class e extends q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Cfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,_fe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,B1.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,B1.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ds.GetBucketLifecycleConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketLocationCommand=ls.$Command=void 0;var bfe=x(),Efe=k(),M1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return M1.Command}});var Pfe=w(),D1=q(),k_=class e extends M1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Efe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,D1.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,D1.de_GetBucketLocationCommand)(n,t)}};ls.GetBucketLocationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLoggingCommand=us.$Command=void 0;var vfe=x(),wfe=k(),L1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return L1.Command}});var xfe=w(),F1=q(),O_=class e extends L1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[xfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,F1.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,F1.de_GetBucketLoggingCommand)(n,t)}};us.GetBucketLoggingCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketMetricsConfigurationCommand=ms.$Command=void 0;var kfe=x(),Afe=k(),z1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return z1.Command}});var Ofe=w(),j1=q(),I_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Afe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ofe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,j1.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,j1.de_GetBucketMetricsConfigurationCommand)(n,t)}};ms.GetBucketMetricsConfigurationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketNotificationConfigurationCommand=ps.$Command=void 0;var Nfe=x(),Ife=k(),G1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return G1.Command}});var Rfe=w(),U1=q(),T_=class e extends G1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ife.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U1.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,U1.de_GetBucketNotificationConfigurationCommand)(n,t)}};ps.GetBucketNotificationConfigurationCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketOwnershipControlsCommand=fs.$Command=void 0;var Tfe=x(),Bfe=k(),$1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return $1.Command}});var qfe=w(),H1=q(),q_=class e extends $1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,H1.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,H1.de_GetBucketOwnershipControlsCommand)(n,t)}};fs.GetBucketOwnershipControlsCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketPolicyCommand=ys.$Command=void 0;var Dfe=x(),Mfe=k(),V1=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return V1.Command}});var Ffe=w(),K1=q(),M_=class e extends V1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Mfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,K1.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,K1.de_GetBucketPolicyCommand)(n,t)}};ys.GetBucketPolicyCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketPolicyStatusCommand=gs.$Command=void 0;var Lfe=x(),jfe=k(),W1=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return W1.Command}});var zfe=w(),X1=q(),L_=class e extends W1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[zfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,X1.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,X1.de_GetBucketPolicyStatusCommand)(n,t)}};gs.GetBucketPolicyStatusCommand=L_});var U_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketReplicationCommand=hs.$Command=void 0;var Ufe=x(),Gfe=k(),J1=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return J1.Command}});var Hfe=w(),Y1=q(),z_=class e extends J1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ufe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Hfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Y1.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,Y1.de_GetBucketReplicationCommand)(n,t)}};hs.GetBucketReplicationCommand=z_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketRequestPaymentCommand=_s.$Command=void 0;var $fe=x(),Kfe=k(),Z1=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return Z1.Command}});var Vfe=w(),Q1=q(),G_=class e extends Z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Kfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$fe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Q1.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,Q1.de_GetBucketRequestPaymentCommand)(n,t)}};_s.GetBucketRequestPaymentCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketTaggingCommand=Cs.$Command=void 0;var Xfe=x(),Wfe=k(),tM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return tM.Command}});var Yfe=w(),eM=q(),$_=class e extends tM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Wfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Yfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eM.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,eM.de_GetBucketTaggingCommand)(n,t)}};Cs.GetBucketTaggingCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketVersioningCommand=Ss.$Command=void 0;var Jfe=x(),Qfe=k(),rM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return rM.Command}});var Zfe=w(),nM=q(),V_=class e extends rM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nM.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,nM.de_GetBucketVersioningCommand)(n,t)}};Ss.GetBucketVersioningCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketWebsiteCommand=bs.$Command=void 0;var eye=x(),tye=k(),sM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return sM.Command}});var nye=w(),oM=q(),W_=class e extends sM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,eye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oM.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,oM.de_GetBucketWebsiteCommand)(n,t)}};bs.GetBucketWebsiteCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetObjectAclCommand=Es.$Command=void 0;var rye=x(),oye=k(),aM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return aM.Command}});var sye=w(),iM=q(),J_=class e extends aM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,oye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[sye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iM.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,iM.de_GetObjectAclCommand)(n,t)}};Es.GetObjectAclCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetObjectAttributesCommand=Ps.$Command=void 0;var iye=bt(),aye=x(),cye=k(),dM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return dM.Command}});var dye=w(),lye=Ye(),cM=q(),Z_=class e extends dM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,aye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,iye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:lye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[dye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cM.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,cM.de_GetObjectAttributesCommand)(n,t)}};Ps.GetObjectAttributesCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectCommand=vs.$Command=void 0;var uye=be(),mye=bt(),pye=x(),fye=k(),mM=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var yye=w(),lM=Ye(),uM=q(),tC=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mye.getSsecPlugin)(t)),this.middlewareStack.use((0,uye.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:lM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:lM.GetObjectOutputFilterSensitiveLog,[yye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uM.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,uM.de_GetObjectCommand)(n,t)}};vs.GetObjectCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectLegalHoldCommand=ws.$Command=void 0;var gye=x(),hye=k(),fM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return fM.Command}});var _ye=w(),pM=q(),rC=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_ye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pM.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,pM.de_GetObjectLegalHoldCommand)(n,t)}};ws.GetObjectLegalHoldCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectLockConfigurationCommand=xs.$Command=void 0;var Cye=x(),Sye=k(),gM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gM.Command}});var bye=w(),yM=q(),sC=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yM.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,yM.de_GetObjectLockConfigurationCommand)(n,t)}};xs.GetObjectLockConfigurationCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectRetentionCommand=ks.$Command=void 0;var Eye=x(),Pye=k(),_M=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return _M.Command}});var vye=w(),hM=q(),aC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Eye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hM.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,hM.de_GetObjectRetentionCommand)(n,t)}};ks.GetObjectRetentionCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectTaggingCommand=As.$Command=void 0;var wye=x(),xye=k(),SM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return SM.Command}});var kye=w(),CM=q(),dC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,CM.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,CM.de_GetObjectTaggingCommand)(n,t)}};As.GetObjectTaggingCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectTorrentCommand=Os.$Command=void 0;var Aye=x(),Oye=k(),EM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return EM.Command}});var Nye=w(),Iye=Ye(),bM=q(),uC=class e extends EM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Oye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Aye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Iye.GetObjectTorrentOutputFilterSensitiveLog,[Nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bM.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,bM.de_GetObjectTorrentCommand)(n,t)}};Os.GetObjectTorrentCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetPublicAccessBlockCommand=Ns.$Command=void 0;var Rye=x(),Tye=k(),vM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return vM.Command}});var Bye=w(),PM=q(),pC=class e extends vM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Bye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PM.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,PM.de_GetPublicAccessBlockCommand)(n,t)}};Ns.GetPublicAccessBlockCommand=pC});var Ha=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.HeadBucketCommand=Is.$Command=void 0;var qye=x(),Dye=k(),xM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xM.Command}});var Mye=w(),wM=q(),yC=class e extends xM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Mye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wM.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,wM.de_HeadBucketCommand)(n,t)}};Is.HeadBucketCommand=yC});var $a=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HeadObjectCommand=Rs.$Command=void 0;var Fye=bt(),Lye=x(),jye=k(),OM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return OM.Command}});var zye=w(),kM=Ye(),AM=q(),gC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Fye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:kM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:kM.HeadObjectOutputFilterSensitiveLog,[zye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AM.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,AM.de_HeadObjectCommand)(n,t)}};Rs.HeadObjectCommand=gC});var _C=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ListBucketAnalyticsConfigurationsCommand=Ts.$Command=void 0;var Uye=x(),Gye=k(),IM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Hye=w(),NM=q(),hC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Uye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Hye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NM.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,NM.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Ts.ListBucketAnalyticsConfigurationsCommand=hC});var SC=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ListBucketIntelligentTieringConfigurationsCommand=Bs.$Command=void 0;var $ye=x(),Kye=k(),TM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return TM.Command}});var Vye=w(),RM=q(),CC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Kye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$ye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RM.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,RM.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};Bs.ListBucketIntelligentTieringConfigurationsCommand=CC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketInventoryConfigurationsCommand=qs.$Command=void 0;var Xye=x(),Wye=k(),qM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Yye=w(),Jye=Ye(),BM=q(),bC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Wye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Jye.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[Yye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,BM.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,BM.de_ListBucketInventoryConfigurationsCommand)(n,t)}};qs.ListBucketInventoryConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketMetricsConfigurationsCommand=Ds.$Command=void 0;var Qye=x(),Zye=k(),MM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return MM.Command}});var ege=w(),DM=q(),PC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ege.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DM.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,DM.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ds.ListBucketMetricsConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketsCommand=Ms.$Command=void 0;var tge=x(),nge=k(),LM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return LM.Command}});var rge=w(),FM=q(),wC=class e extends LM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,FM.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,FM.de_ListBucketsCommand)(n,t)}};Ms.ListBucketsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListMultipartUploadsCommand=Fs.$Command=void 0;var oge=x(),sge=k(),zM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var ige=w(),jM=q(),kC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,oge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jM.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,jM.de_ListMultipartUploadsCommand)(n,t)}};Fs.ListMultipartUploadsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListObjectsCommand=Ls.$Command=void 0;var age=x(),cge=k(),GM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return GM.Command}});var dge=w(),UM=q(),OC=class e extends GM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,age.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,UM.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,UM.de_ListObjectsCommand)(n,t)}};Ls.ListObjectsCommand=OC});var Im=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListObjectsV2Command=js.$Command=void 0;var lge=x(),uge=k(),$M=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return $M.Command}});var mge=w(),HM=q(),IC=class e extends $M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,uge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[mge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,HM.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,HM.de_ListObjectsV2Command)(n,t)}};js.ListObjectsV2Command=IC});var TC=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectVersionsCommand=zs.$Command=void 0;var pge=x(),fge=k(),VM=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return VM.Command}});var yge=w(),KM=q(),RC=class e extends VM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,KM.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,KM.de_ListObjectVersionsCommand)(n,t)}};zs.ListObjectVersionsCommand=RC});var Rm=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListPartsCommand=Us.$Command=void 0;var gge=bt(),hge=x(),_ge=k(),WM=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return WM.Command}});var Cge=w(),Sge=Ye(),XM=q(),BC=class e extends WM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,gge.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Sge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Cge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,XM.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,XM.de_ListPartsCommand)(n,t)}};Us.ListPartsCommand=BC});var DC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.PutBucketAccelerateConfigurationCommand=Gs.$Command=void 0;var bge=be(),Ege=x(),Pge=k(),JM=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return JM.Command}});var vge=w(),YM=q(),qC=class e extends JM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ege.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,bge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YM.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,YM.de_PutBucketAccelerateConfigurationCommand)(n,t)}};Gs.PutBucketAccelerateConfigurationCommand=qC});var FC=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.PutBucketAclCommand=Hs.$Command=void 0;var wge=be(),xge=x(),kge=k(),ZM=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return ZM.Command}});var Age=w(),QM=q(),MC=class e extends ZM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,wge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,QM.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,QM.de_PutBucketAclCommand)(n,t)}};Hs.PutBucketAclCommand=MC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAnalyticsConfigurationCommand=$s.$Command=void 0;var Oge=x(),Nge=k(),tF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return tF.Command}});var Ige=w(),eF=q(),LC=class e extends tF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Nge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Oge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eF.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,eF.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};$s.PutBucketAnalyticsConfigurationCommand=LC});var UC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketCorsCommand=Ks.$Command=void 0;var Rge=be(),Tge=x(),Bge=k(),rF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return rF.Command}});var qge=w(),nF=q(),zC=class e extends rF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nF.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,nF.de_PutBucketCorsCommand)(n,t)}};Ks.PutBucketCorsCommand=zC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketEncryptionCommand=Vs.$Command=void 0;var Dge=be(),Mge=x(),Fge=k(),sF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return sF.Command}});var Lge=w(),jge=Ye(),oF=q(),GC=class e extends sF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:jge.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oF.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,oF.de_PutBucketEncryptionCommand)(n,t)}};Vs.PutBucketEncryptionCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketIntelligentTieringConfigurationCommand=Xs.$Command=void 0;var zge=x(),Uge=k(),aF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return aF.Command}});var Gge=w(),iF=q(),$C=class e extends aF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iF.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,iF.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Xs.PutBucketIntelligentTieringConfigurationCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketInventoryConfigurationCommand=Ws.$Command=void 0;var Hge=x(),$ge=k(),dF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return dF.Command}});var Kge=w(),Vge=Ye(),cF=q(),VC=class e extends dF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$ge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:Vge.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Kge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cF.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,cF.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ws.PutBucketInventoryConfigurationCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketLifecycleConfigurationCommand=Ys.$Command=void 0;var Xge=be(),Wge=x(),Yge=k(),uF=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return uF.Command}});var Jge=w(),lF=q(),WC=class e extends uF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Xge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,lF.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,lF.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Ys.PutBucketLifecycleConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketLoggingCommand=Js.$Command=void 0;var Qge=be(),Zge=x(),ehe=k(),pF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return pF.Command}});var the=w(),mF=q(),JC=class e extends pF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ehe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[the.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mF.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,mF.de_PutBucketLoggingCommand)(n,t)}};Js.PutBucketLoggingCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketMetricsConfigurationCommand=Qs.$Command=void 0;var nhe=x(),rhe=k(),yF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return yF.Command}});var ohe=w(),fF=q(),ZC=class e extends yF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fF.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,fF.de_PutBucketMetricsConfigurationCommand)(n,t)}};Qs.PutBucketMetricsConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketNotificationConfigurationCommand=Zs.$Command=void 0;var she=x(),ihe=k(),hF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return hF.Command}});var ahe=w(),gF=q(),tS=class e extends hF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ihe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,she.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ahe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gF.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,gF.de_PutBucketNotificationConfigurationCommand)(n,t)}};Zs.PutBucketNotificationConfigurationCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketOwnershipControlsCommand=ei.$Command=void 0;var che=be(),dhe=x(),lhe=k(),CF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return CF.Command}});var uhe=w(),_F=q(),rS=class e extends CF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,lhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,dhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,che.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_F.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,_F.de_PutBucketOwnershipControlsCommand)(n,t)}};ei.PutBucketOwnershipControlsCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketPolicyCommand=ti.$Command=void 0;var mhe=be(),phe=x(),fhe=k(),bF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return bF.Command}});var yhe=w(),SF=q(),sS=class e extends bF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,phe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SF.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,SF.de_PutBucketPolicyCommand)(n,t)}};ti.PutBucketPolicyCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketReplicationCommand=ni.$Command=void 0;var ghe=be(),hhe=x(),_he=k(),PF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return PF.Command}});var Che=w(),EF=q(),aS=class e extends PF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_he.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,ghe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Che.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,EF.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,EF.de_PutBucketReplicationCommand)(n,t)}};ni.PutBucketReplicationCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketRequestPaymentCommand=ri.$Command=void 0;var She=be(),bhe=x(),Ehe=k(),wF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return wF.Command}});var Phe=w(),vF=q(),dS=class e extends wF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ehe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,She.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Phe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vF.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,vF.de_PutBucketRequestPaymentCommand)(n,t)}};ri.PutBucketRequestPaymentCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketTaggingCommand=oi.$Command=void 0;var vhe=be(),whe=x(),xhe=k(),kF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return kF.Command}});var khe=w(),xF=q(),uS=class e extends kF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,whe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[khe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xF.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,xF.de_PutBucketTaggingCommand)(n,t)}};oi.PutBucketTaggingCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketVersioningCommand=si.$Command=void 0;var Ahe=be(),Ohe=x(),Nhe=k(),OF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return OF.Command}});var Ihe=w(),AF=q(),pS=class e extends OF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Nhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ohe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ahe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ihe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AF.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,AF.de_PutBucketVersioningCommand)(n,t)}};si.PutBucketVersioningCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketWebsiteCommand=ii.$Command=void 0;var Rhe=be(),The=x(),Bhe=k(),IF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return IF.Command}});var qhe=w(),NF=q(),yS=class e extends IF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,The.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NF.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,NF.de_PutBucketWebsiteCommand)(n,t)}};ii.PutBucketWebsiteCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutObjectAclCommand=ai.$Command=void 0;var Dhe=be(),Mhe=x(),Fhe=k(),TF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return TF.Command}});var Lhe=w(),RF=q(),hS=class e extends TF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Lhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RF.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,RF.de_PutObjectAclCommand)(n,t)}};ai.PutObjectAclCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutObjectCommand=ci.$Command=void 0;var jhe=be(),zhe=Or(),Uhe=bt(),Ghe=x(),Hhe=k(),DF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return DF.Command}});var $he=w(),BF=Ye(),qF=q(),CS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ghe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,zhe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,Uhe.getSsecPlugin)(t)),this.middlewareStack.use((0,jhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:BF.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:BF.PutObjectOutputFilterSensitiveLog,[$he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qF.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,qF.de_PutObjectCommand)(n,t)}};ci.PutObjectCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectLegalHoldCommand=di.$Command=void 0;var Khe=be(),Vhe=x(),Xhe=k(),FF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Whe=w(),MF=q(),bS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Khe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MF.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,MF.de_PutObjectLegalHoldCommand)(n,t)}};di.PutObjectLegalHoldCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectLockConfigurationCommand=li.$Command=void 0;var Yhe=be(),Jhe=x(),Qhe=k(),jF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return jF.Command}});var Zhe=w(),LF=q(),PS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LF.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,LF.de_PutObjectLockConfigurationCommand)(n,t)}};li.PutObjectLockConfigurationCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectRetentionCommand=ui.$Command=void 0;var e_e=be(),t_e=x(),n_e=k(),UF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return UF.Command}});var r_e=w(),zF=q(),wS=class e extends UF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,n_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,t_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,e_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[r_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zF.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,zF.de_PutObjectRetentionCommand)(n,t)}};ui.PutObjectRetentionCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectTaggingCommand=mi.$Command=void 0;var o_e=be(),s_e=x(),i_e=k(),HF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return HF.Command}});var a_e=w(),GF=q(),kS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,i_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,s_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,o_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[a_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GF.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,GF.de_PutObjectTaggingCommand)(n,t)}};mi.PutObjectTaggingCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutPublicAccessBlockCommand=pi.$Command=void 0;var c_e=be(),d_e=x(),l_e=k(),KF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return KF.Command}});var u_e=w(),$F=q(),OS=class e extends KF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,l_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,d_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,c_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[u_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$F.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,$F.de_PutPublicAccessBlockCommand)(n,t)}};pi.PutPublicAccessBlockCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.RestoreObjectCommand=fi.$Command=void 0;var m_e=be(),p_e=x(),f_e=k(),XF=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return XF.Command}});var y_e=w(),g_e=Zn(),VF=q(),IS=class e extends XF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,f_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,p_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,m_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:g_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[y_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VF.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,VF.de_RestoreObjectCommand)(n,t)}};fi.RestoreObjectCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SelectObjectContentCommand=yi.$Command=void 0;var h_e=bt(),__e=x(),C_e=k(),JF=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var S_e=w(),WF=Zn(),YF=q(),TS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,C_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,__e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,h_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:WF.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:WF.SelectObjectContentOutputFilterSensitiveLog,[S_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YF.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,YF.de_SelectObjectContentCommand)(n,t)}};yi.SelectObjectContentCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.UploadPartCommand=gi.$Command=void 0;var b_e=be(),E_e=bt(),P_e=x(),v_e=k(),eL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return eL.Command}});var w_e=w(),QF=Zn(),ZF=q(),qS=class e extends eL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,v_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,P_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,E_e.getSsecPlugin)(t)),this.middlewareStack.use((0,b_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:QF.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:QF.UploadPartOutputFilterSensitiveLog,[w_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ZF.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,ZF.de_UploadPartCommand)(n,t)}};gi.UploadPartCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.UploadPartCopyCommand=hi.$Command=void 0;var x_e=Or(),k_e=bt(),A_e=x(),O_e=k(),rL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var N_e=w(),tL=Zn(),nL=q(),MS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,O_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,A_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,x_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,k_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:tL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:tL.UploadPartCopyOutputFilterSensitiveLog,[N_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nL.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,nL.de_UploadPartCopyCommand)(n,t)}};hi.UploadPartCopyCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.WriteGetObjectResponseCommand=_i.$Command=void 0;var I_e=x(),R_e=k(),sL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return sL.Command}});var T_e=w(),B_e=Zn(),oL=q(),LS=class e extends sL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,R_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,I_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:B_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[T_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oL.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,oL.de_WriteGetObjectResponseCommand)(n,t)}};_i.WriteGetObjectResponseCommand=LS});var iL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.S3=void 0;var q_e=b(),D_e=dh(),M_e=uh(),F_e=ph(),L_e=yh(),j_e=hh(),z_e=Ch(),U_e=bh(),G_e=Ph(),H_e=wh(),$_e=kh(),K_e=Oh(),V_e=Ih(),X_e=Th(),W_e=qh(),Y_e=Mh(),J_e=Lh(),Q_e=zh(),Z_e=Gh(),eCe=$h(),tCe=i_(),nCe=c_(),rCe=l_(),oCe=m_(),sCe=f_(),iCe=g_(),aCe=__(),cCe=S_(),dCe=E_(),lCe=v_(),uCe=x_(),mCe=A_(),pCe=N_(),fCe=R_(),yCe=B_(),gCe=D_(),hCe=F_(),_Ce=j_(),CCe=U_(),SCe=H_(),bCe=K_(),ECe=X_(),PCe=Y_(),vCe=Q_(),wCe=eC(),xCe=nC(),kCe=oC(),ACe=iC(),OCe=cC(),NCe=lC(),ICe=mC(),RCe=fC(),TCe=Ha(),BCe=$a(),qCe=_C(),DCe=SC(),MCe=EC(),FCe=vC(),LCe=xC(),jCe=AC(),zCe=NC(),UCe=Im(),GCe=TC(),HCe=Rm(),$Ce=DC(),KCe=FC(),VCe=jC(),XCe=UC(),WCe=HC(),YCe=KC(),JCe=XC(),QCe=YC(),ZCe=QC(),eSe=eS(),tSe=nS(),nSe=oS(),rSe=iS(),oSe=cS(),sSe=lS(),iSe=mS(),aSe=fS(),cSe=gS(),dSe=_S(),lSe=SS(),uSe=ES(),mSe=vS(),pSe=xS(),fSe=AS(),ySe=NS(),gSe=RS(),hSe=BS(),_Se=DS(),CSe=FS(),SSe=jS(),bSe=Fa(),ESe={AbortMultipartUploadCommand:D_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:M_e.CompleteMultipartUploadCommand,CopyObjectCommand:F_e.CopyObjectCommand,CreateBucketCommand:L_e.CreateBucketCommand,CreateMultipartUploadCommand:j_e.CreateMultipartUploadCommand,DeleteBucketCommand:U_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:z_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:G_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:H_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:$_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:K_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:V_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:X_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:W_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:Y_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:J_e.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:Q_e.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:Z_e.DeleteBucketWebsiteCommand,DeleteObjectCommand:eCe.DeleteObjectCommand,DeleteObjectsCommand:tCe.DeleteObjectsCommand,DeleteObjectTaggingCommand:nCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:rCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:oCe.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:sCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:iCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:aCe.GetBucketCorsCommand,GetBucketEncryptionCommand:cCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:dCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:lCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:uCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:mCe.GetBucketLocationCommand,GetBucketLoggingCommand:pCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:fCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:yCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:gCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:hCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:_Ce.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:CCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:SCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:bCe.GetBucketTaggingCommand,GetBucketVersioningCommand:ECe.GetBucketVersioningCommand,GetBucketWebsiteCommand:PCe.GetBucketWebsiteCommand,GetObjectCommand:xCe.GetObjectCommand,GetObjectAclCommand:vCe.GetObjectAclCommand,GetObjectAttributesCommand:wCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:kCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:ACe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:OCe.GetObjectRetentionCommand,GetObjectTaggingCommand:NCe.GetObjectTaggingCommand,GetObjectTorrentCommand:ICe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:RCe.GetPublicAccessBlockCommand,HeadBucketCommand:TCe.HeadBucketCommand,HeadObjectCommand:BCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:qCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:DCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:MCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:FCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:LCe.ListBucketsCommand,ListMultipartUploadsCommand:jCe.ListMultipartUploadsCommand,ListObjectsCommand:zCe.ListObjectsCommand,ListObjectsV2Command:UCe.ListObjectsV2Command,ListObjectVersionsCommand:GCe.ListObjectVersionsCommand,ListPartsCommand:HCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:$Ce.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:KCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:VCe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:XCe.PutBucketCorsCommand,PutBucketEncryptionCommand:WCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:YCe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:JCe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:QCe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:ZCe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:eSe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:tSe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:nSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:rSe.PutBucketPolicyCommand,PutBucketReplicationCommand:oSe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:sSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:iSe.PutBucketTaggingCommand,PutBucketVersioningCommand:aSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:cSe.PutBucketWebsiteCommand,PutObjectCommand:lSe.PutObjectCommand,PutObjectAclCommand:dSe.PutObjectAclCommand,PutObjectLegalHoldCommand:uSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:mSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:pSe.PutObjectRetentionCommand,PutObjectTaggingCommand:fSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:ySe.PutPublicAccessBlockCommand,RestoreObjectCommand:gSe.RestoreObjectCommand,SelectObjectContentCommand:hSe.SelectObjectContentCommand,UploadPartCommand:_Se.UploadPartCommand,UploadPartCopyCommand:CSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:SSe.WriteGetObjectResponseCommand},Tm=class extends bSe.S3Client{};Bm.S3=Tm;(0,q_e.createAggregatedClient)(ESe,Tm)});var aL=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(te(),Y(ee));L.__exportStar(dh(),T);L.__exportStar(uh(),T);L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(zh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(c_(),T);L.__exportStar(i_(),T);L.__exportStar(l_(),T);L.__exportStar(m_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(U_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(Ha(),T);L.__exportStar($a(),T);L.__exportStar(_C(),T);L.__exportStar(SC(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(TC(),T);L.__exportStar(NC(),T);L.__exportStar(Im(),T);L.__exportStar(Rm(),T);L.__exportStar(DC(),T);L.__exportStar(FC(),T);L.__exportStar(jC(),T);L.__exportStar(UC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T)});var dL=m(cL=>{"use strict";Object.defineProperty(cL,"__esModule",{value:!0})});var lL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListObjectsV2=void 0;var PSe=Im(),vSe=Fa(),wSe=async(e,n,...t)=>await e.send(new PSe.ListObjectsV2Command(n),...t);async function*xSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.ContinuationToken=r,n.MaxKeys=e.pageSize,e.client instanceof vSe.S3Client)s=await wSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}qm.paginateListObjectsV2=xSe});var uL=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.paginateListParts=void 0;var kSe=Rm(),ASe=Fa(),OSe=async(e,n,...t)=>await e.send(new kSe.ListPartsCommand(n),...t);async function*NSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.PartNumberMarker=r,n.MaxParts=e.pageSize,e.client instanceof ASe.S3Client)s=await OSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Dm.paginateListParts=NSe});var mL=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var zS=(te(),Y(ee));zS.__exportStar(dL(),Ka);zS.__exportStar(lL(),Ka);zS.__exportStar(uL(),Ka)});var Va=m((sOe,hL)=>{var Mm=Object.defineProperty,ISe=Object.getOwnPropertyDescriptor,RSe=Object.getOwnPropertyNames,TSe=Object.prototype.hasOwnProperty,or=(e,n)=>Mm(e,"name",{value:n,configurable:!0}),BSe=(e,n)=>{for(var t in n)Mm(e,t,{get:n[t],enumerable:!0})},qSe=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RSe(n))!TSe.call(e,o)&&o!==t&&Mm(e,o,{get:()=>n[o],enumerable:!(r=ISe(n,o))||r.enumerable});return e},DSe=e=>qSe(Mm({},"__esModule",{value:!0}),e),fL={};BSe(fL,{WaiterState:()=>gL,checkExceptions:()=>FSe,createWaiter:()=>GSe,waiterServiceDefaults:()=>yL});hL.exports=DSe(fL);var MSe=or(e=>new Promise(n=>setTimeout(n,e*1e3)),"sleep"),yL={minDelay:2,maxDelay:120},gL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(gL||{}),FSe=or(e=>{if(e.state==="ABORTED"){let n=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw n.name="AbortError",n}else if(e.state==="TIMEOUT"){let n=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw n.name="TimeoutError",n}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),LSe=or((e,n,t,r)=>{if(r>t)return n;let o=e*2**(r-1);return jSe(e,o)},"exponentialBackoffWithJitter"),jSe=or((e,n)=>e+Math.random()*(n-e),"randomInRange"),zSe=or(async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:o,abortSignal:s},c,i)=>{var u;let{state:l,reason:a}=await i(o,c);if(l!=="RETRY")return{state:l,reason:a};let y=1,g=Date.now()+t*1e3,C=Math.log(n/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let v=LSe(e,n,C,y);if(Date.now()+v*1e3>g)return{state:"TIMEOUT"};await MSe(v);let{state:A,reason:E}=await i(o,c);if(A!=="RETRY")return{state:A,reason:E};y+=1}},"runPolling"),USe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(n=>{e.onabort=()=>n({state:"ABORTED"})}),"abortTimeout"),GSe=or(async(e,n,t)=>{let r={...yL,...e};USe(r);let o=[zSe(r,n,t)];return e.abortController&&o.push(pL(e.abortController.signal)),e.abortSignal&&o.push(pL(e.abortSignal)),Promise.race(o)},"createWaiter")});var CL=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.waitUntilBucketExists=Si.waitForBucketExists=void 0;var Ci=Va(),HSe=Ha(),_L=async(e,n)=>{let t;try{return t=await e.send(new HSe.HeadBucketCommand(n)),{state:Ci.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ci.WaiterState.RETRY,reason:t}}return{state:Ci.WaiterState.RETRY,reason:t}},$Se=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ci.createWaiter)({...t,...e},n,_L)};Si.waitForBucketExists=$Se;var KSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ci.createWaiter)({...t,...e},n,_L);return(0,Ci.checkExceptions)(r)};Si.waitUntilBucketExists=KSe});var bL=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.waitUntilBucketNotExists=bi.waitForBucketNotExists=void 0;var Xa=Va(),VSe=Ha(),SL=async(e,n)=>{let t;try{t=await e.send(new VSe.HeadBucketCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Xa.WaiterState.SUCCESS,reason:t}}return{state:Xa.WaiterState.RETRY,reason:t}},XSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...t,...e},n,SL)};bi.waitForBucketNotExists=XSe;var WSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...t,...e},n,SL);return(0,Xa.checkExceptions)(r)};bi.waitUntilBucketNotExists=WSe});var PL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilObjectExists=Pi.waitForObjectExists=void 0;var Ei=Va(),YSe=$a(),EL=async(e,n)=>{let t;try{return t=await e.send(new YSe.HeadObjectCommand(n)),{state:Ei.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ei.WaiterState.RETRY,reason:t}}return{state:Ei.WaiterState.RETRY,reason:t}},JSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ei.createWaiter)({...t,...e},n,EL)};Pi.waitForObjectExists=JSe;var QSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ei.createWaiter)({...t,...e},n,EL);return(0,Ei.checkExceptions)(r)};Pi.waitUntilObjectExists=QSe});var wL=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.waitUntilObjectNotExists=vi.waitForObjectNotExists=void 0;var Wa=Va(),ZSe=$a(),vL=async(e,n)=>{let t;try{t=await e.send(new ZSe.HeadObjectCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Wa.WaiterState.SUCCESS,reason:t}}return{state:Wa.WaiterState.RETRY,reason:t}},ebe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Wa.createWaiter)({...t,...e},n,vL)};vi.waitForObjectNotExists=ebe;var tbe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Wa.createWaiter)({...t,...e},n,vL);return(0,Wa.checkExceptions)(r)};vi.waitUntilObjectNotExists=tbe});var xL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Fm=(te(),Y(ee));Fm.__exportStar(CL(),wi);Fm.__exportStar(bL(),wi);Fm.__exportStar(PL(),wi);Fm.__exportStar(wL(),wi)});var AL=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var kL=(te(),Y(ee));kL.__exportStar(Ye(),Lm);kL.__exportStar(Zn(),Lm)});var OL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var xi=(te(),Y(ee));xi.__exportStar(Fa(),Qt);xi.__exportStar(iL(),Qt);xi.__exportStar(aL(),Qt);xi.__exportStar(mL(),Qt);xi.__exportStar(xL(),Qt);xi.__exportStar(AL(),Qt);var nbe=La();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return nbe.S3ServiceException}})});var sbe={};Ai(sbe,{handler:()=>obe});module.exports=Y(sbe);var NL=Oi(OL()),IL=Oi(require("delay")),rbe=new NL.S3;async function obe(){console.log(rbe),await(0,IL.default)(5)}0&&(module.exports={handler}); /*! Bundled license information: tslib/tslib.es6.js: diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/.yarn-integrity b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/.yarn-integrity similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/.yarn-integrity rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/.yarn-integrity diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.d.ts similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.d.ts rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.d.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/license b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/license similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/license rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/license diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/readme.md b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/readme.md similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/readme.md rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/readme.md diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/yarn.lock similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/yarn.lock rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/yarn.lock diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json index 444688d158138..4c331b8780aa3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a": { + "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06": { "source": { - "path": "asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a", + "path": "asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip", + "objectKey": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200": { + "2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b": { "source": { "path": "cdk-integ-lambda-nodejs-latest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200.json", + "objectKey": "2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json index db11490a6d837..58c6c996118f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json @@ -38,7 +38,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip" + "S3Key": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip" }, "Environment": { "Variables": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json index ac7de142d1636..5489944a215d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json @@ -18,7 +18,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -84,7 +84,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json index c0b92157eb903..3fae60b048624 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json @@ -105,7 +105,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip" + "s3Key": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip" }, "environment": { "variables": { diff --git a/packages/@aws-cdk/cloud-assembly-schema/package.json b/packages/@aws-cdk/cloud-assembly-schema/package.json index 354fb442248df..d9d1c086e85b1 100644 --- a/packages/@aws-cdk/cloud-assembly-schema/package.json +++ b/packages/@aws-cdk/cloud-assembly-schema/package.json @@ -84,7 +84,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/mock-fs": "^4.13.4", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "aws-cdk-lib": "0.0.0", "jest": "^29.7.0", "mock-fs": "^4.14.0", @@ -110,7 +110,7 @@ "stability": "stable", "dependencies": { "jsonschema": "^1.4.1", - "semver": "^7.5.4" + "semver": "^7.6.0" }, "awscdkio": { "announce": false diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index 502f30c476ccd..ec19247dbb116 100644 --- a/packages/@aws-cdk/cloudformation-diff/package.json +++ b/packages/@aws-cdk/cloudformation-diff/package.json @@ -26,7 +26,7 @@ "@aws-cdk/aws-service-spec": "^0.0.47", "@aws-cdk/service-spec-types": "^0.0.47", "chalk": "^4", - "diff": "^5.1.0", + "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", "string-width": "^4.2.3", "table": "^6.8.1" @@ -38,7 +38,7 @@ "@types/string-width": "^4.0.1", "fast-check": "^3.15.1", "jest": "^29.7.0", - "aws-sdk": "2.1548.0", + "aws-sdk": "2.1557.0", "ts-jest": "^29.1.2" }, "repository": { diff --git a/packages/@aws-cdk/custom-resource-handlers/package.json b/packages/@aws-cdk/custom-resource-handlers/package.json index f3ee0d099bb57..2bd55dfa67798 100644 --- a/packages/@aws-cdk/custom-resource-handlers/package.json +++ b/packages/@aws-cdk/custom-resource-handlers/package.json @@ -63,7 +63,7 @@ "@aws-sdk/client-synthetics": "3.421.0", "@aws-sdk/client-ecr": "3.421.0", "@aws-sdk/client-s3": "3.421.0", - "aws-sdk": "^2.1548.0" + "aws-sdk": "^2.1557.0" }, "repository": { "url": "https://github.com/aws/aws-cdk.git", diff --git a/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md b/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md index 4fe530e600eff..4b3333f630a60 100644 --- a/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md +++ b/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md @@ -64,7 +64,7 @@ Flags come in three types: | [@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials](#aws-cdkaws-rdspreventrenderingdeprecatedcredentials) | When enabled, creating an RDS database cluster from a snapshot will only render credentials for snapshot credentials. | 2.98.0 | (fix) | | [@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource](#aws-cdkaws-codepipeline-actionsusenewdefaultbranchforcodecommitsource) | When enabled, the CodeCommit source action is using the default branch name 'main'. | 2.103.1 | (fix) | | [@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction](#aws-cdkaws-cloudwatch-actionschangelambdapermissionlogicalidforlambdaaction) | When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID. | 2.124.0 | (fix) | -| [@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse](#aws-cdkaws-codepipelinecrossaccountkeysdefaultvaluetofalse) | Enables Pipeline to set the default value for crossAccountKeys to false. | V2NEXT | (default) | +| [@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse](#aws-cdkaws-codepipelinecrossaccountkeysdefaultvaluetofalse) | Enables Pipeline to set the default value for crossAccountKeys to false. | 2.127.0 | (default) | @@ -1226,7 +1226,7 @@ construct, the construct automatically defaults the value of this property to fa | Since | Default | Recommended | | ----- | ----- | ----- | | (not in v1) | | | -| V2NEXT | `false` | `true` | +| 2.127.0 | `false` | `true` | **Compatibility with old behavior:** Pass `crossAccountKeys: true` to `Pipeline` construct to restore the previous behavior. diff --git a/packages/@aws-cdk/cx-api/package.json b/packages/@aws-cdk/cx-api/package.json index 8bf0e2df6ed53..c7d11f2fd3c61 100644 --- a/packages/@aws-cdk/cx-api/package.json +++ b/packages/@aws-cdk/cx-api/package.json @@ -79,7 +79,7 @@ "organization": true }, "dependencies": { - "semver": "^7.5.4" + "semver": "^7.6.0" }, "peerDependencies": { "@aws-cdk/cloud-assembly-schema": "0.0.0" @@ -91,7 +91,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/mock-fs": "^4.13.4", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "jest": "^29.7.0", "madge": "^5.0.2", "mock-fs": "^4.14.0" diff --git a/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES b/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES index db8ca036f42bb..20c28f40d9f3a 100644 --- a/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES +++ b/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES @@ -154,7 +154,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** chokidar@3.5.3 - https://www.npmjs.com/package/chokidar/v/3.5.3 | MIT +** chokidar@3.6.0 - https://www.npmjs.com/package/chokidar/v/3.6.0 | MIT The MIT License (MIT) Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker @@ -237,38 +237,37 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** diff@5.1.0 - https://www.npmjs.com/package/diff/v/5.1.0 | BSD-3-Clause -Software License Agreement (BSD License) +** diff@5.2.0 - https://www.npmjs.com/package/diff/v/5.2.0 | BSD-3-Clause +BSD 3-Clause License Copyright (c) 2009-2015, Kevin Decker - All rights reserved. -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------- @@ -297,7 +296,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** escalade@3.1.1 - https://www.npmjs.com/package/escalade/v/3.1.1 | MIT +** escalade@3.1.2 - https://www.npmjs.com/package/escalade/v/3.1.2 | MIT MIT License Copyright (c) Luke Edwards (lukeed.com) @@ -770,7 +769,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** semver@7.5.4 - https://www.npmjs.com/package/semver/v/7.5.4 | ISC +** semver@7.6.0 - https://www.npmjs.com/package/semver/v/7.6.0 | ISC The ISC License Copyright (c) Isaac Z. Schlueter and Contributors diff --git a/packages/@aws-cdk/integ-runner/package.json b/packages/@aws-cdk/integ-runner/package.json index 4af00f8e0b011..54bab833550c6 100644 --- a/packages/@aws-cdk/integ-runner/package.json +++ b/packages/@aws-cdk/integ-runner/package.json @@ -70,7 +70,7 @@ "ts-node": "^10.9.2" }, "dependencies": { - "chokidar": "^3.5.3", + "chokidar": "^3.6.0", "@aws-cdk/cloud-assembly-schema": "0.0.0", "@aws-cdk/cloudformation-diff": "0.0.0", "@aws-cdk/cx-api": "0.0.0", diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index a2e5172facbf8..cd7f05f1b0495 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -128,7 +128,7 @@ "jsonschema": "^1.4.1", "minimatch": "^3.1.2", "punycode": "^2.3.1", - "semver": "^7.5.4", + "semver": "^7.6.0", "table": "^6.8.1", "yaml": "1.10.2" }, @@ -161,13 +161,13 @@ "@types/aws-lambda": "^8.10.133", "@types/jest": "^29.5.12", "@types/lodash": "^4.14.202", - "@types/punycode": "^2.1.3", + "@types/punycode": "^2.1.4", "@aws-cdk/lazify": "0.0.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "aws-sdk-client-mock": "^3.0.1", "aws-sdk-client-mock-jest": "^3.0.1", "aws-sdk-mock": "5.8.0", - "cdk8s": "2.68.33", + "cdk8s": "2.68.37", "constructs": "^10.0.0", "delay": "5.0.0", "esbuild": "^0.20.0", diff --git a/packages/aws-cdk/THIRD_PARTY_LICENSES b/packages/aws-cdk/THIRD_PARTY_LICENSES index 8e3b0de78e041..bc4ce26e2397c 100644 --- a/packages/aws-cdk/THIRD_PARTY_LICENSES +++ b/packages/aws-cdk/THIRD_PARTY_LICENSES @@ -264,7 +264,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE ---------------- -** aws-sdk@2.1548.0 - https://www.npmjs.com/package/aws-sdk/v/2.1548.0 | Apache-2.0 +** aws-sdk@2.1557.0 - https://www.npmjs.com/package/aws-sdk/v/2.1557.0 | Apache-2.0 AWS SDK for JavaScript Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -461,7 +461,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** cdk-from-cfn@0.125.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.125.0 | MIT OR Apache-2.0 +** cdk-from-cfn@0.130.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.130.0 | MIT OR Apache-2.0 ---------------- @@ -479,7 +479,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** chokidar@3.5.3 - https://www.npmjs.com/package/chokidar/v/3.5.3 | MIT +** chokidar@3.6.0 - https://www.npmjs.com/package/chokidar/v/3.6.0 | MIT The MIT License (MIT) Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker @@ -867,7 +867,7 @@ OTHER DEALINGS IN THE SOFTWARE. ---------------- -** data-uri-to-buffer@6.0.1 - https://www.npmjs.com/package/data-uri-to-buffer/v/6.0.1 | MIT +** data-uri-to-buffer@6.0.2 - https://www.npmjs.com/package/data-uri-to-buffer/v/6.0.2 | MIT (The MIT License) Copyright (c) 2014 Nathan Rajlich @@ -936,38 +936,37 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** diff@5.1.0 - https://www.npmjs.com/package/diff/v/5.1.0 | BSD-3-Clause -Software License Agreement (BSD License) +** diff@5.2.0 - https://www.npmjs.com/package/diff/v/5.2.0 | BSD-3-Clause +BSD 3-Clause License Copyright (c) 2009-2015, Kevin Decker - All rights reserved. -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------- @@ -1021,7 +1020,7 @@ THE SOFTWARE. ---------------- -** escalade@3.1.1 - https://www.npmjs.com/package/escalade/v/3.1.1 | MIT +** escalade@3.1.2 - https://www.npmjs.com/package/escalade/v/3.1.2 | MIT MIT License Copyright (c) Luke Edwards (lukeed.com) @@ -1213,7 +1212,7 @@ THE SOFTWARE. ---------------- -** fs-extra@8.1.0 - https://www.npmjs.com/package/fs-extra/v/8.1.0 | MIT +** fs-extra@11.2.0 - https://www.npmjs.com/package/fs-extra/v/11.2.0 | MIT (The MIT License) Copyright (c) 2011-2017 JP Richardson @@ -1305,7 +1304,7 @@ the licensed code: ---------------- -** get-uri@6.0.2 - https://www.npmjs.com/package/get-uri/v/6.0.2 | MIT +** get-uri@6.0.3 - https://www.npmjs.com/package/get-uri/v/6.0.3 | MIT (The MIT License) Copyright (c) 2014 Nathan Rajlich @@ -1411,13 +1410,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** http-proxy-agent@7.0.0 - https://www.npmjs.com/package/http-proxy-agent/v/7.0.0 | MIT -License -------- - +** http-proxy-agent@7.0.1 - https://www.npmjs.com/package/http-proxy-agent/v/7.0.1 | MIT (The MIT License) -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> +Copyright (c) 2013 Nathan Rajlich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -1441,7 +1437,29 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** https-proxy-agent@7.0.2 - https://www.npmjs.com/package/https-proxy-agent/v/7.0.2 | MIT +** https-proxy-agent@7.0.3 - https://www.npmjs.com/package/https-proxy-agent/v/7.0.3 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -1486,11 +1504,27 @@ PERFORMANCE OF THIS SOFTWARE. ---------------- -** ip@1.1.8 - https://www.npmjs.com/package/ip/v/1.1.8 | MIT +** ip-address@9.0.5 - https://www.npmjs.com/package/ip-address/v/9.0.5 | MIT +Copyright (C) 2011 by Beau Gunderson ----------------- +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -** ip@2.0.0 - https://www.npmjs.com/package/ip/v/2.0.0 | MIT ---------------- @@ -1622,22 +1656,47 @@ limitations under the License. ---------------- -** jsonfile@4.0.0 - https://www.npmjs.com/package/jsonfile/v/4.0.0 | MIT -(The MIT License) +** jsbn@1.1.0 - https://www.npmjs.com/package/jsbn/v/1.1.0 | MIT +Licensing +--------- -Copyright (c) 2012-2015, JP Richardson +This software is covered under the following copyright: -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files -(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, - merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Address all questions regarding this license to: -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS -OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + Tom Wu + tjw@cs.Stanford.EDU ---------------- @@ -2212,7 +2271,29 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ---------------- -** pac-resolver@7.0.0 - https://www.npmjs.com/package/pac-resolver/v/7.0.0 | MIT +** pac-resolver@7.0.1 - https://www.npmjs.com/package/pac-resolver/v/7.0.1 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -2298,7 +2379,29 @@ THE SOFTWARE. ---------------- -** proxy-agent@6.3.1 - https://www.npmjs.com/package/proxy-agent/v/6.3.1 | MIT +** proxy-agent@6.4.0 - https://www.npmjs.com/package/proxy-agent/v/6.4.0 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -2807,7 +2910,7 @@ Copyright (c) 2010-2022 Mathias Bynens ---------------- -** semver@7.5.4 - https://www.npmjs.com/package/semver/v/7.5.4 | ISC +** semver@7.6.0 - https://www.npmjs.com/package/semver/v/7.6.0 | ISC The ISC License Copyright (c) Isaac Z. Schlueter and Contributors @@ -2871,7 +2974,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** socks@2.7.1 - https://www.npmjs.com/package/socks/v/2.7.1 | MIT +** socks@2.7.3 - https://www.npmjs.com/package/socks/v/2.7.3 | MIT The MIT License (MIT) Copyright (c) 2013 Josh Glazebrook @@ -2931,6 +3034,35 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +---------------- + +** sprintf-js@1.1.3 - https://www.npmjs.com/package/sprintf-js/v/1.1.3 | BSD-3-Clause +Copyright (c) 2007-present, Alexandru Mărășteanu +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of this software nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ---------------- ** string_decoder@1.1.1 - https://www.npmjs.com/package/string_decoder/v/1.1.1 | MIT @@ -3175,31 +3307,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ----------------- - -** universalify@0.1.2 - https://www.npmjs.com/package/universalify/v/0.1.2 | MIT -(The MIT License) - -Copyright (c) 2017, Ryan Zimmerman - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the 'Software'), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ---------------- ** universalify@2.0.1 - https://www.npmjs.com/package/universalify/v/2.0.1 | MIT diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/package.json b/packages/aws-cdk/lib/init-templates/app/typescript/package.json index a448c38b0d723..c5c7c7ffad5f1 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/app/typescript/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "jest": "^29.7.0", "ts-jest": "^29.1.2", "aws-cdk": "%cdk-version%", diff --git a/packages/aws-cdk/lib/init-templates/lib/typescript/package.json b/packages/aws-cdk/lib/init-templates/lib/typescript/package.json index 88a6e3aa9e3c3..22c0e698c97a5 100644 --- a/packages/aws-cdk/lib/init-templates/lib/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/lib/typescript/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "aws-cdk-lib": "%cdk-version%", "constructs": "%constructs-version%", "jest": "^29.7.0", diff --git a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json index c456ee2dee6b3..7a8224fd4e53c 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "jest": "^29.7.0", "ts-jest": "^29.1.2", "aws-cdk": "%cdk-version%", diff --git a/packages/aws-cdk/package.json b/packages/aws-cdk/package.json index 36db7395ce5f2..282fa6e99891e 100644 --- a/packages/aws-cdk/package.json +++ b/packages/aws-cdk/package.json @@ -73,7 +73,7 @@ "@types/jest": "^29.5.12", "@types/mockery": "^1.4.33", "@types/promptly": "^3.0.5", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/sinon": "^9.0.11", "@types/source-map-support": "^0.5.10", "@types/table": "^6.0.0", @@ -102,20 +102,20 @@ "@aws-cdk/region-info": "0.0.0", "@jsii/check-node": "1.94.0", "archiver": "^5.3.2", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "camelcase": "^6.3.0", "cdk-assets": "0.0.0", - "cdk-from-cfn": "^0.125.0", + "cdk-from-cfn": "^0.130.0", "chalk": "^4", - "chokidar": "^3.5.3", + "chokidar": "^3.6.0", "decamelize": "^5.0.1", "fs-extra": "^9.1.0", "glob": "^7.2.3", "json-diff": "^0.10.0", "minimatch": "^9.0.3", "promptly": "^3.2.0", - "proxy-agent": "^6.3.1", - "semver": "^7.5.4", + "proxy-agent": "^6.4.0", + "semver": "^7.6.0", "source-map-support": "^0.5.21", "strip-ansi": "^6.0.1", "table": "^6.8.1", diff --git a/packages/awslint/package.json b/packages/awslint/package.json index 600b03d75669e..f46d032fe30df 100644 --- a/packages/awslint/package.json +++ b/packages/awslint/package.json @@ -31,8 +31,8 @@ "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.12", "@types/yargs": "^15.0.19", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", diff --git a/packages/cdk-assets/package.json b/packages/cdk-assets/package.json index 6d35f1a92a0d4..f5cacc1a74ec5 100644 --- a/packages/cdk-assets/package.json +++ b/packages/cdk-assets/package.json @@ -46,7 +46,7 @@ "@aws-cdk/cloud-assembly-schema": "0.0.0", "@aws-cdk/cx-api": "0.0.0", "archiver": "^5.3.2", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "glob": "^7.2.3", "mime": "^2.6.0", "yargs": "^16.2.0" diff --git a/tools/@aws-cdk/cdk-build-tools/package.json b/tools/@aws-cdk/cdk-build-tools/package.json index cbb08200f59bc..76cb1992154f0 100644 --- a/tools/@aws-cdk/cdk-build-tools/package.json +++ b/tools/@aws-cdk/cdk-build-tools/package.json @@ -38,7 +38,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.12", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", "jest-resolve": "^29.7.0" }, @@ -47,8 +47,8 @@ "@aws-cdk/eslint-plugin": "0.0.0", "@aws-cdk/yarn-cling": "0.0.0", "@aws-cdk/node-bundle": "0.0.0", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "awslint": "0.0.0", "chalk": "^4", "eslint": "^7.32.0", @@ -60,12 +60,12 @@ "glob": "^7.2.3", "jest": "^29.7.0", "jest-junit": "^13.2.0", - "jsii": "~5.3.12", + "jsii": "~5.3.18", "jsii-pacmak": "1.94.0", "jsii-reflect": "1.94.0", "markdownlint-cli": "^0.39.0", "nyc": "^15.1.0", - "semver": "^7.5.4", + "semver": "^7.6.0", "ts-jest": "^29.1.2", "typescript": "~5.1.6", "yargs": "^16.2.0" diff --git a/tools/@aws-cdk/cdk-release/package.json b/tools/@aws-cdk/cdk-release/package.json index a16f6d65bca93..4b07aeb7fef84 100644 --- a/tools/@aws-cdk/cdk-release/package.json +++ b/tools/@aws-cdk/cdk-release/package.json @@ -48,7 +48,7 @@ "detect-newline": "^3.1.0", "fs-extra": "^9.1.0", "git-raw-commits": "^2.0.11", - "semver": "^7.5.4", + "semver": "^7.6.0", "stringify-package": "^1.0.1" }, "keywords": [ diff --git a/tools/@aws-cdk/eslint-plugin/package.json b/tools/@aws-cdk/eslint-plugin/package.json index 9c734c99b3409..4b310380f1efd 100644 --- a/tools/@aws-cdk/eslint-plugin/package.json +++ b/tools/@aws-cdk/eslint-plugin/package.json @@ -22,7 +22,7 @@ "typescript": "~5.1.6" }, "dependencies": { - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "fs-extra": "^9.1.0" }, diff --git a/tools/@aws-cdk/node-bundle/package.json b/tools/@aws-cdk/node-bundle/package.json index d0048b6813ae0..7557624de0d94 100644 --- a/tools/@aws-cdk/node-bundle/package.json +++ b/tools/@aws-cdk/node-bundle/package.json @@ -17,8 +17,8 @@ "@types/license-checker": "^25.0.6", "@types/madge": "^5.0.3", "@types/node": "^16", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^8", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", diff --git a/tools/@aws-cdk/pkglint/package.json b/tools/@aws-cdk/pkglint/package.json index d159b53cec873..568abc90ff6d3 100644 --- a/tools/@aws-cdk/pkglint/package.json +++ b/tools/@aws-cdk/pkglint/package.json @@ -41,10 +41,10 @@ "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", "@types/jest": "^29.5.12", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", @@ -66,7 +66,7 @@ "fs-extra": "^9.1.0", "glob": "^7.2.3", "npm-bundled": "^1.1.2", - "semver": "^7.5.4", + "semver": "^7.6.0", "yargs": "^16.2.0" } } diff --git a/tools/@aws-cdk/yarn-cling/package.json b/tools/@aws-cdk/yarn-cling/package.json index 39afea379f321..8db2d0997254b 100644 --- a/tools/@aws-cdk/yarn-cling/package.json +++ b/tools/@aws-cdk/yarn-cling/package.json @@ -40,14 +40,14 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/node": "18.11.19", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yarnpkg__lockfile": "^1.1.9", "jest": "^29.7.0", "typescript": "~5.1.6" }, "dependencies": { "@yarnpkg/lockfile": "^1.1.0", - "semver": "^7.5.4" + "semver": "^7.6.0" }, "keywords": [ "aws", diff --git a/yarn.lock b/yarn.lock index 23e27f10ff820..e59abdf8dd30a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2322,9 +2322,9 @@ tslib "^2.5.0" "@aws-sdk/types@^3.222.0", "@aws-sdk/types@^3.433.0": - version "3.502.0" - resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.502.0.tgz#c23dda4df7fdbe32642d4f5ab23516f455fb6aba" - integrity sha512-M0DSPYe/gXhwD2QHgoukaZv5oDxhW3FfvYIrJptyqUq3OnPJBcDbihHjrE0PBtfh/9kgMZT60/fQ2NVFANfa2g== + version "3.511.0" + resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.511.0.tgz#b873bcd8d0db1265234a5a8b920a3c43a6ca28ff" + integrity sha512-P03ufufxmkvd7nO46oOeEqYIMPJ8qMCKxAsfJk1JBVPQ1XctVntbail4/UFnrnzij8DTl4Mk/D62uGo7+RolXA== dependencies: "@smithy/types" "^2.9.1" tslib "^2.5.0" @@ -4693,9 +4693,9 @@ tslib "^2.5.0" "@smithy/util-defaults-mode-node@^2.0.12", "@smithy/util-defaults-mode-node@^2.0.25": - version "2.1.1" - resolved "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.1.1.tgz#0910ee00aac3e8a08aac3e6ae8794e52f3efef02" - integrity sha512-tYVrc+w+jSBfBd267KDnvSGOh4NMz+wVH7v4CClDbkdPfnjvImBZsOURncT5jsFwR9KCuDyPoSZq4Pa6+eCUrA== + version "2.2.0" + resolved "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.2.0.tgz#72fd6f945c265f1ef9be647fe829d55df5101390" + integrity sha512-iFJp/N4EtkanFpBUtSrrIbtOIBf69KNuve03ic1afhJ9/korDxdM0c6cCH4Ehj/smI9pDCfVv+bqT3xZjF2WaA== dependencies: "@smithy/config-resolver" "^2.1.1" "@smithy/credential-provider-imds" "^2.2.1" @@ -5038,9 +5038,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.16" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.16.tgz#4411f79411514eb8e2926f036c86c9f0e4ec6708" - integrity sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ== + version "20.11.17" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz#cdd642d0e62ef3a861f88ddbc2b61e32578a9292" + integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw== dependencies: undici-types "~5.26.4" @@ -5050,14 +5050,14 @@ integrity sha512-YUgMWAQBWLObABqrvx8qKO1enAvBUdjZOAWQ5grBAkp5LQv45jBvYKZ3oFS9iKRCQyFjqw6iuEa1vmFqtxYLZw== "@types/node@^16", "@types/node@^16.9.2": - version "16.18.79" - resolved "https://registry.npmjs.org/@types/node/-/node-16.18.79.tgz#153e25561b271cf87dc1b28d38f98cebd514d788" - integrity sha512-Qd7jdLR5zmnIyMhfDrfPqN5tUCvreVpP3Qrf2oSM+F7SNzlb/MwHISGUkdFHtevfkPJ3iAGyeQI/jsbh9EStgQ== + version "16.18.80" + resolved "https://registry.npmjs.org/@types/node/-/node-16.18.80.tgz#9644e2d8acaf8163d46d23e05ce3822e9379dfc3" + integrity sha512-vFxJ1Iyl7A0+xB0uW1r1v504yItKZLdqg/VZELUZ4H02U0bXAgBisSQ8Erf0DMruNFz9ggoiEv6T8Ll9bTg8Jw== "@types/node@^18": - version "18.19.14" - resolved "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz#1880ff1b3ac913f3877f711588e5ed227da01886" - integrity sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg== + version "18.19.15" + resolved "https://registry.npmjs.org/@types/node/-/node-18.19.15.tgz#313a9d75435669a57fc28dc8694e7f4c4319f419" + integrity sha512-AMZ2UWx+woHNfM11PyAEQmfSxi05jm9OlkxczuHeEqmvwPkYj6MWv44gbzDPefYOLysTOFyI3ziiy2ONmUZfpA== dependencies: undici-types "~5.26.4" @@ -5090,10 +5090,10 @@ dependencies: "@types/node" "*" -"@types/punycode@^2.1.3": - version "2.1.3" - resolved "https://registry.npmjs.org/@types/punycode/-/punycode-2.1.3.tgz#5c9dbab35931bb9e62cb392ae45bbdc2b2c8527a" - integrity sha512-dFkH9Mz0yY5UfQVSrpj1grQyqRwe4TohTLlHFx4Gli8/fsaNyoOVUAsiEBZk5JBwbEJVZ49W6st8D5g6dRJb/w== +"@types/punycode@^2.1.4": + version "2.1.4" + resolved "https://registry.npmjs.org/@types/punycode/-/punycode-2.1.4.tgz#96f8a47f1ee9fb0d0def5557fe80fac532f966fa" + integrity sha512-trzh6NzBnq8yw5e35f8xe8VTYjqM3NE7bohBtvDVf/dtUer3zYTLK1Ka3DG3p7bdtoaOHZucma6FfVKlQ134pQ== "@types/readdir-glob@*": version "1.1.5" @@ -5102,10 +5102,10 @@ dependencies: "@types/node" "*" -"@types/semver@^7.5.0", "@types/semver@^7.5.6": - version "7.5.6" - resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" - integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== +"@types/semver@^7.5.0", "@types/semver@^7.5.7": + version "7.5.7" + resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz#326f5fdda70d13580777bcaa1bc6fa772a5aef0e" + integrity sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg== "@types/sinon@^10.0.10": version "10.0.20" @@ -5198,16 +5198,16 @@ resolved "https://registry.npmjs.org/@types/yarnpkg__lockfile/-/yarnpkg__lockfile-1.1.9.tgz#b3c8e8d66dc8ce79827f422a660a557cda9ded14" integrity sha512-GD4Fk15UoP5NLCNor51YdfL9MSdldKCqOC9EssrRw3HVfar9wUZ5y8Lfnp+qVD6hIinLr8ygklDYnmlnlQo12Q== -"@typescript-eslint/eslint-plugin@^6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.20.0.tgz#9cf31546d2d5e884602626d89b0e0d2168ac25ed" - integrity sha512-fTwGQUnjhoYHeSF6m5pWNkzmDDdsKELYrOBxhjMrofPqCkoC2k3B2wvGHFxa1CTIqkEn88nlW1HVMztjo2K8Hg== +"@typescript-eslint/eslint-plugin@^6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz#30830c1ca81fd5f3c2714e524c4303e0194f9cd3" + integrity sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/type-utils" "6.20.0" - "@typescript-eslint/utils" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/type-utils" "6.21.0" + "@typescript-eslint/utils" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -5227,15 +5227,15 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/parser@^6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.20.0.tgz#17e314177304bdf498527e3c4b112e41287b7416" - integrity sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w== +"@typescript-eslint/parser@^6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz#af8fcf66feee2edc86bc5d1cf45e33b0630bf35b" + integrity sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ== dependencies: - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/typescript-estree" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/typescript-estree" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" "@typescript-eslint/scope-manager@4.33.0": @@ -5246,21 +5246,21 @@ "@typescript-eslint/types" "4.33.0" "@typescript-eslint/visitor-keys" "4.33.0" -"@typescript-eslint/scope-manager@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.20.0.tgz#8a926e60f6c47feb5bab878246dc2ae465730151" - integrity sha512-p4rvHQRDTI1tGGMDFQm+GtxP1ZHyAh64WANVoyEcNMpaTFn3ox/3CcgtIlELnRfKzSs/DwYlDccJEtr3O6qBvA== +"@typescript-eslint/scope-manager@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz#ea8a9bfc8f1504a6ac5d59a6df308d3a0630a2b1" + integrity sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg== dependencies: - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" -"@typescript-eslint/type-utils@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.20.0.tgz#d395475cd0f3610dd80c7d8716fa0db767da3831" - integrity sha512-qnSobiJQb1F5JjN0YDRPHruQTrX7ICsmltXhkV536mp4idGAYrIyr47zF/JmkJtEcAVnIz4gUYJ7gOZa6SmN4g== +"@typescript-eslint/type-utils@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz#6473281cfed4dacabe8004e8521cee0bd9d4c01e" + integrity sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag== dependencies: - "@typescript-eslint/typescript-estree" "6.20.0" - "@typescript-eslint/utils" "6.20.0" + "@typescript-eslint/typescript-estree" "6.21.0" + "@typescript-eslint/utils" "6.21.0" debug "^4.3.4" ts-api-utils "^1.0.1" @@ -5269,10 +5269,10 @@ resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== -"@typescript-eslint/types@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.20.0.tgz#5ccd74c29011ae7714ae6973e4ec0c634708b448" - integrity sha512-MM9mfZMAhiN4cOEcUOEx+0HmuaW3WBfukBZPCfwSqFnQy0grXYtngKCqpQN339X3RrwtzspWJrpbrupKYUSBXQ== +"@typescript-eslint/types@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz#205724c5123a8fef7ecd195075fa6e85bac3436d" + integrity sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg== "@typescript-eslint/typescript-estree@4.33.0", "@typescript-eslint/typescript-estree@^4.33.0": version "4.33.0" @@ -5287,13 +5287,13 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/typescript-estree@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.20.0.tgz#5b2d0975949e6bdd8d45ee1471461ef5fadc5542" - integrity sha512-RnRya9q5m6YYSpBN7IzKu9FmLcYtErkDkc8/dKv81I9QiLLtVBHrjz+Ev/crAqgMNW2FCsoZF4g2QUylMnJz+g== +"@typescript-eslint/typescript-estree@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz#c47ae7901db3b8bddc3ecd73daff2d0895688c46" + integrity sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ== dependencies: - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" @@ -5301,17 +5301,17 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.20.0.tgz#0e52afcfaa51af5656490ba4b7437cc3aa28633d" - integrity sha512-/EKuw+kRu2vAqCoDwDCBtDRU6CTKbUmwwI7SH7AashZ+W+7o8eiyy6V2cdOqN49KsTcASWsC5QeghYuRDTyOOg== +"@typescript-eslint/utils@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz#4714e7a6b39e773c1c8e97ec587f520840cd8134" + integrity sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ== dependencies: "@eslint-community/eslint-utils" "^4.4.0" "@types/json-schema" "^7.0.12" "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/typescript-estree" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/typescript-estree" "6.21.0" semver "^7.5.4" "@typescript-eslint/visitor-keys@4.33.0": @@ -5322,12 +5322,12 @@ "@typescript-eslint/types" "4.33.0" eslint-visitor-keys "^2.0.0" -"@typescript-eslint/visitor-keys@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.20.0.tgz#f7ada27f2803de89df0edd9fd7be22c05ce6a498" - integrity sha512-E8Cp98kRe4gKHjJD4NExXKz/zOJ1A2hhZc+IMVD6i7w4yjIvh6VyuRI0gRtxAsXtoC35uGMaQ9rjI2zJaXDEAw== +"@typescript-eslint/visitor-keys@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz#87a99d077aa507e20e238b11d56cc26ade45fe47" + integrity sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A== dependencies: - "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/types" "6.21.0" eslint-visitor-keys "^3.4.1" "@ungap/structured-clone@^1.2.0": @@ -5623,13 +5623,13 @@ argparse@^2.0.1: resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -array-buffer-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" - integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== +array-buffer-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" + integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== dependencies: - call-bind "^1.0.2" - is-array-buffer "^3.0.1" + call-bind "^1.0.5" + is-array-buffer "^3.0.4" array-differ@^3.0.0: version "3.0.0" @@ -5662,16 +5662,27 @@ array-union@^2.1.0: resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.findlastindex@^1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" - integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== +array.prototype.filter@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz#423771edeb417ff5914111fff4277ea0624c0d0e" + integrity sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.2.1" + es-array-method-boxes-properly "^1.0.0" + is-string "^1.0.7" + +array.prototype.findlastindex@^1.2.3: + version "1.2.4" + resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz#d1c50f0b3a9da191981ff8942a0aedd82794404f" + integrity sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ== + dependencies: + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.3.0" + es-shim-unscopables "^1.0.2" array.prototype.flat@^1.3.2: version "1.3.2" @@ -5693,17 +5704,18 @@ array.prototype.flatmap@^1.3.2: es-abstract "^1.22.1" es-shim-unscopables "^1.0.0" -arraybuffer.prototype.slice@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" - integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== +arraybuffer.prototype.slice@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" + integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== dependencies: - array-buffer-byte-length "^1.0.0" - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" - is-array-buffer "^3.0.2" + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.2.1" + get-intrinsic "^1.2.3" + is-array-buffer "^3.0.4" is-shared-array-buffer "^1.0.2" arrify@^1.0.1: @@ -5823,10 +5835,10 @@ aws-sdk-mock@5.8.0: sinon "^14.0.1" traverse "^0.6.6" -aws-sdk@2.1548.0, aws-sdk@^2.1231.0, aws-sdk@^2.1548.0, aws-sdk@^2.928.0: - version "2.1548.0" - resolved "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1548.0.tgz#f888f266b0675e5021f48704df7a56de9856caa1" - integrity sha512-kmo3FvO7xKuB7WfLKm6ABuecZeUTFtfwrbrGjWMiCC/yNwP1S3oSm/j/Yy7LO8sQfukWSOXpnPfMk5yhhqq3UQ== +aws-sdk@2.1557.0, aws-sdk@^2.1231.0, aws-sdk@^2.1557.0, aws-sdk@^2.928.0: + version "2.1557.0" + resolved "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1557.0.tgz#e5f15b05b10b13f1397f066b1ac5bcb5ac2845d6" + integrity sha512-625JNSUXC/t+iz8GCfzR+gBfi1mB/7W3OnmDag5SG+za76u19wSIMzUQBKPh82YJny6jhU0XVV3KfN3trI8mUg== dependencies: buffer "4.9.2" events "1.1.1" @@ -6176,14 +6188,16 @@ caching-transform@^4.0.0: package-hash "^4.0.0" write-file-atomic "^3.0.0" -call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" - integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== +call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.1" - set-function-length "^1.1.1" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" callsites@^3.0.0: version "3.1.0" @@ -6223,9 +6237,9 @@ camelcase@^7.0.1: integrity sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw== caniuse-lite@^1.0.30001580: - version "1.0.30001582" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001582.tgz#db3070547ce0b48d9f44a509b86c4a02ba5d9055" - integrity sha512-vsJG3V5vgfduaQGVxL53uSX/HUzxyr2eA8xCo36OLal7sRcSZbibJtLeh0qja4sFOr/QQGt4opB4tOy+eOgAxg== + version "1.0.30001587" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz#a0bce920155fa56a1885a69c74e1163fc34b4881" + integrity sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA== canonicalize@^2.0.0: version "2.0.0" @@ -6246,15 +6260,15 @@ case@1.6.3, case@^1.6.3: resolved "https://registry.npmjs.org/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== -cdk-from-cfn@^0.125.0: - version "0.125.0" - resolved "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.125.0.tgz#aed96acc0373953aaa3331c8d4c6e69c363d2cdf" - integrity sha512-abQjPFd+9m3cBu/GIpF6xm2Kb6s5HkThcWkugYvusyo527a3MGFH8wIgp7EjTFQ9omHALtofsySLmiE9ZyV8vg== +cdk-from-cfn@^0.130.0: + version "0.130.0" + resolved "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.130.0.tgz#d610f7d8ea2ea9b104a1723f776f4930fab45149" + integrity sha512-+sYgM3SljM73dU/faCV2kIciEOZDif+CiIzOQjAF1Zl+SiIclEHFJQSD/8AR5FFSX0DGvjLhQGoJ6mVa/DPgOw== -cdk-generate-synthetic-examples@^0.1.302: - version "0.1.302" - resolved "https://registry.npmjs.org/cdk-generate-synthetic-examples/-/cdk-generate-synthetic-examples-0.1.302.tgz#e4e122eee9cbfb225d9c32a506d8981d984f9a02" - integrity sha512-cTm+55zh0SUH/PXjwnseKZPlx+uv4E6KuOLTlhzREoxGbcsfv6ftwcYDNCh7LVnf4gHLKn3lW+epAPXSQHzObA== +cdk-generate-synthetic-examples@^0.1.303: + version "0.1.303" + resolved "https://registry.npmjs.org/cdk-generate-synthetic-examples/-/cdk-generate-synthetic-examples-0.1.303.tgz#7ef6b7bbb3f9fd8ae174e7f35da73e1753d043e6" + integrity sha512-8Se/jbGVwbuksmWkTXMQEnhqvOwSgiQquHfMBC1OBH7S1rfajd9zyqst/vI7HZ7HCQaORzwiwByf798FIOWhGQ== dependencies: "@jsii/spec" "^1.94.0" fs-extra "^10.1.0" @@ -6263,19 +6277,19 @@ cdk-generate-synthetic-examples@^0.1.302: jsii-rosetta "^1.94.0" yargs "^17.7.2" -cdk8s-plus-27@2.7.75: - version "2.7.75" - resolved "https://registry.npmjs.org/cdk8s-plus-27/-/cdk8s-plus-27-2.7.75.tgz#d3fcc1d3e806ae75251461372ff5a04ab7a9fd14" - integrity sha512-yBgUsh/2TQM9xH3NUYnLaBIa5Iyg8nfL56SCChEnyTfUzkwuczIEev11FBkVyObl/ljqvaUz2ztcMY75EtmpMA== +cdk8s-plus-27@2.7.77: + version "2.7.77" + resolved "https://registry.npmjs.org/cdk8s-plus-27/-/cdk8s-plus-27-2.7.77.tgz#a6c33362d69d0d56aa0ef5c9b17c6b7c0e1df66b" + integrity sha512-Q+Iqb13ZdMRuYcI8mbLvjoYqy7bxFUSv6Qdkp8XnP9q4LKpzcil5j23/UwYLnc4aPS/xDxZj0heN32jkHmbShA== dependencies: minimatch "^3.1.2" optionalDependencies: backport "8.5.0" -cdk8s@2.68.33: - version "2.68.33" - resolved "https://registry.npmjs.org/cdk8s/-/cdk8s-2.68.33.tgz#cc1aac32c8a4bbfb56f9ef5602c09fb15a7fff75" - integrity sha512-9VuUF5CBaU2KVd/4rECbTPKBWv0DmkpGpUDCN9g2YRzpvUNkzjEN1XkzHrYGwZIyDIOWOYOsj6iCkT5gsshFqg== +cdk8s@2.68.37: + version "2.68.37" + resolved "https://registry.npmjs.org/cdk8s/-/cdk8s-2.68.37.tgz#2710553e072e372bbe01ec419107ecbe9cc18c74" + integrity sha512-7wGgsdK28S0Qms2FQ1dxe+zVRprYiCgT24QVsnZYrrOU9xJHjMX2NyW4qRVdruyJBClKw14jPfPKiDCdiGyjBg== dependencies: fast-json-patch "^3.1.1" follow-redirects "^1.15.2" @@ -6349,10 +6363,10 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.5.3: - version "3.5.3" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== +chokidar@^3.6.0: + version "3.6.0" + resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== dependencies: anymatch "~3.1.2" braces "~3.0.2" @@ -7097,10 +7111,10 @@ dargs@^7.0.0: resolved "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== -data-uri-to-buffer@^6.0.0: - version "6.0.1" - resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz#540bd4c8753a25ee129035aebdedf63b078703c7" - integrity sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg== +data-uri-to-buffer@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz#8a58bb67384b261a38ef18bea1810cb01badd28b" + integrity sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw== date-format@^4.0.14: version "4.0.14" @@ -7200,14 +7214,14 @@ defer-to-connect@^2.0.1: resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== -define-data-property@^1.0.1, define-data-property@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" - integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== +define-data-property@^1.0.1, define-data-property@^1.1.2: + version "1.1.4" + resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== dependencies: - get-intrinsic "^1.2.1" + es-define-property "^1.0.0" + es-errors "^1.3.0" gopd "^1.0.1" - has-property-descriptors "^1.0.0" define-lazy-prop@^2.0.0: version "2.0.0" @@ -7404,10 +7418,10 @@ diff@^4.0.1, diff@^4.0.2: resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -diff@^5.0.0, diff@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" - integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== +diff@^5.0.0, diff@^5.1.0, diff@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531" + integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A== difflib@~0.2.1: version "0.2.4" @@ -7470,9 +7484,9 @@ dotenv-json@^1.0.0: integrity sha512-jAssr+6r4nKhKRudQ0HOzMskOFFi9+ubXWwmrSGJFgTvpjyPXCXsCsYbjif6mXp7uxA7xY3/LGaiTQukZzSbOQ== dotenv@^16.0.1: - version "16.4.1" - resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz#1d9931f1d3e5d2959350d1250efab299561f7f11" - integrity sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ== + version "16.4.4" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.4.tgz#a26e7bb95ebd36272ebb56edb80b826aecf224c1" + integrity sha512-XvPXc8XAQThSjAbY6cQ/9PcBXmFoWuw1sQ3b8HqUCR6ziGXjkTi//kB9SWa2UwqlgdAIuRqAa/9hVljzPehbYg== dotenv@^8.0.0: version "8.6.0" @@ -7521,9 +7535,9 @@ ejs@^3.1.7: jake "^10.8.5" electron-to-chromium@^1.4.648: - version "1.4.653" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.653.tgz#832ab25e80ad698ac09c1ca547bd9ee6cce7df10" - integrity sha512-wA2A2LQCqnEwQAvwADQq3KpMpNwgAUBnRmrFgRzHnPhbQUFArTR32Ab46f4p0MovDLcg4uqd4nCsN2hTltslpA== + version "1.4.668" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.668.tgz#5cfed14f3240cdc70a359a49790cb295b1f097f1" + integrity sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ== emittery@^0.13.1: version "0.13.1" @@ -7614,52 +7628,71 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.17.5, es-abstract@^1.22.1: - version "1.22.3" - resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" - integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== +es-abstract@^1.17.5, es-abstract@^1.22.1, es-abstract@^1.22.3: + version "1.22.4" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.4.tgz#26eb2e7538c3271141f5754d31aabfdb215f27bf" + integrity sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg== dependencies: - array-buffer-byte-length "^1.0.0" - arraybuffer.prototype.slice "^1.0.2" - available-typed-arrays "^1.0.5" - call-bind "^1.0.5" - es-set-tostringtag "^2.0.1" + array-buffer-byte-length "^1.0.1" + arraybuffer.prototype.slice "^1.0.3" + available-typed-arrays "^1.0.6" + call-bind "^1.0.7" + es-define-property "^1.0.0" + es-errors "^1.3.0" + es-set-tostringtag "^2.0.2" es-to-primitive "^1.2.1" function.prototype.name "^1.1.6" - get-intrinsic "^1.2.2" - get-symbol-description "^1.0.0" + get-intrinsic "^1.2.4" + get-symbol-description "^1.0.2" globalthis "^1.0.3" gopd "^1.0.1" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.2" has-proto "^1.0.1" has-symbols "^1.0.3" - hasown "^2.0.0" - internal-slot "^1.0.5" - is-array-buffer "^3.0.2" + hasown "^2.0.1" + internal-slot "^1.0.7" + is-array-buffer "^3.0.4" is-callable "^1.2.7" is-negative-zero "^2.0.2" is-regex "^1.1.4" is-shared-array-buffer "^1.0.2" is-string "^1.0.7" - is-typed-array "^1.1.12" + is-typed-array "^1.1.13" is-weakref "^1.0.2" object-inspect "^1.13.1" object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.5.1" - safe-array-concat "^1.0.1" - safe-regex-test "^1.0.0" + object.assign "^4.1.5" + regexp.prototype.flags "^1.5.2" + safe-array-concat "^1.1.0" + safe-regex-test "^1.0.3" string.prototype.trim "^1.2.8" string.prototype.trimend "^1.0.7" string.prototype.trimstart "^1.0.7" - typed-array-buffer "^1.0.0" + typed-array-buffer "^1.0.1" typed-array-byte-length "^1.0.0" typed-array-byte-offset "^1.0.0" typed-array-length "^1.0.4" unbox-primitive "^1.0.2" - which-typed-array "^1.1.13" + which-typed-array "^1.1.14" + +es-array-method-boxes-properly@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" + integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.0.0, es-errors@^1.2.1, es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -es-set-tostringtag@^2.0.1: +es-set-tostringtag@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== @@ -7668,7 +7701,7 @@ es-set-tostringtag@^2.0.1: has-tostringtag "^1.0.0" hasown "^2.0.0" -es-shim-unscopables@^1.0.0: +es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== @@ -7755,9 +7788,9 @@ esbuild@^0.20.0: "@esbuild/win32-x64" "0.20.0" escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + version "3.1.2" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== escape-goat@^4.0.0: version "4.0.0" @@ -8186,9 +8219,9 @@ fastest-levenshtein@^1.0.12: integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== fastq@^1.6.0: - version "1.17.0" - resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.0.tgz#ca5e1a90b5e68f97fc8b61330d5819b82f5fab03" - integrity sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w== + version "1.17.1" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== dependencies: reusify "^1.0.4" @@ -8331,9 +8364,9 @@ flatten@^1.0.2: integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg== flow-parser@0.*: - version "0.227.0" - resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.227.0.tgz#e50b65be9dc6810438c975e816a68005fbcd5107" - integrity sha512-nOygtGKcX/siZK/lFzpfdHEfOkfGcTW7rNroR1Zsz6T/JxSahPALXVt5qVHq/fgvMJuv096BTKbgxN3PzVBaDA== + version "0.228.0" + resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.228.0.tgz#0b801507c8cf44257338596b49bd0904caea2026" + integrity sha512-xPWkzCO07AnS8X+fQFpWm+tJ+C7aeaiVzJ+rSepbkCXUvUJ6l6squEl63axoMcixyH4wLjmypOzq/+zTD0O93w== fn.name@1.x.x: version "1.1.0" @@ -8529,11 +8562,12 @@ get-caller-file@^2.0.1, get-caller-file@^2.0.5: resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: - version "1.2.2" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" - integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== +get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== dependencies: + es-errors "^1.3.0" function-bind "^1.1.2" has-proto "^1.0.1" has-symbols "^1.0.3" @@ -8584,23 +8618,24 @@ get-stream@^6.0.0, get-stream@^6.0.1: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== +get-symbol-description@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" + integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" + call-bind "^1.0.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" get-uri@^6.0.1: - version "6.0.2" - resolved "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz#e019521646f4a8ff6d291fbaea2c46da204bb75b" - integrity sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw== + version "6.0.3" + resolved "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz#0d26697bc13cf91092e519aa63aa60ee5b6f385a" + integrity sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw== dependencies: basic-ftp "^5.0.2" - data-uri-to-buffer "^6.0.0" + data-uri-to-buffer "^6.0.2" debug "^4.3.4" - fs-extra "^8.1.0" + fs-extra "^11.2.0" git-raw-commits@^2.0.11, git-raw-commits@^2.0.8: version "2.0.11" @@ -8873,12 +8908,12 @@ has-flag@^4.0.0: resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" - integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== dependencies: - get-intrinsic "^1.2.2" + es-define-property "^1.0.0" has-proto@^1.0.1: version "1.0.1" @@ -8891,9 +8926,11 @@ has-symbols@^1.0.2, has-symbols@^1.0.3: integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== has-tostringtag@^1.0.0, has-tostringtag@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.1.tgz#5d242715a441a1c9a46d543e6dbead8defdfc226" - integrity sha512-6J4rC9ROz0UkOpjn0BRtSSqlewDTDYJNQvy8N8RSrPCduUWId1o9BQPEVII/KKBqRk/ZIQff1YbRkUDCH2N5Sg== + version "1.0.2" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" has-unicode@2.0.1, has-unicode@^2.0.0, has-unicode@^2.0.1: version "2.0.1" @@ -8913,10 +8950,10 @@ hasha@^5.0.0: is-stream "^2.0.0" type-fest "^0.8.0" -hasown@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" - integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== +hasown@^2.0.0, hasown@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz#26f48f039de2c0f8d3356c223fb8d50253519faa" + integrity sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA== dependencies: function-bind "^1.1.2" @@ -8985,10 +9022,10 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" -http-proxy-agent@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz#e9096c5afd071a3fce56e6252bb321583c124673" - integrity sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ== +http-proxy-agent@^7.0.0, http-proxy-agent@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.1.tgz#f1c7df4bd6c30ba90f2c713fd4b60d3989d4b3d9" + integrity sha512-My1KCEPs6A0hb4qCVzYp8iEvA8j8YqcvXLZZH8C9OFuTYpYjHE7N2dtG3mRl1HMD4+VGXpF3XcDVcxGBT7yDZQ== dependencies: agent-base "^7.1.0" debug "^4.3.4" @@ -9009,10 +9046,10 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -https-proxy-agent@^7.0.2: - version "7.0.2" - resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz#e2645b846b90e96c6e6f347fb5b2e41f1590b09b" - integrity sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA== +https-proxy-agent@^7.0.2, https-proxy-agent@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.3.tgz#93f115f0f106a746faf364d1301b2e561cdf70de" + integrity sha512-kCnwztfX0KZJSLOBrcL0emLeFako55NWMovvyPP2AjsghNk9RB1yjSI+jVumPHYZsNXegNoqupSW9IY3afSH8w== dependencies: agent-base "^7.0.2" debug "4" @@ -9203,12 +9240,12 @@ inquirer@^8.2.3, inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^6.0.1" -internal-slot@^1.0.5: - version "1.0.6" - resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" - integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== +internal-slot@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" + integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== dependencies: - get-intrinsic "^1.2.2" + es-errors "^1.3.0" hasown "^2.0.0" side-channel "^1.0.4" @@ -9217,21 +9254,19 @@ interpret@^1.0.0: resolved "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== +ip-address@^9.0.5: + version "9.0.5" + resolved "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" + integrity sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g== + dependencies: + jsbn "1.1.0" + sprintf-js "^1.1.3" + ip-regex@^4.1.0: version "4.3.0" resolved "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== -ip@^1.1.8: - version "1.1.8" - resolved "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" - integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== - -ip@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" - integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== - is-arguments@^1.0.4: version "1.1.1" resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" @@ -9240,14 +9275,13 @@ is-arguments@^1.0.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" - integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== +is-array-buffer@^3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" + integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== dependencies: call-bind "^1.0.2" - get-intrinsic "^1.2.0" - is-typed-array "^1.1.10" + get-intrinsic "^1.2.1" is-arrayish@^0.2.1: version "0.2.1" @@ -9513,12 +9547,12 @@ is-text-path@^1.0.1: dependencies: text-extensions "^1.0.0" -is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.3, is-typed-array@^1.1.9: - version "1.1.12" - resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" - integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== +is-typed-array@^1.1.10, is-typed-array@^1.1.13, is-typed-array@^1.1.3, is-typed-array@^1.1.9: + version "1.1.13" + resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" + integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== dependencies: - which-typed-array "^1.1.11" + which-typed-array "^1.1.14" is-typedarray@^1.0.0: version "1.0.0" @@ -10160,6 +10194,11 @@ js-yaml@^3.10.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +jsbn@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" + integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== + jscodeshift@0.15.0: version "0.15.0" resolved "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.15.0.tgz#32fc8d90193d17cdf1b34604496922838500b51f" @@ -10251,10 +10290,10 @@ jsii-rosetta@^1.94.0: workerpool "^6.5.1" yargs "^16.2.0" -jsii-rosetta@~5.3.9: - version "5.3.9" - resolved "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-5.3.9.tgz#781b5d837c0c04504c3fea0486e9ee14897a23f9" - integrity sha512-V1m+f0SHgSlW0R0pexGsHxi0rWoS936VVmkGaewoulOzkB/v0vajdebHKZBEcw2wizpxjttXZHTrk1SyiFKmuA== +jsii-rosetta@~5.3.15: + version "5.3.15" + resolved "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-5.3.15.tgz#56257131db9de69a7daaaed09369a93bb3d612a7" + integrity sha512-RP0jCHdp3M1FbInr1dVB3Q/WKLTupR7KHTNlmWuVURcURK6LKgRrXIwwo/k+fEmB+9WoQs/WUvNpq9bKUrsu8A== dependencies: "@jsii/check-node" "1.94.0" "@jsii/spec" "^1.94.0" @@ -10289,10 +10328,10 @@ jsii@1.94.0, jsii@^1.94.0: typescript "~3.9.10" yargs "^16.2.0" -jsii@~5.3.0, jsii@~5.3.12: - version "5.3.12" - resolved "https://registry.npmjs.org/jsii/-/jsii-5.3.12.tgz#b19ae542ee006148f6d35cc73431f824cf01b942" - integrity sha512-G2hWcEIfED1JuP6EwCFO94Ho4LO8j/na7A4I/ekdCEEmdLAFUvgXTZ4rRuZeiMLmvU0rKyb24r8V18gl+BbkNA== +jsii@~5.3.0, jsii@~5.3.18: + version "5.3.18" + resolved "https://registry.npmjs.org/jsii/-/jsii-5.3.18.tgz#21e963355d7b5ee0a72ae8d27529d598f0ba366f" + integrity sha512-1BQT5rMDNiyZp7u5461EQQuEOnPJv0UEFlTHgDZJqqCeh1OquTpB0fYFfpJnsvl4C1aleBYo3f0QMzvV7wLVjw== dependencies: "@jsii/check-node" "1.94.0" "@jsii/spec" "^1.94.0" @@ -10301,7 +10340,7 @@ jsii@~5.3.0, jsii@~5.3.12: downlevel-dts "^0.11.0" fast-deep-equal "^3.1.3" log4js "^6.9.1" - semver "^7.5.4" + semver "^7.6.0" semver-intersect "^1.5.0" sort-json "^2.0.1" spdx-license-list "^6.8.0" @@ -11710,9 +11749,9 @@ npm-bundled@^3.0.0: npm-normalize-package-bin "^3.0.0" npm-check-updates@^16: - version "16.14.14" - resolved "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.14.tgz#754ceec1a14c8e2d435807c6290dc08f9607dff3" - integrity sha512-Y3ajS/Ep40jM489rLBdz9jehn/BMil5s9fA4PSr2ZJxxSmtLWCSmRqsI2IEZ9Nb3MTMu8a3s7kBs0l+JbjdkTA== + version "16.14.15" + resolved "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.15.tgz#2126328d1fecc08f70b6e88da433bd5dfa0f9af0" + integrity sha512-WH0wJ9j6CP7Azl+LLCxWAYqroT2IX02kRIzgK/fg0rPpMbETgHITWBdOPtrv521xmA3JMgeNsQ62zvVtS/nCmQ== dependencies: chalk "^5.3.0" cli-table3 "^0.6.3" @@ -12097,7 +12136,7 @@ object-assign@^4.1.0: resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-inspect@^1.13.1, object-inspect@^1.9.0: +object-inspect@^1.13.1: version "1.13.1" resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== @@ -12115,7 +12154,7 @@ object-keys@^1.1.1: resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object.assign@^4.1.4: +object.assign@^4.1.4, object.assign@^4.1.5: version "4.1.5" resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== @@ -12135,14 +12174,15 @@ object.fromentries@^2.0.7: es-abstract "^1.22.1" object.groupby@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee" - integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ== + version "1.0.2" + resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz#494800ff5bab78fd0eff2835ec859066e00192ec" + integrity sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" + array.prototype.filter "^1.0.3" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.0.0" object.values@^1.1.7: version "1.1.7" @@ -12386,12 +12426,11 @@ pac-proxy-agent@^7.0.1: socks-proxy-agent "^8.0.2" pac-resolver@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz#79376f1ca26baf245b96b34c339d79bff25e900c" - integrity sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg== + version "7.0.1" + resolved "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz#54675558ea368b64d210fd9c92a640b5f3b8abb6" + integrity sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg== dependencies: degenerator "^5.0.0" - ip "^1.1.8" netmask "^2.0.2" package-hash@^4.0.0: @@ -12720,9 +12759,9 @@ postcss-values-parser@^5.0.0: quote-unquote "^1.0.0" postcss@^8.1.7, postcss@^8.4.6: - version "8.4.33" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz#1378e859c9f69bf6f638b990a0212f43e2aaa742" - integrity sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg== + version "8.4.35" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz#60997775689ce09011edf083a549cea44aabe2f7" + integrity sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA== dependencies: nanoid "^3.3.7" picocolors "^1.0.0" @@ -12880,15 +12919,15 @@ protocols@^2.0.0, protocols@^2.0.1: resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== -proxy-agent@^6.3.1: - version "6.3.1" - resolved "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.1.tgz#40e7b230552cf44fd23ffaf7c59024b692612687" - integrity sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ== +proxy-agent@^6.4.0: + version "6.4.0" + resolved "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.4.0.tgz#b4e2dd51dee2b377748aef8d45604c2d7608652d" + integrity sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ== dependencies: agent-base "^7.0.2" debug "^4.3.4" - http-proxy-agent "^7.0.0" - https-proxy-agent "^7.0.2" + http-proxy-agent "^7.0.1" + https-proxy-agent "^7.0.3" lru-cache "^7.14.1" pac-proxy-agent "^7.0.1" proxy-from-env "^1.1.0" @@ -13173,14 +13212,15 @@ redent@^3.0.0: indent-string "^4.0.0" strip-indent "^3.0.0" -regexp.prototype.flags@^1.5.1: - version "1.5.1" - resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" - integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== +regexp.prototype.flags@^1.5.2: + version "1.5.2" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" + integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - set-function-name "^2.0.0" + call-bind "^1.0.6" + define-properties "^1.2.1" + es-errors "^1.3.0" + set-function-name "^2.0.1" regexpp@^3.1.0: version "3.2.0" @@ -13381,7 +13421,7 @@ rxjs@^7.5.5, rxjs@^7.8.0: dependencies: tslib "^2.1.0" -safe-array-concat@^1.0.1: +safe-array-concat@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.0.tgz#8d0cae9cb806d6d1c06e08ab13d847293ebe0692" integrity sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg== @@ -13406,13 +13446,13 @@ safe-json-stringify@^1.2.0: resolved "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz#356e44bc98f1f93ce45df14bcd7c01cda86e0afd" integrity sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg== -safe-regex-test@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz#3ba32bdb3ea35f940ee87e5087c60ee786c3f6c5" - integrity sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ== +safe-regex-test@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" + integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== dependencies: - call-bind "^1.0.5" - get-intrinsic "^1.2.2" + call-bind "^1.0.6" + es-errors "^1.3.0" is-regex "^1.1.4" safe-stable-stringify@^2.2.0, safe-stable-stringify@^2.3.1: @@ -13478,10 +13518,10 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.3.0, semver@^6.3.1: resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== +semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0: + version "7.6.0" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== dependencies: lru-cache "^6.0.0" @@ -13499,18 +13539,19 @@ set-blocking@^2.0.0, set-blocking@~2.0.0: resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== -set-function-length@^1.1.1: - version "1.2.0" - resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz#2f81dc6c16c7059bda5ab7c82c11f03a515ed8e1" - integrity sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w== +set-function-length@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz#47cc5945f2c771e2cf261c6737cf9684a2a5e425" + integrity sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g== dependencies: - define-data-property "^1.1.1" + define-data-property "^1.1.2" + es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.2" + get-intrinsic "^1.2.3" gopd "^1.0.1" has-property-descriptors "^1.0.1" -set-function-name@^2.0.0: +set-function-name@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== @@ -13570,13 +13611,14 @@ shlex@^2.1.2: integrity sha512-Nz6gtibMVgYeMEhUjp2KuwAgqaJA1K155dU/HuDaEJUGgnmYfVtVZah+uerVWdH8UGnyahhDCgABbYTbs254+w== side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + version "1.0.5" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz#9a84546599b48909fb6af1211708d23b1946221b" + integrity sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ== dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" + call-bind "^1.0.6" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" signal-exit@3.0.7, signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" @@ -13715,11 +13757,11 @@ socks-proxy-agent@^8.0.2: socks "^2.7.1" socks@^2.6.2, socks@^2.7.1: - version "2.7.1" - resolved "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz#d8e651247178fde79c0663043e07240196857d55" - integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== + version "2.7.3" + resolved "https://registry.npmjs.org/socks/-/socks-2.7.3.tgz#7d8a75d7ce845c0a96f710917174dba0d543a785" + integrity sha512-vfuYK48HXCTFD03G/1/zkIls3Ebr2YNa4qU9gHDZdblHLiqhJrJGkY3+0Nx0JpN9qBhJbVObc1CNciT1bIZJxw== dependencies: - ip "^2.0.0" + ip-address "^9.0.5" smart-buffer "^4.2.0" sort-json@^2.0.1: @@ -13821,9 +13863,9 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.16" - resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz#a14f64e0954f6e25cc6587bd4f392522db0d998f" - integrity sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw== + version "3.0.17" + resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz#887da8aa73218e51a1d917502d79863161a93f9c" + integrity sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg== spdx-license-list@^6.8.0: version "6.8.0" @@ -13858,6 +13900,11 @@ split@^1.0.0, split@^1.0.1: dependencies: through "2" +sprintf-js@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a" + integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -14337,9 +14384,9 @@ triple-beam@^1.3.0: integrity sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg== ts-api-utils@^1.0.1: - version "1.0.3" - resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" - integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== + version "1.2.1" + resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz#f716c7e027494629485b21c0df6180f4d08f5e8b" + integrity sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA== ts-jest@^29, ts-jest@^29.1.2: version "29.1.2" @@ -14491,14 +14538,14 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -typed-array-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" - integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== +typed-array-buffer@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.1.tgz#0608ffe6bca71bf15a45bff0ca2604107a1325f5" + integrity sha512-RSqu1UEuSlrBhHTWC8O9FnPjOduNs4M7rJ4pRKoEjtx1zUNOPN2sSXHLDX+Y2WPbHIxbvg4JFo2DNAEfPIKWoQ== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" - is-typed-array "^1.1.10" + call-bind "^1.0.6" + es-errors "^1.3.0" + is-typed-array "^1.1.13" typed-array-byte-length@^1.0.0: version "1.0.0" @@ -14572,9 +14619,9 @@ typescript@^4.5.5: integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== typescript@next: - version "5.4.0-dev.20240201" - resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.0-dev.20240201.tgz#a82081a69d96dfbb1e4fd9bc51f0b8369e34ba42" - integrity sha512-KyjAVgMfyIHhjbaYTeTElvoEKM4teDYYATdzsdcxvogVcaDuH0I0JbiwFUe6bIU5FnWxlbxc7rfGyh7aNwpnow== + version "5.4.0-dev.20240214" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.0-dev.20240214.tgz#7412fc712e698c6c3bd36d2d336d75eb7ef2c614" + integrity sha512-JXOvFnlY/tw/adrzpfOUIrdf8PeIsfW7ljice9bP7dK/dBo/F0VcHr98QA5KtPG1ECsYi2Sl/d9AnucpUCgAaw== typescript@~5.1.0, typescript@~5.1.6: version "5.1.6" @@ -14607,9 +14654,9 @@ undici-types@~5.26.4: integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== undici@^5.25.4: - version "5.28.2" - resolved "https://registry.npmjs.org/undici/-/undici-5.28.2.tgz#fea200eac65fc7ecaff80a023d1a0543423b4c91" - integrity sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w== + version "5.28.3" + resolved "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz#a731e0eff2c3fcfd41c1169a869062be222d1e5b" + integrity sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA== dependencies: "@fastify/busboy" "^2.0.0" @@ -14897,7 +14944,7 @@ which-module@^2.0.0: resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== -which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.2: +which-typed-array@^1.1.14, which-typed-array@^1.1.2: version "1.1.14" resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz#1f78a111aee1e131ca66164d8bdc3ab062c95a06" integrity sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg== @@ -14944,9 +14991,9 @@ widest-line@^4.0.1: string-width "^5.0.1" winston-transport@^4.5.0: - version "4.6.0" - resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.6.0.tgz#f1c1a665ad1b366df72199e27892721832a19e1b" - integrity sha512-wbBA9PbPAHxKiygo7ub7BYRiKxms0tpfU2ljtWzb3SjRjv5yl6Ozuy/TkXf00HTAt+Uylo3gSkNwzc4ME0wiIg== + version "4.7.0" + resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz#e302e6889e6ccb7f383b926df6936a5b781bd1f0" + integrity sha512-ajBj65K5I7denzer2IYW6+2bNIVqLGDHqDw3Ow8Ohh+vdW+rv4MZ6eiDvHoKhfJFZ2auyN8byXieDDJ96ViONg== dependencies: logform "^2.3.2" readable-stream "^3.6.0"