@kya-os/mcp-i 1.7.13 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/225.js +1 -0
- package/dist/227.js +1 -0
- package/dist/242.js +1 -0
- package/dist/283.js +1 -0
- package/dist/295.js +1 -1
- package/dist/354.js +1 -0
- package/dist/361.js +1 -0
- package/dist/452.js +1 -0
- package/dist/533.js +1 -0
- package/dist/622.js +1 -0
- package/dist/65.js +1 -0
- package/dist/843.js +1 -0
- package/dist/861.js +1 -0
- package/dist/866.js +1 -1
- package/dist/914.js +1 -0
- package/dist/95.js +1 -0
- package/dist/{941.js → 966.js} +1 -1
- package/dist/providers/node-providers.d.ts +1 -1
- package/dist/providers/node-providers.js +2 -2
- package/dist/runtime/adapter-express.js +6 -6
- package/dist/runtime/adapter-nextjs.js +6 -6
- package/dist/runtime/auth-handshake.d.ts +4 -159
- package/dist/runtime/auth-handshake.js +8 -249
- package/dist/runtime/http.js +6 -6
- package/dist/runtime/mcpi-runtime.d.ts +4 -0
- package/dist/runtime/mcpi-runtime.js +58 -43
- package/dist/runtime/outbound-delegation.d.ts +34 -0
- package/dist/runtime/outbound-delegation.js +134 -0
- package/dist/runtime/proof.d.ts +13 -88
- package/dist/runtime/proof.js +11 -225
- package/dist/runtime/request-context.d.ts +41 -0
- package/dist/runtime/request-context.js +48 -0
- package/dist/runtime/session.d.ts +13 -104
- package/dist/runtime/session.js +31 -267
- package/dist/runtime/stdio.js +6 -6
- package/dist/runtime/utils/tools.js +17 -3
- package/dist/runtime/verifier-middleware.js +4 -4
- package/package.json +19 -19
- package/dist/207.js +0 -1
- package/dist/25.js +0 -1
- package/dist/360.js +0 -1
- package/dist/387.js +0 -1
- package/dist/406.js +0 -1
- package/dist/448.js +0 -1
- package/dist/478.js +0 -1
- package/dist/575.js +0 -1
- package/dist/67.js +0 -1
- package/dist/743.js +0 -1
- package/dist/784.js +0 -1
- package/dist/844.js +0 -1
- package/dist/936.js +0 -1
- package/dist/988.js +0 -1
package/dist/843.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=843,exports.ids=[843],exports.modules={1034:(e,t,n)=>{"use strict";n.d(t,{s:()=>v});const r="endpoints";function s(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${s(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(s).join(", ")})`:JSON.stringify(e,null,2)}class i extends Error{constructor(e){super(e),this.name="EndpointError"}}var o=n(7856);const a=(e,t)=>(e=>{const t=e.split("."),n=[];for(const r of t){const t=r.indexOf("[");if(-1!==t){if(r.indexOf("]")!==r.length-1)throw new i(`Path: '${e}' does not end with ']'`);const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new i(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&n.push(r.slice(0,t)),n.push(s)}else n.push(r)}return n})(t).reduce((n,r)=>{if("object"!=typeof n)throw new i(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e);var c,u=n(90855);!function(e){e.HTTP="http",e.HTTPS="https"}(c||(c={}));var l=n(10366);const d={[c.HTTP]:80,[c.HTTPS]:443},p={booleanEquals:(e,t)=>e===t,getAttr:a,isSet:e=>null!=e,isValidHostLabel:u.X,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:n,protocol:r="",path:s="",query:i={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:""}${s}`);return o.search=Object.entries(i).map(([e,t])=>`${e}=${t}`).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:s,pathname:i,protocol:o,search:a}=t;if(a)return null;const u=o.slice(0,-1);if(!Object.values(c).includes(u))return null;const p=(0,l.o)(s);return{scheme:u,authority:`${r}${n.includes(`${r}:${d[u]}`)||"string"==typeof e&&e.includes(`${r}:${d[u]}`)?`:${d[u]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:p}},stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>t>=n||e.length<n?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},m=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const t=e.indexOf("{",s);if(-1===t){n.push(e.slice(s));break}n.push(e.slice(s,t));const i=e.indexOf("}",t);if(-1===i){n.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(n.push(e.slice(t+1,i)),s=i+2);const o=e.substring(t+1,i);if(o.includes("#")){const[e,t]=o.split("#");n.push(a(r[e],t))}else n.push(r[o]);s=i+1}return n.join("")},h=(e,t,n)=>{if("string"==typeof e)return m(e,n);if(e.fn)return f.callFunction(e,n);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,n);throw new i(`'${t}': ${String(e)} is not a string, function or reference.`)},g=({fn:e,argv:t},n)=>{const r=t.map(e=>["boolean","number"].includes(typeof e)?e:f.evaluateExpression(e,"arg",n)),s=e.split(".");return s[0]in o.m&&null!=s[1]?o.m[s[0]][s[1]](...r):p[e](...r)},f={evaluateExpression:h,callFunction:g},y=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new i(`'${e}' is already defined in Reference Record.`);const o=g(t,n);return n.logger?.debug?.(`${r} evaluateCondition: ${s(t)} = ${s(o)}`),{result:""===o||!!o,...null!=e&&{toAssign:{name:e,value:o}}}},b=(e=[],t)=>{const n={};for(const i of e){const{result:e,toAssign:o}=y(i,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e)return{result:e};o&&(n[o.name]=o.value,t.logger?.debug?.(`${r} assign: ${o.name} := ${s(o.value)}`))}return{result:!0,referenceRecord:n}},E=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r.map(e=>{const r=h(e,"Header value entry",t);if("string"!=typeof r)throw new i(`Header '${n}' value '${r}' is not a string`);return r})}),{}),S=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:I.getEndpointProperty(r,t)}),{}),T=(e,t)=>{if(Array.isArray(e))return e.map(e=>T(e,t));switch(typeof e){case"string":return m(e,t);case"object":if(null===e)throw new i(`Unexpected endpoint property: ${e}`);return I.getEndpointProperties(e,t);case"boolean":return e;default:throw new i("Unexpected endpoint property type: "+typeof e)}},I={getEndpointProperty:T,getEndpointProperties:S},D=(e,t)=>{const n=h(e,"Endpoint URL",t);if("string"==typeof n)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new i("Endpoint URL must be a string, got "+typeof n)},C=(e,t)=>{const{conditions:n,endpoint:i}=e,{result:o,referenceRecord:a}=b(n,t);if(!o)return;const c={...t,referenceRecord:{...t.referenceRecord,...a}},{url:u,properties:l,headers:d}=i;return t.logger?.debug?.(`${r} Resolving endpoint from template: ${s(i)}`),{...null!=d&&{headers:E(d,c)},...null!=l&&{properties:S(l,c)},url:D(u,c)}},w=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:o}=b(n,t);if(s)throw new i(h(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},A=(e,t)=>{for(const n of e)if("endpoint"===n.type){const e=C(n,t);if(e)return e}else if("error"===n.type)w(n,t);else{if("tree"!==n.type)throw new i(`Unknown endpoint rule: ${n}`);{const e=x.evaluateTreeRule(n,t);if(e)return e}}throw new i("Rules evaluation failed")},x={evaluateRules:A,evaluateTreeRule:(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:i}=b(n,t);if(s)return x.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...i}})}},v=(e,t)=>{const{endpointParams:n,logger:o}=t,{parameters:a,rules:c}=e;t.logger?.debug?.(`${r} Initial EndpointParams: ${s(n)}`);const u=Object.entries(a).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(u.length>0)for(const[e,t]of u)n[e]=n[e]??t;const l=Object.entries(a).filter(([,e])=>e.required).map(([e])=>e);for(const e of l)if(null==n[e])throw new i(`Missing required parameter: '${e}'`);const d=A(c,{endpointParams:n,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${r} Resolved endpoint: ${s(d)}`),d}},2456:(e,t,n)=>{"use strict";n.d(t,{UF:()=>u,vL:()=>c});var r=n(7856),s=n(90855),i=n(10366);const o=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!o(t))return!1;return!0}return!(!(0,s.X)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,i.o)(e))};let a=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-east-2":{"description":"Asia Pacific (Taipei)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"ap-southeast-6":{"description":"Asia Pacific (New Zealand)"},"ap-southeast-7":{"description":"Asia Pacific (Thailand)"},"aws-global":{"description":"aws global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"mx-central-1":{"description":"Mexico (Central)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"aws-cn global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-eusc","outputs":{"dnsSuffix":"amazonaws.eu","dualStackDnsSuffix":"api.amazonwebservices.eu","implicitGlobalRegion":"eusc-de-east-1","name":"aws-eusc","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eusc\\\\-(de)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eusc-de-east-1":{"description":"AWS European Sovereign Cloud (Germany)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"api.aws.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"aws-iso global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"api.aws.scloud","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"aws-iso-b global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"},"us-isob-west-1":{"description":"US ISOB West"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"api.cloud-aws.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-e-global":{"description":"aws-iso-e global region"},"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"api.aws.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-f-global":{"description":"aws-iso-f global region"},"us-isof-east-1":{"description":"US ISOF EAST"},"us-isof-south-1":{"description":"US ISOF SOUTH"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"aws-us-gov global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}}],"version":"1.1"}');const c=()=>"",u={isVirtualHostableS3Bucket:o,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,s,i,o,...a]=t;return"arn"!==n||""===r||""===s||""===a.join(":")?null:{partition:r,service:s,region:i,accountId:o,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{const{partitions:t}=a;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,s]of Object.entries(t))if(n===e)return{...r,...s}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find(e=>"aws"===e.id);if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}}};r.m.aws=u},2914:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(25272);const s=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,r.Q)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},3761:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});class r{trace(){}debug(){}info(){}warn(){}error(){}}},5012:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(25272),s=n(87140),i=n(20181),o=n(76982);class a{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update((0,s.F)(c(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,o.createHmac)(this.algorithmIdentifier,c(this.secret)):(0,o.createHash)(this.algorithmIdentifier)}}function c(e,t){return i.Buffer.isBuffer(e)?e:"string"==typeof e?(0,r.s)(e,t):ArrayBuffer.isView(e)?(0,r.Q)(e.buffer,e.byteOffset,e.byteLength):(0,r.Q)(e)}},5572:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,b:()=>s});var r=n(28262);const s=void 0;function i(e){const t=(0,r.t)(e.userAgentAppId??s),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:"string"==typeof n?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(n)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof n?t?.warn("userAgentAppId must be a string or undefined."):n.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}},5882:(e,t,n)=>{"use strict";n.d(t,{hV:()=>r});const r={environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e.sdk_ua_app_id??e["sdk-ua-app-id"],default:n(5572).b}},6723:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,T:()=>r});class r extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return r.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===r?r.isInstance(e):!!r.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const s=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,n])=>{null!=e[t]&&""!==e[t]||(e[t]=n)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e}},7387:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(99880),s=n(53433),i=n(43281);function o(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch(t){return e}}var a=n(98229),c=n(13770);const u=({environmentVariableSelector:e,configFileSelector:t,default:n},u={})=>{const{signingName:l,logger:d}=u,p={signingName:l,logger:d};return(0,r.B)((0,s.c)((m=e,h=p,async()=>{try{const e=m(process.env,h);if(void 0===e)throw new Error;return e}catch(e){throw new i.C(e.message||`Not found in ENV: ${o(m.toString())}`,{logger:h?.logger})}}),((e,{preferredFile:t="config",...n}={})=>async()=>{const r=(0,a.Bz)(n),{configFile:s,credentialsFile:u}=await(0,c.p)(n),l=u[r]||{},d=s[r]||{},p="config"===t?{...l,...d}:{...d,...l};try{const n=e(p,"config"===t?s:u);if(void 0===n)throw new Error;return n}catch(t){throw new i.C(t.message||`Not found in config files w/ profile [${r}]: ${o(e.toString())}`,{logger:n.logger})}})(t,u),(e=>{return"function"==typeof e?async()=>await e():(t=e,()=>Promise.resolve(t));var t})(n)));var m,h}},7856:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r={}},8641:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(67933);const s=e=>"object"==typeof e?"url"in e?(0,r.D)(e.url):e:(0,r.D)(e)},9575:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});class r{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e))void 0!==n&&this.authSchemes.set(t,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}},9942:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var r=n(50224);class s{config;middlewareStack=(0,r.o)();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;n&&"function"==typeof t&&(e.protocol=new t(n))}send(e,t,n){const r="function"!=typeof t?t:void 0,s="function"==typeof t?t:n;let i;if(void 0===r&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!s)return i(e).then(e=>e.output);i(e).then(e=>s(null,e.output),e=>s(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},10015:(e,t,n)=>{"use strict";n.d(t,{JV:()=>h,l3:()=>D,EI:()=>f,t_:()=>b,xE:()=>I});const r=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&d.warn(l(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},s=Math.ceil(2**127*(2-2**-23)),i=(e,t)=>{const n=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==n&&o(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},o=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},a=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,c=e=>{const t=e.match(a);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},u=e=>(e=>i(e,16))("string"==typeof e?c(e):e),l=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),d={warn:console.warn},p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,u=i<10?`0${i}`:`${i}`,l=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`;return`${p[r]}, ${c} ${m[n]} ${t} ${u}:${l}:${d} GMT`}const g=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),f=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=g.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,o,a,c,l]=t,d=u(L(r)),p=$(s,"month",1,12),m=$(i,"day",1,31);return C(d,p,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})},y=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),b=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=y.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,o,a,c,l,d]=t,p=u(L(r)),m=$(s,"month",1,12),h=$(i,"day",1,31),g=C(p,m,h,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l});return"Z"!=d.toUpperCase()&&g.setTime(g.getTime()-N(d)),g},E=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$/),S=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$/),T=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})$/),I=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=E.exec(e);if(t){const[e,n,r,s,i,o,a,c]=t;return C(u(L(s)),x(r),$(n,"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:c})}if(t=S.exec(e),t){const[e,n,r,s,i,o,a,c]=t;return A(C(w(s),x(r),$(n,"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:c}))}if(t=T.exec(e),t){const[e,n,r,s,i,o,a,c]=t;return C(u(L(c)),x(n),$(r.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:o,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")},D=e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else if("string"==typeof e)t=(e=>r("string"==typeof e?c(e):e))(e);else{if("object"!=typeof e||1!==e.tag)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=e.value}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},C=(e,t,n,r)=>{const s=t-1;return R(e,s,n),new Date(Date.UTC(e,s,n,$(r.hours,"hour",0,23),$(r.minutes,"minute",0,59),$(r.seconds,"seconds",0,60),O(r.fractionalMilliseconds)))},w=e=>{const t=(new Date).getUTCFullYear(),n=100*Math.floor(t/100)+u(L(e));return n<t?n+100:n},A=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,x=e=>{const t=m.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},v=[31,28,31,30,31,30,31,31,30,31,30,31],R=(e,t,n)=>{let r=v[t];if(1===t&&P(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${m[t]} in ${e}: ${n}`)},P=e=>e%4==0&&(e%100!=0||e%400==0),$=(e,t,n,r)=>{const s=(e=>(e=>i(e,8))("string"==typeof e?c(e):e))(L(e));if(s<n||s>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return s},O=e=>null==e?0:1e3*(e=>(e=>{const t=r(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>s)throw new TypeError(`Expected 32-bit float, got ${e}`);return t})("string"==typeof e?c(e):e))("0."+e),N=e=>{const t=e[0];let n=1;if("+"==t)n=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);n=-1}return n*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},L=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},10366:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});const r=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}$"),s=e=>r.test(e)||e.startsWith("[")&&e.endsWith("]")},10669:(e,t)=>{var n=Math.pow(2,8)-1,r=Math.pow(2,16)-1,s=Math.pow(2,32)-1,i=Math.pow(2,7)-1,o=Math.pow(2,15)-1,a=Math.pow(2,31)-1;t.getPointerArray=function(e){var t=e-1;return t<=n?Uint8Array:t<=r?Uint16Array:t<=s?Uint32Array:Float64Array},t.getSignedPointerArray=function(e){var t=e-1;return t<=i?Int8Array:t<=o?Int16Array:t<=a?Int32Array:Float64Array},t.getNumberType=function(e){return e===(0|e)?-1===Math.sign(e)?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var c={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,n){var r,s,i,o,a,u=null,l=0;for(o=0,a=e.length;o<a;o++)i=n?n(e[o]):e[o],s=t.getNumberType(i),(r=c[s.name])>l&&(l=r,u=s);return u},t.isTypedArray=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView(e)},t.concat=function(){var e,t,n,r=0;for(e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;var s=new arguments[0].constructor(r);for(e=0,t=0;e<n;e++)s.set(arguments[e],t),t+=arguments[e].length;return s},t.indices=function(e){for(var n=new(t.getPointerArray(e))(e),r=0;r<e;r++)n[r]=r;return n}},10773:(e,t,n)=>{"use strict";n.d(t,{ey:()=>g});var r=n(81781),s=n(20945),i=n(38097),o=n(3761),a=n(35197),c=n(34708),u=n(2203);const l=e=>e?.body instanceof u.Readable||"undefined"!=typeof ReadableStream&&e?.body instanceof ReadableStream,d=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),p=e=>{const t={error:e,errorType:m(e)},n=f(e.$response);return n&&(t.retryAfterHint=n),t},m=e=>(0,i.Qb)(e)?"THROTTLING":(0,i.bV)(e)?"TRANSIENT":(0,i.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",h={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},g=e=>({applyToStack:t=>{t.add((e=>(t,n)=>async s=>{let i=await e.retryStrategy();const u=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(i))return i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,s);{let e=await i.acquireInitialRetryToken(n.partition_id),m=new Error,h=0,g=0;const{request:f}=s,y=r.K.isInstance(f);for(y&&(f.headers[a.l5]=(0,c.v4)());;)try{y&&(f.headers[a.ok]=`attempt=${h+1}; max=${u}`);const{response:n,output:r}=await t(s);return i.recordSuccess(e),r.$metadata.attempts=h+1,r.$metadata.totalRetryDelay=g,{response:n,output:r}}catch(t){const r=p(t);if(m=d(t),y&&l(f))throw(n.logger instanceof o.N?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),m;try{e=await i.refreshRetryTokenForRetry(e,r)}catch(e){throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=h+1,m.$metadata.totalRetryDelay=g,m}h=e.getRetryCount();const s=e.getRetryDelay();g+=s,await new Promise(e=>setTimeout(e,s))}}})(e),h)}}),f=e=>{if(!s.c.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(1e3*r)}},10860:(e,t,n)=>{"use strict";n.d(t,{vK:()=>o});var r=n(81781);const s="content-length",i={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},o=e=>({applyToStack:t=>{var n;t.add((n=e.bodyLengthChecker,e=>async t=>{const i=t.request;if(r.K.isInstance(i)){const{body:e,headers:t}=i;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(s))try{const t=n(e);i.headers={...i.headers,[s]:String(t)}}catch(e){}}return e({...t,request:i})}),i)}})},12544:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(25272);const s=/^[A-Za-z0-9+/]*={0,2}$/,i=e=>{if(3*e.length%4!=0)throw new TypeError("Incorrect padding on base64 string.");if(!s.exec(e))throw new TypeError("Invalid base64 string.");const t=(0,r.s)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},13770:(e,t,n)=>{"use strict";n.d(t,{p:()=>m});var r=n(16928),s=n(90814),i=n(46086);const o=e=>Object.entries(e).filter(([e])=>{const t=e.indexOf(i.Q);return-1!==t&&Object.values(s.I).includes(e.substring(0,t))}).reduce((e,[t,n])=>{const r=t.indexOf(i.Q);return e[t.substring(0,r)===s.I.PROFILE?t.substring(r+1):t]=n,e},{...e.default&&{default:e.default}});var a=n(40768),c=n(14581);const u=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||(0,r.join)((0,c.R)(),".aws","credentials");var l=n(41844),d=n(35789);const p=()=>({}),m=async(e={})=>{const{filepath:t=u(),configFilepath:n=(0,a.g)()}=e,s=(0,c.R)();let i=t;t.startsWith("~/")&&(i=(0,r.join)(s,t.slice(2)));let m=n;n.startsWith("~/")&&(m=(0,r.join)(s,n.slice(2)));const h=await Promise.all([(0,d.TA)(m,{ignoreCache:e.ignoreCache}).then(l.A).then(o).catch(p),(0,d.TA)(i,{ignoreCache:e.ignoreCache}).then(l.A).catch(p)]);return{configFile:h[0],credentialsFile:h[1]}}},14497:(e,t,n)=>{var r=n(53924),s=n(10669);function i(e){return"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:void 0}t.isArrayLike=function(e){return Array.isArray(e)||s.isTypedArray(e)},t.guessLength=i,t.toArray=function(e){var t=i(e),n="number"==typeof t?new Array(t):[],s=0;return r(e,function(e){n[s++]=e}),n},t.toArrayWithIndices=function(e){var t=i(e),n="number"==typeof t?s.getPointerArray(t):Array,o="number"==typeof t?new Array(t):[],a="number"==typeof t?new n(t):[],c=0;return r(e,function(e){o[c]=e,a[c]=c++}),[o,a]}},14581:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(70857),s=n(16928);const i={},o=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:o=`C:${s.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${o}${n}`;const a=process&&process.geteuid?`${process.geteuid()}`:"DEFAULT";return i[a]||(i[a]=(0,r.homedir)()),i[a]}},17357:(e,t,n)=>{"use strict";n.d(t,{f2:()=>u});var r=n(81781);const s=e=>new Date(Date.now()+e);var i=n(20945);const o=e=>i.c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,a=(e,t)=>{const n=Date.parse(e);return((e,t)=>Math.abs(s(t).getTime()-e)>=3e5)(n,t)?n-Date.now():t},c=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class u{async sign(e,t,n){if(!r.K.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await(async e=>{const t=c("context",e.context),n=c("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],s=c("signer",n.signer),i=await s(r),o=e?.signingRegion,a=e?.signingRegionSet,u=e?.signingName;return{config:n,signer:i,signingRegion:o,signingRegionSet:a,signingName:u}})(n),{config:o,signer:a}=i;let{signingRegion:u,signingName:l}=i;const d=n.context;if(d?.authSchemes?.length){const[e,t]=d.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(u=t?.signingRegion??u,l=t?.signingName??l)}return await a.sign(e,{signingDate:s(o.systemClockOffset),signingRegion:u,signingService:l})}errorHandler(e){return t=>{const n=t.ServerTime??o(t.$response);if(n){const r=c("config",e.config),s=r.systemClockOffset;r.systemClockOffset=a(n,r.systemClockOffset),r.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const n=o(e);if(n){const e=c("config",t.config);e.systemClockOffset=a(n,e.systemClockOffset)}}}},17479:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});const r={warningEmitted:!1},s=e=>{e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20&&(r.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`))}},17914:(e,t,n)=>{"use strict";n.d(t,{pf:()=>i});var r=n(70857),s=n(932);const i=({serviceId:e,clientVersion:t})=>async n=>{const i=[["aws-sdk-js",t],["ua","2.1"],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];e&&i.push([`api/${e}`,t]),s.env.AWS_EXECUTION_ENV&&i.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`]);const o=await(n?.userAgentAppId?.());return o?[...i,[`app/${o}`]]:[...i]}},18081:(e,t,n)=>{"use strict";var r;n.d(t,{xA:()=>s,uv:()=>i}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(r||(r={}));const s=e=>Object.assign((e=>{const t=[];for(const n in r){const s=r[n];void 0!==e[s]&&t.push({algorithmId:()=>s,checksumConstructor:()=>e[s]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)),i=e=>Object.assign((e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t})(e),(e=>{const t={};return t.retryStrategy=e.retryStrategy(),t})(e))},18241:(e,t,n)=>{"use strict";var r;n.d(t,{c:()=>r}),function(e){e.ENV="env",e.CONFIG="shared config entry"}(r||(r={}))},20945:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});class r{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}},22869:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(50224),s=n(86247),i=n(50469);const o="***SensitiveInformation***";function a(e,t){if(null==t)return t;const n=i.l.of(e);if(n.getMergedTraits().sensitive)return o;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isStructSchema()&&"object"==typeof t){const e=t,r={};for(const[t,s]of n.structIterator())null!=e[t]&&(r[t]=a(s,e[t]));return r}return t}class c{middlewareStack=(0,r.o)();schema;static classBuilder(){return new u}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:l,CommandCtor:d}){for(const s of r.bind(this)(d,e,t,n))this.middlewareStack.use(s);const p=e.concat(this.middlewareStack),{logger:m}=t,h={logger:m,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,[s.V]:{commandInstance:this,...u},...l},{requestHandler:g}=t;return p.resolve(e=>g.handle(e.request,n||{}),h)}}class u{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends c{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,s){const i=e._operationSchema,o=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,r,s,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?a.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?a.bind(null,c):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}},23870:(e,t,n)=>{"use strict";n.d(t,{h:()=>W});var r=n(53347),s=n(28262);const i=function(e){return o(e)&&e.expiration.getTime()-Date.now()<3e5};const o=e=>void 0!==e.expiration;var a=n(92278),c=n(87140);const u="X-Amz-Date",l="X-Amz-Signature",d="X-Amz-Security-Token",p="authorization",m=u.toLowerCase(),h=[p,m,"date"],g=l.toLowerCase(),f="x-amz-content-sha256",y=d.toLowerCase(),b={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},E=/^proxy-/,S=/^sec-/,T="AWS4-HMAC-SHA256",I="AWS4-HMAC-SHA256-PAYLOAD",D="aws4_request",C={},w=[],A=(e,t,n)=>`${e}/${t}/${n}/${D}`,x=(e,t,n)=>{const r=new e(t);return r.update((0,c.F)(n)),r.digest()},v=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const i=s.toLowerCase();(i in b||t?.has(i)||E.test(i)||S.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r};var R=n(82752);const P=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===f)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,R.m)(t)){const e=new n;return e.update((0,c.F)(t)),(0,a.n)(await e.digest())}return"UNSIGNED-PAYLOAD"};var $,O=n(40935);class N{format(e){const t=[];for(const n of Object.keys(e)){const r=(0,O.a)(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":const o=(0,O.a)(e.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(o,3),u;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(B.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!L.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set((0,a.a)(e.value.replace(/\-/g,"")),1),d}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}($||($={}));const L=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class B{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&_(t),new B(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&_(e),parseInt((0,a.n)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function _(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var k=n(81781);const U=e=>{e=k.K.clone(e);for(const t of Object.keys(e.headers))h.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var M=n(81974),G=n(33938);class F{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i=!0}){this.service=r,this.sha256=s,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,M.t)(n),this.credentialProvider=(0,M.t)(t)}createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===g)continue;const s=(0,G.o)(r);t.push(s);const i=e[r];"string"==typeof i?n[s]=`${s}=${(0,G.o)(i)}`:Array.isArray(i)&&(n[s]=i.slice(0).reduce((e,t)=>e.concat([`${s}=${(0,G.o)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>n[e]).filter(e=>e).join("&")})(e)}\n${r.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n,r){const s=new this.sha256;s.update((0,c.F)(n));const i=await s.digest();return`${r}\n${e}\n${t}\n${(0,a.n)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,G.o)(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(n=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(n).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var n;return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class j extends F{headerFormatter=new N;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:o,hoistableHeaders:a,signingRegion:c,signingService:p}=t,m=await this.credentialProvider();this.validateResolvedCredentials(m);const h=c??await this.regionProvider(),{longDate:g,shortDate:f}=this.formatDate(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const y=A(f,h,p??this.service),b=((e,t={})=>{const{headers:n,query:r={}}=k.K.clone(e);for(const e of Object.keys(n)){const s=e.toLowerCase();("x-amz-"===s.slice(0,6)&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})(U(e),{unhoistableHeaders:i,hoistableHeaders:a});m.sessionToken&&(b.query[d]=m.sessionToken),b.query["X-Amz-Algorithm"]=T,b.query["X-Amz-Credential"]=`${m.accessKeyId}/${y}`,b.query[u]=g,b.query["X-Amz-Expires"]=r.toString(10);const E=v(b,s,o);return b.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(E),b.query[l]=await this.getSignature(g,y,this.getSigningKey(m,h,f,p),this.createCanonicalRequest(b,E,await P(e,this.sha256))),b}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:s,signingService:i}){const o=s??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(n),l=A(c,o,i??this.service),d=await P({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);const m=(0,a.n)(await p.digest()),h=[I,u,l,r,m,d].join("\n");return this.signString(h,{signingDate:n,signingRegion:o,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const i=n??await this.regionProvider(),{shortDate:o}=this.formatDate(t),u=new this.sha256(await this.getSigningKey(s,i,o,r));return u.update((0,c.F)(e)),(0,a.n)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:s,signingService:i}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const a=s??await this.regionProvider(),c=U(e),{longDate:u,shortDate:l}=this.formatDate(t),d=A(l,a,i??this.service);c.headers[m]=u,o.sessionToken&&(c.headers[y]=o.sessionToken);const h=await P(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1})(f,c.headers)&&this.applyChecksum&&(c.headers[f]=h);const g=v(c,r,n),b=await this.getSignature(u,d,this.getSigningKey(o,a,l,i),this.createCanonicalRequest(c,g,h));return c.headers[p]=`${T} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${b}`,c}async getSignature(e,t,n,r){const s=await this.createStringToSign(e,t,r,T),i=new this.sha256(await n);return i.update((0,c.F)(s)),(0,a.n)(await i.digest())}getSigningKey(e,t,n,r){return(async(e,t,n,r,s)=>{const i=await x(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${s}:${(0,a.n)(i)}:${t.sessionToken}`;if(o in C)return C[o];for(w.push(o);w.length>50;)delete C[w.shift()];let c=`AWS4${t.secretAccessKey}`;for(const t of[n,r,s,D])c=await x(e,c,t);return C[o]=c})(this.sha256,e,n,t,r||this.service)}}const W=e=>{let t,n=e.credentials,a=!!e.credentials;Object.defineProperty(e,"credentials",{set(c){c&&c!==n&&c!==t&&(a=!0),n=c;const u=function(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:((e,t,n)=>{if(void 0===e)return;const r="function"!=typeof e?async()=>Promise.resolve(e):e;let s,i,o,a=!1;const c=async e=>{i||(i=r(e));try{s=await i,o=!0,a=!1}finally{i=void 0}return s};return void 0===t?async e=>(o&&!e?.forceRefresh||(s=await c(e)),s):async e=>(o&&!e?.forceRefresh||(s=await c(e)),a?s:n(s)?t(s)?(await c(e),s):s:(a=!0,s))})(t,i,o):n?(0,s.t)(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}(e,{credentials:n,credentialDefaultProvider:e.credentialDefaultProvider}),l=function(e,t){if(t.configBound)return t;const n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}(e,u);if(a&&!l.attributed){const e="object"==typeof n&&null!==n;t=async t=>{const n=await l(t);return!e||n.$source&&0!==Object.keys(n.$source).length?n:(0,r.g)(n,"CREDENTIALS_CODE","e")},t.memoized=l.memoized,t.configBound=l.configBound,t.attributed=!0}else t=l},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=n;const{signingEscapePath:c=!0,systemClockOffset:u=e.systemClockOffset||0,sha256:l}=e;let d;return d=e.signer?(0,s.t)(e.signer):e.regionInfoProvider?()=>(0,s.t)(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{const{signingRegion:r,signingService:s}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||s||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:c};return new(e.signerConstructor||j)(i)}):async t=>{const n=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,s.t)(e.region)(),properties:{}},t)).signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:c};return new(e.signerConstructor||j)(i)},Object.assign(e,{systemClockOffset:u,signingEscapePath:c,signer:d})}},24176:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r=n(20945),s=n(33938),i=n(58611),o=n(65692);const a=["ECONNRESET","EPIPE","ETIMEDOUT"],c=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t},u=(e,t)=>setTimeout(e,t),l=e=>clearTimeout(e);var d=n(2203);class p{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return"function"==typeof e?.handle?e:new p(e)}static checkSocketUsage(e,t,n=console){const{sockets:r,requests:s,maxSockets:i}=e;if("number"!=typeof i||i===1/0)return t;if(Date.now()-15e3<t)return t;if(r&&s)for(const e in r){const t=r[e]?.length??0,o=s[e]?.length??0;if(t>=i&&o>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${o} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{"function"==typeof e?e().then(e=>{t(this.resolveDefaultConfig(e))}).catch(n):t(this.resolveDefaultConfig(e))})}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:r,socketAcquisitionWarningTimeout:s,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:u,logger:l}=e||{},d=!0;return{connectionTimeout:n,requestTimeout:t,socketTimeout:r,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgent:(()=>a instanceof i.Agent||"function"==typeof a?.destroy?(this.externalAgent=!0,a):new i.Agent({keepAlive:d,maxSockets:50,...a}))(),httpsAgent:(()=>c instanceof o.Agent||"function"==typeof c?.destroy?(this.externalAgent=!0,c):new o.Agent({keepAlive:d,maxSockets:50,...c}))(),logger:l}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){return this.config||(this.config=await this.configProvider),new Promise((m,h)=>{const g=this.config;let f;const y=[],b=async e=>{await f,y.forEach(l),h(e)};if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",void b(e)}const E="https:"===e.protocol,S=e.headers??{},T="100-continue"===(S.Expect??S.expect);let I=E?g.httpsAgent:g.httpAgent;T&&!this.externalAgent&&(I=new(E?o.Agent:i.Agent)({keepAlive:!1,maxSockets:1/0})),y.push(u(()=>{this.socketWarningTimestamp=p.checkSocketUsage(I,this.socketWarningTimestamp,g.logger)},g.socketAcquisitionWarningTimeout??(g.requestTimeout??2e3)+(g.connectionTimeout??1e3)));const D=function(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=(0,s.o)(n),Array.isArray(r))for(let e=0,i=r.length;e<i;e++)t.push(`${n}=${(0,s.o)(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${(0,s.o)(r)}`),t.push(e)}}return t.join("&")}(e.query||{});let C;null==e.username&&null==e.password||(C=`${e.username??""}:${e.password??""}`);let w=e.path;D&&(w+=`?${D}`),e.fragment&&(w+=`#${e.fragment}`);let A=e.hostname??"";A="["===A[0]&&A.endsWith("]")?e.hostname.slice(1,-1):e.hostname;const x={headers:e.headers,host:A,method:e.method,path:w,port:e.port,agent:I,auth:C},v=(E?o.request:i.request)(x,e=>{(async e=>{await f,y.forEach(l),m(e)})({response:new r.c({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:c(e.headers),body:e})})});if(v.on("error",e=>{a.includes(e.code)?b(Object.assign(e,{name:"TimeoutError"})):b(e)}),t){const e=()=>{v.destroy();const e=new Error("Request aborted");e.name="AbortError",b(e)};if("function"==typeof t.addEventListener){const n=t;n.addEventListener("abort",e,{once:!0}),v.once("close",()=>n.removeEventListener("abort",e))}else t.onabort=e}const R=n??g.requestTimeout;y.push(((e,t,n=0)=>{if(!n)return-1;const r=r=>{const s=u(()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-r),i=e=>{e?.connecting?e.on("connect",()=>{l(s)}):l(s)};e.socket?i(e.socket):e.on("socket",i)};return n<2e3?(r(0),0):u(r.bind(null,1e3),1e3)})(v,b,g.connectionTimeout)),y.push(((e,t,n=0,r,s)=>n?u(()=>{let i=`@smithy/node-http-handler - [${r?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(r){const n=Object.assign(new Error(i),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n),t(n)}else i+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(i)},n):-1)(v,b,R,g.throwOnRequestTimeout,g.logger??console)),y.push(((e,t,n=0)=>{const r=r=>{const s=n-r,i=()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};e.socket?(e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i))):e.setTimeout(s,i)};return 0<n&&n<6e3?(r(0),0):u(r.bind(null,0===n?0:3e3),3e3)})(v,b,g.socketTimeout));const P=x.agent;"object"==typeof P&&"keepAlive"in P&&y.push(((e,{keepAlive:t,keepAliveMsecs:n},r=3e3)=>{if(!0!==t)return-1;const s=()=>{e.socket?e.socket.setKeepAlive(t,n||0):e.on("socket",e=>{e.setKeepAlive(t,n||0)})};return 0===r?(s(),0):u(s,r)})(v,{keepAlive:P.keepAlive,keepAliveMsecs:P.keepAliveMsecs})),f=async function(e,t,n=6e3,r=!1){const s=t.headers??{},i=s.Expect||s.expect;let o=-1,a=!0;r||"100-continue"!==i||(a=await Promise.race([new Promise(e=>{o=Number(u(()=>e(!0),Math.max(6e3,n)))}),new Promise(t=>{e.on("continue",()=>{l(o),t(!0)}),e.on("response",()=>{l(o),t(!1)}),e.on("error",()=>{l(o),t(!1)})})])),a&&function(e,t){if(t instanceof d.Readable)t.pipe(e);else{if(t){const n=Buffer.isBuffer(t);if(n||"string"==typeof t)return void(n&&0===t.byteLength?e.end():e.end(t));const r=t;return"object"==typeof r&&r.buffer&&"number"==typeof r.byteOffset&&"number"==typeof r.byteLength?void e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength)):void e.end(Buffer.from(t))}e.end()}}(e,t.body)}(v,e,R,this.externalAgent).catch(e=>(y.forEach(l),h(e)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}}},24661:(e,t,n)=>{"use strict";n.d(t,{e$:()=>i});var r=n(91349),s=n(18241);const i={environmentVariableSelector:e=>(0,r.Q)(e,"AWS_USE_DUALSTACK_ENDPOINT",s.c.ENV),configFileSelector:e=>(0,r.Q)(e,"use_dualstack_endpoint",s.c.CONFIG),default:!1}},25272:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,s:()=>o});var r=n(82752),s=n(20181);const i=(e,t=0,n=e.byteLength-t)=>{if(!(0,r.m)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return s.Buffer.from(e,t,n)},o=(e,t)=>{if("string"!=typeof e)throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?s.Buffer.from(e,t):s.Buffer.from(e)}},26144:(e,t,n)=>{"use strict";function r(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:s,httpQuery:i}=e.getMergedTraits();return(t.httpBindings?"string"==typeof r||Boolean(s)?6:Boolean(i)||Boolean(n)?5:void 0:void 0)??t.timestampFormat.default}n.d(t,{V:()=>r})},28075:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(50469),s=n(51453),i=n(6723);class o{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r){return r.getMergedTraits().mediaType||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}if(!t.isUnitSchema()&&Object.values(n).find(e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:s,httpPrefixHeaders:i}=e.getMergedTraits();return!(t||n||r||s||void 0!==i)}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,o){let a=t,c=e;e.includes("#")&&([a,c]=e.split("#"));const u={$metadata:i,$fault:n.statusCode<500?"client":"server"},l=s.O.for(a);try{return{errorSchema:o?.(l,c)??l.getSchema(e),errorMetadata:u}}catch(e){r.message=r.message??r.Message??"UnknownError";const t=s.O.for("smithy.ts.sdk.synthetic."+a),n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:c}),u),r)}throw this.decorateServiceException(Object.assign(new Error(c),u),r)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message,r=(0,i.M)(e,t);n&&(r.message=n),r.Error={...r.Error,Type:r.Error.Type,Code:r.Error.Code,Message:r.Error.message??r.Error.Message??n};const s=r.$metadata.requestId;return s&&(r.RequestId=s),r}return(0,i.M)(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=n){const[t,r]=n.split(";"),s=Object.entries(e),i={Code:t,Type:r};Object.assign(e,i);for(const[e,t]of s)i["message"===e?"Message":e]=t;delete i.__type,e.Error=i}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find(e=>r.l.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}},28262:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},28843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>P.u,ApproximateCreationDateTimePrecision:()=>gg,ArchivalSummary$:()=>zs,AttributeAction:()=>fg,AttributeDefinition$:()=>Vs,AttributeValue$:()=>ml,AttributeValueUpdate$:()=>Ks,AutoScalingPolicyDescription$:()=>Hs,AutoScalingPolicyUpdate$:()=>Qs,AutoScalingSettingsDescription$:()=>Ys,AutoScalingSettingsUpdate$:()=>Js,AutoScalingTargetTrackingScalingPolicyConfigurationDescription$:()=>Zs,AutoScalingTargetTrackingScalingPolicyConfigurationUpdate$:()=>Xs,BackupDescription$:()=>ei,BackupDetails$:()=>ti,BackupInUseException:()=>B,BackupInUseException$:()=>us,BackupNotFoundException:()=>_,BackupNotFoundException$:()=>ls,BackupStatus:()=>bg,BackupSummary$:()=>ni,BackupType:()=>Eg,BackupTypeFilter:()=>xg,BatchExecuteStatement$:()=>hl,BatchExecuteStatementCommand:()=>wm,BatchExecuteStatementInput$:()=>ri,BatchExecuteStatementOutput$:()=>si,BatchGetItem$:()=>gl,BatchGetItemCommand:()=>Am,BatchGetItemInput$:()=>ii,BatchGetItemOutput$:()=>oi,BatchStatementError$:()=>ai,BatchStatementErrorCodeEnum:()=>Pg,BatchStatementRequest$:()=>ci,BatchStatementResponse$:()=>ui,BatchWriteItem$:()=>fl,BatchWriteItemCommand:()=>xm,BatchWriteItemInput$:()=>li,BatchWriteItemOutput$:()=>di,BillingMode:()=>Sg,BillingModeSummary$:()=>pi,CancellationReason$:()=>mi,Capacity$:()=>hi,ComparisonOperator:()=>Og,Condition$:()=>gi,ConditionCheck$:()=>fi,ConditionalCheckFailedException:()=>he,ConditionalCheckFailedException$:()=>ds,ConditionalOperator:()=>Ng,ConsumedCapacity$:()=>yi,ContinuousBackupsDescription$:()=>bi,ContinuousBackupsStatus:()=>Lg,ContinuousBackupsUnavailableException:()=>z,ContinuousBackupsUnavailableException$:()=>ps,ContributorInsightsAction:()=>_g,ContributorInsightsMode:()=>kg,ContributorInsightsStatus:()=>Ug,ContributorInsightsSummary$:()=>Ei,CreateBackup$:()=>yl,CreateBackupCommand:()=>vm,CreateBackupInput$:()=>Si,CreateBackupOutput$:()=>Ti,CreateGlobalSecondaryIndexAction$:()=>Ii,CreateGlobalTable$:()=>bl,CreateGlobalTableCommand:()=>Rm,CreateGlobalTableInput$:()=>Di,CreateGlobalTableOutput$:()=>Ci,CreateGlobalTableWitnessGroupMemberAction$:()=>wi,CreateReplicaAction$:()=>Ai,CreateReplicationGroupMemberAction$:()=>xi,CreateTable$:()=>El,CreateTableCommand:()=>Pm,CreateTableInput$:()=>vi,CreateTableOutput$:()=>Ri,CsvOptions$:()=>Pi,Delete$:()=>$i,DeleteBackup$:()=>Sl,DeleteBackupCommand:()=>$m,DeleteBackupInput$:()=>Oi,DeleteBackupOutput$:()=>Ni,DeleteGlobalSecondaryIndexAction$:()=>Li,DeleteGlobalTableWitnessGroupMemberAction$:()=>Bi,DeleteItem$:()=>Tl,DeleteItemCommand:()=>Om,DeleteItemInput$:()=>_i,DeleteItemOutput$:()=>ki,DeleteReplicaAction$:()=>Ui,DeleteReplicationGroupMemberAction$:()=>Mi,DeleteRequest$:()=>Gi,DeleteResourcePolicy$:()=>Il,DeleteResourcePolicyCommand:()=>Nm,DeleteResourcePolicyInput$:()=>Fi,DeleteResourcePolicyOutput$:()=>ji,DeleteTable$:()=>Dl,DeleteTableCommand:()=>Lm,DeleteTableInput$:()=>Wi,DeleteTableOutput$:()=>qi,DescribeBackup$:()=>Cl,DescribeBackupCommand:()=>Bm,DescribeBackupInput$:()=>zi,DescribeBackupOutput$:()=>Vi,DescribeContinuousBackups$:()=>wl,DescribeContinuousBackupsCommand:()=>_m,DescribeContinuousBackupsInput$:()=>Ki,DescribeContinuousBackupsOutput$:()=>Hi,DescribeContributorInsights$:()=>Al,DescribeContributorInsightsCommand:()=>km,DescribeContributorInsightsInput$:()=>Qi,DescribeContributorInsightsOutput$:()=>Yi,DescribeEndpoints$:()=>xl,DescribeEndpointsCommand:()=>yd,DescribeEndpointsRequest$:()=>Ji,DescribeEndpointsResponse$:()=>Zi,DescribeExport$:()=>vl,DescribeExportCommand:()=>Um,DescribeExportInput$:()=>Xi,DescribeExportOutput$:()=>eo,DescribeGlobalTable$:()=>Rl,DescribeGlobalTableCommand:()=>Mm,DescribeGlobalTableInput$:()=>to,DescribeGlobalTableOutput$:()=>no,DescribeGlobalTableSettings$:()=>Pl,DescribeGlobalTableSettingsCommand:()=>Gm,DescribeGlobalTableSettingsInput$:()=>ro,DescribeGlobalTableSettingsOutput$:()=>so,DescribeImport$:()=>$l,DescribeImportCommand:()=>Fm,DescribeImportInput$:()=>io,DescribeImportOutput$:()=>oo,DescribeKinesisStreamingDestination$:()=>Ol,DescribeKinesisStreamingDestinationCommand:()=>jm,DescribeKinesisStreamingDestinationInput$:()=>ao,DescribeKinesisStreamingDestinationOutput$:()=>co,DescribeLimits$:()=>Nl,DescribeLimitsCommand:()=>Wm,DescribeLimitsInput$:()=>uo,DescribeLimitsOutput$:()=>lo,DescribeTable$:()=>Ll,DescribeTableCommand:()=>qm,DescribeTableInput$:()=>po,DescribeTableOutput$:()=>mo,DescribeTableReplicaAutoScaling$:()=>Bl,DescribeTableReplicaAutoScalingCommand:()=>zm,DescribeTableReplicaAutoScalingInput$:()=>ho,DescribeTableReplicaAutoScalingOutput$:()=>go,DescribeTimeToLive$:()=>_l,DescribeTimeToLiveCommand:()=>Vm,DescribeTimeToLiveInput$:()=>fo,DescribeTimeToLiveOutput$:()=>yo,DestinationStatus:()=>nf,DisableKinesisStreamingDestination$:()=>kl,DisableKinesisStreamingDestinationCommand:()=>Km,DuplicateItemException:()=>ne,DuplicateItemException$:()=>ms,DynamoDB:()=>hg,DynamoDBClient:()=>Cm,DynamoDBServiceException:()=>L,DynamoDBServiceException$:()=>as,EnableKinesisStreamingConfiguration$:()=>bo,EnableKinesisStreamingDestination$:()=>Ul,EnableKinesisStreamingDestinationCommand:()=>Hm,Endpoint$:()=>Eo,ExecuteStatement$:()=>Ml,ExecuteStatementCommand:()=>Qm,ExecuteStatementInput$:()=>So,ExecuteStatementOutput$:()=>To,ExecuteTransaction$:()=>Gl,ExecuteTransactionCommand:()=>Ym,ExecuteTransactionInput$:()=>Io,ExecuteTransactionOutput$:()=>Do,ExpectedAttributeValue$:()=>Co,ExportConflictException:()=>ie,ExportConflictException$:()=>hs,ExportDescription$:()=>wo,ExportFormat:()=>Hg,ExportNotFoundException:()=>X,ExportNotFoundException$:()=>gs,ExportStatus:()=>Qg,ExportSummary$:()=>Ao,ExportTableToPointInTime$:()=>Fl,ExportTableToPointInTimeCommand:()=>Jm,ExportTableToPointInTimeInput$:()=>xo,ExportTableToPointInTimeOutput$:()=>vo,ExportType:()=>Yg,ExportViewType:()=>Jg,FailureException$:()=>Ro,Get$:()=>Po,GetItem$:()=>jl,GetItemCommand:()=>Zm,GetItemInput$:()=>$o,GetItemOutput$:()=>Oo,GetResourcePolicy$:()=>Wl,GetResourcePolicyCommand:()=>Xm,GetResourcePolicyInput$:()=>No,GetResourcePolicyOutput$:()=>Lo,GlobalSecondaryIndex$:()=>Bo,GlobalSecondaryIndexAutoScalingUpdate$:()=>_o,GlobalSecondaryIndexDescription$:()=>ko,GlobalSecondaryIndexInfo$:()=>Uo,GlobalSecondaryIndexUpdate$:()=>Mo,GlobalSecondaryIndexWarmThroughputDescription$:()=>Go,GlobalTable$:()=>Fo,GlobalTableAlreadyExistsException:()=>Q,GlobalTableAlreadyExistsException$:()=>fs,GlobalTableDescription$:()=>jo,GlobalTableGlobalSecondaryIndexSettingsUpdate$:()=>Wo,GlobalTableNotFoundException:()=>ee,GlobalTableNotFoundException$:()=>ys,GlobalTableSettingsReplicationMode:()=>Fg,GlobalTableStatus:()=>Mg,GlobalTableWitnessDescription$:()=>qo,GlobalTableWitnessGroupUpdate$:()=>zo,IdempotentParameterMismatchException:()=>re,IdempotentParameterMismatchException$:()=>bs,ImportConflictException:()=>ce,ImportConflictException$:()=>Es,ImportNotFoundException:()=>te,ImportNotFoundException$:()=>Ss,ImportStatus:()=>Xg,ImportSummary$:()=>Vo,ImportTable$:()=>ql,ImportTableCommand:()=>eh,ImportTableDescription$:()=>Ko,ImportTableInput$:()=>Ho,ImportTableOutput$:()=>Qo,IncrementalExportSpecification$:()=>Yo,IndexNotFoundException:()=>me,IndexNotFoundException$:()=>Ts,IndexStatus:()=>Gg,InputCompressionType:()=>ef,InputFormat:()=>tf,InputFormatOptions$:()=>Jo,InternalServerError:()=>k,InternalServerError$:()=>Is,InvalidEndpointException:()=>G,InvalidEndpointException$:()=>Ds,InvalidExportTimeException:()=>oe,InvalidExportTimeException$:()=>Cs,InvalidRestoreTimeException:()=>le,InvalidRestoreTimeException$:()=>ws,ItemCollectionMetrics$:()=>Zo,ItemCollectionSizeLimitExceededException:()=>W,ItemCollectionSizeLimitExceededException$:()=>As,ItemResponse$:()=>Xo,KeySchemaElement$:()=>ta,KeyType:()=>Tg,KeysAndAttributes$:()=>ea,KinesisDataStreamDestination$:()=>na,KinesisStreamingDestinationInput$:()=>ra,KinesisStreamingDestinationOutput$:()=>sa,LimitExceededException:()=>V,LimitExceededException$:()=>xs,ListBackups$:()=>zl,ListBackupsCommand:()=>th,ListBackupsInput$:()=>ia,ListBackupsOutput$:()=>oa,ListContributorInsights$:()=>Vl,ListContributorInsightsCommand:()=>nh,ListContributorInsightsInput$:()=>aa,ListContributorInsightsOutput$:()=>ca,ListExports$:()=>Kl,ListExportsCommand:()=>rh,ListExportsInput$:()=>ua,ListExportsOutput$:()=>la,ListGlobalTables$:()=>Hl,ListGlobalTablesCommand:()=>sh,ListGlobalTablesInput$:()=>da,ListGlobalTablesOutput$:()=>pa,ListImports$:()=>Ql,ListImportsCommand:()=>ih,ListImportsInput$:()=>ma,ListImportsOutput$:()=>ha,ListTables$:()=>Yl,ListTablesCommand:()=>oh,ListTablesInput$:()=>ga,ListTablesOutput$:()=>fa,ListTagsOfResource$:()=>Jl,ListTagsOfResourceCommand:()=>ah,ListTagsOfResourceInput$:()=>ya,ListTagsOfResourceOutput$:()=>ba,LocalSecondaryIndex$:()=>Ea,LocalSecondaryIndexDescription$:()=>Sa,LocalSecondaryIndexInfo$:()=>Ta,MultiRegionConsistency:()=>Vg,OnDemandThroughput$:()=>Ia,OnDemandThroughputOverride$:()=>Da,ParameterizedStatement$:()=>Ca,PointInTimeRecoveryDescription$:()=>wa,PointInTimeRecoverySpecification$:()=>Aa,PointInTimeRecoveryStatus:()=>Bg,PointInTimeRecoveryUnavailableException:()=>ae,PointInTimeRecoveryUnavailableException$:()=>vs,PolicyNotFoundException:()=>Z,PolicyNotFoundException$:()=>Rs,Projection$:()=>xa,ProjectionType:()=>Ig,ProvisionedThroughput$:()=>va,ProvisionedThroughputDescription$:()=>Ra,ProvisionedThroughputExceededException:()=>F,ProvisionedThroughputExceededException$:()=>Ps,ProvisionedThroughputOverride$:()=>Pa,Put$:()=>$a,PutItem$:()=>Zl,PutItemCommand:()=>ch,PutItemInput$:()=>Oa,PutItemOutput$:()=>Na,PutRequest$:()=>La,PutResourcePolicy$:()=>Xl,PutResourcePolicyCommand:()=>uh,PutResourcePolicyInput$:()=>Ba,PutResourcePolicyOutput$:()=>_a,Query$:()=>ed,QueryCommand:()=>lh,QueryInput$:()=>ka,QueryOutput$:()=>Ua,Replica$:()=>Ma,ReplicaAlreadyExistsException:()=>de,ReplicaAlreadyExistsException$:()=>$s,ReplicaAutoScalingDescription$:()=>Ga,ReplicaAutoScalingUpdate$:()=>Fa,ReplicaDescription$:()=>ja,ReplicaGlobalSecondaryIndex$:()=>Wa,ReplicaGlobalSecondaryIndexAutoScalingDescription$:()=>qa,ReplicaGlobalSecondaryIndexAutoScalingUpdate$:()=>za,ReplicaGlobalSecondaryIndexDescription$:()=>Va,ReplicaGlobalSecondaryIndexSettingsDescription$:()=>Ka,ReplicaGlobalSecondaryIndexSettingsUpdate$:()=>Ha,ReplicaNotFoundException:()=>pe,ReplicaNotFoundException$:()=>Os,ReplicaSettingsDescription$:()=>Qa,ReplicaSettingsUpdate$:()=>Ya,ReplicaStatus:()=>jg,ReplicaUpdate$:()=>Za,ReplicatedWriteConflictException:()=>q,ReplicatedWriteConflictException$:()=>Ns,ReplicationGroupUpdate$:()=>Ja,RequestLimitExceeded:()=>U,RequestLimitExceeded$:()=>Ls,ResourceInUseException:()=>Y,ResourceInUseException$:()=>Bs,ResourceNotFoundException:()=>j,ResourceNotFoundException$:()=>_s,RestoreSummary$:()=>Xa,RestoreTableFromBackup$:()=>td,RestoreTableFromBackupCommand:()=>dh,RestoreTableFromBackupInput$:()=>ec,RestoreTableFromBackupOutput$:()=>tc,RestoreTableToPointInTime$:()=>nd,RestoreTableToPointInTimeCommand:()=>ph,RestoreTableToPointInTimeInput$:()=>nc,RestoreTableToPointInTimeOutput$:()=>rc,ReturnConsumedCapacity:()=>vg,ReturnItemCollectionMetrics:()=>$g,ReturnValue:()=>Kg,ReturnValuesOnConditionCheckFailure:()=>Rg,S3BucketSource$:()=>sc,S3SseAlgorithm:()=>Zg,SSEDescription$:()=>uc,SSESpecification$:()=>lc,SSEStatus:()=>Cg,SSEType:()=>Dg,ScalarAttributeType:()=>yg,Scan$:()=>rd,ScanCommand:()=>mh,ScanInput$:()=>ic,ScanOutput$:()=>oc,Select:()=>rf,SourceTableDetails$:()=>ac,SourceTableFeatureDetails$:()=>cc,StreamSpecification$:()=>dc,StreamViewType:()=>wg,TableAlreadyExistsException:()=>ue,TableAlreadyExistsException$:()=>ks,TableAutoScalingDescription$:()=>pc,TableClass:()=>Wg,TableClassSummary$:()=>mc,TableCreationParameters$:()=>hc,TableDescription$:()=>gc,TableInUseException:()=>K,TableInUseException$:()=>Us,TableNotFoundException:()=>H,TableNotFoundException$:()=>Ms,TableStatus:()=>qg,TableWarmThroughputDescription$:()=>fc,Tag$:()=>yc,TagResource$:()=>sd,TagResourceCommand:()=>hh,TagResourceInput$:()=>bc,ThrottlingException:()=>M,ThrottlingException$:()=>Gs,ThrottlingReason$:()=>Ec,TimeToLiveDescription$:()=>Sc,TimeToLiveSpecification$:()=>Tc,TimeToLiveStatus:()=>Ag,TransactGetItem$:()=>Ic,TransactGetItems$:()=>id,TransactGetItemsCommand:()=>gh,TransactGetItemsInput$:()=>Dc,TransactGetItemsOutput$:()=>Cc,TransactWriteItem$:()=>wc,TransactWriteItems$:()=>od,TransactWriteItemsCommand:()=>fh,TransactWriteItemsInput$:()=>Ac,TransactWriteItemsOutput$:()=>xc,TransactionCanceledException:()=>ge,TransactionCanceledException$:()=>Fs,TransactionConflictException:()=>J,TransactionConflictException$:()=>js,TransactionInProgressException:()=>se,TransactionInProgressException$:()=>Ws,UntagResource$:()=>ad,UntagResourceCommand:()=>yh,UntagResourceInput$:()=>vc,Update$:()=>Rc,UpdateContinuousBackups$:()=>cd,UpdateContinuousBackupsCommand:()=>bh,UpdateContinuousBackupsInput$:()=>Pc,UpdateContinuousBackupsOutput$:()=>$c,UpdateContributorInsights$:()=>ud,UpdateContributorInsightsCommand:()=>Eh,UpdateContributorInsightsInput$:()=>Oc,UpdateContributorInsightsOutput$:()=>Nc,UpdateGlobalSecondaryIndexAction$:()=>Lc,UpdateGlobalTable$:()=>ld,UpdateGlobalTableCommand:()=>Sh,UpdateGlobalTableInput$:()=>Bc,UpdateGlobalTableOutput$:()=>_c,UpdateGlobalTableSettings$:()=>dd,UpdateGlobalTableSettingsCommand:()=>Th,UpdateGlobalTableSettingsInput$:()=>kc,UpdateGlobalTableSettingsOutput$:()=>Uc,UpdateItem$:()=>pd,UpdateItemCommand:()=>Ih,UpdateItemInput$:()=>Mc,UpdateItemOutput$:()=>Gc,UpdateKinesisStreamingConfiguration$:()=>Fc,UpdateKinesisStreamingDestination$:()=>md,UpdateKinesisStreamingDestinationCommand:()=>Dh,UpdateKinesisStreamingDestinationInput$:()=>jc,UpdateKinesisStreamingDestinationOutput$:()=>Wc,UpdateReplicationGroupMemberAction$:()=>qc,UpdateTable$:()=>hd,UpdateTableCommand:()=>Ch,UpdateTableInput$:()=>zc,UpdateTableOutput$:()=>Vc,UpdateTableReplicaAutoScaling$:()=>gd,UpdateTableReplicaAutoScalingCommand:()=>wh,UpdateTableReplicaAutoScalingInput$:()=>Kc,UpdateTableReplicaAutoScalingOutput$:()=>Hc,UpdateTimeToLive$:()=>fd,UpdateTimeToLiveCommand:()=>Ah,UpdateTimeToLiveInput$:()=>Qc,UpdateTimeToLiveOutput$:()=>Yc,WarmThroughput$:()=>Jc,WitnessStatus:()=>zg,WriteRequest$:()=>Zc,__Client:()=>C.K,errorTypeRegistries:()=>qs,paginateListContributorInsights:()=>Ph,paginateListExports:()=>$h,paginateListImports:()=>Oh,paginateListTables:()=>Nh,paginateQuery:()=>Lh,paginateScan:()=>Bh,waitForContributorInsightsEnabled:()=>Hh,waitForExportCompleted:()=>Jh,waitForImportCompleted:()=>eg,waitForKinesisStreamingDestinationActive:()=>rg,waitForTableExists:()=>og,waitForTableNotExists:()=>ug,waitUntilContributorInsightsEnabled:()=>Qh,waitUntilExportCompleted:()=>Zh,waitUntilImportCompleted:()=>tg,waitUntilKinesisStreamingDestinationActive:()=>sg,waitUntilTableExists:()=>ag,waitUntilTableNotExists:()=>lg});var r=n(81974);const s="preferred",i=["disabled","preferred","required"];function o(e){return i.includes(e)}var a=n(64238),c=n.n(a);class u{cache;constructor(e){this.cache=new(c())(e)}getEndpoint(e){const t=this.get(e);if(!t||0===t.length)return;const n=t.map(e=>e.Address);return n[Math.floor(Math.random()*n.length)]}get(e){if(!this.has(e))return;const t=this.cache.get(e);if(!t)return;const n=Date.now(),r=t.filter(e=>n<e.Expires);if(0!==r.length)return r;this.delete(e)}set(e,t){const n=Date.now();this.cache.set(e,t.map(({Address:e,CachePeriodInMinutes:t})=>({Address:e,Expires:n+60*t*1e3})))}delete(e){this.cache.set(e,[])}has(e){if(!this.cache.has(e))return!1;const t=this.cache.peek(e);return!!t&&t.length>0}clear(){this.cache.clear()}}var l=n(97040),d=n(74534),p=n(70775),m=n(5572),h=n(61019),g=n(94615),f=n(45326),y=n(9575),b=n(68249),E=n(75279),S=n(10860),T=n(39412),I=n(72084),D=n(10773),C=n(9942),w=n(23870),A=n(45547);const x=async(e,t,n)=>({operation:(0,A.u)(t).operation,region:await(0,r.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),v=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t};var R=n(66686),P=n(22869);const $={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}};var O=n(51453),N=n(6723);class L extends N.T{constructor(e){super(e),Object.setPrototypeOf(this,L.prototype)}}class B extends L{name="BackupInUseException";$fault="client";constructor(e){super({name:"BackupInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,B.prototype)}}class _ extends L{name="BackupNotFoundException";$fault="client";constructor(e){super({name:"BackupNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,_.prototype)}}class k extends L{name="InternalServerError";$fault="server";constructor(e){super({name:"InternalServerError",$fault:"server",...e}),Object.setPrototypeOf(this,k.prototype)}}class U extends L{name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,U.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class M extends L{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,M.prototype),this.throttlingReasons=e.throttlingReasons}}class G extends L{name="InvalidEndpointException";$fault="client";Message;constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e}),Object.setPrototypeOf(this,G.prototype),this.Message=e.Message}}class F extends L{name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,F.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class j extends L{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,j.prototype)}}class W extends L{name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,W.prototype)}}class q extends L{name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(e){super({name:"ReplicatedWriteConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,q.prototype)}}class z extends L{name="ContinuousBackupsUnavailableException";$fault="client";constructor(e){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,z.prototype)}}class V extends L{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,V.prototype)}}class K extends L{name="TableInUseException";$fault="client";constructor(e){super({name:"TableInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,K.prototype)}}class H extends L{name="TableNotFoundException";$fault="client";constructor(e){super({name:"TableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,H.prototype)}}class Q extends L{name="GlobalTableAlreadyExistsException";$fault="client";constructor(e){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,Q.prototype)}}class Y extends L{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,Y.prototype)}}class J extends L{name="TransactionConflictException";$fault="client";constructor(e){super({name:"TransactionConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,J.prototype)}}class Z extends L{name="PolicyNotFoundException";$fault="client";constructor(e){super({name:"PolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Z.prototype)}}class X extends L{name="ExportNotFoundException";$fault="client";constructor(e){super({name:"ExportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,X.prototype)}}class ee extends L{name="GlobalTableNotFoundException";$fault="client";constructor(e){super({name:"GlobalTableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,ee.prototype)}}class te extends L{name="ImportNotFoundException";$fault="client";constructor(e){super({name:"ImportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,te.prototype)}}class ne extends L{name="DuplicateItemException";$fault="client";constructor(e){super({name:"DuplicateItemException",$fault:"client",...e}),Object.setPrototypeOf(this,ne.prototype)}}class re extends L{name="IdempotentParameterMismatchException";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatchException",$fault:"client",...e}),Object.setPrototypeOf(this,re.prototype),this.Message=e.Message}}class se extends L{name="TransactionInProgressException";$fault="client";Message;constructor(e){super({name:"TransactionInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,se.prototype),this.Message=e.Message}}class ie extends L{name="ExportConflictException";$fault="client";constructor(e){super({name:"ExportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ie.prototype)}}class oe extends L{name="InvalidExportTimeException";$fault="client";constructor(e){super({name:"InvalidExportTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,oe.prototype)}}class ae extends L{name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(e){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,ae.prototype)}}class ce extends L{name="ImportConflictException";$fault="client";constructor(e){super({name:"ImportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ce.prototype)}}class ue extends L{name="TableAlreadyExistsException";$fault="client";constructor(e){super({name:"TableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,ue.prototype)}}class le extends L{name="InvalidRestoreTimeException";$fault="client";constructor(e){super({name:"InvalidRestoreTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,le.prototype)}}class de extends L{name="ReplicaAlreadyExistsException";$fault="client";constructor(e){super({name:"ReplicaAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,de.prototype)}}class pe extends L{name="ReplicaNotFoundException";$fault="client";constructor(e){super({name:"ReplicaNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,pe.prototype)}}class me extends L{name="IndexNotFoundException";$fault="client";constructor(e){super({name:"IndexNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,me.prototype)}}class he extends L{name="ConditionalCheckFailedException";$fault="client";Item;constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,he.prototype),this.Item=e.Item}}class ge extends L{name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(e){super({name:"TransactionCanceledException",$fault:"client",...e}),Object.setPrototypeOf(this,ge.prototype),this.Message=e.Message,this.CancellationReasons=e.CancellationReasons}}const fe="ApproximateCreationDateTimePrecision",ye="AttributeDefinitions",be="AttributeName",Ee="ArchivalSummary",Se="AutoScalingDisabled",Te="AutoScalingRoleArn",Ie="AttributesToGet",De="AttributeUpdates",Ce="AttributeValueList",we="Attributes",Ae="BackupArn",xe="BackupCreationDateTime",ve="BackupDescription",Re="BackupDetails",Pe="BackupExpiryDateTime",$e="BillingMode",Oe="BillingModeOverride",Ne="BillingModeSummary",Le="BackupName",Be="BackupStatus",_e="BackupSizeBytes",ke="BackupSummaries",Ue="BackupType",Me="Code",Ge="ContinuousBackupsDescription",Fe="ConsumedCapacity",je="ConditionCheck",We="CreationDateTime",qe="ConditionExpression",ze="ContributorInsightsMode",Ve="ContributorInsightsStatus",Ke="ContributorInsightsSummaries",He="ComparisonOperator",Qe="ConditionalOperator",Ye="ClientRequestToken",Je="ConsistentRead",Ze="ClientToken",Xe="CapacityUnits",et="CloudWatchLogGroupArn",tt="Count",nt="Create",rt="DeletionProtectionEnabled",st="DeleteRequest",it="DestinationStatus",ot="DisableScaleIn",at="Delete",ct="ExportArn",ut="ExpressionAttributeNames",lt="ExpressionAttributeValues",dt="ExportDescription",pt="ExportFormat",mt="EnableKinesisStreamingConfiguration",ht="ExpectedRevisionId",gt="ExportStatus",ft="ExclusiveStartKey",yt="ExportSummaries",bt="EndTime",Et="ExportTime",St="ExportType",Tt="Endpoints",It="Enabled",Dt="Expected",Ct="FailureCode",wt="FailureException",At="FilterExpression",xt="FailureMessage",vt="GlobalSecondaryIndexes",Rt="GlobalSecondaryIndexOverride",Pt="GlobalSecondaryIndexUpdates",$t="GlobalTableDescription",Ot="GlobalTableGlobalSecondaryIndexSettingsUpdate",Nt="GlobalTableName",Lt="GlobalTableSettingsReplicationMode",Bt="Item",_t="ImportArn",kt="IndexArn",Ut="ItemCount",Mt="ItemCollectionMetrics",Gt="InputCompressionType",Ft="IncrementalExportSpecification",jt="InputFormat",Wt="InputFormatOptions",qt="IndexName",zt="IndexStatus",Vt="IndexSizeBytes",Kt="ImportSummaryList",Ht="ImportStatus",Qt="ImportTableDescription",Yt="Items",Jt="Key",Zt="KeyConditions",Xt="KinesisDataStreamDestinations",en="KMSMasterKeyId",tn="KeySchema",nn="Limit",rn="LastEvaluatedKey",sn="LocalSecondaryIndexes",on="LocalSecondaryIndexOverride",an="LastUpdateDateTime",cn="Message",un="MaxResults",ln="MultiRegionConsistency",dn="MaxReadRequestUnits",pn="MinimumUnits",mn="MaximumUnits",hn="NextToken",gn="OnDemandThroughput",fn="OnDemandThroughputOverride",yn="Parameters",bn="ProjectionExpression",En="PointInTimeRecoveryDescription",Sn="PointInTimeRecoverySpecification",Tn="PolicyName",In="PutRequest",Dn="ProvisionedReadCapacityAutoScalingSettings",Cn="ProvisionedReadCapacityUnits",wn="ProvisionedThroughput",An="ProvisionedThroughputOverride",xn="ProvisionedWriteCapacityAutoScalingSettings",vn="ProvisionedWriteCapacityAutoScalingUpdate",Rn="ProvisionedWriteCapacityUnits",Pn="Policy",$n="Projection",On="Responses",Nn="ResourceArn",Ln="ReturnConsumedCapacity",Bn="ReadCapacityUnits",_n="RestoreDateTime",kn="ReplicationGroup",Un="ReplicaGlobalSecondaryIndexSettingsUpdate",Mn="RequestItems",Gn="ReturnItemCollectionMetrics",Fn="RevisionId",jn="RegionName",Wn="RecoveryPeriodInDays",qn="ReplicaProvisionedReadCapacityAutoScalingSettings",zn="ReplicaProvisionedReadCapacityUnits",Vn="ReplicaProvisionedWriteCapacityAutoScalingSettings",Kn="ReplicaSettings",Hn="ReplicaSettingsUpdate",Qn="ReplicaStatus",Yn="RestoreSummary",Jn="ReplicaTableClassSummary",Zn="ReadUnitsPerSecond",Xn="ReplicaUpdates",er="ReturnValues",tr="ReturnValuesOnConditionCheckFailure",nr="Replicas",rr="StreamArn",sr="S3Bucket",ir="S3BucketOwner",or="S3BucketSource",ar="ScannedCount",cr="ScaleInCooldown",ur="ScaleOutCooldown",lr="S3Prefix",dr="StreamSpecification",pr="S3SseAlgorithm",mr="SSEDescription",hr="SSESpecification",gr="SSESpecificationOverride",fr="SSEType",yr="S3SseKmsKeyId",br="StartTime",Er="SourceTableArn",Sr="SourceTableDetails",Tr="SourceTableFeatureDetails",Ir="Select",Dr="Statement",Cr="Status",wr="Table",Ar="TableArn",xr="TableAutoScalingDescription",vr="TableClass",Rr="TableClassOverride",Pr="TableCreationParameters",$r="TableClassSummary",Or="TableDescription",Nr="TableId",Lr="TransactItems",Br="TableName",_r="ThrottlingReasons",kr="TableSizeBytes",Ur="TableStatus",Mr="TimeToLiveDescription",Gr="TimeToLiveSpecification",Fr="TargetTableName",jr="TargetTrackingScalingPolicyConfiguration",Wr="TargetValue",qr="Tags",zr="Update",Vr="UpdateExpression",Kr="UpdateKinesisStreamingConfiguration",Hr="Value",Qr="WriteCapacityUnits",Yr="WarmThroughput",Jr="WriteUnitsPerSecond",Zr="awsQueryError",Xr="client",es="error",ts="httpError",ns="httpHeader",rs="message",ss="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb",is="com.amazonaws.dynamodb",os=O.O.for(ss);var as=[-3,ss,"DynamoDBServiceException",0,[],[]];os.registerError(as,L);const cs=O.O.for(is);var us=[-3,is,"BackupInUseException",{[es]:Xr},[rs],[0]];cs.registerError(us,B);var ls=[-3,is,"BackupNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(ls,_);var ds=[-3,is,"ConditionalCheckFailedException",{[es]:Xr},[rs,Bt],[0,()=>Zu]];cs.registerError(ds,he);var ps=[-3,is,"ContinuousBackupsUnavailableException",{[es]:Xr},[rs],[0]];cs.registerError(ps,z);var ms=[-3,is,"DuplicateItemException",{[es]:Xr},[rs],[0]];cs.registerError(ms,ne);var hs=[-3,is,"ExportConflictException",{[es]:Xr},[rs],[0]];cs.registerError(hs,ie);var gs=[-3,is,"ExportNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(gs,X);var fs=[-3,is,"GlobalTableAlreadyExistsException",{[es]:Xr},[rs],[0]];cs.registerError(fs,Q);var ys=[-3,is,"GlobalTableNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(ys,ee);var bs=[-3,is,"IdempotentParameterMismatchException",{[es]:Xr},[cn],[0]];cs.registerError(bs,re);var Es=[-3,is,"ImportConflictException",{[es]:Xr},[rs],[0]];cs.registerError(Es,ce);var Ss=[-3,is,"ImportNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(Ss,te);var Ts=[-3,is,"IndexNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(Ts,me);var Is=[-3,is,"InternalServerError",{[es]:"server"},[rs],[0]];cs.registerError(Is,k);var Ds=[-3,is,"InvalidEndpointException",{[es]:Xr,[ts]:421},[cn],[0]];cs.registerError(Ds,G);var Cs=[-3,is,"InvalidExportTimeException",{[es]:Xr},[rs],[0]];cs.registerError(Cs,oe);var ws=[-3,is,"InvalidRestoreTimeException",{[es]:Xr},[rs],[0]];cs.registerError(ws,le);var As=[-3,is,"ItemCollectionSizeLimitExceededException",{[es]:Xr},[rs],[0]];cs.registerError(As,W);var xs=[-3,is,"LimitExceededException",{[es]:Xr},[rs],[0]];cs.registerError(xs,V);var vs=[-3,is,"PointInTimeRecoveryUnavailableException",{[es]:Xr},[rs],[0]];cs.registerError(vs,ae);var Rs=[-3,is,"PolicyNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(Rs,Z);var Ps=[-3,is,"ProvisionedThroughputExceededException",{[es]:Xr},[rs,_r],[0,()=>Hu]];cs.registerError(Ps,F);var $s=[-3,is,"ReplicaAlreadyExistsException",{[es]:Xr},[rs],[0]];cs.registerError($s,de);var Os=[-3,is,"ReplicaNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(Os,pe);var Ns=[-3,is,"ReplicatedWriteConflictException",{[es]:Xr},[rs],[0]];cs.registerError(Ns,q);var Ls=[-3,is,"RequestLimitExceeded",{[es]:Xr},[rs,_r],[0,()=>Hu]];cs.registerError(Ls,U);var Bs=[-3,is,"ResourceInUseException",{[es]:Xr},[rs],[0]];cs.registerError(Bs,Y);var _s=[-3,is,"ResourceNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(_s,j);var ks=[-3,is,"TableAlreadyExistsException",{[es]:Xr},[rs],[0]];cs.registerError(ks,ue);var Us=[-3,is,"TableInUseException",{[es]:Xr},[rs],[0]];cs.registerError(Us,K);var Ms=[-3,is,"TableNotFoundException",{[es]:Xr},[rs],[0]];cs.registerError(Ms,H);var Gs=[-3,is,"ThrottlingException",{[Zr]:["Throttling",400],[es]:Xr,[ts]:400},[rs,"throttlingReasons"],[0,()=>Hu]];cs.registerError(Gs,M);var Fs=[-3,is,"TransactionCanceledException",{[es]:Xr},[cn,"CancellationReasons"],[0,()=>su]];cs.registerError(Fs,ge);var js=[-3,is,"TransactionConflictException",{[es]:Xr},[rs],[0]];cs.registerError(js,J);var Ws=[-3,is,"TransactionInProgressException",{[es]:Xr},[cn],[0]];cs.registerError(Ws,se);const qs=[os,cs];var zs=[3,is,Ee,0,["ArchivalDateTime","ArchivalReason","ArchivalBackupArn"],[4,0,0]],Vs=[3,is,"AttributeDefinition",0,[be,"AttributeType"],[0,0],2],Ks=[3,is,"AttributeValueUpdate",0,[Hr,"Action"],[()=>ml,0]],Hs=[3,is,"AutoScalingPolicyDescription",0,[Tn,jr],[0,()=>Zs]],Qs=[3,is,"AutoScalingPolicyUpdate",0,[jr,Tn],[()=>Xs,0],1],Ys=[3,is,"AutoScalingSettingsDescription",0,[pn,mn,Se,Te,"ScalingPolicies"],[1,1,2,0,()=>nu]],Js=[3,is,"AutoScalingSettingsUpdate",0,[pn,mn,Se,Te,"ScalingPolicyUpdate"],[1,1,2,0,()=>Qs]],Zs=[3,is,"AutoScalingTargetTrackingScalingPolicyConfigurationDescription",0,[Wr,ot,cr,ur],[1,2,1,1],1],Xs=[3,is,"AutoScalingTargetTrackingScalingPolicyConfigurationUpdate",0,[Wr,ot,cr,ur],[1,2,1,1],1],ei=[3,is,ve,0,[Re,Sr,Tr],[()=>ti,()=>ac,()=>cc]],ti=[3,is,Re,0,[Ae,Le,Be,Ue,xe,_e,Pe],[0,0,0,0,4,1,4],5],ni=[3,is,"BackupSummary",0,[Br,Nr,Ar,Ae,Le,xe,Pe,Be,Ue,_e],[0,0,0,0,0,4,4,0,0,1]],ri=[3,is,"BatchExecuteStatementInput",0,["Statements",Ln],[()=>Pu,0],1],si=[3,is,"BatchExecuteStatementOutput",0,[On,Fe],[()=>$u,()=>iu]],ii=[3,is,"BatchGetItemInput",0,[Mn,Ln],[()=>el,0],1],oi=[3,is,"BatchGetItemOutput",0,[On,"UnprocessedKeys",Fe],[()=>tl,()=>el,()=>iu]],ai=[3,is,"BatchStatementError",0,[Me,cn,Bt],[0,0,()=>Zu]],ci=[3,is,"BatchStatementRequest",0,[Dr,yn,Je,tr],[0,()=>Ou,2,0],1],ui=[3,is,"BatchStatementResponse",0,["Error",Br,Bt],[()=>ai,0,()=>Zu]],li=[3,is,"BatchWriteItemInput",0,[Mn,Ln,Gn],[()=>nl,0,0],1],di=[3,is,"BatchWriteItemOutput",0,["UnprocessedItems",Mt,Fe],[()=>nl,()=>al,()=>iu]],pi=[3,is,Ne,0,[$e,"LastUpdateToPayPerRequestDateTime"],[0,4]],mi=[3,is,"CancellationReason",0,[Bt,Me,cn],[()=>Zu,0,0]],hi=[3,is,"Capacity",0,[Bn,Qr,Xe],[1,1,1]],gi=[3,is,"Condition",0,[He,Ce],[0,()=>tu],1],fi=[3,is,je,0,[Jt,Br,qe,ut,lt,tr],[()=>cl,0,0,128,()=>sl,0],3],yi=[3,is,Fe,0,[Br,Xe,Bn,Qr,wr,sn,vt],[0,1,1,1,()=>hi,()=>pl,()=>pl]],bi=[3,is,Ge,0,["ContinuousBackupsStatus",En],[0,()=>wa],1],Ei=[3,is,"ContributorInsightsSummary",0,[Br,qt,Ve,ze],[0,0,0,0]],Si=[3,is,"CreateBackupInput",0,[Br,Le],[0,0],2],Ti=[3,is,"CreateBackupOutput",0,[Re],[()=>ti]],Ii=[3,is,"CreateGlobalSecondaryIndexAction",0,[qt,tn,$n,wn,gn,Yr],[0,()=>Du,()=>xa,()=>va,()=>Ia,()=>Jc],3],Di=[3,is,"CreateGlobalTableInput",0,[Nt,kn],[0,()=>ju],2],Ci=[3,is,"CreateGlobalTableOutput",0,[$t],[()=>jo]],wi=[3,is,"CreateGlobalTableWitnessGroupMemberAction",0,[jn],[0],1],Ai=[3,is,"CreateReplicaAction",0,[jn],[0],1],xi=[3,is,"CreateReplicationGroupMemberAction",0,[jn,en,An,fn,vt,Rr],[0,0,()=>Pa,()=>Da,()=>Mu,0],1],vi=[3,is,"CreateTableInput",0,[Br,ye,tn,sn,vt,$e,wn,dr,hr,qr,vr,rt,Yr,"ResourcePolicy",gn,"GlobalTableSourceArn",Lt],[0,()=>eu,()=>Du,()=>vu,()=>pu,0,()=>va,()=>dc,()=>lc,()=>Ku,0,2,()=>Jc,0,()=>Ia,0,0],1],Ri=[3,is,"CreateTableOutput",0,[Or],[()=>gc]],Pi=[3,is,"CsvOptions",0,["Delimiter","HeaderList"],[0,64]],$i=[3,is,at,0,[Jt,Br,qe,ut,lt,tr],[()=>cl,0,0,128,()=>sl,0],2],Oi=[3,is,"DeleteBackupInput",0,[Ae],[0],1],Ni=[3,is,"DeleteBackupOutput",0,[ve],[()=>ei]],Li=[3,is,"DeleteGlobalSecondaryIndexAction",0,[qt],[0],1],Bi=[3,is,"DeleteGlobalTableWitnessGroupMemberAction",0,[jn],[0],1],_i=[3,is,"DeleteItemInput",0,[Br,Jt,Dt,Qe,er,Ln,Gn,qe,ut,lt,tr],[0,()=>cl,()=>rl,0,0,0,0,0,128,()=>sl,0],2],ki=[3,is,"DeleteItemOutput",0,[we,Fe,Mt],[()=>Zu,()=>yi,()=>Zo]],Ui=[3,is,"DeleteReplicaAction",0,[jn],[0],1],Mi=[3,is,"DeleteReplicationGroupMemberAction",0,[jn],[0],1],Gi=[3,is,st,0,[Jt],[()=>cl],1],Fi=[3,is,"DeleteResourcePolicyInput",0,[Nn,ht],[0,0],1],ji=[3,is,"DeleteResourcePolicyOutput",0,[Fn],[0]],Wi=[3,is,"DeleteTableInput",0,[Br],[0],1],qi=[3,is,"DeleteTableOutput",0,[Or],[()=>gc]],zi=[3,is,"DescribeBackupInput",0,[Ae],[0],1],Vi=[3,is,"DescribeBackupOutput",0,[ve],[()=>ei]],Ki=[3,is,"DescribeContinuousBackupsInput",0,[Br],[0],1],Hi=[3,is,"DescribeContinuousBackupsOutput",0,[Ge],[()=>bi]],Qi=[3,is,"DescribeContributorInsightsInput",0,[Br,qt],[0,0],1],Yi=[3,is,"DescribeContributorInsightsOutput",0,[Br,qt,"ContributorInsightsRuleList",Ve,an,wt,ze],[0,0,64,0,4,()=>Ro,0]],Ji=[3,is,"DescribeEndpointsRequest",0,[],[]],Zi=[3,is,"DescribeEndpointsResponse",0,[Tt],[()=>au],1],Xi=[3,is,"DescribeExportInput",0,[ct],[0],1],eo=[3,is,"DescribeExportOutput",0,[dt],[()=>wo]],to=[3,is,"DescribeGlobalTableInput",0,[Nt],[0],1],no=[3,is,"DescribeGlobalTableOutput",0,[$t],[()=>jo]],ro=[3,is,"DescribeGlobalTableSettingsInput",0,[Nt],[0],1],so=[3,is,"DescribeGlobalTableSettingsOutput",0,[Nt,Kn],[0,()=>Wu]],io=[3,is,"DescribeImportInput",0,[_t],[0],1],oo=[3,is,"DescribeImportOutput",0,[Qt],[()=>Ko],1],ao=[3,is,"DescribeKinesisStreamingDestinationInput",0,[Br],[0],1],co=[3,is,"DescribeKinesisStreamingDestinationOutput",0,[Br,Xt],[0,()=>Cu]],uo=[3,is,"DescribeLimitsInput",0,[],[]],lo=[3,is,"DescribeLimitsOutput",0,["AccountMaxReadCapacityUnits","AccountMaxWriteCapacityUnits","TableMaxReadCapacityUnits","TableMaxWriteCapacityUnits"],[1,1,1,1]],po=[3,is,"DescribeTableInput",0,[Br],[0],1],mo=[3,is,"DescribeTableOutput",0,[wr],[()=>gc]],ho=[3,is,"DescribeTableReplicaAutoScalingInput",0,[Br],[0],1],go=[3,is,"DescribeTableReplicaAutoScalingOutput",0,[xr],[()=>pc]],fo=[3,is,"DescribeTimeToLiveInput",0,[Br],[0],1],yo=[3,is,"DescribeTimeToLiveOutput",0,[Mr],[()=>Sc]],bo=[3,is,mt,0,[fe],[0]],Eo=[3,is,"Endpoint",0,["Address","CachePeriodInMinutes"],[0,1],2],So=[3,is,"ExecuteStatementInput",0,[Dr,yn,Je,hn,Ln,nn,tr],[0,()=>Ou,2,0,0,1,0],1],To=[3,is,"ExecuteStatementOutput",0,[Yt,hn,Fe,rn],[()=>Su,0,()=>yi,()=>cl]],Io=[3,is,"ExecuteTransactionInput",0,["TransactStatements",Ye,Ln],[()=>Ru,[0,4],0],1],Do=[3,is,"ExecuteTransactionOutput",0,[On,Fe],[()=>Tu,()=>iu]],Co=[3,is,"ExpectedAttributeValue",0,[Hr,"Exists",He,Ce],[()=>ml,2,0,()=>tu]],wo=[3,is,dt,0,[ct,gt,br,bt,"ExportManifest",Ar,Nr,Et,Ze,sr,ir,lr,pr,yr,Ct,xt,pt,"BilledSizeBytes",Ut,St,Ft],[0,0,4,4,0,0,0,4,0,0,0,0,0,0,0,0,0,1,1,0,()=>Yo]],Ao=[3,is,"ExportSummary",0,[ct,gt,St],[0,0,0]],xo=[3,is,"ExportTableToPointInTimeInput",0,[Ar,sr,Et,Ze,ir,lr,pr,yr,pt,St,Ft],[0,0,4,[0,4],0,0,0,0,0,0,()=>Yo],2],vo=[3,is,"ExportTableToPointInTimeOutput",0,[dt],[()=>wo]],Ro=[3,is,wt,0,["ExceptionName","ExceptionDescription"],[0,0]],Po=[3,is,"Get",0,[Jt,Br,bn,ut],[()=>cl,0,0,128],2],$o=[3,is,"GetItemInput",0,[Br,Jt,Ie,Je,Ln,bn,ut],[0,()=>cl,64,2,0,0,128],2],Oo=[3,is,"GetItemOutput",0,[Bt,Fe],[()=>Zu,()=>yi]],No=[3,is,"GetResourcePolicyInput",0,[Nn],[0],1],Lo=[3,is,"GetResourcePolicyOutput",0,[Pn,Fn],[0,0]],Bo=[3,is,"GlobalSecondaryIndex",0,[qt,tn,$n,wn,gn,Yr],[0,()=>Du,()=>xa,()=>va,()=>Ia,()=>Jc],3],_o=[3,is,"GlobalSecondaryIndexAutoScalingUpdate",0,[qt,vn],[0,()=>Js]],ko=[3,is,"GlobalSecondaryIndexDescription",0,[qt,tn,$n,zt,"Backfilling",wn,Vt,Ut,kt,gn,Yr],[0,()=>Du,()=>xa,0,2,()=>Ra,1,1,0,()=>Ia,()=>Go]],Uo=[3,is,"GlobalSecondaryIndexInfo",0,[qt,tn,$n,wn,gn],[0,()=>Du,()=>xa,()=>va,()=>Ia]],Mo=[3,is,"GlobalSecondaryIndexUpdate",0,[zr,nt,at],[()=>Lc,()=>Ii,()=>Li]],Go=[3,is,"GlobalSecondaryIndexWarmThroughputDescription",0,[Zn,Jr,Cr],[1,1,0]],Fo=[3,is,"GlobalTable",0,[Nt,kn],[0,()=>ju]],jo=[3,is,$t,0,[kn,"GlobalTableArn",We,"GlobalTableStatus",Nt],[()=>Bu,0,4,0,0]],Wo=[3,is,Ot,0,[qt,Rn,"ProvisionedWriteCapacityAutoScalingSettingsUpdate"],[0,1,()=>Js],1],qo=[3,is,"GlobalTableWitnessDescription",0,[jn,"WitnessStatus"],[0,0]],zo=[3,is,"GlobalTableWitnessGroupUpdate",0,[nt,at],[()=>wi,()=>Bi]],Vo=[3,is,"ImportSummary",0,[_t,Ht,Ar,or,et,jt,br,bt],[0,0,0,()=>sc,0,0,4,4]],Ko=[3,is,Qt,0,[_t,Ht,Ar,Nr,Ze,or,"ErrorCount",et,jt,Wt,Gt,Pr,br,bt,"ProcessedSizeBytes","ProcessedItemCount","ImportedItemCount",Ct,xt],[0,0,0,0,0,()=>sc,1,0,0,()=>Jo,0,()=>hc,4,4,1,1,1,0,0]],Ho=[3,is,"ImportTableInput",0,[or,jt,Pr,Ze,Wt,Gt],[()=>sc,0,()=>hc,[0,4],()=>Jo,0],3],Qo=[3,is,"ImportTableOutput",0,[Qt],[()=>Ko],1],Yo=[3,is,Ft,0,["ExportFromTime","ExportToTime","ExportViewType"],[4,4,0]],Jo=[3,is,Wt,0,["Csv"],[()=>Pi]],Zo=[3,is,Mt,0,["ItemCollectionKey","SizeEstimateRangeGB"],[()=>ol,65]],Xo=[3,is,"ItemResponse",0,[Bt],[()=>Zu]],ea=[3,is,"KeysAndAttributes",0,["Keys",Ie,Je,bn,ut],[()=>Iu,64,2,0,128],1],ta=[3,is,"KeySchemaElement",0,[be,"KeyType"],[0,0],2],na=[3,is,"KinesisDataStreamDestination",0,[rr,it,"DestinationStatusDescription",fe],[0,0,0,0]],ra=[3,is,"KinesisStreamingDestinationInput",0,[Br,rr,mt],[0,0,()=>bo],2],sa=[3,is,"KinesisStreamingDestinationOutput",0,[Br,rr,it,mt],[0,0,0,()=>bo]],ia=[3,is,"ListBackupsInput",0,[Br,nn,"TimeRangeLowerBound","TimeRangeUpperBound","ExclusiveStartBackupArn",Ue],[0,1,4,4,0,0]],oa=[3,is,"ListBackupsOutput",0,[ke,"LastEvaluatedBackupArn"],[()=>ru,0]],aa=[3,is,"ListContributorInsightsInput",0,[Br,hn,un],[0,0,1]],ca=[3,is,"ListContributorInsightsOutput",0,[Ke,hn],[()=>ou,0]],ua=[3,is,"ListExportsInput",0,[Ar,un,hn],[0,1,0]],la=[3,is,"ListExportsOutput",0,[yt,hn],[()=>cu,0]],da=[3,is,"ListGlobalTablesInput",0,["ExclusiveStartGlobalTableName",nn,jn],[0,1,0]],pa=[3,is,"ListGlobalTablesOutput",0,["GlobalTables","LastEvaluatedGlobalTableName"],[()=>gu,0]],ma=[3,is,"ListImportsInput",0,[Ar,"PageSize",hn],[0,1,0]],ha=[3,is,"ListImportsOutput",0,[Kt,hn],[()=>bu,0]],ga=[3,is,"ListTablesInput",0,["ExclusiveStartTableName",nn],[0,1]],fa=[3,is,"ListTablesOutput",0,["TableNames","LastEvaluatedTableName"],[64,0]],ya=[3,is,"ListTagsOfResourceInput",0,[Nn,hn],[0,0],1],ba=[3,is,"ListTagsOfResourceOutput",0,[qr,hn],[()=>Ku,0]],Ea=[3,is,"LocalSecondaryIndex",0,[qt,tn,$n],[0,()=>Du,()=>xa],3],Sa=[3,is,"LocalSecondaryIndexDescription",0,[qt,tn,$n,Vt,Ut,kt],[0,()=>Du,()=>xa,1,1,0]],Ta=[3,is,"LocalSecondaryIndexInfo",0,[qt,tn,$n],[0,()=>Du,()=>xa]],Ia=[3,is,gn,0,[dn,"MaxWriteRequestUnits"],[1,1]],Da=[3,is,fn,0,[dn],[1]],Ca=[3,is,"ParameterizedStatement",0,[Dr,yn,tr],[0,()=>Ou,0],1],wa=[3,is,En,0,["PointInTimeRecoveryStatus",Wn,"EarliestRestorableDateTime","LatestRestorableDateTime"],[0,1,4,4]],Aa=[3,is,Sn,0,["PointInTimeRecoveryEnabled",Wn],[2,1],1],xa=[3,is,$n,0,["ProjectionType","NonKeyAttributes"],[0,64]],va=[3,is,wn,0,[Bn,Qr],[1,1],2],Ra=[3,is,"ProvisionedThroughputDescription",0,["LastIncreaseDateTime","LastDecreaseDateTime","NumberOfDecreasesToday",Bn,Qr],[4,4,1,1,1]],Pa=[3,is,An,0,[Bn],[1]],$a=[3,is,"Put",0,[Bt,Br,qe,ut,lt,tr],[()=>dl,0,0,128,()=>sl,0],2],Oa=[3,is,"PutItemInput",0,[Br,Bt,Dt,er,Ln,Gn,Qe,qe,ut,lt,tr],[0,()=>dl,()=>rl,0,0,0,0,0,128,()=>sl,0],2],Na=[3,is,"PutItemOutput",0,[we,Fe,Mt],[()=>Zu,()=>yi,()=>Zo]],La=[3,is,In,0,[Bt],[()=>dl],1],Ba=[3,is,"PutResourcePolicyInput",0,[Nn,Pn,ht,"ConfirmRemoveSelfResourceAccess"],[0,0,0,[2,{[ns]:"x-amz-confirm-remove-self-resource-access"}]],2],_a=[3,is,"PutResourcePolicyOutput",0,[Fn],[0]],ka=[3,is,"QueryInput",0,[Br,qt,Ir,Ie,nn,Je,Zt,"QueryFilter",Qe,"ScanIndexForward",ft,Ln,bn,At,"KeyConditionExpression",ut,lt],[0,0,0,64,1,2,()=>ul,()=>il,0,2,()=>cl,0,0,0,0,128,()=>sl],1],Ua=[3,is,"QueryOutput",0,[Yt,tt,ar,rn,Fe],[()=>Su,1,1,()=>cl,()=>yi]],Ma=[3,is,"Replica",0,[jn],[0]],Ga=[3,is,"ReplicaAutoScalingDescription",0,[jn,vt,qn,Vn,Qn],[0,()=>_u,()=>Ys,()=>Ys,0]],Fa=[3,is,"ReplicaAutoScalingUpdate",0,[jn,"ReplicaGlobalSecondaryIndexUpdates","ReplicaProvisionedReadCapacityAutoScalingUpdate"],[0,()=>ku,()=>Js],1],ja=[3,is,"ReplicaDescription",0,[jn,Qn,"ReplicaStatusDescription","ReplicaStatusPercentProgress",en,An,fn,Yr,vt,"ReplicaInaccessibleDateTime",Jn,Lt],[0,0,0,0,0,()=>Pa,()=>Da,()=>fc,()=>Uu,4,()=>mc,0]],Wa=[3,is,"ReplicaGlobalSecondaryIndex",0,[qt,An,fn],[0,()=>Pa,()=>Da],1],qa=[3,is,"ReplicaGlobalSecondaryIndexAutoScalingDescription",0,[qt,zt,Dn,xn],[0,0,()=>Ys,()=>Ys]],za=[3,is,"ReplicaGlobalSecondaryIndexAutoScalingUpdate",0,[qt,"ProvisionedReadCapacityAutoScalingUpdate"],[0,()=>Js]],Va=[3,is,"ReplicaGlobalSecondaryIndexDescription",0,[qt,An,fn,Yr],[0,()=>Pa,()=>Da,()=>Go]],Ka=[3,is,"ReplicaGlobalSecondaryIndexSettingsDescription",0,[qt,zt,Cn,Dn,Rn,xn],[0,0,1,()=>Ys,1,()=>Ys],1],Ha=[3,is,Un,0,[qt,Cn,"ProvisionedReadCapacityAutoScalingSettingsUpdate"],[0,1,()=>Js],1],Qa=[3,is,"ReplicaSettingsDescription",0,[jn,Qn,"ReplicaBillingModeSummary",zn,qn,"ReplicaProvisionedWriteCapacityUnits",Vn,"ReplicaGlobalSecondaryIndexSettings",Jn],[0,0,()=>pi,1,()=>Ys,1,()=>Ys,()=>Gu,()=>mc],1],Ya=[3,is,Hn,0,[jn,zn,"ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate",Un,"ReplicaTableClass"],[0,1,()=>Js,()=>Fu,0],1],Ja=[3,is,"ReplicationGroupUpdate",0,[nt,zr,at],[()=>xi,()=>qc,()=>Mi]],Za=[3,is,"ReplicaUpdate",0,[nt,at],[()=>Ai,()=>Ui]],Xa=[3,is,Yn,0,[_n,"RestoreInProgress","SourceBackupArn",Er],[4,2,0,0],2],ec=[3,is,"RestoreTableFromBackupInput",0,[Fr,Ae,Oe,Rt,on,An,fn,gr],[0,0,0,()=>pu,()=>vu,()=>va,()=>Ia,()=>lc],2],tc=[3,is,"RestoreTableFromBackupOutput",0,[Or],[()=>gc]],nc=[3,is,"RestoreTableToPointInTimeInput",0,[Fr,Er,"SourceTableName","UseLatestRestorableTime",_n,Oe,Rt,on,An,fn,gr],[0,0,0,2,4,0,()=>pu,()=>vu,()=>va,()=>Ia,()=>lc],1],rc=[3,is,"RestoreTableToPointInTimeOutput",0,[Or],[()=>gc]],sc=[3,is,or,0,[sr,ir,"S3KeyPrefix"],[0,0,0],1],ic=[3,is,"ScanInput",0,[Br,qt,Ie,nn,Ir,"ScanFilter",Qe,ft,Ln,"TotalSegments","Segment",bn,At,ut,lt,Je],[0,0,64,1,0,()=>il,0,()=>cl,0,1,1,0,0,128,()=>sl,2],1],oc=[3,is,"ScanOutput",0,[Yt,tt,ar,rn,Fe],[()=>Su,1,1,()=>cl,()=>yi]],ac=[3,is,Sr,0,[Br,Nr,tn,"TableCreationDateTime",wn,Ar,kr,gn,Ut,$e],[0,0,()=>Du,4,()=>va,0,1,()=>Ia,1,0],5],cc=[3,is,Tr,0,[sn,vt,"StreamDescription",Mr,mr],[()=>xu,()=>du,()=>dc,()=>Sc,()=>uc]],uc=[3,is,mr,0,[Cr,fr,"KMSMasterKeyArn","InaccessibleEncryptionDateTime"],[0,0,0,4]],lc=[3,is,hr,0,[It,fr,en],[2,0,0]],dc=[3,is,dr,0,["StreamEnabled","StreamViewType"],[2,0],1],pc=[3,is,xr,0,[Br,Ur,nr],[0,0,()=>Nu]],mc=[3,is,$r,0,[vr,an],[0,4]],hc=[3,is,Pr,0,[Br,ye,tn,$e,wn,gn,hr,vt],[0,()=>eu,()=>Du,0,()=>va,()=>Ia,()=>lc,()=>pu],3],gc=[3,is,Or,0,[ye,Br,tn,Ur,We,wn,kr,Ut,Ar,Nr,Ne,sn,vt,dr,"LatestStreamLabel","LatestStreamArn","GlobalTableVersion",nr,"GlobalTableWitnesses",Lt,Yn,mr,Ee,$r,rt,gn,Yr,ln],[()=>eu,0,()=>Du,0,4,()=>Ra,1,1,0,0,()=>pi,()=>Au,()=>lu,()=>dc,0,0,0,()=>Bu,()=>fu,0,()=>Xa,()=>uc,()=>zs,()=>mc,2,()=>Ia,()=>fc,0]],fc=[3,is,"TableWarmThroughputDescription",0,[Zn,Jr,Cr],[1,1,0]],yc=[3,is,"Tag",0,[Jt,Hr],[0,0],2],bc=[3,is,"TagResourceInput",0,[Nn,qr],[0,()=>Ku],2],Ec=[3,is,"ThrottlingReason",0,["reason","resource"],[0,0]],Sc=[3,is,Mr,0,["TimeToLiveStatus",be],[0,0]],Tc=[3,is,Gr,0,[It,be],[2,0],2],Ic=[3,is,"TransactGetItem",0,["Get"],[()=>Po],1],Dc=[3,is,"TransactGetItemsInput",0,[Lr,Ln],[()=>Qu,0],1],Cc=[3,is,"TransactGetItemsOutput",0,[Fe,On],[()=>iu,()=>Tu]],wc=[3,is,"TransactWriteItem",0,[je,"Put",at,zr],[()=>fi,()=>$a,()=>$i,()=>Rc]],Ac=[3,is,"TransactWriteItemsInput",0,[Lr,Ln,Gn,Ye],[()=>Yu,0,0,[0,4]],1],xc=[3,is,"TransactWriteItemsOutput",0,[Fe,Mt],[()=>iu,()=>al]],vc=[3,is,"UntagResourceInput",0,[Nn,"TagKeys"],[0,64],2],Rc=[3,is,zr,0,[Jt,Vr,Br,qe,ut,lt,tr],[()=>cl,0,0,0,128,()=>sl,0],3],Pc=[3,is,"UpdateContinuousBackupsInput",0,[Br,Sn],[0,()=>Aa],2],$c=[3,is,"UpdateContinuousBackupsOutput",0,[Ge],[()=>bi]],Oc=[3,is,"UpdateContributorInsightsInput",0,[Br,"ContributorInsightsAction",qt,ze],[0,0,0,0],2],Nc=[3,is,"UpdateContributorInsightsOutput",0,[Br,qt,Ve,ze],[0,0,0,0]],Lc=[3,is,"UpdateGlobalSecondaryIndexAction",0,[qt,wn,gn,Yr],[0,()=>va,()=>Ia,()=>Jc],1],Bc=[3,is,"UpdateGlobalTableInput",0,[Nt,Xn],[0,()=>Vu],2],_c=[3,is,"UpdateGlobalTableOutput",0,[$t],[()=>jo]],kc=[3,is,"UpdateGlobalTableSettingsInput",0,[Nt,"GlobalTableBillingMode","GlobalTableProvisionedWriteCapacityUnits","GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate",Ot,Hn],[0,0,1,()=>Js,()=>hu,()=>qu],1],Uc=[3,is,"UpdateGlobalTableSettingsOutput",0,[Nt,Kn],[0,()=>Wu]],Mc=[3,is,"UpdateItemInput",0,[Br,Jt,De,Dt,Qe,er,Ln,Gn,Vr,qe,ut,lt,tr],[0,()=>cl,()=>Xu,()=>rl,0,0,0,0,0,0,128,()=>sl,0],2],Gc=[3,is,"UpdateItemOutput",0,[we,Fe,Mt],[()=>Zu,()=>yi,()=>Zo]],Fc=[3,is,Kr,0,[fe],[0]],jc=[3,is,"UpdateKinesisStreamingDestinationInput",0,[Br,rr,Kr],[0,0,()=>Fc],2],Wc=[3,is,"UpdateKinesisStreamingDestinationOutput",0,[Br,rr,it,Kr],[0,0,0,()=>Fc]],qc=[3,is,"UpdateReplicationGroupMemberAction",0,[jn,en,An,fn,vt,Rr],[0,0,()=>Pa,()=>Da,()=>Mu,0],1],zc=[3,is,"UpdateTableInput",0,[Br,ye,$e,wn,Pt,dr,hr,Xn,vr,rt,ln,"GlobalTableWitnessUpdates",gn,Yr],[0,()=>eu,0,()=>va,()=>mu,()=>dc,()=>lc,()=>zu,0,2,0,()=>yu,()=>Ia,()=>Jc],1],Vc=[3,is,"UpdateTableOutput",0,[Or],[()=>gc]],Kc=[3,is,"UpdateTableReplicaAutoScalingInput",0,[Br,Pt,vn,Xn],[0,()=>uu,()=>Js,()=>Lu],1],Hc=[3,is,"UpdateTableReplicaAutoScalingOutput",0,[xr],[()=>pc]],Qc=[3,is,"UpdateTimeToLiveInput",0,[Br,Gr],[0,()=>Tc],2],Yc=[3,is,"UpdateTimeToLiveOutput",0,[Gr],[()=>Tc]],Jc=[3,is,Yr,0,[Zn,Jr],[1,1]],Zc=[3,is,"WriteRequest",0,[In,st],[()=>La,()=>Gi]],Xc="unit",eu=[1,is,ye,0,()=>Vs],tu=[1,is,Ce,0,()=>ml],nu=[1,is,"AutoScalingPolicyDescriptionList",0,()=>Hs],ru=[1,is,ke,0,()=>ni],su=[1,is,"CancellationReasonList",0,()=>mi],iu=[1,is,"ConsumedCapacityMultiple",0,()=>yi],ou=[1,is,Ke,0,()=>Ei],au=[1,is,Tt,0,()=>Eo],cu=[1,is,yt,0,()=>Ao],uu=[1,is,"GlobalSecondaryIndexAutoScalingUpdateList",0,()=>_o],lu=[1,is,"GlobalSecondaryIndexDescriptionList",0,()=>ko],du=[1,is,vt,0,()=>Uo],pu=[1,is,"GlobalSecondaryIndexList",0,()=>Bo],mu=[1,is,"GlobalSecondaryIndexUpdateList",0,()=>Mo],hu=[1,is,"GlobalTableGlobalSecondaryIndexSettingsUpdateList",0,()=>Wo],gu=[1,is,"GlobalTableList",0,()=>Fo],fu=[1,is,"GlobalTableWitnessDescriptionList",0,()=>qo],yu=[1,is,"GlobalTableWitnessGroupUpdateList",0,()=>zo],bu=[1,is,Kt,0,()=>Vo],Eu=[1,is,"ItemCollectionMetricsMultiple",0,()=>Zo],Su=[1,is,"ItemList",0,()=>Zu],Tu=[1,is,"ItemResponseList",0,()=>Xo],Iu=[1,is,"KeyList",0,()=>cl],Du=[1,is,tn,0,()=>ta],Cu=[1,is,Xt,0,()=>na],wu=[1,is,"ListAttributeValue",0,()=>ml],Au=[1,is,"LocalSecondaryIndexDescriptionList",0,()=>Sa],xu=[1,is,sn,0,()=>Ta],vu=[1,is,"LocalSecondaryIndexList",0,()=>Ea],Ru=[1,is,"ParameterizedStatements",0,()=>Ca],Pu=[1,is,"PartiQLBatchRequest",0,()=>ci],$u=[1,is,"PartiQLBatchResponse",0,()=>ui],Ou=[1,is,"PreparedStatementParameters",0,()=>ml],Nu=[1,is,"ReplicaAutoScalingDescriptionList",0,()=>Ga],Lu=[1,is,"ReplicaAutoScalingUpdateList",0,()=>Fa],Bu=[1,is,"ReplicaDescriptionList",0,()=>ja],_u=[1,is,"ReplicaGlobalSecondaryIndexAutoScalingDescriptionList",0,()=>qa],ku=[1,is,"ReplicaGlobalSecondaryIndexAutoScalingUpdateList",0,()=>za],Uu=[1,is,"ReplicaGlobalSecondaryIndexDescriptionList",0,()=>Va],Mu=[1,is,"ReplicaGlobalSecondaryIndexList",0,()=>Wa],Gu=[1,is,"ReplicaGlobalSecondaryIndexSettingsDescriptionList",0,()=>Ka],Fu=[1,is,"ReplicaGlobalSecondaryIndexSettingsUpdateList",0,()=>Ha],ju=[1,is,"ReplicaList",0,()=>Ma],Wu=[1,is,"ReplicaSettingsDescriptionList",0,()=>Qa],qu=[1,is,"ReplicaSettingsUpdateList",0,()=>Ya],zu=[1,is,"ReplicationGroupUpdateList",0,()=>Ja],Vu=[1,is,"ReplicaUpdateList",0,()=>Za],Ku=[1,is,"TagList",0,()=>yc],Hu=[1,is,"ThrottlingReasonList",0,()=>Ec],Qu=[1,is,"TransactGetItemList",0,()=>Ic],Yu=[1,is,"TransactWriteItemList",0,()=>wc],Ju=[1,is,"WriteRequests",0,()=>Zc],Zu=[2,is,"AttributeMap",0,0,()=>ml],Xu=[2,is,De,0,0,()=>Ks],el=[2,is,"BatchGetRequestMap",0,0,()=>ea],tl=[2,is,"BatchGetResponseMap",0,0,()=>Su],nl=[2,is,"BatchWriteItemRequestMap",0,0,()=>Ju],rl=[2,is,"ExpectedAttributeMap",0,0,()=>Co],sl=[2,is,"ExpressionAttributeValueMap",0,0,()=>ml],il=[2,is,"FilterConditionMap",0,0,()=>gi],ol=[2,is,"ItemCollectionKeyAttributeMap",0,0,()=>ml],al=[2,is,"ItemCollectionMetricsPerTable",0,0,()=>Eu],cl=[2,is,Jt,0,0,()=>ml],ul=[2,is,Zt,0,0,()=>gi],ll=[2,is,"MapAttributeValue",0,0,()=>ml],dl=[2,is,"PutItemInputAttributeMap",0,0,()=>ml],pl=[2,is,"SecondaryIndexesCapacityMap",0,0,()=>hi],ml=[4,is,"AttributeValue",0,["S","N","B","SS","NS","BS","M","L","NULL","BOOL"],[0,0,21,64,64,85,()=>ll,()=>wu,2,2]],hl=[9,is,"BatchExecuteStatement",0,()=>ri,()=>si],gl=[9,is,"BatchGetItem",0,()=>ii,()=>oi],fl=[9,is,"BatchWriteItem",0,()=>li,()=>di],yl=[9,is,"CreateBackup",0,()=>Si,()=>Ti],bl=[9,is,"CreateGlobalTable",0,()=>Di,()=>Ci],El=[9,is,"CreateTable",0,()=>vi,()=>Ri],Sl=[9,is,"DeleteBackup",0,()=>Oi,()=>Ni],Tl=[9,is,"DeleteItem",0,()=>_i,()=>ki],Il=[9,is,"DeleteResourcePolicy",0,()=>Fi,()=>ji],Dl=[9,is,"DeleteTable",0,()=>Wi,()=>qi],Cl=[9,is,"DescribeBackup",0,()=>zi,()=>Vi],wl=[9,is,"DescribeContinuousBackups",0,()=>Ki,()=>Hi],Al=[9,is,"DescribeContributorInsights",0,()=>Qi,()=>Yi],xl=[9,is,"DescribeEndpoints",0,()=>Ji,()=>Zi],vl=[9,is,"DescribeExport",0,()=>Xi,()=>eo],Rl=[9,is,"DescribeGlobalTable",0,()=>to,()=>no],Pl=[9,is,"DescribeGlobalTableSettings",0,()=>ro,()=>so],$l=[9,is,"DescribeImport",0,()=>io,()=>oo],Ol=[9,is,"DescribeKinesisStreamingDestination",0,()=>ao,()=>co],Nl=[9,is,"DescribeLimits",0,()=>uo,()=>lo],Ll=[9,is,"DescribeTable",0,()=>po,()=>mo],Bl=[9,is,"DescribeTableReplicaAutoScaling",0,()=>ho,()=>go],_l=[9,is,"DescribeTimeToLive",0,()=>fo,()=>yo],kl=[9,is,"DisableKinesisStreamingDestination",0,()=>ra,()=>sa],Ul=[9,is,"EnableKinesisStreamingDestination",0,()=>ra,()=>sa],Ml=[9,is,"ExecuteStatement",0,()=>So,()=>To],Gl=[9,is,"ExecuteTransaction",0,()=>Io,()=>Do],Fl=[9,is,"ExportTableToPointInTime",0,()=>xo,()=>vo],jl=[9,is,"GetItem",0,()=>$o,()=>Oo],Wl=[9,is,"GetResourcePolicy",0,()=>No,()=>Lo],ql=[9,is,"ImportTable",0,()=>Ho,()=>Qo],zl=[9,is,"ListBackups",0,()=>ia,()=>oa],Vl=[9,is,"ListContributorInsights",0,()=>aa,()=>ca],Kl=[9,is,"ListExports",0,()=>ua,()=>la],Hl=[9,is,"ListGlobalTables",0,()=>da,()=>pa],Ql=[9,is,"ListImports",0,()=>ma,()=>ha],Yl=[9,is,"ListTables",0,()=>ga,()=>fa],Jl=[9,is,"ListTagsOfResource",0,()=>ya,()=>ba],Zl=[9,is,"PutItem",0,()=>Oa,()=>Na],Xl=[9,is,"PutResourcePolicy",0,()=>Ba,()=>_a],ed=[9,is,"Query",0,()=>ka,()=>Ua],td=[9,is,"RestoreTableFromBackup",0,()=>ec,()=>tc],nd=[9,is,"RestoreTableToPointInTime",0,()=>nc,()=>rc],rd=[9,is,"Scan",0,()=>ic,()=>oc],sd=[9,is,"TagResource",0,()=>bc,()=>Xc],id=[9,is,"TransactGetItems",0,()=>Dc,()=>Cc],od=[9,is,"TransactWriteItems",0,()=>Ac,()=>xc],ad=[9,is,"UntagResource",0,()=>vc,()=>Xc],cd=[9,is,"UpdateContinuousBackups",0,()=>Pc,()=>$c],ud=[9,is,"UpdateContributorInsights",0,()=>Oc,()=>Nc],ld=[9,is,"UpdateGlobalTable",0,()=>Bc,()=>_c],dd=[9,is,"UpdateGlobalTableSettings",0,()=>kc,()=>Uc],pd=[9,is,"UpdateItem",0,()=>Mc,()=>Gc],md=[9,is,"UpdateKinesisStreamingDestination",0,()=>jc,()=>Wc],hd=[9,is,"UpdateTable",0,()=>zc,()=>Vc],gd=[9,is,"UpdateTableReplicaAutoScaling",0,()=>Kc,()=>Hc],fd=[9,is,"UpdateTimeToLive",0,()=>Qc,()=>Yc];class yd extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeEndpoints",{}).n("DynamoDBClient","DescribeEndpointsCommand").sc(xl).build()){}var bd=n(17479),Ed=n(96965);const Sd="Invalid AccountIdEndpointMode value",Td=e=>{throw new Error(e)},Id={environmentVariableSelector:e=>{const t=e.AWS_ACCOUNT_ID_ENDPOINT_MODE;return t&&!o(t)&&Td(Sd),t},configFileSelector:e=>{const t=e.account_id_endpoint_mode;return t&&!o(t)&&Td(Sd),t},default:s};var Dd=n(69958),Cd=n(43281),wd=n(98229),Ad=n(53433);const xd="AWS_EC2_METADATA_DISABLED";let vd=!1;const Rd=(e={})=>function(e,t){const n=(e=>async t=>{let n;for(const r of e)try{return await r(t)}catch(e){if(n=e,e?.tryNextLink)continue;throw e}throw n})(e);let r,s,i;const o=async e=>{if(e?.forceRefresh)return await n(e);if(i?.expiration&&i?.expiration?.getTime()<Date.now()&&(i=void 0),r)await r;else if(!i||t?.(i)){if(!i)return r=n(e).then(e=>{i=e}).finally(()=>{r=void 0}),o(e);s||(s=n(e).then(e=>{i=e}).finally(()=>{s=void 0}))}return i};return o}([async()=>{if(e.profile??process.env[wd.Ch])throw process.env[Dd.yG]&&process.env[Dd.pi]&&!vd&&((e.logger?.warn&&"NoOpLogger"!==e.logger?.constructor?.name?e.logger.warn.bind(e.logger):console.warn)("@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n"),vd=!0),new Cd.C("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0});return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),(0,Dd.sF)(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:i,ssoRoleName:o,ssoSession:a}=e;if(!(r||s||i||o||a))throw new Cd.C("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});const{fromSSO:c}=await n.e(914).then(n.bind(n,32914));return c(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:r}=await n.e(95).then(n.bind(n,51095));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:r}=await n.e(242).then(n.bind(n,46242));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:r}=await n.e(354).then(n.bind(n,83354));return r(e)(t)},async()=>(e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await(async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:s,fromInstanceMetadata:i}=await n.e(866).then(n.bind(n,8866));if(process.env[r]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(361).then(n.bind(n,2361));return(0,Ad.c)(t(e),s(e))}return process.env[xd]&&"false"!==process.env[xd]?async()=>{throw new Cd.C("EC2 Instance Metadata Service access disabled",{logger:e.logger})}:(e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),i(e))})(e))()),async()=>{throw new Cd.C("Could not load credentials from any providers",{tryNextLink:!1,logger:e.logger})}],Pd),Pd=e=>void 0!==e?.expiration&&e.expiration.getTime()-Date.now()<3e5,$d=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],Od="endpoint_discovery_enabled",Nd=e=>["false","0"].indexOf(e)>=0,Ld={environmentVariableSelector:e=>{for(let t=0;t<$d.length;t++){const n=$d[t];if(n in e){const t=e[n];if(""===t)throw Error(`Environment variable ${n} can't be empty of undefined, got "${t}"`);return!Nd(t)}}},configFileSelector:e=>{if(Od in e){const t=e[Od];if(void 0===t)throw Error(`Shared config entry ${Od} can't be undefined, got "${t}"`);return!Nd(t)}},default:void 0};var Bd=n(17914),_d=n(5882),kd=n(96901),Ud=n(24661),Md=n(46109),Gd=n(5012),Fd=n(7387),jd=n(24176),Wd=n(64327),qd=n(34338),zd=n(57815),Vd=n(55425),Kd=n(99816),Hd=n(48828),Qd=n(17357),Yd=n(63139),Jd=n(59772),Zd=n(50469),Xd=n(28075),ep=n(78887),tp=n(44373);class np extends Yd.M{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:r}){super({defaultNamespace:e}),this.serviceTarget=t,this.codec=r??new ep.V({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new Xd.U(this.awsQueryCompatible)}async serializeRequest(e,t,n){const r=await super.serializeRequest(e,t,n);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),"unit"!==(0,Jd.L)(e.input)&&r.body||(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);const i=(0,tp.cJ)(n,r)??"Unknown",{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,r,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),c=Zd.l.of(o),u=r.message??r.Message??"Unknown",l=new(O.O.for(o[1]).getErrorCtor(o)??Error)(u),d={};for(const[e,t]of c.structIterator())null!=r[e]&&(d[e]=this.codec.createDeserializer().readObject(t,r[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,d),this.mixin.decorateServiceException(Object.assign(l,a,{$fault:c.getMergedTraits().error,message:u},d),r)}}class rp extends np{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:r}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n,jsonCodec:r})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}var sp=n(53101),ip=n(88066);const op=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter(e=>null!=e).map(op);if("object"==typeof e){const t={};for(const n of Object.keys(e))null!=e[n]&&(t[n]=op(e[n]));return t}return e};var ap=n(39181),cp=n(12544);class up extends ep.V{constructor(){super({timestampFormat:{useTrait:!0,default:7},jsonName:!1})}createSerializer(){const e=new dp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new pp(this.settings);return e.setSerdeContext(this.serdeContext),e}}const lp="com.amazonaws.dynamodb#AttributeValue";class dp extends sp.a{_write(e,t,n){const r=Zd.l.of(e);if(r.isStructSchema()&&r.getName(!0)===lp&&t&&"object"==typeof t){const e=t,s=op(e),i=this.serdeContext?.base64Encoder??ap.n;if(e.B instanceof Uint8Array&&(s.B=i(e.B)),Array.isArray(e.BS)&&(s.BS=e.BS.map(i)),Array.isArray(e.L)&&(s.L=e.L.filter(e=>null!=e).map(e=>this._write(r,e,n))),e.M&&"object"==typeof e.M){s.M={};for(const[t,i]of Object.entries(e.M))null!=i&&(s.M[t]=this._write(r,i,n))}return s}return super._write(r,t,n)}}class pp extends ip.d{_read(e,t){const n=Zd.l.of(e);if(n.isStructSchema()&&n.getName(!0)===lp&&t&&"object"==typeof t){const e=t,r=op(e),s=this.serdeContext?.base64Decoder??cp.E;if("string"==typeof e.B&&(r.B=s(e.B)),Array.isArray(e.BS)&&(r.BS=e.BS.map(s)),Array.isArray(e.L)&&(r.L=e.L.map(e=>this._read(n,e))),e.M&&"object"==typeof e.M){r.M={};for(const[t,s]of Object.entries(e.M))r.M[t]=this._read(n,s)}return r}return super._read(n,t)}}var mp=n(3761),hp=n(67933),gp=n(40935),fp=n(2914),yp=n(7856),bp=n(90855),Ep=n(10366);const Sp=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Sp(t))return!1;return!0}return!(!(0,bp.X)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,Ep.o)(e))};let Tp=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-east-2":{"description":"Asia Pacific (Taipei)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"ap-southeast-6":{"description":"Asia Pacific (New Zealand)"},"ap-southeast-7":{"description":"Asia Pacific (Thailand)"},"aws-global":{"description":"aws global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"mx-central-1":{"description":"Mexico (Central)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"aws-cn global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-eusc","outputs":{"dnsSuffix":"amazonaws.eu","dualStackDnsSuffix":"api.amazonwebservices.eu","implicitGlobalRegion":"eusc-de-east-1","name":"aws-eusc","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eusc\\\\-(de)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eusc-de-east-1":{"description":"AWS European Sovereign Cloud (Germany)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"api.aws.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"aws-iso global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"api.aws.scloud","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"aws-iso-b global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"},"us-isob-west-1":{"description":"US ISOB West"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"api.cloud-aws.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-e-global":{"description":"aws-iso-e global region"},"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"api.aws.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-f-global":{"description":"aws-iso-f global region"},"us-isof-east-1":{"description":"US ISOF EAST"},"us-isof-south-1":{"description":"US ISOF SOUTH"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"aws-us-gov global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}}],"version":"1.1"}');const Ip={isVirtualHostableS3Bucket:Sp,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,s,i,o,...a]=t;return"arn"!==n||""===r||""===s||""===a.join(":")?null:{partition:r,service:s,region:i,accountId:o,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{const{partitions:t}=Tp;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,s]of Object.entries(t))if(n===e)return{...r,...s}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find(e=>"aws"===e.id);if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}}};yp.m.aws=Ip;var Dp=n(48105),Cp=n(1034);const wp="required",Ap="type",xp="rules",vp="conditions",Rp="fn",Pp="argv",$p="ref",Op="assign",Np="url",Lp="properties",Bp="headers",_p="metricValues",kp="error",Up="stringEquals",Mp="https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Gp="endpoint",Fp="tree",jp="dynamodb",Wp={[wp]:!1,[Ap]:"string"},qp={[wp]:!0,default:!1,[Ap]:"boolean"},zp={[Rp]:"isSet",[Pp]:[{[$p]:"Endpoint"}]},Vp={[$p]:"Endpoint"},Kp={[Rp]:"isSet",[Pp]:[{[$p]:"Region"}]},Hp={[$p]:"Region"},Qp={[Rp]:"aws.partition",[Pp]:[Hp],[Op]:"PartitionResult"},Yp={[vp]:[{[Rp]:"booleanEquals",[Pp]:[{[$p]:"UseFIPS"},!0]}],[kp]:"Invalid Configuration: FIPS and custom endpoint are not supported",[Ap]:kp},Jp={[Rp]:"booleanEquals",[Pp]:[{[$p]:"UseFIPS"},!0]},Zp={[vp]:[{[Rp]:"booleanEquals",[Pp]:[{[$p]:"UseDualStack"},!0]}],[kp]:"Invalid Configuration: Dualstack and custom endpoint are not supported",[Ap]:kp},Xp={[Rp]:"booleanEquals",[Pp]:[{[$p]:"UseDualStack"},!0]},em={[Gp]:{[Np]:"{Endpoint}",[Lp]:{},[Bp]:{}},[Ap]:Gp},tm={},nm={[Rp]:"booleanEquals",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"PartitionResult"},"supportsFIPS"]},!0]},rm={[Rp]:"booleanEquals",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"PartitionResult"},"supportsDualStack"]},!0]},sm={[vp]:[{[Rp]:"isSet",[Pp]:[{[$p]:"AccountIdEndpointMode"}]},{[Rp]:Up,[Pp]:[{[$p]:"AccountIdEndpointMode"},"required"]}],[xp]:[{[kp]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[Ap]:kp}],[Ap]:Fp},im={[Rp]:"getAttr",[Pp]:[{[$p]:"PartitionResult"},"name"]},om={[Gp]:{[Np]:"https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",[Lp]:{},[Bp]:{}},[Ap]:Gp},am={[Np]:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[Lp]:{[_p]:["O"]},[Bp]:{}},cm={[_p]:["O"]},um={[kp]:"Credentials-sourced account ID parameter is invalid",[Ap]:kp},lm={[vp]:[{[Rp]:"isSet",[Pp]:[{[$p]:"AccountIdEndpointMode"}]},{[Rp]:Up,[Pp]:[{[$p]:"AccountIdEndpointMode"},"required"]}],[xp]:[{[vp]:[{[Rp]:"not",[Pp]:[Jp]}],[xp]:[{[vp]:[{[Rp]:Up,[Pp]:[im,"aws"]}],[xp]:[{[kp]:"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded",[Ap]:kp}],[Ap]:Fp},{[kp]:"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition",[Ap]:kp}],[Ap]:Fp},{[kp]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[Ap]:kp}],[Ap]:Fp},dm={[Np]:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[Lp]:cm,[Bp]:{}},pm=[Jp],mm=[Xp],hm=[{[Rp]:"isSet",[Pp]:[{[$p]:"AccountIdEndpointMode"}]},{[Rp]:"not",[Pp]:[{[Rp]:Up,[Pp]:[{[$p]:"AccountIdEndpointMode"},"disabled"]}]},{[Rp]:Up,[Pp]:[im,"aws"]},{[Rp]:"not",[Pp]:[Jp]},{[Rp]:"isSet",[Pp]:[{[$p]:"ResourceArn"}]},{[Rp]:"aws.parseArn",[Pp]:[{[$p]:"ResourceArn"}],[Op]:"ParsedArn"},{[Rp]:Up,[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"service"]},jp]},{[Rp]:"isValidHostLabel",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"region"]},!1]},{[Rp]:Up,[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"region"]},"{Region}"]},{[Rp]:"isValidHostLabel",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"accountId"]},!1]}],gm=[{[Rp]:"isSet",[Pp]:[{[$p]:"AccountIdEndpointMode"}]},{[Rp]:"not",[Pp]:[{[Rp]:Up,[Pp]:[{[$p]:"AccountIdEndpointMode"},"disabled"]}]},{[Rp]:Up,[Pp]:[im,"aws"]},{[Rp]:"not",[Pp]:[Jp]},{[Rp]:"isSet",[Pp]:[{[$p]:"ResourceArnList"}]},{[Rp]:"getAttr",[Pp]:[{[$p]:"ResourceArnList"},"[0]"],[Op]:"FirstArn"},{[Rp]:"aws.parseArn",[Pp]:[{[$p]:"FirstArn"}],[Op]:"ParsedArn"},{[Rp]:Up,[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"service"]},jp]},{[Rp]:"isValidHostLabel",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"region"]},!1]},{[Rp]:Up,[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"region"]},"{Region}"]},{[Rp]:"isValidHostLabel",[Pp]:[{[Rp]:"getAttr",[Pp]:[{[$p]:"ParsedArn"},"accountId"]},!1]}],fm=[{[Rp]:"isSet",[Pp]:[{[$p]:"AccountIdEndpointMode"}]},{[Rp]:"not",[Pp]:[{[Rp]:Up,[Pp]:[{[$p]:"AccountIdEndpointMode"},"disabled"]}]},{[Rp]:Up,[Pp]:[im,"aws"]},{[Rp]:"not",[Pp]:[Jp]},{[Rp]:"isSet",[Pp]:[{[$p]:"AccountId"}]}],ym=[{[Rp]:"isValidHostLabel",[Pp]:[{[$p]:"AccountId"},!1]}],bm={version:"1.0",parameters:{Region:Wp,UseDualStack:qp,UseFIPS:qp,Endpoint:Wp,AccountId:Wp,AccountIdEndpointMode:Wp,ResourceArn:Wp,ResourceArnList:{[wp]:!1,[Ap]:"stringArray"}},[xp]:[{[vp]:[zp,Kp,Qp],[xp]:[Yp,Zp,{[vp]:[{[Rp]:Up,[Pp]:[Vp,Mp]}],error:"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html",[Ap]:kp},em],[Ap]:Fp},{[vp]:[zp],[xp]:[Yp,Zp,em],[Ap]:Fp},{[vp]:[Kp],[xp]:[{[vp]:[Qp],[xp]:[{[vp]:[{[Rp]:Up,[Pp]:[Hp,"local"]}],[xp]:[{[vp]:pm,error:"Invalid Configuration: FIPS and local endpoint are not supported",[Ap]:kp},{[vp]:mm,error:"Invalid Configuration: Dualstack and local endpoint are not supported",[Ap]:kp},{endpoint:{[Np]:"http://localhost:8000",[Lp]:{authSchemes:[{name:"sigv4",signingName:jp,signingRegion:"us-east-1"}]},[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},{[vp]:[Jp,Xp],[xp]:[{[vp]:[nm,rm],[xp]:[sm,{endpoint:{[Np]:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[Lp]:tm,[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[Ap]:kp}],[Ap]:Fp},{[vp]:pm,[xp]:[{[vp]:[nm],[xp]:[{[vp]:[{[Rp]:Up,[Pp]:[im,"aws-us-gov"]}],[xp]:[sm,om],[Ap]:Fp},sm,{endpoint:{[Np]:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",[Lp]:tm,[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},{error:"FIPS is enabled but this partition does not support FIPS",[Ap]:kp}],[Ap]:Fp},{[vp]:mm,[xp]:[{[vp]:[rm],[xp]:[{[vp]:hm,endpoint:am,[Ap]:Gp},{[vp]:gm,endpoint:am,[Ap]:Gp},{[vp]:fm,[xp]:[{[vp]:ym,[xp]:[{endpoint:{[Np]:"https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[Lp]:cm,[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},um],[Ap]:Fp},lm,{endpoint:{[Np]:Mp,[Lp]:tm,[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},{error:"DualStack is enabled but this partition does not support DualStack",[Ap]:kp}],[Ap]:Fp},{[vp]:hm,endpoint:dm,[Ap]:Gp},{[vp]:gm,endpoint:dm,[Ap]:Gp},{[vp]:fm,[xp]:[{[vp]:ym,[xp]:[{endpoint:{[Np]:"https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[Lp]:cm,[Bp]:tm},[Ap]:Gp}],[Ap]:Fp},um],[Ap]:Fp},lm,om],[Ap]:Fp}],[Ap]:Fp},{error:"Invalid Configuration: Missing Region",[Ap]:kp}]},Em=new Dp.k({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]}),Sm=(e,t={})=>Em.get(e,()=>(0,Cp.s)(bm,{endpointParams:e,logger:t.logger}));yp.m.aws=Ip;var Tm=n(93673),Im=n(78646),Dm=n(18081);class Cm extends C.K{config;constructor(...[e]){const t=(e=>{(0,qd.I)(process.version);const t=(0,Kd.I)(e),n=()=>t().then(zd.l),r=(e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??cp.E,base64Encoder:e?.base64Encoder??ap.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Sm,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??v,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Qd.f2}],logger:e?.logger??new mp.N,protocol:e?.protocol??rp,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.dynamodb",errorTypeRegistries:qs,xmlNamespace:"http://dynamodb.amazonaws.com/doc/2012-08-10/",version:"2012-08-10",serviceTarget:"DynamoDB_20120810",jsonCodec:new up},serviceId:e?.serviceId??"DynamoDB",urlParser:e?.urlParser??hp.D,utf8Decoder:e?.utf8Decoder??gp.a,utf8Encoder:e?.utf8Encoder??fp.P}))(e);(0,bd.I)(process.version);const s={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:"node",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??(0,Fd.Z)(Id,s),authSchemePreference:e?.authSchemePreference??(0,Fd.Z)(Ed.$,s),bodyLengthChecker:e?.bodyLengthChecker??Vd.n,credentialDefaultProvider:e?.credentialDefaultProvider??Rd,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Bd.pf)({serviceId:r.serviceId,clientVersion:"3.994.0"}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??(0,Fd.Z)(Ld,s),maxAttempts:e?.maxAttempts??(0,Fd.Z)(I.qs,e),region:e?.region??(0,Fd.Z)(kd.GG,{...kd.zH,...s}),requestHandler:jd.$.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,Fd.Z)({...I.kN,default:async()=>(await n()).retryMode||Hd.L0},e),sha256:e?.sha256??Gd.V.bind(null,"sha256"),streamCollector:e?.streamCollector??Wd.k,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Fd.Z)(Ud.e$,s),useFipsEndpoint:e?.useFipsEndpoint??(0,Fd.Z)(Md.Ko,s),userAgentAppId:e?.userAgentAppId??(0,Fd.Z)(_d.hV,s)}})(e||{});var n;super(t),this.initConfig=t;const i=(e=>{const{accountIdEndpointMode:t}=e,n=(0,r.t)(t??s);return Object.assign(e,{accountIdEndpointMode:async()=>{const e=await n();if(!o(e))throw new Error(`Invalid value for accountIdEndpointMode: ${e}. Valid values are: "required", "preferred", "disabled".`);return e}})})((n=t,Object.assign(n,{useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"dynamodb"}))),a=(0,m.D)(i),c=(0,I.$z)(a),C=(0,g.T)(c),A=(0,l.OV)(C),R=((e,t)=>{const n=Object.assign((0,Tm.R)(e),(0,Dm.xA)(e),(0,Im.e)(e),(e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex(t=>t.schemeId===e.schemeId);-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){r=e},credentials:()=>r}})(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,Tm.$)(n),(0,Dm.uv)(n),(0,Im.j)(n),{httpAuthSchemes:(r=n).httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()});var r})(((e,{endpointDiscoveryCommandCtor:t})=>{const{endpointCacheSize:n,endpointDiscoveryEnabled:r,endpointDiscoveryEnabledProvider:s}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new u(n??1e3),endpointDiscoveryEnabled:void 0!==r?()=>Promise.resolve(r):s,isClientEndpointDiscoveryEnabled:void 0!==r})})((e=>{const t=(0,w.h)(e);return Object.assign(t,{authSchemePreference:(0,r.t)(e.authSchemePreference??[])})})((0,T.C)(A)),{endpointDiscoveryCommandCtor:yd}),e?.extensions||[]);this.config=R,this.middlewareStack.use((0,E.wq)(this.config)),this.middlewareStack.use((0,h.sM)(this.config)),this.middlewareStack.use((0,D.ey)(this.config)),this.middlewareStack.use((0,S.vK)(this.config)),this.middlewareStack.use((0,l.TC)(this.config)),this.middlewareStack.use((0,d.Y7)(this.config)),this.middlewareStack.use((0,p.n)(this.config)),this.middlewareStack.use((0,f.w)(this.config,{httpAuthSchemeParametersProvider:x,identityProviderConfigProvider:async e=>new y.h({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,b.l)(this.config))}destroy(){super.destroy()}}class wm extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchExecuteStatement",{}).n("DynamoDBClient","BatchExecuteStatementCommand").sc(hl).build()){}class Am extends(P.u.classBuilder().ep({...$,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchGetItem",{}).n("DynamoDBClient","BatchGetItemCommand").sc(gl).build()){}class xm extends(P.u.classBuilder().ep({...$,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchWriteItem",{}).n("DynamoDBClient","BatchWriteItemCommand").sc(fl).build()){}class vm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateBackup",{}).n("DynamoDBClient","CreateBackupCommand").sc(yl).build()){}class Rm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateGlobalTable",{}).n("DynamoDBClient","CreateGlobalTableCommand").sc(bl).build()){}class Pm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateTable",{}).n("DynamoDBClient","CreateTableCommand").sc(El).build()){}class $m extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteBackup",{}).n("DynamoDBClient","DeleteBackupCommand").sc(Sl).build()){}class Om extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteItem",{}).n("DynamoDBClient","DeleteItemCommand").sc(Tl).build()){}class Nm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteResourcePolicy",{}).n("DynamoDBClient","DeleteResourcePolicyCommand").sc(Il).build()){}class Lm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteTable",{}).n("DynamoDBClient","DeleteTableCommand").sc(Dl).build()){}class Bm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeBackup",{}).n("DynamoDBClient","DescribeBackupCommand").sc(Cl).build()){}class _m extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeContinuousBackups",{}).n("DynamoDBClient","DescribeContinuousBackupsCommand").sc(wl).build()){}class km extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeContributorInsights",{}).n("DynamoDBClient","DescribeContributorInsightsCommand").sc(Al).build()){}class Um extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ExportArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeExport",{}).n("DynamoDBClient","DescribeExportCommand").sc(vl).build()){}class Mm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeGlobalTable",{}).n("DynamoDBClient","DescribeGlobalTableCommand").sc(Rl).build()){}class Gm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeGlobalTableSettings",{}).n("DynamoDBClient","DescribeGlobalTableSettingsCommand").sc(Pl).build()){}class Fm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ImportArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeImport",{}).n("DynamoDBClient","DescribeImportCommand").sc($l).build()){}class jm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeKinesisStreamingDestination",{}).n("DynamoDBClient","DescribeKinesisStreamingDestinationCommand").sc(Ol).build()){}class Wm extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeLimits",{}).n("DynamoDBClient","DescribeLimitsCommand").sc(Nl).build()){}class qm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTable",{}).n("DynamoDBClient","DescribeTableCommand").sc(Ll).build()){}class zm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTableReplicaAutoScaling",{}).n("DynamoDBClient","DescribeTableReplicaAutoScalingCommand").sc(Bl).build()){}class Vm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTimeToLive",{}).n("DynamoDBClient","DescribeTimeToLiveCommand").sc(_l).build()){}class Km extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DisableKinesisStreamingDestination",{}).n("DynamoDBClient","DisableKinesisStreamingDestinationCommand").sc(kl).build()){}class Hm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","EnableKinesisStreamingDestination",{}).n("DynamoDBClient","EnableKinesisStreamingDestinationCommand").sc(Ul).build()){}class Qm extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteStatement",{}).n("DynamoDBClient","ExecuteStatementCommand").sc(Ml).build()){}class Ym extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteTransaction",{}).n("DynamoDBClient","ExecuteTransactionCommand").sc(Gl).build()){}class Jm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExportTableToPointInTime",{}).n("DynamoDBClient","ExportTableToPointInTimeCommand").sc(Fl).build()){}class Zm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","GetItem",{}).n("DynamoDBClient","GetItemCommand").sc(jl).build()){}class Xm extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","GetResourcePolicy",{}).n("DynamoDBClient","GetResourcePolicyCommand").sc(Wl).build()){}class eh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"operationContextParams",get:e=>e?.TableCreationParameters?.TableName}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ImportTable",{}).n("DynamoDBClient","ImportTableCommand").sc(ql).build()){}class th extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListBackups",{}).n("DynamoDBClient","ListBackupsCommand").sc(zl).build()){}class nh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListContributorInsights",{}).n("DynamoDBClient","ListContributorInsightsCommand").sc(Vl).build()){}class rh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListExports",{}).n("DynamoDBClient","ListExportsCommand").sc(Kl).build()){}class sh extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListGlobalTables",{}).n("DynamoDBClient","ListGlobalTablesCommand").sc(Hl).build()){}class ih extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListImports",{}).n("DynamoDBClient","ListImportsCommand").sc(Ql).build()){}class oh extends(P.u.classBuilder().ep($).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListTables",{}).n("DynamoDBClient","ListTablesCommand").sc(Yl).build()){}class ah extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListTagsOfResource",{}).n("DynamoDBClient","ListTagsOfResourceCommand").sc(Jl).build()){}class ch extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","PutItem",{}).n("DynamoDBClient","PutItemCommand").sc(Zl).build()){}class uh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","PutResourcePolicy",{}).n("DynamoDBClient","PutResourcePolicyCommand").sc(Xl).build()){}class lh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Query",{}).n("DynamoDBClient","QueryCommand").sc(ed).build()){}class dh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","RestoreTableFromBackup",{}).n("DynamoDBClient","RestoreTableFromBackupCommand").sc(td).build()){}class ph extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","RestoreTableToPointInTime",{}).n("DynamoDBClient","RestoreTableToPointInTimeCommand").sc(nd).build()){}class mh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Scan",{}).n("DynamoDBClient","ScanCommand").sc(rd).build()){}class hh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TagResource",{}).n("DynamoDBClient","TagResourceCommand").sc(sd).build()){}class gh extends(P.u.classBuilder().ep({...$,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>e?.Get?.TableName)}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactGetItems",{}).n("DynamoDBClient","TransactGetItemsCommand").sc(id).build()){}class fh extends(P.u.classBuilder().ep({...$,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>[e?.ConditionCheck?.TableName,e?.Put?.TableName,e?.Delete?.TableName,e?.Update?.TableName].filter(e=>e)).flat()}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactWriteItems",{}).n("DynamoDBClient","TransactWriteItemsCommand").sc(od).build()){}class yh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UntagResource",{}).n("DynamoDBClient","UntagResourceCommand").sc(ad).build()){}class bh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateContinuousBackups",{}).n("DynamoDBClient","UpdateContinuousBackupsCommand").sc(cd).build()){}class Eh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateContributorInsights",{}).n("DynamoDBClient","UpdateContributorInsightsCommand").sc(ud).build()){}class Sh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateGlobalTable",{}).n("DynamoDBClient","UpdateGlobalTableCommand").sc(ld).build()){}class Th extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateGlobalTableSettings",{}).n("DynamoDBClient","UpdateGlobalTableSettingsCommand").sc(dd).build()){}class Ih extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateItem",{}).n("DynamoDBClient","UpdateItemCommand").sc(pd).build()){}class Dh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateKinesisStreamingDestination",{}).n("DynamoDBClient","UpdateKinesisStreamingDestinationCommand").sc(md).build()){}class Ch extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTable",{}).n("DynamoDBClient","UpdateTableCommand").sc(hd).build()){}class wh extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTableReplicaAutoScaling",{}).n("DynamoDBClient","UpdateTableReplicaAutoScalingCommand").sc(gd).build()){}class Ah extends(P.u.classBuilder().ep({...$,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTimeToLive",{}).n("DynamoDBClient","UpdateTimeToLiveCommand").sc(fd).build()){}const xh=async(e,t,n,r=e=>e,...s)=>{let i=new e(n);return i=r(i)??i,await t.send(i,...s)};function vh(e,t,n,r,s){return async function*(i,o,...a){const c=o;let u,l=i.startingToken??c[n],d=!0;for(;d;){if(c[n]=l,s&&(c[s]=c[s]??i.pageSize),!(i.client instanceof e))throw new Error(`Invalid client, expected instance of ${e.name}`);u=await xh(t,i.client,o,i.withCommand,...a),yield u;const p=l;l=Rh(u,r),d=!(!l||i.stopOnSameToken&&l===p)}}}const Rh=(e,t)=>{let n=e;const r=t.split(".");for(const e of r){if(!n||"object"!=typeof n)return;n=n[e]}return n},Ph=vh(Cm,nh,"NextToken","NextToken","MaxResults"),$h=vh(Cm,rh,"NextToken","NextToken","MaxResults"),Oh=vh(Cm,ih,"NextToken","NextToken","PageSize"),Nh=vh(Cm,oh,"ExclusiveStartTableName","LastEvaluatedTableName","Limit"),Lh=vh(Cm,lh,"ExclusiveStartKey","LastEvaluatedKey","Limit"),Bh=vh(Cm,mh,"ExclusiveStartKey","LastEvaluatedKey","Limit"),_h=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return"[Circular]";e.add(n)}return n}},kh={minDelay:2,maxDelay:120};var Uh;!function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"}(Uh||(Uh={}));const Mh=e=>{if(e.state===Uh.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},_h())}`);throw t.name="AbortError",t}if(e.state===Uh.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},_h())}`);throw t.name="TimeoutError",t}if(e.state!==Uh.SUCCESS)throw new Error(`${JSON.stringify(e,_h())}`);return e},Gh=e=>new Promise(t=>setTimeout(t,1e3*e)),Fh=(e,t,n,r)=>r>n?t:jh(e,e*2**(r-1)),jh=(e,t)=>e+Math.random()*(t-e),Wh=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:s,abortSignal:i},o,a)=>{const c={},{state:u,reason:l}=await a(s,o);if(l){const e=qh(l);c[e]|=0,c[e]+=1}if(u!==Uh.RETRY)return{state:u,reason:l,observedResponses:c};let d=1;const p=Date.now()+1e3*n,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(r?.signal?.aborted||i?.aborted){const e="AbortController signal aborted.";return c[e]|=0,c[e]+=1,{state:Uh.ABORTED,observedResponses:c}}const n=Fh(e,t,m,d);if(Date.now()+1e3*n>p)return{state:Uh.TIMEOUT,observedResponses:c};await Gh(n);const{state:u,reason:l}=await a(s,o);if(l){const e=qh(l);c[e]|=0,c[e]+=1}if(u!==Uh.RETRY)return{state:u,reason:l,observedResponses:c};d+=1}},qh=e=>e?.$responseBodyText?`Deserialization error for body: ${e.$responseBodyText}`:e?.$metadata?.httpStatusCode?e.$response||e.message?`${e.$response.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`:`${e.$metadata.httpStatusCode}: OK`:String(e?.message??JSON.stringify(e,_h())??"Unknown"),zh=e=>{let t;const n=new Promise(n=>{t=()=>n({state:Uh.ABORTED}),"function"==typeof e.addEventListener?e.addEventListener("abort",t):e.onabort=t});return{clearListener(){"function"==typeof e.removeEventListener&&e.removeEventListener("abort",t)},aborted:n}},Vh=async(e,t,n)=>{const r={...kh,...e};(e=>{if(e.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<=0)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.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)})(r);const s=[Wh(r,t,n)],i=[];if(e.abortSignal){const{aborted:t,clearListener:n}=zh(e.abortSignal);i.push(n),s.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=zh(e.abortController.signal);i.push(n),s.push(t)}return Promise.race(s).then(e=>{for(const e of i)e();return e})},Kh=async(e,t)=>{let n;try{let r=await e.send(new km(t));n=r;try{if("ENABLED"===r.ContributorInsightsStatus)return{state:Uh.SUCCESS,reason:n}}catch(e){}try{if("FAILED"===r.ContributorInsightsStatus)return{state:Uh.FAILURE,reason:n}}catch(e){}}catch(e){n=e}return{state:Uh.RETRY,reason:n}},Hh=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,Kh),Qh=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,Kh);return Mh(n)},Yh=async(e,t)=>{let n;try{let r=await e.send(new Um(t));n=r;try{if("COMPLETED"===r.ExportDescription.ExportStatus)return{state:Uh.SUCCESS,reason:n}}catch(e){}try{if("FAILED"===r.ExportDescription.ExportStatus)return{state:Uh.FAILURE,reason:n}}catch(e){}}catch(e){n=e}return{state:Uh.RETRY,reason:n}},Jh=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,Yh),Zh=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,Yh);return Mh(n)},Xh=async(e,t)=>{let n;try{let r=await e.send(new Fm(t));n=r;try{if("COMPLETED"===r.ImportTableDescription.ImportStatus)return{state:Uh.SUCCESS,reason:n}}catch(e){}try{if("FAILED"===r.ImportTableDescription.ImportStatus)return{state:Uh.FAILURE,reason:n}}catch(e){}try{if("CANCELLED"===r.ImportTableDescription.ImportStatus)return{state:Uh.FAILURE,reason:n}}catch(e){}}catch(e){n=e}return{state:Uh.RETRY,reason:n}},eg=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,Xh),tg=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,Xh);return Mh(n)},ng=async(e,t)=>{let n;try{let r=await e.send(new jm(t));n=r;try{const e=()=>[].concat(...r.KinesisDataStreamDestinations).map(e=>e.DestinationStatus);for(let t of e())if("ACTIVE"==t)return{state:Uh.SUCCESS,reason:n}}catch(e){}try{if(1==(()=>{let e=r.KinesisDataStreamDestinations.filter(e=>!("DISABLED"!=e.DestinationStatus&&"ENABLE_FAILED"!=e.DestinationStatus||"ENABLE_FAILED"!=e.DestinationStatus&&"DISABLED"!=e.DestinationStatus));return r.KinesisDataStreamDestinations.length>0&&e.length==r.KinesisDataStreamDestinations.length})())return{state:Uh.FAILURE,reason:n}}catch(e){}}catch(e){n=e}return{state:Uh.RETRY,reason:n}},rg=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,ng),sg=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,ng);return Mh(n)},ig=async(e,t)=>{let n;try{let r=await e.send(new qm(t));n=r;try{if("ACTIVE"===r.Table.TableStatus)return{state:Uh.SUCCESS,reason:n}}catch(e){}}catch(e){if(n=e,e.name&&"ResourceNotFoundException"==e.name)return{state:Uh.RETRY,reason:n}}return{state:Uh.RETRY,reason:n}},og=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,ig),ag=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,ig);return Mh(n)},cg=async(e,t)=>{let n;try{n=await e.send(new qm(t))}catch(e){if(n=e,e.name&&"ResourceNotFoundException"==e.name)return{state:Uh.SUCCESS,reason:n}}return{state:Uh.RETRY,reason:n}},ug=async(e,t)=>Vh({minDelay:20,maxDelay:120,...e},t,cg),lg=async(e,t)=>{const n=await Vh({minDelay:20,maxDelay:120,...e},t,cg);return Mh(n)},dg={BatchExecuteStatementCommand:wm,BatchGetItemCommand:Am,BatchWriteItemCommand:xm,CreateBackupCommand:vm,CreateGlobalTableCommand:Rm,CreateTableCommand:Pm,DeleteBackupCommand:$m,DeleteItemCommand:Om,DeleteResourcePolicyCommand:Nm,DeleteTableCommand:Lm,DescribeBackupCommand:Bm,DescribeContinuousBackupsCommand:_m,DescribeContributorInsightsCommand:km,DescribeEndpointsCommand:yd,DescribeExportCommand:Um,DescribeGlobalTableCommand:Mm,DescribeGlobalTableSettingsCommand:Gm,DescribeImportCommand:Fm,DescribeKinesisStreamingDestinationCommand:jm,DescribeLimitsCommand:Wm,DescribeTableCommand:qm,DescribeTableReplicaAutoScalingCommand:zm,DescribeTimeToLiveCommand:Vm,DisableKinesisStreamingDestinationCommand:Km,EnableKinesisStreamingDestinationCommand:Hm,ExecuteStatementCommand:Qm,ExecuteTransactionCommand:Ym,ExportTableToPointInTimeCommand:Jm,GetItemCommand:Zm,GetResourcePolicyCommand:Xm,ImportTableCommand:eh,ListBackupsCommand:th,ListContributorInsightsCommand:nh,ListExportsCommand:rh,ListGlobalTablesCommand:sh,ListImportsCommand:ih,ListTablesCommand:oh,ListTagsOfResourceCommand:ah,PutItemCommand:ch,PutResourcePolicyCommand:uh,QueryCommand:lh,RestoreTableFromBackupCommand:dh,RestoreTableToPointInTimeCommand:ph,ScanCommand:mh,TagResourceCommand:hh,TransactGetItemsCommand:gh,TransactWriteItemsCommand:fh,UntagResourceCommand:yh,UpdateContinuousBackupsCommand:bh,UpdateContributorInsightsCommand:Eh,UpdateGlobalTableCommand:Sh,UpdateGlobalTableSettingsCommand:Th,UpdateItemCommand:Ih,UpdateKinesisStreamingDestinationCommand:Dh,UpdateTableCommand:Ch,UpdateTableReplicaAutoScalingCommand:wh,UpdateTimeToLiveCommand:Ah},pg={paginateListContributorInsights:Ph,paginateListExports:$h,paginateListImports:Oh,paginateListTables:Nh,paginateQuery:Lh,paginateScan:Bh},mg={waitUntilContributorInsightsEnabled:Qh,waitUntilExportCompleted:Zh,waitUntilImportCompleted:tg,waitUntilKinesisStreamingDestinationActive:sg,waitUntilTableExists:ag,waitUntilTableNotExists:lg};class hg extends Cm{}((e,t,n)=>{for(const[n,r]of Object.entries(e)){const e=async function(e,t,n){const s=new r(e);if("function"==typeof t)this.send(s,t);else{if("function"!=typeof n)return this.send(s,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(s,t||{},n)}},s=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[s]=e}const{paginators:r={},waiters:s={}}=n??{};for(const[e,n]of Object.entries(r))void 0===t.prototype[e]&&(t.prototype[e]=function(e={},t,...r){return n({...t,client:this},e,...r)});for(const[e,n]of Object.entries(s))void 0===t.prototype[e]&&(t.prototype[e]=async function(e={},t,...r){let s=t;return"number"==typeof t&&(s={maxWaitTime:t}),n({...s,client:this},e,...r)})})(dg,hg,{paginators:pg,waiters:mg});const gg={MICROSECOND:"MICROSECOND",MILLISECOND:"MILLISECOND"},fg={ADD:"ADD",DELETE:"DELETE",PUT:"PUT"},yg={B:"B",N:"N",S:"S"},bg={AVAILABLE:"AVAILABLE",CREATING:"CREATING",DELETED:"DELETED"},Eg={AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"},Sg={PAY_PER_REQUEST:"PAY_PER_REQUEST",PROVISIONED:"PROVISIONED"},Tg={HASH:"HASH",RANGE:"RANGE"},Ig={ALL:"ALL",INCLUDE:"INCLUDE",KEYS_ONLY:"KEYS_ONLY"},Dg={AES256:"AES256",KMS:"KMS"},Cg={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",UPDATING:"UPDATING"},wg={KEYS_ONLY:"KEYS_ONLY",NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE",OLD_IMAGE:"OLD_IMAGE"},Ag={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING"},xg={ALL:"ALL",AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"},vg={INDEXES:"INDEXES",NONE:"NONE",TOTAL:"TOTAL"},Rg={ALL_OLD:"ALL_OLD",NONE:"NONE"},Pg={AccessDenied:"AccessDenied",ConditionalCheckFailed:"ConditionalCheckFailed",DuplicateItem:"DuplicateItem",InternalServerError:"InternalServerError",ItemCollectionSizeLimitExceeded:"ItemCollectionSizeLimitExceeded",ProvisionedThroughputExceeded:"ProvisionedThroughputExceeded",RequestLimitExceeded:"RequestLimitExceeded",ResourceNotFound:"ResourceNotFound",ThrottlingError:"ThrottlingError",TransactionConflict:"TransactionConflict",ValidationError:"ValidationError"},$g={NONE:"NONE",SIZE:"SIZE"},Og={BEGINS_WITH:"BEGINS_WITH",BETWEEN:"BETWEEN",CONTAINS:"CONTAINS",EQ:"EQ",GE:"GE",GT:"GT",IN:"IN",LE:"LE",LT:"LT",NE:"NE",NOT_CONTAINS:"NOT_CONTAINS",NOT_NULL:"NOT_NULL",NULL:"NULL"},Ng={AND:"AND",OR:"OR"},Lg={DISABLED:"DISABLED",ENABLED:"ENABLED"},Bg={DISABLED:"DISABLED",ENABLED:"ENABLED"},_g={DISABLE:"DISABLE",ENABLE:"ENABLE"},kg={ACCESSED_AND_THROTTLED_KEYS:"ACCESSED_AND_THROTTLED_KEYS",THROTTLED_KEYS:"THROTTLED_KEYS"},Ug={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",FAILED:"FAILED"},Mg={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"},Gg={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"},Fg={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_WITH_OVERRIDES:"ENABLED_WITH_OVERRIDES"},jg={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",CREATION_FAILED:"CREATION_FAILED",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REGION_DISABLED:"REGION_DISABLED",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"},Wg={STANDARD:"STANDARD",STANDARD_INFREQUENT_ACCESS:"STANDARD_INFREQUENT_ACCESS"},qg={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"},zg={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING"},Vg={EVENTUAL:"EVENTUAL",STRONG:"STRONG"},Kg={ALL_NEW:"ALL_NEW",ALL_OLD:"ALL_OLD",NONE:"NONE",UPDATED_NEW:"UPDATED_NEW",UPDATED_OLD:"UPDATED_OLD"},Hg={DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"},Qg={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Yg={FULL_EXPORT:"FULL_EXPORT",INCREMENTAL_EXPORT:"INCREMENTAL_EXPORT"},Jg={NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE"},Zg={AES256:"AES256",KMS:"KMS"},Xg={CANCELLED:"CANCELLED",CANCELLING:"CANCELLING",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},ef={GZIP:"GZIP",NONE:"NONE",ZSTD:"ZSTD"},tf={CSV:"CSV",DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"},nf={ACTIVE:"ACTIVE",DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLE_FAILED:"ENABLE_FAILED",ENABLING:"ENABLING",UPDATING:"UPDATING"},rf={ALL_ATTRIBUTES:"ALL_ATTRIBUTES",ALL_PROJECTED_ATTRIBUTES:"ALL_PROJECTED_ATTRIBUTES",COUNT:"COUNT",SPECIFIC_ATTRIBUTES:"SPECIFIC_ATTRIBUTES"}},33938:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=e=>encodeURIComponent(e).replace(/[!'()*]/g,s),s=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},34338:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});let r=!1;const s=e=>{e&&!r&&parseInt(e.substring(1,e.indexOf(".")))<16&&(r=!0)}},34708:(e,t,n)=>{"use strict";n.d(t,{v4:()=>a});var r=n(76982),s=n.n(r);const i=s().randomUUID.bind(s()),o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),a=()=>{if(i)return i();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,o[e[0]]+o[e[1]]+o[e[2]]+o[e[3]]+"-"+o[e[4]]+o[e[5]]+"-"+o[e[6]]+o[e[7]]+"-"+o[e[8]]+o[e[9]]+"-"+o[e[10]]+o[e[11]]+o[e[12]]+o[e[13]]+o[e[14]]+o[e[15]]}},35197:(e,t,n)=>{"use strict";n.d(t,{Df:()=>o,G8:()=>s,Rn:()=>c,XP:()=>u,XS:()=>a,bp:()=>r,jh:()=>i,l5:()=>l,ok:()=>d});const r=100,s=2e4,i=500,o=500,a=5,c=10,u=1,l="amz-sdk-invocation-id",d="amz-sdk-request"},35789:(e,t,n)=>{"use strict";n.d(t,{Jj:()=>i,TA:()=>o});var r=n(51455);const s={},i={},o=(e,t)=>void 0!==i[e]?i[e]:(s[e]&&!t?.ignoreCache||(s[e]=(0,r.readFile)(e,"utf8")),s[e])},38097:(e,t,n)=>{"use strict";n.d(t,{GQ:()=>l,Qb:()=>c,bV:()=>u});const r=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],s=["TimeoutError","RequestTimeout","RequestTimeoutException"],i=[500,502,503,504],o=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],a=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c=e=>429===e.$metadata?.httpStatusCode||r.includes(e.name)||1==e.$retryable?.throttling,u=(e,t=0)=>(e=>void 0!==e?.$retryable)(e)||(e=>e.$metadata?.clockSkewCorrected)(e)||s.includes(e.name)||o.includes(e?.code||"")||a.includes(e?.code||"")||i.includes(e.$metadata?.httpStatusCode||0)||(e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||void 0!==e.cause&&t<=10&&u(e.cause,t+1),l=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!u(e)}return!1}},39181:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(25272),s=n(40935);const i=e=>{let t;if(t="string"==typeof e?(0,s.a)(e):e,"object"!=typeof t||"number"!=typeof t.byteOffset||"number"!=typeof t.byteLength)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,r.Q)(t.buffer,t.byteOffset,t.byteLength).toString("base64")}},39412:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(81974),s=n(80618),i=n(8641);const o=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:a}=e,c=null!=n?async()=>(0,i.a)(await(0,r.t)(n)()):void 0,u=!!n,l=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:u,useDualstackEndpoint:(0,r.t)(o??!1),useFipsEndpoint:(0,r.t)(a??!1)});let d;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=(0,s.k)(e.serviceId)),d),l}},40768:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(16928),s=n(14581);const i=()=>process.env.AWS_CONFIG_FILE||(0,r.join)((0,s.R)(),".aws","config")},40935:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(25272);const s=e=>{const t=(0,r.s)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}},41206:e=>{function t(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}t.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e},"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this}),t.of=function(){var e=arguments,n=e.length,r=0;return new t(function(){return r>=n?{done:!0}:{done:!1,value:e[r++]}})},t.empty=function(){var e=new t(null);return e.done=!0,e},t.is=function(e){return e instanceof t||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=t},41844:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(90814),s=n(46086);const i=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,o=["__proto__","profile __proto__"],a=e=>{const t={};let n,a;for(const c of e.split(/\r?\n/)){const e=c.split(/(^|\s)[;#]/)[0].trim();if("["===e[0]&&"]"===e[e.length-1]){n=void 0,a=void 0;const t=e.substring(1,e.length-1),c=i.exec(t);if(c){const[,e,,t]=c;Object.values(r.I).includes(e)&&(n=[e,t].join(s.Q))}else n=t;if(o.includes(t))throw new Error(`Found invalid profile name "${t}"`)}else if(n){const r=e.indexOf("=");if(![0,-1].includes(r)){const[i,o]=[e.substring(0,r).trim(),e.substring(r+1).trim()];if(""===o)a=i;else{a&&c.trimStart()===c&&(a=void 0),t[n]=t[n]||{};const e=a?[a,i].join(s.Q):i;t[n][e]=o}}}}return t}},43281:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(68413);class s extends r.m{name="CredentialsProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,s.prototype)}}},44373:(e,t,n)=>{"use strict";n.d(t,{cJ:()=>o,Y2:()=>i});var r=n(78607),s=n(2914);const i=(e,t)=>((e,t)=>(0,r.P)(e,t).then(e=>(t?.utf8Encoder??s.P)(e)))(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),o=(e,t)=>{const n=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},s=n(e.headers,"x-amzn-errortype");if(void 0!==s)return r(e.headers[s]);if(t&&"object"==typeof t){const e=n(t,"code");if(e&&void 0!==t[e])return r(t[e]);if(void 0!==t.__type)return r(t.__type)}}},45326:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(45547);const s={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},i=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:i=>{i.addRelativeTo(((e,t)=>(n,s)=>async i=>{const o=((e,t)=>{if(!t||0===t.length)return e;const n=[];for(const r of t)for(const t of e)t.schemeId.split("#")[1]===r&&n.push(t);for(const t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,s,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),a=function(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}(e.httpAuthSchemes),c=(0,r.u)(s),u=[];for(const n of o){const r=a.get(n.schemeId);if(!r){u.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const i=r.identityProvider(await t.identityProviderConfigProvider(e));if(!i){u.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:o={},signingProperties:l={}}=n.propertiesExtractor?.(e,s)||{};n.identityProperties=Object.assign(n.identityProperties||{},o),n.signingProperties=Object.assign(n.signingProperties||{},l),c.selectedHttpAuthScheme={httpAuthOption:n,identity:await i(n.identityProperties),signer:r.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join("\n"));return n(i)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),s)}})},45547:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(86247);const s=e=>e[r.V]||(e[r.V]={})},46086:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r="."},46109:(e,t,n)=>{"use strict";n.d(t,{Ko:()=>i});var r=n(91349),s=n(18241);const i={environmentVariableSelector:e=>(0,r.Q)(e,"AWS_USE_FIPS_ENDPOINT",s.c.ENV),configFileSelector:e=>(0,r.Q)(e,"use_fips_endpoint",s.c.CONFIG),default:!1}},48105:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});class r{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const n=this.hash(e);if(!1===n)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(0===n.length)return!1;for(const r of n){const n=String(e[r]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}},48828:(e,t,n)=>{"use strict";var r;n.d(t,{Gz:()=>s,L0:()=>i,cm:()=>r}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(r||(r={}));const s=3,i=r.STANDARD},50224:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});const r=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const e of t)n.push(e);return n},s=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,i=()=>{let e=[],t=[],n=!1;const c=new Set,u=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(p.identifyOnResolve()),n),l=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t},d=(n=!1)=>{const i=[],c=[],u={};var d;return e.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(t.name,t.aliases))u[e]=t;i.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(t.name,t.aliases))u[e]=t;c.push(t)}),c.forEach(e=>{if(e.toMiddleware){const t=u[e.toMiddleware];if(void 0===t){if(n)return;throw new Error(`${e.toMiddleware} is not found when adding ${s(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),(d=i,d.sort((e,t)=>o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"])).map(l).reduce((e,t)=>(e.push(...t),e),[])},p={add:(t,n={})=>{const{name:i,override:o,aliases:a}=n,u={step:"initialize",priority:"normal",middleware:t,...n},l=r(i,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw new Error(`Duplicate middleware name '${s(i,a)}'`);for(const t of l){const n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===n)continue;const r=e[n];if(r.step!==u.step||u.priority!==r.priority)throw new Error(`"${s(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${s(i,a)}" middleware with ${u.priority} priority in ${u.step} step.`);e.splice(n,1)}}for(const e of l)c.add(e)}e.push(u)},addRelativeTo:(e,n)=>{const{name:i,override:o,aliases:a}=n,u={middleware:e,...n},l=r(i,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw new Error(`Duplicate middleware name '${s(i,a)}'`);for(const e of l){const n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===n)continue;const r=t[n];if(r.toMiddleware!==u.toMiddleware||r.relation!==u.relation)throw new Error(`"${s(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${s(i,a)}" middleware ${u.relation} "${u.toMiddleware}" middleware.`);t.splice(n,1)}}for(const e of l)c.add(e)}t.push(u)},clone:()=>u(i()),use:e=>{e.applyToStack(p)},remove:n=>"string"==typeof n?(n=>{let s=!1;const i=e=>{const t=r(e.name,e.aliases);if(t.includes(n)){s=!0;for(const e of t)c.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),s})(n):(n=>{let s=!1;const i=e=>{if(e.middleware===n){s=!0;for(const t of r(e.name,e.aliases))c.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),s})(n),removeByTag:n=>{let s=!1;const i=e=>{const{tags:t,name:i,aliases:o}=e;if(t&&t.includes(n)){const e=r(i,o);for(const t of e)c.delete(t);return s=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),s},concat:e=>{const t=u(i());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:u,identify:()=>d(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return s(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(n=e),n),resolve:(e,t)=>{for(const n of d().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(p.identify()),e}};return p},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1}},50469:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(59772),s=n(76460);const i=Symbol.for("@smithy/nor-struct-it");class o{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=o.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const n=[];let i=e,a=e;for(this._isMemberSchema=!1;c(i);)n.push(i[1]),i=i[0],a=(0,r.L)(i),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,(0,s.c)(t))}}else this.memberTraits=0;if(a instanceof o){const e=this.memberTraits;return Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??a.memberName)}if(this.schema=(0,r.L)(a),u(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){const t=(0,r.L)(e);if(t instanceof o)return t;if(c(t)){const[n,r]=t;if(n instanceof o)return Object.assign(n.getMergedTraits(),(0,s.c)(r)),n;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new o(t)}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return(0,s.c)(this.memberTraits)}getOwnTraits(){return(0,s.c)(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const n=this.getSchema();return a([e?15:n[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s="number"==typeof e?63&e:e&&"object"==typeof e&&(n||r)?e[3+e[0]]:t?15:void 0;if(null!=s)return a([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e),r=t[5][n];return a(c(r)?r:[r,0],e)}if(this.isDocumentSchema())return a([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator())e[t]=n}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),t=e[4].length;let n=e[i];if(n&&t===n.length)yield*n;else{n=Array(t);for(let r=0;r<t;++r){const t=e[4][r],s=a([e[5][r],0],t);yield n[r]=[t,s]}e[i]=n}}}function a(e,t){return e instanceof o?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new o(e,t)}const c=e=>Array.isArray(e)&&2===e.length,u=e=>Array.isArray(e)&&e.length>=5},51453:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});class r{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(e){return r.registries.has(e)||r.registries.set(e,new r(e)),r.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,r]of e.schemas)t.has(n)||t.set(n,r);for(const[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,r.for(n.split("#")[0])])e.schemas.set(n,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){const n=e,s=n[1];for(const e of[this,r.for(s)])e.schemas.set(s+"#"+n[2],n),e.exceptions.set(n,t)}getErrorCtor(e){const t=e;return this.exceptions.has(t)?this.exceptions.get(t):r.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,n]=e,r=t+"#"+n;if(r.startsWith("smithy.ts.sdk.synthetic.")&&r.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},53101:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var r=n(26144),s=n(50469),i=n(10015),o=n(70764),a=n(34708),c=n(84651),u=n(39181),l=n(88791);const d=String.fromCharCode(925);class p{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof o.D){const e=d+"nv"+this.counter+++"_"+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){const e=t.toString(),n=d+"b"+this.counter+++"_"+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(0===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(const[t,n]of this.values)e=e.replace(t,n);return e}}class m extends l.B{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=s.l.of(e),this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=s.l.of(e).getName(!0))}flush(){const{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);const e=new p;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const l=null!==t&&"object"==typeof t,d=s.l.of(e);if(l){if(d.isStructSchema()){const e=t,n={},{jsonName:r}=this.settings;let s;r&&(s={});for(const[t,i]of d.structIterator()){const o=this._write(i,e[t],d);if(void 0!==o){let e=t;r&&(e=i.getMergedTraits().jsonName??t,s[t]=e),n[e]=o}}if(d.isUnionSchema()&&0===Object.keys(n).length){const{$unknown:t}=e;if(Array.isArray(t)){const[e,r]=t;n[e]=this._write(15,r)}}else if("string"==typeof e.__type)for(const[t,i]of Object.entries(e)){const e=r?s[t]??t:t;e in n||(n[e]=this._write(15,i))}return n}if(Array.isArray(t)&&d.isListSchema()){const e=d.getValueSchema(),n=[],r=!!d.getMergedTraits().sparse;for(const s of t)(r||null!=s)&&n.push(this._write(e,s));return n}if(d.isMapSchema()){const e=d.getValueSchema(),n={},r=!!d.getMergedTraits().sparse;for(const[s,i]of Object.entries(t))(r||null!=i)&&(n[s]=this._write(e,i));return n}if(t instanceof Uint8Array&&(d.isBlobSchema()||d.isDocumentSchema()))return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??u.n)(t);if(t instanceof Date&&(d.isTimestampSchema()||d.isDocumentSchema()))switch((0,r.V)(d,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return(0,i.JV)(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}t instanceof o.D&&(this.useReplacer=!0)}if(null!==t||!n?.isStructSchema()){if(d.isStringSchema()){if(void 0===t&&d.isIdempotencyToken())return(0,a.v4)();const e=d.getMergedTraits().mediaType;return null!=t&&e&&("application/json"===e||e.endsWith("+json"))?c.A.from(t):t}if("number"==typeof t&&d.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&d.isBlobSchema())return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??u.n)(t);if("bigint"==typeof t&&(this.useReplacer=!0),d.isDocumentSchema()){if(l){const e=Array.isArray(t)?[]:{};for(const[n,r]of Object.entries(t))r instanceof o.D?(this.useReplacer=!0,e[n]=r):e[n]=this._write(d,r);return e}return structuredClone(t)}return t}}}},53347:(e,t,n)=>{"use strict";function r(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}n.d(t,{g:()=>r})},53433:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(68413);const s=(...e)=>async()=>{if(0===e.length)throw new r.m("No providers in chain");let t;for(const n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}},53924:e=>{var t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof Symbol;function r(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],o);else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,o),o++;else e.forEach(r)}r.forEachWithNullKeys=function(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],null);else if(e instanceof Set)e.forEach(function(e){r(e,null)});else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,null),o++;else e.forEach(r)},e.exports=r},55425:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(73024);const s=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.byteLength(e);if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;if("number"==typeof e.start&&"number"==typeof e.end)return e.end+1-e.start;if(e instanceof r.ReadStream){if(null!=e.path)return(0,r.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)}},57815:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},59772:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=e=>"function"==typeof e?e():e},61019:(e,t,n)=>{"use strict";n.d(t,{sM:()=>m});var r=n(2456),s=n(81781);function i(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const o=/\d{12}\.ddb/,a="user-agent",c="x-amz-user-agent",u=/[^!$%&'*+\-.^_`|~\w]/g,l=/[^!$%&'*+\-.^_`|~\w#]/g,d=e=>{const t=e[0].split("/").map(e=>e.replace(u,"-")).join("/"),n=e[1]?.replace(l,"-"),r=t.indexOf("/"),s=t.substring(0,r);let i=t.substring(r+1);return"api"===s&&(i=i.toLowerCase()),[s,i,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},p={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},m=e=>({applyToStack:t=>{var n;t.add((n=e,(e,t)=>async u=>{const{request:l}=u;if(!s.K.isInstance(l))return e(u);const{headers:p}=l,m=t?.userAgent?.map(d)||[],h=(await n.defaultUserAgentProvider()).map(d);await async function(e,t,n){const r=n.request;if("rpc-v2-cbor"===r?.headers?.["smithy-protocol"]&&i(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const n=await t.retryStrategy();"function"==typeof n.acquireInitialRetryToken?n.constructor?.name?.includes("Adaptive")?i(e,"RETRY_MODE_ADAPTIVE","F"):i(e,"RETRY_MODE_STANDARD","E"):i(e,"RETRY_MODE_LEGACY","D")}if("function"==typeof t.accountIdEndpointMode){const n=e.endpointV2;switch(String(n?.url?.hostname).match(o)&&i(e,"ACCOUNT_ID_ENDPOINT","O"),await(t.accountIdEndpointMode?.())){case"disabled":i(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":i(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":i(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const t=s;t.accountId&&i(e,"RESOLVED_ACCOUNT_ID","T");for(const[n,r]of Object.entries(t.$source??{}))i(e,n,r)}}(t,n,u);const g=t;h.push(`m/${function(e){let t="";for(const n in e){const r=e[n];if(!(t.length+r.length+1<=1024))break;t.length?t+=","+r:t+=r}return t}(Object.assign({},t.__smithy_context?.features,g.__aws_sdk_context?.features))}`);const f=n?.customUserAgent?.map(d)||[],y=await n.userAgentAppId();y&&h.push(d(["app",`${y}`]));const b=(0,r.vL)(),E=(b?[b]:[]).concat([...h,...m,...f]).join(" "),S=[...h.filter(e=>e.startsWith("aws-sdk-")),...f].join(" ");return"browser"!==n.runtime?(S&&(p[c]=p[c]?`${p[a]} ${S}`:S),p[a]=E):p[c]=E,e({...u,request:l})}),p)}})},63139:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var r=n(50469),s=n(81781),i=n(78607),o=n(98314);class a extends o.t{async serializeRequest(e,t,n){const i=this.serializer,o={},a={},c=await n.endpoint(),u=r.l.of(e?.input),l=u.getSchema();let d;const p=new s.K({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});c&&(this.updateServiceEndpoint(p,c),this.setHostPrefix(p,e,t));const m={...t};if(t){const e=u.getEventStreamMember();if(e){if(m[e]){const t={};for(const[n,r]of u.structIterator())n!==e&&m[n]&&(i.write(r,m[n]),t[n]=i.flush());d=await this.serializeEventStream({eventStream:m[e],requestSchema:u,initialRequest:t})}}else i.write(l,m),d=i.flush()}return p.headers=a,p.query=o,p.body=d,p.method="POST",p}async deserializeResponse(e,t,n){const s=this.deserializer,o=r.l.of(e.output),a={};if(n.statusCode>=300){const r=await(0,i.P)(n.body,t);throw r.byteLength>0&&Object.assign(a,await s.read(15,r)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}const c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{const e=await(0,i.P)(n.body,t);e.byteLength>0&&Object.assign(a,await s.read(o,e))}return a.$metadata=this.deserializeMetadata(n),a}}},63282:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},64238:(e,t,n)=>{var r=n(41206),s=n(53924),i=n(10669),o=n(14497);function a(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,"number"!=typeof this.capacity||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=i.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K="function"==typeof e?new e(n):new Array(n),this.V="function"==typeof t?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}a.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},a.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},a.prototype.set=function(e,t){var n=this.items[e];if(void 0!==n)return this.splayOnTop(n),void(this.V[n]=t);this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},a.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return void 0!==s?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)},a.prototype.has=function(e){return e in this.items},a.prototype.get=function(e){var t=this.items[e];if(void 0!==t)return this.splayOnTop(t),this.V[t]},a.prototype.peek=function(e){var t=this.items[e];if(void 0!==t)return this.V[t]},a.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,o=this.V,a=this.forward;n<r;)e.call(t,o[s],i[s],this),s=a[s],n++},a.prototype.keys=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}})},a.prototype.values=function(){var e=0,t=this.size,n=this.head,s=this.V,i=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}})},a.prototype.entries=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.V,o=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n],a=i[n];return++e<t&&(n=o[n]),{done:!1,value:[r,a]}})},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=function(){for(var e,t=new Map,n=this.entries();!(e=n.next()).done;)t.set(e.value[0],e.value[1]);return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t,n,r){if(arguments.length<2){if("number"!=typeof(r=o.guessLength(e)))throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2===arguments.length&&(r=t,t=null,n=null);var i=new a(t,n,r);return s(e,function(e,t){i.set(t,e)}),i},e.exports=a},64327:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2203);class s extends r.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}const i=e=>o(e)?async function(e){const t=[],n=e.getReader();let r=!1,s=0;for(;!r;){const{done:e,value:i}=await n.read();i&&(t.push(i),s+=i.length),r=e}const i=new Uint8Array(s);let o=0;for(const e of t)i.set(e,o),o+=e.length;return i}(e):new Promise((t,n)=>{const r=new s;e.pipe(r),e.on("error",e=>{r.end(),n(e)}),r.on("error",n),r.on("finish",function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)})}),o=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream},66686:(e,t,n)=>{"use strict";n.d(t,{r:()=>p});var r=n(45547);const s=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,i=/(\d+\.){3}\d+/,o=/\.\./,a=(e,t,n,r=!1)=>{const s=async()=>{let s;if(r){const r=n.clientContextParams,i=r?.[e];s=i??n[e]??n[t]}else s=n[e]??n[t];return"function"==typeof s?s():s};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===n.isCustomEndpoint)return;const e=await s();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:n,port:r,path:s}=e;return`${t}//${n}${r?":"+r:""}${s}`}}return e}:s};var c=n(80618),u=n(8641);const l=async(e,t,n)=>{const r={},c=t?.getEndpointParameterInstructions?.()||{};for(const[t,s]of Object.entries(c))switch(s.type){case"staticContextParams":r[t]=s.value;break;case"contextParams":r[t]=e[s.name];break;case"clientContextParams":case"builtInParams":r[t]=await a(s.name,t,n,"builtInParams"!==s.type)();break;case"operationContextParams":r[t]=s.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(c).length&&Object.assign(r,n),"s3"===String(n.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(e=>{const[t,n,r,,,s]=e.split(":"),i="arn"===t&&e.split(":").length>=6,o=Boolean(i&&n&&r&&s);if(i&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else n=t,(!s.test(n)||i.test(n)||o.test(n)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var n;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(r),r},d={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},p=(e,t)=>({applyToStack:n=>{n.addRelativeTo((({config:e,instructions:t})=>(n,s)=>async i=>{e.isCustomEndpoint&&function(e){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features.ENDPOINT_OVERRIDE="N"}(s);const o=await(async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await(0,c.k)(n.serviceId),e&&(n.endpoint=()=>Promise.resolve((0,u.a)(e)),n.isCustomEndpoint=!0)}const s=await l(e,t,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)})(i.input,{getEndpointParameterInstructions:()=>t},{...e},s);s.endpointV2=o,s.authSchemes=o.properties?.authSchemes;const a=s.authSchemes?.[0];if(a){s.signing_region=a.signingRegion,s.signing_service=a.signingName;const e=(0,r.u)(s),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return n({...i})})({config:e,instructions:t}),d)}})},67933:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=e=>{if("string"==typeof e)return r(new URL(e));const{hostname:t,pathname:n,port:s,protocol:i,search:o}=e;let a;return o&&(a=function(e){const t={};if(e=e.replace(/^\?/,""))for(const n of e.split("&")){let[e,r=null]=n.split("=");e=decodeURIComponent(e),r&&(r=decodeURIComponent(r)),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}(o)),{hostname:t,port:s?parseInt(s):void 0,protocol:i,path:n,query:a}}},68249:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(81781),s=n(45547);const i=e=>e=>{throw e},o=(e,t)=>{},a={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async n=>{if(!r.K.isInstance(n.request))return e(n);const a=(0,s.u)(t).selectedHttpAuthScheme;if(!a)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:c={}},identity:u,signer:l}=a,d=await e({...n,request:await l.sign(n.request,u,c)}).catch((l.errorHandler||i)(c));return(l.successHandler||o)(d.response,c),d},a)}})},68413:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});class r extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let n,s=!0;"boolean"==typeof t?(n=void 0,s=t):null!=t&&"object"==typeof t&&(n=t.logger,s=t.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,r.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}},69958:(e,t,n)=>{"use strict";n.d(t,{pi:()=>o,sF:()=>a,yG:()=>i});var r=n(53347),s=n(43281);const i="AWS_ACCESS_KEY_ID",o="AWS_SECRET_ACCESS_KEY",a=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[i],n=process.env[o],a=process.env.AWS_SESSION_TOKEN,c=process.env.AWS_CREDENTIAL_EXPIRATION,u=process.env.AWS_CREDENTIAL_SCOPE,l=process.env.AWS_ACCOUNT_ID;if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...a&&{sessionToken:a},...c&&{expiration:new Date(c)},...u&&{credentialScope:u},...l&&{accountId:l}};return(0,r.g)(e,"CREDENTIALS_ENV_VARS","g"),e}throw new s.C("Unable to find environment variable credentials.",{logger:e?.logger})}},70764:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});const r=/^-?\d*(\.\d+)?$/;class s{string;type;constructor(e,t){if(this.string=e,this.type=t,!r.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return s.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&r.test(t.string)}}},70775:(e,t,n)=>{"use strict";n.d(t,{n:()=>p});const r={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},s={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");i||(globalThis.awslambda=globalThis.awslambda||{});class o{static PROTECTED_KEYS=s;isProtectedKey(e){return Object.values(s).includes(e)}getRequestId(){return this.get(s.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(s.X_RAY_TRACE_ID)}getTenantId(){return this.get(s.TENANT_ID)}}class a extends o{currentContext;getContext(){return this.currentContext}hasContext(){return void 0!==this.currentContext}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){return this.currentContext=e,t()}}class c extends o{als;static async create(){const e=new c,t=await Promise.resolve().then(n.t.bind(n,16698,23));return e.als=new t.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return void 0!==this.als.getStore()}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);const n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=t}run(e,t){return this.als.run(e,t)}}var u;!function(e){let t=null;e.getInstanceAsync=async function(){return t||(t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await c.create():new a;return!i&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:!i&&globalThis.awslambda?(globalThis.awslambda.InvokeStore=e,e):e})()),t},e._testing="1"===process.env.AWS_LAMBDA_BENCHMARK_MODE?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0}(u||(u={}));var l=n(81781);const d="X-Amzn-Trace-Id",p=e=>({applyToStack:e=>{e.add(e=>async t=>{const{request:n}=t;if(!l.K.isInstance(n))return e(t);const r=Object.keys(n.headers??{}).find(e=>e.toLowerCase()===d.toLowerCase())??d;if(n.headers.hasOwnProperty(r))return e(t);const s=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,o=await u.getInstanceAsync(),a=o?.getXRayTraceId(),c=a??i,p=e=>"string"==typeof e&&e.length>0;return p(s)&&p(c)&&(n.headers[d]=c),e({...t,request:n})},r)}})},72084:(e,t,n)=>{"use strict";n.d(t,{qs:()=>m,kN:()=>g,$z:()=>h});var r=n(81974),s=n(48828),i=n(38097);class o{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>o.setTimeoutFn(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),(0,i.Qb)(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}var a=n(35197);const c=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(a.G8,e),getRetryCost:()=>n});class u{maxAttempts;mode=s.cm.STANDARD;capacity=a.Df;retryBackoffStrategy=(()=>{let e=a.bp;return{computeNextBackoffDelay:t=>Math.floor(Math.min(a.G8,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return c({retryDelay:a.bp,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===n?a.jh:a.bp);const r=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,r):r,i=this.getCapacityCost(n);return this.capacity-=i,c({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(a.Df,this.capacity+(e.getRetryCost()??a.XP))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${s.Gz}`),s.Gz}}shouldRetry(e,t,n){return e.getRetryCount()+1<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?a.Rn:a.XS}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class l{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=s.cm.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new o,this.standardRetryStrategy=new u(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const d="AWS_MAX_ATTEMPTS",p="max_attempts",m={environmentVariableSelector:e=>{const t=e[d];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${d} mast be a number, got "${t}"`);return n},configFileSelector:e=>{const t=e[p];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${p} mast be a number, got "${t}"`);return n},default:s.Gz},h=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:i}=e,o=(0,r.t)(i??s.Gz);return Object.assign(e,{maxAttempts:o,retryStrategy:async()=>t||(await(0,r.t)(n)()===s.cm.ADAPTIVE?new l(o):new u(o))})},g={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:s.L0}},74534:(e,t,n)=>{"use strict";n.d(t,{Y7:()=>s});const r={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},s=e=>({applyToStack:e=>{e.add((e,t)=>async n=>{try{const r=await e(n),{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:p,...m}=r.output;return o?.info?.({clientName:s,commandName:i,input:l(n.input),output:d(m),metadata:p}),r}catch(e){const{clientName:r,commandName:s,logger:i,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:a}=o,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:r,commandName:s,input:c(n.input),error:e,metadata:e.$metadata}),e}},r)}})},75279:(e,t,n)=>{"use strict";n.d(t,{wq:()=>d});var r=n(20945),s=n(45547);const i=(e,t,n,r,s)=>({name:t,namespace:e,traits:n,input:r,output:s}),o=e=>(t,n)=>async o=>{const{response:c}=await t(o),{operationSchema:u}=(0,s.u)(n),[,l,d,p,m,h]=u??[];try{return{response:c,output:await e.protocol.deserializeResponse(i(l,d,p,m,h),{...e,...n},c)}}catch(e){if(Object.defineProperty(e,"$response",{value:c,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n "+t}catch(e){n.logger&&"NoOpLogger"!==n.logger?.constructor?.name?n.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(r.c.isInstance(c)){const{headers:t={}}=c,n=Object.entries(t);e.$metadata={httpStatusCode:c.statusCode,requestId:a(/^x-[\w-]+-request-?id$/,n),extendedRequestId:a(/^x-[\w-]+-id-2$/,n),cfId:a(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}},a=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],c=e=>(t,n)=>async r=>{const{operationSchema:o}=(0,s.u)(n),[,a,c,u,l,d]=o??[],p=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,m=await e.protocol.serializeRequest(i(a,c,u,l,d),r.input,{...e,...n,endpoint:p});return t({...r,request:m})},u={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},l={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function d(e){return{applyToStack:t=>{t.add(c(e),l),t.add(o(e),u),e.protocol.setSerdeContext(e)}}}},76460:(e,t,n)=>{"use strict";function r(e){if("object"==typeof e)return e;e|=0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>n++&1)&&(t[r]=1);return t}n.d(t,{c:()=>r})},78607:(e,t,n)=>{"use strict";n.d(t,{P:()=>c});var r=n(12544),s=n(39181),i=n(40935),o=n(2914);class a extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?a.mutate((0,r.E)(e)):a.mutate((0,i.a)(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,a.prototype),e}transformToString(e="utf-8"){return"base64"===e?(0,s.n)(this):(0,o.P)(this)}}const c=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return a.mutate(e);if(!e)return a.mutate(new Uint8Array);const n=t.streamCollector(e);return a.mutate(await n)}},78646:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,j:()=>s});const r=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),s=e=>({httpHandler:e.httpHandler()})},78887:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(88791),s=n(88066),i=n(53101);class o extends r.B{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new i.a(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new s.d(this.settings);return e.setSerdeContext(this.serdeContext),e}}},80618:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(7387),s=n(46086);const i="AWS_ENDPOINT_URL",o="endpoint_url",a=async e=>(0,r.Z)((e=>({environmentVariableSelector:t=>{const n=e.split(" ").map(e=>e.toUpperCase()),r=t[[i,...n].join("_")];return r||(t[i]||void 0)},configFileSelector:(t,n)=>{if(n&&t.services){const r=n[["services",t.services].join(s.Q)];if(r){const t=r[[e.split(" ").map(e=>e.toLowerCase()).join("_"),o].join(s.Q)];if(t)return t}}const r=t[o];if(r)return r},default:void 0}))(e??""))()},81781:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});class r{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new r({...e,headers:{...e.headers}});var n;return t.query&&(t.query=(n=t.query,Object.keys(n).reduce((e,t)=>{const r=n[t];return{...e,[t]:Array.isArray(r)?[...r]:r}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return r.clone(this)}}},81974:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},82752:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},84651:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};r.from=e=>e&&"object"==typeof e&&(e instanceof r||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?r(String(e)):r(JSON.stringify(e)),r.fromObject=r.from},86247:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r="__smithy_context"},87140:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(40935);const s=e=>"string"==typeof e?(0,r.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},88066:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(26144),s=n(50469),i=n(84651),o=n(10015),a=n(70764),c=n(12544),u=n(88791),l=n(89946);function d(e,t,n){if(n?.source){const e=n.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)))return e.includes(".")?new a.D(e,"bigDecimal"):BigInt(e)}return t}var p=n(44373);class m extends u.B{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,"string"==typeof t?JSON.parse(t,d):await(0,p.Y2)(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=null!==t&&"object"==typeof t,u=s.l.of(e);if(n){if(u.isStructSchema()){const e=t,n=u.isUnionSchema(),r={};let s;const{jsonName:i}=this.settings;let o;i&&(s={}),n&&(o=new l.F(e,r));for(const[t,a]of u.structIterator()){let c=t;i&&(c=a.getMergedTraits().jsonName??c,s[c]=t),n&&o.mark(c),null!=e[c]&&(r[t]=this._read(a,e[c]))}if(n)o.writeUnknown();else if("string"==typeof e.__type)for(const[t,n]of Object.entries(e)){const e=i?s[t]??t:t;e in r||(r[e]=n)}return r}if(Array.isArray(t)&&u.isListSchema()){const e=u.getValueSchema(),n=[],r=!!u.getMergedTraits().sparse;for(const s of t)(r||null!=s)&&n.push(this._read(e,s));return n}if(u.isMapSchema()){const e=u.getValueSchema(),n={},r=!!u.getMergedTraits().sparse;for(const[s,i]of Object.entries(t))(r||null!=i)&&(n[s]=this._read(e,i));return n}}if(u.isBlobSchema()&&"string"==typeof t)return(0,c.E)(t);const d=u.getMergedTraits().mediaType;if(u.isStringSchema()&&"string"==typeof t&&d)return"application/json"===d||d.endsWith("+json")?i.A.from(t):t;if(u.isTimestampSchema()&&null!=t)switch((0,r.V)(u,this.settings)){case 5:return(0,o.t_)(t);case 6:return(0,o.xE)(t);case 7:return(0,o.l3)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(u.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(u.isBigDecimalSchema()&&null!=t){if(t instanceof a.D)return t;const e=t;return"bigDecimal"===e.type&&"string"in e?new a.D(e.string,e.type):new a.D(String(t),"bigDecimal")}if(u.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(u.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,r]of Object.entries(t))r instanceof a.D?e[n]=r:e[n]=this._read(u,r);return e}return structuredClone(t)}return t}}},88791:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},89946:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});class r{from;to;keys;constructor(e,t){this.from=e,this.to=t,this.keys=new Set(Object.keys(this.from).filter(e=>"__type"!==e))}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}},90814:(e,t,n)=>{"use strict";var r;n.d(t,{I:()=>r}),function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(r||(r={}))},90855:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});const r=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),s=(e,t=!1)=>{if(!t)return r.test(e);const n=e.split(".");for(const e of n)if(!s(e))return!1;return!0}},91349:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r=(e,t,n)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}}},92278:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,n:()=>o});const r={},s={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),r[e]=t,s[t]=e}function i(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in s))throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`);t[n/2]=s[r]}return t}function o(e){let t="";for(let n=0;n<e.byteLength;n++)t+=r[e[n]];return t}},93673:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,R:()=>r});const r=e=>({setRegion(t){e.region=t},region:()=>e.region}),s=e=>({region:e.region()})},94615:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(90855);const s=new Set,i=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),o=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e=(e=>i(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"==typeof t?await t():t);return((e,t=r.X)=>{if(s.has(e)||t(e))s.add(e);else{if("*"!==e)throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.')}})(e),e},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!i(e)||("function"!=typeof n?Promise.resolve(!!n):n())}})}},96901:(e,t,n)=>{"use strict";n.d(t,{GG:()=>r,zH:()=>s});const r={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},s={preferredFile:"credentials"}},96965:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});const r=e=>"string"==typeof e&&e.length>0?e.split(",").map(e=>e.trim()):[],s="AWS_AUTH_SCHEME_PREFERENCE",i="auth_scheme_preference",o={environmentVariableSelector:(e,t)=>t?.signingName&&`AWS_BEARER_TOKEN_${t.signingName.replace(/[\s-]/g,"_").toUpperCase()}`in e?["httpBearerAuth"]:s in e?r(e[s]):void 0,configFileSelector:e=>{if(i in e)return r(e[i])},default:[]}},97040:(e,t,n)=>{"use strict";n.d(t,{OV:()=>s,TC:()=>o});var r=n(81781);function s(e){return e}const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},o=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{if(!r.K.isInstance(n.request))return t(n);const{request:s}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let e=s.hostname;null!=s.port&&(e+=`:${s.port}`),s.headers.host=e}return t(n)})(e),i)}})},98229:(e,t,n)=>{"use strict";n.d(t,{Bz:()=>s,Ch:()=>r});const r="AWS_PROFILE",s=e=>e.profile||process.env[r]||"default"},98314:(e,t,n)=>{"use strict";n.d(t,{t:()=>u});var r=n(50469),s=n(76460),i=n(51453),o=n(81781),a=n(20945),c=n(63282);class u extends c.f{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=i.O.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return o.K}getResponseType(){return a.c}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[n,r]of t.url.searchParams.entries())e.query[n]=r;return e}return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},e}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;const i=r.l.of(t.input),o=(0,s.c)(t.traits??{});if(o.endpoint){let t=o.endpoint?.[0];if("string"==typeof t){const r=[...i.structIterator()].filter(([,e])=>e.getMergedTraits().hostLabel);for(const[e]of r){const r=n[e];if("string"!=typeof r)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(966).then(n.bind(n,27966));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,s){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}},99816:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(96901),s=n(7387),i=n(99880);const o="AWS_REGION",a="AWS_DEFAULT_REGION",c=["in-region","cross-region","mobile","standard","legacy"],u={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},l=({region:e=(0,s.Z)(r.GG),defaultsMode:t=(0,s.Z)(u)}={})=>(0,i.B)(async()=>{const n="function"==typeof t?await t():t;switch(n?.toLowerCase()){case"auto":return d(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${c.join(", ")}, got ${n}`)}}),d=async e=>{if(e){const t="function"==typeof e?await e():e,n=await p();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},p=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[o]||process.env[a]))return process.env[o]??process.env[a];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(866).then(n.bind(n,8866)),r=await e();return(await t({...r,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}}},99880:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=(e,t,n)=>{let r,s,i,o=!1;const a=async()=>{s||(s=e());try{r=await s,i=!0,o=!1}finally{s=void 0}return r};return void 0===t?async e=>(i&&!e?.forceRefresh||(r=await a()),r):async e=>(i&&!e?.forceRefresh||(r=await a()),o?r:n&&!n(r)?(o=!0,r):t(r)?(await a(),r):r)}}};
|